repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
sandrozbinden/hackerrank
src/algorithm/Quicksort1Partition.java
/* ============================================================================ * Copyright (c) 2015 Imagic Bildverarbeitung AG, CH-8152 Glattbrugg. * All rights reserved. * * http://www.imagic.ch/ * ============================================================================ */ package algorithm; impor...
build-test-conflicts/dynjs
src/main/java/org/dynjs/ir/Builder.java
<reponame>build-test-conflicts/dynjs /* * Copyright 2014 JBoss 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-2.0 * * Unless req...
ISCDtoolbox/FaciLe
projects/morphing/src/solve.c
<reponame>ISCDtoolbox/FaciLe #include "sparse.h" #define CS_EPSD 1.0e-30 #define CS_EPSD2 1.0e-200 #define CS_KRYL 100 #define CS_KRY1 CS_KRYL*(CS_KRYL+3) / 2 #define CS_OMEGA 1.2 /* >1 to speed up convergence of slow-converging process */ /* SSOR preconditioner to solve (L*d*L^t)x = b * input: L=A...
svendahlstrand/indiekit
packages/endpoint-micropub/tests/integration/202-action-delete.js
<gh_stars>0 import 'dotenv/config.js'; // eslint-disable-line import/no-unassigned-import import test from 'ava'; import nock from 'nock'; import {server} from '@indiekit-test/server'; test('Deletes post', async t => { nock('https://tokens.indieauth.com') .get('/token') .twice() .reply(200, { me: p...
nmdis1999/LintCode-1
0050-Product of Array Exclude Itself/0050-Product of Array Exclude Itself.cpp
<filename>0050-Product of Array Exclude Itself/0050-Product of Array Exclude Itself.cpp<gh_stars>10-100 class Solution { public: /** * @param A: Given an integers array A * @return: A long long array B and B[i]= A[0] * ... * A[i-1] * A[i+1] * ... * A[n-1] */ vector<long long> productExcludeItself...
zhiyaluo/LongUI
include/text/ui_attribute.h
<filename>include/text/ui_attribute.h #pragma once #include <cstdint> #include <core/ui_core_type.h> // ui namespace namespace LongUI{ /// <summary> /// text-align /// </summary> enum AttributeTextAlign : uint8_t { TAlign_Start = 0, TAlign_End, TAlign_Center, TAlign_Ju...
Vizzuality/aqueduct-flood
src/components/widgets/specs/risk/benchmark.js
export default { "$schema": "https://vega.github.io/schema/vega/v4.json", "autosize": { "type": "fit", "resize": true, "contains": "padding" }, "height": 200, "signals": [ { "name": "Year", "value": "2010", "bind": { "name":"Year", "input": "radio", "o...
raiyanla/compute-runtime
opencl/test/unit_test/os_interface/linux/driver_info_tests.cpp
<reponame>raiyanla/compute-runtime /* * Copyright (C) 2017-2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "opencl/source/device/driver_info.h" #include "gtest/gtest.h" #include <memory> #include <string> namespace NEO { TEST(DriverInfo, GivenCreateDriverInfoWhenLinuxThenReturnNewInstanc...
Apanatshka/spoofax-pie
core/tego.runtime/src/test/java/mb/tego/strategies/PrintableStrategyTests.java
<reponame>Apanatshka/spoofax-pie package mb.tego.strategies; import mb.tego.sequences.InterruptibleBiConsumer; import mb.tego.sequences.InterruptibleBiFunction; import mb.tego.sequences.InterruptibleBiPredicate; import mb.tego.sequences.InterruptibleConsumer; import mb.tego.sequences.InterruptibleFunction; import mb.t...
vvaltchev/experimentOs
include/tilck/kernel/fs/vfs_base.h
<reponame>vvaltchev/experimentOs /* SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include <tilck/common/basic_defs.h> #include <tilck/common/atomics.h> #include <tilck/kernel/list.h> #include <tilck/kernel/hal_types.h> /* Forward declarations */ struct process; struct user_mapping; struct fs_ops; struct loc...
337240552/opencore-amr-iOS
opencore/codecs_v2/audio/gsm_amr/amr_nb/common/src/shr.cpp
<reponame>337240552/opencore-amr-iOS<filename>opencore/codecs_v2/audio/gsm_amr/amr_nb/common/src/shr.cpp /* ------------------------------------------------------------------ * Copyright (C) 1998-2009 PacketVideo * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except ...
VivXwan/LeetCodeSolutions
Java/ShuffleString.java
<gh_stars>100-1000 /* Source: https://leetcode.com/problems/shuffle-string/ Time: O(n), maximum number of possible iterations is 2 * n, so O(2n) ~ O(n) Space: O(n), not in-place as we need a char array of size equal to the length of the provided string */ class Solution { public String restoreString(String s, int...
kieferca/qualm
Teilimplementierungen_QUALM/Trainingsdatenselektion/src/Prototype/src/main/java/studienarbeit/prototype/InputOutput.java
package studienarbeit.prototype; import java.io.File; import java.io.FileNotFoundException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Scanner; import org.apache.commons.io.FilenameUtils; import org.apache.uima.UIMAException; import org...
arnoldlankamp/parser
src/test/java/gtd/tests/SplitAndMerge3.java
<reponame>arnoldlankamp/parser package gtd.tests; import gtd.Parser; import gtd.generator.FromClassGenerator; import gtd.generator.ParserStructure; import gtd.grammar.structure.Alternative; import gtd.grammar.symbols.Char; import gtd.grammar.symbols.Sort; import gtd.result.AbstractNode; /* S ::= A | C A ::= Ba | a B ...
docwhat/networktest
vendor/github.com/docker/swarmkit/agent/exec/executor.go
package exec import ( "github.com/docker/swarmkit/api" "golang.org/x/net/context" ) // Executor provides controllers for tasks. type Executor interface { // Describe returns the underlying node description. Describe(ctx context.Context) (*api.NodeDescription, error) // Configure uses the node object state to pr...
jaguiar/customer-api
customer-java-resttemplate/src/main/java/com/prez/db/CustomerPreferencesRepository.java
<reponame>jaguiar/customer-api package com.prez.db; import com.prez.model.CustomerPreferences; import java.util.List; import org.springframework.data.mongodb.repository.MongoRepository; public interface CustomerPreferencesRepository extends MongoRepository<CustomerPreferences, String> { List<CustomerPreferences> fi...
stwalking/wind-im
windchat-storage/src/main/java/com/windchat/im/storage/api/IPluginDao.java
package com.windchat.im.storage.api; import java.sql.SQLException; import java.util.List; import com.windchat.im.storage.bean.PluginBean; public interface IPluginDao { public boolean addPlugin(PluginBean bean) throws SQLException; public boolean updatePlugin(PluginBean bean) throws SQLException; public boolean...
best08618/asylo
gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/libstdc++-prettyprinters/debug_cxx11.cc
<gh_stars>1-10 // { dg-do run { target c++11 } } // { dg-options "-g -O0" } // { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PROFILE" } } // Copyright (C) 2016-2017 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it u...
resaba-kaypee/reactjs-realhomes
client/src/components/PropertyDetails/Mortgage/MortgageCalculator.js
<reponame>resaba-kaypee/reactjs-realhomes import React, { useEffect, useState } from "react"; const MortgageCalculator = ({ price = 0 }) => { const [settings, setSettings] = useState({ currencysym: "$", currency: "Dollars", termtype: "years", // years or months term: 30, principal: price, dpt...
brumm/tako
src/components/styled.js
import styled from 'styled-components' export const Table = styled.div(({ singleColumn }) => ({ display: 'grid', gridTemplateColumns: singleColumn ? '1fr' : 'minmax(300px, auto) minmax(0, 1fr) 150px', gridAutoRows: 37, width: singleColumn && 300, position: 'relative', })) export const Cell = styled....
06needhamt/intellij-community
json/tests/test/com/jetbrains/jsonSchema/remote/JsonSchemaCatalogManagerTest.java
<gh_stars>0 // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.jetbrains.jsonSchema.remote; import com.intellij.openapi.vfs.LocalFileSystem; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.testFramewo...
bsmsnd/LeetCode-CharlieChen
1103.distribute-candies-to-people.cpp
<reponame>bsmsnd/LeetCode-CharlieChen<filename>1103.distribute-candies-to-people.cpp /* * @lc app=leetcode id=1103 lang=cpp * * [1103] Distribute Candies to People */ // @lc code=start class Solution { public: vector<int> distributeCandies(int candies, int num_people) { int l = 1, r = sqrt(2 * candies)...
bfsgr/insomnia
packages/insomnia-app/app/ui/components/proto-file/proto-file-list-item.js
// @flow import * as React from 'react'; import type { ProtoFile } from '../../../models/proto-file'; import type { DeleteProtoFileHandler, RenameProtoFileHandler, SelectProtoFileHandler, UpdateProtoFileHandler, } from './proto-file-list'; import { Button, AsyncButton } from 'insomnia-components'; import Editab...
lucteo/concore
src/include/concore/data/concurrent_dequeue.hpp
<filename>src/include/concore/data/concurrent_dequeue.hpp /** * @file concurrent_dequeue.hpp * @brief Definition of @ref concore::v1::concurrent_dequeue "concurrent_dequeue" * * @see @ref concore::v1::concurrent_dequeue "concurrent_dequeue" */ #pragma once #include "concore/low_level/spin_backoff.hpp" #...
karkason/pywinsandbox
winsandbox/utils/errors.py
_WINDOWS_SANDBOX_ARTICLE_LINK = "https://techcommunity.microsoft.com/t5/windows-kernel-internals/windows-sandbox" \ "/ba-p/301849" class SandboxFeatureIsNotAvailableError(RuntimeError): """ Raised when failed getting any information about the windows sandbox feature. """ ...
johnmous/sfaira
sfaira/unit_tests/tests_by_submodule/data/dataset/test_meta_data_streamlining.py
import os import anndata import pytest from sfaira.unit_tests.data_for_tests.loaders import RELEASE_HUMAN, PrepareData from sfaira.unit_tests.directories import DIR_TEMP @pytest.mark.parametrize("out_format", ["sfaira", "cellxgene"]) @pytest.mark.parametrize("clean_obs", [True, False]) @pytest.mark.parametrize("cle...
pmp163/danbooru
app/logical/moderator/dashboard/queries/post_appeal.rb
module Moderator module Dashboard module Queries class PostAppeal attr_reader :post, :count def self.all(min_date) sql = <<-EOS SELECT post_appeals.post_id, count(*) FROM post_appeals JOIN posts ON posts.id = post_appeals.post_id WHE...
elastisys/scale.commons
json/src/test/java/com/elastisys/scale/commons/json/SomeNestedClass.java
package com.elastisys.scale.commons.json; import java.util.Map; import java.util.Objects; import org.joda.time.DateTime; public class SomeNestedClass { private final int primitiveValue; private final String string; private final Map<String, DateTime> timestamps; private final SomeClassWithTimestamp n...
nakamura5akihito/opensec-oval
src/main/java/io/opensec/oval/model/windows/MetabaseItem.java
/** * Opensec OVAL - https://nakamura5akihito.github.io/ * Copyright (C) 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....
NuclearManD/NTIOS_2.0
platforms/atmega328/platform.h
#ifndef PLATFORM_H #define PLATFORM_H #include "drv_uart/drv_uart.cpp" #include "drv_gpio/drv_gpio.cpp" extern int entry(void); int main(void); #endif
menty44/tutorials
testing-modules/testing-libraries/src/test/java/com/baeldung/cucumberbackground/books/BookStoreRunSteps.java
package com.baeldung.cucumberbackground.books; import io.cucumber.datatable.DataTable; import io.cucumber.java.Before; import io.cucumber.java.en.Given; import io.cucumber.java.en.Then; import io.cucumber.java.en.When; import java.util.ArrayList; import java.util.List; import static org.junit.Assert.*; public class...
seakers/ExtUtils
dakota-6.3.0.Windows.x86/include/Teuchos_LAPACK.hpp
<reponame>seakers/ExtUtils // @HEADER // *********************************************************************** // // Teuchos: Common Tools Package // Copyright (2004) Sandia Corporation // // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive // license for use of t...
azhirnov/AE
engine_tools/res_pack/pipeline_compiler/Public/PipelinePackSerializer.cpp
// Copyright (c) 2018-2020, <NAME>. For more information see 'LICENSE' #include "PipelinePack.h" #include "PipelinePackHash.h" #include "serializing/Serializer.h" #include "serializing/ObjectFactory.h" #include "stl/Algorithms/StringUtils.h" namespace AE::PipelineCompiler { /* ======================================...
iplo/Chain
chrome/android/javatests/src/org/chromium/chrome/browser/ShortcutHelperTest.java
<reponame>iplo/Chain // Copyright 2013 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. package org.chromium.chrome.browser; import android.content.Intent; import android.test.FlakyTest; import org.chromium.base.test.ut...
jeff5/jython-whinchat
tests/java/org/python/compiler/custom_proxymaker/CustomAnnotation.java
<reponame>jeff5/jython-whinchat package org.python.compiler.custom_proxymaker; /** * This Annotation contains most of the possible annotation fields, * used to test the annotation part of custom proxymaker */ import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotati...
zhangkn/iOS14Header
Applications/Setup/BuddyExpressRestoreController.h
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import "BuddyWelcomeController.h" #import "BYEnvironmentDependencyReceiver-Protocol.h" @class BuddyInternalSkipInfoProvider, MBManager, NSDateFormatte...
incodehq/incode-examples
module-examples/communications/dom/src/main/java/org/incode/example/communications/dom/impl/commchannel/CommunicationChannelOwner_communicationChannelTitlesAbstract.java
package org.incode.example.communications.dom.impl.commchannel; import javax.inject.Inject; import org.apache.isis.applib.annotation.Action; import org.apache.isis.applib.annotation.ActionLayout; import org.apache.isis.applib.annotation.Contributed; import org.apache.isis.applib.annotation.Property; import org.apache...
gv2011/util-apis
src/main/java/com/github/gv2011/util/uc/UStrBuilderImp.java
package com.github.gv2011.util.uc; /*- * #%L * The MIT License (MIT) * %% * Copyright (C) 2016 - 2018 Vinz (https://github.com/gv2011) * %% * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * ...
manstis/mapper-xml
api/src/main/java/org/treblereel/gwt/xml/mapper/api/deser/array/PrimitiveLongArrayXMLDeserializer.java
/* * Copyright 2013 <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 law or agreed to in wr...
CrazyForks/turms
turms-server-common/src/main/java/im/turms/server/common/property/env/service/business/StorageProperties.java
<gh_stars>1000+ /* * Copyright (C) 2019 The Turms Project * https://github.com/turms-im/turms * * 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/L...
herrerameri/rns-manager-react
src/app/containers/metamask/MetamaskFormContainer.js
import { MetamaskFormComponent } from '../../components'; import { start } from '../../auth' import { connect } from 'react-redux'; const mapStateToProps = state => ({ enabled: state.auth.address }) const mapDispatchToProps = (dispatch, ownProps) => ({ startAndSubmit: () => dispatch(start(ownProps.onSubmit)) }); ...
leeonky/bean-util
src/main/java/com/github/leeonky/util/NoSuchAccessorException.java
<reponame>leeonky/bean-util package com.github.leeonky.util; public class NoSuchAccessorException extends IllegalArgumentException { public NoSuchAccessorException(String message) { super(message); } }
vaijira/geode-native
cppcache/src/AdminRegion.hpp
<reponame>vaijira/geode-native /* * 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...
tfsservice18/Test
view/src/tools/mockResponse.js
/** * Returns a mock response from server * @param {integer} status - Status server code * @param {string} statusText - Server text * @param {string} response - Server return in strings * @returns Response object */ export default (status, statusText, response) => new window.Response(response, { status, ...
Thorsten-Geppert/Warehouse
src/modules/warehouse/TextEditDialog.cpp
#include "TextEditDialog.h" #include "Configuration.h" #include "PrintPreviewDialog.h" #include "YesNoDialog.h" #include "resources/images/WarehouseIcon.xpm" #include <DSFile.h> #include <wx/clipbrd.h> BEGIN_EVENT_TABLE(TextEditDialog, wxDialog) EVT_CLOSE(TextEditDialog::OnClose) EVT_MENU(SAVE_EVENT, TextEditDialog:...
felipesqf/BEGINNER-CHALLENGES-Back-End-Javascript
node_modules/@polkadot/types/codec/Map.spec.js
"use strict"; var _create = require("../create"); var _primitive = require("../primitive"); var _ = require("."); // Copyright 2017-2020 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 const registry = new _create.TypeRegistry(); const mockU32TextMap = new Map(); mockU32TextMap.set(new...
u5surf/keptn
cli/cmd/auth.go
package cmd import ( "bytes" "encoding/base64" "errors" "fmt" "net" "net/url" "strings" "time" "github.com/keptn/keptn/cli/pkg/credentialmanager" apiutils "github.com/keptn/go-utils/pkg/api/utils" "github.com/keptn/keptn/cli/pkg/logging" keptnutils "github.com/keptn/kubernetes-utils/pkg" "github.com/spf...
Jefro/open-smart-grid-platform
osgp/platform/osgp-adapter-domain-smartmetering/src/test/java/org/opensmartgridplatform/adapter/domain/smartmetering/application/services/AlarmNotificationsMappingTest.java
/** * Copyright 2014-2016 Smart Society Services B.V. * * 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 */ package org.opensmartgridplatfo...
gxrwes/MCRPGSERVER
MinecraftServer/work/decompile-e0c6d16a/net/minecraft/world/level/block/BlockLadder.java
<reponame>gxrwes/MCRPGSERVER package net.minecraft.world.level.block; import javax.annotation.Nullable; import net.minecraft.core.BlockPosition; import net.minecraft.core.EnumDirection; import net.minecraft.world.item.context.BlockActionContext; import net.minecraft.world.level.GeneratorAccess; import net.minecraft.wo...
BernardTsai/solar
src/tsai.eu/solar/model/event_test.go
<reponame>BernardTsai/solar package model import ( "testing" "os" ) //------------------------------------------------------------------------------ // TestEvent01 tests the basic functions of the event package. func TestEvent01(t *testing.T) { filename := "test.yaml" // cleanup routine defer func() {os.Remov...
phuongnd-relipa/religram-api
src/main/java/com/relipa/religram/entity/ResetPasswordToken.java
/* * Copyright (c) 2019. Relipa Software - 株式会社レリパ */ package com.relipa.religram.entity; import javax.persistence.*; import java.io.Serializable; @Entity @Table(name="reset_password") public class ResetPasswordToken extends AbstractAuditableEntity<Long> implements Serializable { @OneToOne @JoinColumn(nam...
deep-1/haiku
src/add-ons/print/drivers/pdf/source/PageSetupWindow.h
/* PDF Writer printer driver. Copyright (c) 2001 OpenBeOS. Authors: <NAME> <NAME> <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the...
cctiger36/batch_manager
lib/generators/batch/batch_generator.rb
require 'rails/generators' require 'rails/generators/named_base' module Rails module Generators class BatchGenerator < NamedBase desc "Generates batch file" def self.orm Rails::Generators.options[:rails][:orm] || :active_record end def self.source_root File.join(File.di...
MartinTschechne/ASL-hdbscan
src/hdbscan/cluster.cpp
#include <hdbscan/cluster.h> #include <float.h> #include <stdexcept> Cluster* CreateCluster(size_t label, Cluster* parent, double birth_level, size_t num_points) { Cluster* new_cluster = (Cluster*)malloc(sizeof(Cluster)); new_cluster->label = label; new_cluster->birth_level = birth_level; new_cluster-...
krayz-clous/Discord.js-v13-bot-with-dashboard
src/database/mongo.js
const mongoose = require("mongoose"); const { MONGO_CONNECTION } = require("@root/config"); mongoose.plugin(require("mongoose-lean-defaults").default); module.exports = async () => { await mongoose.connect(MONGO_CONNECTION, { keepAlive: true, useNewUrlParser: true, useUnifiedTopology: true, useFindAn...
xwheel/x-monitor
commons/src/main/java/com/xwheel/xmonitor/commons/beans/Page.java
package com.xwheel.xmonitor.commons.beans; import org.apache.commons.lang3.StringUtils; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * @description: 通用的分页对象 */ public class Page<T> implements Serializable { //------------------公共变量----------------// public static f...
paradoxnj/Genesis3D
source/GTest/Procedurals/fire.h
#ifndef FireProcedural_H #define FireProcedural_H #include "procedural.h" Procedural_Table * Fire_GetProcedural_Table(void); #endif
indutny/vowlink-electron
src/pages/SignIn.js
import React, { useState } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { initNetwork, eraseNetwork, networkError } from '../redux/actions'; import './SignIn.css'; const MAX_DECRYPT_ATTEMPTS = 3; const SignIn = ({ network, initNetwork, eraseNetwork }) => { const ...
bdunne/miq_bot
lib/bot/githubapi/user.rb
<reponame>bdunne/miq_bot require_relative 'git_hub_api' module GitHubApi class User attr_accessor :username, :password, :client def initialize end def find_organization(organization_name) octokit_org = GitHubApi.execute(@client, :organization, organization_name) @organization = Organiz...
qianfei11/zstack
plugin/nfsPrimaryStorage/src/main/java/org/zstack/storage/primary/nfs/NfsSystemTags.java
package org.zstack.storage.primary.nfs; import org.zstack.header.storage.primary.PrimaryStorageVO; import org.zstack.header.tag.TagDefinition; import org.zstack.tag.PatternedSystemTag; /** * Created by xing5 on 2016/4/10. */ @TagDefinition public class NfsSystemTags { public static String MOUNT_OPTIONS_TOKEN = ...
DanPopa46/neo-mamba
neo3/contracts/native/nameservice.py
from __future__ import annotations import re import struct import ipaddress from enum import IntEnum from .nonfungible import NFTState, NonFungibleToken from . import register from typing import Optional, Iterator, Tuple from neo3 import contracts, storage, vm from neo3.core import serialization, types class RecordTy...
sniperkit/colly
plugins/data/aggregate/rss/content/article_test.go
package content_test import ( "testing" "github.com/urandom/readeef/content" ) func TestArticle_Validate(t *testing.T) { type fields struct { ID content.ArticleID FeedID content.FeedID Link string } tests := []struct { name string fields fields wantErr bool }{ {"valid", fields{ID: 1, Fe...
bestzy6/kiekerSQL
kieker-analysis/test/kieker/analysis/model/AbstractModelAssemblerTest.java
/*************************************************************************** * Copyright 2021 Kieker Project (http://kieker-monitoring.net) * * 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 a...
gradle-update/data-transfer-project
portability-spi-transfer/src/main/java/org/datatransferproject/spi/transfer/types/CopyExceptionWithFailureReason.java
package org.datatransferproject.spi.transfer.types; import javax.annotation.Nonnull; /** * These exceptions can be thrown during a copy and should be caught by the JobProcessor which will * then add the failure reason to the job. */ public abstract class CopyExceptionWithFailureReason extends CopyException { pu...
JeremyShin/ActualReturnCalculator
ARC/src/main/java/my/examples/arc/servlet/ArcGoodsAdd.java
package my.examples.arc.servlet; import my.examples.arc.dao.ArcDAO; import my.examples.arc.dto.ArcGdsAddDTO; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; i...
mumrah/castle
src/main/java/io/confluent/castle/cluster/CastleNode.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may n...
DiegoEliasCosta/gs-collections
collections-api/src/main/java/com/gs/collections/api/map/sorted/ImmutableSortedMap.java
/* * 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 law or agreed to in w...
tsuruclient/tsuru
src/core/alloc/mstdn_streaming_data.js
// @flow import {Mastodon} from '../Services'; import Content from '../value/Content'; import Event from '../value/Event'; import type {allocatedObject} from "./allocatedObjectType"; import createAllocatedObject from "./createAllocatedObject"; const mentionOrEvent = (payload: Object) => { console.log(payload); ...
JavaSaBr/jmonkey-builder
src/main/java/com/ss/editor/util/EditorUtil.java
package com.ss.editor.util; import static com.ss.rlib.common.util.ClassUtils.cast; import static com.ss.rlib.common.util.ClassUtils.unsafeCast; import static com.ss.rlib.common.util.ObjectUtils.notNull; import static java.lang.Math.acos; import static java.lang.Math.toDegrees; import static java.lang.ThreadLocal.withI...
yonetatuu/kamonohashi
web-pages/src/icon/kqi-notebook.js
import Icon from 'vue-awesome/components/Icon' import 'vue-awesome/icons/book' Icon.register({ 'pl-notebook': Icon.icons['book'], })
sarang-apps/darshan_browser
components/signin/core/browser/dice_account_reconcilor_delegate_unittest.cc
// Copyright 2017 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. #include "components/signin/core/browser/dice_account_reconcilor_delegate.h" #include <vector> #include "components/prefs/pref_registry_simple.h" #inclu...
ilscipio/erp
framework/base/src/com/ilscipio/scipio/ce/util/servlet/ServletMapEntryAdapters.java
package com.ilscipio.scipio.ce.util.servlet; import java.util.Map; import javax.servlet.ServletContext; import javax.servlet.ServletRequest; import javax.servlet.http.HttpSession; import com.ilscipio.scipio.ce.util.collections.MapEntryAdapter; /** * Servlet API adapters for the {@link com.ilscipio.scipio.ce.util.c...
gpaganini/PadroesdeProjetos
TemplateMethod/src/com/company/Shelf.java
package com.company; import java.util.ArrayList; public class Shelf { protected ArrayList<Ebook> biblioteca; protected TemplateOrdenador ordenador; public Shelf(OrdemDeLeitura ordem) { biblioteca = new ArrayList<Ebook>(); switch (ordem) { case porAno: ordenador...
jstokes/secure-data-service
sli/admin-tools/admin-rails/app/models/admin_delegation.rb
<filename>sli/admin-tools/admin-rails/app/models/admin_delegation.rb class AdminDelegation < SessionResource self.site = APP_CONFIG['api_base'] self.collection_name = 'adminDelegation' schema do string 'localEdOrgId' boolean 'viewSecurityEventsEnabled' end end
MicrochipTech/aws-iot-winc1500-secure-wifi-board-included-source-files
mcu-firmware/saml21g18b_sensor_board_demo/src/cryptoauthlib/docs/html/a00131.js
<filename>mcu-firmware/saml21g18b_sensor_board_demo/src/cryptoauthlib/docs/html/a00131.js var a00131 = [ [ "atcab_random", "a00427.html#ga4fa442396dfbb89e59dfca837b565cec", null ] ];
liuzikai/klc3
test/Feature/IsSymbolic.c
// RUN: %clang %s -emit-llvm %O0opt -c -o %t1.bc // RUN: rm -rf %t.klee-out // RUN: %klee --output-dir=%t.klee-out %t1.bc #include <assert.h> int main() { int x, y, z = 0; klee_make_symbolic(&x, sizeof x, "x"); klee_make_symbolic(&y, sizeof y, "y"); if (x) { assert(klee_is_symbolic(y)); } else { ass...
EnglishLesson/dc_procxls
model/tkeyword.rb
<reponame>EnglishLesson/dc_procxls<filename>model/tkeyword.rb require_relative 'entity' class TKeywordModel < Entity def getName @name end def setName(name) @name = name end def to_s return "(code, name)" end end
JLLeitschuh/TIPL
spark/src/main/scala/tipl/spark/DTImgOps.scala
<filename>spark/src/main/scala/tipl/spark/DTImgOps.scala /** * */ package tipl.spark import org.apache.spark.SparkContext._ import org.apache.spark.api.java.JavaPairRDD import org.apache.spark.rdd.RDD import tipl.formats.TImgRO import tipl.spark.DSImg.D3IntSlicePartitioner import tipl.tools.BaseTIPLPluginIn import t...
icyerasor/rome-modules
src/main/java/com/rometools/modules/sle/SortStrategy.java
<reponame>icyerasor/rome-modules package com.rometools.modules.sle; import com.rometools.modules.sle.io.ModuleParser; import com.rometools.modules.sle.types.EntryValue; import com.rometools.modules.sle.types.Sort; import com.rometools.rome.feed.module.Extendable; class SortStrategy implements ValueStrategy { ...
MarkStega/CQC
Source/AllProjects/CQCWebSrv/Client/CQCWebSrvC_CMLWSockBaseClass_.hpp
// // FILE NAME: CQCKit_CMLWSockBaseClass_.hpp // // AUTHOR: <NAME> // // CREATED: 09/17/2014 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2020 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (<NAME>.) It is licensed under the MIT Open Source // license: // // https://opensou...
Fabian95qw/SF-Modulefunctions
src/letsencrypt/authorization/TriggerChallenge.java
package si.module.letsencryptv3.authorization; import org.apache.commons.logging.Log; import org.shredzone.acme4j.Status; import org.shredzone.acme4j.challenge.Dns01Challenge; import org.shredzone.acme4j.challenge.Http01Challenge; import org.shredzone.acme4j.exception.AcmeServerException; import de.starface.core.comp...
AntoniosKalattas/Ping_rep
gui/node_modules/lodash/_isLaziable.js
version https://git-lfs.github.com/spec/v1 oid sha256:6863f63c866527fb17eba2b8abd81f04cdde2057c76201f3ac190494d319bd33 size 712
akrosinc/opensrp-client-core
opensrp-app/src/test/java/org/smartregister/repository/FormsVersionRepositoryTest.java
<filename>opensrp-app/src/test/java/org/smartregister/repository/FormsVersionRepositoryTest.java package org.smartregister.repository; import android.content.ContentValues; import junit.framework.Assert; import net.sqlcipher.MatrixCursor; import net.sqlcipher.database.SQLiteDatabase; import org.junit.Before; import...
kStoykow/Technology-Fundamentals-with-JS
Lab/Data-Types-and-Variables/01-concatenateNames.js
function printNames(firstName, secondName, delimiter) { return `${firstName}${delimiter}${secondName}`; }
Gouzhong1223/Dubhe
dubhe-server/dubhe-data/src/main/java/org/dubhe/data/course/domain/dto/CourseUpdateDTO.java
<reponame>Gouzhong1223/Dubhe package org.dubhe.data.course.domain.dto; import lombok.AllArgsConstructor; import lombok.Data; import javax.validation.constraints.NotNull; /** * @Author : Gouzhong * @Blog : www.gouzhong1223.com * @Description : * @Date : create by QingSong in 2021-12-05 21:10 * @Email : <EMAIL> ...
joevansteen/AF-WP-Plugin-Core
af-wp-plugin/public/js/afX3D/pocGames/AF_SpaceVis_110_Canvas_and_MPG/server.js
//npm install -g connect //npm install -g socket.io var http = require('http'); var server = http.createServer(); server.on('request', function(req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.write('Hello World!'); res.end(); }); server.listen(4000);
cr0wbar/bananarama
bananarama-core/src/main/java/org/bananarama/util/StringUtils.java
/* * Copyright 2016 BananaRama. * * 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 t...
frhumanes/consulting
web/src/illness/forms.py
<reponame>frhumanes/consulting # -*- encoding: utf-8 -*- from django import forms from django.utils.translation import ugettext_lazy as _ from cal.models import Appointment from illness.models import Illness from userprofile.models import Profile class IllnessSelectionForm(forms.Form): def __init__(self, *args, ...
leonardocouy/accent
webapp/app/pods/components/phoenix-channel-listener/component.js
<gh_stars>0 import {inject as service} from '@ember/service'; import Component from '@ember/component'; export default Component.extend({ session: service(), phoenix: service(), init() { this._super(...arguments); if (!this.session.credentials.isAuthenticated || !this.project) return; const phoeni...
zeesh49/tutorials
spring-all/src/test/java/org/baeldung/spring43/defaultmethods/ITransactionalUnitTest.java
<reponame>zeesh49/tutorials package org.baeldung.spring43.defaultmethods; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.test.context.transaction.AfterTransaction; import org.springframework.test.context.transaction.BeforeTransaction; public interface ITransactionalUnitTest { ...
joywa/graph-notebook
test/integration/DataDrivenSparqlTest.py
<filename>test/integration/DataDrivenSparqlTest.py """ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 """ import logging from graph_notebook.authentication.iam_credentials_provider.credentials_factory import IAMAuthCredentialsProvider from graph_notebook.seed.lo...
wenfeifei/miniblink49
third_party/npapi/npspy/extern/nspr/prvrsion.h
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* * The contents of this file are subject to the Mozilla Public * License Version 1.1 (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.mozilla.org...
buddhika75/hims
src/main/java/com/divudi/bean/common/CreditCompanyDueController.java
<filename>src/main/java/com/divudi/bean/common/CreditCompanyDueController.java /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.divudi.bean.common; import com.divudi.data.BillType; import com.divudi.data.PaymentMethod; import com.divudi.data.dataStructure....
xaviergthiago/NetBeansProjects
Aula_2020_05_25_Noite/src/aula_2020_05_25_noite/Vetor4.java
<filename>Aula_2020_05_25_Noite/src/aula_2020_05_25_noite/Vetor4.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 aula_2020_05_25_noite; /** * * @author sicsu */ publi...
Biocodr/TomP2P
benchmark/src/main/java/net/tomp2p/Server.java
package net.tomp2p; import java.io.IOException; import java.util.Scanner; import net.tomp2p.p2p.Peer; import net.tomp2p.peers.PeerAddress; import net.tomp2p.utils.InteropRandom; public class Server { public static void setup() throws InterruptedException, IOException { Peer server = null; try ...
redhat-openstack/manila
manila/tests/integrated/test_extensions.py
<gh_stars>1-10 # Copyright 2011 <NAME> # 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 req...
sstromick/financial-app
resources/js/store/modules/creditAccounts/actions.js
<filename>resources/js/store/modules/creditAccounts/actions.js import api from "@/api"; const getCreditAccounts = context => { api.getUrl(context, "/api/credit-accounts", "CREDIT_ACCOUNTS_UPDATED"); }; const getCreditAccount = context => { api.getUrl(context, "/api/credit-account", "CREDIT_ACCOUNT_UPDATED"); ...
EstevaoNaval/URI_repository
solutions/tier_03/python/uri_1241_encaixa_ou_nao_ii.py
<gh_stars>0 # -*- coding: utf-8 -*- qntCasos = int(input()) for indiceCaso in range(qntCasos): listInputNum = list(map(str, input().split())) print("encaixa" if listInputNum[0][len(listInputNum[0]) - len(listInputNum[1]):] == listInputNum[1] else "nao encaixa")
Superomeg4/pyleecan
Methods/Machine/LamSlotWind/comp_volumes.py
<filename>Methods/Machine/LamSlotWind/comp_volumes.py # -*- coding: utf-8 -*- """@package Methods.Machine.LamSlotWind.comp_volumes Lamination with winding computation of all volumes method @date Created on Mon Jan 12 17:09:42 2015 @copyright (C) 2015-2016 EOMYS ENGINEERING. @author pierre_b """ from numpy import pi fr...
rohankumardubey/Android-demo-app
Chapter5_Sample_Earthquake/src/com/paad/earthquake/Earthquake.java
<gh_stars>0 package com.paad.earthquake; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; ...