repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
cstom4994/SourceEngineRebuild | src/public/panorama/controls/movieplayer.h | <reponame>cstom4994/SourceEngineRebuild<gh_stars>1-10
//=========== Copyright Valve Corporation, All rights reserved. ===============//
//
// Purpose:
//=============================================================================//
#ifndef PANORAMA_MOVIEPLAYER_H
#define PANORAMA_MOVIEPLAYER_H
#ifdef _WIN32
#pragma... |
hwxiasn/archetypes | ygb/ygb-project-impl/src/main/java/com/qingbo/ginkgo/ygb/project/listener/EventPublisherService.java | package com.qingbo.ginkgo.ygb.project.listener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationEvent;
import org.springframework.stereotype.Component;
/**
* @Resouce private EventPublisherSe... |
kami-lang/madex-r8 | src/test/java/com/android/tools/r8/optimize/argumentpropagation/CheckNotZeroMethodWithArgumentRemovalTest.java | // Copyright (c) 2021, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.optimize.argumentpropagation;
import static com.android.tools.r8.utils.codei... |
dworthen/arquero | src/engine/window/window-state.js | import ascending from '../../util/ascending';
import bisector from '../../util/bisector';
import concat from '../../util/concat';
import unroll from '../../util/unroll';
const bisect = bisector(ascending);
export default function(data, frame, adjust, ops, aggrs) {
let rows, peer, cells, result;
const isPeer = ind... |
LokiProgrammer/IlluminatiBoardGame | src/com/lucky7/ibg/Game.java | package com.lucky7.ibg;
import java.awt.Color;
import java.awt.Dimension;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Random;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JSplitPane;
i... |
scireum/sirius-web | src/test/java/sirius/web/http/TestController.java | /*
* Made with all the love in the world
* by scireum in Remshalden, Germany
*
* Copyright by scireum GmbH
* http://www.scireum.de - <EMAIL>
*/
package sirius.web.http;
import sirius.kernel.di.std.Part;
import sirius.kernel.di.std.Register;
import sirius.kernel.health.Exceptions;
import sirius.kernel.xml.XMLStr... |
kue-ipc/ikamail | test/mailers/previews/notification_mailer_preview.rb | <reponame>kue-ipc/ikamail<gh_stars>0
# Preview all emails at http://localhost:3000/rails/mailers/notification_mailer
class NotificationMailerPreview < ActionMailer::Preview
# Preview this email at http://localhost:3000/rails/mailers/notification_mailer/apply
def apply
NotificationMailer.apply
end
# Preview... |
Nabila118/DBProject | demos/React/app/formattedinput/fluidsize/app.js | <reponame>Nabila118/DBProject<filename>demos/React/app/formattedinput/fluidsize/app.js<gh_stars>0
import React from 'react';
import ReactDOM from 'react-dom';
import JqxFormattedInput from '../../../jqwidgets-react/react_jqxformattedinput.js';
class App extends React.Component {
render() {
return (
... |
RomanYarovoi/oms_cms | oms_cms/config/base/api_settings.py | REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAdminUser',
'rest_framework.permissions.IsAuthenticated',
'rest_framework.permissions.AllowAny',
),
'DEFAULT_RENDERER_CLASSES': [
'rest_framework.renderers.JSONRenderer',
'rest_framework.... |
ApocalypseMac/CP | atcoder/Educational DP Contest/A.cpp | <gh_stars>0
#include <bits/stdc++.h>
const int maxn = 100005;
int N, h[maxn], dp[maxn];
int main(){
std::cin >> N;
memset(dp, 0, sizeof(dp));
for (int i = 0; i < N; i++) std::cin >> h[i];
dp[1] = abs(h[1] - h[0]);
for (int i = 2; i < N; i++){
dp[i] = std::min(dp[i-1] + abs(h[i] - h[i-1])... |
leeola/muta | _examples/hello/muta.go | package main
import (
"fmt"
"github.com/leeola/muta"
)
func Hello() {
fmt.Println("Hello")
}
func Readme() {
fmt.Println(`
Nice, you ran Muta! Don't forget that you can get a task list
by running the following:
$ muta -h
`)
}
func main() {
// Add the "hello" task, with a func() handler
muta.Task("hello"... |
AferriDaniel/coaster | coaster/sqlalchemy/registry.py | <gh_stars>10-100
"""
Model helper registry
---------------------
Provides a :class:`Registry` type and a :class:`RegistryMixin` base class
with three registries, used by other mixin classes.
Helper classes such as forms and views can be registered to the model and
later accessed from an instance::
class MyModel(... |
nistefan/cmssw | MagneticField/Interpolation/src/VectorFieldInterpolation.cc | <filename>MagneticField/Interpolation/src/VectorFieldInterpolation.cc<gh_stars>1-10
// include header for VectorFieldInterpolation
#include "VectorFieldInterpolation.h"
void VectorFieldInterpolation::defineCellPoint000(double X1, double X2, double X3, double F1, double F2, double F3){
CellPoint000[0] = X1;
CellPo... |
zurawiki/netlify-cms | src/components/EditorWidgets/Markdown/MarkdownControl/Toolbar/ToolbarButton.js | import PropTypes from 'prop-types';
import React from 'react';
import c from 'classnames';
import { Icon } from 'UI';
const ToolbarButton = ({ type, label, icon, onClick, isActive, isHidden, disabled }) => {
const active = isActive && type && isActive(type);
if (isHidden) {
return null;
}
return (
<b... |
JamesMAWalker/ppr | gatsby-config.js | <reponame>JamesMAWalker/ppr
module.exports = {
siteMetadata: {
title: `PPR 20201 Team Site`,
description: `Information about the Plant Power Racing team for 2021.`,
author: `james-walker`,
},
plugins: [
`gatsby-plugin-layout`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-transition-link`,
... |
brianneisler/moltres-template | src/core/mapProps.js | <filename>src/core/mapProps.js
import createFactory from './createFactory'
const mapProps = (propsMapper) => (factory) =>
createFactory((props, ...rest) =>
factory(propsMapper(props, ...rest), ...rest)
)
export default mapProps
|
alexebaker/java-constant_folding | src/Parser/Nodes/Term.java | <filename>src/Parser/Nodes/Term.java
package Parser.Nodes;
import Errors.SyntaxError;
import Parser.Operators.FactorOp;
import Parser.Operators.Operator;
import Tokenizer.TokenReader;
import Compiler.CompilerState;
import Compiler.SymbolTable;
public class Term extends ASTNode {
public static ASTNode parse(Compil... |
AsimKhan2019/Blink-ID | BlinkIDSample/LibUtils/src/main/java/com/microblink/result/extract/blinkid/sweden/SwedenDlFrontRecognitionResultExtractor.java | package com.microblink.result.extract.blinkid.sweden;
import com.microblink.entities.recognizers.blinkid.sweden.dl.SwedenDlFrontRecognizer;
import com.microblink.libresult.R;
import com.microblink.result.extract.blinkid.BlinkIdExtractor;
public class SwedenDlFrontRecognitionResultExtractor extends BlinkIdExtractor<Sw... |
DEAKSoftware/panoramic-rendering | source/render/render_ddraw.cpp | /*============================================================================*/
/* <NAME> [Tau] - <NAME> */
/* */
/* DDraw Rendering Functions */
/*... |
Brook1711/biubiu_Qt6 | vlc_linux/vlc-3.0.16/modules/gui/qt/dialogs/toolbar.cpp | <gh_stars>0
/*****************************************************************************
* toolbar.cpp : ToolbarEdit dialog
****************************************************************************
* Copyright (C) 2008-2009 the VideoLAN team
* $Id: 58a90f7c5b413718dd8b500d45afca08fa23ad88 $
*
* Authors: <NAM... |
joe4568/centreon-broker | neb/inc/com/centreon/broker/neb/downtime_serializable.hh | /*
** Copyright 2009-2013 Centreon
**
** 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... |
atuldada/checker-framework | checker/jtreg/unboundedWildcards/issue1428/T.java | <filename>checker/jtreg/unboundedWildcards/issue1428/T.java<gh_stars>0
/*
* @test
* @summary Test for Issue 1428.
* https://github.com/typetools/checker-framework/issues/1428
*
* @compile B.java
* @compile -XDrawDiagnostics -processor org.checkerframework.checker.tainting.TaintingChecker -AprintErrorStack T.java
... |
Smoudii/MigrantHub | MigrantHub/client_new/src/home/Main.js | import React, { Component } from 'react';
import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
import { withStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
import logo from '../logo.svg';
import FriendPanel from '../components/FriendPanel/FriendPanel';
import... |
netarchivesuite/webarchive-commons | src/main/java/org/archive/util/iterator/FilterStringIterator.java | package org.archive.util.iterator;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.archive.util.StringFieldExtractor;
public class FilterStringIterator implements Iterator<String> {
private static final Logger LOGGER =
... |
smolsbs/aoc | 2015/day-15/fuckyou.py | import re
def igscore(ig, ms, k): return max(sum([ing[k] * m for ing, m in zip(ig, ms)]), 0)
def score(ig, m): return igscore(ig, m, "cap") * igscore(ig, m, "dur") * igscore(ig, m, "flav") * igscore(ig, m, "text")
def find_max_score(ingredients, current, mass, remaining_weight):
if current == len(ingredients)-1:
... |
Tifosi-M/FlySky | SmartMemoWeb/src/domain/Card/CardDb.java | <reponame>Tifosi-M/FlySky<gh_stars>0
package domain.Card;
/**
* CardDb entity. @author MyEclipse Persistence Tools
*/
public class CardDb extends AbstractCardDb implements java.io.Serializable {
// Constructors
/** default constructor */
public CardDb() {
}
/** minimal constructor */
public CardDb(String te... |
mfarrera/algorithm-reference-library | workflows/mpi/simple-mpi.py | """Simple demonstration of the use of ARL functions with MPI
Run with:
mpiexec -n 4 python simple-mpi.py
"""
import logging
import numpy
from mpi4py import MPI
import astropy.units as u
from astropy.coordinates import SkyCoord
from data_models.polarisation import PolarisationFrame
from libs.image.operations im... |
maurizioabba/rose | tests/CompileTests/ElsaTestCases/gnu/dC0008.c | <reponame>maurizioabba/rose<filename>tests/CompileTests/ElsaTestCases/gnu/dC0008.c
// this form shows up in the kernel
int a[] = { [1] /*no = or : here*/ 0, [2] 10, [3] 13,};
struct A {
int x;
int y;
};
int main() {
struct A a = { .y /*no = or : here*/ 3, .x 8 };
}
|
dbdxnuliba/IHMC- | ihmc-robotics-toolkit/src/main/java/us/ihmc/robotics/geometry/yoFrameObjects/YoFrameEuclideanWaypoint.java | package us.ihmc.robotics.geometry.yoFrameObjects;
import static us.ihmc.robotics.math.frames.YoFrameVariableNameTools.createName;
import us.ihmc.euclid.referenceFrame.ReferenceFrame;
import us.ihmc.euclid.referenceFrame.interfaces.ReferenceFrameHolder;
import us.ihmc.euclid.tuple3D.interfaces.Point3DBasics;
import us... |
ClinicalOntology/QUICK | quick-api/src/main/java/org/reimagineehr/model/quick/api/event/MedicationStatement.java | package org.reimagineehr.model.quick.api.event;
import java.util.List;
import org.reimagineehr.model.quick.api.backbone.DosageInstruction;
import org.reimagineehr.model.quick.api.other.Medication;
import org.reimagineehr.model.quick.api.party.Party;
import org.reimagineehr.model.quick.api.event.Event;
/**
* Author:... |
ThexXTURBOXx/TechReborn | src/main/java/techreborn/client/container/ContainerCompressor.java | <gh_stars>0
package techreborn.client.container;
import net.minecraft.entity.player.EntityPlayer;
import reborncore.client.gui.BaseSlot;
import reborncore.client.gui.SlotOutput;
import techreborn.api.gui.SlotUpgrade;
import techreborn.tiles.teir1.TileCompressor;
public class ContainerCompressor extends ContainerCraft... |
erikorbons/axo | axo-core/src/main/java/axo/core/Operator.java | package axo.core;
import java.util.Objects;
import org.reactivestreams.Subscriber;
public abstract class Operator<T, R> implements Subscriber<T> {
private final StreamContext context;
private final Subscriber<? super R> subscriber;
public Operator (final StreamContext context, final Subscriber<? super R> subsc... |
fangweb/jainbox | client/src/pages/ViewMessage.js | import React, { Component } from 'react';
import { goBack } from 'connected-react-router';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Link } from 'react-router-dom';
import { PathConfig } from '../config';
import { ServiceContainer } from '../services';
import { wait } f... |
ugurdogrusoz/chilay | src/main/java/org/ivis/layout/sbgn/Compaction.java | package org.ivis.layout.sbgn;
import java.util.ArrayList;
/**
* This class is used to apply compaction on a graph. First a visibility graph
* is constructed from the given set of nodes. Since visibility graphs are
* DAG's, apply topological sort. Then, try to translate each node's location
* vertically/ho... |
olavloite/spanner-jdbc | src/main/java/nl/topicus/jdbc/statement/CloudSpannerParameterMetaData.java | package nl.topicus.jdbc.statement;
import java.math.BigDecimal;
import java.sql.Date;
import java.sql.ParameterMetaData;
import java.sql.SQLException;
import java.sql.Time;
import java.sql.Timestamp;
import java.sql.Types;
import nl.topicus.jdbc.metadata.AbstractCloudSpannerWrapper;
public class CloudSpann... |
buchi-busireddy/hypertrace-core-graphql | hypertrace-core-graphql-trace-schema/src/main/java/org/hypertrace/core/graphql/trace/schema/arguments/TraceType.java | package org.hypertrace.core.graphql.trace.schema.arguments;
import graphql.annotations.annotationTypes.GraphQLName;
// TODO temporary for backwards compatibility
@GraphQLName(TraceType.TYPE_NAME)
public enum TraceType {
TRACE,
API_TRACE,
BACKEND_TRACE;
static final String TYPE_NAME = "TraceType";
public S... |
emobileingenieria/youtube | drop-box-clone/src/index.js | require("dotenv").config();
const watch = require("node-watch");
const fetch = require("node-fetch");
const nodePath = require("path");
const fs = require("fs");
const express = require("express");
const multer = require("multer");
const FormData = require("form-data");
const upload = multer({ dest: "uploads/" });
con... |
trekhleb/giphygram | src/Routes.js | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Route, Switch, withRouter } from 'react-router-dom';
import { SearchPage } from './components/searchPage/SearchPage';
import { RouterService } from './services/RouterService';
import { updateSearchQuery } from... |
kjthegod/chromium | remoting/android/java/src/org/chromium/chromoting/RenderData.java | // Copyright 2013 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.
package org.chromium.chromoting;
import android.graphics.Matrix;
import android.graphics.Point;
/**
* This class stores data that needs to be accessed ... |
phanquanghiep123/fc40-fe | app/components/CustomAgGrid/demoUsage.js | import React, { Component } from 'react';
// import * as PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core';
import { createStructuredSelector } from 'reselect';
import { connect } from 'react-redux';
import { compose } from 'redux';
import withImmutablePropsToJs from 'with-immutable-props-to-j... |
matoruru/purescript-react-material-ui-svgicon | src/MaterialUI/SVGIcon/Icon/CloudDownloadOutlined.js | <reponame>matoruru/purescript-react-material-ui-svgicon
exports.cloudDownloadOutlinedImpl = require('@material-ui/icons/CloudDownloadOutlined').default;
|
RotaNova/asmoboot | rotanava-boot-base/rotanava-boot-base-core/src/main/java/com/rotanava/framework/common/constant/SysPageModule.java | <reponame>RotaNova/asmoboot
package com.rotanava.framework.common.constant;
/**
* @description:
* @author: jintengzhou
* @date: 2021-09-13 10:20
*/
public class SysPageModule {
/**
* 平台设置
*/
public static final Integer PTSZ = 1;
/**
* 设备配置
*/
public static final Integer SBSZ =... |
mahmadi786/woocommerce-onlineshop | woocommerce-wordpress-service/app/wp-content/plugins/customer-reviews-woocommerce/js/reviews-qa-captcha.js | <reponame>mahmadi786/woocommerce-onlineshop
if (typeof grecaptcha !== 'undefined' && grecaptcha && jQuery('.cr-recaptcha').length) {
grecaptcha.ready(() => {
grecaptcha.render(jQuery('.cr-recaptcha')[0], {
sitekey: crReviewsQaCaptchaConfig.v2Sitekey
});
});
}
|
Newcoin-Foundation/iosdk | dist/overmind/auth/effects.js | // import { Firebase } from './effects/firebase.ts.bak';
// import { Api } from './effects/newlife';
import { fetch } from "./effects/fetch";
export default {
// Firebase,
// Api,
fetch
};
// export default {}
//# sourceMappingURL=effects.js.map |
tea2code/recipe_manager | helper/translator.py | <reponame>tea2code/recipe_manager
#!/usr/bin/python
# -*- coding: utf-8 -*-
import gettext
from bottle import request
class TranslatorNotInitializedError(Exception):
""" Exception raised if Translator is not initialized. """
class Translator:
""" Wrapper for gettext for translations.
Member:
transl... |
intel/cassian | src/core/system/src/factory.cpp | /*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include <cassian/system/factory.hpp>
#include <cassian/system/library.hpp>
#include <memory>
#include <string>
#if defined(_WIN32)
#include <library_windows.hpp>
#elif defined(__linux__)
#include <library_linux.hpp>
#endif
namespac... |
telink-semi/telink_b91_ble_single_connection_sdk | vendor/B91_feature/default_att.h | <reponame>telink-semi/telink_b91_ble_single_connection_sdk
/********************************************************************************************************
* @file default_att.h
*
* @brief This is the header file for BLE SDK
*
* @author BLE GROUP
* @date 2020.06
*
* @par Copyright (c) 2020, Telink ... |
Shiva-D/rtos-course | FreeRTOSv10.4.1/FreeRTOS/Demo/CORTEX_A5_SAMA5D2x_Xplained_IAR/AtmelFiles/drivers/cortex-a/cp15_pmu.c | <reponame>Shiva-D/rtos-course
/* ----------------------------------------------------------------------------
* SAM Software Package License
* ----------------------------------------------------------------------------
* Copyright (c) 2015, Atmel Corporation
*
* All rights reserved.
*
* Redistribution a... |
dingjb/skydragon | test/specs/row.spec.js | <reponame>dingjb/skydragon
import Row from '../../src/package/row';
import Cow from '../../src/package/col';
import { getRenderedVm, getVue } from '../util';
describe('Row', () => {
let vm;
it('check row', () => {
vm = getVue({
template: '<tb-row><tb-col :span="2" :md="4" :xs="24"><div class="group-item... |
Tech-Intellegent/CodeForces-Solution | CodeForces-Contest/1400/D.cpp | #include<bits/stdc++.h>
using namespace std;
const int N = 3030;
int a[N], cnt[N][N];
int32_t main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int t; cin >> t;
while (t--) {
int n; cin >> n;
for (int i = 1; i <= n; i++) cin >> a[i];
long long ans = 0;
for (int i = 1; i <= n; i++) {
for (int j = i + 1;... |
wedataintelligence/vivaldi-source | chromium/ui/ozone/platform/drm/host/drm_cursor.h | // 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.
#ifndef UI_OZONE_PLATFORM_DRM_HOST_DRM_CURSOR_H_
#define UI_OZONE_PLATFORM_DRM_HOST_DRM_CURSOR_H_
#include <memory>
#include "base/callback.h"
#include ... |
zarehba/mini-apps | src/miniapps/SliderDesign/Slider.js | import React, { useState, useReducer, useEffect } from 'react';
import PropTypes from 'prop-types';
import styled, { createGlobalStyle } from 'styled-components';
function useImageWidth(imageMaxWidth) {
const [screenWidth, setWidth] = useState(window.screen.availWidth);
useEffect(() => {
const updateWidthAndH... |
scbedd/azure-sdk-for-node | lib/services/hdInsightManagement/lib/models/clusterIdentity.js | <reponame>scbedd/azure-sdk-for-node
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost i... |
jsupancic/libhand-public | pyhand/kinematics/root_ring_inter_length_2.c | /******************************************************************************
* Code generated with sympy 0.7.6 *
* *
* See http://www.sympy.org/ for more information. *
... |
ptahchiev/thymeleaf-spring | thymeleaf-spring5/src/main/java/org/thymeleaf/spring5/context/webflux/SpringWebFluxExpressionContext.java | /*
* =============================================================================
*
* Copyright (c) 2011-2018, The THYMELEAF team (http://www.thymeleaf.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
liuming-dev/compass | sample/src/main/java/com/sogou/bizdev/compass/sample/hibernate/combined/ShardFirstService.java | package com.sogou.bizdev.compass.sample.hibernate.combined;
import com.sogou.bizdev.compass.core.anotation.RouteKey;
import com.sogou.bizdev.compass.sample.common.po.Plan;
/**先执行分库库sevrice的混合模式样例
* @author gly
* @since 1.0.0
*/
public interface ShardFirstService {
/**先执行分库库sevrice的混合模式
* @param accountId
* @p... |
ScalablyTyped/SlinkyTyped | e/extjs/src/main/scala/typingsSlinky/extjs/global/Ext/layout.scala | <gh_stars>10-100
package typingsSlinky.extjs.global.Ext
import typingsSlinky.extjs.Ext.IBase
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object layout {
object compone... |
jagriti295/Automatic-Code-Complexity-Prediction | ASTExtractor/src/main/java/com/github/mauricioaniche/ck/metric/DIT.java | package com.github.mauricioaniche.ck.metric;
import com.github.mauricioaniche.ck.CKClassResult;
import org.eclipse.jdt.core.dom.ASTVisitor;
import org.eclipse.jdt.core.dom.CompilationUnit;
import org.eclipse.jdt.core.dom.ITypeBinding;
import org.eclipse.jdt.core.dom.TypeDeclaration;
public class DIT extends ASTVisito... |
oxtra/oxtra | src/oxtra/codegen/instructions/arithmetic/mul.h | #ifndef OXTRA_MUL_H
#define OXTRA_MUL_H
#include "oxtra/codegen/instruction.h"
namespace codegen {
class Mul : public codegen::Instruction {
public:
explicit Mul(const fadec::Instruction& inst)
: codegen::Instruction{inst, flags::all, flags::none} {}
void generate(CodeBatch& batch) const override;
};
}
#... |
E-Health/gocdm | api/condition_era.go | package api
import (
"net/http"
"github.com/E-Health/gocdm/model"
"github.com/gin-gonic/gin"
"github.com/julienschmidt/httprouter"
"github.com/smallnest/gen/dbmeta"
)
func configConditionErasRouter(router *httprouter.Router) {
router.GET("/conditioneras", GetAllConditionEras)
router.POST("/conditioneras", Ad... |
vladkhvo/bem-create-sublime-pligin | node_modules/.bem.MODULES/borschik/lib/techs/css-fast.js | // Backward compatibility: 'css-fast' is 'css' now.
// This hack will be removed in 0.3.x.
exports.Tech = require('./css').Tech;
|
amcp/janusgraph | janusgraph-server/src/test/java/org/janusgraph/graphdb/tinkerpop/AbstractGremlinServerIntegrationTest.java | <gh_stars>1-10
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "... |
rohankumardubey/safehtml | stylesheet.go | <gh_stars>100-1000
// Copyright (c) 2017 The Go Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
package safehtml
import (
"container/list"
"fmt"
"regexp"
"strings... |
cctvzd7/aliyun-openapi-java-sdk | aliyun-java-sdk-sofa/src/main/java/com/aliyuncs/sofa/transform/v20190815/UpdateLinkeLinklogAccountResponseUnmarshaller.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... |
dengzhicheng092/SocialApp | app/src/main/java/innovativedeveloper/com/socialapp/services/MyFirebaseMessagingService.java | package innovativedeveloper.com.socialapp.services;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.RingtoneManager;
import android.net.Ur... |
lambdaxymox/DragonFlyBSD | contrib/gcc-8.0/gcc/genmddump.c | <gh_stars>100-1000
/* Generate code from machine description to recognize rtl as insns.
Copyright (C) 1987-2018 Free Software Foundation, Inc.
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
the F... |
znep/pgjdbc | pgjdbc/src/main/java/org/postgresql/replication/LogSequenceNumber.java | /*
* Copyright (c) 2016, PostgreSQL Global Development Group
* See the LICENSE file in the project root for more information.
*/
package org.postgresql.replication;
import java.nio.ByteBuffer;
/**
* LSN (Log Sequence Number) data which is a pointer to a location in the XLOG
*/
public final class LogSequenceNumb... |
redpesk-common/canbus-binding | low-can-binding/can/signals.cpp | <reponame>redpesk-common/canbus-binding<gh_stars>0
/*
* Copyright (C) 2015, 2016 "IoT.bzh"
* Author "<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.... |
openharmony-gitee-mirror/ace_ace_engine | frameworks/core/components/svg/flutter_render_svg_use.cpp | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* 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 ... |
imdeepmind/enviar-web | enviar/src/app/redux/users/action.js | <reponame>imdeepmind/enviar-web
import {
USERS, USERS_SUCCESS, USERS_ERROR,
USERS_INDIVIDUAL, USERS_SUCCESS_INDIVIDUAL, USERS_ERROR_INDIVIDUAL,
USER_ACTION, USER_ACTION_SUCCESS, USER_ACTION_ERROR,
USERS_FOLLOWEE, USERS_FOLLOWEE_ERROR, USERS_FOLLOWEE_SUCCESS,
USERS_FOLLOWERS, USERS_FOLLOWERS_ERROR,... |
caigy/beats | libbeat/cmd/instance/metrics/metrics_file_descriptors.go | // Licensed to Elasticsearch B.V. under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
// ownership. Elasticsearch B.V. licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use ... |
c-ehrlich/demo-projects | apps/american-british-translator/components/translator.js | const americanOnly = require('./american-only.js');
const americanToBritishSpelling = require('./american-to-british-spelling.js');
const americanToBritishTitles = require("./american-to-british-titles.js")
const britishOnly = require('./british-only.js')
class Translator {
static replaceCurry(word, replacement, ... |
michael21910/CPE-1-star-problems | UVa 10235 - Simply Emirp/Simply Emirp.cpp | #include <bits/stdc++.h>
using namespace std;
bool notPrime[1000001];
void makeTable()
{
notPrime[1] = true;
for(int i = 2; i < 1000001; i++){
if(!notPrime[i]){
for(int j = i + i; j < 1000001; j += i){
notPrime[j] = true;
}
}
}
}
int main()
{
m... |
hmrc/tax-summaries | test/connectors/ODSConnectorTest.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... |
lyubomyr-shaydariv/exolon | src/entities/DoubleLauncherBulletEntity.js | <filename>src/entities/DoubleLauncherBulletEntity.js<gh_stars>10-100
define(
[
"src/me",
"src/util",
"src/entities/BlasterExplosion",
],
function (
me,
util,
BlasterExplosion
) {
var DoubleLauncherBulletEntity = me.ObjectEntity.extend({
init: function (x, ... |
TrashToggled/MinecraftNetwork | Bungee/src/main/java/com/github/jolice/bungee/message/PrivateMessageHandler.java | package io.riguron.bungee.message;
import lombok.RequiredArgsConstructor;
import net.md_5.bungee.api.ProxyServer;
import net.md_5.bungee.api.chat.TextComponent;
import io.riguron.messaging.handler.MessageHandler;
import io.riguron.messaging.message.PrivateMessageCommand;
import java.lang.reflect.Type;
@RequiredArgsC... |
Ashindustry007/competitive-programming | uva/00100.py | #!/usr/bin/env python3
# https://uva.onlinejudge.org/external/1/100.pdf
from functools import reduce
def collatz(n):
i = 1
while n > 1:
if n % 2: n = n * 3 + 1
else: n >>= 1
i += 1
return i
while True:
try:
line = input()
except:
break
a, b = map(int, li... |
Frcsty/DocDex | discord/src/main/java/me/piggypiglet/docdex/db/tables/framework/RawServerRuleId.java | package me.piggypiglet.docdex.db.tables.framework;
import org.jetbrains.annotations.NotNull;
// ------------------------------
// Copyright (c) PiggyPiglet 2020
// https://www.piggypiglet.me
// ------------------------------
public interface RawServerRuleId extends RawServerRule {
@NotNull
String getId();
}
|
williambl/interlok | adapter/src/test/java/com/adaptris/core/services/cache/translators/ObjectMetadataCacheValueTranslatorTest.java | <reponame>williambl/interlok
package com.adaptris.core.services.cache.translators;
import javax.jms.JMSException;
import javax.jms.Queue;
import com.adaptris.core.AdaptrisMessage;
import com.adaptris.core.jms.JmsConstants;
public class ObjectMetadataCacheValueTranslatorTest extends CacheValueTranslatorBaseCase {
... |
vprilepskiy/java-a-to-z | Servlet_DAO/src/main/java/ru/job4j/model/store/repository/AbstractUser.java | <gh_stars>0
package ru.job4j.model.store.repository;
import ru.job4j.model.entity.*;
import java.util.Set;
/**
* Created by VLADIMIR on 31.01.2018.
*/
public abstract class AbstractUser {
ru.job4j.model.entity.Role role;
Address address;
Set<MusicType> musicTypes;
ru.job4j.model.entity.User user;
... |
annagitel/ocs-ci | tests/manage/storageclass/test_create_storageclass_with_same_name.py | <filename>tests/manage/storageclass/test_create_storageclass_with_same_name.py
import logging
import pytest
from ocs_ci.ocs import constants, defaults
from ocs_ci.framework.testlib import tier1, ManageTest
from ocs_ci.ocs.resources.ocs import OCS
from ocs_ci.ocs.exceptions import CommandFailed
from ocs_ci.utility impo... |
MrLoick/flixel-android | examples/flixel-examples-core/src/org/flixel/examples/box2d/TestDistanceJoint.java | package org.flixel.examples.box2d;
import org.flixel.FlxG;
import org.flixel.plugin.flxbox2d.collision.shapes.B2FlxBox;
import org.flixel.plugin.flxbox2d.dynamics.joints.B2FlxDistanceJoint;
/**
*
* @author <NAME>
*/
public class TestDistanceJoint extends Test
{
B2FlxDistanceJoint joint;
private B2Fl... |
cethap/ScrumTools.io | public/modules/phases/phases.client.module.js | <filename>public/modules/phases/phases.client.module.js
/**
* Created by ScrumTools on 11/17/14.
*/
'use strict';
// Use Application configuration module to register a new module
ApplicationConfiguration.registerModule('phases'); |
joergboe/CppWalkThrough | PointerToMember/src/PointerToMember.cpp | <gh_stars>0
//============================================================================
// Name : PointerToMember.cpp
// Author : joergboe
//============================================================================
#include <cstdlib>
#include <iostream>
using namespace std;
class Base {
public:
ch... |
ChutuveG3/ChotuveAppServer | app/services/videos.js | <reponame>ChutuveG3/ChotuveAppServer<filename>app/services/videos.js<gh_stars>0
const axios = require('axios');
const {
common: {
urls: { mediaServer },
authorization: { apiKey }
}
} = require('../../config');
const { info, error } = require('../logger');
const Video = require('../models/video');
const { da... |
Zucke/social_prove | pkg/user/service/user_service_test.go | <filename>pkg/user/service/user_service_test.go
package service
import (
"context"
"testing"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"go.mongodb.org/mongo-driver/bson/primitive"
fmock "github.com/Zucke/social_prove/pkg/auth/mock"
"github.com/Zucke/social_prove/pkg/logger"
"github... |
Widen/metadata-extractor | Source/com/drew/metadata/mp4/media/Mp4VideoDescriptor.java | <reponame>Widen/metadata-extractor<filename>Source/com/drew/metadata/mp4/media/Mp4VideoDescriptor.java<gh_stars>0
package com.drew.metadata.mp4.media;
import com.drew.lang.annotations.NotNull;
import com.drew.metadata.TagDescriptor;
import static com.drew.metadata.mp4.media.Mp4VideoDirectory.*;
public class Mp4Video... |
imlzw/jweb-boot | src/main/java/cc/jweb/boot/config/JFinalConfig.java | /*
* Copyright (c) 2020-2021 <EMAIL> jweb.cc.
*
* 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 la... |
WeCare-Online-Clinic/back-end-mysql | src/main/java/wecare/backend/model/Clinic.java | package wecare.backend.model;
import javax.persistence.*;
import org.hibernate.annotations.GenericGenerator;
import java.util.ArrayList;
import java.util.List;
@Entity
@Table(name = "clinic")
public class Clinic {
@Id
@SequenceGenerator(
name = "clinic_id_seq",
sequenceName = "clini... |
christopherhein/manager | apis/certificatemanager/v1alpha1/certificate_types.go | /*
Copyright © 2019 AWS Controller 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 required by applicable law or agreed to in ... |
npocmaka/Windows-Server-2003 | drivers/storage/tape/drivers/qic157/qic157.h |
/*++
Copyright (C) Microsoft Corporation, 1992 - 1998
Module Name:
qic157.h
Abstract:
This file contains structures and defines that are used
specifically for the tape drivers.
Revision History:
--*/
#ifndef _QIC157_H
#define _QIC157_H
//
// Internal (module wide) defines th... |
roycrippen/sicxe | src/assembler/code.cc | <reponame>roycrippen/sicxe
#include "assembler/code.h"
#include "assembler/block_table.h"
#include "assembler/literal_table.h"
#include "assembler/symbol_table.h"
using std::string;
namespace sicxe {
namespace assembler {
Code::Code() : text_file_(nullptr), start_address_(0), end_address_(0), entry_point_(0) {}
Cod... |
dmgerman/camel | components/camel-milo/src/test/java/org/apache/camel/component/milo/testing/ExampleServer.java | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... |
kristianmandrup/ai-component | lib/creator/templator.js | const { utils, Registry, Preferences} = require('ai-core');
const { _, log, ask, io, template } = utils;
const { filesIn, path } = io;
const ContextMaker = require('./context-maker');
const _eval = require('eval');
_.path = path;
function loadEval(filePath, dirname) {
let content = io.readFile(filePath + '.js', 'ut... |
andreybukhtoyarov/abukhtoyarov | chapter_001/src/main/java/ru/job4j/condition/DummyBot.java | package ru.job4j.condition;
/**
*This is simple (dummy) chat bot.
*@author <NAME> (<EMAIL>).
*@version 1.0.
*@since 27.12.2017.
*/
public class DummyBot {
/**
* This method answers questions.
* @param question - question for bot.
* @return result - answer of bot.
*/
public String answe... |
ZackMurry/forar | frontend/src/components/UserPage/Bio.js | <gh_stars>1-10
import React from 'react'
import { Typography } from '@material-ui/core'
export default function Bio ({ user }) {
return (
//bio limit 250 chars
<div style={{marginTop: '1%', width: '60%'}}>
<Typography variant='h5' style={{marginLeft: '28vh', lineHeight: 1.25}}>
... |
pchaigno/chess-service | CentralServer/src/core/Resource.java | <reponame>pchaigno/chess-service<gh_stars>1-10
package core;
import java.net.URISyntaxException;
import java.util.List;
import javax.swing.event.EventListenerList;
import javax.ws.rs.core.MediaType;
import org.eclipse.core.runtime.URIUtil;
import com.sun.jersey.api.client.Client;
import com.sun.jersey.... |
FinalCraftMC/EnderIO | enderio-base/src/main/java/crazypants/enderio/util/NNPair.java | package crazypants.enderio.util;
import javax.annotation.Nonnull;
import org.apache.commons.lang3.tuple.MutablePair;
import com.enderio.core.common.util.NullHelper;
public class NNPair<L, R> extends MutablePair<L, R> {
private static final @Nonnull String INTERNAL_LOGIC_ERROR = "internal logic Error";
private ... |
crackersamdjam/DMOJ-Solutions | CCC/ccc05j5.cpp | #include <bits/stdc++.h>
using namespace std;
string in;
inline bool go(string str){
if(str.length() < 1)
return 0;
if(str == "A")
return 1;
if(str[0] == 'B' && str[str.length()-1] == 'S'){
if(go(str.substr(1,str.length()-2)))
return 1;
}
for(int i = 1... |
gilalan/rhpontocode | src/app/pages/entities/sectors/edit/EditSectorCtrl.js | <gh_stars>0
/**
* @author <NAME>
* created on 22.04.2017
*/
(function () {
'use strict';
angular.module('BlurAdmin.pages.entities.sectors')
.controller('EditSectorCtrl', EditSectorCtrl);
/** @ngInject */
function EditSectorCtrl($scope, $filter, $state, setor, sectorAPI, campi, estados) {
console... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.