repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
9d77v/leetcode
internal/leetcode/256.paint-house/main.go
package main import ( "fmt" . "github.com/9d77v/leetcode/pkg/algorithm/math" ) /* 题目:粉刷房子 假如有一排房子,共 n 个,每个房子可以被粉刷成红色、蓝色或者绿色这三种颜色中的一种,你需要粉刷所有的房子并且使其相邻的两个房子颜色不能相同。 当然,因为市场上不同颜色油漆的价格不同,所以房子粉刷成不同颜色的花费成本也是不同的。每个房子粉刷成不同颜色的花费是以一个 n x 3 的矩阵来表示的。 例如,costs[0][0] 表示第 0 号房子粉刷成红色的成本花费;costs[1][2] 表示第 1 号房子粉刷成绿色的花费,以此类推。请你计算...
WarMachineSwe/IronWorks
server/utils/io.js
<gh_stars>0 var fs = require('fs') var path = require('path') /** * Buffers file from path * @param relPath {string} path to buffer * @return {Buffer | string} content of file */ function bufferFile (relPath) { return fs.readFileSync(path.join(__dirname, relPath)) } module.exports = { 'bufferFile': bufferFile...
pablrod/cppplotly
include/CppPlotly/Trace/Isosurface/Slices.h
<filename>include/CppPlotly/Trace/Isosurface/Slices.h<gh_stars>1-10 /** * @file Slices.h This attribute is part of the possible options for the trace isosurface. This file has been autogenerated from the official plotly.js source. If you like Plotly, please support them: L<https://plot.ly/> Open source announcement...
rdubois/tcommon-studio-se
main/plugins/org.talend.cwm.mip/src/orgomg/cwm/analysis/businessnomenclature/Concept.java
/** * <copyright> </copyright> * * $Id$ */ package orgomg.cwm.analysis.businessnomenclature; import org.eclipse.emf.common.util.EList; /** * <!-- begin-user-doc --> A representation of the model object ' * <em><b>Concept</b></em>'. <!-- end-user-doc --> * * <!-- begin-model-doc --> * This represents a busin...
adixonn/SVT-AV1
Source/Lib/Common/Codec/EbEntropyCoding.h
<reponame>adixonn/SVT-AV1 /* * Copyright(c) 2019 Intel Corporation * SPDX - License - Identifier: BSD - 2 - Clause - Patent */ /* * Copyright (c) 2016, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License ...
kevinbarabash/mobile-mathipulator
src/transforms/evaluate.js
import { generateId } from '../ast/node'; import Selection from '../ui/selection'; import eliminateZero from './eliminate-zero'; import params from '../params' const operations = { '+': (a, b) => a + b, '-': (a, b) => a - b, '*': (a, b) => a * b, '/': (a, b) => a / b, }; function canTransform(selectio...
antopen/alipay-sdk-java-all
src/main/java/com/alipay/api/response/KoubeiQualityTestShieldOrderCreateResponse.java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: koubei.quality.test.shield.order.create response. * * @author <NAME> * @since 1.0, 2019-08-30 20:12:07 */ public class KoubeiQualityTestShieldOrderCreateResponse...
albertosantiago/twitter-posts
src/resources/assets/js/components/tags/twp-post-link.js
'use strict'; import $ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import interact from 'interact.js'; import App from 'app/app'; import {isMsieBrowser} from 'app/lib/util'; class TwpPostLinkHTMLElement extends HTMLElement { constructor(){ super(); this.data = { ...
AkshayPathak/PrivacyStreams
privacystreams-android-sdk/src/main/java/io/github/privacystreams/core/transformations/filter/KeepChangesFilter.java
<filename>privacystreams-android-sdk/src/main/java/io/github/privacystreams/core/transformations/filter/KeepChangesFilter.java package io.github.privacystreams.core.transformations.filter; import io.github.privacystreams.core.Item; /** * Only keep the changed items in the stream. */ final class KeepChangesFilter ex...
CarolinaAzcona/FreeRTOS
vendors/cypress/MTB/libraries/whd-bsp-integration/docs/html/modules.js
<reponame>CarolinaAzcona/FreeRTOS var modules = [ [ "Buffer management", "group__group__bsp__network__buffer.html", "group__group__bsp__network__buffer" ], [ "WiFi Initialization", "group__group__bsp__wifi.html", "group__group__bsp__wifi" ] ];
DingdingLuan/PycharmProjects
openingangle/calculate9.29.py
<filename>openingangle/calculate9.29.py from Calculatefunction import * import numpy as np integralnumber=10000 eps=0.4 alpha=-1.1 beta=-2.2 rho=1 samplenumber=300 proz=[] prol=[] zmock=[] #generate the new z-distribution function from N: zpdf=[] for i in range(integralnumber): # z=10**(i*1/integralnumber)-1 ...
greeneries/greeneries.github.io
spring/spring-proxy-aop/src/main/java/com/example/demo/proxy/step2/Hello.java
<filename>spring/spring-proxy-aop/src/main/java/com/example/demo/proxy/step2/Hello.java package com.example.demo.proxy.step2; public interface Hello { public void say(); }
kmader/MMdnn
mmdnn/conversion/examples/paddle/extractor.py
<filename>mmdnn/conversion/examples/paddle/extractor.py #---------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. #----------...
Youngho-Oh/Airmail
rf/zb/zdo/zdo_app.c
/*************************************************************************** * ZBOSS ZigBee Pro 2007 stack * * * * Copyright (c) 2012 DSR Corporation Denver CO, USA. * * ...
Spooner/pixel-table
pixel_table/sprites/sprite.py
from __future__ import absolute_import, division, print_function, unicode_literals from ..mixins.handles_events import HandlesEvents class Sprite(HandlesEvents): def __init__(self, x, y, width=1, height=1, color=(1.0, 1.0, 1.0)): self._x, self._y = x, y self._width, self._height = width, height ...
sungrade/sungrade_rails_toolkit
lib/sungrade_rails_toolkit/workflow_role.rb
<reponame>sungrade/sungrade_rails_toolkit require "json" require "sungrade_rails_toolkit/workflow_role/v0" module SungradeRailsToolkit module WorkflowRole class << self def v0 WorkflowRole::V0 end end end end
EddLabs/eddington-static
src/statue/runner.py
<reponame>EddLabs/eddington-static """Command map runner.""" import abc import asyncio import time from enum import Enum, auto from pathlib import Path from typing import List import tqdm from statue.command import Command from statue.commands_map import CommandsMap from statue.constants import BAR_FORMAT, MAIN_BAR_C...
BillionaireDY/tui.grid
test/unit/js/common/i18n.spec.js
'use strict'; var i18n = require('common/i18n'); describe('i18n', function() { describe('setLanguage', function() { it('when setting the locale code that the grid has aleady, ' + 'the locale messages are set and changed.', function() { i18n.setLanguage('en'); expect(i18...
Fusion-Rom/android_external_chromium_org
mojo/aura/context_factory_mojo.h
// 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. #ifndef MOJO_AURA_CONTEXT_FACTORY_MOJO_H_ #define MOJO_AURA_CONTEXT_FACTORY_MOJO_H_ #include "ui/compositor/compositor.h" namespace mojo { class Contex...
edwinvautier/go-cli
cmd/create.go
package cmd /* Copyright © 2021 <NAME> <<EMAIL>> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
SarveshPwC/VKYCD
node_modules/rxjs-compat/_esm5/operator/buffer.js
<filename>node_modules/rxjs-compat/_esm5/operator/buffer.js import { buffer as higherOrder } from 'rxjs/operators'; export function buffer(closingNotifier) { return higherOrder(closingNotifier)(this); } //# sourceMappingURL=buffer.js.map
flics04/XXXASYBT_CppBase
Chapter4/Practice/1063.cpp
#include <iostream> using namespace std; int main() { int n, t, maxn, minn, max_kdz; cin >> n >> t; maxn = t; minn = t; for (int i = 2; i <= n; i++) { cin >> t; if (t > maxn) maxn = t; else if (t < minn) minn = t; } max_kdz = maxn - minn; ...
mskiitd/MAS-GUI
AgentProxy/src/mas/machineproxy/gui/custompanels/AttributeInputPanel.java
package mas.machineproxy.gui.custompanels; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.SwingUtilities; import mas.jobproxy.JobGNGattribute; import mas.util.formatter.stringformatter.FormattedStringField; import uiconstants.Labels; public class A...
kagemeka/atcoder-submissions
jp.atcoder/abc030/abc030_b/11017314.js
<reponame>kagemeka/atcoder-submissions "use strict"; const fs = require('fs'); function int(n) { return parseInt(n, 10); } function main(input) { var n, m; input = input.trim().split(' ').map(n => int(n)) ; n = input[0]; m = input[1]; var a, b; b = m * 6; n = n % 12; a = 30 * (n + m /...
icred/base
model/src/model-generated/eu/icred/model/node/entity/Account.java
<filename>model/src/model-generated/eu/icred/model/node/entity/Account.java package eu.icred.model.node.entity; import eu.icred.model.annotation.ChildList; import eu.icred.model.annotation.DataField; import eu.icred.model.annotation.Node; import eu.icred.model.datatype.Amount; import eu.icred.model.datatype.enumeratio...
floppyMike/CustomLibrary
include/CustomLibrary/utility.h
#pragma once #include <array> #include <string_view> #include <string> #include <bitset> #include <fstream> #include <tuple> #include "Traits.h" #include "Error.h" #include <cmath> namespace ctl { // ----------------------------------------------------------------------------- // Math // ------------------------...
zhiming-shen/Xen-Blanket-NG
linux-kernel/linux-3.4.53-blanket/include/linux/migrate.h
#ifndef _LINUX_MIGRATE_H #define _LINUX_MIGRATE_H #include <linux/mm.h> #include <linux/mempolicy.h> #include <linux/migrate_mode.h> typedef struct page *new_page_t(struct page *, unsigned long private, int **); #ifdef CONFIG_MIGRATION extern void putback_lru_pages(struct list_head *l); extern int migrate_page(stru...
wanliyun/xLua
build/3rd/luniq/luniq.c
<filename>build/3rd/luniq/luniq.c #include <stdlib.h> #include <stdio.h> #include "handlemap.h" #if LUA_VERSION_NUM < 502 && (!defined(luaL_newlib)) # define luaL_newlib(L,l) (lua_newtable(L), luaL_register(L,NULL,l)) #endif #define CLS_UNIQ "uniq{cls}" #define LIST_MAX_SIZE 1024 * 1024 * 1024 #define CHECK_UNIQ(L...
jiangTaoQuite/SpringMVC-Architecture
src/main/java/tech/jiangtao/backstage/mapper/BroadcastMsgsRecipientsMapper.java
<reponame>jiangTaoQuite/SpringMVC-Architecture<filename>src/main/java/tech/jiangtao/backstage/mapper/BroadcastMsgsRecipientsMapper.java<gh_stars>1-10 package tech.jiangtao.backstage.mapper; import java.util.List; import org.apache.ibatis.annotations.Param; import tech.jiangtao.backstage.model.BroadcastMsgsRecipientsEx...
jwilger/racing_on_rails
lib/acts_as_tree/validation.rb
<filename>lib/acts_as_tree/validation.rb # frozen_string_literal: true module ActsAsTree module Validation extend ActiveSupport::Concern included do validate :valid_parent end def valid_parent if parent == self errors.add :parent, "can't be own parent" return false ...
CoprHD/sds-controller
controllersvc/src/main/java/com/emc/storageos/volumecontroller/impl/utils/attrmatchers/RaidLevelMatcher.java
<filename>controllersvc/src/main/java/com/emc/storageos/volumecontroller/impl/utils/attrmatchers/RaidLevelMatcher.java /* * Copyright (c) 2015 EMC Corporation * All Rights Reserved */ package com.emc.storageos.volumecontroller.impl.utils.attrmatchers; import java.net.URI; import java.util.ArrayList; import java.uti...
sug5806/TIL
Python/OOP/game2/monsters.py
<reponame>sug5806/TIL from character import Monster # 게임 개발 초기의 몬스터 종류는 두 가지 class FireMonster(Monster): def generate_gold(self): return 10 class IceMonster(Monster): def __init__(self): super().__init__() self.hp=100 def generate_gold(self): return 20 # 게임...
atomrq/simulab
lib/bio/_mp.py
import os, sys, time import numpy as np import pandas as pd import linecache import multiprocessing as mp class MPI_tackle(object): """ A class wrapper for multiprocessing calculations This class should be inherited, then add some functions. Note1: The multiprocess package can not be used for dis...
joshua-xia/noip
code-bible/src/com/yunlongstudio/algorithm/ProjectEuler.java
<filename>code-bible/src/com/yunlongstudio/algorithm/ProjectEuler.java package com.yunlongstudio.algorithm; import java.math.BigInteger; import java.util.Calendar; import java.util.Date; import java.util.Stack; public class ProjectEuler { public static void main(String[] args) { /* System.out.println("Pro...
wilebeast/FireFox-OS
B2G/gecko/gfx/2d/DrawTargetRecording.h
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef MOZILLA_GFX_DRAWTARGETRECORD...
DingosGotMyBaby/pagermon
server/knex/migrations/20200510210059_create_users_table.js
var bcrypt = require('bcryptjs'); var nconf = require('nconf'); var confFile = './config/config.json'; nconf.file({ file: confFile }); var user = nconf.get('auth:user') var pwd = nconf.get('auth:encPass') exports.up = function(db, Promise) { return db.schema.hasTable('users').then(function(exists) { if (...
ipaddr/Capstone-Project
Rereso/app/src/main/java/id/ipaddr/android/rereso/presentation/view/widget/ReresoWidgetDataProvider.java
package id.ipaddr.android.rereso.presentation.view.widget; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.Color; import android.util.Log; import android.widget.RemoteViews; import android.widget.RemoteViewsService; import com.google.firebase.data...
ramonlopz1/UDEMY---Fullstack-Web-Developer
exercicios-js/4 - Funcao/callback1.js
<reponame>ramonlopz1/UDEMY---Fullstack-Web-Developer const fabricantes = ["Mercedes", "Audi", "BMW"] //callback será a função imprimir, que será chamada em cada elemento do array. function imprimir(nome, indice) { console.log(`${indice + 1}. ${nome}`) } //forEach é uma função de ARRAYS //Mesmo sem passar os parâm...
aanacleto/erp-
core/objs/gap_timeAtendimento.py
<reponame>aanacleto/erp- # !/usr/bin/env python3 # -*- encoding: utf-8 -*- """ ERP+ """ __author__ = 'CV<NAME>' __credits__ = [] __version__ = "1.0" __maintainer__ = "CV<NAME>" __status__ = "Development" __model_name__ = 'gap_timeAtendimento.GAPTimeAtendimento' import auth, base_models from orm import * from form impor...
nadeemnazeer3/dremio-oss
sabot/kernel/src/test/java/com/dremio/exec/store/TestRootSchemaAccess.java
<filename>sabot/kernel/src/test/java/com/dremio/exec/store/TestRootSchemaAccess.java /* * Copyright (C) 2017-2018 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 * *...
Uniandes-isis2603/s3_watchdogs
s3_watchdogs-web/src/main/java/co/edu/uniandes/csw/watchdogs/resources/TransporteResource.java
<reponame>Uniandes-isis2603/s3_watchdogs<gh_stars>0 /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package co.edu.uniandes.csw.watchdogs.resources; import co.edu.uniandes.csw.watchd...
bjorndm/prebake
code/third_party/junit/org/junit/tests/experimental/theories/ParameterSignatureTest.java
<reponame>bjorndm/prebake package org.junit.tests.experimental.theories; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertThat; import static org.junit.Assume.assumeTrue; import static org.junit.matchers.JUnitMatchers.hasItem; import java.la...
pablormier/jflap-lib
jflaplib-core/src/main/java/edu/duke/cs/jflap/gui/editor/DefaultToolBox.java
<filename>jflaplib-core/src/main/java/edu/duke/cs/jflap/gui/editor/DefaultToolBox.java /* * JFLAP - Formal Languages and Automata Package * * * <NAME> * Computer Science Department * Duke University * August 27, 2009 * Copyright (c) 2002-2009 * All rights reserved. * JFLAP is open source software....
Papabyte/odex-frontend
src/components/OrderBook/orderBook.test.js
import React from 'react'; import { mount } from 'enzyme'; import OrderBook from './OrderBook'; describe('Component methods', () => { let wrapper, instance; let currentPair = { pair: 'DAI_WETH', baseTokenSymbol: 'DAI', quoteTokenSymbol: 'WETH', baseAsset: '0xc838efcb6512a2ca12027ebcdf9e1fc5e4ff7e...
hugorebelo/gitlabhq
spec/frontend/contributors/utils_spec.js
import * as utils from '~/contributors/utils'; describe('Contributors Util Functions', () => { describe('xAxisLabelFormatter', () => { it('should return year if the date is in January', () => { expect(utils.xAxisLabelFormatter(new Date('01-12-2019'))).toEqual('2019'); }); it('should return month n...
RossK1/exchangelib
exchangelib/services/archive_item.py
<filename>exchangelib/services/archive_item.py<gh_stars>1000+ from .common import EWSAccountService, create_folder_ids_element, create_item_ids_element from ..util import create_element, MNS from ..version import EXCHANGE_2013 class ArchiveItem(EWSAccountService): """MSDN: https://docs.microsoft.com/en-us/exchang...
irico1997/linguee-api
linguee_api/downloaders/httpx_downloader.py
import httpx from linguee_api.downloaders.interfaces import DownloaderError, IDownloader class HTTPXDownloader(IDownloader): """ Real downloader. Sends request to linguee.com to read the page. """ async def download(self, url: str) -> str: async with httpx.AsyncClient() as client: ...
antoniocarlon/jummyshapefile
src/test/java/test/TestShapefile.java
<gh_stars>1-10 /* * Copyright 2015 <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 la...
danielbui78/reality
src/gui/RealityUI/qtDesignerPlugins/ReModifiersEditorPlugin.cpp
/** * Qt Designer plugin. */ #include <QtPlugin> #include "ReModifiersEditorPlugin.h" #include "../MaterialEditors/ReModifiers.h" ReModifiersEditorPlugin::ReModifiersEditorPlugin(QObject* parent) : QObject(parent) { } QString ReModifiersEditorPlugin::name() const { return "ReModifiers"; } QString ReModifi...
ThomasAdam/got-portable
include/got_object.h
/* * Copyright (c) 2018 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
smart-cow/scow
cow-webapp/src/main/java/org/wiredwidgets/cow/webapp/client/bpm/Template.java
/** * Approved for Public Release: 10-4800. Distribution Unlimited. * Copyright 2014 The MITRE 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/lice...
mpfullstack/coneecta-front-gatsby
src/features/professionalProfile/professionalProfileSagas.js
import { all, takeLatest, put, call, fork } from 'redux-saga/effects'; import { loadProfessionalProfile, initProfile, loadProfessionalProfileReviews, initProfileReviews, showService } from './professionalProfileSlice'; import { showApiError } from '../global/globalSlice'; import api from '../../api'; import { getSlugFr...
statisticsnorway/data-collector-api
src/main/java/no/ssb/dc/api/node/ResponsePredicate.java
<filename>src/main/java/no/ssb/dc/api/node/ResponsePredicate.java package no.ssb.dc.api.node; public interface ResponsePredicate extends Leaf { String RESPONSE_PREDICATE_RESULT = "RESPONSE_PREDICATE_RESULT"; }
adwaithkj/sortandsearchalgos
tree/bfs.py
<reponame>adwaithkj/sortandsearchalgos<gh_stars>0 class Node: def __init__(self, key): self.key = key self.left = None self.right = None def bfs(self, searchitem): if self.root == searchitem: return path
CJoriginal/cjlumberyard
dev/Gems/Boids/Code/source/BugsFlock.h
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
Viniciusalopes/ads20192
ap/ExerciciosN1/src/bll/Exercicio16.java
<gh_stars>1-10 /* * --------------------------------------------------------------------------------------- * Licença : MIT - Copyright 2019 Viniciusalopes (Vovolinux) <<EMAIL>> * Criado em : 20/09/2019 * Projeto : ExerciciosN1 * Finalidade: N1 * ---------------------------------------------------------------...
basverweij/aco2016
day16/input.go
<filename>day16/input.go package main var ( inputValue int64 = 96207 inputLen = 17 )
douzhongqiang/GPUFilterEngine
GPUFilterCore/gpufiltercore.h
#ifndef GPUFILTERCORE_H #define GPUFILTERCORE_H #include "GPUFilterCore_global.h" class GPUFILTERCORE_EXPORT GPUFilterCore { public: GPUFilterCore(); }; #endif // GPUFILTERCORE_H
RobertDamerius/GenericTarget
packages/+GT/GenericTargetCode/source/GenericTarget/PeriodicTimer.hpp
#pragma once class PeriodicTimer { public: /** * @brief Create a periodic timer object. */ PeriodicTimer(); /** * @brief Delete the periodic timer object. */ ~PeriodicTimer(); /** * @brief Create the periodic timer. ...
j3l4ck0ut/UdemyCpp
6_STLContainerUndIteratoren/ForwardList.cc
#include <array> #include <vector> #include <deque> #include <forward_list> #include <iostream> int main() { std::vector<int> my_vector = { 1, 2 }; for (int i = 0; i < my_vector.size(); i++) { std::cout << &my_vector[i] << std::endl; } std::cout << std::endl; std::forward_list<int> my_flist; my_flist.assig...
kinnder/processPlanning
application/src/main/java/application/storage/xml/SystemTransformationsXMLFile.java
package application.storage.xml; import planning.method.SystemTransformations; public class SystemTransformationsXMLFile extends XMLFile<SystemTransformations> { public SystemTransformationsXMLFile() { super(new SystemTransformationsXMLSchema()); } }
active-auth/active-auth-iam-core
src/main/java/cn/glogs/activeauth/iamcore/domain/AuthenticationPrincipalSecretKey.java
package cn.glogs.activeauth.iamcore.domain; import cn.glogs.activeauth.iamcore.config.properties.LocatorConfiguration; import io.swagger.v3.oas.annotations.media.Schema; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import org.apache.commons.lang3.StringUtils; import javax.per...
vttranlina/james-project
server/data/data-jmap/src/main/java/org/apache/james/jmap/api/change/State.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...
raquelhortab/ubiquo
ubiquo_design/install/db/migrate/20090224153407_add_plugin_permissions.rb
<filename>ubiquo_design/install/db/migrate/20090224153407_add_plugin_permissions.rb class AddPluginPermissions < ActiveRecord::Migration def self.up if const_defined?(:Permission) Permission.create :key => "design_management", :name => "Design management" Permission.create :key => "sitemap_management"...
scgbear/azure-cosmos-graph-bulk-executor
java/src/main/java/com/azure/graph/bulk/sample/Main.java
<filename>java/src/main/java/com/azure/graph/bulk/sample/Main.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.graph.bulk.sample; import com.azure.graph.bulk.impl.model.GremlinEdge; import com.azure.graph.bulk.impl.model.GremlinVertex; import com.a...
storjarn/node-toolbox
src/rpg/RPG.Body.js
<reponame>storjarn/node-toolbox<filename>src/rpg/RPG.Body.js /** * */ (function(){ var Class = require('../base/Base.Class'); var RPG = require('./RPG') /* public */ var Body = Class.extend('Body', { init : function(){ this.parent(); this.CurrentDamage = function() ...
sacceus/BabylonCpp
src/BabylonCpp/include/babylon/meshes/_instance_data_storage.h
#ifndef BABYLON_MESHES_INSTANCE_DATA_STORAGE_H #define BABYLON_MESHES_INSTANCE_DATA_STORAGE_H #include <unordered_map> #include <babylon/babylon_api.h> #include <babylon/babylon_common.h> #include <babylon/maths/path3d.h> namespace BABYLON { struct _InstancesBatch; struct _VisibleInstances; class Buffer; using _Ins...
chdiazguerra/final-reality-chdiazguerra
src/main/java/com/github/chdiazguerra/finalreality/model/character/player/classes/WhiteMage.java
package com.github.chdiazguerra.finalreality.model.character.player.classes; import com.github.chdiazguerra.finalreality.model.character.ICharacter; import com.github.chdiazguerra.finalreality.model.character.player.AbstractPlayerCharacter; import com.github.chdiazguerra.finalreality.model.weapon.IWeapon; import org.j...
lechuongit/alibaba-cloud-sdk-go
services/edas/get_k8s_storage_info.go
package edas //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, software //distribu...
gisproject2015/Bridge3DModeling
node_modules/npm/lib/test.js
<gh_stars>1-10 module.exports = test var testCmd = require("./utils/lifecycle.js").cmd("test") function test (args, cb) { testCmd(args, function (er) { if (!er) return cb() if (er.code === "ELIFECYCLE") { return cb("Test failed. See above for more details.") } return cb(er) }) }...
law27/Programming-Examples
Java/Generics/GenericConstructor.java
class Cons { double val; <T extends Number> Cons(T arg) { val = arg.doubleValue(); } public void print() { System.out.println(val); } } public class GenericConstructor { public static void main (String[] args) { Cons a = new Cons(4); a.print(); Cons ...
jimfoltz/jf-sketchup-ffi
lib/sketchup_ffi/loop_input.rb
<filename>lib/sketchup_ffi/loop_input.rb module SketchupFFI attach_function(:SULoopInputCreate, [SULoopInputRef], SUResult) attach_function(:SULoopInputRelease, [SULoopInputRef], SUResult) attach_function(:SULoopInputAddVertexIndex, [SULoopInputRef, :size_t], SUResult) attach_function(:SULoopInputEdgeSetH...
cobaltblueocean/Fudge-Java
src/org/fudgemsg/ImmutableFudgeMsg.java
<filename>src/org/fudgemsg/ImmutableFudgeMsg.java /** * Copyright (C) 2009 - present by OpenGamma Inc. and other contributors. * * 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 * * ...
mbiang/cloudformstest
Automate/CloudFormsPOC/Integration/RedHat/OpenStack/LoadBalancer.class/__methods__/reclaimloadbalancer.rb
<reponame>mbiang/cloudformstest begin def log(level, msg) @method = 'reclaimLoadBalancer' $evm.log(level, "#{@method}: #{msg}") end def dump_root() log(:info, "Root:<$evm.root> Begin $evm.root.attributes") $evm.root.attributes.sort.each { |k, v| log(:info, "Root:<$evm.root> Attribute - #{k}: #{v...
Shinku-Chen/baidu-marketing
model/const.go
package model const ( // BASE_URL_SMS sms/service api base url BASE_URL_SMS = "https://api.baidu.com/json/sms/service/" // api base url // BASE_URL_FEED feed/v2 api base url BASE_URL_FEED = "https://api.baidu.com/json/feed/v1/" )
Dletta/grappling-gun
node_modules/gitter-faye/javascript/protocol/publication.js
'use strict'; var Faye = require('../faye'); var Faye_Class = require('../util/class'); var Faye_Deferrable = require('../mixins/deferrable'); var Faye_Publication = Faye_Class(Faye_Deferrable); module.exports = Faye_Publication;
cksspk/ruoyi-vue-pro
yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/tool/controller/test/ToolTestDemoController.java
package cn.iocoder.yudao.adminserver.modules.tool.controller.test; import cn.hutool.core.thread.ThreadUtil; import cn.iocoder.yudao.framework.common.pojo.CommonResult; import cn.iocoder.yudao.framework.common.pojo.PageResult; import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; import cn.iocoder.yudao.framewo...
function2-llx/MONAI
tests/test_focal_loss.py
# Copyright (c) MONAI Consortium # 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, so...
zhangkn/iOS14Header
System/Library/PrivateFrameworks/AVConference.framework/VCTransportSession.h
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:51:33 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/AVConference.framework/AVConference * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 ...
hungrybluedev/Numerical-Methods
SLE/Gaussian Elimination Method/partialpivot.h
<filename>SLE/Gaussian Elimination Method/partialpivot.h #ifndef PARTIAL_PIVOT_H #define PARTIAL_PIVOT_H #include "matrix.h" char *ge_part_pivot(Matrix matrix); #endif // PARTIAL_PIVOT_H
frc2357/robotlib2357
src/main/java/com/systemmeltdown/robotlog/outputs/ZipFileLogWriter.java
package com.systemmeltdown.robotlog.outputs; import java.io.IOException; import java.io.OutputStreamWriter; import java.util.HashMap; import java.util.Map; import java.util.zip.ZipOutputStream; public class ZipFileLogWriter implements LogWriter { public static final int COMPRESSION_LEVEL = 5; public static final ...
alb-i986/ALMOctaneJavaRESTSDK
sdk-src/src/main/java/com/hpe/adm/nga/sdk/entities/delete/DeleteEntities.java
<filename>sdk-src/src/main/java/com/hpe/adm/nga/sdk/entities/delete/DeleteEntities.java /* * © Copyright 2016-2021 Micro Focus or one of its affiliates. * 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...
itplants/coder
coder-base/apps/websendcom/netendcom.js
<gh_stars>0 var mycron = require('cron').CronJob; var moment = require("moment"); var fs = require('fs'); var mustache = require('mustache'); var util = require('util'); var fs = require('fs'); var http = require('http'); var EventEmitter = require('events').EventEmitter; exports.settings={}; //These are dynamically u...
zhangshixu209/qiaoyang
src/main/java/com/chmei/nzbcommon/cmservice/IControlService.java
package com.chmei.nzbcommon.cmservice; import com.chmei.nzbcommon.cmbean.InputDTO; import com.chmei.nzbcommon.cmbean.OutputDTO; /** * 统一调用接口。 */ public interface IControlService { /** * 接口定义 */ OutputDTO execute(InputDTO inputDTO); }
razzlefratz/MotleyTools
gcpp/classes/ocprocwords.cpp
/*====================================================================* * * ocprocwords.cpp - definition of ocprocwords class. * * symbol table of C Language Macro Processor keywords; * *. Motley Tools by <NAME> *: Published 1982-2005 by <NAME> for personal use *; Licensed under the Internet Software Con...
BryceStevenWilley/EfileProxyServer
src/main/java/org/oasis_open/docs/codelist/ns/genericode/_1/Data.java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 // See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2021.04.1...
sjj3086786/aliyun-openapi-java-sdk
aliyun-java-sdk-cloudphoto/src/main/java/com/aliyuncs/cloudphoto/model/v20170711/CreateTransactionRequest.java
<gh_stars>1-10 /* * 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, software ...
DevJoaoLopes/Skoole
src/pages/Dashboard/pages/Cronograma/index.js
<gh_stars>1-10 import Cronograma from './Cronograma'; export default Cronograma;
emgreen33/geneac
lib/tasks/snapshot_reset.rake
<reponame>emgreen33/geneac # frozen_string_literal: true namespace :snapshot do desc 'Drop all snapshots' task reset: :environment do Snapshot.all.each(&:destroy!) ActiveRecord::Base.connection.reset_pk_sequence!(Snapshot.table_name) puts 'Dropped all snapshots' end end
shubhamWaghmare-sap/ADT_Frontend-1
org.abapgit.adt.backend/src/org/abapgit/adt/backend/internal/AbapGitPullModifiedObjectsContentHandlerV1.java
<reponame>shubhamWaghmare-sap/ADT_Frontend-1 package org.abapgit.adt.backend.internal; import java.io.IOException; import java.io.InputStream; import java.nio.charset.Charset; import org.abapgit.adt.backend.model.agitpullmodifiedobjects.IAbapGitPullModifiedObjects; import org.abapgit.adt.backend.model.agitpullmodifie...
llllJokerllll/Programacion
Trimestre2/BoletinJDBC/src/com/acarballeira/exercicios/bd/exercicio6/package-info.java
package com.acarballeira.exercicios.bd.exercicio6;
kevinzhwl/ObjectARXMod
2002/arxlabs/Step07/Project.cpp
// Project.cpp : Initialization functions #include "StdAfx.h" #include "StdArx.h" #include "resource.h" HINSTANCE _hdllInstance =NULL ; // This command registers an ARX command. void AddCommand(const char* cmdGroup, const char* cmdInt, const char* cmdLoc, const int cmdFlags, const AcRxFunctionPtr cmdProc...
samuelko123/book-store-api
utils/validator.js
<reponame>samuelko123/book-store-api<filename>utils/validator.js const Ajv = require("ajv") const schemas = require('../models/schemas') const { ValidationError } = require('./errors') // initialize ajv const ajv = new Ajv({ removeAdditional: false, useDefaults: true, coerceTypes: true, allErrors: true...
AntoAndGar/PFP
Esercizi/E5.scala
/* funzioni di ordine superiore - costruzione di funzioni per casi Scrivere un metodo Scala concatena che, date tre funzioni f1:Double=>Double, f2:Double=>Double e f3:Double=>Double e due valori Double a e b con a<=b, restituisce una funzione che coincide con f1 per tutti gli argomenti prima di a, con...
zipated/src
third_party/swiftshader/src/Common/Resource.cpp
// Copyright 2016 The SwiftShader Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required b...
mechasource/mechcommander2
source/mechcmd2/objtype.h
<reponame>mechasource/mechcommander2 //--------------------------------------------------------------------------- // // ObjType.h -- File contains the Basic Game Object Type definition // // MechCommander 2 // //---------------------------------------------------------------------------// // Copyright (C) Microsoft Co...
anasanzari/algoliasearch-client-go
algolia/opt/retrieve_mappings.go
// Code generated by go generate. DO NOT EDIT. package opt import "encoding/json" // RetrieveMappingsOption is a wrapper for an RetrieveMappings option parameter. It holds // the actual value of the option that can be accessed by calling Get. type RetrieveMappingsOption struct { value bool } // RetrieveMappings wr...
gargamol/base-cms
services/graphql-server/build-redirects.js
const { content: canonicalPathFor, requestParser: getCanonicalRules } = require('@base-cms/canonical-path'); const { BaseDB } = require('@base-cms/db'); const { get } = require('@base-cms/object-path'); const createDB = require('./src/basedb'); const cleanPath = (value) => { if (!value) return ''; const v = value....
petercipov/mobi
deployer-spotify/src/main/java/com/petercipov/mobi/deployer/spotify/SpotifyOptions.java
package com.petercipov.mobi.deployer.spotify; import com.google.common.collect.Lists; import com.petercipov.mobi.Instance; import com.petercipov.mobi.deployer.RxDeployment; import com.petercipov.traces.api.Trace; import com.spotify.docker.client.messages.ContainerConfig; import com.spotify.docker.client.messages.HostC...
Jean-Domingues/Estudos-basicos
javascript/7-Javascript-Assincrono/AJAX-HMLhttpRequest/fetch-axios/assets/js/main.js
<reponame>Jean-Domingues/Estudos-basicos //como seria feito com fetch Api // fetch('pessoas.json') // .then(resposta => resposta.json()) // .then(json => carregaElementosNaPagina(json)); axios('pessoas.json') .then(resposta => carregaElementosNaPagina(resposta.data)); //Recebe os dados já convertidos, e envia...