repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
YegorKozlov/acs-aem-commons | bundle/src/main/java/com/adobe/acs/commons/httpcache/config/impl/ResourcePropertiesHttpCacheConfigExtension.java | <filename>bundle/src/main/java/com/adobe/acs/commons/httpcache/config/impl/ResourcePropertiesHttpCacheConfigExtension.java
/*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2015 Adobe
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with... |
circusliving/amp | apollo/articleByIdentifier.js | <reponame>circusliving/amp
import gql from 'graphql-tag'
export default gql`query article($identifier: String!) {
article(filter: { identifier: { eq: $identifier } }) {
name
alternateName
text,
image,
coverImage
}
}` |
LoliGothick/mitama-dimensional | tests/format-io-tests/molar_conductivity-tests/molar_conductivity-tests.cpp | <gh_stars>10-100
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <mitama/dimensional/systems/si/derived_units/molar_conductivity.hpp>
#include <mitama/dimensional/systems/si/quantity.hpp>
#include "../format_io_common.hpp"
TEST_CASE("molar_conductivity format test", "[quantity][abbreviation]") {
REQUI... |
zhangkn/iOS14Header | System/Library/PrivateFrameworks/DocumentManagerExecutables.framework/FPItemCollectionIndexPathBasedDelegate.h | /*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:54:25 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/DocumentManagerExecutables.framework/DocumentManagerExecutables
* classdump-dyld is licensed under G... |
keeponZhang/android_design_pattern_book_source | app/src/main/java/zhushen/com/shejimoshi/leetcode/partition.java | package zhushen.com.shejimoshi.leetcode;
import java.util.List;
/**
* Created by Zhushen on 2018/10/8.
*/
public class partition {
public List<List<String>> partition(String s) {
return null;
}
public ListNode partition(ListNode head, int x) {
ListNode dummyHead1 = new ListNode(0);
... |
GQMai/mbed-cloud-sdk-python | src/mbed_cloud/account_management/__init__.py | <gh_stars>10-100
from .account_management import AccountManagementAPI
from .account_management import Account
from .account_management import ApiKey
from .account_management import Group
from .account_management import LoginHistory
from .account_management import User
|
xlf19/PurchasingCenter | jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/contract/elements/mapper/ContractElementsMapper.java | <gh_stars>0
package org.jeecg.modules.contract.elements.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.contract.elements.entity.ContractElements;
/**
* @Description: 合同元素表
* @Author: jeecg-boot
* @Date: ... |
jakllsch/openafs | src/fsprobe/fsprobe_callback.c | /*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
/*
... |
djh329/Jarvis_Mark_7 | RPi/src/text/app.js | var mqtt = require('mqtt')
var client = mqtt.connect('mqtt://test.mosquitto.org')
var {SPEECH_INPUT} = require('../constants');
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
client.on('connect', function () {
console.log('Connected... |
getcircle/circle-android | app/src/main/java/com/rhlabs/circle/adapters/ProfileListAdapter.java | package com.rhlabs.circle.adapters;
import android.content.Context;
import android.support.v4.content.ContextCompat;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import ... |
pjworkspace/wscs | wscs-model/src/main/java/com/xxx/market/model/base/BaseCompTicket.java | <filename>wscs-model/src/main/java/com/xxx/market/model/base/BaseCompTicket.java<gh_stars>0
package com.xxx.market.model.base;
import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.IBean;
/**
* Generated by JFinal, do not modify this file.
*/
@SuppressWarnings("serial")
public abstract ... |
henrikingo/dsi | bin/tests/test_config_test_control.py | ''' Test config_test_control.py '''
import logging
import os
import unittest
from mock import Mock, patch
from testfixtures import LogCapture
import test_control
from common.config import ConfigDict
from common.remote_host import RemoteHost
from test_lib.fixture_files import FixtureFiles
FIXTURE_FILES = FixtureFile... |
scottyrogers10/6502-js | src/library/utils/styles/index.js | import jssToClassName from "./jss-to-class-name";
export { jssToClassName };
|
ouonline/lua-cpp | lua_function.h | #ifndef __LUA_CPP_LUA_FUNCTION_H__
#define __LUA_CPP_LUA_FUNCTION_H__
#include "lua_object.h"
#include "lua_user_data.h"
#include "func_utils.h"
#include <string>
namespace luacpp {
class LuaFunction final : public LuaObject {
public:
LuaFunction(lua_State* l, int index) : LuaObject(l, index) {}
LuaFunction(... |
hasaranga/RFC-Framework | rfc/security/KSHA1.cpp | <reponame>hasaranga/RFC-Framework
/*
RFC - KSHA1.cpp
Copyright (C) 2013-2019 CrownSoft
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this so... |
emmamcbryde/AuTuMN-1 | autumn/models/sm_sir/detection.py | from typing import Tuple, Callable, Any, Optional, List
import numpy as np
from .parameters import TestingToDetection, Population
from autumn.core.inputs import get_population_by_agegroup
from autumn.settings import COVID_BASE_AGEGROUPS
from autumn.core.utils.utils import apply_moving_average
from autumn.model_feature... |
scala-steward/reactive-aws-clients | reactive-aws-eks/core/src/main/scala/com/github/j5ik2o/reactive/aws/eks/model/ops/VpcConfigRequestOps.scala | <filename>reactive-aws-eks/core/src/main/scala/com/github/j5ik2o/reactive/aws/eks/model/ops/VpcConfigRequestOps.scala
// Auto-Generated
package com.github.j5ik2o.reactive.aws.eks.model.ops
import software.amazon.awssdk.services.eks.model._
final class VpcConfigRequestBuilderOps(val self: VpcConfigRequest.Builder) ext... |
Specla/Validator | test/types/mixed.js | /* eslint-env mocha */
const { expect } = require('chai')
const { mixed } = require('../../lib/types')
const types = require('../utils/types')
describe('Type: mixed', () => {
it('Should accept all types', () => {
const validator = mixed({ optional: true })
for (const type in types) {
expect(validator(t... |
philschmid/gatsby-blog | src/components/reusecore/Alert/index.js | import React from 'react';
import PropTypes from 'prop-types';
import AlertStyle from './alert.style';
const Alert = ({ className, isMaterial, children, ...props }) => {
// Add all classs to an array
const addAllClasses = ['reusecore__alert'];
// className prop checking
if (className) {
addAllCl... |
SyedThaseemuddin/MPLAB-Harmony-Reference-Apps | apps/sam_e70_xult/ftp_bootloader/firmware/src/config/default/driver/miim/src/dynamic/drv_miim_mapping.h | <filename>apps/sam_e70_xult/ftp_bootloader/firmware/src/config/default/driver/miim/src/dynamic/drv_miim_mapping.h
/*******************************************************************************
MIIM Driver Local Data Structures
Company:
Microchip Technology Inc.
File Name:
drv_miim_local.h
... |
R4stl1n/condex | models/IndexInfoModel.py | from peewee import *
from models.BaseModel import BaseModel
class IndexInfoModel(BaseModel):
Active = BooleanField()
TotalBTCVal = DoubleField()
TotalUSDVal = DoubleField()
BalanceThreshold = DoubleField()
OrderTimeout = IntegerField()
OrderRetryAmount = IntegerField()
Rebalance... |
scrutinizer-ci-testing/netguru-people | app/repositories/user_repository.rb | <reponame>scrutinizer-ci-testing/netguru-people
class UserRepository
def from_api(params)
search(id_or_email: params)
end
def where(params)
search(params).items
end
def active
User
.includes(
:location,
:contract_type,
:abilities,
:projects,
:roles,... |
Keneral/apackages | services/Telecomm/src/com/android/server/telecom/CallIdMapper.java | <filename>services/Telecomm/src/com/android/server/telecom/CallIdMapper.java
/*
* Copyright (C) 2014 The Android 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
*
*... |
AlgorithmLX/IndustrialLevel | build/tmp/expandedArchives/forge-1.18.1-39.0.0_mapped_official_1.18.1-sources.jar_f6a4a89164f1bd9335800eaab8a74a09/net/minecraft/world/level/levelgen/feature/configurations/NetherForestVegetationConfig.java | <filename>build/tmp/expandedArchives/forge-1.18.1-39.0.0_mapped_official_1.18.1-sources.jar_f6a4a89164f1bd9335800eaab8a74a09/net/minecraft/world/level/levelgen/feature/configurations/NetherForestVegetationConfig.java
package net.minecraft.world.level.levelgen.feature.configurations;
import com.mojang.serialization.Cod... |
Learnosity/lib-psychometrics | psychometrics-irt/src/main/java/com/itemanalysis/psychometrics/irt/estimation/ItemResponseFileSummary.java | <filename>psychometrics-irt/src/main/java/com/itemanalysis/psychometrics/irt/estimation/ItemResponseFileSummary.java
/**
* Copyright 2014 <NAME>
* <p/>
* 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... |
GwtMaterialDesign/gmd-am4charts-demo | src/main/java/gmd/amcharts4/demo/client/application/charts/gauges/AnimatedGaugeDemo.java | /*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2018 GwtMaterialDesign
* %%
* 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
*
... |
androidmalin/EffectiveJava | patterns_creational/abstract_factory_patterns/src/main/java/com/example/factory/absfactory/common/ConcreteFactoryA.java | <gh_stars>1-10
package com.example.factory.absfactory.common;
public class ConcreteFactoryA implements IAbstractFactory {
@Override
public IAbstractProductA makeProductA() {
return new ConcreteProductAWithFamilyA();
}
@Override
public IAbstractProductB makeProductB() {
return new C... |
elguero/warewulf | internal/app/wwctl/profile/delete/main.go | <gh_stars>10-100
package delete
import (
"fmt"
"os"
"github.com/hpcng/warewulf/internal/pkg/node"
"github.com/hpcng/warewulf/internal/pkg/util"
"github.com/hpcng/warewulf/internal/pkg/wwlog"
"github.com/manifoldco/promptui"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
func CobraRunE(cmd *cobra.Command,... |
JHetzel/Vagar | app/src/main/java/de/juliushetzel/sample/adapter/TaskListPropertyChangeCallback.java | <reponame>JHetzel/Vagar
package de.juliushetzel.sample.adapter;
import android.databinding.ObservableList;
import de.juliushetzel.sample.model.Task;
class TaskListPropertyChangeCallback extends ObservableList.OnListChangedCallback<ObservableList<Task>> {
private final TaskListAdapter mListAdapter;
TaskLis... |
HappyTobi/fog-azure-rm | test/requests/network/test_check_network_interface_exists.rb | <gh_stars>10-100
require File.expand_path '../../test_helper', __dir__
# Test class for Check Network Interface Exists Request
class TestCheckNetworkInterfaceExists < Minitest::Test
def setup
@service = Fog::Network::AzureRM.new(credentials)
@network_client = @service.instance_variable_get(:@network_client)
... |
iFindTA/YiBaoAssistantPro | YBAssistantPro/Vendors/Yuntx_FullLib_SDK/Manager/ECManagerBase.h | <filename>YBAssistantPro/Vendors/Yuntx_FullLib_SDK/Manager/ECManagerBase.h
//
// ECManagerBase.h
// CCPiPhoneSDK
//
// Created by jiazy on 14/11/5.
// Copyright (c) 2014年 ronglian. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ECEnumDefs.h"
/**
* 管理基类
*/
@protocol ECManagerBase <NSObject>
@e... |
Phygon/aaf | test/com/XMLStoredFormat/XMLStoredFormatTest.cpp | <reponame>Phygon/aaf
//=---------------------------------------------------------------------=
//
// $Id$ $Name$
//
// The contents of this file are subject to the AAF SDK Public Source
// License Agreement Version 2.0 (the "License"); You may not use this
// file except in compliance with the License. The License is ... |
gitter-badger/Starting-Out-With-C-Plus-Plus-Programming-Challenges | Chapter 04/009.cpp | <gh_stars>1-10
#include <iostream>
using namespace std;
int main()
{
// Constant variables
const float ONE_DOLLAR = 1.00,
PENNY = 0.01,
NICKEL = 0.05,
DIME = 0.10,
QUARTER = 0.25;
// Variables
float pennies,
ni... |
OutpostUniverse/op2-landlord | OP2-Landlord/Control.h | #pragma once
#include "NAS2D/NAS2D.h"
using namespace NAS2D;
/**
* \class Control
* \brief Implements a base for all GUI Controls to derive from.
*
* I know that this has already been effectively implemented in NAS2D_Gui. I rebuilt
* it here with some cleaner design paradigms in addition to the newer event sy... |
TopDogger1/corrosion | net/java/games/input/Component$Identifier.java | package net.java.games.input;
public class Identifier {
private final String name;
protected Identifier(String name) {
this.name = name;
}
public String getName() {
return this.name;
}
public String toString() {
return this.name;
}
public static class Key ext... |
gzacharski/AGH-Praca-inzynierska-front-end | src/main/components/timetable/appointmentTooltip/HeaderTooltip.js | <gh_stars>0
/* eslint-disable react/jsx-props-no-spreading */
import React, { useState } from 'react';
import { AppointmentTooltip } from '@devexpress/dx-react-scheduler-material-ui';
import { IconButton, Menu, MenuItem, Fade } from '@material-ui/core';
import { MoreVert } from '@material-ui/icons';
export const Heade... |
timmy61109/C-How-to-Program | src/fig09_04.c | // Fig. 9.2: fig09_04.c
// Using filationg-point conversion specifiers
#include <stdio.h>
int main(int argc, char const *argv[]) {
printf("%e\n", 1234567.89);
printf("%e\n", +1234567.89);
printf("%e\n", -1234567.89);
printf("%E\n", 1234567.89);
printf("%f\n", 1234567.89);
printf("%g\n", 1234567.89);
prin... |
jtama/quarkus-github-app | testing/src/main/java/io/quarkiverse/githubapp/testing/dsl/EventContextSpecification.java | package io.quarkiverse.githubapp.testing.dsl;
public interface EventContextSpecification {
<T extends Throwable> EventContextSpecification github(GitHubMockSetup<T> gitHubMockSetup) throws T;
EventSenderOptions when();
}
|
rehohoho/coiltraine | coilutils/experiment_schedule.py |
from logger import monitorer
import heapq
def get_remainig_exps(executing_processes, experiment_list):
executing_list = []
for process in executing_processes:
executing_list.append(process['experiment'])
return list(set(experiment_list)- set(executing_list))
def get_gpu_resources(gpu_resource... |
b8raoult/magics | src/attributes/EpsPlumeAttributes.h |
/******************************* LICENSE *******************************
* (C) Copyright 1996-2016 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the... |
quqiangsheng/abhot | src/main/java/com/max256/abhot/core/datastore/TagSetImpl.java | <reponame>quqiangsheng/abhot<gh_stars>1-10
package com.max256.abhot.core.datastore;
import com.google.common.collect.TreeMultimap;
import java.util.Set;
/**
* TagSetImpl
* @author fbf
*
*/
public class TagSetImpl implements TagSet
{
private TreeMultimap<String, String> m_tags = TreeMultimap.create();
public ... |
mbryles/devcon_reactor | src/main/java/com/blastingconcept/devcon/domain/post/PostRepository.java | <reponame>mbryles/devcon_reactor
package com.blastingconcept.devcon.domain.post;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
public interface PostRepository {
Mono<Post> save(Post post);
Flux<Post> findAll();
Mono<Post> findById(String id);
Mono<Void> deleteById(String id);... |
keiichi-hikita/eclsdk | ecl/dns/v2/_proxy.py | <reponame>keiichi-hikita/eclsdk
# 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... |
SkyLined/mWindowsAPI | fStopDebuggingForProcessId.py | from .fThrowLastError import fThrowLastError;
def fStopDebuggingForProcessId(uProcessId):
oKernel32 = foLoadKernel32DLL();
if not oKernel32.DebugActiveProcessStop(uProcessId):
fThrowLastError("DebugActiveProcessStop(%d/0x%X)" % (uProcessId, uProcessId,));
|
Next-Gen-UI/Code-Dynamics | Leetcode/1000-2000/1825. Finding MK Average/1825.cpp | <filename>Leetcode/1000-2000/1825. Finding MK Average/1825.cpp
class MKAverage {
public:
MKAverage(int m, int k) : m(m), k(k) {}
void addElement(int num) {
q.push(num);
add(mid, num);
midSum += num;
if (q.size() > m) {
const int removed = q.front();
q.pop();
if (top.count(remove... |
httpsgithu/mindspore | mindspore/lite/src/delegate/tensorrt/op/allgather_tensorrt.cc | <filename>mindspore/lite/src/delegate/tensorrt/op/allgather_tensorrt.cc<gh_stars>1-10
/**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*... |
SLAsticSPE/slastic | src-gen/kieker/tools/slastic/metamodel/usage/AssemblyComponentConnectorCallFrequency.java | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package kieker.tools.slastic.metamodel.usage;
import kieker.tools.slastic.metamodel.componentAssembly.AssemblyComponentConnector;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Assembly Component Connector Call Frequency</b></em>'.
* <... |
ericcf/icalendar2 | lib/icalendar2/property/dtend.rb | module Icalendar2
module Property
# See http://tools.ietf.org/html/rfc5545#section-3.8.2.2
class Dtend < Base
name "DTEND"
value :types => [:date_time, :date]
end
end
end
|
MrLiuFang/emap | emap-service/src/main/java/com/pepper/service/emap/event/EventRuleService.java | <gh_stars>1-10
package com.pepper.service.emap.event;
import com.pepper.core.base.BaseService;
import com.pepper.model.emap.event.EventRule;
public interface EventRuleService extends BaseService<EventRule> {
/**
*
* @param nodeId
* @return
*/
public EventRule findByNodeId(String nodeId);
... |
1iyiwei/deform2d | Wml/Source/Meshes/WmlBasicMesh.cpp | <reponame>1iyiwei/deform2d
// Magic Software, Inc.
// http://www.magic-software.com
// http://www.wild-magic.com
// Copyright (c) 2004. All Rights Reserved
//
// The Wild Magic Library (WML) source code is supplied under the terms of
// the license agreement http://www.magic-software.com/License/WildMagic.pdf
/... |
johnthecat/babel-plugin-jsdoc-runtime-type-check | test/smoke/fixtures/runtime/src/exception/wrong-validate-in-scope.js | // @typecheck
function Test() {}
/**
* @param {Test} data
* @returns {null}
*/
function testFunction(data) {
return null;
}
testFunction('wrong data');
|
jjzhang166/avocadodb | 3rdParty/velocypack/include/velocypack/Helpers.h | ////////////////////////////////////////////////////////////////////////////////
/// @brief Library to build up VPack documents.
///
/// DISCLAIMER
///
/// Copyright 2015 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compl... |
hjheath/ProjectEuler | projecteuler/problems/problem_42.py | <filename>projecteuler/problems/problem_42.py
"""Problem 42 of https://projecteuler.net"""
from itertools import takewhile
from pkg_resources import resource_string
from projecteuler.generators import triangle_numbers
# Assume no word is longer than 20 letters
TRIANGLES = [x for x in takewhile(lambda x: x < 520, tr... |
it-novum/openitcockpit-agent-go | checks/agent_posix.go | // +build linux darwin
package checks
import (
"context"
"runtime"
"time"
"github.com/it-novum/openitcockpit-agent-go/config"
"github.com/shirou/gopsutil/v3/host"
)
// Run the actual check
// if error != nil the check result will be nil
// ctx can be canceled and runs the timeout
// CheckResult will be seriali... |
supertick/jmonkeyengine | jme3-core/src/main/java/com/jme3/shader/ShaderGenerator.java | /*
* Copyright (c) 2009-2021 jMonkeyEngine
* 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... |
SINTEF/simapy | src/sima/metocean/blueprints/directiondependentweibulldistribution.py | #
# Generated with DirectionDependentWeibullDistributionBlueprint
from dmt.blueprint import Blueprint
from dmt.dimension import Dimension
from dmt.attribute import Attribute
from dmt.enum_attribute import EnumAttribute
from dmt.blueprint_attribute import BlueprintAttribute
from .weibulldistribution import WeibullDistr... |
alefbispo/Exercicios-do-curso-de-Python | Pyon exercicios/Exercicios/061.py | <reponame>alefbispo/Exercicios-do-curso-de-Python
'''Refaça o DESAFIO 51,
lendo o primeiro termo e a razão de uma PA,
mostrando os 10 primeiros termos da progressão usando a estrutura while.'''
primeiro = int(input('Qual o termo? '))
progressao = int(input('Pular de quanto em quanto? '))
contador = 1
termo = primei... |
ManpraXSoftware/discourse-lite | discourse/src/main/java/com/manprax/discourseplugin/discourse_views/DiscoursePostFragment.java | <gh_stars>0
package com.manprax.discourseplugin.discourse_views;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
import android.supp... |
xSuperr/gophertunnel | minecraft/nbt/dump.go | package nbt
import (
"fmt"
"reflect"
"strconv"
"strings"
)
// Dump returns a human readable decoded version of a serialised slice of NBT encoded using the encoding that
// is passed.
// Types are printed using the names present in the doc.go file and nested tags are indented using a single
// tab.
// Due to the n... |
aggarwal2000/ginkgo | examples/ginkgo-overhead/ginkgo-overhead.cpp | /*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2021, the Ginkgo authors
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 co... |
sungho-joo/leetcode2github | src/leetcode_91_decode_ways.py | <gh_stars>0
# @l2g 91 python3
# [91] Decode Ways
# Difficulty: Medium
# https://leetcode.com/problems/decode-ways
#
# A message containing letters from A-Z can be encoded into numbers using the following mapping:
#
# 'A' -> "1"
# 'B' -> "2"
# ...
# 'Z' -> "26"
#
# To decode an encoded message,
# all the digits must be ... |
athenagroup/brxm | services-htmlprocessor/src/test/java/org/onehippo/cms7/services/htmlprocessor/service/VisibleHtmlCheckerServiceTest.java | /*
* Copyright 2019 <NAME>. (http://www.onehippo.com)
*
* 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... |
phillip-keldenich/squares-in-disk | ivarp/include/ivarp/math_fn/eval.hpp | // The code is open source under the MIT license.
// Copyright 2019-2020, <NAME>, TU Braunschweig, Algorithms Group
// https://ibr.cs.tu-bs.de/alg
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// th... |
cflowe/ACE | TAO/TAO_IDL/be/be_param_holder.cpp | <filename>TAO/TAO_IDL/be/be_param_holder.cpp
//=============================================================================
/**
* @file be_param_holder.cpp
*
* $Id: be_param_holder.cpp 91816 2010-09-17 08:35:56Z johnnyw $
*
* Place holder referenced by AST_Field (or subclass)
* representing a correspondi... |
Jasonandy/Skeleton-X | skeleton-webapp/src/main/java/cn/ucaner/skeleton/webapp/entity/Message.java | /*******************************************************************************
* ~ Copyright (c) 2018 [<EMAIL> | https://github.com/Jasonandy] *
* ~ *
* ~ Licensed under the Apache License, Version 2.0 (the "License”); *
* ~ you m... |
manavm1990/stream-adventure-1 | test/solutions/duplexer.js | const { spawn } = require('child_process')
const duplexer = require('duplexer2')
module.exports = function (cmd, args) {
const ps = spawn(cmd, args)
return duplexer(ps.stdin, ps.stdout)
}
|
pageseeder/psml | src/main/java/org/pageseeder/psml/template/XML.java | <filename>src/main/java/org/pageseeder/psml/template/XML.java<gh_stars>0
/*
* Copyright 2016 Allette Systems (Australia)
* http://www.allette.com.au
*
* 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... |
dmgerman/hadoop | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/resourceplugin/deviceframework/DeviceResourceDockerRuntimePluginImpl.java | <gh_stars>0
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The... |
DEFRA/ffc-pay-processing | app/processing/route-debt-to-request-editor.js | <reponame>DEFRA/ffc-pay-processing
const db = require('../data')
const { getHoldCategoryId } = require('../holds')
const sendDebtMessage = require('../messaging/send-debt-message')
const holdAndReschedule = require('../reschedule')
const util = require('util')
const routeToRequestEditor = async (paymentRequest) => {
... |
TomasEkeli/AspNetCore | Legacy/doLittle.JavaScript.Specs/validation/for_Validator/when_creating_without_options_and_setting_options_later.js | <gh_stars>0
describe("when creating without options and setting options later", function () {
var options = { something: "hello world" };
var rules = { knownRule: options };
var validator = null;
var knownRule = null;
beforeEach(function () {
knownRule = {
_name: "knownRule",
... |
MMMMQQQQ/shacl-plugin | lib/shacl-master/src/test/java/org/topbraid/shacl/MF.java | package org.topbraid.shacl;
import com.hp.hpl.jena.rdf.model.Property;
import com.hp.hpl.jena.rdf.model.Resource;
import com.hp.hpl.jena.rdf.model.ResourceFactory;
public class MF {
public final static String BASE_URI = "http://www.w3.org/2001/sw/DataAccess/tests/test-manifest";
public final static String NS = BA... |
CognizantOpenSource/Cognizant-Intelligent-Test-Scripter | StoryWriter/src/main/java/com/cognizant/storywriter/bdd/ui/UIControl.java | <reponame>CognizantOpenSource/Cognizant-Intelligent-Test-Scripter
/*
* Copyright 2014 - 2017 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
*
... |
chenleii/chen-ddd | ddd-core/ddd-core-order/src/main/java/com/chen/ddd/core/order/domain/model/event/PrepaidOrderEvent.java | package com.chen.ddd.core.order.domain.model.event;
import com.chen.ddd.core.order.domain.model.Order;
import lombok.Getter;
import lombok.ToString;
import lombok.experimental.SuperBuilder;
/**
* @author cl
* @version 1.0
* @since 2021/9/6 21:23
*/
@SuperBuilder
@Getter
@ToString(callSuper = true)
public class Pr... |
HeatherHeath5/swirve | SwrveSDK/src/main/java/com/swrve/sdk/rest/SwrveFilterInputStream.java | <filename>SwrveSDK/src/main/java/com/swrve/sdk/rest/SwrveFilterInputStream.java
package com.swrve.sdk.rest;
import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;
public final class SwrveFilterInputStream extends FilterInputStream {
private boolean hasMoreToRead = true;
pub... |
zhukevgeniy/owi | bin/www.js | <reponame>zhukevgeniy/owi
if(process.env.NODE_ENV === 'production'){
require('../dist/server.bundle.js');
} else {
require('../server');
}
|
yossugi/vico | app/ViMarkManager.h | /*
* Copyright (c) 2008-2012 <NAME> <<EMAIL>>
* 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 o... |
heatd/edk2-platforms | Platform/Intel/WhitleyOpenBoardPkg/Include/Library/MultiPlatSupportLib.h | <filename>Platform/Intel/WhitleyOpenBoardPkg/Include/Library/MultiPlatSupportLib.h
/** @file
@copyright
Copyright 2012 - 2021 Intel Corporation. <BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _MULTI_PLATFORM_SUPPORT_LIB_H_
#define _MULTI_PLATFORM_SUPPORT_LIB_H_
#define MAX_TEMP_BUFFE... |
michael105/minicore | core/rm.c | <reponame>michael105/minicore<gh_stars>10-100
#if 0
mini_start
mini_writes
mini_perror
mini_errno
LDSCRIPT text_and_bss
shrinkelf
INCLUDESRC
return
#endif
void usage(){
writes("Usage: rm file1 [file2] ...\n");
exit(1);
}
int main(int argc, char *argv[])
{
int i;
if (argc == 1) {
usage();
}
for (i = 1; i <... |
PaulYuQ/Movie_Seven | src/main/java/dao/CommentDao.java | <reponame>PaulYuQ/Movie_Seven<filename>src/main/java/dao/CommentDao.java<gh_stars>0
package dao;
import pojo.Comment;
import java.util.List;
/**
* @Author <NAME>
* @Date 2020/9/13 18:53
* @Version 1.0
* Comment(评论)的dao 层
*/
public interface CommentDao{
/**
* 根据电影id的查询指定的comments
* @param movie_id ... |
ut-osa/syncchar | linux-2.6.16-unmod/drivers/usb/storage/jumpshot.c | /* Driver for Lexar "Jumpshot" Compact Flash reader
*
* $Id: jumpshot.c,v 1.7 2002/02/25 00:40:13 mdharm Exp $
*
* jumpshot driver v0.1:
*
* First release
*
* Current development and maintenance by:
* (c) 2000 <NAME> (<EMAIL>)
*
* Many thanks to <NAME> for the SanDisk SmartMedia reader driver
* which ... |
chenhaigang888/CHGAdapter | CHGAdapter/Sample/TableView/CHGSimpleTableViewAdapter用法/view/UITableViewCell/AddressNoSelectTableViewCell.h | <filename>CHGAdapter/Sample/TableView/CHGSimpleTableViewAdapter用法/view/UITableViewCell/AddressNoSelectTableViewCell.h
//
// AddressNoSelectTableViewCell.h
// CHGAdapter
//
// Created by <NAME> on 2018/7/28.
// Copyright © 2018年 <NAME>. All rights reserved.
//
#import "CHGTableViewCell.h"
@interface AddressNoSelec... |
tobice/payola-viz | src/app/model/rdf/sparql/visualization/extractor/ConceptCountExtractor.scala | package model.rdf.sparql.visualization.extractor
import model.rdf.extractor.QueryExecutionResultExtractor
import model.rdf.sparql.visualization.query.ConceptCountQuery
import org.apache.jena.query.QueryExecution
class ConceptCountExtractor extends QueryExecutionResultExtractor[ConceptCountQuery, Int] {
def extract... |
DanylZhang/IdeaWorkspace | spiders/src/main/java/com/danyl/spiders/jooq/gen/proxy/tables/Proxy.java | /*
* This file is generated by jOOQ.
*/
package com.danyl.spiders.jooq.gen.proxy.tables;
import com.danyl.spiders.jooq.gen.proxy.Indexes;
import com.danyl.spiders.jooq.gen.proxy.Keys;
import com.danyl.spiders.jooq.gen.proxy.Public;
import com.danyl.spiders.jooq.gen.proxy.tables.records.ProxyRecord;
import java.time... |
yohcop/google-depan | DepanEdge/prod/src/com/google/devtools/depan/edges/matchers/GraphEdgeMatchers.java | <filename>DepanEdge/prod/src/com/google/devtools/depan/edges/matchers/GraphEdgeMatchers.java
/**
*
*/
package com.google.devtools.depan.edges.matchers;
import com.google.devtools.depan.graph.api.Relation;
import com.google.devtools.depan.graph.api.RelationSet;
import com.google.devtools.depan.model.GraphEdgeMatcher... |
getmrinal/Algo-Dump | stack.cpp | <filename>stack.cpp<gh_stars>0
#include<iostream>
using namespace std;
class Node{
public:
int data;
Node*next;
Node(int data){
this->data = data;
this->next = NULL;
}
};
Node * Push(Node*head=NULL){
cout<<"enter element in stack";
int data;
cin>>data;
if(data ==-1){
return head;
}e... |
HossamBadawy/miniProject | node_modules/decree/tests/01.test.js | var should = require('should'),
assert = require('assert'),
decree = require('../');
describe('judge returns args', function() {
var decs = [{
type: 'string'
}, {
type: 'number'
}, {
type: 'hash'
}];
var judge = decree(decs);
describe('with legal arguments', f... |
ItsMrTurtle/PythonChris | Unit 2 Strings and Tuples/Lesson9.1.py | <filename>Unit 2 Strings and Tuples/Lesson9.1.py
# -*- coding: utf-8 -*-
"""
Created on Tue Apr 21 00:21:51 2020
@author: abcdk
"""
#Swaps
long = "hello"
short = "hi"
(short,long) = (long, short)
s = "strong"
w = "weak"
(s,w) = (w,s)
yes = "affirmative"
no = "negative"
(yes,no) = (no,yes) |
jayanth-karri22/Onsurity-Demo | app/components/Header/NavBar.js | <reponame>jayanth-karri22/Onsurity-Demo<filename>app/components/Header/NavBar.js
import styled from 'styled-components';
export default styled.div`
flex: 2;
text-align: center;
display: flex;
justify-content: space-between;
align-items: center;
@media (max-width: 768px) {
margin: 5% 0 0 5%;
}
`;
|
Jiezhi/myleetcode | src/648-ReplaceWords.py | <reponame>Jiezhi/myleetcode
#!/usr/bin/env python
"""
CREATED AT: 2021/10/8
Des:
https://leetcode.com/problems/replace-words/
https://leetcode.com/explore/learn/card/trie/148/practical-application-i/1053/
GITHUB: https://github.com/Jiezhi/myleetcode
Difficulty: Medium
See: 208
Tag: Trie
"""
from typing import List
... |
flipsters/connekt | commons/src/main/scala/com/flipkart/connekt/commons/entities/WNSCredential.scala | <reponame>flipsters/connekt<gh_stars>1-10
/*
* -╥⌐⌐⌐⌐ -⌐⌐⌐⌐-
* ≡╢░░░░⌐\░░░φ ╓╝░░░░⌐░░░░╪╕
* ╣╬░░` `░░░╢┘ φ▒╣╬╝╜ ░░╢╣Q
* ║╣╬░⌐ ` ╤▒▒▒Å` ║╢╬╣
* ╚╣╬░⌐ ╔▒▒▒▒`«╕ ╢╢╣▒
* ╫╬░░╖ .░ ╙╨╨ ╣╣╬░φ ╓φ░╢╢Å
* ╙╢░░░░⌐"░░░╜ ╙Å░░░░⌐░░░░╝`
... |
guanjilai/FastCAE | Code/ModelData/modelDataSingleton.cpp | #include "modelDataSingleton.h"
#include "modelDataBase.h"
#include <QString>
#include <assert.h>
#include <QDataStream>
#include <QCryptographicHash>
#include <QDomElement>
#include <QDomDocument>
#include <QDebug>
#include <QFile>
#include <QTextCodec>
namespace ModelData
{
ModelDataSingleton* ModelDataSingleton::_i... |
Softsimulation/siturmagdalena | public/js/administrador/eventos/indexController.js | <filename>public/js/administrador/eventos/indexController.js
/* global angular */
/* global swal */
angular.module('eventos.index', [])
.controller('eventosIndexController', function($scope, eventosServi){
$("body").attr("class", "cbp-spmenu-push charging");
eventosServi.getDatos().then(function (data){
... |
panjinqiang11/xqDoctor | XQDoctors/XQDoctors/rwdTableViewCell.h | <gh_stars>1-10
//
// rwdTableViewCell.h
// XQDoctor
//
// Created by 任文迪 on 16/6/27.
// Copyright © 2016年 li. All rights reserved.
//
#import <UIKit/UIKit.h>
@class settingModel;
@interface rwdTableViewCell : UITableViewCell
@property(strong,nonatomic)settingModel *model;
@end
|
NicolasdeLimaAlves/Curso-de-Python | Mundos/Mundo 2/Aulas/Aula 12/ex038.py | <gh_stars>0
np = int(input('Digite o primeiro número: '))
ns = int(input('Digite o segundo número: '))
if np > ns:
print('O primeiro número é o MAIOR'.format('\033[1:32m', '\033[m'))
elif ns > np:
print('O segundo número é o MAIOR'.format('\033[1:32m', '\033[m'))
else:
print('Os dois número são iguais') |
chrischen/gluestick | packages/gluestick/src/config/webpack/prepareEntries.js | /* @flow */
import type { GSConfig } from '../../types';
const path = require('path');
const { convertToCamelCase } = require('../../utils');
module.exports = (
gluestickConfig: GSConfig,
appOrGroupToBuild?: string,
): Object => {
const entries = require(path.join(
process.cwd(),
gluestickConfig.entries... |
Incapture/OG-Platform | projects/OG-Engine/src/main/java/com/opengamma/engine/fudgemsg/ViewComputationResultModelFudgeBuilder.java | /**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.engine.fudgemsg;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import org.fudgemsg.FudgeField;
import org.fudgemsg.FudgeMsg;
import... |
sgroschupf/katta | modules/katta-core/src/main/java/net/sf/katta/node/monitor/MetricsRecord.java | /**
* Copyright 2008 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 required by applicable ... |
mzsilak/arrowhead | core-common/src/main/java/eu/arrowhead/common/database/ArrowheadService.java | <filename>core-common/src/main/java/eu/arrowhead/common/database/ArrowheadService.java
/*
* This work is part of the Productive 4.0 innovation project, which receives grants from the
* European Commissions H2020 research and innovation programme, ECSEL Joint Undertaking
* (project no. 737459), the free state of Saxo... |
jxblum/cp-elements | src/main/java/org/cp/elements/data/struct/tabular/AbstractColumn.java | /*
* Copyright 2011-Present 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 required by applicable la... |
MegEngine/cutlass-bak | include/cutlass/convolution/device/convolution.h | <reponame>MegEngine/cutlass-bak<filename>include/cutlass/convolution/device/convolution.h
/***************************************************************************************************
* Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, wi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.