repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
player1537-forks/spack
var/spack/repos/builtin/packages/r-bslib/package.py
<reponame>player1537-forks/spack # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RBslib(RPackage): """Custom 'Bootstrap' 'Sass' Themes for...
atosorigin/blueprint-fabric8
sandbox/fabric/fabric-api/src/main/java/io/fabric8/api/jmx/MetaTypeSummaryDTO.java
/** * Copyright 2005-2014 Red Hat, Inc. * * Red Hat licenses this file to you 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 r...
tli-group-4-grimm/backend
src/main/java/entities/LoanDataFactory.java
<gh_stars>1-10 // layer: usecases package entities; import attributes.ArrayAttribute; import attributes.Attribute; import attributes.AttributeMap; import constants.EntityStringNames; import constants.Exceptions; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; publi...
yunjaena/android_study
RxJavaJason/src/main/java/com/itvillage/chapter05/chapter0503/Searcher.java
package com.itvillage.chapter05.chapter0503; import java.util.*; public class Searcher { public Map<String, List<String>> map = new HashMap<>(); { map.put("M", Arrays.asList("Macau", "Malaysia", "Maldives", "Mexico", "Myanmar", "Macedonia")); map.put("Ma", Arrays.asList("Macau", "Malaysia", "...
aramk/react-cosmos
packages/react-cosmos-shared/index.js
// @flow exports.importModule = require('./dist/import-module').importModule; exports.splitUnserializableParts = require('./dist/unserializable-parts').splitUnserializableParts; exports.getOldSchoolFixturesFromNewStyleComponents = require('./dist/fixtures-format').getOldSchoolFixturesFromNewStyleComponents; exports.ge...
ScalablyTyped/SlinkyTyped
a/aws-sdk/src/main/scala/typingsSlinky/awsSdk/ssoadminMod/AttachedManagedPolicy.scala
package typingsSlinky.awsSdk.ssoadminMod import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait AttachedManagedPolicy extends StObject { /** * The ARN of the...
openid-certification/-conformance-suite
src/main/java/net/openid/conformance/condition/client/CreateRandomEndSessionState.java
package net.openid.conformance.condition.client; import net.openid.conformance.condition.AbstractCondition; import net.openid.conformance.condition.PostEnvironment; import net.openid.conformance.condition.util.RFC6749AppendixASyntaxUtils; import net.openid.conformance.testmodule.Environment; public class CreateRandom...
syfxlin/xkjava
xkjava-framework/src/main/java/me/ixk/framework/exception/WebSocketException.java
package me.ixk.framework.exception; /** * @author <NAME> * @date 2021/2/22 下午 9:37 */ public class WebSocketException extends Exception { public WebSocketException() { super(); } public WebSocketException(String message) { super(message); } public WebSocketException(String mes...
wm28/main
src/main/java/seedu/address/ui/ResultDisplay.java
<filename>src/main/java/seedu/address/ui/ResultDisplay.java package seedu.address.ui; import java.util.logging.Logger; import com.google.common.eventbus.Subscribe; import javafx.application.Platform; import javafx.beans.property.SimpleStringProperty; import javafx.beans.property.StringProperty; import javafx.collect...
zyj-nanjing/SmartCloud
SmartCloud-client/src/main/java/www/bwsensing/com/device/dto/command/AlertParamSaveCmd.java
<reponame>zyj-nanjing/SmartCloud<filename>SmartCloud-client/src/main/java/www/bwsensing/com/device/dto/command/AlertParamSaveCmd.java<gh_stars>0 package www.bwsensing.com.device.dto.command; import lombok.Data; import java.util.List; import com.alibaba.cola.dto.Command; import javax.validation.Valid; import javax.vali...
wangcy6/weekly_read
code_reading/oceanbase-master/src/sql/engine/expr/ob_expr_oracle_decode.h
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
shans/arcs
runtime/strategies/map-slots.js
<filename>runtime/strategies/map-slots.js // Copyright (c) 2017 Google Inc. All rights reserved. // This code may only be used under the BSD style license found at // http://polymer.github.io/LICENSE.txt // Code distributed by Google as part of this project is also // subject to an additional IP rights grant found at /...
aligungr/ue-ran-sim
src/asn/ngap/ASN_NGAP_Criticality.h
<reponame>aligungr/ue-ran-sim /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NGAP-CommonDataTypes" * found in "asn/ngap-15.8.0.asn1" * `asn1c -fcompound-names -pdu=all -findirect-choice -fno-include-deps -gen-PER -no-gen-OER -no-gen-example -D ngap` */ #ifndef _ASN_NGAP_Criticali...
mtasa-typescript/mtasa-wiki-parser
to_typescript/filters/oop_declarations.py
<reponame>mtasa-typescript/mtasa-wiki-parser from collections import defaultdict from typing import Set, DefaultDict, List from crawler.core.types import PageUrl from to_python.core.types import FunctionOOP from to_typescript.core.filter import FilterAbstract from to_typescript.core.transform.function import Typ...
gautamprajapati090/sample-code
flashpik-user/source/pages/dispute/chatStyle.js
'use strict'; import { StyleSheet, Dimensions, Platform, StatusBar } from 'react-native'; import Color from '../../component/color'; import Font from '../../component/font'; var { width, height } = Dimensions.get('window'); module.exports = StyleSheet.create({ container: { flex: 1, backgroundColor...
hapify/cli
dist/interface/schema/ValidatorResult.js
<filename>dist/interface/schema/ValidatorResult.js "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TransformValidationMessage = exports.Validato...
isabella232/mod_dup
src/filters_migrate.cc
/* * mod_compare - compare apache requests * * Copyright (C) 2013 Orange * * 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 * * Unle...
helenren/utam-java-1
utam-compiler/src/main/java/utam/compiler/grammar/UtamArgumentDeserializer.java
<reponame>helenren/utam-java-1 /* * Copyright (c) 2021, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root * or https://opensource.org/licenses/MIT */ package utam.compiler.grammar; import static utam.compiler.grammar.UtamArgu...
Data4Life-Initiative/dashboard
src/components/dashboard/dashboardSlice.js
<filename>src/components/dashboard/dashboardSlice.js import { createSlice } from "@reduxjs/toolkit"; import axios from "axios"; export const slice = createSlice({ name: "dashboard", initialState: { stats: { immunized: 0, naturally_immune: 0, currently_infected: 0, }, }, reducers: { ...
mbauman/DemoMonkey
src/commands/RecolorImage.js
<reponame>mbauman/DemoMonkey /** * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
haseeAmarathunga/canner
docs/components/ondeploy-string-editor/index.js
import * as React from 'react'; import {Input} from 'antd'; export default class Editor extends React.Component { constructor(props) { super(props); props.onDeploy(v => { console.log(v); return `${v}_appendByOnDeployMethod`; }); } onChange = e => { const {onChange, refId} = this.props...
DaMSL/K3
runtime/cpp/src/HashCollections.hpp
#ifndef K3_HASH_COLLECTIONS #define K3_HASH_COLLECTIONS #include "Hash.hpp" #include "Common.hpp" namespace std { // Collections template <class K3Collection> size_t hash_collection(K3Collection const& b) { size_t seed = 0; for (auto& elem : b) { hash_combine(seed, elem); } return seed; } template <clas...
yudinggood/mtx
mtx-admin/src/main/java/com/mtx/system/rpc/service/impl/SystemDicServiceImpl.java
package com.mtx.system.rpc.service.impl; import com.mtx.common.annotation.BaseService; import com.mtx.common.base.BaseServiceImpl; import com.mtx.common.util.base.JsonUtil; import com.mtx.common.util.base.StringUtil; import com.mtx.common.util.base.ToolUtil; import com.mtx.system.common.bean.DictCacheKit; import com.m...
hannahrogers-google/google-cloud-java
google-api-grpc/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadataOrBuilder.java
<reponame>hannahrogers-google/google-cloud-java // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; public interface LabelTextClassificationOperationMetadataOrBuilder extends // @@protoc_insert...
phatblat/macOSPrivateFrameworks
PrivateFrameworks/Safari/CreditCardDataController.h
<filename>PrivateFrameworks/Safari/CreditCardDataController.h // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "WBSCreditCardDataController.h" __attribute__((visibility("hidden"))) @interface CreditCardDataController : WBSCredi...
antoniogsjunior/react_boilerplate
src/views/home/pages/home.js
<gh_stars>0 import React from 'react' import Body from 'components/dashboard/body' import PropTypes from 'prop-types' function Home ({ title, history }) { return ( <Body history={history} title={title}> <h3>Home</h3> </Body> ) } Home.propTypes = { title: PropTypes.string.isRequired, history: Prop...
ozayats/CarMissionReact
controllers/features.js
<gh_stars>0 const Feature = require("../models/Feature"); const queryCreator = require("../commonHelpers/queryCreator"); const _ = require("lodash"); const { updateS3Credentials, upload, } = require("../commonHelpers/amazon-s3-upload"); const uploadS3 = upload("about-us"); exports.addFeature = (req, res, next) => ...
bartwe/Colore
docs/search/enums_6.js
<gh_stars>0 var searchData= [ ['implicitusekindflags',['ImplicitUseKindFlags',['../_annotations_8cs.html#acc26806cec0b003502b38c6c2ee67fd1',1,'Annotations.cs']]], ['implicitusetargetflags',['ImplicitUseTargetFlags',['../_annotations_8cs.html#a59f21202ead30f3d1e2093e42214bf7c',1,'Annotations.cs']]] ];
GheisMohammadi/CppCommon
include/threads/wait_batcher.inl
<gh_stars>100-1000 /*! \file wait_batcher.inl \brief Multiple producers / multiple consumers wait batcher inline implementation \author <NAME> \date 13.03.2019 \copyright MIT License */ namespace CppCommon { template<typename T> inline WaitBatcher<T>::WaitBatcher(size_t capacity, size_t initial) :...
eduardolm/orange-talents-01-template-proposta
src/main/java/br/com/zup/proposta/repository/BlockedRepository.java
<gh_stars>0 package br.com.zup.proposta.repository; import br.com.zup.proposta.model.Blocked; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface BlockedRepository extends JpaRepository<Blocked, Long> { }
ploki/aws-sdk-cpp
aws-cpp-sdk-glue/include/aws/glue/model/UserDefinedFunctionInput.h
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
jgchenu/react-and-redux-practice
src/todos/actions.js
import { ADD_TODO, REMOVE_TODO, TOGGLE_TODO } from './actionTypes'; let todoId = 0; export const addTodo = (text) => ({ type: ADD_TODO, payload: { text, id: todoId++, completed: false } }) export const removeTodo = (id) => ({ type: REMOVE_TODO, payload: { id } }) export const toggleTod...
jjmartinr01/gauss3
reuniones/urls.py
# -*- coding: utf-8 -*- from django.urls import path from . import views urlpatterns = [ path('conv_template/', views.conv_template), path('conv_template_ajax/', views.conv_template_ajax), path('conv_reunion/', views.conv_reunion), path('conv_reunion_ajax/', views.conv_reunion_ajax), path('redacta...
mmg-3/OpenOLAT
src/main/java/org/olat/modules/appointments/ui/FindingConfirmationController.java
/** * <a href="http://www.openolat.org"> * OpenOLAT - Online Learning and Training</a><br> * <p> * Licensed under the Apache License, Version 2.0 (the "License"); <br> * you may not use this file except in compliance with the License.<br> * You may obtain a copy of the License at the * <a href="http://www.apache...
wandns/axl
include/axl_lua_Pch.h
<reponame>wandns/axl #include <axl_lua/axl_lua_Pch.h>
rajeshGavvala-reThink/radien-ce
rd-api/src/main/java/io/radien/api/service/ecm/model/Content.java
/* * Copyright (c) 2006-present openappframe.org & its legal owners. All rights reserved. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * <p> * http://www.apache.org/licenses/LIC...
michaelneu/gorillamail
src/main/java/com/ecorp/gorillamail/entities/Variable.java
package com.ecorp.gorillamail.entities; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Embeddable; import javax.persistence.Table; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; i...
trobol/redmine_git_hosting
app/controllers/gitolite_public_keys_controller.rb
# frozen_string_literal: true class GitolitePublicKeysController < ApplicationController include RedmineGitHosting::GitoliteAccessor::Methods before_action :require_login before_action :find_user before_action :find_gitolite_public_key, only: [:destroy] helper :gitolite_public_keys helper :git_hosting ...
koordinates/react-redux-grid
dist/util/getData.js
<filename>dist/util/getData.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.nameFromDataIndex = exports.getValueFromDataIndexArr = exports.setDataAtDataIndex = exports.getRowKey = exports.setKeysInData = exports.getData = undefined; var _immutable = require('immutable'); v...
tadvi/uva
UVa 11219 how old are you/sample/11219 - How old are you.cpp
<filename>UVa 11219 how old are you/sample/11219 - How old are you.cpp #include <stdio.h> int main() { int t, test = 0; scanf("%d", &t); while(t--) { int age, a, b, c, e, f, g; scanf("%d/%d/%d", &a, &b, &c); scanf("%d/%d/%d", &e, &f, &g); age = c-g; if(f > b) age--...
Roopesh2/C.js
src/c.js
<reponame>Roopesh2/C.js<gh_stars>1-10 export { defineProperties } from "./utils.js"; export * from "./settings.js"; export { C } from "./main.js"; export * from "./constants/math.js"; export * from "./constants/drawing.js"; export * from "./constants/color_palettes.js"; export * from "./color/gradients.js"; export * f...
zhy0313/temptation
web/actions/global.js
<gh_stars>1-10 export const SET_TITLE = 'SET_TITLE' export function setTitle(title) { return { type: SET_TITLE, title, } } /* 侧滑菜单 */ export const OPEN_SIDE_MENU = 'OPEN_SIDE_MENU' export const CLOSE_SIDE_MENU = 'CLOSE_SIDE_MENU' export function toggleSideMenu(flag) { return { type: flag ? OPEN_SIDE_...
wapalxj/Java
javaworkplace/Thinking_in_Java/src/C13_String/P287_case.java
<reponame>wapalxj/Java<gh_stars>0 package C13_String; import java.util.ArrayList; import java.util.List; public class P287_case { /** * @param args */ public static void main(String[] args) { List<InfiniteRecursion> ins=new ArrayList<>(); for (int i = 0; i < 10; i++) { ins.add(new InfiniteRecursion()); ...
Johniel/contests
codeforces/350div2/A/main.cpp
#include <bits/stdc++.h> #define each(i, c) for (auto& i : c) #define unless(cond) if (!(cond)) using namespace std; typedef long long int lli; typedef unsigned long long ull; typedef complex<double> point; template<typename P, typename Q> ostream& operator << (ostream& os, pair<P, Q> p) { os << "(" << p.first <<...
rexcorp01/bet6
pick6-frontend/src/App.js
import React from 'react'; import { Route, Switch, withRouter } from 'react-router-dom' import './App.css'; import { connect } from 'react-redux' import { getCurrentUser } from './actions/currentUser.js' import Login from './components/Login.js' import Navbar from './components/Navbar.js' import UserShow from './compon...
lucid-at-dream/citylife
src/base-libs/operations/server/server.c
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "logger.h" #include "server.h" #include "worker_pool.h" socket_server *server_new(unsigned short port) { info("server.c: Creating a new server bound to port %d", port); socket_server *new_server = (soc...
TonyBrewer/OpenHT
tests/dsn11/src_pers/PersInc_src.cpp
#include "Ht.h" #include "PersInc.h" ht_uint4 CPersInc::fu4() { return 4; } bool CPersInc::fb() { ht_uint4 u4 = 4; bool b; switch (u4 + fu4()) { case 1: b = true; break; default: b = false; break; } return b; } ht_uint4 CPersInc::fp1(ht_uint4 const & a, ht_uint4 const & b) { return a + b; } CStruct CPersIn...
Palem1988/beacon-chain-java
ssz/src/main/java/org/ethereum/beacon/ssz/access/list/ArrayAccessor.java
package org.ethereum.beacon.ssz.access.list; import java.lang.reflect.Array; import java.util.List; import org.ethereum.beacon.ssz.access.SSZField; import org.ethereum.beacon.ssz.type.SSZType; public class ArrayAccessor extends AbstractListAccessor { @Override public boolean isSupported(SSZField field) { ret...
gabr1e11/cornerstone
Source/Framework/Core/ILifeCycle.hpp
<filename>Source/Framework/Core/ILifeCycle.hpp // // ILifeCycle.hpp // // @author <NAME> // #pragma once namespace Framework { namespace Core { class ILifeCycle { public: virtual void init() = 0; virtual void start() = 0; virtual void update(float dt) = 0; protected: virtual void internalInit()...
eincioch/Mastering-Java-EE-Development-with-WildFly
Chapter04/src/main/java/it/vige/businesscomponents/businesslogic/context/old/Ejb21StateEngineLocalBean.java
package it.vige.businesscomponents.businesslogic.context.old; import static java.util.logging.Logger.getLogger; import java.security.Principal; import java.util.Collection; import java.util.Map; import java.util.logging.Logger; import javax.annotation.Resource; import javax.ejb.EJBException; import javax.ejb.EJBLoca...
TeacherManoj0131/HacktoberFest2020-Contributions
Games/Zeldiablo/src/moteurPerso/MainPerso.java
<filename>Games/Zeldiablo/src/moteurPerso/MainPerso.java<gh_stars>100-1000 package moteurPerso; import java.util.Scanner; import moteurJeu.MoteurGraphique; public class MainPerso { public static void main(String[] args) throws InterruptedException { // creation du jeu particulier et de son afficheur JeuPers...
geometryzen/webgl-core
build/main/lib/core/TextureParameterName.js
<reponame>geometryzen/webgl-core "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TextureParameterName = void 0; /** * */ var TextureParameterName; (function (TextureParameterName) { TextureParameterName[TextureParameterName["TEXTURE_MAG_FILTER"] = 10240] = "TEXTURE_MAG_FILTER"...
fx02/Open-Shell-Menu
Src/ClassicExplorer/ShareOverlay.h
// Classic Shell (c) 2009-2017, <NAME> // Open-Shell (c) 2017-2018, The Open-Shell Team // Confidential information of <NAME>. Not for disclosure or distribution without prior written consent from the author // ShareOverlay.h : Declaration of the CShareOverlay #pragma once #include "resource.h" // main symbols ...
Hei-Joy/pig
pig-modules/pig-upms-service/src/main/java/com/github/pig/admin/model/entity/Assets.java
<filename>pig-modules/pig-upms-service/src/main/java/com/github/pig/admin/model/entity/Assets.java package com.github.pig.admin.model.entity; import lombok.Data; @Data public class Assets { private String id; private String name; private Integer tbValue; private String tbType; private Boolean ...
samcom12/anuga_core
validation_tests/analytical_exact/carrier_greenspan_transient/plot_results.py
<filename>validation_tests/analytical_exact/carrier_greenspan_transient/plot_results.py """ Quick plot of the Carrier-Greenspan outputs """ import anuga.utilities.plot_utils as util import matplotlib matplotlib.use('Agg') from matplotlib import pyplot as pyplot from analytical_cg_transient import * p_st = util.ge...
o-dasher/libremelting
core/src/com/dasher/meltinglight/Graphics/ShapeRendering/FadeBlock.java
package com.dasher.meltinglight.Graphics.ShapeRendering; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.GL30; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.utils.Null; import com.badlogic.gdx.utils.viewport.Viewport; import com.d...
nathants/aws-util
lib/aws.go
<gh_stars>0 package lib import ( "context" "os" "sync" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/endpoints" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" ) var sess *session.Session var sessLock sync.RWMutex va...
mreinsch/api-umbrella
test/support/models/api/rate_limit.rb
class Api::RateLimit include Mongoid::Document field :_id, :type => String, :overwrite => true, :default => lambda { SecureRandom.uuid } field :duration, :type => Integer field :accuracy, :type => Integer field :limit_by, :type => String field :limit, :type => Integer field :distributed, :type => Boolean ...
miw-upm/apaw-practice
src/test/java/es/upm/miw/apaw_practice/adapters/mongodb/car_hire/daos/VehicleRepositoryIT.java
<gh_stars>1-10 package es.upm.miw.apaw_practice.adapters.mongodb.car_hire.daos; import es.upm.miw.apaw_practice.TestConfig; import es.upm.miw.apaw_practice.adapters.mongodb.car_hire.entities.VehicleEntity; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import java.ma...
raindigi/Merchello
src/Merchello.Web.UI.Client/src/views/gatewayproviders/notificationmessageeditor.controller.js
<gh_stars>100-1000 angular.module('merchello').controller('Merchello.Backoffice.NotificationMessageEditorController', ['$scope', '$q', '$routeParams', '$location', 'assetsService', 'dialogService', 'eventsService', 'notificationsService', 'merchelloTabsFactory', 'dialogDataFactory', 'notificationGatewayPro...
HaoyeTianCoder/coming
src/main/java/fr/inria/coming/core/filter/diff/syntcomparison/Fragmentable.java
package fr.inria.coming.core.filter.diff.syntcomparison; import org.eclipse.compare.rangedifferencer.IRangeComparator; public interface Fragmentable extends IRangeComparator { String getFragment(int i); }
Joshuahelmle/connect4-SWAR
src/main/scala/de/htwg/se/connect4/controller/controllerComponent/controllerBaseImpl/Controller.scala
package de.htwg.se.connect4.controller.controllerComponent.controllerBaseImpl import com.google.inject.{Guice, Inject} import de.htwg.se.connect4.Connect4Module import de.htwg.se.connect4.controller.controllerComponent.ControllerInterface import de.htwg.se.connect4.model.boardComponent.BoardInterface import de.htwg.se...
MilkyStorm3/SplashyEngine
Engine/src/Input/Event.hpp
#pragma once #include <stdint.h> #include <string> #include <functional> #include <vector> #include <typeinfo> #include <utility> #include "Input/KeyCodes.hpp" namespace ant { using KeycodeType = KeyCode; using ButtoncodeType = MouseButtonCode; using ScrollType = double; using MouseOffsetType = double;...
zhengyd2014/java-knowledge
src/main/java/com/watercup/kafka/TaskScheduler.java
package com.watercup.kafka; import java.util.PriorityQueue; public class TaskScheduler implements Runnable { /* 有一個 class TaskScheduler which implements runnable, 加上一個 api schedule(task, delay) 實現這個 API */ PriorityQueue<TaskWrapper> taskQueue = new PriorityQueue<>((a, b) -> Lon...
dlabaj/enmasse
mqtt-gateway/src/main/java/enmasse/mqtt/MqttGatewayOptions.java
<reponame>dlabaj/enmasse<gh_stars>1-10 /* * Copyright 2016-2018, EnMasse authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package enmasse.mqtt; import java.time.Duration; import java.util.Map; import java.util.Optional; public class MqttGatewayOption...
haizhenhan/Kepler
kernel/2.6.32/drivers/staging/otus/hal/hpfwu_OTUS_RC.c
/* * Copyright (c) 2007-2008 Atheros Communications Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
laurence-bird/comms-orchestration
src/test/scala/com/ovoenergy/orchestration/profile/CustomerProfilerSpec.scala
package com.ovoenergy.orchestration.profile import java.nio.charset.StandardCharsets import java.nio.file.{Files, Paths} import cats.effect.IO import cats.effect._ import cats.implicits._ import com.github.tomakehurst.wiremock.WireMockServer import com.github.tomakehurst.wiremock.client.WireMock import com.ovoenergy....
jorexe/haikunet
debug/atomics/ATLAS-TDAQ/Vector_PacketNetworkServer.cpp
#include "Vector_PacketNetworkServer.h"
Hope6537/hope-battlepack
hope-note-module/hope-java-native-note/src/main/java/org/hope6537/note/design/servant/example/ServicedImpl1.java
package org.hope6537.note.design.servant.example; /** * */ public class ServicedImpl1 implements Serviced { @Override public void serviced() { System.out.println("serivce1"); } }
hvonck/lambda-lilac
src/engine/renderers/d3d11/d3d11_texture.h
<filename>src/engine/renderers/d3d11/d3d11_texture.h #pragma once #include "assets/texture.h" #include <d3d11.h> namespace lambda { namespace windows { /////////////////////////////////////////////////////////////////////////// class D3D11Texture { friend class D3D11RenderTargetView; ...
dwt/capybara.py
capybara/tests/session/test_assert_selector.py
import pytest import re import capybara from capybara.exceptions import ElementNotFound class TestAssertSelector: @pytest.fixture(autouse=True) def setup_session(self, session): session.visit("/with_html") def test_does_not_raise_if_the_given_selector_is_on_the_page(self, session): sessi...
itteco/service_merchant
subscription_management/tasks/schema.rb
namespace :subscription do desc 'Create Subscription management database tables' task :create_tables => :connection do ActiveRecord::Base.connection.create_table :subscriptions, :force => true do |t| t.column :account_id, :string, :null => false t.column :tariff_plan_id, ...
jorjoh/Simplediagram
src/gui/domain/Domainview.java
<filename>src/gui/domain/Domainview.java package gui.domain; import figure.graphics.Figure; import figure.model.IFigure; import svg.Svg; import uml.graphics.Thing; import uml.model.*; import uml.model.Package; import javax.swing.*; import java.awt.*; import java.awt.Component; import java.awt.event.ActionEvent; publ...
Imterrorblade/admin_cms
src/utils/validate.js
/** * Created by jiachenpan on 16/11/18. */ export function isvalidUsername(str) { const reg = /^[A-Za-z0-9]+$/ return reg.test(str) } /* 合法uri*/ export function validateURL(textval) { const urlregex = /^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25...
climategames/climategames-website
lib/tasks/game_state.rake
namespace :game_state do desc 'Store a snapshot of the current game state' task snapshot: :environment do GameState.current.save! end end
aTiKhan/nuxeo
modules/core/nuxeo-core-test/src/test/java/org/nuxeo/ecm/core/bulk/TestSetPropertiesAction.java
<filename>modules/core/nuxeo-core-test/src/test/java/org/nuxeo/ecm/core/bulk/TestSetPropertiesAction.java<gh_stars>0 /* * (C) Copyright 2018 Nuxeo (http://nuxeo.com/) and others. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. *...
timkpaine/arrow
r/src/schema.cpp
// 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...
viniciusalmada/Drawer-Qt
manager/grid.cpp
#include "grid.h" Grid::Grid() = default; void Grid::setSnapData(bool isSnapOn, double dx, double dy) { mGridX = dx; mGridY = dy; mIsSnapOn = isSnapOn; } bool Grid::getSnapInfo() const { return mIsSnapOn; } pair<double, double> Grid::getGridSpace() { return {mGridX, mGridY}; } void Grid::snapTo(QPointF& pt) ...
suhanime/installer
vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/pool.go
<reponame>suhanime/installer package s3manager import ( "fmt" "sync" "github.com/aws/aws-sdk-go/aws" ) type byteSlicePool interface { Get(aws.Context) (*[]byte, error) Put(*[]byte) ModifyCapacity(int) SliceSize() int64 Close() } type maxSlicePool struct { // allocator is defined as a function pointer to al...
assens/activemq-artemis
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionCreateConsumerTest.java
<filename>tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionCreateConsumerTest.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 reg...
phileinSophos/programming
LeetCode/1389_Target_Array_Given_Order.py
<filename>LeetCode/1389_Target_Array_Given_Order.py ''' Problem Statement : 1389. Create Target Array in the Given Order Link : https://leetcode.com/contest/weekly-contest-181/problems/create-target-array-in-the-given-order/ score : accepted ''' class Solution: def createTargetArray(self,nums, index): ...
sinefuse/shiromino
src/Input/KeyBindings.h
#pragma once #include "PDINI.h" #include "SDL.h" #include <string> namespace Shiro { class KeyBindings { public: KeyBindings(); KeyBindings(const int playerNumber); void read(PDINI::INI& ini); void write(PDINI::INI& ini) const; SDL_Keycode left; SDL_Keycode righ...
bigbugbb/iTracker
app/src/main/java/com/itracker/android/xmpp/carbon/ForwardedProvider.java
<gh_stars>10-100 package com.itracker.android.xmpp.carbon; import com.itracker.android.xmpp.AbstractExtensionProvider; import org.jivesoftware.smack.SmackException; import org.jivesoftware.smack.packet.Stanza; import org.jivesoftware.smack.util.PacketParserUtils; import org.jivesoftware.smackx.delay.packet.DelayInfor...
khcitizen/tomcat-deployed
webapps/jasperserver-pro/scripts/bower_components/jrs-ui/src/dataSource/DataSourceController.js
<reponame>khcitizen/tomcat-deployed<filename>webapps/jasperserver-pro/scripts/bower_components/jrs-ui/src/dataSource/DataSourceController.js /* * Copyright (C) 2005 - 2018 TIBCO Software Inc. All rights reserved. * http://www.jaspersoft.com. * * Unless you have purchased a commercial license agreement from Jaspers...
AntsCodeCommunity/spring-boot
spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/configuration/ResolvedDockerHostTests.java
/* * Copyright 2012-2022 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
hatchways/team-fruit-loops
server/routes/stripe.js
const express = require('express'); const router = express.Router(); const bodyParser = require('body-parser') const authenticate = require("../controllers/authenticate"); const stripe = require('../controllers/stripe'); router.post('/webhook', bodyParser.raw({type: 'application/json'}), stripe.webhook); // requests...
mishadynin/ideal
bootstrapped/ideal/runtime/elements/empty.java
<reponame>mishadynin/ideal<gh_stars>0 // Autogenerated from runtime/elements/empty.i package ideal.runtime.elements; import ideal.library.elements.*; public class empty<element_type> implements immutable_list<element_type>, immutable_set<element_type> { public empty() { } public @Override int size() { return...
perfectrecall/aws-sdk-cpp
aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessDeviceRequest.h
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/iotwireless/IoTWireless_EXPORTS.h> #include <aws/iotwireless/IoTWirelessRequest.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/iotwireless/model/WirelessD...
wangcy6/weekly.github.io
KM/03code/book/Thinking-In-C-resource-master/C04/c0416.cpp
#include "c0416.h" #include <cassert> void VStash::initialize(int sz) { size = sz; next = 0; } void VStash::cleanup() {} int VStash:: add(const void* element) { for(int i = 0; i < size; i++) { storage.push_back(((char*)element)[i]); } next++; return (next - 1); } void* VStash::fetch(int index) { assert(in...
Boundarybreaker/LibBlockAttributes
src/main/java/alexiil/mc/lib/attributes/fluid/impl/SimpleFixedFluidInvExtractable.java
package alexiil.mc.lib.attributes.fluid.impl; import alexiil.mc.lib.attributes.Simulation; import alexiil.mc.lib.attributes.fluid.FixedFluidInv; import alexiil.mc.lib.attributes.fluid.FluidExtractable; import alexiil.mc.lib.attributes.fluid.filter.FluidFilter; import alexiil.mc.lib.attributes.fluid.volume.FluidKeys; i...
rebaze/neo4j
enterprise/ha/src/main/java/org/neo4j/kernel/ha/HaCaches.java
<gh_stars>1-10 /** * Copyright (c) 2002-2013 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the ...
Lavish883/Loki-Stream
node_modules/@react-navigation/material-top-tabs/lib/commonjs/views/MaterialTopTabView.js
version https://git-lfs.github.com/spec/v1 oid sha256:0befbd6472f77861ce0a67d2ee4039004cf5eaf462f32c7396165c7427adf01a size 3032
jarekankowski/pegasus_spyware
sample3/recompiled_java/sources/android/support/v4/content/res/ResourcesCompatIcsMr1.java
<reponame>jarekankowski/pegasus_spyware package android.support.v4.content.res; import android.content.res.Resources; import android.graphics.drawable.Drawable; class ResourcesCompatIcsMr1 { ResourcesCompatIcsMr1() { } public static Drawable getDrawableForDensity(Resources res, int id, int density) throw...
psrc/psrc
vendor/extensions/event_registrations/vendor/plugins/active_merchant/test/unit/integrations/action_view_helper_test.rb
require 'test_helper' class ActionViewHelperTest < Test::Unit::TestCase include ActiveMerchant::Billing::Integrations::ActionViewHelper include ActionView::Helpers::FormHelper include ActionView::Helpers::FormTagHelper include ActionView::Helpers::UrlHelper include ActionView::Helpers::TagHelper include Ac...
l3ch4tno1r/LCN_Math
Source/_Geometry/VectorBase.h
#pragma once #include <cmath> #include "_Matrix/StaticMatrixBase.h" template<class Derived, typename T, size_t N> class VectorBase : public StaticMatrixBase<Derived, T, N, 1> { public: T operator[](size_t i) const { return this->Derived()[i]; } T SquareNorm() const { T norm = 0; for (size_t i = 0; i < N; ++...
antelets/synopsys-detect
src/main/java/com/synopsys/integration/detect/tool/impactanalysis/ImpactAnalysisNamingOperation.java
<filename>src/main/java/com/synopsys/integration/detect/tool/impactanalysis/ImpactAnalysisNamingOperation.java /* * synopsys-detect * * Copyright (c) 2021 Synopsys, Inc. * * Use subject to the terms and conditions of the Synopsys End User Software License and Maintenance Agreement. All rights reserved worldwide. ...
Zaid-maker/DiscordBot
src/commands/admin/Purge.js
<filename>src/commands/admin/Purge.js<gh_stars>10-100 const { Command } = require('discord.js-commando'); module.exports = class PurgeCommand extends Command { constructor(client) { super(client, { name: 'purge', group: 'admin', memberName: 'purge', description: 'Filters through s...
data-integrations/firestore-plugins
src/test/java/io/cdap/plugin/gcp/firestore/source/FirestoreSourceConfigHelper.java
/* * Copyright © 2020 <NAME>, 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 required by applicable law or agreed to i...
shaojiankui/iOS10-Runtime-Headers
Frameworks/UIKit.framework/UICollectionViewTableLayoutInvalidationContext.h
<reponame>shaojiankui/iOS10-Runtime-Headers /* Generated by RuntimeBrowser Image: /System/Library/Frameworks/UIKit.framework/UIKit */ @interface UICollectionViewTableLayoutInvalidationContext : UICollectionViewLayoutInvalidationContext { bool _invalidateTableWidth; } @property (nonatomic) bool invalidateTabl...
reposense/testrepo-Beta
src/main/java/seedu/address/ui/TagColorMap.java
package seedu.address.ui; import java.util.HashMap; //@@author nbriannl /** * The mapping of the tag colors to be shared across any UI components containing tags */ public class TagColorMap { private static TagColorMap instance; private static final String[] COLORS = {"Crimson", "orange", "DarkSalmon", "Lig...