repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
TDYe123/Algorithm
src/LeetCode/L628.cpp
#include<bits/stdc++.h> using namespace std; int maximumProduct(vector<int>& nums) { sort(nums.begin(), nums.end()); return max(nums[0]*nums[1]*nums[nums.size()-1], nums[nums.size()-1]*nums[nums.size()-2]*nums[nums.size()-3]); } int main() { vector<int> vec = {-1,-2,-3,-4}; printf("%d", maximumProduct(vec))...
CDann3r/ambari
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/KerberosKeytabDAO.java
<filename>ambari-server/src/main/java/org/apache/ambari/server/orm/dao/KerberosKeytabDAO.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 A...
elmendavies/ldaptive
core/src/main/java/org/ldaptive/DefaultConnectionFactory.java
<gh_stars>10-100 /* See LICENSE for licensing and NOTICE for copyright. */ package org.ldaptive; import org.ldaptive.transport.Transport; import org.ldaptive.transport.TransportFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Creates connections for performing ldap operations. * * @author <...
CiscoDevNet/ydk-cpp
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ptp_pd_cfg.cpp
#include <sstream> #include <iostream> #include <ydk/entity_util.hpp> #include "bundle_info.hpp" #include "generated_entity_lookup.hpp" #include "Cisco_IOS_XR_ptp_pd_cfg.hpp" using namespace ydk; namespace cisco_ios_xr { namespace Cisco_IOS_XR_ptp_pd_cfg { LogServoRoot::LogServoRoot() : servo_event_enable{Y...
nchriqui/24hWeather
Doc/html/search/functions_f.js
var searchData= [ ['recipient_0',['recipient',['../class_p_h_p_mailer_1_1_p_h_p_mailer_1_1_s_m_t_p.html#a3fe758d41853a59d4ccfdce815f006a2',1,'PHPMailer::PHPMailer::SMTP']]], ['recordlasttransactionid_1',['recordLastTransactionID',['../class_p_h_p_mailer_1_1_p_h_p_mailer_1_1_s_m_t_p.html#a7ca35ef525499613bea7afe470e...
YifanShenSZ/pytorch
torch/csrc/jit/codegen/cuda/ir_utils.h
#pragma once #include <torch/csrc/jit/codegen/cuda/ir_all_nodes.h> #include <torch/csrc/jit/codegen/cuda/type.h> #include <iterator> #include <unordered_map> namespace torch { namespace jit { namespace fuser { namespace cuda { namespace ir_utils { // Replace values in fusion using ValReplacementMutator void replac...
plbogen/MinorThird
src/main/java/edu/cmu/minorthird/classify/transform/AugmentedInstance.java
package edu.cmu.minorthird.classify.transform; import edu.cmu.minorthird.classify.*; import edu.cmu.minorthird.util.*; import edu.cmu.minorthird.util.gui.*; import java.util.*; /** * Add some features to an instance. * * @author <NAME> */ public class AugmentedInstance implements Instance{ private Instance ...
tranlinh281/museum_FE
src/components/Modal/ModalUpdateVisitor.js
<reponame>tranlinh281/museum_FE<filename>src/components/Modal/ModalUpdateVisitor.js import React, { useState } from "react"; import "./style.css" import 'reactjs-popup/dist/index.css'; import GridItem from "components/Grid/GridItem.js"; import GridContainer from "components/Grid/GridContainer.js"; import Button from "c...
danpal/OpenSAML
src/main/java/org/opensaml/saml2/metadata/impl/AffiliationDescriptorMarshaller.java
/* * Copyright [2005] [University Corporation for Advanced Internet Development, Inc.] * * 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...
jitwxs/addax
easydata/src/test/java/io/github/jitwxs/easydata/common/cache/EnumCacheTest.java
<reponame>jitwxs/addax<gh_stars>1-10 package io.github.jitwxs.easydata.common.cache; import io.github.jitwxs.easydata.common.enums.ClassDiffVerifyStrategyEnum; import io.github.jitwxs.easydata.core.verify.EasyVerify; import lombok.AllArgsConstructor; import lombok.Getter; import org.junit.jupiter.api.Test; import jav...
shangfeiSF/grunt-grope
main/src/jshint/fixed/01.Enforcing/22.maxparams.js
<gh_stars>0 /* * maxparams * http://jshint.com/docs/options/#maxparams * This option lets you set the max number of formal parameters allowed per function. * */ function maxparams(arg1, arg2) { return arg1 + arg2; } maxparams(1, 2);
shimomura314/AtcoderCodes
ABC023/D.py
<filename>ABC023/D.py import sys input = sys.stdin.readline sys.setrecursionlimit(10**8) def main(): n = int(input()) hs = [tuple(map(int,input().split())) for _ in range(n)] ok = 10**16 ng = 0 while ok-ng > 1: mid = (ok+ng)//2 box = [] for i in range(n): x = ...
UCHI-DB/codecdb-queryengine
cpp/src/lqf/ssb/query1_1.cc
// // Created by Harper on 1/2/21. // #include "query1.h" #include <iostream> namespace lqf { using namespace agg; namespace ssb { namespace q1_1 { double discount_from = 1; double discount_to = 3; int quantity_upper = 25; ByteArray year_from("19940101");...
mapp-digital/Mapp-Intelligence-Java-Tracking
tracking/src/main/java/com/mapp/intelligence/tracking/util/MappIntelligenceDebugLogger.java
package com.mapp.intelligence.tracking.util; import com.mapp.intelligence.tracking.MappIntelligenceLogger; import com.mapp.intelligence.tracking.MappIntelligenceMessages; /** * @author Mapp Digital c/o Webtrekk GmbH * @version 0.0.1 */ public final class MappIntelligenceDebugLogger implements MappIntelligenceLogge...
BlocksHub/web-frontend
dist/controllers/www/Groups.spec.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Groups_1 = require("./Groups"); const chai_1 = require("chai"); const model = require("../../models"); const groups = new Groups_1.GroupsController(); groups.Users = {}; groups.Forums = {}; groups.Games = {}; groups.Support = {}; groups....
rxchen/micropython
tests/unix/ffi_float.py
<gh_stars>1000+ # test ffi float support try: import ffi except ImportError: print("SKIP") raise SystemExit def ffi_open(names): err = None for n in names: try: mod = ffi.open(n) return mod except OSError as e: err = e raise err libc = ffi_...
im97mori-github/AdvertisingDataParser
profile/rcp/central/src/main/java/org/im97mori/ble/profile/rcp/central/ReconnectionConfigurationProfileCallback.java
package org.im97mori.ble.profile.rcp.central; import org.im97mori.ble.profile.central.ProfileCallback; import org.im97mori.ble.service.bms.central.BondManagementServiceCallback; import org.im97mori.ble.service.rcs.central.ReconnectionConfigurationServiceCallback; /** * Reconnection Configuration Profile callback * ...
rayson1223/gym-workflow
analysis/action_epsiode.py
import numpy as np import matplotlib.pyplot as plt import csv import sys import os import json from collections import namedtuple csv.field_size_limit(sys.maxsize) def plot_episode_analysis(data, reward_data, epi): X = list(range(1, len(data)+1, 1)) plt.clf() plt.xlabel("Cycle") plt.ylabel("Action Ta...
sparkslabs/kamaelia_orig
Sketches/PO/testingMulticore/pprocess/ProcessPipelineNotComponent.py
<reponame>sparkslabs/kamaelia_orig #!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Lice...
HipsterBrown/test_track_rails_client
spec/models/test_track/remote/split_config_spec.rb
<reponame>HipsterBrown/test_track_rails_client require 'rails_helper' RSpec.describe TestTrack::Remote::SplitConfig do let(:params) { { name: "my_split", weighting_registry: { foo: 25, bar: 75 } } } let(:create_url) { "http://testtrack.dev/api/v1/split_configs" } let(:destroy_url) { "http://testtrack.dev/api/v1/...
michaelkantor/wavemaker
wavemaker/wavemaker-runtime/src/test/java/com/wavemaker/runtime/data/sample/db2sampledb/DB2Sample.java
<reponame>michaelkantor/wavemaker<gh_stars>0 /* * Copyright (C) 2009 WaveMaker Software, Inc. * * This file is part of the WaveMaker Server Runtime. * * 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 ...
andrenjunior/Linguagem-de-Programa-o-Python
Tele_Aula 4/DataFrame.py
import pandas as pd import numpy as np df = pd.DataFrame ({ 'nome' : ['André', 'Junior', 'Nascimento'], 'idade': [38, 37, 36], 'cidade': ['RJ','SP','MG'] }) print(df) print('\n') vetor = np.array([5, 6, 7, 8]) v = pd.Series(vetor) print(vetor) print(v) print('\n\n') print(df.nome) # retorna somente com a coluna n...
opala-studios/ck
src/ck/core/fixedstring.h
#pragma once #include "ck/core/platform.h" #include "ck/core/string.h" namespace Cki { template <int N> class FixedString : public String { public: FixedString(); FixedString(const char*); FixedString(const String&); // FixedString(const char*, int n); // FixedString(const String&, int n); Fi...
hiloWang/notes
JavaEE/Code/Servlet-Base/src/main/java/com/ztiany/serbase/servlets/http/DownloadServlet.java
package com.ztiany.serbase.servlets.http; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * 演示让浏览器以下载方式读取数据 * ...
sun-iot/IceFireDB-Proxy
pkg/monitor/runtime_exporter.go
/* * * * 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 "L...
mzw/RevAjaxMutator
src/main/java/jp/mzw/revajaxmutator/fixer/DOMCloningToNoOpFixer.java
package jp.mzw.revajaxmutator.fixer; import jp.mzw.ajaxmutator.mutatable.DOMCloning; /** * Replacing DOM cloning to No-op. */ public class DOMCloningToNoOpFixer extends ReplacingToNoOpFixer<DOMCloning> { public DOMCloningToNoOpFixer() { super(DOMCloning.class); } }
khangtran2020/contentDP
test.py
<reponame>khangtran2020/contentDP import sys a = int(sys.argv[1]) sum_t = 0 for i in range(a): sum_t += a print(sum_t)
safarmer/intellij-haskell
gen/intellij/haskell/psi/HaskellConstr1.java
// This is a generated file. Not intended for manual editing. package intellij.haskell.psi; import java.util.List; import org.jetbrains.annotations.*; import com.intellij.psi.PsiElement; public interface HaskellConstr1 extends HaskellCompositeElement { @NotNull List<HaskellFielddecl> getFielddeclList(); @NotN...
maxemiliang/vscode-ext
extensions/donjayamanne.python-0.3.21/out/public/index.js
<gh_stars>0 "use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var React = require('react'); var re...
ineunetOS/knife
knife-core/src/main/java/com/ineunet/knife/api/dataflow/IDataFlowDefinition.java
/* * Copyright 2013-2016 iNeunet OpenSource and 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 * ...
xxdavid/pensieve-web
src/components/modals/ResetDeckModal.js
<filename>src/components/modals/ResetDeckModal.js import React, { Component } from "react"; import PropTypes from "prop-types"; import { Button, Modal } from "semantic-ui-react"; class ResetDeckModal extends Component { render() { const { open, onClose, onSubmit } = this.props; return ( <Modal open={op...
kaleidot725/first-time-javascript
Chapter08/ex08-04-4/main.js
<reponame>kaleidot725/first-time-javascript<gh_stars>0 function 記号表現に変換する(カード){ const マーク名_絵文字 = { 'ハート': '💖', 'クローバー': '🍀', 'ダイア': '💎', 'スペード': '♠' }; const 数字からAJQK = { 1: 'A', 11: 'J', 12: 'Q', 13: "K" }; for(let i=2; i<=10; i++) 数字からAJQK[i] = i; return マーク名_絵文字[カード.マーク]+数字からAJQK[カード.数字];...
KoehlerSB747/sd-tools
src/main/java/org/sd/nlp/entity/ExtractedEntityLoader.java
<reponame>KoehlerSB747/sd-tools<gh_stars>0 /* Copyright 2008-2016 Semantic Discovery, Inc. 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-...
farchanjo/webcron
src/main/java/br/eti/archanjo/webcron/dtos/JobsDTO.java
package br.eti.archanjo.webcron.dtos; import br.eti.archanjo.webcron.enums.AsyncType; import br.eti.archanjo.webcron.enums.Status; import br.eti.archanjo.webcron.pojo.EnvironmentDTO; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.*; import org.apache.commons.lang3.builder.EqualsBuilder; import org....
spacegithub/steedos-platform
server/bundle/programs/server/packages/dburles_collection-helpers.js
<reponame>spacegithub/steedos-platform (function () { /* Imports */ var Meteor = Package.meteor.Meteor; var global = Package.meteor.global; var meteorEnv = Package.meteor.meteorEnv; var _ = Package.underscore._; var MongoInternals = Package.mongo.MongoInternals; var Mongo = Package.mongo.Mongo; (function(){ ////////...
eamanu/HistorialClinica-LaRioja
back-end/hospital-api/src/main/java/net/pladema/clinichistory/documents/service/domain/PatientInfoBo.java
<reponame>eamanu/HistorialClinica-LaRioja package net.pladema.clinichistory.documents.service.domain; import lombok.*; @Getter @Setter @AllArgsConstructor @NoArgsConstructor @ToString public class PatientInfoBo{ private Integer id; private Short genderId; private Short age; }
JoJo2nd/Heart
heart/src/lua/hLuaStateManager.h
/******************************************************************** Written by <NAME> Please see the file HEART_LICENSE.txt in the source's root directory. *********************************************************************/ #ifndef LUASTATEMANAGER_H__ #define LUASTATEMANAGER_H__ #include "base/hTypes.h"...
darthbinamira/bazel-intellij
cpp/src/com/google/idea/blaze/cpp/BlazeCompilerSettings.java
<filename>cpp/src/com/google/idea/blaze/cpp/BlazeCompilerSettings.java /* * Copyright 2016 The Bazel 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 * * ...
fieldenms/
platform-pojo-bl/src/main/java/ua/com/fielden/platform/basic/IPropertyEnum.java
package ua.com.fielden.platform.basic; /** * this interface must implement each enumeration class in order to represent the property with the radio buttons those must have tool tips and text. If one want's to specified * some text for the radio button then toString method must be overridden * * @author oleh * ...
JeffreyRiggle/budgapp
test/models/category.js
class Category { constructor(client, name) { this.client = client; this.name = name; } async findCategory() { const categoryContainer = await this.client.$('.existing-categories') const categories = await categoryContainer.$$('.category'); for (let category of categ...
vishnuk007/service-fabric
src/prod/src/data/interop/ReliableCollectionRuntimeImpl/ConfigurationPackageChangeHandler.cpp
<reponame>vishnuk007/service-fabric // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // --------------------------------------------------------...
joshualucas84/jasper-soft-server
jasperserver/jasperserver-war/src/main/webapp/optimized-scripts/core.edition.js
<reponame>joshualucas84/jasper-soft-server<filename>jasperserver/jasperserver-war/src/main/webapp/optimized-scripts/core.edition.js<gh_stars>1-10 function isProVersion(){return"PRO"==js_edition}var js_edition="OS";
vishwaphansal/MERN
02-express-tutorial/final/11-methods.js
<reponame>vishwaphansal/MERN<filename>02-express-tutorial/final/11-methods.js const express = require('express') const app = express() let { people } = require('./data') // static assets app.use(express.static('./methods-public')) // parse form data app.use(express.urlencoded({ extended: false })) // parse json app.us...
ValentineLebedeva/fizteh-java-2014
src/ru/fizteh/fivt/students/artem_gritsay/MultiFile/MultiWrite.java
package ru.fizteh.fivt.students.artem_gritsay.MultiFile; import java.io.IOException; import java.util.HashMap; import java.io.DataOutputStream; import java.io.FileOutputStream; public class MultiWrite { private String fileMapPath; public MultiWrite(String path) { fileMapPath = path; } public...
danboyle8637/fww
src/components/Website/WhatWeDo/TextMessageSection/LeadSection.js
<filename>src/components/Website/WhatWeDo/TextMessageSection/LeadSection.js import React from "react"; import styled from "styled-components"; import { SectionContainer, ContentContainer, } from "../../../../styles/Containers"; import TextMessageSection from "./TextMessageSection"; import Headline3 from "./Headlin...
alipay/antchain-openapi-prod-sdk
shuziwuliu/java/src/main/java/com/antgroup/antchain/openapi/shuziwuliu/models/UploadShippingEblRequest.java
<filename>shuziwuliu/java/src/main/java/com/antgroup/antchain/openapi/shuziwuliu/models/UploadShippingEblRequest.java<gh_stars>1-10 // This file is auto-generated, don't edit it. Thanks. package com.antgroup.antchain.openapi.shuziwuliu.models; import com.aliyun.tea.*; public class UploadShippingEblRequest extends Tea...
timboudreau/ANTLR4-Plugins-for-NetBeans
antlr-language-spi/src/main/java/org/nemesis/antlr/spi/language/EmbeddingHelper.java
/* * Copyright 2020 Mastfrog Technologies. * * 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 o...
ablack3/WebAPI
src/test/java/org/ohdsi/webapi/tagging/CohortTaggingTest.java
<filename>src/test/java/org/ohdsi/webapi/tagging/CohortTaggingTest.java package org.ohdsi.webapi.tagging; import org.ohdsi.webapi.cohortdefinition.CohortDefinitionRepository; import org.ohdsi.webapi.cohortdefinition.dto.CohortDTO; import org.ohdsi.webapi.cohortdefinition.dto.CohortRawDTO; import org.ohdsi.webapi.servi...
kopok2/algorithms
Math/TowerOfHanoi.py
# coding=utf-8 """Tower of Hanoi algorithm Python implementation.""" def th(n, f, t, a): if n == 1: print("Move disk 1 from {0} to {1}".format(f, t)) else: th(n - 1, f, a, t) print("Move disk {0} from {1} to {2}".format(n, f, t)) th(n - 1, a, t, f) if __name__ == '__main__': ...
BossaNova/cantaloupe
src/main/java/kdu_jni/Jpx_composition.java
package kdu_jni; public class Jpx_composition { static { System.loadLibrary("kdu_jni"); Native_init_class(); } private static native void Native_init_class(); protected long _native_ptr = 0; protected Jpx_composition(long ptr) { _native_ptr = ptr; } public Jpx_composition() { this(0); ...
collinkleest/lrnwebcomponents
elements/progress-donut/propgress-donut-stories.js
<reponame>collinkleest/lrnwebcomponents<filename>elements/progress-donut/propgress-donut-stories.js import { html } from "lit-element/lit-element.js"; import { ProgressDonut } from "@lrnwebcomponents/progress-donut/progress-donut.js"; import { withKnobs, withWebComponentsKnobs } from "@open-wc/demoing-storybook"; impor...
Taritsyn/ChakraCore
lib/Runtime/Library/JavascriptRegExpConstructor.h
<filename>lib/Runtime/Library/JavascriptRegExpConstructor.h<gh_stars>1000+ //------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full licen...
genome-vendor/apollo
src/java/apollo/gui/annotinfo/GeneEditPanel.java
<reponame>genome-vendor/apollo package apollo.gui.annotinfo; import java.awt.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.border.*; import javax.swing.table.*; import java.awt.event.*; import java.util.*; import java.io.IOException; import junit.framework.TestCase; import apollo.datamodel....
iabernikhin/VK-GL-CTS
framework/delibs/deutil/deSocket.h
<filename>framework/delibs/deutil/deSocket.h #ifndef _DESOCKET_H #define _DESOCKET_H /*------------------------------------------------------------------------- * drawElements Utility Library * ---------------------------- * * Copyright 2014 The Android Open Source Project * * Licensed under the Apache License, V...
jbauermanncode/Curso_Em_Video_Python
Python_Exercicios/Mundo1/Condições em Python (if..else)/python_030.py
''' Crie um programa que leia um número inteiro e mostre na tela se ele é par ou ímpar. ''' # Ler um número n = int(input('Digite um número: ')) # Estrutura Condicional if/else if n % 2 == 0: print('O número {} é par!'.format(n)) else: print('O número {} é ímpar!'.format(n))
Mr-TelegramBot/python-tdlib
py_tdlib/constructors/get_all_passport_elements.py
<reponame>Mr-TelegramBot/python-tdlib from ..factory import Method class getAllPassportElements(Method): password = None # type: "string"
PranavPurwar/java-n-IDE-for-Android
app/src/main/assets/sample/CommonlyUsedJavaClasses/JavaString/src/main/java/sample/JavaStringExample.java
<filename>app/src/main/assets/sample/CommonlyUsedJavaClasses/JavaString/src/main/java/sample/JavaStringExample.java package sample; /* Java String example. This Java String example describes how Java String object is created and used. */ public class JavaStringExample { public static void main(String args[]) { ...
iceant/point-tools
point-agent/src/main/java/com/github/iceant/point/agent/services/CommandService.java
package com.github.iceant.point.agent.services; import com.github.iceant.point.agent.utils.IOUtil; import com.github.iceant.point.agent.utils.OSUtil; import com.github.iceant.point.common.dto.CommandResult; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.an...
Bernardo-MG/symbaroum-toolkit-webapp
src/main/js/root/containers/Root.js
<gh_stars>0 /** * Root application. * * There are two options, depending on if this is a production or development build. */ module.exports = (process.env.NODE_ENV === 'production') ? require('root/containers/Root.prod') : require('root/containers/Root.dev');
caramirezal/Drop-seq
src/tests/java/org/broadinstitute/dropseqrna/barnyard/digitalallelecounts/LikelihoodUtilsTest.java
<filename>src/tests/java/org/broadinstitute/dropseqrna/barnyard/digitalallelecounts/LikelihoodUtilsTest.java<gh_stars>0 /* * MIT License * * Copyright 2017 Broad Institute * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "S...
mongodb-js/scope-client
lib/subscription.js
<filename>lib/subscription.js var util = require('util'); var stream = require('stream'); var _lastId = 0; var generateId = function() { return _lastId++; }; function Subscription(client, url, opts) { if (!(this instanceof Subscription)) { return new Subscription(client, url, opts); } Subscription.super_...
FLEXXXXX-00/soDLA
src/main/scala/nvdla/pdp/NV_NVDLA_PDP_CORE_unit2d_part1.scala
<reponame>FLEXXXXX-00/soDLA package nvdla import chisel3._ import chisel3.util._ class NV_NVDLA_PDP_CORE_CAL2D_pnum_flush(implicit val conf: nvdlaConfig) extends Module { val io = IO(new Bundle { //clk val nvdla_core_clk = Input(Clock()) val unit2d_cnt_pooling = Input(UInt(3.W)) v...
nulano/mc-image-helper
src/main/java/me/itzg/helpers/sync/CopyingFileProcessor.java
package me.itzg.helpers.sync; import lombok.extern.slf4j.Slf4j; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import static java.nio.file.StandardCopyOption.COPY_ATTRIBUTES; import static java.nio.file.StandardCopyOption.REPLACE_EXISTING; @Slf4j public class CopyingFileProcessor...
SpyrosDellas/algorithms-i
collinear/Test.java
/* ***************************************************************************** * Name: * Date: * Description: **************************************************************************** */ import java.util.Arrays; public class Test { public static void main(String[] args) { double[] test = { ...
panfeiyy/ambari
ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/ExecuteHostType.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...
lenxin/spring-security
oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/web/HeaderBearerTokenResolver.java
package org.springframework.security.oauth2.server.resource.web; import javax.servlet.http.HttpServletRequest; import org.springframework.util.Assert; /** * Generic resolver extracting pre-authenticated JWT identity from a custom header. * * @author <NAME> * @since 5.2 */ public class HeaderBearerTokenResolver ...
lechium/tvOS142Headers
System/Library/Frameworks/MLCompute.framework/MLCActivationLayer.h
/* * This header is generated by classdump-dyld 1.5 * on Tuesday, November 10, 2020 at 10:18:58 PM Mountain Standard Time * Operating System: Version 14.2 (Build 18K57) * Image Source: /System/Library/Frameworks/MLCompute.framew...
wilsonGmn/pyrin
src/pyrin/security/manager.py
# -*- coding: utf-8 -*- """ security manager module. """ import pyrin.security.encryption.services as encryption_services import pyrin.security.hashing.services as hashing_services from pyrin.core.globals import _ from pyrin.core.structs import Manager from pyrin.security import SecurityPackage from pyrin.security.ex...
takumihonda/AIP_realtime
python/3p_obs.py
<gh_stars>0 import sys import numpy as np from datetime import datetime from tools_AIP import read_obs_grads, prep_proj_multi, read_nc_topo, read_mask, read_obs_grads_latlon import matplotlib.pyplot as plt import matplotlib.colors as mcolors from matplotlib.colors import BoundaryNorm quick = True def main( INFO, ti...
enfoTek/tomato.linksys.e2000.nvram-mod
release/src/linux/linux/include/config/mtd/jedec.h
#undef CONFIG_MTD_JEDEC
SuperMap/iClient-for-JavaScript
libs/SuperMap/Format/WFST/v1_0_0.js
<filename>libs/SuperMap/Format/WFST/v1_0_0.js /* COPYRIGHT 2012 SUPERMAP * 本程序只能在有效的授权许可下使用。 * 未经许可,不得以任何手段擅自使用或传播。*/ /** * @requires SuperMap/Format/WFST/v1.js * @requires SuperMap/Format/Filter/v1_0_0.js */ /** * Class: SuperMap.Format.WFST.v1_0_0 * 创建WFS1.0.0版本处理(transactions)的格式类。 * 通过 <SuperMap.Form...
LiteraturePro/test
app/src/main/java/cn/ovzv/idioms/navigation/main/Main_couplet.java
package cn.ovzv.idioms.navigation.main; import androidx.appcompat.app.AppCompatActivity; import android.content.res.AssetManager; import android.graphics.Typeface; import android.os.Bundle; import android.view.GestureDetector; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.Vi...
ScalablyTyped/SlinkyTyped
s/styled-system/src/main/scala/typingsSlinky/styledSystem/mod/FlexBasisProps.scala
<reponame>ScalablyTyped/SlinkyTyped<filename>s/styled-system/src/main/scala/typingsSlinky/styledSystem/mod/FlexBasisProps.scala package typingsSlinky.styledSystem.mod import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGloba...
chobberoni/typos
node_modules/chromatic/node_modules/.cache/esm/e5775dbc34e7ddee.js
<reponame>chobberoni/typos let HTTPClient;_34e‍.x([["default",()=>GraphQLClient]]);_34e‍.w("./HTTPClient",[["default",["HTTPClient"],function(v){HTTPClient=v}]]); class GraphQLClient { constructor({ uri, ...httpClientOptions }) { if (!uri) throw new Error('Option `uri` required.'); this.uri = ...
jumski/alle_api
db/migrate/20130523114135_increase_limits_on_source_fields.rb
class IncreaseLimitsOnSourceFields < ActiveRecord::Migration def up change_column :alle_api_post_buy_forms, :source, :text change_column :alle_api_payments, :source, :text end def down change_column :alle_api_post_buy_forms, :source, :string, limit: 2000 change_column :alle_api_payments, :source,...
germix/sanos
utils/emul/src/msvcrt/malloc.c
#include "msvcrt.h" void *_malloc(size_t size) { return malloc(size); } void *_calloc(size_t num, size_t size) { return calloc(num, size); } void *_realloc(void *mem, size_t size) { return realloc(mem, size); } void _free(void *mem) { free(mem); }
yuanhawk/InfoSys1D
PUG/app/src/main/java/tech/sutd/pickupgame/di/data/RoomModule.java
package tech.sutd.pickupgame.di.data; import android.app.Application; import androidx.annotation.NonNull; import androidx.room.Room; import androidx.room.RoomDatabase; import androidx.sqlite.db.SupportSQLiteDatabase; import javax.inject.Singleton; import dagger.Module; import dagger.Provides; import tech.sutd.picku...
gagandeepkalra/dotty
tests/run/main-annotation-birthday.scala
<reponame>gagandeepkalra/dotty<filename>tests/run/main-annotation-birthday.scala import scala.annotation.newMain /** * Wishes a happy birthday to lucky people! * * @param age the age of the people whose birthday it is * @param name the name of the luckiest person! * @param others all the other lucky people ...
yu3mars/proconVSCodeGcc
atcoder/abc/abc118/b.cpp
<gh_stars>0 #include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using pii = pair<int, int>; #define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i) #define all(x) (x).begin(),(x).end() #define m0(x) memset(x,0,sizeof(x)) int dx4[4] = {1,0,-1,0}, dy4[4] = {0,1,0,-1}; int ma...
ThorntonMatthewD/caseflow
app/models/appeal_series.rb
<reponame>ThorntonMatthewD/caseflow # frozen_string_literal: true class AppealSeries < CaseflowRecord has_many :appeals, class_name: "LegacyAppeal", dependent: :nullify # Timeliness is returned as a range of integer months from 50 to 84.1%tile. # TODO: Replace these hardcoded values with dynamic data SOC_TIME...
DBatOWL/tutorials
core-java-modules/core-java-security-3/src/main/java/com/baeldung/hmac/HMACUtil.java
<filename>core-java-modules/core-java-security-3/src/main/java/com/baeldung/hmac/HMACUtil.java package com.baeldung.hmac; import org.apache.commons.codec.digest.HmacUtils; import org.bouncycastle.crypto.Digest; import org.bouncycastle.crypto.digests.MD5Digest; import org.bouncycastle.crypto.digests.SHA256Digest; impor...
tannnb/weibo
server/src/routes/profile.js
const router = require('koa-router')() const { getToken } = require('../middlewares/loginCheck') const {follow,getFollowers} = require('../controller/userRelationController') router.prefix('/api/profile') /** * <获取当前用户下的粉丝> */ router.post('/follow',async (ctx,next) => { const {id:myUserId} = await getToken(ctx) ...
neoremind/protostuff
protostuff-core/src/main/java/io/protostuff/LimitedInputStream.java
//======================================================================== //Copyright 2007-2010 <NAME> <EMAIL> //------------------------------------------------------------------------ //Licensed under the Apache License, Version 2.0 (the "License"); //you may not use this file except in compliance with the Licen...
w2fish/CSparse
Demo/cs_ex2.9.c
/* 20150402 */ /* test cs_compress2 */ #include "cs.h" int main(int argc, char * argv[]) { cs *T = NULL, *A = NULL ; FILE *fp ; char fileMatrix[256] = "fileMatrix" ; /* read T from file */ fp = fopen(fileMatrix, "r") ; T = cs_load(fp) ; /* load triplet matrix T from stdin */ fclose(fp); if(!T) { printf("l...
pscedu/slash2-next
slash2/slashd/coh.c
/* $Id$ */ /* * %GPL_START_LICENSE% * --------------------------------------------------------------------- * Copyright 2008-2018, Pittsburgh Supercomputing Center * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public Licens...
jasonTangxd/clockwork
clockwork-common/src/main/java/com/creditease/adx/clockwork/common/enums/UploadFileStatus.java
package com.creditease.adx.clockwork.common.enums; /** * 上传文件(运行脚本、依赖jar包、参数文件等)的状态 */ public enum UploadFileStatus { // 删除 DELETED("deleted"), // 有效 ENABLE("enable"); private String value; UploadFileStatus(String value) { this.value = value; } public String getValue() { ...
KCBootcamp/KCMyRestaurant
app/src/main/java/es/bhavishchandnani/myrestaurant/model/Tables.java
package es.bhavishchandnani.myrestaurant.model; import java.util.List; public class Tables { private static Tables instance; private List<Table> tables; private Tables() {} public static Tables getInstance() { if (instance == null){ instance = new Tables(); } r...
aniu2002/sparrow-egg
sparrow-web/sparrow-manager/src/main/java/com/sparrow/app/data/app/DataProviderCommand.java
package com.sparrow.app.data.app; import com.sparrow.http.command.BaseCommand; import com.sparrow.http.command.BeanWrapper; import com.sparrow.http.command.Request; import com.sparrow.http.command.Response; import com.sparrow.http.command.resp.FreeMarkerResponse; import com.sparrow.http.command.resp.JsonResponse; impo...
pebble2015/cpoi
src/org/apache/poi/ss/formula/functions/Sumproduct.cpp
<reponame>pebble2015/cpoi<gh_stars>0 // Generated from /POI/java/org/apache/poi/ss/formula/functions/Sumproduct.java #include <org/apache/poi/ss/formula/functions/Sumproduct.hpp> #include <java/lang/ArrayStoreException.hpp> #include <java/lang/Class.hpp> #include <java/lang/ClassCastException.hpp> #include <java/lang/...
vaish567/BotFramework-WebChat
packages/test/page-object/src/globals/pageConditions/allOutgoingActivitiesSent.js
<reponame>vaish567/BotFramework-WebChat import became from './became'; import getActivities from '../pageObjects/getActivities'; export default function allOutgoingActivitiesSent() { return became( 'all outgoing activities sent', () => getActivities() .filter(({ from: { role }, name, type }) =>...
Goodbird-git/CustomNPC-Plus
src/main/java/noppes/npcs/items/ItemSoulstoneEmpty.java
package noppes.npcs.items; import net.minecraft.entity.EntityList; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.passive.EntityAnimal; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemSta...
nimbul/nimbul
vendor/bundle/ruby/1.8/gems/fastthread-1.0.7/ext/fastthread/extconf.rb
version_components = RUBY_VERSION.split('.').map { |c| c.to_i } need_fastthread = ( !defined? RUBY_ENGINE ) need_fastthread &= ( RUBY_PLATFORM != 'java' ) need_fastthread &= version_components[0..1] == [1, 8] if need_fastthread require 'mkmf' create_makefile('fastthread') else require 'rbconfig' File.open('Ma...
SteveMinhNguyen/FE-develop
src/assets/js/coin.js
<reponame>SteveMinhNguyen/FE-develop export const ProjectCoin = 'BURGER'; export const ChainCoin = 'BURGER';
UranusBlockStack/ovirt-engine
backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/CanDoActionTestUtils.java
package org.ovirt.engine.core.bll; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import java.text.MessageFormat; import java.util.List; import org.apache.commons.lang.StringUtils; import org.ovirt.engine.core.common.errors.VdcBllMessages; /** * Utilities for testing the {@l...
amichard/tfrs
backend/api/migrations/0013_auto_20180619_2053.py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-06-19 20:53 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0012_credittradecomment'...
7ShaYaN7/SmartLauncher
app/src/main/java/fr/neamar/kiss/loader/LoadSearchPojos.java
package fr.neamar.kiss.loader; import android.content.Context; import java.util.ArrayList; import fr.neamar.kiss.pojo.SearchPojo; public class LoadSearchPojos extends LoadPojos<SearchPojo> { public LoadSearchPojos(Context context) { super(context, "none://"); } @Override protected ArrayLis...
AlliumCepa/webgui
www/extras/yui-webgui/build/form/jsontable.js
// Initialize namespace if (typeof WebGUI == "undefined") { var WebGUI = {}; } if (typeof WebGUI.Form == "undefined") { WebGUI.Form = {}; } /**************************************************************************** * WebGUI.Form.JsonTable( fieldName, tableId, columns ) * Create a JsonTable object. * *...
litecoin-foundation/litecoin
src/libmw/test/framework/include/test_framework/Deserializer.h
#pragma once // Copyright (c) 2018-2019 <NAME> // Distributed under the MIT software license, see the accompanying // file LICENSE or http://www.opensource.org/licenses/mit-license.php. #include <mw/common/Traits.h> #include <algorithm> #include <boost/optional.hpp> #include <cstdint> #include <cstring> #include <st...
rweyrauch/PBrtJ
src/main/java/org/pbrt/core/Film.java
/* * PBrtJ -- Port of pbrt v3 to Java. * Copyright (c) 2017 <NAME>. * * pbrt source code is Copyright(c) 1998-2016 * <NAME>, <NAME>, and <NAME>. * */ package org.pbrt.core; public class Film { // Film Private Data private class Pixel { Pixel() {} float xyz[] = {0, 0, 0}; float...
thedatanecdotes/DataAnecdotesWebsite
node_modules/@material-ui/icons/esm/SignalCellularNoSimSharp.js
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( /*#__PURE__*/React.createElement("path", { d: "M19 3h-9L7.95 5.06 19 16.11zm-15.21.74L2.38 5.15 5 7.77V21h13.23l1.62 1.62 1.41-1.41z" }), 'SignalCellularNoSimSharp');