repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
viralj/Would-You-Rather-UdacityReactNanodegree | src/components/User.js | import React, {Component} from 'react'
import {connect} from 'react-redux'
import Rank from './RankComp'
import {ViewBox} from './ViewBoxComp'
class User extends Component {
render() {
const {user, questionCount, answerCount} = this.props;
const viewName = 'user';
const title = user.name;... |
OctaviantoVyan/jwswing | WheelCombo/src/java/example/MainPanel.java | <gh_stars>1-10
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.awt.event.MouseWheelListener;
import javax.swing.*;
public final class MainPanel extends JPanel {
private MainPanel() {
super(new BorderLayout());
JPanel p = new ... |
MJYCo-Ltd/Map | Plot/Map/Atmosphere.cpp | #include <SceneGraph/ISceneGraph.h>
#include <Inner/IOsgSceneNode.h>
#include <Inner/ILoadResource.h>
#include <osgEarth/VirtualProgram>
#include <VersionMathCommon.h>
#include <osgEarth/SpatialReference>
#include "Atmosphere.h"
CAtmosphere::CAtmosphere(ISceneGraph* pSceneGraph)
{
IPlot* pPlot=pSceneGraph->GetPlot... |
dendisuhubdy/Vitis-AI | Vitis-AI-Library/overview/samples/medicalsegmentation/process_result.hpp | /*
* Copyright 2019 Xilinx Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
Sirherobrine23/Dir819gpl_code | DIR819_v1.06/src/vendor/ralink/mt7510_ptm/7510ptm_loopback.c | <filename>DIR819_v1.06/src/vendor/ralink/mt7510_ptm/7510ptm_loopback.c
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/spinlock.h>
#include <linux/interrupt.h>
#include <linux/signal.h>
#include <linux/sched.h>
#include <linux/mm.h>
#includ... |
Vorringer/oci-go-sdk | blockchain/scale_blockchain_platform_details.go | <reponame>Vorringer/oci-go-sdk
// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses... |
GG-chen/MVPApp | app/src/main/java/com/chen/mvp/module/news/newslist/INewsListView.java | package com.chen.mvp.module.news.newslist;
import com.chen.mvp.adapter.item.NewsMultiItem;
import com.chen.mvp.api.bean.NewsInfo;
import com.chen.mvp.module.base.ILoadDataView;
import java.util.List;
/**
* Created by chen on 2017/9/9.
*/
public interface INewsListView extends ILoadDataView<List<NewsMultiItem>> {
... |
rrkommer/gwiki | gwiki/src/main/java/de/micromata/genome/gwiki/page/search/SearchMatcherFactory.java | //
// Copyright (C) 2010-2016 <NAME> & Micromata GmbH
//
// 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... |
tglatt/emjpm | packages/knex/migrations/20190813180823_view_mesure_gestionnaire_view.js | exports.up = async function(knex) {
return knex.raw(`
CREATE VIEW view_mesure_gestionnaire AS
SELECT dep.id department_id, dep.nom dep_nom, 'ANTENNE' discriminator, ser.id source_id, ser.mesures_awaiting, ser.mesures_in_progress, ser.mesures_max
FROM service_antenne ser, departements dep
WHERE dep.code = substr... |
refactormyself/java-smt-stage | src/org/sosy_lab/java_smt/basicimpl/withAssumptionsWrapper/InterpolatingProverWithAssumptionsWrapper.java | /*
* JavaSMT is an API wrapper for a collection of SMT solvers.
* This file is part of JavaSMT.
*
* Copyright (C) 2007-2016 <NAME>
* 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 obta... |
griffero/hound | lib/error_message_translation.rb | <gh_stars>1-10
module ErrorMessageTranslation
ERROR_CODE_AND_MESSAGE = /.*(\d{3})\s\-\s(.*)\s\/\/.*/
FORBIDDEN_ERROR_CODE = "403"
def self.from_error_response(error)
matches = error.message.match(ERROR_CODE_AND_MESSAGE)
if matches.present? && matches.captures[0] == FORBIDDEN_ERROR_CODE
matches.cap... |
tdrwenski/netcdf-java | visad/mcidas/src/test/java/ucar/nc2/TestPointDatasets.java | /*
* Copyright (c) 1998-2020 <NAME> and University Corporation for Atmospheric Research/Unidata
* See LICENSE for license information.
*/
package ucar.nc2;
import java.io.IOException;
import java.lang.invoke.MethodHandles;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.... |
grappendorf/coyoho-server | db/migrate/20160305213550_remove_devise.rb | <gh_stars>0
class RemoveDevise < ActiveRecord::Migration
def up
remove_column :users, :reset_password_token
remove_column :users, :reset_password_sent_at
remove_column :users, :remember_created_at
remove_column :users, :sign_in_count
remove_column :users, :current_sign_in_at
remove_column :use... |
ArekkuusuJerii/TECProyect | src/Utils/RunnableCode.java | package Utils;
import java.awt.Window;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JDialog;
import javax.swing.JOptionPane;
import javax.swing.Timer;
/**
* Descripción: Runnable de Cierre de Sesión
*
*/
@CleanupDone
public class RunnableCode implements Runnable {
... |
AxonTeam/AxonCore | src/Libraries/LibraryInterface.js | <filename>src/Libraries/LibraryInterface.js
import NotImplementedException from '../Errors/NotImplementedException';
class LibraryInterface {
constructor(axonClient) {
this._axon = axonClient;
}
get botClient() {
return this._axon.botClient;
}
// eslint-disable-next-line no-unused... |
freman/genesysapi | models/text_bot_flow_turn_response.go | // Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"... |
mxmo0rhuhn/map-reduce | mapreduce-client-socket/src/main/java/ch/zhaw/mapreduce/plugins/socket/SocketClientBinder.java | package ch.zhaw.mapreduce.plugins.socket;
import java.util.logging.Logger;
import de.root1.simon.Lookup;
public class SocketClientBinder {
private static final Logger LOG = Logger.getLogger(SocketClientBinder.class.getName());
private final Lookup lookup;
private final String agentRegistratorSimonBinding;
p... |
nbrookie/cardsy | src/utils/cardUtils.js | <reponame>nbrookie/cardsy
import string from "./stringUtils"
import templates from "./templates"
/**
* cardsy.getType
*
* Accepts a card number as a string or an integer and returns the
* card type as a capitalised string (e.g. "VISA"). If the card
* number matches no card type patterns it returns null.
*
* @pa... |
yzhang226/quark | quark-core/src/main/java/org/lightning/quark/core/row/CdcInfo.java | package org.lightning.quark.core.row;
import lombok.Getter;
import lombok.Setter;
import org.lightning.quark.core.model.db.PKData;
import java.util.Date;
import java.util.Objects;
/**
* SQL Server - model for Change Capture Data
* Created by cook on 2018/2/27
*/
@Getter
@Setter
public class CdcInfo {
/** 更改提... |
italiangrid/voms-admin-server | voms-admin-server/src/main/java/org/glite/security/voms/admin/integration/orgdb/OrgDBMembershipSynchronizationTask.java | /**
* Copyright (c) <NAME> Fisica Nucleare (INFN). 2006-2016
*
* 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... |
coleygroup/rxn-ebm | rxnebm/data/preprocess/clean_smiles.py | """ This module contains functions to clean a raw dataset of reaction SMILES strings, which includes
operations such as removing atom mapping and checking for invalid molecule SMILES. There is also
a function to generate a list of SMILES strings of all unique molecules in the given dataset.
NOTE: in rxn-ebm, a 'datase... |
lixiao7215981/LXFrameWork_OC | LXFrameWork_OC/LXFrameWork_OC/LXFrameWork/Class/Category/NSString+Extension.h | //
// NSString+Extension.h
// LiXiao
//
// Created by 李晓 on 14-10-18.
// Copyright (c) 2014年 itcast. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface NSString (Size)
/**
* 生成唯一的 UUID
*/
+ (NSString *) uuidString;
/**
* 获取设备沙盒路径
*/
+ (NSString *)getApplicationDocum... |
lingjf/h2un | test/test_matcher_cast_number2.cpp | <reponame>lingjf/h2un<filename>test/test_matcher_cast_number2.cpp
#include "../source/h2_unit.cpp"
#include "test_types.hpp"
CASE(cast number2)
{
NUMBER0_DECL_LIST;
NUMBER1_DECL_LIST;
#define TheCheck(x, y) OK(x, y);
H2Fullmesh(TheCheck, (NUMBER1_VAR_LIST));
#undef TheCheck
}
|
nerdfiles/ng-amd-microservices-seed | server/mockRoutes.js | <gh_stars>0
var fs = require('fs');
var _ = require('lodash');
module.exports = function (app) {
app.get('/api/v0/orders/:id?', function (request, response, next) {
var id = request.params.id || null;
var _json;
var json;
if (id) {
try {
_json = JSON.parse(fs.readFileSync(__dirname + ... |
CiscoTestAutomation/genielibs | pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/cef/verify.py | import logging
# Genie
from genie.utils.timeout import Timeout
from genie.metaparser.util.exceptions import SchemaEmptyParserError
from genie.libs.sdk.libs.utils.normalize import GroupKeys
# pyATS
from pyats.utils.objects import find, R
# CEF
from genie.libs.sdk.apis.iosxe.cef.get import get_cef_repair_... |
team-miracle/android-libs | api-stubs_intermediates/srcjars/android/service/usb/UsbSettingsDevicePermissionProto.java | // Generated by protoc-gen-javastream. DO NOT MODIFY.
// source: frameworks/base/core/proto/android/service/usb.proto
package android.service.usb;
/** @hide */
// message UsbSettingsDevicePermissionProto
public final class UsbSettingsDevicePermissionProto {
// optional string device_name = 1;
public static f... |
realwnc/bose | src/com/mids/controller/sys/LoginController.java | <filename>src/com/mids/controller/sys/LoginController.java
package com.mids.controller.sys;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import com.mids.ConstantsCode;
import com.mids.common.Result;
import com.mids.util.CaptchaUtil;
import com.mids.util.MyFastjsonUtil;
import com.mids.u... |
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | Chapter 04/ch4_3_13.py | <filename>Chapter 04/ch4_3_13.py
print(bool (-5)) #True |
gopala-kr/CR-101 | something-learned/Algorithms and Data-Structures/Competitive-programming-library/CP/codefights/CodeLeader.cpp | <gh_stars>1-10
//solution by albinutte
std::map<std::pair<std::vector<int>, int>, double> M;
double solve(std::vector<int> V, int idx, int n, int forbidden) {
using namespace std;
if (idx == n) {
int mmax = 0, cnt = 0;
for (int i=0; i<V.size(); i++)
if (V[i] > mmax) { mmax = V[i]; cnt = 1; }
... |
afeng11/tomato-arm | release/src-rt-6.x.4708/router/samba-3.5.8/source4/utils/net/net.c | <filename>release/src-rt-6.x.4708/router/samba-3.5.8/source4/utils/net/net.c<gh_stars>1-10
/*
Samba Unix/Linux SMB client library
Distributed SMB/CIFS Server Management Utility
Copyright (C) 2001 <NAME> (<EMAIL>)
Copyright (C) 2001 <NAME> (<EMAIL>)
Copyright (C) 2001 <NAME> (<EMAIL>)
Copyright (C)... |
Davdegreat/metasploit-framework | spec/lib/rex/proto/sms/model/smtp_spec.rb | # -*- coding: binary -*-
require 'spec_helper'
require 'rex/proto/sms/model'
RSpec.describe Rex::Proto::Sms::Model::Smtp do
let(:address) { 'example.com' }
let(:port) { 25 }
let(:username) { 'username' }
let(:password) { 'password' }
let(:login_type) { :login }
let(:from) { 'from'... |
magistermaks/mod-stylishoccult | src/main/java/net/darktree/stylishoccult/network/Packet.java | <gh_stars>0
package net.darktree.stylishoccult.network;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.fabricmc.fabric.api.network.PacketContext;
import net.minecraft.network.PacketByteBuf;
import net.minecraft.util.Identifier;
public abstract class Packet {
protected final Iden... |
jalbam/CrossBrowdy | crossbrowdy.com/_html/_doc/examples/EN/advanced/tower_defense_game_files/Input.js | <gh_stars>10-100
var Input = {}; //Class to manage input.
//It will store the column and row where the mouse is over:
Input.mouseData =
{
column: -1,
row: -1
};
//Initializes the class:
Input.init = function()
{
//Sets the mouse events:
CB_Mouse.onMove
(
function()
{
if (!Game.data.gameStarted) { return... |
proteye/aero-frontend-testapp | src/components/elements/logo/index.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import themes from '@utils/themes';
import './style.less';
class Logo extends Component {
static propTypes = {
to: PropTypes.string,
title: PropTypes.string,
theme: PropTypes.oneOfType(... |
palanga/utils | examples/src/main/scala/examples/GraphqlExample.scala | <reponame>palanga/utils<filename>examples/src/main/scala/examples/GraphqlExample.scala<gh_stars>0
package examples
import caliban.GraphQL.graphQL
import caliban.schema.GenericSchema
import caliban.{ GraphQL, RootResolver }
import palanga.aconcagua
import zio.stream.ZStream
import zio.{ ExitCode, Task, URIO, ZIO }
obj... |
Devan-Kerman/FluidVolume | src/main/java/io/github/fablabsmc/fablabs/api/fluidvolume/v1/properties/potions/CustomPotionEffectsFluidProperty.java | <filename>src/main/java/io/github/fablabsmc/fablabs/api/fluidvolume/v1/properties/potions/CustomPotionEffectsFluidProperty.java
package io.github.fablabsmc.fablabs.api.fluidvolume.v1.properties.potions;
import io.github.fablabsmc.fablabs.api.fluidvolume.v1.math.Fraction;
import io.github.fablabsmc.fablabs.api.fluidvol... |
janesser/axon-percona-demo | src/test/java/org/axonframework/queryhandling/benchmark/AxonServerQueryBusBenchmark.java | <reponame>janesser/axon-percona-demo
package org.axonframework.queryhandling.benchmark;
import demo.DemoApp;
import org.axonframework.axonserver.connector.query.AxonServerQueryBus;
import org.axonframework.queryhandling.config.DistributedQueryBusAutoConfiguration;
import org.axonframework.springboot.autoconfig.AxonAut... |
KAtana-Karlsruhe/AADC_2015_KAtana | src/adtfUser/katana_mission_control/tools/demoDataGenerators/DemoPatchGenerator.cpp | <filename>src/adtfUser/katana_mission_control/tools/demoDataGenerators/DemoPatchGenerator.cpp<gh_stars>0
/**
* Katana Demo Patch Filter.
* $Author: philipp $
*
*/
#include "stdafx.h"
#include "math.h"
#include <fstream>
#include "DemoPatchGenerator.h"
/// Create filter for random number generator
ADTF... |
forkkit/webiny-js | packages/app-forms/src/editor/plugins/triggers/redirect.js | <filename>packages/app-forms/src/editor/plugins/triggers/redirect.js
import React from "react";
import { Grid, Cell } from "@webiny/ui/Grid";
import { Input } from "@webiny/ui/Input";
import { ReactComponent as LinkIcon } from "./icons/round-link-24px.svg";
import { ButtonPrimary } from "@webiny/ui/Button";
import { ge... |
addstone/unrealengine3 | Development/External/wxWindows_2.4.0/src/msw/tbarmsw.cpp | <filename>Development/External/wxWindows_2.4.0/src/msw/tbarmsw.cpp
/////////////////////////////////////////////////////////////////////////////
// Name: tbarmsw.cpp
// Purpose: wxToolBar
// Author: <NAME>
// Modified by: 13.12.99 by VZ during toolbar classes reorganization
// Created: 04/01/98
// R... |
nakedible/vpnease-l2tp | openswan/openswan-2.4.0rc4.quilt/linux/include/openswan/ipsec_errs.h | <filename>openswan/openswan-2.4.0rc4.quilt/linux/include/openswan/ipsec_errs.h
/*
* @(#) definition of ipsec_errs structure
*
* Copyright (C) 2001 <NAME> <<EMAIL>>
* and <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU G... |
krattai/AEBL | blades/icecast2/win32/resource.h | <filename>blades/icecast2/win32/resource.h
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by Icecast2win.rc
//
#define IDM_ABOUTBOX 0x0010
#define IDD_ABOUTBOX 100
#define IDS_ABOUTBOX 101
#define IDD_ICECAST2WIN_DIALOG... |
yuan50697105/my-admin-test | admin-demo-spring-boot-gradle/shower-commons-db-mybatis-mapper-with-sqlhelper/src/main/java/com/example/commons/db/mybatis/mapper/base/sqlhelper/module/mapper/GoodsInfoMapper.java | <reponame>yuan50697105/my-admin-test
package com.example.commons.db.mybatis.mapper.base.sqlhelper.module.mapper;
import com.example.commons.db.mybatis.mapper.base.sqlhelper.module.pojo.GoodsInfo;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
pu... |
AlbandeCrevoisier/ldd-athens | linux-socfpga/drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.h | <filename>linux-socfpga/drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.h
#ifndef __NV50_DISP_H__
#define __NV50_DISP_H__
#define nv50_disp(p) container_of((p), struct nv50_disp, base)
#include "priv.h"
struct nvkm_output;
struct nvkm_output_dp;
#define NV50_DISP_MTHD_ struct nvkm_object *object, ... |
hu1991die/spring-boot-learing | Chapter09/src/main/java/com/feizi/RedisObjectSerializer.java | <filename>Chapter09/src/main/java/com/feizi/RedisObjectSerializer.java
/*
* Copyright (c) 2014 <EMAIL>. All Rights Reserved.
*/
package com.feizi;
import org.springframework.core.convert.converter.Converter;
import org.springframework.core.serializer.support.DeserializingConverter;
import org.springframework.core.seri... |
CEPoole/awrs | test/controllers/SubscriptionControllerTest.scala | /*
* Copyright 2021 HM Revenue & Customs
*
* 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... |
fortinet-solutions-cse/ansible_fgt_modules | v6.0.5/vpn_ssl_web/test_fortios_vpn_ssl_web_portal.py | # Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the... |
takanori-ugai/smile | nlp/src/main/java/smile/nlp/relevance/BM25.java | <gh_stars>0
/*
* Copyright (c) 2010-2021 <NAME>. All rights reserved.
*
* Smile is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
... |
amirgreenheart/DataSubmissionServiceAPI | spec/models/export/framework_suppliers_lots/extract_spec.rb | <gh_stars>1-10
require 'rails_helper'
RSpec.describe Export::FrameworkSuppliersLots::Extract do
describe '#all_relevant' do
let(:all_relevant) { Export::FrameworkSuppliersLots::Extract.all_relevant(framework) }
context 'with suppliers that have both active and inactive lots on a framework' do
let!(:fr... |
jonathas/libatsc3 | src/atsc3_alp_parser.h | /*
* atsc3_alp_parser.h
*
* Created on: May 1, 2019
* Author: jjustman
*/
#ifndef ATSC3_ALP_PARSER_H_
#define ATSC3_ALP_PARSER_H_
#include "atsc3_utils.h"
#include "atsc3_logging_externs.h"
#include "atsc3_alp_types.h"
#include "atsc3_stltp_types.h"
#if defined (__cplusplus)
extern "C" {
#endif
void atsc... |
anmolnar/cloudbreak | core/src/main/java/com/sequenceiq/cloudbreak/service/StackUnderOperationService.java | package com.sequenceiq.cloudbreak.service;
import org.springframework.stereotype.Service;
@Service
public class StackUnderOperationService {
private static final ThreadLocal<Boolean> ON_LOCAL = new ThreadLocal<>();
private static final ThreadLocal<Long> STACK_ID_LOCAL = new ThreadLocal<>();
public void... |
jkganzan13/tekken-ss | app/constants/routes.js | <filename>app/constants/routes.js
export default [
{ to: '/', name: 'Home' },
{ to: '/combos', name: 'Combos' },
{ to: '/moves', name: 'Move List' },
];
|
likloadm/cross_platform_crypto | LibsodiumSignatureDetachedString/LibsodiumSignatureDetachedStringNodeJs.js | var tweetnacl = require('tweetnacl');
// https://www.npmjs.com/package/tweetnacl
// https://github.com/dchest/tweetnacl-js
tweetnacl.util = require('tweetnacl-util');
// https://github.com/dchest/tweetnacl-util-js#documentation
console.log('Libsodium detached signature string');
var dataToSign = 'The quick br... |
jsango2/kolega-dental | src/components/RadnoVrijeme/styles.js | import styled from "styled-components"
import mjesto from "../../../content/assets/Mapview.png"
export const WrapRadnoVrijeme = styled.div`
position: relative;
width: 100%;
height: 1215px;
/* padding-top: 60px; */
@media screen and (max-width: 768px) {
height: auto;
}
`
export const WrapTimetable = sty... |
ScalablyTyped/SlinkyTyped | m/maxim_mazurok__gapi_dot_client_dot_cloudscheduler/src/main/scala/typingsSlinky/maximMazurokGapiClientCloudscheduler/gapi/client/cloudscheduler/Job.scala | <filename>m/maxim_mazurok__gapi_dot_client_dot_cloudscheduler/src/main/scala/typingsSlinky/maximMazurokGapiClientCloudscheduler/gapi/client/cloudscheduler/Job.scala<gh_stars>10-100
package typingsSlinky.maximMazurokGapiClientCloudscheduler.gapi.client.cloudscheduler
import org.scalablytyped.runtime.StObject
import sca... |
aifargonos2/elk-reasoner | elk-owl-parent/elk-owl-model/src/main/java/org/semanticweb/elk/owl/visitors/ElkObjectPropertyAxiomVisitor.java | <gh_stars>10-100
/*
* #%L
* elk-reasoner
*
* $Id: ElkObjectPropertyAxiomVisitor.java 297 2011-08-10 14:42:57Z <EMAIL> $
* $HeadURL: https://elk-reasoner.googlecode.com/svn/trunk/elk-reasoner/src/main/java/org/semanticweb/elk/syntax/ElkObjectPropertyAxiomVisitor.java $
* %%
* Copyright (C) 2011 Oxford University... |
jadedsurfer/creativechallenge | server/server.js | <reponame>jadedsurfer/creativechallenge
var loopback = require('loopback');
var boot = require('loopback-boot');
var app = module.exports = loopback();
app.start = function appStart() {
// start the web server
return app.listen(function appListen() {
app.emit('started');
console.log('Web server listening ... |
sosu-rochelt/com.rochelt.www | src/components/molecules/InfoGraphicSlider/InfoGraphicSlider.js | import React from 'react';
import PropTypes from 'prop-types';
// import Link from "gatsby-link"import Waypoint from 'react-waypoint';
import Markdown from 'react-remarkable';
import Slick from 'react-slick';
import Measure from 'react-measure';
import { Link } from 'react-router';
import cx from 'classnames';
import... |
navidkhoshavi/marss.cacheLineData | qemu/hw/pcnet.h | #define PCNET_IOPORT_SIZE 0x20
#define PCNET_PNPMMIO_SIZE 0x20
#define PCNET_LOOPTEST_CRC 1
#define PCNET_LOOPTEST_NOCRC 2
typedef struct PCNetState_st PCNetState;
struct PCNetState_st {
NICState *nic;
NICConf conf;
QEMUTimer *poll_timer;
int rap, isr, lnkst;
uint32_t rdra, tdra;
... |
reactivators-studio-playground/CarteJaune | reducers/__test__/vaccinations.js | <filename>reducers/__test__/vaccinations.js
import { OrderedMap } from 'immutable';
import { expect } from 'chai';
import reducer from '../vaccinations';
import {
ADD_VACCINATION,
FETCH_VACCINATIONS_SUCCESS,
} from '../../constants/actions';
describe('vaccinations', () => {
it('returns an initial state', () => {... |
onap/policy-models | models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/CdsSimulator.java | <reponame>onap/policy-models
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2020 Nordix Foundation.
* Modifications Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
* Modifications Copyright (C) 2020 Bell Canada. All rights reserved.... |
bdunne/catalog-api | lib/tasks/list_rbac.rake | require 'rake'
namespace :catalog do
namespace :rbac do
namespace :list do
options = {}
options[:user_file] = ENV['USER_FILE']
options[:debug] = ENV['DEBUG']
desc "List groups for a tenant"
task :groups => :environment do
raise "Please provide a user credential yaml file" un... |
Gohan/aws-sdk-cpp | aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ViewerCertificate.h | <filename>aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ViewerCertificate.h
/*
* Copyright 2010-2017 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 Lice... |
kmestry/PROBLEM_SOLVING_HACKERRANK_LEETCODE | src/com/leetcode/RandomPointInNonOverlappingRectangles.java | <reponame>kmestry/PROBLEM_SOLVING_HACKERRANK_LEETCODE
package com.leetcode;
import java.util.Random;
import java.util.TreeMap;
public class RandomPointInNonOverlappingRectangles {
Random random;
TreeMap<Integer, int[]> map;
int areaSum = 0;
public RandomPointInNonOverlappingRectangles(int[][] rects) ... |
MrFreemanser/Bot | cosmos/galaxies/settings/__init__.py | from .administrator import AdministratorSettings
__all__ = [
AdministratorSettings,
]
def setup(bot):
bot.plugins.setup(__file__)
|
windows-development/Windows-classic-samples | Samples/Win7Samples/tabletpc/advreco/cpp/ChildWnds.cpp | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Module:
// ... |
ukchukx/saleor-dashboard | cypress/utils/misc.js | <gh_stars>1-10
import moment from "moment-timezone";
export function getDatePeriod(days) {
if (days < 1) {
return {};
}
const end = moment().startOf("day");
const start = end.subtract(days - 1);
const format = "YYYY-MM-DD";
return {
gte: start.format(format),
lte: end.format(format)
};
}
|
ttungbmt/BecaGIS_GeoPortal | geonode/geonode/qgis_server/models.py | # -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2016 OSGeo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 ... |
REANNZ/discovery-service | spec/lib/discovery_service/persistence/entity_cache_spec.rb | # frozen_string_literal: true
RSpec.describe DiscoveryService::Persistence::EntityCache do
include_context 'build_entity_data'
let(:redis) { Redis::Namespace.new(:discovery_service, redis: Redis.new) }
let(:instance) { DiscoveryService::Persistence::EntityCache.new }
let(:group) { Faker::Lorem.word }
descri... |
cfsengineering/tigl | src/geometry/CTiglInterpolateLinearWire.h | /*
* Copyright (C) 2007-2013 German Aerospace Center (DLR/SC)
*
* Created: 2010-08-13 <NAME> <<EMAIL>>
* 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/LI... |
redwebdew/ovirt-engine | backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/Cluster.java | <reponame>redwebdew/ovirt-engine
package org.ovirt.engine.core.common.businessentities;
import java.util.Collections;
import java.util.HashSet;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.valid... |
vidkidz/crossbridge | gnustep/core/gui/Headers/AppKit/NSColorPanel.h | /*
NSColorPanel.h
System generic color panel
Copyright (C) 1996 Free Software Foundation, Inc.
Author: <NAME> <<EMAIL>>
Date: 1996
This file is part of the GNUstep GUI Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser Gen... |
konexios/moonstone | selene-device-zigbee/src/main/java/moonstone/selene/device/xbee/XbeeSensorModule.java | package moonstone.selene.device.xbee;
import java.time.Instant;
import com.digi.xbee.api.RemoteXBeeDevice;
import com.digi.xbee.api.XBeeDevice;
import com.digi.xbee.api.XBeeNetwork;
import com.digi.xbee.api.io.IOLine;
import com.digi.xbee.api.io.IOSample;
import com.digi.xbee.api.listeners.IIOSampleReceiveListener;
... |
rigarash/monolish-debian-package | src/vml/matrix/math_2op/matsinh.hpp | #pragma once
namespace monolish {
namespace {
template <typename F1, typename F2> void msinh_core(const F1 &A, F2 &C) {
Logger &logger = Logger::get_instance();
logger.func_in(monolish_func);
// err
assert(util::is_same_size(A, C));
assert(util::is_same_structure(A, C));
assert(util::is_same_device_mem_st... |
stefanlechner/rtfparserkit | src/main/java/com/rtfparserkit/parser/standard/FontCharset.java | /*
* Copyright 2013 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
T-Terra/Exercises-of-Python | world challenges 2/df43.py | <gh_stars>0
altura = float(input('Qual é sua altura? (m) '))
peso = float(input('Qual é seu peso? (kg) '))
imc = peso / (altura ** 2)
if imc <= 18.5:
print('Seu imc é de {:.1f} você está \033[31mabaixo do peso!!!'.format(imc))
elif imc <= 25:
print('Seu imc é {:.1f} e você está no \033[33mPeso ideal!!!'.format(... |
softwarecapital/google.pdfium | core/fxcrt/css/cfx_csscomputedstyle.cpp | // Copyright 2017 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "core/fxcrt/css/cfx_csscomputedstyle.h"
#include "core/fxcrt/css/cfx... |
AltSysrq/Abendstern | src/abendstern.hxx | /**
* @file
* @author <NAME>
* @date 2012.05.20
* @brief Provides access to core ("kernel") functionality implemented in
* abendstern.cxx, such as the preliminary run mode.
*/
#ifndef ABENDSTERN_HXX_
#define ABENDSTERN_HXX_
/**
* The possible OpenGL builds.
*/
enum AbendsternGLType { AGLT14=0, AGLT21, AGLT32 }... |
iot-dsa-v2/sdk-dslink-java | dslink-v2/src/test/java/org/iot/dsa/dslink/RequesterInvokeTest.java | package org.iot.dsa.dslink;
import com.acuity.iot.dsa.dslink.test.V1TestLink;
import com.acuity.iot.dsa.dslink.test.V2TestLink;
import org.iot.dsa.dslink.requester.SimpleInvokeHandler;
import org.iot.dsa.node.DSBool;
import org.iot.dsa.node.DSInt;
import org.iot.dsa.node.DSMap;
import org.iot.dsa.node.DSNode;
import o... |
zyhzgx/rax | templates/template-retail/templates/default/pages/index/components/QuickEntry/index.js | import { Component, PropTypes, createElement } from 'rax';
import { View, Text, Image, RecyclerView } from 'rax-components';
import OpenUrl from '../../mods/openUrl';
import style from './style';
const QuickEntry = function(props) {
let sourceData = props.sourceData;
if (sourceData.length === 0) {
return null;... |
mrmuxl/june | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='june',
version='0.9.0',
author='<NAME>',
author_email='<EMAIL>',
url='http://project.lepture.com/june',
packages=find_packages(),
description='June: a forum',
install_requires=[
... |
yangxulexis/pivot | dist-amd/layout/Popup.js |
(function (root, factory) {
if (typeof define === "function" && define.amd) {
define(["d3", "../common/HTMLWidget", "../layout/Surface", "../common/Icon"], factory);
} else {
root.layout_Popup = factory(root.d3, root.common_HTMLWidget, root.layout_Surface, root.common_Icon);
}
}(this, funct... |
tuanalexeu/logiweb-microservices | logiweb-service/src/main/java/com/alekseytyan/logiweb/service/implementation/MessageServiceImpl.java | <gh_stars>1-10
package com.alekseytyan.logiweb.service.implementation;
import com.alekseytyan.logiweb.service.api.MessageService;
import com.google.api.core.ApiFuture;
import com.google.cloud.pubsub.v1.Publisher;
import com.google.protobuf.ByteString;
import com.google.pubsub.v1.PubsubMessage;
import com.google.pubsub... |
maruilong/tx-lcn | tx-client/src/main/java/com/codingapi/tx/datasource/package-info.java | <reponame>maruilong/tx-lcn
/**
* 连接池
*
* create by lorne on 2017/11/11
*/
package com.codingapi.tx.datasource;
|
grondo/mvapich2-cce | src/mpid/ch3/channels/common/include/rdma_3dtorus.h | <reponame>grondo/mvapich2-cce<filename>src/mpid/ch3/channels/common/include/rdma_3dtorus.h<gh_stars>1-10
/* Copyright (c) 2003-2011, The Ohio State University. All rights
* reserved.
*
* This file is part of the MVAPICH2 software package developed by the
* team members of The Ohio State University's Network-Based C... |
google/nearby | internal/platform/implementation/windows/generated/winrt/Windows.Services.TargetedContent.h | <gh_stars>10-100
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.220531.1
#pragma once
#ifndef WINRT_Windows_Services_TargetedContent_H
#define WINRT_Windows_Services_TargetedContent_H
#include "winrt/base.h"
static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.220531.1"), "Mismatched ... |
ScalablyTyped/SlinkyTyped | g/gaea-model/src/main/scala/typingsSlinky/gaeaModel/FitGaea/DiffRemove.scala | package typingsSlinky.gaeaModel.FitGaea
import org.scalablytyped.runtime.StringDictionary
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 DiffRemove extends Vi... |
gstingy/uc_python_api | ultracart/models/affiliate_click.py | # coding: utf-8
"""
UltraCart Rest API V2
UltraCart REST API Version 2
OpenAPI spec version: 2.0.0
Contact: <EMAIL>
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class AffiliateClick(object):
"""
NOT... |
IUST-DMLab/farsbase | raw/nlp-utils/src/main/java/ir/ac/iust/dml/kg/raw/extractor/FilterType.java | /*
* Farsi Knowledge Graph Project
* Iran University of Science and Technology (Year 2017)
* Developed by <NAME>.
*/
package ir.ac.iust.dml.kg.raw.extractor;
public enum FilterType {
CommonPosTags, CommonPosTagsStrict, AnyResources, Things, Properties, Villages, Ambiguities, NotMatchedLabels,
EmptyClassTree... |
jeroennelis/VR_engine | VR Engine/src/TexturedModel.cpp | <gh_stars>0
#include "TexturedModel.h"
TexturedModel::TexturedModel(RawModel *model, ModelTexture *texture)
:m_RawModel(model), m_Texture(texture)
{
}
TexturedModel::~TexturedModel()
{
//delete m_RawModel;
//delete m_Texture;
}
|
HeyItsFelipe/PracticeProblems | LeetCode/Medium/maxIncreaseKeepCitySkyline.js | /*
https://leetcode.com/problems/max-increase-to-keep-city-skyline/
In a 2 dimensional array grid, each value grid[i][j] represents the height of a building located there.
We are allowed to increase the height of any number of buildings, by any amount (the amounts can be different for different buildings).
Height 0... |
cityssm/corporate-records-manager | helpers/recordsDB/updateStatus.js | import * as sqlPool from "@cityssm/mssql-multi-pool";
import * as configFns from "../configFns.js";
import debug from "debug";
const debugSQL = debug("corporate-records-manager:recordsDB:updateStatus");
export const updateStatus = async (statusForm, requestSession) => {
try {
const pool = await sqlPool.conn... |
nattaponaie/Intelligent-Tutoring-System-for-Situated-Decision-Making-in-Dental-Surgery | app/src/main/java/com/surgical/decision3/common/bean/procedure/BaseProcedure.java | <gh_stars>0
package com.surgical.decision3.common.bean.procedure;
import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Root;
@Root
public class BaseProcedure
{
public BaseProcedure()
{
super();
}
public BaseProcedure( int id, String name,
String code, String desc )
{
super();
th... |
kosinaz/Rot-Magus | src/world/director.js | // eslint-disable-next-line no-unused-vars
import WorldMap from './worldMap.js';
// eslint-disable-next-line no-unused-vars
import Troupe from './troupe.js';
import PreciseShadowcasting from '../../lib/rot/fov/precise-shadowcasting.js';
import AStar from '../../lib/rot/path/astar.js';
export default class Director {
... |
SIEGE/siege | src/examples/shadow.c | <filename>src/examples/shadow.c
#include <siege/siege.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
#define NSHAPES 3
#define NLIGHTS 4
SGLightSpace* space;
SGShadowShape* shapes[NSHAPES];
SGLight* lights[NLIGHTS];
SGSurface* lightBuf;
SGLight* createLight(SGVec2 pos, SGColor colo... |
MingAtUWA/SimpleMPM2 | SimulationCore/Step_T2D_CHM_s.h | #ifndef __Step_T2D_CHM_s_H__
#define __Step_T2D_CHM_s_H__
#include "Step.h"
#include "Model_T2D_CHM_s.h"
int solve_substep_T2D_CHM_s(void *_self);
// for single object only
class Step_T2D_CHM_s : public Step
{
public:
typedef Model_T2D_CHM_s::Particle Particle;
typedef Model_T2D_CHM_s::Element Element;
typedef Mo... |
lechium/tvOS10Headers | System/Library/PrivateFrameworks/Memories.framework/MiroSmartMusicUtilities.h | <reponame>lechium/tvOS10Headers
/*
* This header is generated by classdump-dyld 1.0
* on Wednesday, March 22, 2017 at 9:09:31 AM Mountain Standard Time
* Operating System: Version 10.1 (Build 14U593)
* Image Source: /System/Library/PrivateFrameworks/Memories.framework/Memories
* classdump-dyld is licensed under GPLv3, ... |
perfectrecall/aws-sdk-cpp | aws-cpp-sdk-glue/include/aws/glue/model/OtherMetadataValueListItem.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonV... |
jhump/hyper-redis | src/com/bluegosling/redis/concurrent/CompletableFutureCallback.java | package com.bluegosling.redis.concurrent;
/**
* A future that also implements {@link Callback}, whose methods can be used to complete the
* future.
*
* @author <NAME> (<EMAIL>)
*
* @param <T> the type of future value
*/
public class CompletableFutureCallback<T> extends CompletableFuture<T>
implements Callback<... |
timmartin19/turbogears | turbogears/identity/saprovider.py | <filename>turbogears/identity/saprovider.py
from sqlalchemy.orm import class_mapper
from turbogears import config, identity
from turbogears.database import session
from turbogears.util import load_class
import logging
log = logging.getLogger("turbogears.identity.saprovider")
try:
set, frozenset
except NameError:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.