repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
rmaldrix/DOC | engine-plugins/giraph-plugins/src/test/scala/org/apache/spark/sql/parquet/atk/giraph/frame/TestingLdaVertexOutputFormat.scala | <gh_stars>0
/*
// Copyright (c) 2015 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... |
lemankk/bootstrap-styled-v4 | src/Container/index.js | import styled from 'styled-components';
import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import omit from 'lodash.omit';
import { makeContainer, makeContainerMaxWidths } from '@bootstrap-styled/css-mixins/lib/grid';
export const defaultProps = {
theme: {
'$grid-gutter-w... |
merobal/angular-formio-deploy | resource/formio-resource.js | /**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Generated bundle index. Do not edit.
*/
export { FormioResourceConfig, FormioResources, FormioResourceService, FormioResourceComponent, FormioResourceVie... |
bonarhyme/rhymebet | src/reducers/referralReducer.js | import {
GET_USER_REFS_REQUEST,
GET_USER_REFS_SUCCESS,
GET_USER_REFS_FAIL,
} from "../constants/referralConstants";
import { USER_LOGOUT } from "../constants/userConstants";
export const getUserRefsReducer = (state = {}, action) => {
switch (action.type) {
case GET_USER_REFS_REQUEST:
return {
... |
mattrunyon/deephaven-core | engine/table/src/main/java/io/deephaven/engine/util/ScriptFinder.java | <filename>engine/table/src/main/java/io/deephaven/engine/util/ScriptFinder.java
package io.deephaven.engine.util;
import io.deephaven.base.verify.Assert;
import io.deephaven.base.verify.Require;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.ut... |
OpenMPDK/SMDK | lib/linux-5.18-rc3-smdk/drivers/iio/chemical/atlas-ezo-sensor.c | <reponame>OpenMPDK/SMDK
// SPDX-License-Identifier: GPL-2.0+
/*
* atlas-ezo-sensor.c - Support for Atlas Scientific EZO sensors
*
* Copyright (C) 2020 Konsulko Group
* Author: <NAME> <<EMAIL>>
*/
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include... |
CharNing/program_zol | ZOL/src/script/registry.js | <gh_stars>0
require(['config'], function () {
require(['jquery','jqcookie'], function () {
registry();
})
})
// 表单注册
function registry() {
const $form = $('#registry-form');// 表单
const $phone = $('#userphone'); // 手机号码
const $incode = $('#incode');// 验证码输入框
const $code = $('#co... |
JuanOriana/TP2-SO-NEW | Userland/SampleCodeModule/libraries/processes.c | // This is a personal academic project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include <processes.h>
int createProcess(void (*entryPoint)(int, char **), int argc, char **argv, int fg, int *fd)
{
return syscall(CREATE_PROC, (uint64_t)entryPoint... |
whitebear0909/asb_laravel_vue | public/js/resources_js_views_plugins_Notifications_vue.js | <reponame>whitebear0909/asb_laravel_vue
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_views_plugins_Notifications_vue"],{
/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/j... |
gdickey273/hiking-app | client/src/components/Banner/Banner.js | import React from "react";
import './Banner.css';
import Trails from '../Trails';
// import Detail from "../../pages/Detail";
// import NoMatch from "../../pages/NoMatch";
// import { Route, Switch } from 'react-router-dom';
function Banner(props){
return (
<div className="banner">
<h3>Find Trails:</h3>
... |
gosailing/MVVMArms | arms/src/main/java/me/xiaobailong24/mvvmarms/mvvm/binding/BaseBindHolder.java | <reponame>gosailing/MVVMArms
package me.xiaobailong24.mvvmarms.mvvm.binding;
import android.databinding.ViewDataBinding;
import android.view.View;
import com.chad.library.adapter.base.BaseViewHolder;
import me.xiaobailong24.mvvmarms.R;
/**
* @author xiaobailong24
* @date 2017/6/30
* DataBinding BaseBindHolder
*... |
ikovac/boutique | server/enrollment/enrollment.controller.js | <reponame>ikovac/boutique
'use strict';
const { createError } = require('../common/errors');
const { Enrollment, User, Sequelize } = require('../common/database');
const HttpStatus = require('http-status');
const map = require('lodash/map');
const { CONFLICT } = HttpStatus;
const Op = Sequelize.Op;
const processOutp... |
fabriciocgf/IOT_LoRa_Dashboard | src/DashboardServices/PlainTextWidgetFactory.js | import {
UserEvents
} from "../UserEvents/UserEvents.js";
let _plainTextWidgetFactory = null;
let _userEvents = null;
//The default template for a widget using the canvas
let htmlTemplate = `
<div id="templateWidget" class="grid-stack-item-content">
<div class="widget-header">
<div class="... |
JimSeker/AudioVideio | videoCapture2_1/app/src/main/java/edu/cs4730/videocapture2_1/CameraFragment.java | <reponame>JimSeker/AudioVideio<filename>videoCapture2_1/app/src/main/java/edu/cs4730/videocapture2_1/CameraFragment.java
package edu.cs4730.videocapture2_1;
import android.Manifest;
import android.content.ContentValues;
import android.content.Context;
import android.content.pm.PackageManager;
import android.database.C... |
barthez/pact_broker | lib/pact_broker/db/clean.rb | require "sequel"
require "pact_broker/project_root"
require "pact_broker/logging"
require "pact_broker/db/clean/selector"
module PactBroker
module DB
class Clean
include PactBroker::Logging
class Unionable < Array
def union(other)
Unionable.new(self + other)
end
end
... |
bornio/chorus | app/assets/javascripts/views/dashboard/dashboard_workspace_list_view.js | <filename>app/assets/javascripts/views/dashboard/dashboard_workspace_list_view.js
chorus.views.DashboardWorkspaceList = chorus.views.Base.extend({
constructorName: "DashboardWorkspaceListView",
templateName: "dashboard/workspace_list",
tagName: "ul",
additionalClass: "list",
useLoadingSection: true,... |
reduf/Headquarter | code/client/party.c | <filename>code/client/party.c<gh_stars>1-10
#ifdef CORE_PARTY_C
#error "party.c included more than once"
#endif
#define CORE_PARTY_C
Player *get_player_safe(GwClient *client, uint32_t player_id)
{
if (!(client && client->ingame && client->world.hash))
return NULL;
ArrayPlayer *players = &client->world... |
stas-vilchik/bdd-ml | data/2355.js | <filename>data/2355.js
{
var _this2 = this;
(function() {
babelHelpers.newArrowCheck(this, _this2);
}.bind(this));
}
|
Thraix/Greet-Engine | Greet-core/src/graphics/Skybox.cpp | #include "Skybox.h"
#include <graphics/models/MeshFactory.h>
#include <graphics/shaders/ShaderFactory.h>
#include <graphics/RenderCommand.h>
namespace Greet {
Skybox::Skybox(const Ref<CubeMap>& cubemap)
: Skybox{cubemap, ShaderFactory::ShaderSkybox()}
{
}
Skybox::Skybox(const Ref<CubeMap>& map, const R... |
shoaib-a-khan/iConA | ICONA_WRAPPERPACKAGE_AND_DB/com/icona/wrapper/View.java | package com.icona.wrapper;
//Mapping of UIView API
public class View extends Responder {
}
|
li-boxuan/stargate | sgv2-service-common/src/main/java/io/stargate/sgv2/common/cql/builder/Replication.java | <gh_stars>0
/*
* Copyright DataStax, Inc. and/or The Stargate Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
path64/assembler | lib/yasmx/IncbinBytecode.cpp | <gh_stars>1-10
///
/// Incbin bytecode implementation
///
/// Copyright (C) 2001-2007 <NAME>
///
/// Redistribution and use in source and binary forms, with or without
/// modification, are permitted provided that the following conditions
/// are met:
/// 1. Redistributions of source code must retain the above copyri... |
thomcz/aurora | app/src/main/java/hrv/band/app/ui/presenter/IMeasuringPresenter.java | <reponame>thomcz/aurora
package hrv.band.app.ui.presenter;
import java.util.Date;
import java.util.List;
import hrv.band.app.model.Measurement;
/**
* Copyright (c) 2017
* Created by <NAME> on 23.04.2017
*/
public interface IMeasuringPresenter {
int getDuration();
Measurement createMeasurement(List<Doubl... |
grinisrit/tnl-dev | Documentation/Tutorials/ReductionAndScan/UpdateAndResidueExample.cpp | #include <iostream>
#include <cstdlib>
#include <TNL/Containers/Vector.h>
#include <TNL/Algorithms/reduce.h>
using namespace TNL;
using namespace TNL::Containers;
using namespace TNL::Algorithms;
template< typename Device >
double updateAndResidue( Vector< double, Device >& u, const Vector< double, Device >& delta_u,... |
futugyou/goproject | design-pattern/behavioral-pattern/07-state-pattern/statecontext.go | <filename>design-pattern/behavioral-pattern/07-state-pattern/statecontext.go
package main
type statecontext struct {
state istate
}
func (s *statecontext) set(state istate) {
s.state = state
}
func (s *statecontext) doexec() {
s.state.exec(*s)
}
|
gthulei/java-p2p | core/src/main/java/com/hl/p2p/server/imlp/AccountServerImpl.java | <gh_stars>1-10
package com.hl.p2p.server.imlp;
import com.hl.p2p.mapper.AccountMapper;
import com.hl.p2p.pojo.Account;
import com.hl.p2p.server.IAccountServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 账户信息
*/
@Service
public class AccountSer... |
cloner1984/shogun | src/shogun/multiclass/ecoc/ECOCDecoder.h | /*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: <NAME>, <NAME>, <NAME>
*/
#ifndef ECOCDECODER_H__
#define ECOCDECODER_H__
#include <shogun/lib/config.h>
#include <shogun/base/SGObject.h>
#include <shogun/lib/SGMatrix.h>
#include <shogun/lib/SGVector.h>
namespace sho... |
igorlev91/DemoEngine | Include/Engine.hpp | #pragma once
#include "EnginePublic.hpp"
#include "System/Platform.hpp"
#include "System/Window.hpp"
#include "System/Timer.hpp"
#include "System/InputState.hpp"
#include "System/ResourceManager.hpp"
#include "Graphics/RenderContext.hpp"
#include "Graphics/SpriteRenderer.hpp"
#include "Game/EntitySystem.hpp"
#include ... |
kyeonghopark/jgt-code | Volume_11/Number_2/Jones2006/clip.c | /* clip.c - */
// Example code for "Efficient Generatino of Poisson-Disk Sampling
// Patterns," <NAME>, JGT vol. 11, No. 2, pp. 27-36
//
// Copyright 2004-2006, <NAME>
// This code is distributed under the terms of the LGPL.
#include "gts.h"
#include "clip.h"
#define printf
#define g_assert(x)
#define linear(alp... |
swchoi1994/Project | pin-2.11/source/tools/Tests/cp-pin.cpp | <filename>pin-2.11/source/tools/Tests/cp-pin.cpp
/*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2012 Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of... |
darbyjack/Hangar | src/main/java/io/papermc/hangar/model/db/ProjectIdentified.java | package io.papermc.hangar.model.db;
public interface ProjectIdentified {
long getProjectId();
}
|
hitsub2/elk_kibana | src/server/kbn_server.js | <gh_stars>1-10
'use strict';
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Ob... |
migueref/educational-app | node_modules/gulp-slash/index.js | var slash = require('slash');
var through = require('through2');
/**
* Convert given text using node slash, or where no text is given, return a stream
* that similarly converts gulp (vinyl) file paths in place.
* @param {string|File} [candidate] Text or a vinyl file to convert
* @returns {string|Transform} Convert... |
pytf/intelligent-protector | test/src/inc/common/UniqueIDTest.h | <filename>test/src/inc/common/UniqueIDTest.h<gh_stars>1-10
/*******************************************************************************
* Copyright @ Huawei Technologies Co., Ltd. 2017-2018. All rights reserved.
********************************************************************************/
#ifndef _UNIQUEIDTEST... |
TimScriptov/NMOD-Examples | ICPE/jni/core/blocks/cblockentity/CBlockEntityManager.cpp | #include "CBlockEntityManager.h"
#include "CEntityBlock.h"
#include "CBlockEntity.h"
#include "mcpe/util/Util.h"
#include "mcpe/level/BlockSource.h"
#include "mcpe/util/ChunkPos.h"
#include "mcpe/level/chunk/LevelChunk.h"
#include "mcpe/block/Block.h"
CBlockEntityManager::CBlockEntityManager(std::string const&path)
{... |
alexakuzin/GUCEF-1 | platform/gucefCOMCORE/src/gucefCOMCORE_CPubSubClientTopic.cpp | /*
* gucefCOMCORE: GUCEF module providing basic communication facilities
*
* Copyright (C) 1998 - 2020. <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... |
ZackMurry/nottte-me | frontend/components/navbar/SmallScreenNavbar.js | <reponame>ZackMurry/nottte-me<filename>frontend/components/navbar/SmallScreenNavbar.js
import {
ClickAwayListener, Collapse, Link, Paper, Typography
} from '@material-ui/core'
import { useEffect, useState } from 'react'
import theme from '../theme'
export default function SmallScreenNavbar({ jwt }) {
const [ m... |
ilinksolutionsbr/kettle-beam | src/main/java/org/kettle/beam/pipeline/handler/BeamSubscriberStepHandler.java | <filename>src/main/java/org/kettle/beam/pipeline/handler/BeamSubscriberStepHandler.java
package org.kettle.beam.pipeline.handler;
import org.apache.beam.sdk.Pipeline;
import org.apache.beam.sdk.values.PCollection;
import org.apache.commons.lang.StringUtils;
import org.kettle.beam.core.KettleRow;
import org.kettle.beam... |
Achterhoeker/XChange | xchange-btcchina/src/main/java/com/xeiam/xchange/btcchina/dto/BTCChinaError.java | <reponame>Achterhoeker/XChange<filename>xchange-btcchina/src/main/java/com/xeiam/xchange/btcchina/dto/BTCChinaError.java
package com.xeiam.xchange.btcchina.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author ObsessiveOrange
*/
public class BTCChinaError {
private final int code;
private fi... |
billwert/azure-sdk-for-java | sdk/spring/spring-messaging-azure-servicebus/src/main/java/com/azure/spring/messaging/servicebus/core/properties/ProcessorProperties.java | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.spring.messaging.servicebus.core.properties;
import com.azure.spring.cloud.service.implementation.servicebus.properties.ServiceBusProcessorClientProperties;
/**
* A service bus processor related propert... |
sunzhen086/springbootvue | springboot/src/main/java/org/dev/framework/modules/sys/service/impl/SysSequenceQueueServiceImpl.java | <reponame>sunzhen086/springbootvue
package org.dev.framework.modules.sys.service.impl;
import org.dev.framework.modules.sys.entity.SysSequenceQueue;
import org.dev.framework.modules.sys.mapper.SysSequenceQueueMapper;
import org.dev.framework.modules.sys.service.SysSequenceQueueService;
import org.dev.framework.modules... |
AmrMaghraby/challenge-Instabug | db/migrate/20191129014257_add_column1.rb | <filename>db/migrate/20191129014257_add_column1.rb
class AddColumn1 < ActiveRecord::Migration[5.2]
def change
add_column :rooms, :room_id, :int
end
end
|
MentorBot/Webhook | mentorbot/bot/urls.py | from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from .views import FacebookMessengerWebhook, SlackWebhook, TwitterWebhook
urlpatterns = {
url(r'^messenger_webhook/?$', FacebookMessengerWebhook.as_view(), name="Facebook Messenger Webhook"),
url(r'^slack_webhook$',... |
aicas/s2n-tls | tests/cbmc/proofs/s2n_digest_allow_md5_for_fips_boringssl_awslc/s2n_digest_allow_md5_for_fips_harness.c | <gh_stars>1-10
/*
* Copyright 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 the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the ... |
ErmirioABonfim/Exercicos-Python | Exercios Em Python/ex058.py | import random
import emoji
from time import sleep
NumPC = random.randrange(0,10,1)
print('\033[1;31;47m -=-'*10)
Rungame = ''
tried = 0
while Rungame != 'f':
NumUsuario= int(input('\033[1;33;42m Pense em um número e quando estiver pronto digite '))
print('-=-'*10)
print('\033[1;31;47m Processando...'.upper... |
KG2013/springboot-framework | springboot-framework/src/main/java/com/codingapi/springboot/framework/persistence/IPersistenceEvent.java | package com.codingapi.springboot.framework.persistence;
import com.codingapi.springboot.framework.event.ISyncEvent;
/**
*
* 持久化同步事件
* 相比于ISyncEvent在IPersistenceEvent执行出现异常的时候会直接抛出
* @see com.codingapi.springboot.framework.persistence.IPersistence
*/
interface IPersistenceEvent extends ISyncEvent {
}
|
TUDSSL/TICS | msp430-gcc-tics/msp430-gcc-7.3.1.24-source-full/gcc/gcc/fortran/match.c | <reponame>TUDSSL/TICS
/* Matching subroutines in all sizes, shapes and colors.
Copyright (C) 2000-2017 Free Software Foundation, Inc.
Contributed by <NAME>
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by t... |
tak1827/wavelet | cmd/benchmark/flood.go | // Copyright (c) 2019 Perlin
//
// 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, modify, merge, publish, distri... |
IntellectEU/catalyst-bootstrap | catalyst-generator/src/main/resources/templates/usecase/mqtt/test/DemoApplicationTests.java | <reponame>IntellectEU/catalyst-bootstrap
{{=<% %>=}}
<%license%>
package <%fullPackageName%>;
import static <%packageName%>.Router.HOST;
import static <%packageName%>.Router.TOPIC_NAME;
import <%packageName%>.model.CarData;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.ArrayList;
import java.... |
fernandocamargo/future | src/hooks/services/expertlead/city/constants.js | export const URL = '/city';
|
MikeMajara/fastboard.io.front | src/components/BoardLeave/index.js | export { default } from './BoardLeave';
|
EyeOfDarkness/Arc | arc-core/src/arc/audio/AudioFilter.java | <filename>arc-core/src/arc/audio/AudioFilter.java
package arc.audio;
public abstract class AudioFilter{
protected long handle;
protected AudioFilter(long handle){
this.handle = handle;
}
}
|
FreCap/sql | legacy/src/test/java/com/amazon/opendistroforelasticsearch/sql/legacy/util/SqlExplainUtils.java | /*
* Copyright 2019 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 the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*... |
ethanwood17/code-gov-front-end | src/components/menu/subcomponents/search-box-dropdown/search-box-dropdown.container.test.js | <filename>src/components/menu/subcomponents/search-box-dropdown/search-box-dropdown.container.test.js
import { push } from 'connected-react-router'
import hideSearchDropdown from 'actions/hide-search-dropdown'
import updateSearchParams from 'actions/update-search-params'
import { getSection } from 'utils/url-parsing'
... |
Sukora-Stas/JavaRushTasks | 2.JavaCore/src/com/javarush/task/task19/task1909/Solution.java | <filename>2.JavaCore/src/com/javarush/task/task19/task1909/Solution.java<gh_stars>1-10
package com.javarush.task.task19.task1909;
/*
Замена знаков
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader conReader = new BufferedReader(new In... |
fumiphys/programming_contest | tree/src/heavy_light_decomposition.cpp | <gh_stars>1-10
/*
* Heavy Light Decomposition
*/
#include <cassert>
#include <iostream>
#include "../heavy_light_decomposition.hpp"
using namespace std;
int main(int argc, char *argv[])
{
cout << "-- test for heavy light decomposition start --" << endl;
HeavyLightDecomposition<int> hld(8);
hld.adde(0, 1, 1);... |
rio-31/android_frameworks_base-1 | core/tests/coretests/src/android/content/ContentProviderTest.java | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
AsahiOS/gate | usr/src/uts/common/sys/user.h | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
isabella232/feedbunch | FeedBunch-app/db/migrate/20140519123128_add_user_id_unread_entries_index_to_feed_subscriptions.rb | <gh_stars>10-100
class AddUserIdUnreadEntriesIndexToFeedSubscriptions < ActiveRecord::Migration[5.2]
def change
add_index :feed_subscriptions, [:user_id, :unread_entries], name: 'index_feed_subscriptions_on_user_id_unread_entries'
end
end
|
PacktPublishing/Modernizing-Enterprise-CMS-using-Pimcore | 4. Creating documentes in Pimcore/tmp/vendor/pimcore/pimcore/bundles/AdminBundle/Resources/public/js/pimcore/object/tags/image.js | /**
* Pimcore
*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - Pimcore Enterprise License (PEL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) Pim... |
jcorbin/anansi | bitmap.go | <gh_stars>1-10
package anansi
import (
"errors"
"image"
"unicode/utf8"
)
// Bitmap is a 2-color bitmap targeting unicode braille runes.
type Bitmap struct {
Bit []bool
Stride int
Rect image.Rectangle
}
// Load the given bit data into the bitmap.
func (bi *Bitmap) Load(stride int, data []bool) {
h := len(... |
manoj-savantly/sprout-platform | backend/modules/forms/src/main/java/net/savantly/sprout/module/forms/domain/definition/FormDefinitionDto.java | <filename>backend/modules/forms/src/main/java/net/savantly/sprout/module/forms/domain/definition/FormDefinitionDto.java
package net.savantly.sprout.module.forms.domain.definition;
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import ... |
AlessandroBorges/Bor_Vulkan | Vulkan/jni/bor.vulkan.structs.VkClearRect.h | /* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class bor_vulkan_structs_VkClearRect */
#ifndef _Included_bor_vulkan_structs_VkClearRect
#define _Included_bor_vulkan_structs_VkClearRect
#ifdef __cplusplus
extern "C" {
#endif
#undef bor_vulkan_structs_VkClearRect_VKAPPLICATIONINFO_I... |
y10naoki/nestalib | src/response.c | /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* The MIT License
*
* Copyright (c) 2008-2011 <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 ... |
ArtSCactus/JWD-Web-project | Web project/src/main/java/com/epam/Main.java | <gh_stars>0
package com.epam;
import java.io.IOException;
//Only for temporal use, just to test some small features
public class Main {
public static void main(String[] args) throws IllegalAccessException, IOException {
}
}
|
JennerChen/zq-react-ui-pack | src/util/randomStr.js | export const randomStr = () =>
Math.random()
.toString(36)
.slice(4, 10);
|
BobbyWhiskey/sg-orbit | packages/react-components/src/shared/src/keys.js | <filename>packages/react-components/src/shared/src/keys.js
export const Keys = {
backspace: 8,
tab: 9,
enter: 13,
esc: 27,
space: 32,
end: 35,
home: 36,
left: 37,
up: 38,
right: 39,
down: 40,
delete: 46
};
|
RivenZoo/FullSource | Jx3Full/Source/Source/KG3DEngine/KG3DEngine/KG3DEffectFileTable.cpp | <reponame>RivenZoo/FullSource
#include "StdAfx.h"
#include "KG3DEffectFileTable.h"
#include "KG3DGraphicsTool.h"
#ifdef _DEBUG
#define new DEBUG_NEW_3DENGINE
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
KG3DEffectFileTable g_cEffectFileTable;
KG3DEffectFileTable::KG3DEffectFileTable(void)
... |
sadupally/Dev | unisa-tools/unisa-tpustudentplacement/src/java/za/ac/unisa/lms/tools/tpustudentplacement/forms/Country.java | <filename>unisa-tools/unisa-tpustudentplacement/src/java/za/ac/unisa/lms/tools/tpustudentplacement/forms/Country.java<gh_stars>0
package za.ac.unisa.lms.tools.tpustudentplacement.forms;
import za.ac.unisa.lms.tools.tpustudentplacement.dao.CountryDAO;
import java.util.List;
public class Country {
private String code;
... |
PleXone2019/-esp32-snippets | cpp_utils/SSLUtils.h | /*
* SSLUtils.h
*
* Created on: Sep 16, 2017
* Author: kolban
*/
#ifndef COMPONENTS_CPP_UTILS_SSLUTILS_H_
#define COMPONENTS_CPP_UTILS_SSLUTILS_H_
#include <string>
class SSLUtils {
private:
static char* m_certificate;
static char* m_key;
public:
SSLUtils();
virtual ~SSLUtils();
static void setCertific... |
hugorebelo/gitlabhq | spec/migrations/rename_security_dashboard_feature_flag_to_instance_security_dashboard_spec.rb | <filename>spec/migrations/rename_security_dashboard_feature_flag_to_instance_security_dashboard_spec.rb
# frozen_string_literal: true
require 'spec_helper'
require Rails.root.join('db', 'migrate', '20200212014653_rename_security_dashboard_feature_flag_to_instance_security_dashboard.rb')
describe RenameSecurityDashbo... |
mczal/Profile-Matching | src/main/java/com/spk/model/utils/Religion.java | package com.spk.model.utils;
/**
* Created by Gl552 on 4/24/2017.
*/
public enum Religion {
IGNORE,
MOESLIM,
CATHOLIC,
CHRISTIAN,
BUDDHA,
HINDU,
OTHER
}
|
mol42/hbb-survey-web-admin | app/i18n.js | /**
* i18n.js
*
* This will setup the i18n language files and locale data for your app.
*
*/
import { addLocaleData } from 'react-intl';
import trLocaleData from 'react-intl/locale-data/tr';
import { DEFAULT_LOCALE } from '../app/redux/constants';
import trTranslationMessages from './translations/tr.json';
addL... |
py-az-cli/py-az-cli | pyaz/group/deployment/operation/__init__.py | <filename>pyaz/group/deployment/operation/__init__.py
'''
Manage deployment operations.
'''
from .... pyaz_utils import _call_az
def list(name, resource_group, top=None):
'''
Required Parameters:
- name -- The deployment name.
- resource_group -- Name of resource group. You can configure the defa... |
VladimirMetodiev/JavaDevelopment | src/functionalProgrammingExercises/CustomMinFunction.java | <filename>src/functionalProgrammingExercises/CustomMinFunction.java
package functionalProgrammingExercises;
import java.util.*;
import java.util.function.Function;
import java.util.stream.Collectors;
public class CustomMinFunction {
public static void main(String[] args) {
Scanner input = new Scanner(Syst... |
Lazyuki/DiscordStatsBot | commands/unignore.js | module.exports.name = 'unignore';
module.exports.alias = [
'unignore'
];
module.exports.isAllowed = (message) => {
return message.member.hasPermission('ADMINISTRATOR');
};
module.exports.help = '`,unignore <#channel | ID>`Unignore a channel from the list of ignored channels.';
module.exports.command = (message, c... |
arsmn/ontest-server | module/hash/hasher.go | <filename>module/hash/hasher.go
package hash
import "context"
type Hasher interface {
Compare(ctx context.Context, password []byte, hash []byte) error
Generate(ctx context.Context, password []byte) ([]byte, error)
}
type Provider interface {
Hasher() Hasher
}
|
deebugger/redirector | service/webService/src/main/webapp/uxData/scripts/directives/BtnSwitch.js | /**
* Copyright 2017 Comcast Cable Communications Management, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by a... |
fintx/fintx-framework | src/main/java/org/fintx/business/service/impl/RequestFailSvcImpl.java | package org.fintx.business.service.impl;
import org.fintx.business.dao.RequestFailDao;
import org.fintx.business.entity.RequestFail;
import org.fintx.business.service.RequestFailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
p... |
maestre3d/lifetrack-sandbox | pkg/infrastructure/persistence/dbpool/dynamo.go | <reponame>maestre3d/lifetrack-sandbox<filename>pkg/infrastructure/persistence/dbpool/dynamo.go
package dbpool
import (
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/maestre3d/lifetrack-sanbox/pkg/infrastructure/configuration"
"github.com/maestre3d/lifetrack-sanbox/pkg/infrastructure/remote"
)
// NewDyna... |
anahubert/special-disco | routes/userRoutes.js | const express = require('express');
const userController = require('./../controllers/userController');
const authController = require('./../controllers/authController');
const ratingController = require('./../controllers/ratingController');
const router = express.Router();
router.post('/signup', authController.signup... |
xny838754132/designPatterns | src/com/nai/simplefactory/Client.java | <filename>src/com/nai/simplefactory/Client.java
package com.nai.simplefactory;
/**
* 简单工厂模式~
*/
public class Client {
public static void main(String[] args) {
Operation operate = OperationFactory.createOperate("+");
operate.setNumberA(10);
operate.setNumberB(20);
double result = 0... |
WillZhuang/ethereum-lite-explorer | node_modules/@alethio/cms/dist/component/ICmsRendererConfig.js | //# sourceMappingURL=ICmsRendererConfig.js.map |
marvk/vatsim-api | src/main/java/net/marvk/fs/vatsim/api/data/VatsimCountry.java | <reponame>marvk/vatsim-api
package net.marvk.fs.vatsim.api.data;
import lombok.Data;
@Data
public class VatsimCountry {
private final String name;
private final String shorthand;
private final String discriminator;
}
|
kkcookies99/UAST | Dataset/Leetcode/valid/67/273.c | <reponame>kkcookies99/UAST
char * XXX(char * a, char * b){
int a_size = strlen(a);
int b_size = strlen(b);
char *c;
int f = 0; //最终进位标志
if(b_size < a_size){
c = (char *)malloc(a_size*sizeof(char));
memset(c, 0, a_size);
memcpy(&c[a_size - b_size], b, b_size);
}
else if(b_size >= a_size){
c = (char *)m... |
mjuenema/python-terrascript | tests/test_provider_gavinbunney_kubectl.py | # tests/test_provider_gavinbunney_kubectl.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:20:27 UTC)
def test_provider_import():
import terrascript.provider.gavinbunney.kubectl
def test_resource_import():
from terrascript.resource.gavinbunney.kubectl import kubectl_manifest
from terra... |
yuiwashita/Strata | modules/pricer/src/main/java/com/opengamma/strata/pricer/credit/IsdaCdsHelper.java | /**
* Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.pricer.credit;
import java.time.LocalDate;
import java.time.Period;
import java.util.Optional;
import java.util.OptionalDouble;
import java.util.stream.... |
4everalone/nano | sample/webservice/eBayDemoApp/src/com/ebay/trading/api/ReviseMyMessagesFoldersRequestType.java | // Generated by xsd compiler for android/java
// DO NOT CHANGE!
package com.ebay.trading.api;
import java.io.Serializable;
import com.leansoft.nano.annotation.*;
import java.util.List;
/**
*
* Renames, removes, or restores the specified My Messages folders for
* a given user.
*
*/
@RootElement(name = "ReviseMy... |
olevitt/sugoi-api | sugoi-api-core/src/main/java/fr/insee/sugoi/sugoiapicore/utils/broker/JmsFactory.java | <gh_stars>0
package fr.insee.sugoi.sugoiapicore.utils.broker;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.springframework.jms.config.DefaultJmsListenerContainerFactory;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.jms.support.converter.MappingJackson2MessageConverter... |
KAIXIE/ChatDemoUI3.0 | app/src/main/java/com/hyphenate/chatuidemo/mvp/view/fragment/BlackFragment.java | <reponame>KAIXIE/ChatDemoUI3.0<gh_stars>0
package com.hyphenate.chatuidemo.mvp.view.fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import com.hyphenate.chatuidemo.R;
import com.hyphenate.chatuidemo.base.BaseLazyFragmen... |
robertb-r/fiji | src-plugins/Script_Editor/src/main/java/fiji/scripting/TextEditor.java | package fiji.scripting;
import common.RefreshScripts;
import fiji.scripting.java.Refresh_Javas;
import ij.IJ;
import ij.WindowManager;
import ij.gui.GenericDialog;
import ij.io.SaveDialog;
import ij.plugin.BrowserLauncher;
import java.awt.Dimension;
import java.awt.FileDialog;
import java.awt.Font;
import java.a... |
joshnuss/spree-contact-form | app/controllers/spree/contact_controller.rb | module Spree
class ContactController < BaseController
before_filter :load_topics
def show
@message = Message.new
end
def create
@message = Message.new(params[:message] || {})
if @message.save
ContactMailer.message_email(@message).deliver
flash[:notice] = t('contact_thank_you'... |
mbtaylor/cds-healpix-java | src/test/java/cds/healpix/NestedSmallCellApproxedMethodTest.java | <reponame>mbtaylor/cds-healpix-java
// Copyright 2017-2018 - Universite de Strasbourg/CNRS
// The CDS HEALPix library is developped by the Centre de Donnees
// astronomiques de Strasbourgs (CDS) from the following external papers:
// - [Gorsky2005] - "HEALPix: A Framework for High-Resolution Discretization and
// ... |
mfaithfull/QOR | Source/ArchQOR/Z/HLAssembler/Emittables/Z_EInstruction.cpp | <reponame>mfaithfull/QOR
//Z_EInstruction.cpp
// Copyright (c) 2008-2010, <NAME> <<EMAIL>>
// Copyright (c) Querysoft Limited 2012, 2015
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "... |
mooshak-dcc/mooshak-2 | src/main/java/pt/up/fc/dcc/mooshak/shared/events/LogoutEvent.java | package pt.up.fc.dcc.mooshak.shared.events;
import java.util.ArrayList;
import java.util.List;
/**
* Event to force logout on client side, typically due to an error.
*
* @author <NAME> <zp.dcc.fc.up.pt>
*/
public class LogoutEvent extends MooshakEvent {
String reason = "";
public LogoutEvent() {
super();... |
singhaniatanay/Competitive-Programming | MakeMyTrip/sort012.java | <gh_stars>1-10
// { Driver Code Starts
//Initial template for Java
import java.io.*;
import java.util.*;
class GFG {
// } Driver Code Ends
//User function template for Java
public static void sort012(int a[], int n){
// code here
int i=-1;
int j= 0;
int k = n-1;
while(j<=k){
if(a[j]==... |
HackintoshwithUbuntu/BigRepo | Python/Grok Learning - for school, boring/Intro to python 2/Chapter 6.py | <gh_stars>0
words = {}
engList = []
final = []
for line in open('dictionary.txt'):
english, Aboriginal = line.rstrip().split(',')
words[english] = Aboriginal
engLine = input("English: ")
while engLine:
engList = engLine.split()
for word in engList:
final.append(words[word])
for counter in ran... |
Adilla/Blasmatch | external/pet/array.c | /*
* Copyright 2011 Leiden University. All rights reserved.
* Copyright 2012-2014 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must... |
zjutjh/boomerang-vue | src/main.js | <reponame>zjutjh/boomerang-vue<gh_stars>1-10
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import VueCarousel from 'vue-carousel'
import App from './App'
import router from './router'
import store from '.... |
couchbaselabs/couchbase-cloud-go-client | model_status_ok.go | <filename>model_status_ok.go
/*
Couchbase Public API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: 2.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package couchbasecapella
import (
"encoding/js... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.