repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
mooshak-dcc/mooshak-2 | src/main/java/pt/up/fc/dcc/mooshak/client/form/admin/TextDateBox.java | package pt.up.fc.dcc.mooshak.client.form.admin;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.gwtbootstrap3.extras.datetimepicker.client.ui.base.events.ChangeDateEvent;
import org.gwtbootstrap3.extras.datetimepicker.client.ui.base.events.ChangeDateHandler;
import ... |
liuxing521a/xcnet | xcnet-common/src/test/java/org/itas/xcnet/common/Ext2Impl3.java | /**
*
*/
package org.itas.xcnet.common;
import org.itas.xcnet.common.Extension;
import org.itas.xcnet.common.URL;
/**
* @author liuzhen<<EMAIL>>
* @createTime 2015年5月13日上午10:23:53
*/
@Extension("impl3")
public class Ext2Impl3 implements Ext2
{
@Override
public String echo(URLHolder url, String s)
{
return... |
eloemosynator/YbEasyCli | yb_sysprocs_rel.py | #!/usr/bin/env python3
"""
USAGE:
yb_sysprocs_rel.py [options]
PURPOSE:
All user "relations" (tables, views, & sequences) in all databases.
OPTIONS:
See the command line help message for all options.
(yb_sysprocs_rel.py --help)
Output:
The report as a formatted table, pipe seperated val... |
kwark/geotrellis | vector/src/main/scala/geotrellis/vector/triangulation/DelaunayStitcher.scala | <gh_stars>0
/*
* Copyright 2018 Azavea
*
* 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 agr... |
mercycorps/TolaWorkflow | workflow/migrations/0045_auto_20190425_1109.py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2019-04-25 18:09
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('workflow', '0044_auto_2019... |
andreimironenko/graphics-sdk | gfx_rel_es6.x/pds_aux_vtx_sizeof.h | /* Auto-generated file - don't edit. */
#define PDS_AUXILIARYVERTEX_SIZE (120UL)
|
alejo8591/unipiloto-am-4 | modules/module_3/lab3/index.js | <reponame>alejo8591/unipiloto-am-4<gh_stars>10-100
/* Variables t elementos Booleanos */
var verdadero = true;
var falso = false;
/* Elementos de Comparación */
/* igualdad (==) */
console.log('Cuando es 1 == 1 es: ' + (1 == 1));
console.log('Cuando es "1" == 1 es: ' + ("1" == 1));
console.log('Cuando es 0 == fal... |
jai-deepsource/carbonapi | expr/functions/cairo/png/graphutil.go | package png
import (
"image/color"
"strconv"
"strings"
)
func getBool(s string, def bool) bool {
if s == "" {
return def
}
switch s {
case "True", "true", "1":
return true
case "False", "false", "0":
return false
}
return def
}
func getString(s, def string) string {
if s == "" {
return def
}
... |
slemjet/problems_and_solutions | questions_leetcode/medium/src/main/java/us/slemjet/leetcode/medium/tasks_451_500/FourSumII.java | <filename>questions_leetcode/medium/src/main/java/us/slemjet/leetcode/medium/tasks_451_500/FourSumII.java
package us.slemjet.leetcode.medium.tasks_451_500;
import java.util.HashMap;
/**
* 454. 4Sum II
*/
public class FourSumII {
/**
* Runtime: 14.22%
* Memory Usage: 5.10%
*/
public int fourS... |
bingchunjin/1806_SDK | uboot/arch/arc/include/asm/sections.h | /*
* Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef __ASM_ARC_SECTIONS_H
#define __ASM_ARC_SECTIONS_H
#include <asm-generic/sections.h>
extern ulong __text_end;
extern ulong __ivt_start;
extern ulong __ivt_end;
extern ulong __image_copy_start;
#endif... |
RichardBarry/core-v-freertos | target/core-v-mcu/include/system_core_v_mcu_metal.h | /*
* Copyright 2020 ETH Zurich
*
* 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 i... |
DrFaust92/terraformer | vendor/github.com/aws/aws-sdk-go-v2/service/cloudfront/api_op_UpdateFieldLevelEncryptionProfile.go | <reponame>DrFaust92/terraformer
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package cloudfront
import (
"context"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
"github.com/aws/aws-sdk-go-v2/private/protocol"
)
type UpdateFieldLevelEncryptionProfileIn... |
dhis2/d2-import-export-app | src/components/Inputs/ObjectType.js | <filename>src/components/Inputs/ObjectType.js<gh_stars>0
import i18n from '@dhis2/d2-i18n'
import { SingleSelectFieldFF } from '@dhis2/ui'
import React from 'react'
import { StyledField } from '../index.js'
const objectTypeOptions = [
{ value: 'dataSets', label: i18n.t('Data sets') },
{ value: 'programs', labe... |
tedteng/test-infra | pkg/testmachinery/testflow/flow.go | // Copyright 2019 Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complian... |
bayramcicek/py-repo | java-rep/java009/J_dog.java | package java009;
/**
* created by cicek on 03.11.2018 23:00
*/
public class J_dog extends J_cat {
// public void makeSound(){
// System.out.printf("Dooooog!!!\n");
//// super.makeSound();
// }
}
|
pilif0/open-desert | src/main/java/net/pilif0/open_desert/ecs/ComponentFieldException.java | <gh_stars>0
package net.pilif0.open_desert.ecs;
/**
* Exception for when a there is problem with a component field when instantiating the component.
*
* @author <NAME>
* @version 1.0
*/
public class ComponentFieldException extends RuntimeException {
public ComponentFieldException(String message) {
sup... |
alonmm/VCSamples | VC2010Samples/MFC/controls/localize/localctl.cpp | // localctl.cpp : Implementation of the CLocalizeCtrl OLE control class.
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and relate... |
spacemonkeydelivers/riscv_security_contest_project | tests/c/libc_sec/ns_malloc/ns_malloc.c | <reponame>spacemonkeydelivers/riscv_security_contest_project<gh_stars>1-10
#include <soc/traps.h>
#include <stdlib.h>
#include <stdio.h>
void secure_monitor(int n, void* context)
{
(void)context;
if (n == RISCV_INT_SM_PANIC) {
printf("security panic detected! Test Failure!\n");
exit(EXIT_FAIL... |
rolfyone/discovery | src/main/java/org/ethereum/beacon/discovery/message/handler/TalkReqHandler.java | <filename>src/main/java/org/ethereum/beacon/discovery/message/handler/TalkReqHandler.java
/*
* SPDX-License-Identifier: Apache-2.0
*/
package org.ethereum.beacon.discovery.message.handler;
import java.util.concurrent.CompletableFuture;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logg... |
deepsec-inc/deepchain | core/ledger/util/txvalidationflags_test.go | /*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package util
import (
"testing"
"deepchain/protos/peer"
"github.com/stretchr/testify/assert"
)
func TestTransactionValidationFlags(t *testing.T) {
txFlags := NewTxValidationFlagsSetValue(10, peer.TxValidationCode_VALID)
assert.... |
bmresearch/ccex | ftx/models/websocket/operations.go | <reponame>bmresearch/ccex
package websocket
type (
// BaseOperation is the base of the message, all common attributes.
BaseOperation struct {
Op string `json:"op"`
}
// AuthenticationMessage holds the authentication-relevant information.
AuthenticationMessage struct {
Key string `json:"key"`
Signatur... |
ggcaponetto/nunuStudio | source/editor/gui/tab/scene/controls/EditorControls.js | "use strict";
/**
* A editor controls objects is used to control the camera inside of the editor.
*
* @class EditorControls
* @extends {THREE.Group}
*/
function EditorControls()
{
THREE.Group.call(this);
/**
* Camera object attached to this controls.
*
* @property camera
* @type {Object3D}
*/
this.c... |
imxiangpeng/webrtc | modules/remote_bitrate_estimator/tools/bwe_rtp_play.cc | <filename>modules/remote_bitrate_estimator/tools/bwe_rtp_play.cc
/*
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property ... |
solidnerd/terraform-provider-acsengine | internal/operations/client.go | package operations
import (
"context"
"fmt"
"path"
"github.com/Azure/acs-engine/pkg/acsengine"
"github.com/Azure/acs-engine/pkg/api"
"github.com/Azure/acs-engine/pkg/armhelpers"
"github.com/Azure/acs-engine/pkg/helpers"
"github.com/Azure/acs-engine/pkg/i18n"
"github.com/Azure/terraform-provider-acsengine/int... |
zhaobobin/metuAdmin | src/pages/ContentManage/OssList.js | <reponame>zhaobobin/metuAdmin
import React from 'react';
export default class OssList extends React.Component {
render() {
return <div>OssList</div>;
}
}
|
AsPJT/CrafterraProterozoic | include/Crafterra/Basic/Resource.hpp | /*##########################################################################################
Crafterra Library 🌏
[Planning and Production]
2017-2022 Kasugaccho
2018-2022 As Project
[Contact Us]
<EMAIL>
https://github.com/AsPJT/Crafterra
[License]
Distributed under the CC0 1.0.
https://creativecommons.or... |
khurtado/WMCore | src/python/WMCore/WorkQueue/Policy/Start/__init__.py | <filename>src/python/WMCore/WorkQueue/Policy/Start/__init__.py
#!/usr/bin/env python
"""
WorkQueue Start Policy
"""
from copy import deepcopy
from WMCore.WMFactory import WMFactory
startFac = WMFactory(__name__, __name__)
def startPolicy(name, startMap, rucioObj, logger=None):
"""Load a start policy"""
# Ta... |
cbednarski/ifs-python | ifs/source/consul-template.py | <gh_stars>1-10
version = '0.14.0'
version_cmd = 'consul-template -v'
depends = ['unzip']
download_url = 'https://releases.hashicorp.com/consul-template/VERSION/consul-template_VERSION_linux_amd64.zip'
install_script = """
unzip -o consul-template_VERSION_linux_amd64.zip
mv -f consul-template /usr/local/bin/consul-templ... |
amnesic/cartodb | lib/tasks/relocator/rdbms.rb | # encoding: utf-8
module CartoDB
module Relocator
class RDBMS
def initialize(connection)
@connection = connection
end #initialize
def rename_user(existing_username, new_username)
connection.run("
ALTER USER #{existing_username}
RENAME TO #{new_username}
... |
chef/azure-sdk-for-ruby | management/azure_mgmt_logic/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12acknowledgement_settings.rb | <gh_stars>0
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Logic::Mgmt::V2018_07_01_preview
module Models
#
# The X12 agreement acknowledgement settings.
#
class X12AcknowledgementSettings
... |
foxsake/infuzion-sgp | kernel/modules/drivers/char/brcm/fuse_ril/CAPI2_CIB/modem/capi/public/sms_proc.h | <filename>kernel/modules/drivers/char/brcm/fuse_ril/CAPI2_CIB/modem/capi/public/sms_proc.h
/****************************************************************************
*
* Copyright (c) 2007-2008 Broadcom Corporation
*
* Unless you and Broadcom execute a separate written software license
* agreement gover... |
zhenkunhe/Developer-Tutorial | C++/06_Dl/UniqueAndStaticVar/libunique/inc/UniqueVariable.hpp | <filename>C++/06_Dl/UniqueAndStaticVar/libunique/inc/UniqueVariable.hpp
/**
* @file UniqueVariable.hpp
* @author alex
* @date 2017年2月24日
* @version 1.0
*
* @brief <brief>
*
* @section DESCRIPTION
*
* Your description
*
*/
#ifndef _UNIQUEVARIABLE_HPP_
#define _UNIQUEVARIABLE_HPP_
#inclu... |
dandycheung/jmonet | src/main/java/com/defano/jmonet/model/PaintToolType.java | <reponame>dandycheung/jmonet
package com.defano.jmonet.model;
import com.defano.jmonet.tools.*;
import com.defano.jmonet.tools.base.Tool;
/**
* An enumeration of paint tools provided by this library.
*/
public enum PaintToolType {
ARROW(ArrowTool.class),
PENCIL(PencilTool.class),
RECTANGLE(RectangleTool... |
cyroxx/meine-stadt-transparent | mainapp/models/body.py | from django.conf import settings
from django.db import models
from django.urls import reverse
from .helper import DefaultFields, ShortableNameFields
from .legislative_term import LegislativeTerm
from .location import Location
class Body(DefaultFields, ShortableNameFields):
center = models.ForeignKey(
Loc... |
player1537-forks/spack | var/spack/repos/builtin/packages/cxxtest/package.py | <filename>var/spack/repos/builtin/packages/cxxtest/package.py
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Cxxtest(Package):
"""C++ uni... |
Ars2014/ulang | builtins/pow.go | package builtins
import (
"math"
"github.com/Ars2014/ulang/object"
"github.com/Ars2014/ulang/typing"
)
func pow(x, y int64) int64 {
p := int64(1)
for y > 0 {
if y&1 != 0 {
p *= x
}
y >>= 1
x *= x
}
return p
}
func Pow(args ...object.Object) object.Object {
if err := typing.Check(
"pow", args,
... |
prodkt/carbon-platform | .lintstagedrc.js | <reponame>prodkt/carbon-platform<gh_stars>0
/*
* Copyright IBM Corp. 2021, 2022
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
module.exports = {
'**/*.(js|jsx|ts|tsx)': ['prettier --write', 'eslint --fix'],
'**/*.scss': [... |
mdg/snapl | src/server_message.h | <reponame>mdg/snapl
#ifndef SNAPL_SERVER_MESSAGE_H
#define SNAPL_SERVER_MESSAGE_H
/**
* Copyright 2008 <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... |
candrews/gradle | subprojects/publish/src/main/java/org/gradle/api/publish/PublishingExtension.java | <gh_stars>1-10
/*
* Copyright 2012 the original author or 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 requ... |
npocmaka/Windows-Server-2003 | shell/osshell/ep/freecell/game.c | /****************************************************************************
Game.c
June 91, JimH initial code
Oct 91, JimH port to Win32
Routines for playing the game are here and in game2.c
****************************************************************************/
#include "freecell.h... |
tobiasweibel/codacy-eslint | src/main/resources/docs/tests/no-nested-ternary.js | //#Patterns: no-nested-ternary
//#Info: no-nested-ternary
var foo = bar ? baz : qux === quxx ? bing : bam;
//#Info: no-nested-ternary
var thing = foo ? bar : baz === qux ? quxx : foobar;
if (foo) {
thing = bar;
} else if (baz === qux) {
thing = quxx;
} else {
thing = foobar;
}
|
oikomi/FishRPC | core/src/main/java/org/miaohong/fishrpc/core/rpc/register/Register.java | package org.miaohong.fishrpc.core.rpc.register;
import org.miaohong.fishrpc.core.annotation.Spi;
import org.miaohong.fishrpc.core.rpc.base.Destroyable;
import org.miaohong.fishrpc.core.rpc.client.ConsumerConfig;
import org.miaohong.fishrpc.core.rpc.service.config.ServiceConfig;
@Spi
public interface Register extends... |
sgrif/crates.io | app/models/user.js | <reponame>sgrif/crates.io
import DS from 'ember-data';
export default DS.Model.extend({
email: DS.attr('string'),
name: DS.attr('string'),
login: DS.attr('string'),
api_token: DS.attr('string'),
avatar: DS.attr('string'),
url: DS.attr('string'),
});
|
easylogic/editor | src/editor-layouts/common/body-panel/render-view/draw-panels/DragAreaView.js | <reponame>easylogic/editor
import { POINTERSTART, IF, SUBSCRIBE } from "el/sapa/Event";
import { Length } from "el/editor/unit/Length";
import { KEY_CODE } from "el/editor/types/key";
import { END, MOVE } from "el/editor/types/event";
import { EditorElement } from "el/editor/ui/common/EditorElement";
import './DragAre... |
saketrule/smellycat-with-vc | myrepo/app/src/main/java/org/liberty/android/fantastischmemo/modules/AppModules.java | <reponame>saketrule/smellycat-with-vc<gh_stars>1-10
package org.liberty.android.fantastischmemo.modules;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import org.greenrobot.eventbus.EventBus;
import org.liberty.android.fantastischmemo.common.AMA... |
josepfo/lamassu-server | new-lamassu-admin/src/pages/Customers/CustomerData.styles.js | <reponame>josepfo/lamassu-server
import { offColor } from 'src/styling/variables'
export default {
header: {
display: 'flex',
flexDirection: 'row',
marginBottom: 15
},
title: {
marginTop: 7,
marginRight: 24
},
editIcon: {
marginTop: 5
},
cardIcon: {
marginTop: 7
},
viewIco... |
MartinGeisse/public | name.martingeisse.slave-services/src/main/java/name/martingeisse/slave_services/application/Initializer.java | <reponame>MartinGeisse/public
/**
* Copyright (c) 2012 <NAME>
*
* This file is distributed under the terms of the MIT license.
*/
package name.martingeisse.slave_services.application;
import java.util.EnumSet;
import java.util.Locale;
import javax.servlet.DispatcherType;
import javax.servlet.Filter;
import javax... |
mupraj10/c2 | server/db/models/pet.spec.js | <filename>server/db/models/pet.spec.js
const {expect} = require('chai')
const db = require('../index')
const Pet = db.model('pet')
describe('Pet model', () => {
beforeEach(() => {
return db.sync({force: true})
})
})
|
skdx/peragraph | src/com/peralex/utilities/ui/graphs/constellationGraph/SquareLayout.java | <filename>src/com/peralex/utilities/ui/graphs/constellationGraph/SquareLayout.java
package com.peralex.utilities.ui.graphs.constellationGraph;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Insets;
import java.awt.LayoutManager2;
/**
* A Layout manager that sizes it'... |
kagwicharles/Seniorproject-ui | node_modules/@iconify/icons-ic/baseline-no-drinks.js | var data = {
"body": "<path d=\"M5.83 3H21v2l-6.2 6.97L9.83 7h6.74l1.78-2H7.83l-2-2zm13.95 19.61L18 20.83V21H6v-2h5v-5l-1.37-1.54l-8.24-8.24L2.8 2.81L3 3l18.19 18.19l-1.41 1.42zM16.17 19L13 15.83V19h3.17z\" fill=\"currentColor\"/>",
"width": 24,
"height": 24
};
exports.__esModule = true;
exports.default = data;
|
DennyGD/JavaSciptBasics | ArraysMethods/scripts/makePerson.js | /*
Write a function for creating people.
Each person must have firstname, lastname, age and gender (true is female, false is male)
Generate an array with ten people with different names, ages and genders
*/
var clones = [],
cloneName = 'John',
initialAge = 20,
isFemale;
for (var i = 1; i <= 10; i += 1 ) ... |
DTenore/skulpt | src/lib/urllib2.py | <filename>src/lib/urllib2.py
import _sk_fail; _sk_fail._("urllib2")
|
laurentperrinet/homebrew-cask | Casks/lyn.rb | <gh_stars>0
class Lyn < Cask
url 'http://www.lynapp.com/downloads/Lyn-1.3.4.dmg'
homepage 'http://www.lynapp.com/'
version '1.3.4'
sha1 '9d9e3dae26f6236bb930ee0b92eb96e46ea74a7c'
link 'Lyn.app'
end
|
andy176631/skb-java-interfaces | src/main/java/de/vandermeer/skb/interfaces/transformers/textformat/String_To_RightPadded.java | <gh_stars>1-10
/* Copyright 2016 <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/LICENSE-2.0
*
* Unless required by a... |
MdUsmanAnsari/College-Management-System | src/com/usman/utilities/Utilities.java | package com.usman.utilities;
import com.usman.database.Database;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.scene.control.TextField;
import javafx.scene.image.Image;
import javafx.scene.paint.ImagePattern;
import javafx.scene.shape.Shape;
import javafx.stage.Fil... |
opengauss-mirror/Yat | openGaussBase/testcase/GUC/ERRORLOG/Opengauss_Function_Guc_ErrorLog_Case0003.py | """
Copyright (c) 2022 Huawei Technologies Co.,Ltd.
openGauss is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W... |
spurious/safecode-mirror | lib/Utility/BreakConstantStrings.cpp | <filename>lib/Utility/BreakConstantStrings.cpp
//===- BreakConstantStrings.cpp - Make global string constants non-constant - //
//
// The SAFECode Compiler
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See ... |
DwayneJengSage/BridgePF | test/org/sagebionetworks/bridge/dynamodb/DynamoReportDataDaoTest.java | package org.sagebionetworks.bridge.dynamodb;
import static org.junit.Assert.assertEquals;
import static org.sagebionetworks.bridge.TestConstants.TEST_STUDY;
import java.util.Set;
import org.joda.time.DateTime;
import org.joda.time.LocalDate;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
imp... |
mcdeoliveira/NC | NCGB/Compile/src/OBSOLETE2009/SortPattern.hpp | <reponame>mcdeoliveira/NC
// (c) <NAME> 1999
// SortPattern.hpp
#ifndef INCLUDED_SORTPATTERN_H
#define INCLUDED_SORTPATTERN_H
#include "SortPattern.hpp"
#pragma warning(disable:4786)
#include "Choice.hpp"
#ifdef HAS_INCLUDE_NO_DOTS
#include <map>
#else
#include <map.h>
#endif
#include "GroebnerRule.hpp"
#include "Ru... |
viktor-silakov/syngrisi | lib/getElementsByPixPositionsFromDump.js | const getElementsByPositionFromDump = function getElementsByPositionFromDump(x, y, dump, offset = 1) {
return new Promise(function (resolve, reject) {
try {
// check if position is gets into dumped elements rects boundaries
let data = dump
.filter(function (item) {
... |
lpea/cppinclude | src/reporter/impl/most_impact_reporter/rp_most_impact_reporter_detail.hpp | <reponame>lpea/cppinclude<gh_stars>100-1000
#pragma once
#include "reporter/impl/tools/rp_file_with_count.hpp"
//------------------------------------------------------------------------------
namespace model_includes
{
class IncludeLocation;
class File;
}
//----------------------------------------------------------... |
filosunam/oceanic-exchanges | api/routers/admin/pages/detail.js | const moment = require('moment');
const Route = require('lib/router/route');
const { Page } = require('models');
module.exports = new Route({
method: 'get',
path: '/:id',
handler: async function(ctx) {
const { id: _id } = ctx.params;
const page = await Page.findOne({ _id });
ctx.assert(page, 404, 'P... |
LorranSutter/URI-Online-Judge | Mathematics/1197.py | while True:
try:
v, t = tuple(map(int,input().split()))
print(v*t*2)
except:
break
|
nageshwarrao19/BUILD | BUILD_Auth/client/login/index.js | 'use strict';
module.exports = angular.module('account.login', [])
.config(function ($stateProvider) {
$stateProvider.state('login', {
url: '/login',
templateUrl: './resources/norman-auth-client/login/login.html',
controller: 'LoginCtrl'
});
})
.controller('LoginCtrl', require('./login.controller'));
|
thedavisproject/davis-shared | test/protocolTest.js | const {expect} = require('chai');
const protocol = require('../src/protocol');
describe('Protocols', function(){
it('should properly register protocol', function(){
const proto = protocol({
foo: ['data']
});
proto('type1', {
foo: function(dataIgnored){
return 'bar';
}
});... |
soul2zimate/galleon-plugins | galleon-plugins/src/main/java/org/wildfly/galleon/plugin/JandexIndexer.java | /*
* Copyright 2016-2018 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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://ww... |
incubos/icfpcontest2021 | src/main/java/icfpc2021/actions/MoveVertexToGridAction.java | <reponame>incubos/icfpcontest2021<filename>src/main/java/icfpc2021/actions/MoveVertexToGridAction.java
package icfpc2021.actions;
import icfpc2021.model.Figure;
import icfpc2021.model.Vertex;
import icfpc2021.viz.State;
import org.jetbrains.annotations.NotNull;
import java.awt.geom.AffineTransform;
import java.util.A... |
turnonline/ecosystem-admin-widgets | src/main/java/biz/turnonline/ecosystem/widget/shared/rest/payment/Bill.java | <filename>src/main/java/biz/turnonline/ecosystem/widget/shared/rest/payment/Bill.java
/*
* Copyright (c) 2020 TurnOnline.biz s.r.o. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free ... |
liuzhen21/core | pkg/mapper/expression/expression_test.go | <filename>pkg/mapper/expression/expression_test.go
package expression
import (
"context"
"testing"
"github.com/stretchr/testify/assert"
"github.com/tkeel-io/tdtl"
)
func Test_Expression(t *testing.T) {
exprIns, err := NewExpr("device234.properties.temp2", nil)
assert.Nil(t, err)
t.Log(exprIns.Sources())
res,... |
aschmach/client-mimis | src/components/story/Story.js | <gh_stars>0
import React from "react"
import Box from "./box/Box"
import Text from "./text/Text"
import Profile from "./profile/Profile"
import Newsletter from "./newsletter/Newsletter"
import { infoBox } from "./infoBox"
import { infoText } from "./infoText"
import "./story.css"
export const Intro = () => (
<>
... |
iMokhles/MyTheosHeaders | include/UIKit/UIGestureInfo.h | /**
* This header is generated by class-dump-z 0.1-11o.
* class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.
*/
#import "UIKit-Structs.h"
#import <Foundation/NSObject.h>
@class UIGestureAnimation, UIScrollAnimation;
@interface UIGestureInfo : NSObject {
id delegate;
int enabledGestures;
int ... |
viewdy/phantomjs | src/qt/qtwebkit/Source/WebCore/platform/network/blackberry/ResourceRequestBlackBerry.cpp | /*
* Copyright (C) 2009, 2010, 2011 Research In Motion Limited. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your... |
lizzie2008/rapid4you | rapid-api/rapid-api-domain/src/main/java/tech/lancelot/mapstruct/blog/CategoryMapper.java | <gh_stars>10-100
package tech.lancelot.mapstruct.blog;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import tech.lancelot.domain.blog.Article;
import tech.lancelot.domain.blog.Category;
import tech.lancelot.dto.blog.ArticleDto;
import tech.lancelot.dto.blog.CategoryDto;
import tech.lancelot.mapstr... |
tyazid/RTSP-Java-UrlConnection | project/src/com/net/rtsp/content/text/parameters/ResponseContent.java | package com.net.rtsp.content.text.parameters;
public class ResponseContent extends com.net.rtsp.content.ResponseContent {
protected ResponseContent(byte[] content ) {
super(content, com.net.rtsp.content.text.parameters.ContentHandler.CONTENT_TYPE);
}
}
|
gnilrets/amylase | app/models/gooddata_project.rb | class GooddataProject < ActiveRecord::Base
nilify_blanks
PID_REGEX = /[0-9a-z]{32}/
belongs_to :client
validates_presence_of :name
validates_uniqueness_of :name
validates_format_of :project_uid, with: PID_REGEX, message: "Gooddata project ids are 32 characters long and consist of only numbers and lowerc... |
morewings/react-calendar-toolk | src/lib/features/modal/index.js | <reponame>morewings/react-calendar-toolk
export {initialState} from './ModalReducer';
export {useModalContext} from './context';
export {default as useModalActions} from './actionCreators';
export {default as withModalProvider} from './withModalProvider';
|
JakePrim/Flutter-House | Engineering/modular/es-modules/04-import/module.js | <gh_stars>1-10
var name = 'foo';
var age = 100
export {name,age};
export default 'default export'; |
rpl/ember-inspector | app/controllers/record-item.js | import Ember from "ember";
var COLOR_MAP = {
red: '#ff2717',
blue: '#174fff',
green: '#006400'
};
export default Ember.ObjectController.extend({
needs: ['records'],
modelTypeColumns: Ember.computed.alias('controllers.records.columns'),
// TODO: Color record based on `color` property.
style: function() ... |
t-lawan/berlin | src/components/forms/press-form.js | <filename>src/components/forms/press-form.js<gh_stars>0
import React from "react"
import { connect } from "react-redux"
import {
PressFormError,
PressFormWrapper,
PressFormInput,
} from "./press-form.styles"
import { FormButton, FormLabel } from "../modal/modal.styles"
import { getCurrentLanguageString, createPat... |
Alelak/Camelus | src/com/devsolutions/camelus/managers/ClientManager.java | <filename>src/com/devsolutions/camelus/managers/ClientManager.java
package com.devsolutions.camelus.managers;
import java.util.Collections;
import java.util.List;
import org.apache.ibatis.exceptions.PersistenceException;
import org.apache.ibatis.session.SqlSession;
import com.devsolutions.camelus.auditing.Audit;
imp... |
kshedden/dstream | dstream/doc.go | // Package dstream provides facilities for manipulating streams of
// typed, multivariate data. A Dstream is a data container that holds
// a rectangular array of data in which the columns are variables and
// the rows are cases or observations. The dstream framework
// facilitates processing data of this type in a s... |
senti-iot/waterworks-backend | api/events/event.js | <reponame>senti-iot/waterworks-backend
const express = require('express')
const router = express.Router()
const sentiEventService = require('../../lib/eventService')
let eService = null
router.all('/v3/events*', async (req, res, next) => {
eService = new sentiEventService()
console.log()
next()
})
router.get('/v3/... |
lechium/iPhoneOS_12.1.1_Headers | System/Library/PrivateFrameworks/HomeUI.framework/HUPersonalRequestsEditorTableViewController.h | /*
* This header is generated by classdump-dyld 1.0
* on Saturday, June 1, 2019 at 6:49:39 PM Mountain Standard Time
* Operating System: Version 12.1.1 (Build 16C5050a)
* Image Source: /System/Library/PrivateFrameworks/HomeUI.framework/HomeUI
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>.
*/... |
ValKhv/BGX | MOBILAPP/BGX-App/BGX/ios/Pods/Headers/Private/GoogleUtilities/GULNetworkMessageCode.h | <filename>MOBILAPP/BGX-App/BGX/ios/Pods/Headers/Private/GoogleUtilities/GULNetworkMessageCode.h
link ../../../GoogleUtilities/GoogleUtilities/Network/Private/GULNetworkMessageCode.h |
alphagov/vitruvius | vitruvius.markdown/src/test/java/uk/gov/prototype/vitruvius/parser/domain/RepositoryInformationBuilderTest.java | <reponame>alphagov/vitruvius
package uk.gov.prototype.vitruvius.parser.domain;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static org.fest.assertions.api.Assertions.assertThat;
public class RepositoryInformationBuilderTest {
private static final Str... |
jungomi/iterfn | test/index.test.js | import test from 'ava';
import iter from '../src';
test('iter returns a correct iterator for iterables and generators', t => {
function* gen() {
yield 1;
yield 5;
}
const array = [1, 5];
const genIter = iter(gen);
const arrayIter = iter(array);
t.is(typeof genIter.next, 'function');
t.is(genIter... |
citrix-openstack-build/trove | trove/instance/tasks.py | # Copyright 2012 OpenStack Foundation
# 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 obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... |
JonoMacC/fast-tracks | src/Components/Playlist/TrackItem.js | <filename>src/Components/Playlist/TrackItem.js<gh_stars>0
import { useContext } from "react";
import { motion } from "framer-motion";
import { AppDispatch } from "../../contexts/AppContext";
import { Player } from "../Player/Player";
import { Icon } from "../Icons";
import "./TrackItem.css";
export const TrackItem = (... |
Ron423c/chromium | components/sync/engine/sync_engine.h | // Copyright 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.
#ifndef COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_
#define COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_
#include <map>
#include <memory>
#include <string>
#include <... |
vanditbhatt/learn | src/templates/Challenges/project/Tool-Panel.js | <reponame>vanditbhatt/learn<filename>src/templates/Challenges/project/Tool-Panel.js
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Button } from 'react-bootstrap';
import { openModal } from '.... |
pustovitDmytro/semantic-release-telegram | src/success.js |
import { VERIFICATION_MISSED } from './Error';
import Telegram, { Telegraph } from './telegram';
import { getVariables } from './utils';
export default async function success(pluginConfig, { logger, nextRelease, options, branch }) {
if (!this.verified) throw new VERIFICATION_MISSED('success');
const { chats,... |
primus305/nst-server | src/main/java/nst/projekat/service/impl/SpeakerServiceImpl.java | package nst.projekat.service.impl;
import nst.projekat.domain.*;
import nst.projekat.dto.SpeakerDTO;
import nst.projekat.mapper.SpeakerMapper;
import nst.projekat.mapper.UserMapper;
import nst.projekat.repository.AgendaSessionRepository;
import nst.projekat.repository.SpeakerRepository;
import nst.projekat.service.Spe... |
LuisJIVillalva/lippia-core | core/src/main/java/com/crowdar/bdd/cukes/TestNGParallelRunner.java | <gh_stars>1-10
package com.crowdar.bdd.cukes;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import cucumber.api.testng.CucumberFeatureWrapper;
import cucumber.api.testng.PickleEventWrapper;
import cu... |
hejfelix/slinky-wrappers | semantic-ui/src/main/scala/com/lambdaminute/slinkywrappers/semanticui/GridRow.scala | package com.lambdaminute.slinkywrappers.semanticui
import slinky.core.ExternalComponent
import slinky.core.annotations.react
import scala.scalajs.js
import scala.scalajs.js.UndefOr
@react object GridRow extends ExternalComponent {
case class Props(
as:UndefOr[String] = js.undefined,
... |
wh00sh/Tanda-DAPP | node_modules/mdi-material-ui/AutoFix.js | <gh_stars>0
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _createIcon = _interopRequireDefault(require("./util/createIcon"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default = (0, _create... |
byteshiva/es6-tuts | functionalprogramming/day26/funcday26/index.js | <filename>functionalprogramming/day26/funcday26/index.js<gh_stars>1-10
const R = require('ramda');
R.call(R.add, 1, 2); //=> 3
var indentN = R.pipe(R.repeat(' '),
R.join(''),
R.replace(/^(?!$)/gm));
var format = R.converge(R.call, [
R.pipe(R.prop('... |
wuyueandrew/GraphScope | research/query_service/ir/compiler/src/main/java/com/alibaba/graphscope/gremlin/transform/alias/AliasArg.java | /*
* Copyright 2020 Alibaba Group Holding Limited.
*
* 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... |
matsubara0507/semantic | test/fixtures/java/corpus/Char.B.java | class Point {
Char dinosaur() {
Char B = 'B';
if (x)
B;
}
}
|
mikaelho/youey | youey/util/color.py | <filename>youey/util/color.py<gh_stars>1-10
#coding: utf-8
from youey.util.webcolors import *
from youey.util.prop import *
class Color(list):
def __init__(self, *args, alpha=None):
value = False
if len(args) == 0:
value = [0, 0, 0, 1]
elif len(args) == 1:
arg = args[0]
if type(arg) ... |
quasi-robotics/easy_manipulation_deployment | easy_manipulation_deployment/workcell_builder/workcell_builder/include/yaml_parser/collision_parser.h | // Copyright 2020 Advanced Remanufacturing and Technology Centre
// Copyright 2020 ROS-Industrial Consortium Asia Pacific Team
//
// 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
//
// ht... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.