repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
MilovanTomasevic/OOP-JAVA | src/Cas10/oop10_jun2.2014.VelikiCeliBrojevi.Konzola/velikiCeliBrojevi_sabiranje/VelikiCeoBroj.java | <filename>src/Cas10/oop10_jun2.2014.VelikiCeliBrojevi.Konzola/velikiCeliBrojevi_sabiranje/VelikiCeoBroj.java
package velikiCeliBrojevi_sabiranje;
import java.util.ArrayList;
public class VelikiCeoBroj {
// znak broja
private char znak;
// lista cifara (cifre su objekti klase Integer)
private ArrayList<In... |
mattermost/mattermost-cloud | internal/mocks/awat/doc.go | <gh_stars>10-100
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
//
// Package mocks to create the mocks run go generate to regenerate this package.
package mocks
//go:generate /usr/bin/env bash -c "echo \"$(cat ../../../hack/boilerplate/boilerplate.gene... |
scp504677840/Shiro | Authenticator/sh/src/main/java/com/sh/service/impl/UserRoleServiceImpl.java | <filename>Authenticator/sh/src/main/java/com/sh/service/impl/UserRoleServiceImpl.java
package com.sh.service.impl;
import com.sh.entities.UserRole;
import com.sh.mappers.UserRoleDynamicSqlSupport;
import com.sh.mappers.UserRoleMapper;
import com.sh.service.UserRoleService;
import org.mybatis.dynamic.sql.render.Renderi... |
veosotano/lil | cpp/ast/LILNumberLiteral.h | /********************************************************************
*
* LIL Is a Language
*
* AUTHORS: <NAME>
*
* COPYRIGHT: ©2020-today: All Rights Reserved
*
* LICENSE: see LICENSE file
*
* This file represents a number written in the source code
*
*****************************... |
is191308/sniffable | src/main/java/at/fhstp/bis19/prog4/snowdogs/sniffable/repo/ImageRepo.java | <filename>src/main/java/at/fhstp/bis19/prog4/snowdogs/sniffable/repo/ImageRepo.java<gh_stars>0
package at.fhstp.bis19.prog4.snowdogs.sniffable.repo;
import at.fhstp.bis19.prog4.snowdogs.sniffable.entity.Image;
public interface ImageRepo extends BaseCrudRepository<Image> {
}
|
iliesidaniel/image-classification | graphics/charts/_cc_main.py | <filename>graphics/charts/_cc_main.py
import tkinter as tk
from graphics.charts.column_chart import ColumnChart
from utils.charts.chart_entries import ChartEntries, ChartEntry
root = tk.Tk()
root.title('Column chart dev')
f_cc = ColumnChart(parent=root)
f_cc.pack(side='top',
fill='both',
expand=T... |
ysmiles/leetcode-cpp | 301-400/344-Reverse_String-e.cpp | <gh_stars>1-10
// Write a function that takes a string as input and returns the string
// reversed.
// Example:
// Given s = "hello", return "olleh".
class Solution {
public:
string reverseString(string s) {
int i = 0, j = s.size() - 1;
while (i < j)
std::swap(s[i++], s[j--]);
... |
jasonmit/ember-luxon | tests/integration/helpers/luxon-format-test.js | import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
import { DateTime } from 'luxon';
moduleForComponent('luxon-format', 'helper:luxon-format', {
integration: true
});
test('applies a format', function(assert) {
let date = DateTime.local(2017, 5, 15, 8, 30);
thi... |
LiamOSullivan/datacube-ows | tests/test_config_toolkit.py | <filename>tests/test_config_toolkit.py
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from datacube_ows.config_toolkit import deepinherit
def test_deepinher... |
JMedinilla/CondominApp | app/src/main/java/com/jmed/condominapp/presenters/IncidentPresenterImpl.java | <filename>app/src/main/java/com/jmed/condominapp/presenters/IncidentPresenterImpl.java
package com.jmed.condominapp.presenters;
import com.jmed.condominapp.R;
import com.jmed.condominapp.interfaces.IIncidentPresenter;
import com.jmed.condominapp.pojos.Pojo_Incident;
import com.jmed.condominapp.repositories.Repository_... |
tzuyangliu/Xcode9-Runtime-Headers | IDEFoundation/IDEProvisioningMechanicContext.h | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import <objc/NSObject.h>
#import <IDEFoundation/DVTInvalidation-Protocol.h>
@class DVTStackBacktrace, IDEProvisioningMechanic, NSString;
@... |
GenaAiv/portfolio-website | node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js | <filename>node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js
// When on node 14, it validates that all of the commonjs exports
// are correctly re-exported for es modules importers.
const nodeMajor = Number(process.version.split(".")[0].slice(1))
if (nodeMajor < 14) {
console.log("Skipping beca... |
ecarm002/incubator-asterixdb | hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/operators/physical/InsertDeleteUpsertPOperator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
NoYouShutup/CryptMeme | CryptMeme/apps/routerconsole/java/src/net/i2p/router/web/BanlistRenderer.java | <reponame>NoYouShutup/CryptMeme
package net.i2p.router.web;
/*
* free (adj.): unencumbered; not under the control of others
* Written by jrandom in 2003 and released into the public domain
* with no warranty of any kind, either expressed or implied.
* It probably won't make your computer catch on fire, or eat
* yo... |
Ashwin-Paudel/Tries | OSDev/Try-0/src/kernel/io/pic.h | <reponame>Ashwin-Paudel/Tries
//
// pic.h
// KripayaOS
//
#ifndef pic_h
#define pic_h
#include <libkern/stdint.h>
#define MASTER_PIC_CMD 0x0020
#define MASTER_PIC_DATA 0x0021
#define SLAVE_PIC_CMD 0x00A0
#define SLAVE_PIC_DATA 0x00A1
#define ICW4_8086 0x01
void pic_remap(uint32_t offset1, uint32_t offset2);
#endif... |
AllaMaevskaya/AliRoot | MUON/MUONbase/AliMUONTOTCAStoreIterator.cxx | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors are ... |
daodao10/chart | sg/J36_d.js | var data=[['19950103',7.0000],
['19950104',7.5500],
['19950105',8.0500],
['19950106',7.8000],
['19950109',7.4500],
['19950110',7.6500],
['19950111',7.5500],
['19950112',7.4000],
['19950113',7.4500],
['19950116',7.9000],
['19950117',8.1500],
['19950118',7.9000],
['19950119',7.5500],
['19950120',7.4500],
['19950123',6.90... |
ratnania/caid | caid/quadrangles/quadrangles.py | <reponame>ratnania/caid
# -*- coding: UTF-8 -*-
import numpy as np
import matplotlib.tri as tri
import matplotlib.pyplot as plt
__all__ = ["Quadrangles", "QuadSticker"]
class Quadrangles(object):
def __init__(self, x, y, quads=None):
"""
a quadrangular mesh is represented by a triangulation. Howev... |
alttch/evaHI | app/src/main/java/com/altertech/evahi/dialog/listeners/DialogCallBackDeleteCancel.java | <filename>app/src/main/java/com/altertech/evahi/dialog/listeners/DialogCallBackDeleteCancel.java
package com.altertech.evahi.dialog.listeners;
/**
* Created by oshevchuk on 25.05.2018
*/
public interface DialogCallBackDeleteCancel {
void dialogDelete(int position);
void dialogCancel(int position);
}
|
raspbian-packages/openmpi | ompi/mca/osc/rdma/osc_rdma_lock.h | /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2014-2015 Los Alamos National Security, LLC. All rights
* reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#if !defined(OMPI_OSC_RDMA_LOCK_H)
#define OMPI_OSC_RDMA_LOCK_H
#inc... |
sitedata/gantry5 | platforms/common/application/positions/cards.js | <reponame>sitedata/gantry5<filename>platforms/common/application/positions/cards.js<gh_stars>0
"use strict";
var $ = require('elements'),
zen = require('elements/zen'),
ready = require('elements/domready'),
trim = require('mout/string/trim'),
keys = requi... |
alcidesrh/autobusesfuentedelnorte.com | web/bundles/acmebackend/js/autorizacionInterna.js | autorizacionInterna = {
funcionesAddOnload : function() {
console.debug("autorizacionInterna.funcionesAddOnload-init");
this._init();
this._conectEvents();
console.debug("autorizacionInterna.funcionesAddOnload-end");
},
_init : function() {
var href = $(".generatePinHid... |
paolofrb/cotson | src/abaeterno/parsing/nic_token_parser.cpp | <filename>src/abaeterno/parsing/nic_token_parser.cpp<gh_stars>0
// (C) Copyright 2006-2009 Hewlett-Packard Development Company, L.P.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PU... |
whble/trunk | target/linux/ar71xx/files/drivers/spi/spi-vsc7385.c | /*
* SPI driver for the Vitesse VSC7385 ethernet switch
*
* Copyright (C) 2009 <NAME> <<EMAIL>>
*
* Parts of this file are based on Atheros' 2.6.15 BSP
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
... |
zettadb/zettalib | src/vendor/mariadb-10.6.7/libmariadb/libmariadb/ma_net.c | /* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
2012-2016 SkySQL AB, MariaDB Corporation AB
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version... |
SlimKatLegacy/android_external_chromium_org | skia/ext/lazy_pixel_ref.cc | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "skia/ext/lazy_pixel_ref.h"
namespace skia {
#ifdef SK_SUPPORT_LEGACY_PIXELREF_CONSTRUCTOR
// DEPRECATED -- will remove after blink updates... |
MihanixA/ydb-python-sdk | kikimr/public/api/grpc/draft/dummy_pb2_grpc.py | <reponame>MihanixA/ydb-python-sdk
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from kikimr.public.api.grpc.draft import dummy_pb2 as kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2
class DummyServiceStub(object):
# missing associated documentation comment in .proto ... |
CoOwner/VisualPvP | com/google/common/io/Closeables.java | <gh_stars>0
package com.google.common.io;
import com.google.common.annotations.Beta;
import java.io.Closeable;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.annotation.Nullable;
@Beta
public final class Closeables
{
private static fi... |
bplommer/trace4cats | modules/fs2/src/main/scala/io/janstenpickle/trace4cats/fs2/package.scala | package io.janstenpickle.trace4cats
import _root_.fs2.Stream
import cats.data.WriterT
package object fs2 {
type TracedStream[F[_], A] = WriterT[Stream[F, *], Span[F], A]
}
|
kodePhile/jacklyn-codebase | jacklyn-statistics/src/main/java/com/tcdng/jacklyn/statistics/data/QuickCategoryVisual.java | /*
* Copyright 2018-2020 The Code Department
*
* 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 applica... |
tanjunchen/GoLearn | GoProgramming/Chapter04/practice4.2_test.go | <gh_stars>1-10
package Chapter03
import (
"crypto/sha256"
"crypto/sha512"
"fmt"
"hash"
"os"
"strconv"
"testing"
)
func encrypt(s string, b int64) string {
var h hash.Hash
switch b {
case 384:
h = sha512.New384()
case 512:
h = sha512.New()
default:
h = sha256.New()
}
h.Write([]byte(s))
return stri... |
DomenART/stroydrevgroup | src/components/Landing/LandingBanners.js | <gh_stars>1-10
import React from 'react'
import styles from './LandingBanners.module.sass'
import SvgIcon from '../UI/SvgIcon'
const LandingBanners = () =>
<div className={styles.banners}>
<div className="uk-grid uk-grid-small" data-uk-grid>
<div className="uk-width-1-2@s uk-width-1-4@l">
... |
Alenichel/MartinaNichelini-DistributedJobScheduling | src/main/java/Messages/Message.java | <reponame>Alenichel/MartinaNichelini-DistributedJobScheduling
package Messages;
import Enumeration.MessageType;
import java.io.Serializable;
public abstract class Message implements Serializable {
protected MessageType type;
public Message(){
this.type = type;
}
public MessageType getType()... |
smallcarp/ebean | src/test/java/com/avaje/tests/model/embedded/EInvoice.java | package com.avaje.tests.model.embedded;
import com.avaje.ebean.annotation.Cache;
import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistenc... |
StaticMian/jstorm | jstorm-core/src/main/java/com/alibaba/jstorm/metric/MetricDef.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
mdop-wh/pulumi-aws | sdk/python/pulumi_aws/datasync/nfs_location.py | <gh_stars>0
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
fro... |
duranfatih/ccd-data-store-api | src/main/java/uk/gov/hmcts/ccd/domain/service/search/global/LocationCollector.java | package uk.gov.hmcts.ccd.domain.service.search.global;
import uk.gov.hmcts.ccd.domain.model.refdata.BuildingLocation;
import uk.gov.hmcts.ccd.domain.model.refdata.LocationLookup;
import java.util.Set;
import java.util.function.BiConsumer;
import java.util.function.BinaryOperator;
import java.util.function.Function;
i... |
kemitix/kemitix-checkstyle-ruleset | builder/src/main/java/net/kemitix/checkstyle/ruleset/builder/SourcesProperties.java | package net.kemitix.checkstyle.ruleset.builder;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
/**
* Properties defining the sources.
*
* @author ... |
david-house-harvard/canvas_python_sdk | canvas_sdk/methods/comm_messages.py | <filename>canvas_sdk/methods/comm_messages.py<gh_stars>10-100
from canvas_sdk import client, utils
def list_of_commmessages_for_user(request_ctx, user_id, start_time=None, end_time=None, per_page=None, **request_kwargs):
"""
Retrieve messages sent to a user.
:param request_ctx: The request context
... |
IronPans/vary-admin | src/base/vary-ui/components/color-picker/index.js | export {default} from './color-picker'; |
flexiodata/flexio-sdk-js | examples-src/examples/pipe/render/index.js | import render_a_webpage from './render-a-webpage'
export default {
title: 'Render',
descripton: '',
items: [
render_a_webpage
]
}
|
LiskHQ/lisk-service | tests/regression/api_v2/testnet/rpc/blocks.test.js | /*
* LiskHQ/lisk-service
* Copyright © 2021 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, ... |
Half-Shot/FarnApp | src/android/support/v4/view/MotionEventCompat$EclairMotionEventVersionImpl.java | <gh_stars>1-10
// Decompiled by Jad v1.5.8e. Copyright 2001 <NAME>.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package android.support.v4.view;
import android.view.MotionEvent;
// Referenced classes of package android.support.v4.view:
// ... |
xana43/CodeLyokoMod-1.12.2 | OriginalMappings/com/Ultra_Nerd/CodeLyokoLegacy/Entity/rend/OverboardRenderer.java | package com.Ultra_Nerd.CodeLyokoLegacy.Entity.rend;
import com.Ultra_Nerd.CodeLyokoLegacy.CodeLyokoMain;
import com.Ultra_Nerd.CodeLyokoLegacy.Entity.model.ModelOverboard;
import com.Ultra_Nerd.CodeLyokoLegacy.Entity.vehicle.OverboardEntity;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.rend... |
nameless323/DXRplayground | DXRplayground/Source/DXrenderer/ResourceDX.h | #pragma once
#include "External/Dx12Helpers/d3dx12.h"
#include "DXrenderer/DXhelpers.h"
namespace DirectxPlayground
{
class ResourceDX
{
public:
ResourceDX() = default;
ResourceDX(D3D12_RESOURCE_STATES initialState);
~ResourceDX() = default;
ID3D12Resource* Get() const;
ID3D12Resource* Get();
... |
ria-ee/monitor | opendata_module/anonymizer/tests/test_anonymizer.py | <gh_stars>1-10
import os
import datetime
import unittest
from unittest.mock import Mock
from ..anonymizer import Anonymizer
from ..iio.mongodb_manager import PreviousRunManager
ROOT_DIR = os.path.abspath(os.path.dirname(__file__))
class TestAnonymizer(unittest.TestCase):
def __init__(self, *args, **kwargs):
... |
vlad-roid/OneSignal-Android-SDK | OneSignalSDK/unittest/src/test/java/com/onesignal/ShadowNotificationLimitManager.java | package com.onesignal;
import org.robolectric.annotation.Implements;
@Implements(NotificationLimitManager.class)
public class ShadowNotificationLimitManager {
private static int MAX_NUMBER_OF_NOTIFICATIONS_INT = 2;
public static int getMaxNumberOfNotificationsInt() {
return MAX_NUMBER_OF_NOTIFICATIONS_IN... |
gputtley/cmssw | Geometry/MTCCTrackerCommonData/plugins/DDTIBLayerAlgo_MTCC.cc | <reponame>gputtley/cmssw
///////////////////////////////////////////////////////////////////////////////
// File: DDTIBLayerAlgo_MTCC.cc
// Description: Makes a TIB layer and position the strings with a tilt angle
///////////////////////////////////////////////////////////////////////////////
#include <cmath>
#include... |
Whitecoin-XWC/penguin_node | pkg/topology/mock/mock.go | // Copyright 2020 The Penguin 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 mock
import (
"context"
"sync"
"github.com/penguintop/penguin/pkg/penguin"
"github.com/penguintop/penguin/pkg/topology"
)
type mock struc... |
vdrokov/components-1 | core/components-adapter-beam/test/main/java/org/talend/components/adapter/beam/example/FixedFlowReader.java | // ============================================================================
//
// Copyright (C) 2006-2017 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... |
intj-t/openvmsft | WRK-V1.2/TOOLS/crt/src/drivemap.c | /***
*drivemap.c - _getdrives
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* defines _getdrives()
*
*******************************************************************************/
#include <cruntime.h>
#include <oscalls.h>
#include <direct.h>
#if !defined (_WIN32)
#error ERRO... |
nutonchain/Deeplearning | deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/conf/layers/ZeroPadding3DLayer.java | <filename>deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/conf/layers/ZeroPadding3DLayer.java
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* t... |
premium-runner-benchmark/isle-editor | app/components/data-table/main.js | <gh_stars>0
/*
* Dragging behavior adapted from code by:
*
* Copyright (c) 2019 by <NAME> (https://codepen.io/mattlockyer/pen/LydeLj)
*
* 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 res... |
neha-b2001/wildfly-core | testsuite/domain/src/test/java/org/jboss/as/test/integration/respawn/RespawnTestCase.java | /*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... |
GenaAiv/portfolio-website | node_modules/eslint-plugin-flowtype/dist/utilities/isFlowFileAnnotation.js | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _lodash = require('lodash');
var _lodash2 = _interopRequireDefault(_lodash);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var FLOW_MATCHER = /^@(?:no)?flow$/;
exports... |
bangra1/final | A_Team-finalproject-3c34732ca41925ce8300b7051cc05707ac4c330d/src/net/sf/freecol/common/model/mission/Mission.java | /**
* Copyright (C) 2002-2015 The FreeCol Team
*
* This file is part of FreeCol.
*
* FreeCol 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 2 of the License, or
* (at your optio... |
mrbrazzi/django-misclientes | misclientes/migrations/0024_auto_20190217_1813.py | # Generated by Django 2.0.6 on 2019-02-17 17:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('misclientes', '0023_remove_cliente_signature'),
]
operations = [
migrations.RemoveField(
model_name='enterprise',
na... |
NLeSC/Platinum | ptk-vbrowser-ui/src/main/java/nl/esciencecenter/ptk/vbrowser/ui/dnd/ViewNodeContainerDragListener.java | <reponame>NLeSC/Platinum
/*
* Copyright 2012-2014 Netherlands eScience Center.
*
* 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 the following location:
*
* http://www.apache.org/li... |
omarathon/tabula | common/src/main/scala/uk/ac/warwick/tabula/data/model/Mark.scala | package uk.ac.warwick.tabula.data.model
import java.sql.Types
import javax.persistence._
import javax.validation.constraints.NotNull
import org.hibernate.annotations.{Proxy, Type}
import org.joda.time.DateTime
@Entity
@Proxy
@Access(AccessType.FIELD)
class Mark extends GeneratedId {
@OneToOne(fetch = FetchType.LA... |
shabbyrobe/golib | iotools/readeratfwdbuf_test.go | package iotools
import (
"bytes"
"io"
"testing"
)
type readCountingReaderAt struct {
inner io.ReaderAt
reads int
}
func (r *readCountingReaderAt) ReadAt(p []byte, off int64) (n int, err error) {
r.reads++
return r.inner.ReadAt(p, off)
}
func readAll(inner io.ReaderAt, scratch []byte) ([]byte, error) {
var p... |
aaarsene/o3de | Code/Legacy/CryCommon/CryAssert_Mac.h | <filename>Code/Legacy/CryCommon/CryAssert_Mac.h
/*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
// Description : Assert dialog box for Mac OS X
#... |
IKholopov/checkers-rl | CheckersUI/Checkers/Checkers/Utils.h | // Автор: <NAME>.
#pragma once
#include <Board.h>
#include <GameState.h>
std::shared_ptr<GameState> BoardToGameState( const CBoard&, bool american, Team team );
CBoard GameStateToBoard( const GameState& ); |
HewlettPackard/SimpliVity-Citrix-VCenter-Plugin | HTML5/dev/simplivity-citrixplugin-service/src/main/java/com/vmware/vim25/ArrayOfUserProfile.java | <reponame>HewlettPackard/SimpliVity-Citrix-VCenter-Plugin<filename>HTML5/dev/simplivity-citrixplugin-service/src/main/java/com/vmware/vim25/ArrayOfUserProfile.java<gh_stars>0
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6
// See <a href="http://java.su... |
utgw/programming-contest | aoj/1186.cpp | #include <cstdio>
#define REP(i,n) for(int i=0;i<n;i++)
int main(void) {
const int inf = 889464;
while(1){
int x,y,h,w;
scanf("%d%d\n",&h,&w);
if(h==0&&w==0)break;
int dia=h*h+w*w;
int diam=inf;
REP(i,150){
for(int j=1;j<i;j++){
int a=i*i+j*j;
if((dia<a||(dia==a&&j>h))&... |
cpreh/spacegameengine | libs/imagecolor/include/sge/image/color/any/print.hpp | <gh_stars>1-10
// Copyright <NAME> 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_IMAGE_COLOR_ANY_PRINT_HPP_INCLUDED
#define SGE_IMAGE_COLOR_ANY_PRINT_HPP_INCLUDED
... |
HereSinceres/atlaskit-mk-2 | packages/core/analytics/src/__tests__/unit/AnalyticsListener.test.js | // @flow
/* eslint-disable react/no-multi-comp */
/* eslint-disable react/prop-types */
import React, { Component } from 'react';
import { shallow, mount } from 'enzyme';
import { AnalyticsListener, cleanProps, withAnalytics } from '../..';
const Button = withAnalytics(
class B extends Component<{
fireAnalytic... |
takashifujii/annict | spec/requests/api/v1/organizations_spec.rb | <gh_stars>0
# frozen_string_literal: true
describe "Api::V1::Organizations" do
let(:access_token) { create(:oauth_access_token) }
let!(:organization) { create(:organization) }
describe "GET /v1/organizations" do
before do
get api("/v1/organizations", access_token: access_token.token)
end
cont... |
Sajaki/intellij-community | platform/analysis-impl/src/com/intellij/codeInsight/dataflow/SetUtil.java | package com.intellij.codeInsight.dataflow;
import java.util.HashSet;
import java.util.Set;
/**
* @author: oleg
*/
public class SetUtil {
private SetUtil() {
}
/**
* Intersects two sets
*/
public static <T> Set<T> intersect(final Set<? extends T> set1, final Set<? extends T> set2) {
if (set1.equal... |
assembla/fluent-bit | lib/chunkio/deps/crc32/crc32.c | <gh_stars>1-10
/**
* \file
* Functions and types for CRC checks.
*
* Generated on Tue Oct 30 22:09:40 2018
* by pycrc v0.9.1, https://pycrc.org
* using the configuration:
* - Width = 32
* - Poly = 0x04c11db7
* - XorIn = 0xffffffff
* - ReflectIn = True
* - XorOut = 0xf... |
imlewc/huaweicloud-sdk-go-v3 | services/bss/v2/model/model_amount_infomation_v2.go | <gh_stars>0
/*
* CSBPartnerOpenAPI
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
*/
package model
import (
"encoding/json"
"strings"
)
type AmountInfomationV2 struct {
// |参数名称:费用项。具体请参见表 DiscountItemV2。| |参数约束以及描述:费用项。具体请参见表 DiscountItemV2。... |
randolphwong/mcsema | boost/boost/spirit/home/classic/utility/rule_parser.hpp | /*==============================================================================
Copyright (c) 2006 <NAME>
http://spirit.sourceforge.net/
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
======================... |
pintoXD/stm32wb55LoRaFuota | Middlewares/ST/STM32_WPAN/ble/mesh/Src/serial_prvn.c | <filename>Middlewares/ST/STM32_WPAN/ble/mesh/Src/serial_prvn.c
/**
******************************************************************************
* @file serial_prvn.c
* @date 06-12-2019
* @brief Embedded provisioner Serial Control file
*********************************************************************... |
UsernameForGerman/tiktune | src/comp/Desktop/Trends/TrendsPageContainer.js | <reponame>UsernameForGerman/tiktune
import TrendsPage from "./TrendsPage";
import React, {useEffect} from "react";
import {connect} from "react-redux";
import trendsSelector from "../../../selectors/trendsSelector";
import {getTrendSongsThunk} from "../../../reducers/trendsReducer";
import renderList from "../../../uti... |
slusek/OG-Platform | projects/OG-Engine/src/test/java/com/opengamma/engine/view/compilation/InvalidTargetDependencyNodeFilterTest.java | /**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.engine.view.compilation;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
import java.util.Set;
import org.testng.an... |
iamandyjones/spotter-app | src/components/WorkoutForm.js | <gh_stars>0
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import { Redirect } from 'react-router-dom';
import Dialog from './Dialog';
import TextField from './TextField';
class WorkoutForm extends Component {
constructor(props){
super(props);
this.state = { title: this... |
HeRaNO/OI-ICPC-Codes | UESTC/2503.cpp | #include <bits/stdc++.h>
using namespace std;
int n,x;
int main()
{
scanf("%d",&n);
for (int i=1;i<=n;i++)
{
scanf("%d",&x);
if (x&1) return puts("Alice"),0;
}
puts("Bob");
return 0;
} |
yeeeeeeti/3D_feature_extract | src/asiUI/datum/asiUI_DatumViewBase.cpp | //-----------------------------------------------------------------------------
// Created on: 22 February 2019
//-----------------------------------------------------------------------------
// Copyright (c) 2019-present, <NAME>, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, w... |
miursdf56g/sdfsdfds | x/thorchain/types/type_liquidity_provider.go | <reponame>miursdf56g/sdfsdfds<filename>x/thorchain/types/type_liquidity_provider.go
package types
import (
"errors"
"fmt"
"github.com/cosmos/cosmos-sdk/codec"
"gitlab.com/thorchain/thornode/common"
)
var _ codec.ProtoMarshaler = &LiquidityProvider{}
// LiquidityProviders a list of liquidity providers
type Liqu... |
rsms/gosched-cpp | sched/src/m.h | // M – machine (worker thread)
#pragma once
#include "atomic.h"
#include "t.h" // for M::t0, might be able to work around this
#include "os.h"
#include "note.h"
struct P;
using MCallFun = void(*)(M&,T&);
struct M {
T t0; // task with scheduling stack
T* curt = nullptr; // current ... |
levendlee/leetcode | c++/leetcode/0206-Reverse_Linked_List-E.cpp | // 206 Reverse Linked List
// https://leetcode.com/problems/reverse-linked-list
// version: 1; create time: 2020-01-12 12:05:27;
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
Li... |
hv6erT/WebIdea | editor/codemirror.js | const {EditorState} = require("@codemirror/state");
const {EditorView} = require("@codemirror/view");
const {HighlightStyle, tags} = require("@codemirror/highlight");
module.exports = {EditorView, EditorState, HighlightStyle, tags}; |
ilinksolutionsbr/kettle-beam | src/main/java/org/kettle/beam/steps/io/BeamInput.java | <filename>src/main/java/org/kettle/beam/steps/io/BeamInput.java<gh_stars>0
package org.kettle.beam.steps.io;
import com.google.cloud.storage.contrib.nio.CloudStorageFileSystem;
import org.kettle.beam.core.util.Strings;
import org.kettle.beam.metastore.FieldDefinition;
import org.kettle.beam.metastore.FileDefinition;
i... |
Lemon42/resolve-ai-mobile | src/routes/auth.routes.js | <gh_stars>0
import React from 'react';
import {createStackNavigator} from '@react-navigation/stack';
// Pages
import FrontPage from '../pages/FrontPage';
import CreateAccount from '../pages/CreateAccount';
import SignIn from '../pages/SignIn';
const Stack = createStackNavigator();
function AuthStack() {
return (
... |
omikabir/omEngin | Z_ALL_FILE/Py1/semqry_test.py | <filename>Z_ALL_FILE/Py1/semqry_test.py
import pandas as pd
import cx_Oracle
import time
import os
from datetime import date
import win32com.client
pt = os.getcwd() + '//T.csv'
conn = cx_Oracle.connect('SEMHEDB', 'SEMHEDB', 'ossam-cluster-scan.robi.com.bd:1721/RBPB.robi.com.bd')
Qr1 = "SELECT IDENTIFIER,CUSTOMATTR15,S... |
ghiloufibelgacem/jornaldev | CoreJavaProjects/CoreJavaExamples/src/com/journaldev/log/LoggingExample.java | <reponame>ghiloufibelgacem/jornaldev
package com.journaldev.log;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.logging.ConsoleHandler;
import java.util.logging.FileHandler;
import java.util.logging.Handler;
import java.util.logging.Level;
import java.util.logging.LogManager;
import java.... |
noahhusby/Sledgehammer | bungeecord/src/main/java/com/noahhusby/sledgehammer/proxy/config/SledgehammerConfig.java | /*
* MIT License
*
* Copyright 2020-2021 noahhusby
*
* 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, ... |
spartan263/vizio_oss | directfb/Source/DirectFB/gfxdrivers/cyber5k/cyber5k_alpha.c | /*
(c) Copyright 2001-2009 The world wide DirectFB Open Source Community (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by <NAME> <<EMAIL>>,
<NAME> <<EMAIL>>,
<NAME> <<EMAIL>>,
<NAME> <<EMAIL>> and
... |
tdiesler/gravia | repository/src/test/java/org/jboss/test/gravia/repository/MemoryRepositoryStorageTestCase.java | package org.jboss.test.gravia.repository;
/*
* #%L
* Gravia :: Repository
* %%
* Copyright (C) 2012 - 2014 JBoss by Red Hat
* %%
* 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
*
* ... |
RealTimeChris/DiscordCoreAPI | Headers/ReactionEntities.hpp | <gh_stars>100-1000
// ReactionEntities.hpp - Header for the Reaction related classes and structs.
// May 13, 2021
// <NAME>.
// https://github.com/RealTimeChris
#pragma once
#include "IndexInitial.hpp"
#include "FoundationEntities.hpp"
#include "UserEntities.hpp"
#include "JSONIfier.hpp"
namespace DiscordCoreAPI {
... |
JeppeDruedahl/IOGE | HousingModel.py | # -*- coding: utf-8 -*-
"""HousingModel
Main model class
"""
import time
import numpy as np
import pandas as pd
# consav package
from consav import ModelClass
from consav.misc import elapsed, nonlinspace, markov_rouwenhorst
# local
import post_decision
import negm
import nvfi
import simulate
def solve_model(model... |
hajadelmas/homners | src/templates/operation.js | <reponame>hajadelmas/homners
import React from "react"
import Layout from "../components/layout"
import SEO from "../components/seo"
import { graphql, Link } from "gatsby"
import Slider from "react-slick"
import { GatsbyImage } from 'gatsby-plugin-image'
import "slick-carousel/slick/slick.css";
import "slick-carouse... |
mauryakrishna/experiences-client | src/utils/didExperienceContainsText.js | <filename>src/utils/didExperienceContainsText.js<gh_stars>0
/**
* input => editor JSON
* output => Boolean if any of text property has value
*/
const isContainText = (valueChildren) => {
const childrensLen = valueChildren.length
for(let i=0; i<=childrensLen-1; i++) {
const child = valueChildren[i]
if(chi... |
leetobin/firebrick | coreboot/src/vendorcode/amd/agesa/f15/Proc/CPU/Feature/cpuSlit.c | <reponame>leetobin/firebrick
/* $NoKeywords:$ */
/**
* @file
*
* AMD SLIT, ACPI table related API functions.
*
* Contains code that generates the SLIT table
*
* @xrefitem bom "File Content Label" "Release Content"
* @e project: AGESA
* @e sub-project: CPU
* @e \$Revision: 54901 $ @e \$Date: 2011-06-13... |
priestkings/znhg | wechatapp/pages/index/index.js | var mta= require('../../analysis/mta_analysis.js')
var api = require('../../api.js');
var app = getApp();
var share_count = 0;
var width = 260;
var int = 1;
Page({
data: {
x: wx.getSystemInfoSync().windowWidth,
y: wx.getSystemInfoSync().windowHeight,
left: 0,
show_notice: ... |
ScalablyTyped/SlinkyTyped | w/winrt/src/main/scala/typingsSlinky/winrt/Windows/Graphics/Imaging/BitmapFlip.scala | <reponame>ScalablyTyped/SlinkyTyped<filename>w/winrt/src/main/scala/typingsSlinky/winrt/Windows/Graphics/Imaging/BitmapFlip.scala
package typingsSlinky.winrt.Windows.Graphics.Imaging
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlob... |
sail-ml/sail | sail/csrc/python/py_dtypes/py_dtype_def.h | <reponame>sail-ml/sail
#pragma once
#include <Python.h>
#include <structmember.h>
#include <chrono>
#include <iostream>
#include "core/dtypes.h"
#include "numpy/arrayobject.h"
#include "../macros.h"
typedef struct {
PyObject_HEAD PyObject *base_object = NULL;
Dtype dtype;
int dt_val;
} PyDtype;
////////... |
jultar2000/Underwater_Drone | Dron/src/Macierz.cpp | #include "Macierz.hh"
#include "Wektor.hh"
using namespace std;
/*
* Tutaj nalezy zdefiniowac odpowiednie metody
* klasy Macierz<Typ,SWymiar>, ktore zawieraja wiecej kodu
* niz dwie linijki.
* Mniejsze metody mozna definiwac w ciele klasy.
*/
template<class Typ, int SWymiar>
Macierz <Typ,SWymiar>::Macier... |
bartekpacia/informatyka | zbior/65/reader.py | def read_data() -> list[tuple[str, str, float]]:
ulamki: list[tuple[str, str, float]] = []
with open("dane_ulamki.txt") as f:
for line in f:
sline = line.strip()
licznik, mianownik = sline.split()
ulamek_wartosc = int(licznik) / int(mianownik)
ulamek = (... |
Aaron1011/Glowstone | src/main/java/net/glowstone/net/message/play/entity/EntityMetadataMessage.java | <filename>src/main/java/net/glowstone/net/message/play/entity/EntityMetadataMessage.java
package net.glowstone.net.message.play.entity;
import com.flowpowered.networking.Message;
import net.glowstone.entity.meta.MetadataMap;
import java.util.List;
public final class EntityMetadataMessage implements Message {
pr... |
SRavit1/esp-dl | 3PXNet_models/face_detection/3pxnet-model-autogen/old/onet_ternarized_low/bn1.h | <gh_stars>0
#define bn1_thresh {\
-13107, \
109226, \
-139810, \
30583, \
-157286, \
83012, \
-205346, \
-214084, \
61166, \
-4369, \
144179, \
292727, \
-401954, \
235929, \
-139810, \
0, \
166024, \
166024, \
-109226, \
-78643, \
-43690, \
218453, \
-249036, \
266513, \
-4369, \
-104857, \
-87381, \
292727, \
-209715... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.