repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
zssherman/beam_block
beam_block/config/tests/test_dict_config.py
""" Unit Tests for Beam Block's config/dict_config.py module. """ import pyart from numpy.testing import assert_almost_equal import beam_block from beam_block.config import dict_config radar_bb = pyart.io.read(beam_block.testing.SAMPLE_RADAR_BLOCK_DATA_FILE) radar_low_elev = pyart.io.read( beam_block.testing.SA...
Syrupz-UO/VERDICT
tools/verdict-back-ends/verdict-bundle/verdict-attack-defense-collector/src/main/java/com/ge/verdict/attackdefensecollector/adtree/ADNot.java
<reponame>Syrupz-UO/VERDICT package com.ge.verdict.attackdefensecollector.adtree; import com.ge.verdict.attackdefensecollector.CutSetGenerator; import com.ge.verdict.attackdefensecollector.IndentedStringBuilder; import com.ge.verdict.attackdefensecollector.Prob; import java.util.Objects; import org.logicng.formulas.Fo...
Gabriel-Goncalves/trybe-exercises
modulo_1/bloco_7/dia_1/parteII/exercicio02.js
const longestWord = (stringWords) => { let arrayWords = stringWords.split(" "); let biggest = arrayWords[0]; let positionBiggest = 0; for (let index = 0; index < arrayWords.length; index += 1) { if (arrayWords[index].length > biggest.length) { biggest = arrayWords[index]; positionBiggest = index...
GongYuanLearning/javaee
spring_core/spring_aop/src/main/java/com/example/service/PackageService.java
<filename>spring_core/spring_aop/src/main/java/com/example/service/PackageService.java<gh_stars>0 package com.example.service; public interface PackageService { boolean getPackage(String name); boolean sendPackage(String name); }
saaltone/SANNet
src/core/layer/feedforward/FeedforwardLayer.java
<filename>src/core/layer/feedforward/FeedforwardLayer.java /* * SANNet Neural Network Framework * Copyright (C) 2018 - 2021 <NAME> */ package core.layer.feedforward; import core.layer.WeightSet; import core.network.NeuralNetworkException; import core.activation.ActivationFunction; import core.layer.Abstr...
nwy140/TheWYGameDevelopmentFramework
WyFramework/Docs/html/dir_df9ef7e4299d5f4b8ec3a91d5783dd72.js
var dir_df9ef7e4299d5f4b8ec3a91d5783dd72 = [ [ "Info.cs", "_info_8cs.html", [ [ "MechanicsAs", "class_m_d_a_1_1_mechanics_as.html", "class_m_d_a_1_1_mechanics_as" ] ] ] ];
gavin2lee/incubator-gl
docs/sourcecodes/OpenBridge-passos-ui/ob-monitor-web/src/main/java/com/harmazing/openbridge/alarm/service/impl/TemplateServiceImpl.java
<filename>docs/sourcecodes/OpenBridge-passos-ui/ob-monitor-web/src/main/java/com/harmazing/openbridge/alarm/service/impl/TemplateServiceImpl.java package com.harmazing.openbridge.alarm.service.impl; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; impor...
tulinkry/teaching-sources-pa1-2016
02/square.c
<filename>02/square.c #include <stdio.h> /** * Program na základní vstup a výstup. * * Program načte dvě celá čísla symbolizující strany dvou čtverců. * Ověří, že první čtverec je větší než druhý a následně vypíše * kolikrát se menší čtverec vejde do většího. */ int main ( void ) { int firstSquare, secondSq...
harfol/harthb
application/src/main/java/org/thingsboard/server/service/install/migrate/TsLatestMigrateService.java
package org.thingsboard.server.service.install.migrate; public interface TsLatestMigrateService { void migrate() throws Exception; }
CarlLindblad/rsimulator
rsimulator-proxy/src/main/java/com/github/bjuvensjo/rsimulator/proxy/config/ProxyModule.java
<gh_stars>0 package com.github.bjuvensjo.rsimulator.proxy.config; import java.io.File; import java.net.URL; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.google.inject.AbstractModule; import com.google.inject.name.Names; /** * CoreModule holds Guice configurations. * * @author <NAME> */ p...
stages-integrations/subversion-library
src/main/java/de/methodpark/subversion/xml/AbstractSaxExpression.java
/** * Copyright © 2013-2018 shadowhunt (<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 ...
Pacien/ninja
js/helper-classes/RDGE/src/core/script/fx/ssao.js
/* <copyright> Copyright (c) 2012, Motorola Mobility LLC. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditio...
Nguyenkhanh98/React-Nestjs-Graphql
client/src/constants/list.js
export default { menu: [ { id: '1', path: '/dashboard', icon: 'home', label: 'Home', parent: '0', }, { id: '2', path: '', icon: 'envelope', label: 'Mailbox', parent: '0', }, { id: '3', path: '/app/inbox', icon: 'inbox', label: 'Inbox', parent: '2', }, { id: '7', pa...
INSO-TUWien/Binocular
lib/core/provider/travis-ci.js
<reponame>INSO-TUWien/Binocular 'use strict'; const _ = require('lodash'); const rp = require('request-promise'); const urlJoin = require('url-join'); const log = require('debug')('travis-ci'); const Paginator = require('../../paginator.js'); const escapeUtils = require('querystring').escape; class TravisCI { const...
TeWu/GamesBox
app/javascript/games/components/create_form.js
import React, { Component } from 'react' import { Checkbox } from 'utils/form_fields' import { game_session_path, private_game_session_path } from 'config/reverse_routes' import { generateRandomId } from 'utils/random' class CreateForm extends Component { constructor(props) { super(props) this.handleSubmit ...
untgames/funner
extern/wcecompat/include/new.h
<reponame>untgames/funner<filename>extern/wcecompat/include/new.h // // Copyright (c) Microsoft Corporation. All rights reserved. // // // Use of this source code is subject to the terms of the Microsoft end-user // license agreement (EULA) under which you licensed this SOFTWARE PRODUCT. // If you did not accept...
Seyijo/youFarm
frontend/src/App.js
import React, { Component } from "react"; import { BrowserRouter, Route, Switch } from "react-router-dom"; import { toast } from "react-toastify"; import "./App.scss"; const loading = () => ( <div className="animated fadeIn pt-3 text-center">Loading...</div> ); // Containers const AdminDashboard = React.lazy(() => ...
FuyaoLi2017/leetcode
String/leetcode_809_ExpressiveWord.java
/* Sometimes people repeat letters to represent extra feeling, such as "hello" -> "heeellooo", "hi" -> "hiiii". In these strings like "heeellooo", we have groups of adjacent letters that are all the same: "h", "eee", "ll", "ooo". For some given string S, a query word is stretchy if it can be made to be equal to S by...
HazouPH/android_dalvik
vm/compiler/codegen/x86/lightcg/NcgAot.h
/* * Copyright (C) 2010-2013 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
divlaksh/questionnaire-new
node_modules/@progress/kendo-angular-grid/dist/es/rendering/details/details.service.js
import * as tslib_1 from "tslib"; import { Injectable } from '@angular/core'; import { ExpandStateService } from '../../common/expand-state.service'; import { DetailExpandEvent } from './detail-expand-event'; import { DetailCollapseEvent } from './detail-collapse-event'; /** * @hidden */ var DetailsService = /** @cla...
SleepySanjinLi/main
src/test/java/seedu/address/model/calendarevent/UniqueCalendarEventListTest.java
<reponame>SleepySanjinLi/main package seedu.address.model.calendarevent; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static seedu.address.logic.commands.CommandTestUtil.VALID_TAG_LECTURE; import static seedu.address.logic.co...
ruchikav95/Binder
client/src/view/auth/styles/Wrapper.js
<reponame>ruchikav95/Binder<gh_stars>1-10 import styled from 'styled-components'; const Wrapper = styled.div` width: 100%; min-height: 100vh; height: 100vh; display: flex; justify-content: flex-end; align-items: center; position: relative; background-size: contain; &:before { content: ''; wi...
vegastristan1/nodegame-v7.1.0
node_modules/nodegame-widgets/lib/Widgets.js
/** * # Widgets * Copyright(c) 2021 <NAME> * MIT Licensed * * Helper class to interact with nodeGame widgets * * http://nodegame.org */ (function(window, node) { "use strict"; // ## Widgets constructor function Widgets() { var that; /** * ### Widgets.widgets * ...
liyanyanli/hch
vendor/github.com/astaxie/beego/orm/models_utils.go
// Copyright 2014 beego Author. 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 by...
jekyll-openui5/jekyll-openui5
assets/sap/ui/webc/main/Toast-dbg.js
/*! * OpenUI5 * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.ui.webc.main.Toast. sap.ui.define([ "sap/ui/webc/common/WebComponent", "./library", "./thirdparty/Toast" ], function(WebComponent, library) {...
wirmar/CubeCobra
models/report.js
const mongoose = require('mongoose'); // Deck schema const reportSchema = mongoose.Schema({ commentid: String, info: String, reason: String, reportee: String, timePosted: Date, }); reportSchema.index({ timePosted: -1, }); reportSchema.index({ commentid: 1, }); module.exports = mongoose.model('Report',...
linch1996/java-programming
src/cn/blackme/reflect/Reflect.java
package cn.blackme.reflect; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.List; /** * 反射 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
boston-library/curator
spec/models/curator/filestreams/metadata_spec.rb
# frozen_string_literal: true require 'rails_helper' require_relative '../shared/filestreams/file_set' require_relative '../shared/filestreams/file_attachments' require_relative '../shared/filestreams/thumbnailable' require_relative '../shared/versionable' RSpec.describe Curator::Filestreams::Metadata, type: :model d...
Tudor67/Competitive-Programming
LeetCode/Problems/Algorithms/#1386_CinemaSeatAllocation_sol1_greedy_and_bit_manipulation_O(RESERVED_SEATS)_time_O(RESERVED_SEATS)_extra_space_194ms_56MB.cpp
<reponame>Tudor67/Competitive-Programming class Solution { public: int maxNumberOfFamilies(int n, vector<vector<int>>& reservedSeats) { unordered_map<int, int> reservedMask; for(const vector<int>& RC: reservedSeats){ int row = RC[0] - 1; int col = RC[1] - 1; ...
uruzahe/carla
Co-Simulation/Sumo/sumo-1.7.0/src/microsim/devices/MSDevice_Emissions.h
/****************************************************************************/ // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo // Copyright (C) 2001-2020 German Aerospace Center (DLR) and others. // This program and the accompanying materials are made available under the // terms of the Ecli...
The-Island/island-app
public/js/views/lists/notifications.js
/* * Notification List view */ define([ 'jQuery', 'Underscore', 'views/boiler/list', 'mps', 'rest', 'Spin', 'text!../../../templates/lists/notifications.html', 'collections/notifications', 'views/rows/notification' ], function ($, _, List, mps, rest, Spin, template, Collection, Row) { return List...
yasincidem/educateus-project
app/components/Header/index.js
import { withStyles } from '@material-ui/core/styles'; import Header from './Header'; import Style from './style'; export default (withStyles(Style, { withTheme: true })(Header));
fynch3r/MyLeetCodeRecorder
src/com/mlcr/string/_709/Solution.java
<filename>src/com/mlcr/string/_709/Solution.java package com.mlcr.string._709; /** * @program: MyLeetCodeRecorder * @description: https://leetcode-cn.com/problems/to-lower-case/ * @author: fynch3r * @create: 2021-06-12 15:31 **/ public class Solution { public String toLowerCase(String str) { char[] ...
OpenAgenda/agenda-portal
lib/utils/compile.js
<filename>lib/utils/compile.js 'use strict'; const _ = require('lodash'); const moment = require('moment'); const flatten = require('../events/flattenMultilingual'); const relativeTimings = require('../timings/relative'); const { applyContextLink } = require('../eventNavigation'); const links = require('../events/lin...
thejellyfish/feather-icons
src/icons/IconAirplay.js
<reponame>thejellyfish/feather-icons import React from 'react'; import Icon from '../Icon'; /* eslint-disable react/jsx-props-no-spreading */ export default function IconAirplay(props) { return ( <Icon {...props}> <path d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1" /> ...
XXBM/glmisWeb
src/main/java/com/glmis/domain/minor/Course.java
<reponame>XXBM/glmisWeb package com.glmis.domain.minor; import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicUpdate; import javax.persistence.*; import java.io.Serializable; import java.util.Collection; import java.util.List; @Entity @Table(name = "course") @DynamicInsert(true) @...
haizhenhan/Kepler
kernel/2.6.32/drivers/staging/rt3090/rt_ate.c
<filename>kernel/2.6.32/drivers/staging/rt3090/rt_ate.c /* ************************************************************************* * Ralink Tech Inc. * 5F., No.36, Taiyuan St., Jhubei City, * Hsinchu County 302, * Taiwan, R.O.C. * * (c) Copyright 2002-2007, Ralink Technology, Inc. * * This program is free so...
klaantczak/Nordic
src/hps/statemachine/triggers/Probabilistic.go
<reponame>klaantczak/Nordic<gh_stars>0 package triggers import ( "encoding/json" "fmt" "hps" sm "hps/statemachine" "math" ) type ProbabilisticTrigger struct { parameter float64 comment string } func NewProbabilisticTrigger(parameter float64) *ProbabilisticTrigger { t := &ProbabilisticTrigger{} t.parameter...
EricChang82/springBootDemo
springBootDemo/src/main/java/com/alibaba/excel/analysis/v07/XlsxRowHandler.java
<gh_stars>0 package com.alibaba.excel.analysis.v07; import com.alibaba.excel.annotation.FieldType; import com.alibaba.excel.constant.ExcelXmlConstants; import com.alibaba.excel.context.AnalysisContext; import com.alibaba.excel.event.AnalysisEventRegisterCenter; import com.alibaba.excel.event.OneRowAnalysisFinishEvent;...
Mimecast/ioriot
ioriot/src/vfd.c
<filename>ioriot/src/vfd.c // Copyright 2018 Mimecast 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by a...
RickK213/react-firebase-starter
src/components/session/index.js
import { withEmailVerification } from './with-email-verification'; import { withAuthorization } from './with-authorization'; import { withAuthentication } from './with-authentication'; import AuthUserContext from './context'; export { withEmailVerification, withAuthorization, withAuthentication, AuthUserContex...
devgateway/gtp
persistence/src/main/java/org/devgateway/toolkit/persistence/dto/GTPLocation.java
package org.devgateway.toolkit.persistence.dto; import com.fasterxml.jackson.annotation.JsonInclude; import org.devgateway.toolkit.persistence.dao.location.Department; /** * @author <NAME> */ @JsonInclude(JsonInclude.Include.ALWAYS) public class GTPLocation { private final Long id; private final String nam...
r3m0t/debugpy
src/debugpy/_vendored/pydevd/tests_python/resources/my_code/my_code_double_step.py
<filename>src/debugpy/_vendored/pydevd/tests_python/resources/my_code/my_code_double_step.py if __name__ == '__main__': import sys import os sys.path.append(os.path.dirname(os.path.dirname(__file__))) from not_my_code import other_noop other_noop.call_noop() # break here print('TEST SUCEEDED!'...
bhupendpatil/Practice
Android/Email/MainActivity.java
<gh_stars>1-10 package hk.ust.cse.comp107x.email; import android.content.Intent; import android.net.Uri; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; public class MainActivity extends AppCompatActivity implements View.OnClickListene...
ChineseTony/javaDataStruct
nettystudy/src/main/java/com/tom/mycode/codec/RpcMessageDecoder.java
package com.tom.mycode.codec; import com.tom.mycode.*; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.LengthFieldBasedFrameDecoder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Arrays; import java.util.Map; import static com.t...
Vinicius-de-Souza-Reis-Lima/Python
Scripts/Tratamento de strings/MTEX D5.py
frase = str(input('Digite uma frase: ')).strip().upper() print('Quantas vezes aparece a letra "A"? {}'.format(frase.count('A'))) print('Em que posição a letra "A" aparece primeiro? {}'.format(frase.find('A'))) print('Em que posição a letra "A" aparece pela última vez? {}'.format((frase.rfind('A'))))
dalalsunil1986/gramado
landos/kernel/2io/dev/tty/chardev/serial/serial.c
<reponame>dalalsunil1986/gramado #include <kernel.h> void serial1_handler (void) { debug_print("serial1_handler:\n"); } void serial2_handler (void) { debug_print("serial2_handler:\n"); } void serial3_handler (void) { debug_print("serial3_handler:\n"); } void serial4_handler (void) { debug_print(...
WallaTeam/WallaLinks
src/main/java/urlshortener/bangladeshgreen/domain/URISafe.java
<reponame>WallaTeam/WallaLinks package urlshortener.bangladeshgreen.domain; import org.springframework.data.annotation.Id; /** * Represents an object for information about URIs safe. * Author: BangladeshGreen */ public class URISafe { @Id private String target; private boolean safe; private long date; public...
weicao/galaxysql
polardbx-executor/src/main/java/com/alibaba/polardbx/executor/ddl/job/factory/AlterTableGroupSplitPartitionByHotValueJobFactory.java
<gh_stars>0 package com.alibaba.polardbx.executor.ddl.job.factory; import com.alibaba.polardbx.common.properties.ConnectionParams; import com.alibaba.polardbx.common.utils.Pair; import com.alibaba.polardbx.executor.ddl.job.builder.tablegroup.AlterTableGroupSplitPartitionByHotValueBuilder; import com.alibaba.polardbx.e...
pip-services3-gox/pip-services3-commons-gox
reflect/PropertyReflector.go
<filename>reflect/PropertyReflector.go package reflect import ( refl "reflect" "strings" "unicode" "unicode/utf8" ) /* Helper class to perform property introspection and dynamic reading and writing. This class has symmetric implementation across all languages supported by Pip.Services toolkit and used to support...
lkszmn/spectrast
src/spectrast/SpectraSTCandidate.hpp
<filename>src/spectrast/SpectraSTCandidate.hpp #ifndef SPECTRASTCANDIDATE_HPP_ #define SPECTRASTCANDIDATE_HPP_ #include "SpectraSTLibEntry.hpp" #include "SpectraSTSearchParams.hpp" #include "SpectraSTSimScores.hpp" /* Program : Spectrast Author : <NAME> <<EMAIL>> ...
pengtaoman/webside
src/main/java/com/webside/business/mapper/InquiryMapper.java
package com.webside.business.mapper; import java.util.List; import org.apache.ibatis.annotations.Param; import com.webside.base.basemapper.BaseMapper; import com.webside.business.model.InquiryDetailsEntity; import com.webside.business.model.InquiryEntity; public interface InquiryMapper extends BaseMapper<InquiryEnt...
mikiec84/blueprints
src/test/java/com/tinkerpop/blueprints/pgm/impls/rexster/RexsterGraphTest.java
<filename>src/test/java/com/tinkerpop/blueprints/pgm/impls/rexster/RexsterGraphTest.java<gh_stars>1-10 package com.tinkerpop.blueprints.pgm.impls.rexster; import com.tinkerpop.blueprints.pgm.*; import com.tinkerpop.blueprints.pgm.impls.GraphTest; import java.lang.reflect.Method; /** * @author <NAME> (http://markoro...
kyeonghopark/jgt-code
Volume_10/Number_2/Baerentzen2005/Libsrc/LDI/create_ldi.h
#ifndef __CREATE_LDI_H #define __CREATE_LDI_H #include "LDI.h" namespace LDI { void create_ldi(LDISet& ldi_set); } #endif
hawaker/eladmin
eladmin-system/src/main/java/me/zhengjie/modules/activiti/rest/ModelerController.java
package me.zhengjie.modules.activiti.rest; import com.alipay.api.domain.ModelQueryParam; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ObjectNode; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; ...
kochetkov-ma/qa-tools
src/main/java/ru/iopump/qa/support/api/WithValue.java
package ru.iopump.qa.support.api; import com.google.common.base.Objects; import javax.annotation.Nullable; import org.apache.commons.lang3.StringUtils; import ru.iopump.qa.util.Str; /** * This object has some value and can give it. In common situation it's a {@link String} but it may be any other {@link Object}. * ...
hmrc/api-gatekeeper-frontend
app/services/DeveloperService.scala
/* * Copyright 2021 HM Revenue & Customs * * 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 a...
IamMayankThakur/test-bigdata
adminmgr/media/code/python/map1/BD_665_962_725_mapper.py
#!/usr/bin/python3 import sys import csv for line in sys.stdin: line = line.strip() list_ = line.split(",") try: batsman = list_[4] bowler = list_[6] if(list_[9] == "caught" or list_[9] == "bowled" or list_[9] == "lbw" or list_[9] == "caught and bowled" or list_[9] == "stumped" ): print('%s,%s,%d,%d'% (...
smoorebox/box-ui-elements
src/icons/general/IconAlertBlank.js
// @flow import * as React from 'react'; import AccessibleSVG from '../accessible-svg'; type Props = { className?: string, height?: number, /** A text-only string describing the icon if it's not purely decorative for accessibility */ title?: string | React.Element<any>, width?: number, }; const I...
booknara/playground
src/test/java/com/booknara/problem/stack/BasicCalculatorTest.java
package com.booknara.problem.stack; import org.junit.Assert; import org.junit.Test; public class BasicCalculatorTest { @Test public void calculate() { BasicCalculator basicCalculator = new BasicCalculator(); Assert.assertEquals(92, basicCalculator.calculate(" 32 + 60")); Assert.assertE...
ReliSA/crce-client
client-java/src/main/java/cz/zcu/kiv/crce/client/java/RecursiveJavaMetadataParser.java
<filename>client-java/src/main/java/cz/zcu/kiv/crce/client/java/RecursiveJavaMetadataParser.java package cz.zcu.kiv.crce.client.java; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; import javax.annotation.ParametersAr...
McMurphy-Luo/leetcode
src/Longest Palindromic Substring.cpp
<gh_stars>0 #include "catch.hpp" #include <string> #include <vector> using std::string; using std::vector; struct Palindrome { size_t begin; size_t end; Palindrome() : begin(0) , end(0) { } }; class Solution { public: string longestPalindrome(string s) { vector<Palindrome> palindromes_found; ...
poetix/fluvius
fluvius-core/src/main/java/com/codepoetics/fluvius/conditions/Conditions.java
package com.codepoetics.fluvius.conditions; import com.codepoetics.fluvius.api.Condition; import com.codepoetics.fluvius.api.functional.Predicate; import com.codepoetics.fluvius.api.functional.ScratchpadPredicate; import com.codepoetics.fluvius.api.scratchpad.Key; import com.codepoetics.fluvius.api.scratchpad.Scratchp...
Alexander-Iv/otus-java-hw
hw15-messageSystem/hw15-0-ms/src/main/java/alexander/ivanov/messageSystem/services/FeService.java
package alexander.ivanov.messageSystem.services; public interface FeService extends Service { void auth(String name, String password); void registration(String name, String password); }
deveshpatel0101/data_structures_algorithms
algorithms/power_set/power_set.go
package main import ( "fmt" "strconv" "strings" ) func main() { fmt.Println("\n-- Generating Power Set (Set of Subsets)--") var value int fmt.Print("\nEnter a value: ") fmt.Scanf("%d\n", &value) list := PowerSet(value) fmt.Println("All possible subsets upto", value, "are:") for i := 0; i < len(list); i+...
ScalablyTyped/SlinkyTyped
g/gl-shader/src/main/scala/typingsSlinky/glShader/mod.scala
package typingsSlinky.glShader import org.scalablytyped.runtime.StringDictionary import org.scalajs.dom.raw.WebGLProgram import org.scalajs.dom.raw.WebGLRenderingContext import org.scalajs.dom.raw.WebGLShader import typingsSlinky.glShader.anon.Attributes import typingsSlinky.glShader.anon.Fragment import org.scalablyt...
Uniandes-isis2603/s2_CentroDeportivo
s2_centrodeportivo-api/src/main/java/co/edu/uniandes/csw/centrodeportivo/dtos/EspecialistaDetailDTO.java
/* * 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.centrodeportivo.dtos; import co.edu.uniandes.csw.centrodeportivo.entities.DeportistaEntity; import...
ElegastVZW/mock-xrm
src/retrieveMultipleWrapperMemo.js
<filename>src/retrieveMultipleWrapperMemo.js import memoize from './utility/memoize'; import retrieveMultipleWrapper from './retrieveMultipleWrapper'; const retrieveMultipleWrapperMemo = memoize(retrieveMultipleWrapper); export default retrieveMultipleWrapperMemo;
doyaGu/C0501Q_HWJL01
sdk/sdk/share/ucl/acc/acc_lib.h
/* ACC -- Automatic Compiler Configuration Copyright (C) 1996-2004 <NAME> All Rights Reserved. This software is a copyrighted work licensed under the terms of the GNU General Public License. Please consult the file "ACC_LICENSE" for details. <NAME> <<EMAIL>> http://www.oberhumer.com/ */ #...
bstasyszyn/fabric-peer-ext
pkg/peer/init_test.go
<reponame>bstasyszyn/fabric-peer-ext /* Copyright SecureKey Technologies Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package peer import ( "os" "testing" "github.com/hyperledger/fabric/extensions/collections/storeprovider" "github.com/hyperledger/fabric/extensions/gossip/blockpublisher" "g...
liuboshuo/LSDevelopmentIOS
DevelopmentIOS/Common/Utils/PopMenuView/PopMenuViewTableViewDelegate.h
// // PopMenuViewTableViewDelegate.h // TestPopView // // Created by 刘硕 on 16/4/18. // Copyright © 2016年 刘硕. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "PopMenuView.h" #import "PopMenuTableViewCell.h" #define kNumber 6 #define kPopCellHeight 40 typedef void(^tableVie...
johnkerl/scripts-math
pythonlib/bin/rube_misc_tests.py
<filename>pythonlib/bin/rube_misc_tests.py #!/usr/bin/python -Wall # ================================================================ # Copyright (c) <NAME> 2007 # <EMAIL> # ================================================================ from rube_m import * # -------------------------------------------------------...
impedimentToProgress/UCI-BlueChip
snapgear_linux/user/pppd/pppd/plugins/librad.c
/* * librad.c - RADIUS protocol library. * * (C) Copyright 2001-2002, <NAME> (<EMAIL>) * (C) Copyright 2001, Lineo Inc. (www.lineo.com) * (C) Copyright 2002, SnapGear (www.snapgear.com) */ #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <syslog.h> #include <string.h> #include <sys/time.h> #in...
rh101/engine-x
core/renderer/CCMeshCommand.h
/**************************************************************************** Copyright (c) 2013-2016 Chukong Technologies Inc. Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associa...
AnilKumarBejjanki/drools
kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/KnowledgeSourceCompiler.java
/* * Copyright 2017 Red Hat, Inc. and/or 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 License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
SMYALTAMASH/sunbird-learning-platform
platform-core/graph-engine/module/graph-common/src/main/java/org/sunbird/graph/common/BaseRequestRouter.java
package org.sunbird.graph.common; import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; import org.apache.commons.lang3.StringUtils; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.sunbird.common.Platform; import org.sunbird.common.dto.Request;...
chozen2see/terria
node_modules/terriajs/dist/ReactViews/Custom/SOSChartCustomComponent.js
<reponame>chozen2see/terria<gh_stars>0 import createGuid from "terriajs-cesium/Source/Core/createGuid"; import CommonStrata from "../../Models/Definition/CommonStrata"; import ChartCustomComponent from "./ChartCustomComponent"; export default class SOSChartCustomComponent extends ChartCustomComponent { constructor(...
strolch-li/strolch
li.strolch.privilege/src/main/java/li/strolch/privilege/handler/SimpleLdapPrivilegeHandler.java
<filename>li.strolch.privilege/src/main/java/li/strolch/privilege/handler/SimpleLdapPrivilegeHandler.java<gh_stars>1-10 package li.strolch.privilege.handler; import static li.strolch.privilege.base.PrivilegeConstants.*; import static li.strolch.utils.helper.StringHelper.isEmpty; import javax.naming.NamingException; i...
jacktionary/ManekiNeko
ManekiNeko/Classes/Business/Task/Subviews/MNUserRedpackView.h
// // MNUserRedpackView.h // ManekiNeko // // Created by JackCheng on 16/2/24. // Copyright © 2016年 HardTime. All rights reserved. // #import "MNBaseView.h" @interface MNUserRedpackView : MNBaseView @property (nonatomic, strong) void(^confirmRedPackCallBack)(NSString *invitedID, NSString *redpackAmount); @end
xhh4215/ShopApp
hi-ui/src/main/java/com/example/hi/banner/core/HiBannerAdapter.java
package com.example.hi.banner.core; import android.content.Context; import android.util.SparseArray; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.annotation.LayoutRes; import androidx.annotation.NonNull; import androidx.viewpager.widget.PagerAdapter; im...
dangilman/LenstronomyWrapper
lenstronomywrapper/Sampler/run.py
import os from lenstronomywrapper.Sampler.utilities import * from lenstronomywrapper.Utilities.misc import create_directory from lenstronomywrapper.LensSystem.quad_lens import QuadLensSystem from lenstronomywrapper.Utilities.data_util import approx_theta_E import dill from lenstronomywrapper.Utilities.parameter_util i...
felder/Tools
scripts/ucjeps/cspace-fims-integration/extractFromAuthority.py
<reponame>felder/Tools import xml.etree.ElementTree as ET import sys, csv, codecs reload(sys) sys.setdefaultencoding('utf-8') if len(sys.argv) < 3: print "" print "reads a CSpace authority XML file and outputs CSIDs, displayNames, and refNames as a .csv file" print "" print "if a 3rd argument is pres...
Sollertix/PnP
Samples/OfficeGraph.Demo.App/OfficeGraph.Demo.App/Scripts/App.js
<filename>Samples/OfficeGraph.Demo.App/OfficeGraph.Demo.App/Scripts/App.js 'use strict'; (function ($) { $(document).ready(loadEverything); function loadEverything() { var isDialog = getQueryStringParameterByName('IsDlg'); if (isDialog == '1') { $("#globalNavBox").hide(); ...
KaiH0717/Kaguya
Source/Engine/Core/RHI/D3D12/D3D12CommandList.h
#pragma once #include "D3D12Common.h" #include "D3D12ResourceStateTracker.h" class D3D12CommandQueue; class D3D12CommandAllocator { public: explicit D3D12CommandAllocator(ID3D12Device* Device, D3D12_COMMAND_LIST_TYPE Type); operator ID3D12CommandAllocator*() const noexcept { return CommandAllocator.Get(); } [[no...
cchamberlain/powerapi
src/lib/redux/modules/redux-idle-monitor.js
import configure from 'redux-idle-monitor' import { push } from 'react-router-redux' import { packageName, IS_BROWSER } from '../../../config' import { setText } from '../actions/visual' export const IDLESTATUS_INACTIVE = 'INACTIVE' export const IDLE_STATUSES = [ IDLESTATUS_INACTIVE ]...
javashop/pangu
src/test/java/com/enation/pangu/PluginParseTest.java
<filename>src/test/java/com/enation/pangu/PluginParseTest.java package com.enation.pangu; import com.enation.pangu.enums.PluginPathTypeEnum; import com.enation.pangu.mapper.PluginMapper; import com.enation.pangu.service.ExecutorManager; import com.enation.pangu.utils.ScriptUtil; import org.junit.Test; import org.junit...
NimBuzz01/Project-Miika_SDGP
miika_nlu/venv/Lib/site-packages/torch/include/ATen/ops/histc_native.h
#pragma once // @generated by tools/codegen/gen.py from NativeFunction.h #include <c10/core/Scalar.h> #include <c10/core/Storage.h> #include <c10/core/TensorOptions.h> #include <c10/util/Deprecated.h> #include <c10/util/Optional.h> #include <c10/core/QScheme.h> #include <ATen/core/Reduction.h> #include <ATen/core/Ten...
internet-com/basecoin
cmd/basecoin/commands/start.go
package commands import ( "fmt" "os" "path" "github.com/pkg/errors" "github.com/spf13/cobra" "github.com/spf13/viper" "github.com/tendermint/abci/server" eyesApp "github.com/tendermint/merkleeyes/app" eyes "github.com/tendermint/merkleeyes/client" "github.com/tendermint/tmlibs/cli" cmn "github.com/tenderm...
chrwhit/azure-sdk-for-java
sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LookupActivity.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure.core...
defc0n1/shoppe_promo
vendor/cache/gems/builder-3.2.2/test/preload.rb
#!/usr/bin/env ruby #-- # Portions copyright 2004 by <NAME> (<EMAIL>). # Portions copyright 2005 by <NAME> (<EMAIL>). # All rights reserved. # Permission is granted for use, copying, modification, distribution, # and distribution of modified versions of this work as long as the # above copyright notice is included. #...
rwth-acis/mobsos-query-visualization
src/main/i5/las2peer/services/mobsos/queryVisualization/database/SQLFilterManager.java
package i5.las2peer.services.mobsos.queryVisualization.database; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import i5.las2peer.api.Context; import i5.las2peer.api.log...
bowen0701/python-algorithms-data-structures
alg_arithmetic_series.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function """Arithmetic series: 1 + 2 + 3 + ... + n.""" def arithmetic_series_recur(n): """Arithmetic series by recursion. Time complexity: O(n). Space complexity: O(n) """ # Base case. if n <=...
luzhongyang/DongTai-webapi
iast/views/log_export.py
<filename>iast/views/log_export.py #!/usr/bin/env python # -*- coding:utf-8 -*- # author:owefsad # software: PyCharm # project: lingzhi-webapi from django.contrib.admin.models import LogEntry from django.http import HttpResponse from django.utils.encoding import escape_uri_path from import_export import resources from ...
zbowling/mojo
shell/url_response_disk_cache_loader.h
<reponame>zbowling/mojo<gh_stars>1-10 // 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 SHELL_URL_RESPONSE_DISK_CACHE_LOADER_H_ #define SHELL_URL_RESPONSE_DISK_CACHE_LOADER_H_ #include "base/macr...
sschum/Mica2015
src/main/java/de/tarent/mica/maze/model/Field.java
package de.tarent.mica.maze.model; import java.util.Arrays; import java.util.Collection; import java.util.HashSet; import java.util.Iterator; import java.util.Set; public class Field { private final Coord coord; private Set<Type> types = new HashSet<>(); public Field(Coord coord, Type...types) { this(coord, Arr...
invader777/tleaf
src/render/index.js
<gh_stars>10-100 'use strict'; var handlebars = require('handlebars'); var _ = require('lodash'); var config = require('../config'); var template = require('../template'); var helpers = require('./helpers'); //////// module.exports = render; //////// function render(source, data) { var env = handlebars.create(...
laocaixw/DesignModeLearning
src/com/laocaixw/designmode/prototype/Demo.java
package com.laocaixw.designmode.prototype; public class Demo { public static void main(String[] args) { ConcretePrototype c1 = new ConcretePrototype(); c1.setType("Type-A"); c1.setName("Name-1"); c1.show(); ConcretePrototype c2 = (ConcretePrototype) c1.clone(); ...
fughz/fx_info_reader
lib/fx_info_reader/lion_fx_client.rb
<reponame>fughz/fx_info_reader<filename>lib/fx_info_reader/lion_fx_client.rb # coding: utf-8 require 'open-uri' require 'nokogiri' class FxInfoReader::LionFxClient def get_swap_point_list() charset = nil html = open("http://hirose-fx.co.jp/index.php?aid=Sw_Lion") do |f| charset = f.charset f.rea...
July1921/go-zero
core/utils/uuid.go
<reponame>July1921/go-zero package utils import "github.com/google/uuid" // NewUuid returns a uuid string. func NewUuid() string { return uuid.New().String() }
ZXVentures/brewgorithm_devkit
tests/language/test/test_cleaning.py
<gh_stars>1-10 import unittest import brewgorithm clean_word = brewgorithm.language.cleaning.clean_word filter_nulls = brewgorithm.language.cleaning.filter_nulls class TestCleaning(unittest.TestCase): """Test the cleaning functions.""" def test_clean_word(self): """Test that a word gets cleaned.""" word...