repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
rjakubco/jboss-migration | src/main/java/org/jboss/loom/migrators/connectionFactories/jaxb/ConnectionFactoryAS5Bean.java | <filename>src/main/java/org/jboss/loom/migrators/connectionFactories/jaxb/ConnectionFactoryAS5Bean.java<gh_stars>0
/**
* 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/lice... |
compiler-tree-technologies/cil | clang/test/cml/output_tests/c_tests/basic/compound_assign.c | <filename>clang/test/cml/output_tests/c_tests/basic/compound_assign.c<gh_stars>10-100
#include <stdio.h>
// RUN: %cml %s -o %t && %t | FileCheck %s
int main() {
int a = 10;
// CHECK: 10
printf("%d\n", a);
a += 10;
// CHECK: 20
printf("%d\n", a);
a -= 10;
// CHECK: 10
printf("%d\n", a);
a *= 10;
/... |
GiulianaPola/select_repeats | venv/lib/python3.8/site-packages/charset_normalizer/utils.py | <reponame>GiulianaPola/select_repeats
/home/runner/.cache/pip/pool/ea/f7/dd/039f6ed15403dff7435dfd81f2f8ae5163e8f7121f2aae1bd275d7e8ca |
Kazalev/SoftUni-ProgrammingFundamentals-JavaScript | Data Types and Variables/Exercise - Data Types and Variables/More Exercises/01. Digits with Words.js | <reponame>Kazalev/SoftUni-ProgrammingFundamentals-JavaScript<filename>Data Types and Variables/Exercise - Data Types and Variables/More Exercises/01. Digits with Words.js
function solve(number){
switch(number){
case 'one':
console.log(1);
break;
case 'two':
conso... |
logan-wipro/splunk-ref-pas-code | apps/pas_ref_app/appserver/static/suspicious_activity.js | require([
"splunkjs/ready!",
"splunkjs/mvc/simplexml/ready!",
"splunkjs/mvc/tableview"
], function(
mvc,
ignored,
TableView
) {
var CustomIconCellRenderer = TableView.BaseCellRenderer.extend({
canRender: function(cell) {
return cell.field === 'Code'; // the color column
... |
matoruru/purescript-react-material-ui-svgicon | src/MaterialUI/SVGIcon/Icon/BrushSharp.js | <reponame>matoruru/purescript-react-material-ui-svgicon
exports.brushSharpImpl = require('@material-ui/icons/BrushSharp').default;
|
SekyuShin/C_Project | C_Study_Example/Part3/Part3/mymain.c | /* mymain.c
#include <stdio.h>
int main(void)
#include "myheader1.h"
#include "myheader2.h"
*/ |
zparnold/aws-sdk-go-v2 | service/route53domains/api_op_TransferDomainToAnotherAwsAccount.go | // Code generated by smithy-go-codegen DO NOT EDIT.
package route53domains
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
smithy "github.com/awslabs/smithy-go"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/sm... |
cuipy/tijian | src/main/java/com/thinkgem/jeesite/modules/wshbj/web/ExaminationPackageController.java | <reponame>cuipy/tijian
/**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.wshbj.web;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.thinkgem.jeesite.common.ut... |
yaoyao1987/toy-wheel | toy-function/compose.js | <reponame>yaoyao1987/toy-wheel<filename>toy-function/compose.js
// 同步
const compose = (...funcs) => funcs.reduce((a, b) => (...args) => a(b(...args)))
// ======================================================
/**
* testing
*/
const init = (...args) => args.reduce((total, val) => total + val, 0)
const step2 = (val) ... |
ma1uta/gene | src/main/java/io/github/ma1uta/matrix/gene/api/CasApi.java | /*
* Copyright <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 applicable law or agreed to in writin... |
koraktor/osquery-site | src/components/Icon/svg/MacFinder.svg.js | <reponame>koraktor/osquery-site
import React, { Component } from 'react'
class MacFinder extends Component {
static defaultProps = {
fillColor: '#00125F',
height: 32,
width: 48,
}
render() {
const { className, fillColor, height, width } = this.props
return (
<svg
className={cl... |
tobyatgithub/MVC_ImageFilterApp_WithCrossStitchFeatures | src/crossstitchmvc/model/imageeffect/ImageBlurFilter3d.java | package crossstitchmvc.model.imageeffect;
/**
* Filter class of image blur effect.
*/
public class ImageBlurFilter3d extends AbstractFilter3d {
@Override public int[][][] filter(Image image) {
if (image == null) {
throw new IllegalArgumentException("Image can not be null.");
}
int[][] newRed = bl... |
Joshb888/dd | dashboard/public/bower_components/ckeditor/plugins/sourcedialog/lang/fo.js | CKEDITOR.plugins.setLang("sourcedialog", "fo", {
toolbar: "Kelda",
title: "Kelda",
});
|
Atom-me/xcEdu | xcEdu_service/xc-service-manage-order/src/main/java/com/xuecheng/order/dao/XcTaskHisRepository.java | package com.xuecheng.order.dao;
import com.xuecheng.framework.domain.task.XcTaskHis;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* @author atom
*/
public interface XcTaskHisRepository extends JpaRepository<XcTaskHis, String> {
}
|
bluelovers/Danbooru | lib/dashboard.rb | <reponame>bluelovers/Danbooru
class Dashboard
class CommentActivity
attr_reader :comment, :count
def initialize(hash)
@comment = Comment.find(hash["comment_id"])
@count = hash["count"]
end
end
class PostActivity
attr_reader :post, :count
def initialize(hash)
@pos... |
Cellularhacker/JavaProgramming2017 | Day07/ex03_14/InputException.java | <gh_stars>0
//2017-09-27 KST ex03_14/InputException.java
//Ex03-14
package ex03_14;
import java.util.Scanner;
import java.util.InputMismatchException;
public class InputException {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("정수 3개를 입력하세요.");
int su... |
JRBonilla/Slate | Phoebe-core/src/ph/renderer/renderables/Sprite.cpp | <gh_stars>1-10
#include "Sprite.h"
namespace ph { namespace renderer {
Sprite::Sprite(float x, float y, float width, float height, uint color)
: Renderable2D(math::Vec3(x, y, 0), math::Vec2(width, height), color) { }
Sprite::Sprite(float x, float y, float width, float height, Texture2D* texture)
: Renderable2... |
Paouky/GrinPlusPlus | tests/src/BlockChain/Test_ReorgChain.cpp | #include <catch.hpp>
#include <TestServer.h>
#include <TestMiner.h>
#include <TestChain.h>
#include <TxBuilder.h>
#include <TestHelper.h>
#include <Consensus.h>
#include <BlockChain/BlockChain.h>
#include <Database/Database.h>
#include <Database/BlockDb.h>
#include <PMMR/TxHashSetManager.h>
#include <TxPool/Transacti... |
Wassaf-Shahzad/micromasters | static/js/DashboardRouter.js | // @flow
/* global SETTINGS: false */
import React from "react"
import { Router } from "react-router"
import { Provider } from "react-redux"
import { MuiThemeProvider, createMuiTheme } from "@material-ui/core/styles"
import type { Store } from "redux"
// eslint-disable-next-line require-jsdoc
export default class Dash... |
marcopeg/skill-matrix | app/src/lib/strings.test.js | import { composeUrl } from "./strings";
describe("lib", () => {
describe("strings", () => {
describe("composeUrl", () => {
test("it should concatenate base and uri", () => {
const res = composeUrl("http://google.com", "foobar");
expect(res).toBe("http://google.com/foobar");
});
... |
pulumi/pulumi-yandex | sdk/python/pulumi_yandex/get_resourcemanager_cloud.py | # 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, Mapping, Optional, Sequence, Union, overload
from . import ... |
mitraj/Gooru-Web | src/main/java/org/ednovo/gooru/shared/model/content/ResourceDo.java | <reponame>mitraj/Gooru-Web
/*******************************************************************************
* Copyright 2013 Ednovo d/b/a Gooru. All rights reserved.
*
* http://www.goorulearning.org/
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and assoc... |
juckele/Vivarium | vivarium-db/src/main/groovy/io/vivarium/persistence/RunSimulationJobModel.java | package io.vivarium.persistence;
import java.sql.Timestamp;
import java.util.Collection;
import java.util.Map;
import com.google.common.base.Preconditions;
import io.vivarium.util.UUID;
import lombok.EqualsAndHashCode;
import lombok.ToString;
@EqualsAndHashCode(callSuper = true)
@ToString
public class RunSimulation... |
miguelvazq/HPCC-Platform | esp/files/scripts/tree.js | /*##############################################################################
# HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
#
# 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 Lic... |
silenc3502/MYSQL-Arch-Doc-Summary | mysql-server/plugin/udf_services/test_udf_services.cc | <reponame>silenc3502/MYSQL-Arch-Doc-Summary<gh_stars>0
/* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Found... |
PingHuskar/hackerrank | algorithms/arrays-and-sorting/correctness-invariant.py | # Algorithms > Sorting > Correctness and the Loop Invariant
# How do you demonstrate the correctness of an algorithm? You can use the loop invariant.
#
# https://www.hackerrank.com/challenges/correctness-invariant/problem
#
def insertion_sort(l):
for i in range(1, len(l)):
j = i- 1
key = l[i]
... |
hariPrasad525/Nitya_Annaccounting | src/com/nitya/accounter/mobile/commands/VendorGroupListCommand.java | <filename>src/com/nitya/accounter/mobile/commands/VendorGroupListCommand.java
package com.nitya.accounter.mobile.commands;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import com.nitya.accounter.core.VendorGroup;
import com.nitya.accounter.mobile.CommandList;
import com.nitya.accounter.mob... |
camment/sdk-ios | CammentSDK/Classes/Core/Store/CMStore.h | <reponame>camment/sdk-ios
//
// Created by <NAME> on 16.05.17.
// Copyright (c) 2017 Sportacam. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <ReactiveObjC/ReactiveObjC.h>
#import "CMUser.h"
#import "CMUsersGroup.h"
#import <Tweaks/FBTweak.h>
#import "CMIdentityProvider.h"
@class CMShow;
@class CM... |
Ewpratten/frc_971_mirror | motors/print/itm.cc | <gh_stars>0
#include "motors/print/itm.h"
#include "motors/core/itm.h"
namespace frc971 {
namespace motors {
namespace {
template<int kPort> void WriteToPort(gsl::span<const char> buffer) {
// This ignores memory barriers etc, because it will be called by
// CreatePrinting which must be called before any interru... |
jay-most/azure-sdk-for-go | profiles/preview/cognitiveservices/customsearch/models.go | //go:build go1.9
// +build go1.9
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// This code was auto-generated by:
// github.com/Azure/azure-sdk-for-go/tools/profileBuilder
package customsearch
import orig... |
clouthink-in/nextoa-backend | audit/impl/src/main/java/in/clouthink/synergy/audit/domain/model/AggregationType.java | <gh_stars>1-10
package in.clouthink.synergy.audit.domain.model;
/**
* @author dz
*/
public enum AggregationType {
MONTH, DAY
}
|
sriThariduSangeeth/kore-chatbot-modernization-mobile | BotsSDK/korebotsdklib/src/main/java/kore/botssdk/models/BotTableListTextModel.java | package kore.botssdk.models;
public class BotTableListTextModel
{
private String title;
private String subtitle;
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setSubtitle(String subtitle)
{
... |
aTiKhan/nuxeo | modules/platform/nuxeo-automation/nuxeo-automation-core/src/main/java/org/nuxeo/ecm/automation/core/operations/document/GetLiveDocument.java | <reponame>aTiKhan/nuxeo
/*
* (C) Copyright 2006-2013 Nuxeo SA (http://nuxeo.com/) and others.
*
* 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/LIC... |
Jiaweihu08/qbeast-spark | src/test/scala/io/qbeast/spark/keeper/ProtocolMockTest.scala | package io.qbeast.spark.keeper
import io.qbeast.core.keeper.{Keeper, LocalKeeper}
class ProtocolMockTest extends ProtocolMockTestSpec {
"the qbeast-spark client" should
"throw an execution when an inconstant state is found" in withContext(LocalKeeper) {
context =>
implicit val keeper: Keeper = Loc... |
PrivacyAmp/cardinality_estimation_evaluation_framework | tests/interoperability_test.py | # Copyright 2020 The Private Cardinality Estimation Framework 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 b... |
danneamtu/joblify | client/src/components/Jobs/JobDescription/PieChart/TheChart.js | <gh_stars>0
import React from 'react'
import { Doughnut } from 'react-chartjs-2'
import { accentGreen, lightDarker } from '../../../../styled-components/typography/colors'
const TheChart = ({ scoreFormula }) => {
const data = {
datasets: [
{
data: [scoreFormula, scoreFormula - 100],
backgro... |
vdmeer/skb-java-base | src/main/java/de/vandermeer/skb/base/shell/AbstractShellCommand.java | <reponame>vdmeer/skb-java-base<filename>src/main/java/de/vandermeer/skb/base/shell/AbstractShellCommand.java
/* Copyright 2014 <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 Licens... |
wfxxy/ARMv8-M | secure_fw/services/secure_storage/sst_core_interface.c | /*
* Copyright (c) 2017, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#include <string.h>
#include "sst_core_interface.h"
#include "assets/sst_asset_defs.h"
#include "sst_core.h"
#include "sst_utils.h"
#define ASSET_ID_ERROR 0xFFFF
#define SST_SYSTEM_READY 1
#define SST_SYS... |
ChuanleiGuo/AlgorithmsPlayground | Recursion/NQueens.java | <gh_stars>1-10
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
public class NQueens {
public static List<List<Integer>> nQueens(int n) {
List<List<Integer>> result = new ArrayList<>();
solveNQueens(n, 0, new ArrayList<Integer>(), result);
... |
alloytech/pubsubbeat | vendor/github.com/elastic/beats/libbeat/common/flags.go | <gh_stars>10-100
package common
import (
"flag"
"strings"
ucfg "github.com/elastic/go-ucfg"
cfgflag "github.com/elastic/go-ucfg/flag"
)
// StringsFlag collects multiple usages of the same flag into an array of strings.
// Duplicate values will be ignored.
type StringsFlag struct {
list *[]string
isDefault... |
stevedonovan/llib | llib-p/select.h | #ifndef LLIB_SELECT_H
#define LLIB_SELECT_H
typedef bool (*SelectTimerProc)(void *data);
typedef int (*SelectReadProc)(const char *line,...);
typedef struct Select_ Select;
typedef struct SelectTimer_ SelectTimer;
typedef struct SelectFile_ SelectFile;
typedef struct SelectChan_ SelectChan;
enum {
SelectRead = 1... |
logginghub/core | logginghub-integrationtests/src/test/java/com/logginghub/logging/modules/TestLoggingBridgeModule.java | package com.logginghub.logging.modules;
import com.logginghub.integrationtests.logging.HubTestFixture;
import com.logginghub.integrationtests.logging.HubTestFixture.HubFixture;
import com.logginghub.logging.LogEvent;
import com.logginghub.logging.LogEventBuilder;
import com.logginghub.logging.exceptions.Connecto... |
tobyweston/learn-scala-java-devs | src/main/scala/s4j/scala/chapter20/Example.scala | /*
* Copyright (c) 2015-2017 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
alexey-anufriev/intellij-community | platform/platform-impl/src/com/intellij/openapi/wm/impl/status/ProcessPopup.java | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.wm.impl.status;
import com.intellij.ide.IdeBundle;
import com.intellij.ide.ui.LafManagerListener;
import com.intellij.openapi.application.Application... |
leroy-dias/simulato | test/unit/lib/planner/test-planner-tests.js | <filename>test/unit/lib/planner/test-planner-tests.js
'use strict';
const mockery = require('mockery');
const sinon = require('sinon');
const expect = require('chai').expect;
describe('lib/planner/test-planner.js', function() {
describe('on file require', function() {
let Emitter;
let testPlanner;
let p... |
drunkwater/leetcode | hard/ruby/c0158_818_race-car/00_leetcode_0158.rb | <reponame>drunkwater/leetcode<filename>hard/ruby/c0158_818_race-car/00_leetcode_0158.rb<gh_stars>0
# DRUNKWATER TEMPLATE(add description and prototypes)
# Question Title and Description on leetcode.com
# Function Declaration and Function Prototypes on leetcode.com
#818. Race Car
#Your car starts at position 0 and speed... |
ambertests/scala_coursework | beginners/rock-the-jvm-scala-beginners/src/main/lectures/part3fp/WhatsAFunction.scala | <reponame>ambertests/scala_coursework<gh_stars>0
package lectures.part3fp
object WhatsAFunction extends App {
//DREAM: use functions as first class elements
//problem: object-oriented programming sees everything as objects
// so JVM would take functions wrapped up as class objects (ie Traits)
val doubler = n... |
701Szc/CustomComponent | CustomComponentTest/app/src/main/java/com/example/CustomComponentTest/activity/PhotoViewActivity.java | package com.example.CustomComponentTest.activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.viewpager.widget.ViewPager;
import com.example.CustomComponentTest.R;
import com.example.CustomCompon... |
ShunjiroOsada/jsk_visualization_package | jsk_rqt_plugins/src/jsk_rqt_plugins/plot.py | <reponame>ShunjiroOsada/jsk_visualization_package<filename>jsk_rqt_plugins/src/jsk_rqt_plugins/plot.py
#!/usr/bin/env python
from rqt_gui_py.plugin import Plugin
from python_qt_binding import loadUi
from python_qt_binding.QtCore import Qt, QTimer, qWarning, Slot
from python_qt_binding.QtGui import QAction, QIcon, QMen... |
logbee/keyscore | keyscore-model/src/main/scala/io/logbee/keyscore/model/pipeline/FilterState.scala | <reponame>logbee/keyscore<filename>keyscore-model/src/main/scala/io/logbee/keyscore/model/pipeline/FilterState.scala
package io.logbee.keyscore.model.pipeline
import java.util.UUID
import io.logbee.keyscore.model.data.Health
case class FilterState(id:UUID, health: Health, throughPutTime: Long = 0, totalThroughputTim... |
q759729997/qytPytorch | qytPytorch/models/cv/image_classification/densenet.py | from torch import nn
from qytPytorch.modules.layer import DenseBlock
from qytPytorch.modules.layer import FlattenLayer
from qytPytorch.modules.layer import GlobalAvgPool2d
class DenseNet(nn.Module):
"""稠密网络模型"""
def __init__(self):
super().__init__()
# 首先使用同ResNet一样的单卷积层和最大池化层
self.ne... |
Sir-Branch/k64f-starter-template | sdk_k64f/components/timer/lptmr_adapter.c | <gh_stars>1-10
/*
* Copyright 2018-2019 NXP
* All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "fsl_common.h"
#include "fsl_device_registers.h"
#include "timer.h"
#include "fsl_lptmr.h"
typedef struct _hal_timer_handle_struct_t
{
uint32_t timeout;
uint32_t timerClock_Hz;
... |
code-krypt/maggi | maggi-core/src/main/java/com/drykode/maggi/core/domain/job/progress/JobProgressEvent.java | package com.drykode.maggi.core.domain.job.progress;
import com.drykode.maggi.core.domain.job.progress.support.JobStatus;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;
@Builder
@Getter
@AllArgsConstru... |
sppp/Overlook | src/Overlook/Core.h | <reponame>sppp/Overlook
#ifndef _Overlook_Core_h_
#define _Overlook_Core_h_
namespace Overlook {
using namespace Upp;
class Overlook;
// Visual setting enumerators
enum {DRAW_LINE, DRAW_SECTION, DRAW_HISTOGRAM, DRAW_ARROW, DRAW_NONE};
enum {WINDOW_SEPARATE, WINDOW_CHART};
enum {STYLE_SOLID, STYLE_DASH, ... |
Factoriall/GuardianTalesGuildApp | app/src/main/java/org/techtown/gtguildraid/fragments/MemberResignedFragment.java | package org.techtown.gtguildraid.fragments;
import android.app.Dialog;
import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.EditText;
i... |
eltociear/material-ui | packages/material-ui-icons/lib/FontDownloadOffRounded.js | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
avra-me/avra-me.github.io | plugins/generate-assets/generate-gif.js | <gh_stars>0
import PNG from "png-js";
import GIFEncoder from "gifencoder";
import fs from "fs";
import * as readline from "readline";
function decode(png) {
return new Promise((resolve, reject) => {
try {
png.decode((pixels) => resolve(pixels));
} catch (e) {
reject(e);
... |
aherbert/GDSC-Core | gdsc-core/src/test/java/uk/ac/sussex/gdsc/core/utils/rng/MixersTest.java | <filename>gdsc-core/src/test/java/uk/ac/sussex/gdsc/core/utils/rng/MixersTest.java
/*-
* #%L
* Genome Damage and Stability Centre ImageJ Core Package
*
* Contains code used by:
*
* GDSC ImageJ Plugins - Microscopy image analysis
*
* GDSC SMLM ImageJ Plugins - Single molecule localisation microscopy (SMLM)
* %%... |
sergeishay/Screenters | source-pack/pro/SideNav/SideNavNew/SideNavNav/index.js | export { default } from './SideNavNav';
export * from './SideNavNav'; |
barnyard/pi | p2p-networkmanager/src/main/java/com/bt/pi/app/networkmanager/dhcp/DhcpRefreshFailedException.java | <gh_stars>1-10
/* (c) British Telecommunications plc, 2009, All Rights Reserved */
package com.bt.pi.app.networkmanager.dhcp;
public class DhcpRefreshFailedException extends RuntimeException {
private static final long serialVersionUID = 1L;
public DhcpRefreshFailedException(String message, Throwable t) {
super(... |
lingjf/h2un | test/test_matcher_matcher.cpp | <filename>test/test_matcher_matcher.cpp
#include "../source/h2_unit.cpp"
#include "test_cplusplus.hpp"
#include "test_types.hpp"
SUITE(Matcher)
{
Case(Eq number)
{
// 65 is A
OK(nullptr == h2::h2_matcher<int>(Eq(65)).matches(65));
OK(nullptr == h2::h2_matcher<double>(Eq(65)).matches(65.0));
... |
kkrull/gohttp | capability/doc.go | // Handles requests about generic capabilities of the server
// Any requests specific to a resource are handled by that resource's Route.
package capability
|
Ezeer/VegaStrike_win32FR | vegastrike/boost/1_28/boost/graph/smallest_last_ordering.hpp | //=======================================================================
// Copyright 1997, 1998, 1999, 2000 University of Notre Dame.
// Authors: <NAME>, <NAME>, <NAME>
//
// This file is part of the Boost Graph Library
//
// You should have received a copy of the License Agreement for the
// Boost Graph Library alon... |
jdavidberger/libsurvive | src/survive_kalman_lighthouses.h | #pragma once
#include "survive_kalman.h"
#include "survive_kalman_tracker.h"
typedef struct SurviveKalmanLighthouse {
SurvivePose state;
survive_kalman_state_t model;
SurviveContext *ctx;
int lh;
FLT process_weight_pos;
FLT process_weight_rotation;
FLT light_variance;
FLT light_stationary_mintime;
FLT lig... |
arushmangal/Hack-CP-DSA | Codechef/Cutting Recipes/solution.cpp | #include <iostream>
using namespace std;
int main() {
int T,N,a[50],i,j,f,HCF,small=2000;
cin>>T; //input no of testcases
while(T--)
{
small=2000;
//input number of ingredients
cin>>N;
//inputing N number of ingredient quantity
for(i=0;i<N;i++)
{
... |
NanmiaoWu/phylanx | src/execution_tree/primitives/node_data_helpers2d.cpp | // Copyright (c) 2017-2018 <NAME>
//
// 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)
#include <phylanx/config.hpp>
#include <phylanx/execution_tree/compiler/primitive_name.hpp>
#include <phylanx/execution_tree/prim... |
ollystephens/benthos | lib/metrics/statsd_legacy.go | package metrics
import (
"fmt"
"time"
"github.com/Jeffail/benthos/v3/lib/log"
"github.com/quipo/statsd"
)
//------------------------------------------------------------------------------
type wrappedLogger struct {
m log.Modular
}
func (w *wrappedLogger) Println(v ...interface{}) {
w.m.Warnf(fmt.Sprintln(v..... |
rrvt/ICS-214a | Library/Library.prj/qsort.h | // Qsort Template for an array of something
// Copyright Software Design & Engineering, <NAME>, 2013. All rights reserved.
// Requires the following operations for node N* p, N* q, N* s
// *p == *q
// *p > *q
// *p <= *q
// *s = *p
// Call as follows:
// qsort(&array[firstIndex], &array[lastIndex]); or equival... |
SilencerWeb/karma | src/ui/atoms/switch/switch.js | <reponame>SilencerWeb/karma<filename>src/ui/atoms/switch/switch.js
import * as React from 'react';
import styled, { css } from 'styled-components';
import PropTypes from 'prop-types';
import { color, transition } from 'ui/theme';
const Track = styled.div`
width: 3.4rem;
height: 1.4rem;
background: #3c4858;
b... |
pydata-apis/python-api-record | data/typing/numpy.lib.scimath.py | <reponame>pydata-apis/python-api-record
from typing import *
def arccos(x: List[float]):
"""
usage.scipy: 2
"""
...
@overload
def sqrt(x: numpy.matrix):
"""
usage.networkx: 2
"""
...
@overload
def sqrt(x: numpy.ndarray):
"""
usage.networkx: 1
"""
...
def sqrt(x: U... |
weltam/dremio-oss | sabot/kernel/src/test/java/com/dremio/exec/fn/impl/TestContextFunctions.java | <gh_stars>1000+
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
hasridha/react-native | ReactCommon/cxxreact/PlatformBundleInfo.h | #pragma once
#include <cxxreact/JSBigString.h>
namespace facebook { namespace react {
struct PlatformBundleInfo
{
std::unique_ptr<const JSBigString> Bundle;
std::string BundleUrl;
std::string BytecodePath;
uint64_t Version;
};
}}//namespace facebook::react |
marcgrue/molecule | molecule/shared/src/main/scala/molecule/core/macros/rowAttr/JsonOptNested.scala | package molecule.core.macros.rowAttr
import java.lang.{Long => jLong}
import java.util.{Date, Iterator => jIterator, List => jList, Map => jMap, Set => jSet}
private[molecule] trait JsonOptNested extends JsonBase {
// One ===========================================================================================
... |
isuhao/RaidenFree | Classes/Bmob/baseobject/bmobcloud.cpp | #include "bmobcloud.h"
#include "network/HttpClient.h"
#include "network/HttpResponse.h"
#include "Common/Macro.h"
using namespace network;
BmobCloud::BmobCloud(){
}
BmobCloud::~BmobCloud(){
}
void BmobCloud::send(){
}
void BmobCloud::send(network::HttpRequest::Type type){
HttpRequest* req = new HttpRequest... |
enriqueescobar-askida/Kinito.Ruby.Patterns | chap08/ex2_button_with_cmd_demo.rb | #!/usr/bin/env ruby
require '../example'
require 'ex2_button_with_cmd'
example %q{
save_button = SlickButton.new( SaveCommand.new )
pp save_button
}
|
thomasregnet/kleinodien | db/migrate/20150303192009_index_compilation_identifiers_on_code_disambiguation.rb | <gh_stars>0
class IndexCompilationIdentifiersOnCodeDisambiguation < ActiveRecord::Migration[4.2]
def change
reversible do |idx|
idx.up do
execute <<-DDL
CREATE UNIQUE INDEX
index_compilation_identifiers_on_code_disambiguation
ON compilation_identifiers
... |
meunice/azure-sdk-for-java | sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/TextAnalyticsClient.java | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.ai.textanalytics;
import com.azure.ai.textanalytics.models.AnalyzeActionsResult;
import com.azure.ai.textanalytics.models.AnalyzeActionsOperationDetail;
import com.azure.ai.textanalytics.models.AnalyzeAct... |
ramaneswaran/mantisshrimp | tests/models/mantis_rcnn/test_rcnn_build_training_sample.py | <gh_stars>0
import pytest
from mantisshrimp import *
from mantisshrimp.imports import first, torch, tensor, Tensor
_fake_box = [0, 1, 2, 3]
@pytest.fixture(scope="module")
def data_sample(record):
return default_prepare_record(record)
def test_build_training_sample_maskrcnn(data_sample):
x, y = MantisMaskR... |
alixedi/data-hub-api-cd-poc | datahub/omis/order/views.py | <gh_stars>0
from django.http import Http404
from oauth2_provider.contrib.rest_framework.permissions import IsAuthenticatedOrTokenHasScope
from rest_framework import status
from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework.views import APIView
from datahub.cor... |
hanya/aobook-haiku | src/style.h | <filename>src/style.h
/*$
Copyright (c) 2014-2017, Azel
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of con... |
zealoussnow/chromium | third_party/android_crazy_linker/src/src/crazy_linker_elf_symbols.cpp | <filename>third_party/android_crazy_linker/src/src/crazy_linker_elf_symbols.cpp
// 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.
#include "crazy_linker_elf_symbols.h"
#include "crazy_linker_debug.h"
#in... |
harshit9715/serverless-stack | packages/cli/test/start-demo/src/sns/sub-folder/sns.js | exports.handler = async function (event) {
console.log(
`Logging from inside the SNS Lambda with event message: "${event.Records[0].Sns.Message}"`
);
return { status: true };
};
|
GregDevProjects/carbon-header-fix | node_modules/@carbon/icons-react/es/chevron--left/20.js | import { ChevronLeft20 } from '..';
export default ChevronLeft20;
|
kirikcoin/IPS | src/main/java/mobi/eyeline/ips/web/IPSViewHandler.java | package mobi.eyeline.ips.web;
import javax.faces.application.ViewHandler;
import javax.faces.application.ViewHandlerWrapper;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Locale;
public class IPSViewHandler extends ViewH... |
ScalablyTyped/SlinkyTyped | v/vso-node-api/src/main/scala/typingsSlinky/vsoNodeApi/anon/ActionRequired.scala | package typingsSlinky.vsoNodeApi.anon
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait ActionRequired extends StObject {
var actionRequired: scala.Double =... |
Mrjoy832/qit.cloud | website/src/models/AudioPlayerModel.js | import mirror, { actions } from 'mirrorx'
import { arrayMove } from 'react-sortable-hoc'
import API from '../adapters/API'
import { nextPlaybackRate, setPlaybackRate } from '../helpers'
export default mirror.model({
name: 'player',
initialState: {
nowPlaying: {},
queue: [],
playbackrate: 1
},
redu... |
codehuanglei/- | leetcode/Array/46.cpp | <reponame>codehuanglei/-
class Solution {
public:
vector<vector<int>> res;
void backTrack(vector<int>& nums,vector<int>& vec,vector<bool> used){
if(nums.size() == vec.size()){
res.push_back(vec);
return;
}
for(int i=0; i<nums.size(); i++){
if(... |
geekreflex/budget-tracker | client/src/redux/userSlice.js | import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
import axios from 'axios';
import { token } from '../helper/token';
import { BASE_URL } from '../helper/baseUrl';
const initialState = {
user: {},
token: '',
status: 'idle',
error: null,
isAuth: false,
};
export const registerUserAsync = cre... |
LiaoyuanSHEN/NoTest | src/main/java/com/github/zszlly/recorder/asm/NoTestClassVisitor.java | <gh_stars>0
package com.github.zszlly.recorder.asm;
import com.github.zszlly.mark.NoTestMark;
import org.objectweb.asm.*;
import java.util.*;
import static org.objectweb.asm.Opcodes.ACC_STATIC;
public class NoTestClassVisitor extends ClassVisitor {
private boolean isNoTest = false;
private final Map<String... |
CMPUT301F18T06/ManTracker | app/src/test/java/project/ece301/mantracker/MedicalProblemTest.java | <filename>app/src/test/java/project/ece301/mantracker/MedicalProblemTest.java
package project.ece301.mantracker;
public class MedicalProblemTest {
// @Test
// public void testsetDescription() {
// String testDescription = "Add this new description";
// MedicalProblem problem = new MedicalProb... |
mnpas/sponge | sponge-jython/src/main/java/org/openksavi/sponge/jython/package-info.java | <filename>sponge-jython/src/main/java/org/openksavi/sponge/jython/package-info.java
/**
* Abstract implementations of processors for Jython support.
*/
package org.openksavi.sponge.jython;
|
rhjain100/Card24_Android | app/libs/jep-java-3.4-trial/jep-java-3.4-trial/src/com/singularsys/jeptests/system/ExpressionEvalTest.java |
package com.singularsys.jeptests.system;
import java.io.*;
import org.junit.Assert;
import org.junit.Test;
import com.singularsys.jep.EvaluationException;
import com.singularsys.jep.Jep;
import com.singularsys.jep.ParseException;
import com.singularsys.jep.standard.Complex;
import com.singularsys.jep.standard.FastE... |
lailuboy/cockroach | pkg/storage/bulk/row_counter.go | // Copyright 2017 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License included
// in the file licenses/BSL.txt and at www.mariadb.com/bsl11.
//
// Change Date: 2022-10-01
//
// On the date above, in accordance with the Business Source License, use
// of this software will be gov... |
mithro/chromium-infra | go/src/infra/monitoring/sysmon/cmd/sysmon/main.go | <reponame>mithro/chromium-infra
// Copyright (c) 2016 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 main
import (
"flag"
"fmt"
"os"
"github.com/luci/luci-go/common/logging"
"github.com/luci/luci-go/commo... |
Bluestar123/Vue3-Admin-Plus | public/js/config.js | /*
* Copyright (c) 2021
* 项目名称:Vue3-Admin-Plus
* 文件名称:config.js
* 创建日期:2021/1/31 上午11:48
* 创建作者:Jaxson
*/
window.VUE_APP = {
VUE_APP_BASE_API: 'http://172.16.17.32:28081',
VUE_APP_URI: '/jy-service',
VUE_APP_DATA: '/data'
}
|
wfnex/OpenBRAS | src/ace/ACE_wrappers/tests/Recursive_Condition_Bug_Test.cpp |
//=============================================================================
/**
* @file Recursive_Condition_Bug_Test.cpp
*
* This test program validates the functionality of the
* ACE_Condition<ACE_Recursive_Thread_Mutex> template
* specialization when combined with the
* ACE_Thread_Timer_Que... |
emelnychenko/xtra | src/eval.h | //
// Created by eugen on 5/15/2017.
//
#ifndef XTRA_EVAL_H
#define XTRA_EVAL_H
xtra_token_p
xtra_feval(char * f);
xtra_token_p
xtra_seval(char * s);
#endif //XTRA_EVAL_H
|
hijkzzz/mini-interpreter | ast/block_stmnt.go | package ast
import (
"stone/environment"
)
type BlockStmnt struct {
astList
}
func NewBlockStmnt(list []ASTree) *BlockStmnt{
return &BlockStmnt{astList{list}}
}
func (self *BlockStmnt) Eval(env environment.Environment, args... interface{}) interface{} {
var result interface{}
// 返回最后一条语句执行结果
for _, value := ... |
AnushaPoojaryNEU/INFO6205-ProgramsAndAlgorithms | src/test/java/edu/neu/coe/info6205/life/base/GroupTest.java | <reponame>AnushaPoojaryNEU/INFO6205-ProgramsAndAlgorithms
package edu.neu.coe.info6205.life.base;
import edu.neu.coe.info6205.util.PrivateMethodTester;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import static edu.neu.coe.info62... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.