repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
kiwicom/mobile | scripts/hexToRgba.js | // @flow
const hexToRgba = (hex: string, opacity: number): string => {
// Expand shorthand form (e.g. "03F") to full form (e.g. "0033FF")
const shorthandRegex = /^#?(?<r>[a-f\d])(?<g>[a-f\d])(?<b>[a-f\d])$/i;
const replacedHex = hex.replace(shorthandRegex, (match, r, g, b) => {
return r + r + g + g + b + b;
... |
billwert/azure-sdk-for-java | sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationCheckNameAvailabilitySamples.java | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
import com.azure.resourcemanager.batch.models.CheckNameAvailabilityParamete... |
Lattice-Works/lattice-orgs | src/core/redux/selectors/selectUser.js | /*
* @flow
*/
import { Map, getIn } from 'immutable';
import { USERS } from '../../../common/constants';
export default function selectUser(userId :string) {
return (state :Map) :Map => getIn(state, [USERS, USERS, userId]) || Map();
}
|
cloudwebrtc/sys | sys-account/service/go/dao/query_params.go | package dao
import "github.com/getcouragenow/sys/sys-account/service/go/pkg/utilities"
// QueryParams can be any condition
type QueryParams struct {
Params map[string]interface{}
}
func (qp *QueryParams) ColumnsAndValues() ([]string, []interface{}) {
var columns []string
var values []interface{}
for k, v := rang... |
XpressAI/frovedis | src/foreign_if/server/ml_result.hpp | <filename>src/foreign_if/server/ml_result.hpp
#ifndef _ML_RESULT_HPP_
#define _ML_RESULT_HPP_
using namespace frovedis;
struct lu_fact_result {
lu_fact_result() {}
lu_fact_result(exrpc_ptr_t ptr, int stat):
ipiv_ptr(ptr), info(stat) {}
exrpc_ptr_t ipiv_ptr;
int info;
SERIALIZE(ipiv_ptr, info)
};
st... |
eozturk1/epid-sdk | epid/member/split/src/resize.c | <filename>epid/member/split/src/resize.c
/*############################################################################
# Copyright 2017-2018 Intel 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 o... |
j3270/SAMD_Experiments | xdk-asf-3.51.0/thirdparty/wireless/bt_wilc_sdk/bt_src/classic/pbap_client.c | /*
* Copyright (C) 2014 BlueKitchen GmbH
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the follo... |
Fatman13/venus | pkg/chainsync/types/syncstate.go | <filename>pkg/chainsync/types/syncstate.go
package types
import "fmt"
//just compatible code lotus
type SyncStateStage int
const (
StageIdle = SyncStateStage(iota)
StateInSyncing
StageSyncComplete
StageSyncErrored
)
func (v SyncStateStage) String() string {
switch v {
case StageIdle:
return "wait"
case Sta... |
MccreeFei/jframe | jframe-plugin/jframe-getui/src/test/java/os_sdk_java/testSetTagList.java | package os_sdk_java;
import java.util.ArrayList;
import java.util.List;
import com.gexin.rp.sdk.base.IIGtQuery;
import com.gexin.rp.sdk.base.IPushResult;
import com.gexin.rp.sdk.base.IQueryResult;
import com.gexin.rp.sdk.http.IGtPush;
public class testSetTagList {
static String appId = "";
static... |
brenzel/octosql | execution/group_by_test.go | <reponame>brenzel/octosql
package execution_test
import (
"context"
"testing"
"time"
"github.com/cube2222/octosql"
. "github.com/cube2222/octosql/execution"
"github.com/cube2222/octosql/execution/aggregates"
"github.com/cube2222/octosql/storage"
)
func TestGroupBy_SimpleBatch(t *testing.T) {
stateStorage := ... |
hwu25/edk2-platforms | Silicon/Intel/LewisburgPkg/Include/Library/PchInfoLib.h | /** @file
Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License that accompanies this distribution.
The full text of the license may be found at
http://opensource.org/licenses/bsd-lic... |
PuttySoftware/gemma-rpg | Gemma/src/com/puttysoftware/gemma/support/map/objects/WeaponsShop.java | <filename>Gemma/src/com/puttysoftware/gemma/support/map/objects/WeaponsShop.java<gh_stars>0
/* Gemma: An RPG
Copyright (C) 2013-2014 <NAME>
Any questions should be directed to the author via email at: <EMAIL>
*/
package com.puttysoftware.gemma.support.map.objects;
import com.puttysoftware.gemma.support.items.Shop... |
yoomoney/yookassa-payout-sdk-python | tests/unit/test_xml_helper.py | <filename>tests/unit/test_xml_helper.py<gh_stars>1-10
# -*- coding: utf-8 -*-
import unittest
from yookassa_payout.domain.common.xml_helper import XMLHelper, Object2XML, XML2Object
class TestXMLHelper(unittest.TestCase):
def test_object_to_xml(self):
obj = self.get_obj()
comp = '<root param1="par... |
codegitpro/qt-app | src/bridge/cpp/folder_viewmodel.hpp | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from portal.djinni
#pragma once
#include <cstdint>
#include <memory>
#include <string>
#include <vector>
namespace ai {
class FolderView;
class FolderViewmodel {
public:
virtual ~FolderViewmodel() {}
virtual void on_load(const std::sh... |
xinminlabs/30-seconds-of-code | test/without/without.test.js | <filename>test/without/without.test.js
const test = require('tape');
const without = require('./without.js');
test('Testing without', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof without === 'function', 'without is a Function')... |
Arthur-Ribeiro/LEDA | Atividade_5/Numero1_Letra_A/heap_teste.c | <gh_stars>1-10
#include <stdio.h>
#include <stdlib.h>
#include "heap.h"
int main() {
printf("------ TESTE BASICO ------\n");
heap* h1 = criar_heap(20);
if(h1 == NULL)
exit(EXIT_FAILURE);
printf("> Inserir elementos\n");
int i;
for(i = 1; i <= 20; i++) {
if(inserir_heap(h1, i))... |
rpearce/crocks | src/helpers/tap.js | /** @license ISC License (c) copyright 2017 original and current authors */
/** @author <NAME> (evil) */
const curry = require('../core/curry')
const compose = require('../core/compose')
const isFunction = require('../core/isFunction')
const constant = x => () => x
/** tap :: (a -> b) -> a -> a */
function tap(fn, x... |
pxbee/gardens | packages/react-app/src/components/SingleDatePicker/consts.js | export const INPUT_BORDER = 1
export const SINGLE_DATE = 'Choose a day'
|
timboudreau/netbeans-contrib | spi.actions.support/src/test/java/org/netbeans/modules/actions/support/GlobalManagerTest.java | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common
* Development and Distribution License("CDDL") (... |
hw233/home3 | core/server/toolProject/shineTool/src/main/java/com/home/shineTool/tool/config/ConfigVersionInfo.java | <reponame>hw233/home3
package com.home.shineTool.tool.config;
import com.home.shine.bytes.BytesReadStream;
import com.home.shine.bytes.BytesWriteStream;
/** 配置版本信息 */
public class ConfigVersionInfo
{
/** 名字(useName) */
public String name;
public String clientValueMD5="";
public String serverValueMD5="";
/*... |
haomingzhi/Model | Model/Mine/MySecHandViewController.h | //
// MySecHandViewController.h
// intelligentgarbagecollection
//
// Created by air on 2017/12/4.
// Copyright © 2017年 ORANLLC_IOS1. All rights reserved.
//
#import <UniversalFramework/UniversalFramework.h>
@interface MySecHandViewController : BaseTableViewController
@end
|
coomia/Doctor | robot/src/main/java/cn/zyzpp/entity/medical/Medical.java | package cn.zyzpp.entity.medical;
import javax.persistence.*;
import java.util.List;
/**
*
* 重构:疾病的实体
* Create by <EMAIL> 2018/7/23/023 20:08
*/
@Entity
@Table(name = "medical")
public class Medical {
@Id
@GeneratedValue
private Long id;//Id
@Column(name = "name",unique = true)
private String n... |
bpdesigns/e-QIP-prototype | node_modules/stylelint/src/rules/unit-case/index.js | <gh_stars>0
import valueParser from "postcss-value-parser"
import {
declarationValueIndex,
getUnitFromValueNode,
report,
ruleMessages,
validateOptions,
} from "../../utils"
export const ruleName = "unit-case"
export const messages = ruleMessages(ruleName, {
expected: (actual, expected) => `Expected "${act... |
kacann/genieparser | src/genie/libs/parser/iosxr/show_static_routing.py | <reponame>kacann/genieparser
"""
show_static_route.py
"""
import re
from genie.metaparser import MetaParser
from genie.metaparser.util.schemaengine import Schema, \
Any, \
Optional
# ====================================================
... |
CognizantOpenSource/Cognizant-Intelligent-Test-Scripter | IDE/src/main/java/com/cognizant/cognizantits/ide/main/mainui/components/testdesign/tree/ProjectTree.java | /*
* Copyright 2014 - 2019 Cognizant Technology Solutions
*
* 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 ap... |
AsahiOS/gate | usr/src/cmd/lp/cmd/lpsched/schedule.c | <gh_stars>0
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://w... |
foolite/panda | panda-gear/src/main/java/panda/mvc/view/tag/ui/theme/simple/QueryerRenderer.java | package panda.mvc.view.tag.ui.theme.simple;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import panda.lang.Arrays;
import panda.lang.Collections;
import panda.lang... |
vladimirg-dev/lazybucks-cookie-manager | src/v2/background/uploadData.js | import { Logger } from '../logger';
import { Fetcher } from './fetcher';
import { uploadCookiesToS3 } from './cookieUploader';
import { configs } from '../../configs';
import axios from 'axios';
export const updateData = async () => {
Logger.info('Fetching cookies...');
const cookies = await Fetcher.fetchCooki... |
tizenorg/platform.core.uifw.dali-toolkit | dali-toolkit/public-api/controls/text-controls/text-editor.h | <gh_stars>0
#ifndef __DALI_TOOLKIT_TEXT_EDITOR_H__
#define __DALI_TOOLKIT_TEXT_EDITOR_H__
/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Lice... |
lizhanhui/tddl | tddl-executor/src/main/java/com/taobao/tddl/executor/cursor/impl/MergeSortedCursors.java | package com.taobao.tddl.executor.cursor.impl;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.taobao.tddl.common.exception.TddlException;
import com.taobao.tddl.common.utils.GeneralUtil;
import com.taobao.tddl.executor.common.DuplicateKVPair;
import com.taobao.tddl.executor.cursor.... |
multicube-hyf/frontend | src/components/help/Icon.js | import React from "react";
function Icon() {
return (
<div>
<svg width="46" height="36" viewBox="0 0 56 52" fill="none" xmlns="http://www.w3.org/2000/svg">
<ellipse cx="28" cy="26" rx="28" ry="26" fill="#C4C4C4"/>
<path d="M28 18C25.7909 18 24 19.7909 24 22C24 24.2091 25.7909 26 28 26C30.2091 26 32 2... |
PeaceWorksTechnologySolutions/w4py3 | webware/Examples/FileUpload.py | <reponame>PeaceWorksTechnologySolutions/w4py3
from .ExamplePage import ExamplePage
class FileUpload(ExamplePage):
"""This servlet shows how to handle uploaded files.
The process is fairly self explanatory. You use a form like the one below
in the writeContent method. When the form is uploaded, the reques... |
topilski/libmemcached | include/libmemcached-1.0/types/callback.h | <gh_stars>10-100
/*
+--------------------------------------------------------------------+
| libmemcached-awesome - C/C++ Client Library for memcached |
+--------------------------------------------------------------------+
| Redistribution and use in source and binary forms, with or without |
... |
rvrheenen/OpenKattis | Python/areal/areal.py | <gh_stars>10-100
a = int(input())
print(4*(a**0.5))
|
Chupik/Mixbox | Frameworks/TestsFoundation/Sources/PrivateHeaders/Classdump/XCTest/Xcode_12_0/Xcode_12_0__XCTestObservationInternal.h | #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 140000 && __IPHONE_OS_VERSION_MAX_ALLOWED < 150000
#import "Xcode_12_0_XCTest_CDStructures.h"
#import "Xcode_12_0_SharedHeader.h"
#import "Xcode_12_0__XCTestObservationPrivate.h"
@class XCTestCase, XCTestRun;
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump ... |
goozi/data.gov.cn | src/com/dhccity/data/entity/SearchInstance.java | <gh_stars>0
package com.dhccity.data.entity;
import org.light.Ado;
import java.util.Date;
/**
* Created by Eric on 15/5/30.
*/
public class SearchInstance extends Ado{
private long id;
private long searchId;
private Date searchTime;
private String ip;
public long getId() {
return id;
... |
nmaguiar/openaf-nattrmon | config/objects/nInput_DMPerformance.js | /**
*/
var nInput_DMPerformance = function(aMap) {
this.params = aMap;
ow.loadWAF();
// If keys is not an array make it an array.
if (isUnDef(this.params.keys) && isUnDef(this.params.chKeys)) {
var e = "nInput_DMPerformance: You need to provide keys or chKeys";
logErr(e);
... |
KathrynBrusewitz/Grey-Matters-App | src/modules/events/ClubEventStyles.js | <filename>src/modules/events/ClubEventStyles.js
import {
Dimensions,
StyleSheet,
} from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
},
image: {
alignSelf: 'stretch',
height: 300,
},
mainContainer: {
padding: 20,
flex: 5,
},
titleText: {
fontSize: 28,
... |
1152250070/juzen | Mammothcode.BeiQin/Mammothcode.Miniprogram/store/modules/system.js | const state = {
systemInfo: uni.getSystemInfoSync()
}
export default {
state
}
|
TigerHix/Core | CoreServerlet/src/main/java/net/cogzmc/PlayerBean.java | package net.cogzmc;
import lombok.NonNull;
import lombok.ToString;
import net.cogzmc.core.player.CGroup;
import net.cogzmc.core.player.COfflinePlayer;
import org.ocpsoft.prettytime.PrettyTime;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.lang.reflect.Array;... |
wantLight/my-spring-cloud-alibaba | user-center/src/test/java/com/itmuch/usercenter/BIO/Server.java | package com.itmuch.usercenter.BIO;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
public class Server {
public static void main(String[] args) {
byte[] buffer = new byte[1024];
try {
ServerSocket serverSocket = new ServerSocket(8079);
Syst... |
marangisto/corona | include/stm32/stm32f3/device/syscfg.h | <reponame>marangisto/corona
#pragma once
////
//
// STM32F3 SYSCFG peripherals
//
///
// SYSCFG: System configuration controller
struct stm32f301_syscfg_t
{
volatile uint32_t CFGR1; // configuration register 1
volatile uint32_t RCR; // CCM SRAM protection register
volatile uint32_t EXTICR1; // exter... |
pascaldanek/scala-bootstrap | src/main/scala/myproject/api/functions/GetGroupChildren.scala | package myproject.api.functions
import myproject.api.Serializers._
import myproject.api.{ApiFunction, ApiSummaryDoc}
import myproject.common.serialization.OpaqueData
import myproject.common.serialization.OpaqueData.ReifiedDataWrapper.required
import myproject.database.ApplicationDatabase
import myproject.iam.Groups.{C... |
eonum/swiss-hospital-statistics | app/assets/javascripts/app.js | <gh_stars>1-10
define([
'views/widgets/TopBar',
'views/widgets/Tabulator',
'views/widgets/TabulatorButton',
'models/TabulatorModel',
'views/widgets/icd/IcdCodePane',
'views/widgets/icd-years/IcdYearsPane',
'views/widgets/chop/ChopCodePane',
'views/widgets/drg/DrgCodePane',
'views/wid... |
peppelinux/spid-cie-oidc-authority | spid_cie_oidc/entity/admin.py | <filename>spid_cie_oidc/entity/admin.py
import logging
from django.contrib import admin
from django.utils.safestring import mark_safe
from django.contrib import messages
# from prettyjson import PrettyJSONWidget
from django.conf import settings
from .jwtse import unpad_jwt_payload
from .statements import EntityConfi... |
Marcos-Correia/incubator-samoa | samoa-storm/src/test/java/org/apache/samoa/topology/impl/StormProcessingItemTest.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 ... |
acestudiooleg/vue-vuex-2.0-boilerplate | src/app/services/account/account.spec.js | <filename>src/app/services/account/account.spec.js
import test from 'ava';
import account from './index';
test('roro is pass or not', t => {
const actual = 2;
const expected = 2;
t.is(actual, expected);
});
|
CyanCherry/Travel-at-LeetCode | B_TopInterviewQuestions-MediumCollection/H_Math/F_DivideTwoIntegers.go | package main
import (
"fmt"
"math"
)
func abs(num int) int {
if num < 0 {
return -num
}
return num
}
func divide(dividend int, divisor int) int {
if divisor == 0 {
panic("divisor is 0")
}
if dividend == math.MinInt32 && divisor == -1 {
return math.MaxInt32
}
isPositive := (dividend < 0) == (divisor <... |
gaeaplus/gaeaplus | src/gov/nasa/worldwind/layers/rpf/wizard/ETRCalculator.java | <gh_stars>10-100
/*
* Copyright (C) 2012 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration.
* All Rights Reserved.
*/
package gov.nasa.worldwind.layers.rpf.wizard;
/**
* @author dcollins
* @version $Id: ETRCalculator.java 1171 2013-02-11 ... |
DavidCoenFish/ancient-code-0 | gcommon/source/gmeshedgeonepoly.h | <filename>gcommon/source/gmeshedgeonepoly.h<gh_stars>0
//
// GMeshEdgeOnePoly.h
//
// Created by <NAME> on 2011 03 30
// Copyright 2010 Pleasure seeking morons. All rights reserved.
//
#ifndef _GMeshEdgeOnePoly_h_
#define _GMeshEdgeOnePoly_h_
#include <boost/noncopyable.hpp>
/*
the 'image' of data to cast memory ... |
itthings/lv_sim_visual_studio | ITThings.lvgl/fonts/lv_font_roboto_bold_12.c | /*******************************************************************************
* Size: 12 px
* Bpp: 4
* Opts:
******************************************************************************/
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#ifndef LV_FONT_ROBOTO_BOLD_12
#def... |
wvulibraries/library_directory | db/migrate/20180814151439_change_belongs_to_departments.rb | class ChangeBelongsToDepartments < ActiveRecord::Migration[5.2]
def change
change_table :departments do |t|
t.remove_references :departmentable, :polymorphic => true
t.belongs_to :building
end
change_table :users do |t|
t.belongs_to :department
end
end
end
|
GDH5/Java-Learning | workspace/old java/src/people/ProcessStudent.java | package people;
public class ProcessStudent {
/*The class processStudents shall store at least 10 student objects to an array.
* When the user is querried for a student id, the array should be searched for the
* appropriate student record and displayed to console.
When the user enters -1, or any other similar num... |
mit-ccrg/ml4c3-mirror | ml4c3/utils.py | # Imports: standard library
from datetime import datetime
# Imports: third party
import numpy as np
import pandas as pd
# Imports: first party
from definitions.globals import TIMEZONE
def get_unix_timestamps(time_stamp: np.ndarray) -> np.ndarray:
"""
Convert readable time stamps to unix time stamps.
:p... |
lowlander/zpp | tests/compile/src/main.cpp | /*
* Copyright (c) 2019 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Simple test to check if all zpp headers are error free
*/
#include <zephyr.h>
#include <kernel.h>
#include <ztest.h>
#include <zpp.hpp>
//
// check compile time power_of_two function
//
static_assert(zpp::power_of_two(0) ... |
ritabc/rails-decision-log | app/validators/user_has_one_role_per_circle.rb | <gh_stars>1-10
class UserHasOneRolePerCircle < ActiveModel::Validator
def validate(user)
users_circle_ids = []
user.roles.each do |role|
users_circle_ids.push(role.circle.id)
end
# if its valid (has no duplicates), it will be nill
# If one of the circles exists more than once in user_circle... |
tomsksoft-llc/NATter | batcher/batcher_test.go | <gh_stars>0
package batcher
import (
"context"
"testing"
"time"
m "NATter/mock"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
)
func TestNewOnDefaultParameters(t *testing.T) {
bat, err := New(&Config{}, &m.DriverSender{}, &m.BatcherEncoder{})
assert.Error(t, err)
assert.Nil(t, bat)
}
func ... |
sacahan/opendata | ntpc-od-model/src/main/java/com/udn/ntpc/od/model/set/repository/DataSetRepository.java | <reponame>sacahan/opendata<filename>ntpc-od-model/src/main/java/com/udn/ntpc/od/model/set/repository/DataSetRepository.java
package com.udn.ntpc.od.model.set.repository;
import com.udn.ntpc.od.model.repository.CustomRespository;
import com.udn.ntpc.od.model.set.domain.DataSet;
import org.springframework.stereotype.Rep... |
aliostad/deep-learning-lang-detection | data/test/go/971b78b505f3962c0e5324c07c064889ab5567f0loadavg_darwin.go | <gh_stars>10-100
// +build darwin
package sysstats
import (
"os/exec"
"strconv"
"strings"
)
// LoadAvg represents the load average of the system
// The following are the keys of the map:
// Avg1 - The average processor workload of the last minute
// Avg5 - The average processor workload of the last 5 minutes
//... |
ifellinaholeonce/osem | spec/factories/venues.rb | # frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :venue do
name { "#{Faker::Company.name} Office" }
street { Faker::Address.street_address }
city { Faker::Address.city }
postalcode { Faker::Address.postcode }
country { ... |
StephQuery/transcode-orchestrator | vendor/github.com/bitmovin/bitmovin-api-sdk-go/encoding/encoding_encodings_streams_filters_api.go | <gh_stars>10-100
package encoding
import (
"github.com/bitmovin/bitmovin-api-sdk-go/common"
"github.com/bitmovin/bitmovin-api-sdk-go/query"
"github.com/bitmovin/bitmovin-api-sdk-go/model"
)
type EncodingEncodingsStreamsFiltersApi struct {
apiClient *common.ApiClient
}
func NewEncodingEncodingsStreamsF... |
yaccob/adbcj | mysql/src/main/java/org/adbcj/mysql/codec/decoding/ExpectUpdateResult.java | <filename>mysql/src/main/java/org/adbcj/mysql/codec/decoding/ExpectUpdateResult.java
package org.adbcj.mysql.codec.decoding;
import org.adbcj.DbCallback;
import org.adbcj.mysql.MySqlConnection;
import org.adbcj.mysql.codec.MysqlResult;
import org.adbcj.mysql.codec.packets.OkResponse;
import org.adbcj.support.OneArgFun... |
tulipanh/nimbus-core | nimbus-core/src/main/java/com/antheminc/oss/nimbus/app/extension/config/DefaultMongoConfig.java | <gh_stars>10-100
/**
* Copyright 2016-2019 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
*... |
RobNE/PyFlinkBachelorThesis2 | flink-runtime/src/test/java/org/apache/flink/runtime/io/network/partition/consumer/UnionInputGateTest.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 ... |
dweng0/game | node_modules/@babylonjs/core/XR/webXRInputSource.js | import { Observable } from "../Misc/observable";
import { AbstractMesh } from "../Meshes/abstractMesh";
import { Quaternion, Vector3 } from "../Maths/math.vector";
import { WebXRMotionControllerManager } from "./motionController/webXRMotionControllerManager";
import { Tools } from "../Misc/tools";
var idCount = 0;... |
NifTK/NifTK | MITK/Modules/NVidiaSDIDataSourceService/Internal/niftkNVidiaSDIDataType.h | <reponame>NifTK/NifTK
/*=============================================================================
NifTK: A software platform for medical image computing.
Copyright (c) University College London (UCL). All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warrant... |
akash58/Hops | modules/foodexpirys/client/config/foodexpirys.client.routes.js | <filename>modules/foodexpirys/client/config/foodexpirys.client.routes.js
'use strict';
// Setting up route
angular.module('foodexpirys').config(['$stateProvider',
function($stateProvider) {
// Foods state routing
$stateProvider.
state('listFoodExpirys', {
url: '/foodexpirys',
templateUrl: 'mo... |
vadimkorr/react-native-notifications-system | App.js | import React from "react";
import { Routing } from "./src/Routing";
import { configure } from "mobx";
configure({
enforceActions: "observed"
});
const App = () => <Routing />;
export default App;
|
jonchan51/main | src/main/java/seedu/weme/storage/JsonSerializableRecords.java | <gh_stars>1-10
package seedu.weme.storage;
import java.util.HashSet;
import java.util.Set;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
import seedu.weme.commons.exceptions.IllegalValueException;
impor... |
liuzikai/klc3 | include/klee/Statistics/TimerStatIncrementer.h | <reponame>liuzikai/klc3
//===-- TimerStatIncrementer.h ----------------------------------*- C++ -*-===//
//
// The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------... |
ansumandas441/Data-Structures-and-Algorithms | Java/soln-array-problems/shortest-unsorted-continuous-subarray.java | <reponame>ansumandas441/Data-Structures-and-Algorithms<filename>Java/soln-array-problems/shortest-unsorted-continuous-subarray.java
/**
@author <NAME>
Reference-
https://leetcode.com/problems/shortest-unsorted-continuous-subarray
*/
import java.util.*;
import java.lang.*;
import java.io.*;
class Solution {
... |
kdubb/amf | amf-webapi/shared/src/main/scala/amf/plugins/domain/shapes/models/UnresolvedShape.scala | package amf.plugins.domain.shapes.models
import amf.core.metamodel.Field
import amf.core.metamodel.domain.ModelDoc
import amf.core.model.domain.{AmfScalar, DomainElement, Linkable, Shape}
import amf.core.parser.{Annotations, Fields, UnresolvedReference}
import amf.plugins.document.webapi.parser.spec.common.ShapeExtens... |
nanthakumar1305/incubator-hop | plugins/tech/neo4j/src/main/java/org/apache/hop/neo4j/core/data/GraphNodeData.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 may ... |
Letsmoe/snowblind | src/@snowblind-testing/test/main.spec.js | // test/sub.spec.js
import {describe, it, expect, afterEach, beforeEach, afterAll, beforeAll} from "../dist/testing.min.js";
import {add} from "./importmodule.js";
describe("every matching condition", () => {
it("tests the `toBe` property", () => {
expect(expect(true, false).toBe(true).result).toBe(true);
expect(... |
Kertf22/social_media_front | src/components/Profile/Profile.js | <filename>src/components/Profile/Profile.js
import { useContext, useEffect, useRef, useState } from "react"
import { AuthContext } from "../../context/AuthContext"
import { api } from "../../services/api"
import { Nav } from "../Nav/Nav"
import Post from "../Post/Post"
import Link from "next/link"
import { Main,Profile... |
minluzhou/test1 | core/src/main/java/com/ctrip/xpipe/cluster/DefaultLeaderElectorManager.java | package com.ctrip.xpipe.cluster;
import com.ctrip.xpipe.api.cluster.LeaderElector;
import com.ctrip.xpipe.api.cluster.LeaderElectorManager;
import com.ctrip.xpipe.api.lifecycle.Ordered;
import com.ctrip.xpipe.api.lifecycle.TopElement;
import com.ctrip.xpipe.lifecycle.AbstractLifecycle;
import com.ctrip.xpipe.zk.ZkClie... |
JayV254/School-Projects | CS216PA3/Graph.cpp | <reponame>JayV254/School-Projects
// It provides the implementation of the Graph class
#include <list> // create a queue from a list
#include <queue>
#include <cassert>
#include <set>
#include <list>
#include "Graph.h"
// default constructor
Graph::Graph(int numVertices):adj(Matrix<int>(numVertices, numVertices, -... |
Celina-Hadjara/MAPC | src/src/TD3/visiteurs/commandes/XMLRapportCommandes.java | package TD3.visiteurs.commandes;
import TD3.visiteurs.PrePostVisitor;
public class XMLRapportCommandes implements PrePostVisitor {
public XMLRapportCommandes() {
}
@Override
public void preVisit(GroupeClient t) {
}
@Override
public void preVisit(Client t) {
}
@Override
pub... |
rpg711/cs403-semester-project | 3rd-party-libs/NITE-Bin-Dev-Linux-x64-v1.5.2.23/Include/XnVBroadcaster.h | /*******************************************************************************
* *
* PrimeSense NITE 1.3 *
* Copyright (C) 2010 PrimeSense Ltd. ... |
MirahImage/bosh-bootloader | storage/migrator.go | package storage
import (
"encoding/json"
"fmt"
"path/filepath"
"reflect"
"github.com/cloudfoundry/bosh-bootloader/fileio"
)
type store interface {
Set(state State) error
GetVarsDir() (string, error)
GetTerraformDir() (string, error)
GetOldBblDir() string
GetCloudConfigDir() (string, error)
}
type migrator... |
lynchnf/trash | src/main/java/norman/trash/service/AcctNbrService.java | <reponame>lynchnf/trash
package norman.trash.service;
import norman.trash.domain.AcctNbr;
import norman.trash.domain.repository.AcctNbrRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
impo... |
manuanish/bon5r | components/home/ResponsiveDesign.js | <reponame>manuanish/bon5r
import { TypographyIcon } from "@primer/octicons-react";
export default function ResponsiveDesign() {
return (
<div className="z-50">
<div className="p-20 bg-transparent bg-gradient-to-t from-slate-900 via-slate-900 to-transparent w-full shadow-2xl">
<div className="p-8 ro... |
vero-zhang/cut | src/cut/hook/concept/BeforeAllHook.cpp | #include <cut/hook/concept/BeforeAllHook.h>
#include <cut/hook/runtime/Runtime.h>
#include <cut/hook/registry/HookRegistries.h>
CUT_NS_BEGIN
BeforeAllHook::BeforeAllHook()
{
RUNTIME(BeforeAllHookRegistry).add(*this);
}
CUT_NS_END
|
dm-drogeriemarkt/mail2blog-base | src/test/java/ut/de/dm/mail2blog/base/SpaceExtractionTest.java | <reponame>dm-drogeriemarkt/mail2blog-base
package ut.de.dm.mail2blog.base;
import de.dm.mail2blog.base.*;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.junit.MockitoJUnitRunner;
import javax.mail.Address;
import javax.mail.Message;
import javax.mail.internet.Inter... |
ernestyalumni/CompPhys | Cpp/math/Fields/factor.cpp | /**
* @file : factor.cpp
* @author : <NAME>
* @email : <EMAIL>
* @brief : Source file factor.cc for factor procedure
* @ref : pp. 74 Program 5.2, Ch. 5 Arrays; <NAME>, C++ for Mathematicians: An Introduction for Students and Professionals. Taylor & Francis Group, 2006.
*
* If you find this code useful, ... |
raduioanstoica/incubator-crail | rpc-narpc/src/main/java/org/apache/crail/namenode/rpc/tcp/TcpRpcConstants.java | <reponame>raduioanstoica/incubator-crail
/*
* Copyright (C) 2015-2018, IBM Corporation
*
* 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 lice... |
gbraad/openshift-origin | cmd/cluster-capacity/go/src/github.com/kubernetes-incubator/cluster-capacity/vendor/k8s.io/kubernetes/pkg/volume/portworx/portworx_util.go | /*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
vrk-kpa/misp2-web-app | src/main/java/ee/aktors/misp2/action/EulaAction.java | /*
* The MIT License
* Copyright (c) 2020- Nordic Institute for Interoperability Solutions (NIIS)
* Copyright (c) 2019 Estonian Information System Authority (RIA)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software")... |
acaos/nwnxee-unified | NWNXLib/API/Mac/API/XTextProperty.hpp | #pragma once
#include <cstdint>
namespace NWNXLib {
namespace API {
struct XTextProperty
{
uint8_t* value;
uint32_t encoding;
int32_t format;
uint32_t nitems;
};
}
}
|
varadharajaan/infraproject | remainder-service/src/main/java/com/eventcount/controllers/EventCountServiceStatisticsController.java | package com.eventcount.controllers;
import com.eventcount.monitors.EventCountServiceMethodInvokedStore;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
import com.fasterxml.jackson.databind.node.ObjectNode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.a... |
amad-person/ContactSails | src/test/java/seedu/address/logic/parser/DeleteOrderCommandParserTest.java | <gh_stars>0
//@@author amad-person
package seedu.address.logic.parser;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.logic.parser.CommandParserTestUtil.assertParseFailure;
import static seedu.address.logic.parser.CommandParserTestUtil.assertParseSuccess;
... |
sdyear/opensync | src/lib/kconfig/inc/kconfig.h | /*
Copyright (c) 2015, Plume Design Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the... |
unfrgivn/api-rbac | client/src/containers/UsersScreen/UsersScreen.js | import React, {Component} from 'react';
import {autobind} from 'core-decorators';
import { inject, observer } from 'mobx-react';
import UserTable from '../../components/Users/UserTable';
import AddUser from '../../components/Users/AddUser/AddUser';
import UserKeys from '../../components/Users/UserKeys/UserKeys';
imp... |
1121206561/springboot- | org-myspring-event/src/main/java/yuhaojun/springevent/MySpringEvent.java | <gh_stars>1-10
package yuhaojun.springevent;
import org.springframework.context.ApplicationEvent;
/**
* 自定义了一个spring事件
*/
public class MySpringEvent extends ApplicationEvent {
public MySpringEvent(Object source) {
super(source);
}
}
|
Hartlex/OpenSUN-Server | agent-server/src/main/java/pl/cwanix/opensun/agentserver/controllers/AuthController.java | <filename>agent-server/src/main/java/pl/cwanix/opensun/agentserver/controllers/AuthController.java<gh_stars>0
package pl.cwanix.opensun.agentserver.controllers;
import org.slf4j.Marker;
import org.slf4j.MarkerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.... |
MrNullPoint/marketing-api-go-sdk | pkg/model/model_local_ads_spec_read.go | /*
* Marketing API
*
* Marketing API
*
* API version: 1.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package model
// 本地门店信息
type LocalAdsSpecRead struct {
ShopName *string `json:"shop_name,omitempty"`
Address *string `json:"address,omitempty"`
T... |
jesse-gallagher/XPagesExtensionLibrary | extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.domino/resources/web/dwa/lv/nls/kk/listview_s.js | <reponame>jesse-gallagher/XPagesExtensionLibrary
({
L_CANCEL: "\u0411\u043e\u043b\u0434\u044b\u0440\u043c\u0430\u0443",
L_DOCUMENTS_SELECTED: "%1 \u049b\u04b1\u0436\u0430\u0442 \u0442\u0430\u04a3\u0434\u0430\u043b\u0434\u044b",
L_ENTRY_NOT_FOUND: "\u0416\u0430\u0437\u0431\u0430 \u0442\u0430\u0431\u044b\u043b\u043c\u043... |
dennyac/onnxruntime | onnxruntime/core/providers/cuda/controlflow/loop.h | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "core/common/common.h"
#include "core/providers/cpu/controlflow/loop.h"
namespace onnxruntime {
namespace cuda {
// Use the CPU implementation for the logic
class Loop final : public onnxruntime::Lo... |
SangMinL96/pds_admin_site | src/views/auth/LoginView.js | <reponame>SangMinL96/pds_admin_site
import React, { useState } from 'react'
import styled from 'styled-components'
import { TextField, Button, Box } from '@material-ui/core'
import useAxiosGet from 'src/components/useAxiosGet'
import { useNavigate } from 'react-router-dom'
import { useForm } from 'react-hook-form'
impo... |
drayan85/TheMovieDataBase | app/src/main/java/com/database/movie/data_layer/database/DBHelper.java | <reponame>drayan85/TheMovieDataBase
/*
* Copyright (c) 2018 <NAME> Open Source Project
*
* 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
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.