repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
yuri0x7c1/bali | bali-data/src/main/java/com/github/yuri0x7c1/bali/data/search/model/SearchModel.java | /*
* Copyright 2021-2022 The original authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... |
sniceio/snice-codecs | codec-layers-432/src/main/java/io/snice/codecs/codec/internet/ipv4/impl/IPv4PacketImpl.java | /**
*
*/
package io.snice.codecs.codec.internet.ipv4.impl;
import io.snice.buffer.Buffer;
import io.snice.codecs.codec.Protocol;
import io.snice.codecs.codec.internet.ipv4.IPv4Message;
/**
* @author <EMAIL>
*/
public final class IPv4PacketImpl<T> implements IPv4Message<T> {
private final Buffer buffer;
p... |
alexey-anufriev/intellij-community | platform/testFramework/src/com/intellij/formatting/FormatterTestUtils.java | <reponame>alexey-anufriev/intellij-community
// 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.intellij.formatting;
import com.intellij.openapi.command.WriteCommandAction;
import com.intellij.openapi.editor.Document;... |
FMCorz/pocketgo | lib/Header/PokeBar.js | <reponame>FMCorz/pocketgo<gh_stars>1-10
/**
* Copyright 2016 <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 requ... |
swisscom/eos | src/stream/sink/cron_plyr/pclinux/libav_dec.h | /***************************************************************************************
Copyright (c) 2015, Swisscom (Switzerland) Ltd.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributi... |
kiddliu/midnight-leetcode | check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence.h | #ifndef CHECK_IF_A_WORD_OCCURS_AS_A_PREFIX_OF_ANY_WORD_IN_A_SENTENCE_H_
#define CHECK_IF_A_WORD_OCCURS_AS_A_PREFIX_OF_ANY_WORD_IN_A_SENTENCE_H_
#include <algorithm>
#include <string>
namespace solution {
int isPrefixOfWord(std::string sentence, std::string searchWord) {
// padding a blank before the sentence, nice... |
kendallreid/koopa | src/core/koopa/core/parsers/combinators/Optional.java | package koopa.core.parsers.combinators;
import koopa.core.parsers.Parse;
import koopa.core.parsers.ParserCombinator;
import koopa.core.parsers.Stream;
/**
* A {@linkplain ParserCombinator} which will try to match a given
* {@linkplain ParserCombinator} once, but still pass if it couldn't.
*/
public class Optional ... |
WaterLily/civiform | universal-application-tool-0.0.1/app/views/admin/programs/ManageProgramAdminsView.java | <gh_stars>1-10
package views.admin.programs;
import static com.google.common.base.Preconditions.checkNotNull;
import static j2html.TagCreator.div;
import static j2html.TagCreator.each;
import static j2html.TagCreator.form;
import com.google.common.collect.ImmutableList;
import controllers.admin.routes;
import j2html.... |
toobaz/statsmodels | statsmodels/sandbox/tsa/try_arma_more.py | # -*- coding: utf-8 -*-
"""Periodograms for ARMA and time series
theoretical periodogram of ARMA process and different version
of periodogram estimation
uses scikits.talkbox and matplotlib
Created on Wed Oct 14 23:02:19 2009
Author: josef-pktd
"""
import numpy as np
from scipy import signal, ndimage
import matplo... |
ziyoushi/gulimall | gulimall-ums/src/main/java/com/atguigu/gulimall/ums/GuliMallUmsApplication.java | package com.atguigu.gulimall.ums;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.open... |
PacktPublishing/Mastering-Postgis | Chapter07/resources/ext-6.2.0-gpl/ext-6.2.0/examples/classic/neptune-components/app/view/toolbar/widget/Fields.js | <reponame>PacktPublishing/Mastering-Postgis<gh_stars>1-10
Ext.define('Neptune.view.toolbar.widget.Fields', {
extend: 'Ext.toolbar.Toolbar',
xtype: 'fieldsToolbar',
defaults: {
hideLabel: true
},
items: [
{ xtype: 'textField' },
{ xtype: 'comboBox' },
{ xtype: 'dateFi... |
qht1003077897/H-Express | app/src/main/java/com/qht/blog2/BaseAdapter/BaseListView/BaseListHolder.java | <filename>app/src/main/java/com/qht/blog2/BaseAdapter/BaseListView/BaseListHolder.java<gh_stars>100-1000
package com.qht.blog2.BaseAdapter.BaseListView;
import android.util.SparseArray;
import android.view.View;
/**
* Created by QHT on 2017-04-12.
*/
public class BaseListHolder extends BaseListAdapter.ViewHolder{
... |
tanliu/fruit | fruit-core/src/main/java/com/fruit/dao/management/RegionDao.java | package com.fruit.dao.management;
import com.fruit.base.DaoSupport;
import com.fruit.entity.management.Region;
/**
*
* @author CSH
*
*/
public interface RegionDao extends DaoSupport<Region>{
String DAO_NAME="com.fruit.dao.impl.RegionDaoImpl";
}
|
ojoakua-10bit/MPPL-GAME-TANK | rest-backend/src/main/java/com/fluxhydravault/restbackend/model/PlayerMapper.java | <filename>rest-backend/src/main/java/com/fluxhydravault/restbackend/model/PlayerMapper.java<gh_stars>0
package com.fluxhydravault.restbackend.model;
import org.springframework.jdbc.core.RowMapper;
import java.sql.ResultSet;
import java.sql.SQLException;
public class PlayerMapper implements RowMapper<Player> {
@O... |
WeiXiaoQian/tea | deps/libaev/example.c | /*
simple event library, but hight performance
Copyright © 2015 <NAME> <<EMAIL>>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright
notice,... |
yu199195/reactor-netty | src/test/java/reactor/ipc/netty/tcp/TcpServerTests.java | /*
* Copyright (c) 2011-2018 Pivotal Software Inc, 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
*
* Unles... |
thevpc/nuts | core/nuts-runtime/src/main/java/net/thevpc/nuts/runtime/core/log/DefaultNutsLogModel.java | <filename>core/nuts-runtime/src/main/java/net/thevpc/nuts/runtime/core/log/DefaultNutsLogModel.java
/**
* ====================================================================
* Nuts : Network Updatable Things Service
* (universal package manager)
* <br>
* is a new Open Source Package Manager to help install packag... |
ScalablyTyped/SlinkyTyped | a/activex-libreoffice/src/main/scala/typingsSlinky/activexLibreoffice/com_/sun/star/i18n/XCollator.scala | <gh_stars>10-100
package typingsSlinky.activexLibreoffice.com_.sun.star.i18n
import typingsSlinky.activexLibreoffice.LibreOffice.SeqEquiv
import typingsSlinky.activexLibreoffice.`type`
import typingsSlinky.activexLibreoffice.com_.sun.star.lang.Locale
import typingsSlinky.activexLibreoffice.com_.sun.star.uno.XInterface... |
52North/arctic-sea | shetland/core/src/main/java/org/n52/shetland/ogc/sensorML/v20/AbstractPhysicalProcess.java | /*
* Copyright (C) 2015-2021 52°North Spatial Information Research GmbH
*
* 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 r... |
rhcad/vglite | doc/doxygen/dummy.cpp | #include <gicoreview.h> |
arpinum/js-ddd | lib/domain/test/cat.js | <gh_stars>1-10
'use strict';
const t = require('tcomb');
const AggregateRoot = require('../aggregateRoot');
const catEventHandlers = require('./catEventHandlers');
const Creation = t.interface({
id: t.String,
age: t.Integer,
name: t.maybe(t.String),
birthDate: t.maybe(t.Date)
});
class Cat extends AggregateR... |
sagiegurari/fax4j | src/test/java/org/fax4j/util/ProcessExecutorHelperTest.java | package org.fax4j.util;
import org.fax4j.spi.FaxClientSpi;
import org.fax4j.test.TestUtil.EmptyFaxClientSpi;
import org.fax4j.util.ProcessExecutorHelper.ProcessOutput;
import org.junit.Assert;
import org.junit.Test;
/**
* Test Class
*
* @author <NAME>
*/
public class ProcessExecutorHelperTest {
/**
* Tes... |
YannGarcia/repo | dev/g++/projects/beaglebone/libhal/src/libhal_spi.c | <reponame>YannGarcia/repo<gh_stars>0
/**
* @file libhal_spi.c
* @brief Main implementation file for the SPI Hardware Abstract Layer library.
* @author <EMAIL>
* @copyright Copyright (c) 2015 ygarcia. All rights reserved
* @license This project is released under the MIT License
* @version 0.1
*/
#include <un... |
asdoll/StreamJit-FYP | src/edu/mit/streamjit/impl/blob/Buffer.java | /*
* Copyright (c) 2013-2014 Massachusetts Institute of Technology
*
* 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 rights
* to us... |
dmgerman/hadoop | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/event/ContainerLocalizationEvent.java | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * 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 th... |
kubesphere/alert | pkg/services/executor/alert_receiver.go | <reponame>kubesphere/alert<gh_stars>10-100
package executor
import (
"errors"
"strconv"
"time"
lib "openpitrix.io/libqueue"
q "openpitrix.io/libqueue/queue"
"kubesphere.io/alert/pkg/config"
"kubesphere.io/alert/pkg/constants"
"kubesphere.io/alert/pkg/logger"
)
type AlertReceiver struct {
alertQueue li... |
tuwiendsg/RAHYMS | hcu/hcu-external-lib/src/main/java/gridsim/index/RegionalGIS.java | <reponame>tuwiendsg/RAHYMS
/*
* Title: GridSim Toolkit
* Description: GridSim (Grid Simulation) Toolkit for Modeling and Simulation
* of Parallel and Distributed Systems such as Clusters and Grids
* License: GPL - http://www.gnu.org/copyleft/gpl.html
*
* Copyright (c) 2005, The Universi... |
Mommoo/FlatSwing | src/com/mommoo/flat/frame/titlebar/TitleLabel.java | package com.mommoo.flat.frame.titlebar;
import com.mommoo.util.FontManager;
import com.mommoo.util.ScreenManager;
import javax.swing.*;
import java.awt.*;
/**
* Created by mommoo on 2017-07-13.
*/
public class TitleLabel extends JLabel {
private static final int TITLE_TEXT_LEFT_PADDING = ScreenManager.getInsta... |
OhYee/code-questions | leetcode/1047/1047.go | <reponame>OhYee/code-questions<filename>leetcode/1047/1047.go
func removeDuplicates(S string) string {
n := len(S)
remove := make([]bool, n)
for {
flag := false
for i:=0; i<n; i++ {
if remove[i] {
continue
}
for j:=i+1; j<n; j++ {
... |
benlong-transloc/cockroach | pkg/internal/sqlsmith/sqlsmith_test.go | <reponame>benlong-transloc/cockroach
// Copyright 2019 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will b... |
carlos-brito-pacheco/rodin | src/Rodin/Variational/Problem.hpp | /*
* Copyright <NAME> 2021 - 2022.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at
* https://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef RODIN_VARIATIONAL_PROBLEM_HPP
#define RODIN_VARIATIONAL_PROBLEM_HPP
#include "Rodin/Utility.h"
#i... |
doorisopen/SpringWeb | aop-twlee/src/main/java/org/kpu/myweb/ceo/service/StoreService.java | package org.kpu.myweb.ceo.service;
import java.util.List;
import org.kpu.myweb.ceo.domain.StoreVO;
import org.kpu.myweb.domain.BoardVO;
import org.kpu.myweb.domain.StudentVO;
import org.kpu.myweb.domain.UserVO;
public interface StoreService {
public void StoreRegister(StoreVO vo) throws Exception;
pub... |
cmejj/How-to-Make-a-Computer-Operating-System | src/sdk/src/libc/src/unistd/lseek.c | <filename>src/sdk/src/libc/src/unistd/lseek.c
#include <errno.h>
#include <unistd.h>
#include <os.h>
off_t lseek( int fd, off_t offset, int whence ) {
int error;
off_t result;
error = syscall4( SYS_lseek, fd, ( int )&offset, whence, ( int )&result );
if ( error < 0 ) {
errno = -error;
... |
whywhywhyw/o3de | Gems/LmbrCentral/Code/Source/Bundling/BundlingSystemComponent.h | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#include <AzCore/Component/Component.h>
#include <AzCore/std/containers/vector.h>
#i... |
velosite/opennlp | src/main/java/opennlp/tools/parser/ParserChunker.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreemnets. 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 ... |
dalsontws/accessibility-axe-selenium | js-axe-selenium/a11y/lib/python3.8/site-packages/bokeh/server/static/js/lib/models/tiles/tms_tile_source.js | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const mercator_tile_source_1 = require("./mercator_tile_source");
class TMSTileSource extends mercator_tile_source_1.MercatorTileSource {
constructor(attrs) {
super(attrs);
}
get_image_url(x, y, z) {
const image_url... |
kikkia/Vinny-Redux | src/main/java/com/bot/commands/owner/ForceSendMessage.java | package com.bot.commands.owner;
import com.bot.ShardingManager;
import com.bot.commands.OwnerCommand;
import com.jagrosh.jdautilities.command.CommandEvent;
import net.dv8tion.jda.api.entities.MessageChannel;
public class ForceSendMessage extends OwnerCommand {
public ForceSendMessage() {
this.name = "fsen... |
heyMP/hax11ty-theme | unbundled-webcomponents/app/dist/build/es6-amd/node_modules/@lrnwebcomponents/mdi-iconset-svg/lib/mdi-format-iconset-svg.js | <reponame>heyMP/hax11ty-theme<filename>unbundled-webcomponents/app/dist/build/es6-amd/node_modules/@lrnwebcomponents/mdi-iconset-svg/lib/mdi-format-iconset-svg.js
define(["../../../@polymer/iron-icon/iron-icon.js", "../../../@polymer/iron-iconset-svg/iron-iconset-svg.js", "../../../@polymer/polymer/lib/utils/html-tag.j... |
fossabot/chef_solo | chef_solo/cookbooks/tiger_sec/attributes/default.rb | <filename>chef_solo/cookbooks/tiger_sec/attributes/default.rb
default['tiger_sec']['sec_tests_settings_path']='/opt/tiger/security/tests_settings'
default['tiger_sec']['results_path']='/opt/tiger/web/site/results/security'
default['tiger_sec']['scripts_path']='/opt/tiger/security/scripts'
default['tiger_sec']['vpn_fil... |
kkcookies99/UAST | Dataset/Leetcode/test/26/207.java | class Solution {
public int XXX(int[] nums) {
if (null == nums || nums.length < 2) {
return nums.length;
}
int i = 0, j = 1;
while (j < nums.length) {
if (nums[i] == nums[j]) {
++j;
} else {
nums[++i] = nums[j++];
... |
AlexanderTopchiy/experiments | RetroDoer/app/src/main/java/com/wyverx/retrodoer/presentation/mainlist/view/MainViewHolder.java | package com.wyverx.retrodoer.presentation.mainlist.view;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
import com.wyverx.retrodoer.R;
import com.wyverx.retrodoer.data.models.Post;
public class MainViewHolder extends RecyclerView.ViewHolder {
final View ... |
CoOwner/VisualPvP | com/google/common/collect/package-info.java | package com.google.common.collect;
import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
abstract interface package-info {}
|
giordi91/SirEngineThe3rd | SirEngineThe3rdLib/src/SirEngine/scripting/scriptingBindings.cpp | #include "SirEngine/scripting/scriptingBindings.h"
#include "SirEngine/log.h"
#include "SirEngine/scripting/scriptingContext.h"
#include "SirEngine/globals.h"
#include "SirEngine/graphics/camera.h"
#include "SirEngine/input.h"
extern "C" {
#include <lua/lauxlib.h>
#include <lua/lua.h>
#include <lua/lualib.h>... |
Pacien/ninja | js/stage/layout.js | <filename>js/stage/layout.js<gh_stars>1-10
/* <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 abov... |
amarchino/spring-framework-5 | 09_recipe-mongo-reactive/src/test/java/guru/springframework/recipeapp/controllers/ImageControllerTest.java | package guru.springframework.recipeapp.controllers;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito... |
bottomless-archive-project/loa-downloader | loa-application/loa-conductor-application/src/main/java/com/github/bottomlessarchive/loa/conductor/view/response/ServiceInstanceRegistrationResponse.java | <gh_stars>0
package com.github.bottomlessarchive.loa.conductor.view.response;
import lombok.Builder;
import lombok.Getter;
import java.util.UUID;
@Getter
@Builder
public class ServiceInstanceRegistrationResponse {
private final UUID id;
}
|
Coffeekraken/coffeekraken | packages/tools/sugar/src/shared/is/glob.js | // @ts-nocheck
import __isGlob from 'is-glob';
/**
* @name isGlob
* @namespace js.is
* @type Function
* @platform js
* @platform ts
* @platform node
* @status beta
*
* Check if the passed stri... |
rsby/gunmetal | hook/src/test/java/io/gunmetal/benchmarks/testmocks/B.java | <reponame>rsby/gunmetal
package io.gunmetal.benchmarks.testmocks;
/**
* @author rees.byars
*/
public class B {
public B(C c) {
}
}
|
quincy2000/rock | rock-comm-netty/src/main/java/org/quincy/rock/comm/netty/NioNettyCommunicateServer.java | <filename>rock-comm-netty/src/main/java/org/quincy/rock/comm/netty/NioNettyCommunicateServer.java
package org.quincy.rock.comm.netty;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelOption;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChanne... |
liuzikai/klc3 | lib/Core/Searcher.cpp | <filename>lib/Core/Searcher.cpp
//===-- Searcher.cpp ------------------------------------------------------===//
//
// The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------... |
CN-You/murphysec | module/maven/mvn_dependency_tree_plugin_parser.go | <reponame>CN-You/murphysec<gh_stars>100-1000
package maven
import (
"bufio"
"io"
"murphysec-cli-simple/logger"
"regexp"
"sort"
"strings"
)
const _MaxLineSize = 128 * 1024
var modulePattern = regexp.MustCompile("--+< +(.+?) +>--+")
var nodePattern = regexp.MustCompile("^(\\d+) +([^ ]+)")
var edgePattern = regex... |
dsofowote/KW-Tool | keywordTool/pubfiles/src/code/mediaprima/129092/default.js | <gh_stars>0
integration.meta = {
'sectionID' : '129092',
'siteName' : 'New Straits Times - Desktop - ( MY )',
'platform' : 'desktop'
};
integration.testParams = {
'desktop_resolution' : [1495]
};
integration.flaggedTests = [];
integration.params = {
'mf_siteId' : '1055021',
'plr_PageAlignment... |
SuperDogHuman/teraccoon_lesson_authoring | components/dialog/confirmButton.js | <filename>components/dialog/confirmButton.js
import React from 'react'
import Container from '../container'
import LabelButton from '../button/labelButton'
import LoadingIndicator from '../loadingIndicator'
export default function ConfirmButton({ onClick, isProcessing, name }) {
return (
<Container width='100'>
... |
Codecarinas/massive-octo-shame | Server/work/decompile-8eb82bde/net/minecraft/server/ChunkProviderHell.java | package net.minecraft.server;
import java.util.List;
import java.util.Random;
public class ChunkProviderHell implements IChunkProvider {
private final World h;
private final boolean i;
private final Random j;
private double[] k = new double[256];
private double[] l = new double[256];
private ... |
gxa/atlas | sc/src/main/java/uk/ac/ebi/atlas/download/ExperimentFileLocationService.java | package uk.ac.ebi.atlas.download;
import org.springframework.stereotype.Component;
import uk.ac.ebi.atlas.model.resource.AtlasResource;
import uk.ac.ebi.atlas.resource.DataFileHub;
import java.net.URI;
import java.nio.file.Path;
import java.text.MessageFormat;
import java.util.Arrays;
import java.util.List;
import ja... |
kazooiebombchu/movelister | pythonpath/movelister/process/updateOverview.py | from movelister.sheet.sheet import MODIFIER_LIST_SHEET_NAME, MASTER_LIST_SHEET_NAME
from movelister.sheet.modifiers import Modifiers
from movelister.sheet.overview import Overview
from movelister.sheet.master import Master
class UpdateOverview:
@classmethod
def update(cls, previousOverview, name):
""... |
flipcoder/qor | Qor/IRealtime.h | #ifndef _IREALTIME_H
#define _IREALTIME_H
#include <chrono>
#include <SDL2/SDL.h>
#include "kit/freq/freq.h"
class IRealtime
{
public:
virtual ~IRealtime() {}
virtual void logic(Freq::Time t) {}
virtual void lazy_logic(Freq::Time t) {}
};
#endif
|
brycejh/vtr-verilog-to-routing | vpr/src/route/rr_graph_indexed_data.cpp | #include <cmath> /* Needed only for sqrt call (remove if sqrt removed) */
#include <fstream>
#include <iomanip>
#include <sstream>
#include "vtr_assert.h"
#include "vtr_log.h"
#include "vtr_memory.h"
#include "vtr_math.h"
#include "vpr_types.h"
#include "vpr_error.h"
#include "globals.h"
#include "rr_graph_util.h"
#... |
CN-UPB/MANO-Benchmarking-Framework | vim-mocker/app/osm-os/auth/static_response.py | auth_token = {
"token": {
"is_domain": False,
"methods": [
"password"
],
"roles": [
{
"id": "ef90fce64b86482cbb5690083ed0de3b",
"name": "admin"
}
],
"expires_at": "2200-03-08T16:27:10.000000Z",
"project": {
"domain": {
"id": "default",
... |
dancegit/micronaut-core | test-suite/src/test/java/io/micronaut/docs/ioc/validation/PersonServiceSpec.java | <reponame>dancegit/micronaut-core<gh_stars>1-10
package io.micronaut.docs.ioc.validation;
// tag::imports[]
import io.micronaut.test.annotation.MicronautTest;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
import javax.inject.Inject;
import javax.validation.ConstraintViolationExc... |
jadnohra/World-Of-Football | WOF2/src/WOF/match/entity/ball/simul/attic/2/BallSimulTrajectory.h | <reponame>jadnohra/World-Of-Football<filename>WOF2/src/WOF/match/entity/ball/simul/attic/2/BallSimulTrajectory.h
#ifndef h_WOF_match_BallSimulationTrajectory
#define h_WOF_match_BallSimulationTrajectory
#include "WE3/object/WEObject.h"
#include "WE3/math/WEVector.h"
#include "WE3/WETime.h"
#include "WE3/WEPtr.h"... |
Samuel-Ricardo/AgendaFX | src/Factory/PostItFactory.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 Factory;
import Model.PostIt;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
*
* @author Samuel
*/
public cl... |
AiBoyuan/Demo | OC/objc4-750/App/ViewController.h | //
// ViewController.h
// App
//
// Created by Charlie on 2019/5/27.
//
#import <UIKit/UIKit.h>
#include "ffi.h"
@interface ViewController : UIViewController
@end
static void fy_rebind(const char * selName,void *replacement,void **replaced);
static void (*fy_viewWillAprea_pro)(void);
static void fy_viewWillAprea... |
rbright55/sdl_ios | SmartDeviceLink/SDLRPCResponse.h | <reponame>rbright55/sdl_ios
// SDLRPCResponse.h
//
#import "SDLRPCMessage.h"
#import "SDLResult.h"
NS_ASSUME_NONNULL_BEGIN
@interface SDLRPCResponse : SDLRPCMessage
/**
* The correlation id of the corresponding SDLRPCRequest.
*/
@property (strong, nonatomic) NSNumber<SDLInt> *correlationID;
/**
* Whether o... |
garybentley/quollwriter | src/com/quollwriter/data/comparators/NoteSorter.java | package com.quollwriter.data.comparators;
import java.util.*;
import com.quollwriter.data.*;
public class NoteSorter implements Comparator<Note>
{
public int compare (Note o1,
Note o2)
{
return o1.getPosition () - o2.getPosition ();
}
public boolean equals (Object... |
AnHyeontaek/StudyCafe-Management-System | StudyCafe_Management_System/src/main/java/StudyCafe_management_system/IOserver/IOMain.java | <gh_stars>1-10
package StudyCafe_management_system.IOserver;
import StudyCafe_management_system.IOserver.SingleIO;
import StudyCafe_management_system.IOclient.IOadmin;
import StudyCafe_management_system.IOclient.IOclient;
import cse.StudyCafe_management_system.login_client.admin;
import java.io.BufferedReader;
import... |
qfox/html-reporter | lib/static/components/controls/common-filters.js | 'use strict';
import React, {Component} from 'react';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import * as actions from '../../modules/actions';
import TestNameFilterInput from './test-name-filter-input';
import StrictMatchFilterInput from './strict-match-filter-input';
import Bro... |
secondsun/android-showcase-template | app/src/main/java/com/aerogear/androidshowcase/navigation/GotoDocsListener.java | package com.aerogear.androidshowcase.navigation;
@FunctionalInterface
interface GotoDocsListener {
void goToDocs();
}
|
Swiip/component-test-utils | packages/component-test-utils-react/src/render/render.spec.js | const React = require('react');
const {render} = require('./render');
describe('render tree', () => {
describe('firstRender', () => {
it('should just return undefined when reactEl is undefined', () => {
expect(render()).toBe(undefined);
});
it('should return abcd if reactEl is abcd string', () => ... |
walczuk135/Find-job-backend | src/main/java/com/findjob/findjobgradle/domain/Job.java | <filename>src/main/java/com/findjob/findjobgradle/domain/Job.java
package com.findjob.findjobgradle.domain;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
@Entity
@Getter
@Setter
@EqualsAndHashCode(of = "id")
@Table(name = "JOB")
public class Job {
@Id
... |
abilicz/vue-atlaskit | src/components/Icon/HomeFilledIcon.js | import IconWrapper from './IconWrapper';
export default {
name: 'HomeFilledIcon',
props: {
size: {
type: String
},
primaryColor: {
type: String
},
secondaryColor: {
type: String
}
},
render(h) {
// eslint-disabl... |
dimbleby/k8s-infra | hack/generator/pkg/config/type_transformer_test.go | /*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT license.
*/
package config_test
import (
"testing"
"github.com/Azure/k8s-infra/hack/generator/pkg/config"
"github.com/Azure/k8s-infra/hack/generator/pkg/astmodel"
. "github.com/onsi/gomega"
)
func Test_TransformByGroup_CorrectlySelectsTypes(... |
RomantsovAP/job4j | chapter_002/src/test/java/ru/job4j/interview/DepartmentViewTest.java | <filename>chapter_002/src/test/java/ru/job4j/interview/DepartmentViewTest.java
package ru.job4j.interview;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
public class DepartmentViewTe... |
xksteven/ethics_amti | examples/impartiality/parse_tabular_results.py | <gh_stars>0
import argparse
import json
parser = argparse.ArgumentParser(description="Parse the tabular data from Mturk and save to csv.")
parser.add_argument("json", type=str, help="path to json file")
parser.add_argument("--save_path", type=str, default="./")
args = parser.parse_args()
with open(args.json, "r") as ... |
oitozero/eskimo | app/controllers/api.js |
// # api
exports = module.exports = function() {
function login(req, res, next) {
res.json(req.user);
}
function updateUser(req, res, next) {
// we are simply re-using eskimo's default
// user update method in the users controller
// that ships with eskimo; just to save time
// we are manu... |
shahnidhi/MetaCarvel | OGDF/include/coin/sym_return_values.h | <reponame>shahnidhi/MetaCarvel
/*===========================================================================*/
/* */
/* This file is part of the SYMPHONY MILP Solver Framework. */
/* ... |
josuerf/rf-online-gs-editor | src/structs/server/item/tower_struct.js | import Struct from '~/classes/Struct';
export default new Struct().fromSchema1([
{ child: { type: Number, name: 'nIndex', len: 32 } },
{ child: { type: String, name: 'strCode', len: 64 } },
{ child: { type: String, name: 'strModel', len: 64 } },
{ child: { type: String, name: 'strCharMeshID', len: 64 } },
{ ... |
iamjack996/Vue-SPA | public/package/phaser3-examples-master/public/src/input/mouse/ellipse hit area.js | <gh_stars>0
var config = {
type: Phaser.WEBGL,
parent: 'phaser-example',
pixelArt: true,
width: 800,
height: 600,
scene: {
preload: preload,
create: create
}
};
var game = new Phaser.Game(config);
function preload ()
{
this.load.image('chick', 'assets/sprites/budbrain_c... |
heixiaoma/HServer-For-Java | HServer/src/main/java/top/hserver/core/interfaces/PermissionAdapter.java | <gh_stars>1-10
package top.hserver.core.interfaces;
import top.hserver.core.ioc.annotation.RequiresPermissions;
import top.hserver.core.ioc.annotation.RequiresRoles;
import top.hserver.core.ioc.annotation.Sign;
import top.hserver.core.server.context.Webkit;
import top.hserver.core.server.router.RouterManager;
import t... |
mjk/js-vim | test/visual.js | <gh_stars>10-100
describe('visual', function() {
var Vim = require('../index');
var vim = new Vim();
var expect = require('chai').expect
var doc;
beforeEach(function() {
doc = new Doc({text:'asdf\nzxcv\nqwer\nfourth'});
vim.curDoc = doc;
vim.exec('esc');
vim.exec('gg');
vim.exec('0');
vim.exec('j');
... |
ScalablyTyped/SlinkyTyped | a/antv__util/src/main/scala/typingsSlinky/antvUtil/groupByMod.scala | package typingsSlinky.antvUtil
import org.scalablytyped.runtime.StringDictionary
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object groupByMod {
@JSImport("@antv/util/... |
kuberlogic/kuberlogic | modules/dynamic-apiserver/internal/generated/restapi/operations/service/service_delete.go | // Code generated by go-swagger; DO NOT EDIT.
package service
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the generate command
import (
"net/http"
"github.com/go-openapi/runtime/middleware"
"github.com/kuberlogic/kuberlogic/modules/dynamic-apiserver/in... |
liweidev/ForestPoliceMobileTerminal | app/src/main/java/com/yhkj/yhsx/forestpolicemobileterminal/activity/LoginActivity.java | package com.yhkj.yhsx.forestpolicemobileterminal.activity;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.provider.Settings;
import android.... |
Plex-VDR-HDHomerun/androidtv-example-plexdvrinput | app/src/main/java/com/example/android/plexdvrinput/player/utils/ITvListing.java | <filename>app/src/main/java/com/example/android/plexdvrinput/player/utils/ITvListing.java
package com.example.android.plexdvrinput.player.utils;
import com.google.android.media.tv.companionlibrary.model.Channel;
import com.google.android.media.tv.companionlibrary.model.Program;
import java.util.List;
public interfac... |
dungard/mangooio | mangooio-test/src/main/java/io/mangoo/test/utils/WebResponse.java | package io.mangoo.test.utils;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import org.apache.commons.lang3.StringUtils;
import org.apac... |
shniu/tdd-starter | eco-algorithm/src/main/java/io/github/shniu/algorithm/interview/PasswordChecker.java | <reponame>shniu/tdd-starter<filename>eco-algorithm/src/main/java/io/github/shniu/algorithm/interview/PasswordChecker.java
package io.github.shniu.algorithm.interview;
import java.util.HashMap;
import java.util.Map;
/**
* 密码校验问题:本质是字符串匹配
* @author niushaohan
* @date 2021/4/28 11
*/
public class PasswordChecker {
... |
jon-jones-DDOT/Signworks3 | node_modules/calcite-react/Checkbox/Checkbox-styled.js | <gh_stars>0
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.StyledCheckboxGroup = exports.StyledCheckboxLabel = exports.StyledCheckbox = void 0;
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _helpers = require("../utils/helpers");
var _commo... |
TencentCloud/container-demo | qcbm/qcbm-backend/qcbm-gateway/src/main/java/demo/tcloud/triblewood/qcbm/web/entity/JwtUser.java | package demo.tcloud.triblewood.qcbm.web.entity;
import demo.tcloud.triblewood.qcbm.common.UserInfoDto;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import java.uti... |
shuangwei-Ye/WeChat_tweak | Resources/WC_7_0_5_Headers/WCMemoryStatPluginDelegate-Protocol.h | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
@class NSDictionary, WCMemoryStatPlugin;
@protocol WCMemoryStatPluginDelegate <NSObject>
- (void)onMemoryStatPlugin:(WCMemoryStatPlugin *)arg1 hasError:(int)arg2;
-... |
feathericon/feathericon-react | dist/icons/location.js | <gh_stars>0
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source... |
EtherTyper/dummydroid-patched | de/onyxbits/raccoon/proto/ModifyLibraryRequest.java | package de.onyxbits.raccoon.proto;
import com.google.protobuf.AbstractMessageLite;
import com.google.protobuf.AbstractParser;
import com.google.protobuf.ByteString;
import com.google.protobuf.CodedInputStream;
import com.google.protobuf.CodedOutputStream;
import com.google.protobuf.Descriptors;
import com.google.proto... |
leapdroid-team/leapdroid | LeapGL/host/libs/libOpenglRender/WindowSurface.cpp | /*
* Copyright (C) 2011 The Android Open Source Project
*
* 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... |
s4s0l/stupid | src/main/java/com/madisp/stupid/expr/StatementListExpression.java | <reponame>s4s0l/stupid<filename>src/main/java/com/madisp/stupid/expr/StatementListExpression.java
package com.madisp.stupid.expr;
import com.madisp.stupid.ExecContext;
import com.madisp.stupid.Expression;
import com.madisp.stupid.StupidRuntimeException;
import com.madisp.stupid.Value;
import java.util.Collections;
im... |
EricvanLessen/MaxiMMI_Tablet | Application/src/main/java/com/example/android/maximmi/databaseSource.java | <filename>Application/src/main/java/com/example/android/maximmi/databaseSource.java
package com.example.android.maximmi;
import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
/**
*... |
GabrielSturtevant/mage | Mage.Sets/src/mage/cards/s/ScreechingPhoenix.java | <gh_stars>1000+
package mage.cards.s;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.continuous.BoostControlledEffect;
import mage.constants.SubType;
import mage.abilities.keyword.Flyi... |
shawkins/infinispan-1 | client/hotrod-client/src/test/java/org/infinispan/client/hotrod/event/ClientCustomEventsTest.java | package org.infinispan.client.hotrod.event;
import static org.infinispan.client.hotrod.test.HotRodClientTestingUtil.withClientListener;
import org.infinispan.client.hotrod.RemoteCache;
import org.infinispan.client.hotrod.annotation.ClientListener;
import org.infinispan.client.hotrod.event.CustomEventLogListener.Custo... |
sivanag1974/t-vault | tvaultuiv2/src/components/AddAwsApplication/index.js | <gh_stars>100-1000
/* eslint-disable no-nested-ternary */
import React, { useState, useEffect, useReducer } from 'react';
import styled, { css } from 'styled-components';
import useMediaQuery from '@material-ui/core/useMediaQuery';
import { InputLabel } from '@material-ui/core';
import RadioGroup from '@material-ui/cor... |
eyolo2021/ios-ui-sdk-set | Sticker/View/RCStickerPackageView.h | //
// RCStickerPackageView.h
// RongSticker
//
// Created by Zhaoqianyu on 2018/8/15.
// Copyright © 2018年 RongCloud. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "RCStickerPackageConfig.h"
@interface RCStickerPackageView : UIView
- (instancetype)initWithPackageConfig:(RCStickerPackageConfig *)package... |
maurizioabba/rose | src/midend/programAnalysis/annotationLanguageParser/analyze.cc | <gh_stars>1-10
#include "broadway.h"
using namespace std;
analyzeAnn::analyzeAnn(Annotations * anns,
const parserID * property,
rule_list * rules,
int line)
: Ann(line),
_property(0),
_rules(),
_default(0),
_applicable_rule(0)
{
if (rules) {
_rules.swap(*rules);
... |
painter1024/EmptyProject | app/src/main/java/painter1024/emptyproject/project/data/net/util/ApiUtil.java | package painter1024.emptyproject.project.data.net.util;
import android.content.Intent;
import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.functions.Consumer;
import io.reactivex.functions.Function;
import io.reactivex.schedulers.Schedulers;
import painter1024... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.