repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
goldsborough/algs4 | stacks-queues/java/src/LinkedListQueue.java | /**
* Created by petergoldsborough on 08/15/15.
*/
public class LinkedListQueue<T>
{
public void enqueue(T item)
{
Node node = new Node(item);
_last.next = node;
_last = node;
++_size;
}
public T dequeue()
{
T item = _first.item;
Node next = _f... |
FlashYoshi/neio | examples/0.3/thesis/src/main/java/be/ugent/thesis/parsing/Thesis.java | <filename>examples/0.3/thesis/src/main/java/be/ugent/thesis/parsing/Thesis.java
// Generated from Thesis.g4 by ANTLR 4.5.1
package be.ugent.thesis.parsing;
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.TokenStream;
import org.an... |
Biyorne/learningcpp | castle-crawl/src/game-coordinator.cpp | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
//
// game-coordinator.cpp
//
#include "game-coordinator.hpp"
#include "util.hpp"
#include <algorithm>
#include <filesystem>
#include <iostream>
#include <mem... |
enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/testsuite/gcc.c-torture/compile/930325-1.c | <gh_stars>100-1000
typedef unsigned uint;
inline
g (uint *s, uint *d, uint c)
{
while (c != 0)
{
*--d = *--s;
c--;
}
}
f (uint *p1, uint c, uint *p2)
{
while (c > 0 && *p1 == 0)
{
p1++;
c--;
}
if (c == 0)
return 1;
g (p2, p1, c);
}
|
JamesCao2048/BlizzardData | Corpus/aspectj/4050.java | public @interface Demo {
Class[] myValues() default { };
}
|
rrjha/dosp | xinu/lib/strncat.c | <reponame>rrjha/dosp
/* strncat.c - strncat */
/*------------------------------------------------------------------------
* strncat - Concatenate s2 onto the end of s1. Sufficient space must
* exist at the end of s1; ar most n characters are
* copied
*-------------------------------------------------------... |
jeffpuzzo/jp-rosa-react-form-wizard | node_modules/@patternfly/react-table/node_modules/@patternfly/react-icons/dist/js/icons/telegram-icon.js | "use strict"
exports.__esModule = true;
exports.TelegramIconConfig = {
name: 'TelegramIcon',
height: 512,
width: 496,
svgPath: 'M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm121.8 169.9l-40.7 191.8c-3 13.6-11.1 16.9-22.4 10.5l-62-45.7-29.9 28.8c-3.3 3.3-6.1 6.1-12.5 6.1l4.4-63.1 114.9-10... |
ShadowEditor/ShadowEditor | web/test/WebWorldWind/src/util/GoToAnimator.js | /*
* Copyright 2003-2006, 2009, 2017, United States Government, as represented by the Administrator of the
* National Aeronautics and Space Administration. All rights reserved.
*
* The NASAWorldWind/WebWorldWind platform is licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file... |
patte/styleguide | src/components/Overlay/index.js | export { default as Overlay } from './Overlay'
export { OverlayToolbar } from './OverlayToolbar'
export { default as OverlayBody } from './OverlayBody'
|
extremenelson/sirius | lucida/questionanswering/OpenEphyra/src/info/ephyra/nlp/OpenNLP.java | package info.ephyra.nlp;
import info.ephyra.util.RegexConverter;
import info.ephyra.util.StringUtils;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import o... |
JensDerKrueger/ImageVis3D | ImageVis3D/UI/ImageVis3D_I3M.cpp | <gh_stars>0
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2008 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated do... |
hskang9/fabric-chaincode-evm | vendor/github.com/hyperledger/fabric-sdk-go/pkg/fabsdk/defpkgsuite.go | /*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package fabsdk
import (
"github.com/hyperledger/fabric-sdk-go/api/apilogging"
"github.com/hyperledger/fabric-sdk-go/def/factory/defclient"
"github.com/hyperledger/fabric-sdk-go/def/factory/defcore"
"github.com/hy... |
ebase-projects/ebase-boot | ebase-boot-project/ebase-boot-core/ebase-boot-core-security/src/main/java/me/dwliu/framework/core/security/crypto/CustomPasswordEncoderFactories.java | /*
* Copyright 2002-2017 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... |
Lex-DRL/renderdoc-py-stubs | _pycharm_skeletons/renderdoc/GLFixedVertexProcessing.py | <reponame>Lex-DRL/renderdoc-py-stubs
# encoding: utf-8
# module renderdoc
# from P:\1-Scripts\_Python\Py-Autocomplete\renderdoc.pyd
# by generator 1.146
# no doc
# imports
import enum as __enum
from .SwigPyObject import SwigPyObject
class GLFixedVertexProcessing(SwigPyObject):
""" Describes the setup for fixed ... |
becm/mpt-base | mptcore/event/notify_dispatch.c | /*!
* init/fini notifier.
*/
#include <stdlib.h>
#include <inttypes.h>
#include "../mptio/notify.h"
#include "output.h"
#include "event.h"
static int dispatchEvent(void *arg, MPT_STRUCT(event) *ev)
{
MPT_STRUCT(dispatch) *disp = arg;
if (!ev) {
mpt_dispatch_fini(disp);
free(disp);
return 0;
}
/* proces... |
Dbevan/SunderingShadows | d/darkwood/camps/mon/elguard.c | #include <std.h>
#include "../elfisland1.h"
inherit MONSTER;
void create()
{
::create();
set_name("guard");
set_id(({ "elf", "guard" }));
set_short("Elven guard");
set_long(
"This elven guard is dedicated to protecting villagers and the" +
" paths leading to the elven village of Sy... |
LoongPenguin/Linux_210 | kernel/drivers/s390/scsi/zfcp_dbf.h | /*
* This file is part of the zfcp device driver for
* FCP adapters for IBM System z9 and zSeries.
*
* Copyright IBM Corp. 2008, 2009
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; ei... |
goodmind/FlowDefinitelyTyped | flow-types/types/p-waterfall_vx.x.x/flow_v0.25.x-/p-waterfall.js | declare module "p-waterfall" {
declare module.exports: typeof pWaterfall;
declare type Task<T, R> = (previousValue: T) => R | PromiseLike<R>;
declare type InitialTask<R> = () => R | PromiseLike<R>;
declare function pWaterfall<R>(tasks: [InitialTask<R>]): Promise<R>;
declare function pWaterfall<T1, R>(
t... |
googleapis/googleapis-gen | google/storage/v1/google-cloud-storage-v1-java/proto-google-cloud-storage-v1-java/src/main/java/com/google/storage/v1/CommonRequestParamsOrBuilder.java | <gh_stars>1-10
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v1/storage.proto
package com.google.storage.v1;
public interface CommonRequestParamsOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.storage.v1.CommonRequestParams)
com.google.protobuf.Me... |
bowring/ET_Redux | src/main/java/org/earthtime/Tripoli/rawDataFiles/templates/Thermo/ValenciaWashStateElementII_RawDataTemplate.java | /*
* ValenciaWashStateElementII_RawDataTemplate
*
* Copyright 2006-2018 <NAME>, CIRDLES.org, and Earth-Time.org
*
* 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... |
Arun-Singh-Chauhan-09/Supply-demand-forecasting | exploredata/visualization.py | <filename>exploredata/visualization.py
from order import ExploreOrder
import matplotlib.pyplot as plt
import seaborn as sns
sns.set(color_codes=True)
from utility.datafilepath import g_singletonDataFilePath
from weather import ExploreWeather
from traffic import ExploreTraffic
import numpy as np
import math
from poi imp... |
tzulberti/entrenamiento-arqueria | alembic/versions/032_razon_gasto.py | <filename>alembic/versions/032_razon_gasto.py<gh_stars>0
"""razon gasto
Revision ID: 032
Revises: 031
Create Date: 2014-10-18 07:39:43.893448
"""
# revision identifiers, used by Alembic.
revision = '032'
down_revision = '031'
import inspect
import imp
import os
from alembic import op
def upgrade():
utils_path ... |
manasys/grouper | grouper-misc/grouper-ui-dojo/dojo/dojox/atom/io/model.js | <filename>grouper-misc/grouper-ui-dojo/dojo/dojox/atom/io/model.js
//>>built
define("dojox/atom/io/model",["dojo/_base/kernel","dojo/_base/declare","dojo/_base/lang","dojo/date/stamp","dojox/xml/parser"],function(_1,_2,_3,_4,_5){
var _6={};
_1.setObject("dojox.atom.io.model",_6);
_6._Constants={"ATOM_URI":"http://www.w... |
cbeer/web | app/controllers/users_controller.rb | <filename>app/controllers/users_controller.rb
# Copyright 2013 Square 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
#
# ... |
rs-ravi2/Codes | GeeksforGeeks/Outputs/27.cpp | <reponame>rs-ravi2/Codes
#include <bits/stdc++.h>
using namespace std;
void fun(int *a)
{
a = (int*)malloc(sizeof(int));
}
int main()
{
int *p;
fun(p);
*p = 6;
cout << *p;
return 0;
}
/*Because of the uncertainty in dereferencing of the variable for invalid memory reference,
the code ... |
Rhinob1/data-integration | dataintegration-model/dataintegration-model-management-provider/src/main/java/com/youngdatafan/portal/model/management/outinterfacemodel/service/OutinterfaceModelService.java | <reponame>Rhinob1/data-integration<gh_stars>0
package com.youngdatafan.portal.model.management.outinterfacemodel.service;
import com.youngdatafan.dataintegration.core.model.Result;
import com.youngdatafan.portal.model.management.common.entity.ModelDTO;
import com.youngdatafan.portal.model.management.outinterfacemodel.... |
Meridian59Kor/Meridian59 | module/stats/stats.h | // Meridian 59, Copyright 1994-2012 <NAME> and <NAME>.
// All rights reserved.
//
// This software is distributed under a license that is described in
// the LICENSE file that accompanies it.
//
// Meridian is a registered trademark.
/*
* stats.h: Main header file for character stat adjustment DLL
*/
#ifndef _STATS... |
Juicestus/Computer-Science | CS-1-Labs/Pr0301.java | <filename>CS-1-Labs/Pr0301.java
public class Pr0301 {
// Wait have we not learned boolean type yet???
public static boolean verify(int n) {
return n > MyLibrary.getRandNum(1, 100);
}
public static void main(String[] args) {
int n = MyLibrary.getInt("Give me an integer between 1 and 100"... |
xiaohesongww/HESProject | huiErShi-iOS/Modular/Schedule/Controller/RepeatTipViViewController.h | <filename>huiErShi-iOS/Modular/Schedule/Controller/RepeatTipViViewController.h
//
// RepeatTipViViewController.h
// huiErShi-iOS
//
// Copyright © 2017年 yangsen. All rights reserved.
//
#import "MainBaseViewController.h"
@interface RepeatTipViViewController : MainBaseViewController
@end
|
spunkmars/ProFTPD-Admin | src/proftpd/ftpadmin/lib/model_common.py | #coding=utf-8
from proftpd.ftpadmin.lib.common import initlog
#logger2=initlog()
def get_model_all_field_objects(model=None):
field_objects = []
if model is not None:
field_objects = [ y[0] for y in model._meta.get_fields_with_model() ]
return field_objects
def get_model_relate_field(model=None... |
Carlososuna11/codewars-handbook | python/kata/6-kyu/Consecutive strings/main.py | import codewars_test as test
from solution import longest_consec
def testing(actual, expected):
test.assert_equals(actual, expected)
test.describe("longest_consec")
test.it("Basic tests")
testing(longest_consec(["zone", "abigail", "theta", "form", "libe", "zas"], 2), "abigailtheta")
testing(longest_consec(["ejjjj... |
EvenOldridge/NVTabular | tests/integration/test_notebooks.py | <filename>tests/integration/test_notebooks.py<gh_stars>0
#
# Copyright (c) 2020, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LIC... |
MingkeVan/java-interview | src/main/java/com/fanmk/jvm/RuntimeConstantPoolOOM.java | package com.fanmk.jvm;
import java.util.ArrayList;
import java.util.List;
/**
* @program: com.fanmk.interview
* @author: fanmk
* @email: <EMAIL>
* @decription:
* @date: 2020/3/2 23:12
*/
public class RuntimeConstantPoolOOM {
public static void main(String[] args) {
List<String> list = new ArrayList... |
Wuwenxu/code-camp-java | code-camp-java-base/src/main/java/com/wuwenxu/codecamp/base/arithmetic/jzoffer/GetNumberOfK.java | <gh_stars>1-10
package com.wuwenxu.codecamp.base.arithmetic.jzoffer;
/**
* 数字在排序数组中出现的次数
*
* 统计一个数字在排序数组中出现的次数。
* 2.排序数组->数组元素有序->二分查找到这个数字,
* 然后依次上前向后查找出最前一个和最后一个相同元素(因为数组是排序数组,是有序的,这个数字在该数组中连续出现)
*/
public class GetNumberOfK {
public int GetNumberOfK(int [] array , int k) {
if(ar... |
Capstone-Team-34/Slicer4J | benchmarks/JacksonDatabind_3b/src/test/java/com/fasterxml/jackson/databind/creators/TestCreators3.java | package com.fasterxml.jackson.databind.creators;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.*;
public class TestCreators3 extends BaseMapTest
{
static class MultiCtor
{
protected String _a, _b;
... |
yrong/nextcloud-token-auth | apps/theming/l10n/it.js | <filename>apps/theming/l10n/it.js<gh_stars>0
OC.L10N.register(
"theming",
{
"Saved" : "Salvato",
"Admin" : "Amministratore",
"a safe home for all your data" : "una casa sicura per i tuoi dati",
"The given name is too long" : "Questo nome è troppo lungo",
"The given web address is too long" :... |
honstar/jackrabbit-oak | oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/util/SuggestHelper.java | <filename>oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/util/SuggestHelper.java<gh_stars>1-10
/*
* 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 c... |
KOLANICH/octargs | include/octargs/internal/switch_argument_impl.hpp | <reponame>KOLANICH/octargs<filename>include/octargs/internal/switch_argument_impl.hpp
#ifndef OCTARGS_SWITCH_ARGUMENT_IMPL_HPP_
#define OCTARGS_SWITCH_ARGUMENT_IMPL_HPP_
#include "argument_base_impl.hpp"
namespace oct
{
namespace args
{
namespace internal
{
template <typename char_T, typename values_storage_T>
class... |
pramodbiligiri/datahub | datahub-upgrade/src/main/java/com/linkedin/datahub/upgrade/restorebackup/backupreader/BackupReader.java | package com.linkedin.datahub.upgrade.restorebackup.backupreader;
import com.linkedin.datahub.upgrade.UpgradeContext;
import javax.annotation.Nonnull;
/**
* Base interface for BackupReader used for creating the BackupIterator to retrieve EbeanAspectV2 object to be
* ingested back into GMS
*/
public interface Backu... |
ndau/ndaujs | test/api/ServiceDiscovery-test.js | /* ----- ---- --- -- -
* Copyright 2020 The Axiom Foundation. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.apache.org/l... |
frankgh/cassandra | test/unit/org/apache/cassandra/cql3/validation/operations/AutoSnapshotTest.java | <reponame>frankgh/cassandra
/*
* 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 ... |
mautematico/lamassu-server | new-lamassu-admin/src/pages/Notifications/components/SingleFieldEditableNumber.js | <gh_stars>1-10
import { Form, Formik } from 'formik'
import React, { useContext } from 'react'
import * as Yup from 'yup'
import NotificationsCtx from '../NotificationsContext'
import Header from './EditHeader'
import EditableNumber from './EditableNumber'
const SingleFieldEditableNumber = ({
title,
label,
wid... |
HuttonICS/germinate | src/jhi/germinate/client/widget/element/ScatterChartSelection.java | <reponame>HuttonICS/germinate
/*
* Copyright 2017 Information and Computational Sciences,
* The James Hutton Institute.
*
* 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
*
* h... |
Lavish883/Loki-Stream | node_modules/@babel/types/scripts/generators/asserts.js | version https://git-lfs.github.com/spec/v1
oid sha256:fcb76b02e0a4d5e50f27bcaa0e12729c2108e89ab7af803fd0468907ecb6184f
size 1458
|
dpaiton/DeepSparseCoding | tf1x/modules/sae_module.py | <filename>tf1x/modules/sae_module.py
import tensorflow as tf
from DeepSparseCoding.tf1x.utils.trainable_variable_dict import TrainableVariableDict
import DeepSparseCoding.tf1x.utils.entropy_functions as ef
from DeepSparseCoding.tf1x.modules.ae_module import AeModule
from DeepSparseCoding.tf1x.modules.activations impor... |
witchlove/hib_immo | app/models/contact.js | <reponame>witchlove/hib_immo<filename>app/models/contact.js
var Contact = DS.Model.extend(
{
subject: DS.attr('String'),
question: DS.attr('String'),
from: DS.attr('String'),
name: DS.attr('String'),
firstName: DS.attr('String'),
phone: DS.attr('String'),
mail... |
derrykid/Line-MessageAPI-Poker | sample-spring-boot-echo/src/main/java/Game/Player.java | package Game;
import Card.Card;
import Poker.Analyzer.Classification;
import java.util.Set;
import java.util.TreeSet;
public class Player {
public static final int ALIVE = 0;
public static final int CHECK = 1;
public static final int FOLD = 2;
private String userID;
/*
* position starts w... |
Lens-Platform/Platform | src/libraries/core/core-utilities/httperr.go | package core_delay
import (
"bytes"
"encoding/json"
"net/http"
)
// HandleError checks if the error is not nil, writes it to the output
// with the specified status code, and returns true. If error is nil it returns false.
func HandleError(w http.ResponseWriter, err error, statusCode int) bool {
if err == nil {
... |
Vizzuality/trase | spec/support/contexts/api/v3/brazil/brazil_soy_flow_quants.rb | <reponame>Vizzuality/trase<filename>spec/support/contexts/api/v3/brazil/brazil_soy_flow_quants.rb
shared_context 'api v3 brazil soy flow quants' do
include_context 'api v3 brazil soy flows'
include_context 'api v3 quants'
let!(:api_v3_brazil_soy_flow1_volume) do
FactoryBot.create(
:api_v3_flow_quant,
... |
hao-wang/Montage | js-test-suite/testsuite/cf1a0efae1078faee510f7bda78d4902.js | wasPostTestScriptParsed = true;
if (this.jsTestIsAsync) {
if (this.wasFinishJSTestCalled)
finishJSTest();
} else
finishJSTest();
|
Killswitchz/ggrc-core | src/ggrc/assets/javascripts/components/assessment/inline.js | /*!
Copyright (C) 2017 Google Inc.
Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
*/
(function (can, GGRC) {
'use strict';
var tpl = can.view(GGRC.mustache_path +
'/components/assessment/inline/inline.mustache');
var innerTplFolder = GGRC.mustache_path + '/components/assessm... |
shettyh/azure-cosmosdb-java | commons/src/main/java/com/microsoft/azure/cosmosdb/RetryOptions.java | <reponame>shettyh/azure-cosmosdb-java<filename>commons/src/main/java/com/microsoft/azure/cosmosdb/RetryOptions.java
/*
* The MIT License (MIT)
* Copyright (c) 2018 Microsoft Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation... |
drwicked/ketosis-js | examples/host_proxy/index.js | var server = require('../../')
var request = require('request')
var proxy = server()
proxy.listen('test.local.com:3000')
proxy.header(function($){
request.get('http://test2.local.com:5000/', function(error, response, body){
if(error) throw error;
$.send('\nPort 3000 reached\n\nResponse from http://test2.local.com... |
SandraBSofiaH/Final-UMldoclet | src/plantuml-asl/src/net/sourceforge/plantuml/project/draw/ResourceDraw.java | <reponame>SandraBSofiaH/Final-UMldoclet<filename>src/plantuml-asl/src/net/sourceforge/plantuml/project/draw/ResourceDraw.java
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================... |
miotech/KUN | kun-data-quality/data-quality-operators/src/test/java/com/miotech/kun/workflow/operator/MockValidationResultFactory.java | package com.miotech.kun.workflow.operator;
import com.google.common.collect.ImmutableList;
import com.miotech.kun.commons.utils.DateTimeUtils;
import com.miotech.kun.commons.utils.IdGenerator;
import com.miotech.kun.dataquality.core.assertion.ComparisonOperator;
import com.miotech.kun.dataquality.core.expectation.Asse... |
Shinji1987/interactiver | app/controllers/messages_controller.rb | class MessagesController < ApplicationController
before_action :find_chat, :only => [:new, :create]
before_action :authenticate_user!
def new
if request.referer&.include?("/messages")
@user_record_double = ChatUser.where(:chat_id => @chat.id).pluck(:created_user_id, :invited_user_id)
@user_record... |
riveign/zenoffice-frontend | node_modules/recharts/demo/component/LineChart.js | import React from 'react';
import CustomLineDot from './CustomLineDot';
import { changeNumberOfData } from './utils';
import { ResponsiveContainer, LineChart, Line, XAxis, YAxis, ReferenceLine,
ReferenceDot, Tooltip, CartesianGrid, Legend, Brush } from 'recharts';
const data = [
{ name: 'Page A', uv: 400, pv: 2400... |
jsonshen/MyBatisX | generator/src/main/java/org/shenjia/mybatis/generator/plugins/ExtendableModelPlugin.java | <reponame>jsonshen/MyBatisX<filename>generator/src/main/java/org/shenjia/mybatis/generator/plugins/ExtendableModelPlugin.java
/**
* Copyright 2015-2016 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 Li... |
tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | XFree86-3.3/xc/programs/x11perf/do_dots.c | <filename>XFree86-3.3/xc/programs/x11perf/do_dots.c
/* $XConsortium: do_dots.c,v 2.5 94/02/06 20:17:34 rws Exp $ */
/*****************************************************************************
Copyright 1988, 1989 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
... |
paser4se/odyssey-reactive-messaging | reactive-messaging/src/main/java/com/amadeus/middleware/odyssey/reactive/messaging/core/impl/PublisherInvoker.java | <filename>reactive-messaging/src/main/java/com/amadeus/middleware/odyssey/reactive/messaging/core/impl/PublisherInvoker.java
package com.amadeus.middleware.odyssey.reactive.messaging.core.impl;
import org.reactivestreams.Publisher;
import com.amadeus.middleware.odyssey.reactive.messaging.core.Message;
public interfa... |
tlhhup/scala-learn | scala-chapter-2/src/test/scala/org/tlh/scala/test/examples/StackSpec.scala | package org.tlh.scala.test.examples
import java.util
import java.util.EmptyStackException
import org.scalatest.FlatSpec
/**
* <br>
* Created by <NAME> on 6/27/2019
* <p>
*/
class StackSpec extends FlatSpec {
// subject + verb(should, must, or can) + sentence
"A Stack" should "pop values i... |
petascalr/algohut | src/main/java/com/specflare/algohut/trees/SuffixTree.java | <reponame>petascalr/algohut
package com.specflare.algohut.trees;
/**
* References:
* - https://www.sanfoundry.com/java-program-implement-suffix-tree/
* - https://brenden.github.io/ukkonen-animation/
* - https://www.geeksforgeeks.org/ukkonens-suffix-tree-construction-part-1/
*/
class Node {
public int suff... |
andreaTP/kanela | agent/src/main/java/kanela/agent/api/instrumentation/bridge/BridgeClassVisitorWrapper.java | <filename>agent/src/main/java/kanela/agent/api/instrumentation/bridge/BridgeClassVisitorWrapper.java
/*
* =========================================================================================
* Copyright © 2013-2018 the kamon project <http://kamon.io/>
*
* Licensed under the Apache License, Version 2.0 (the "Li... |
gandulf/DsaTab | DsaTab/src/main/java/com/dsatab/data/enums/TalentType.java | <gh_stars>10-100
package com.dsatab.data.enums;
public enum TalentType {
Anderthalbhänder(
"Anderthalbhänder",
TalentGroupType.Nahkampf
, -2),
Armbrust(
"Armbrust",
TalentGroupType.Fernkampf
, -5),
Bastardstäbe(
"Bastardstä... |
UmmMinecraft/AgriCraft | src/main/java/com/infinityraider/agricraft/api/v1/crop/IAgriHarvestable.java | package com.infinityraider.agricraft.api.v1.crop;
import java.util.function.Consumer;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import net.minecraft.entity.LivingEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ActionResultType;
/**
* Interface for harvestable objects.... |
nasa/gunns | aspects/fluid/source/GunnsFluidEvaporation.hh | #ifndef GunnsFluidEvaporation_EXISTS
#define GunnsFluidEvaporation_EXISTS
/**
@file
@brief GUNNS Fluid Evaporation Link declarations
@defgroup TSM_GUNNS_FLUID_SOURCE_EVAPORATION Evaporation Model
@ingroup TSM_GUNNS_FLUID
@copyright Copyright 2019 United States Government as represented by the Administrator ... |
zealoussnow/chromium | chrome/browser/ui/webui/bookmarks/bookmarks_browsertest.h | // 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.
#ifndef CHROME_BROWSER_UI_WEBUI_BOOKMARKS_BOOKMARKS_BROWSERTEST_H_
#define CHROME_BROWSER_UI_WEBUI_BOOKMARKS_BOOKMARKS_BROWSERTEST_H_
#include "chrome/te... |
discentem/azure-sdk-for-go | sdk/resourcemanager/storagesync/armstoragesync/zz_generated_workflows_client.go | <filename>sdk/resourcemanager/storagesync/armstoragesync/zz_generated_workflows_client.go<gh_stars>1-10
//go:build go1.16
// +build go1.16
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Mi... |
viewdy/phantomjs | src/qt/qtwebkit/Source/WebCore/platform/network/blackberry/NetworkJob.cpp | /*
* Copyright (C) 2009, 2010, 2011, 2012, 2013 Research In Motion Limited. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License,... |
rudylee/expo | ios/Pods/Headers/Public/Protobuf/GPBRuntimeTypes.h | ../../../Protobuf/objectivec/GPBRuntimeTypes.h |
LudoCrypt/Backrooms-1.7.10 | src/main/java/net/ludocrypt/backrooms/block/entity/SpawnwallBlockEntity.java | package net.ludocrypt.backrooms.block.entity;
import java.util.UUID;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.nbt.IntArrayTag;
import net.minecraft.nbt.Tag;
public class SpawnwallBlockEntity extends Bloc... |
ABTSoftware/SciChart.NativeScript.Examples | src/platforms/ios/Pods/SciChart/SciChart.framework/Headers/SCIAxisStyle.h | <filename>src/platforms/ios/Pods/SciChart/SciChart.framework/Headers/SCIAxisStyle.h
//
// SCIAxisStyle.h
// SciChart
//
// Created by Admin on 20.10.15.
// Copyright © 2015 SciChart Ltd. All rights reserved.
//
/** \addtogroup Themes
* @{
*/
#import <Foundation/Foundation.h>
#import "SCIPen2D.h"
#import "SCICa... |
targeter21/drools | drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/GeneratedMvelParserBase.java | <reponame>targeter21/drools
/*
* Copyright (C) 2007-2010 <NAME>.
* Copyright (C) 2011, 2013-2016 The JavaParser Team.
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* This file is part of JavaParser.
*
* JavaParser can be used either under the terms of
* a) the GNU Lesser General Public License as publ... |
PhilShishov/Software-University | JS Essentials/Homeworks/03.Arrays-and-Matrices_Exercise/P04.js | <filename>JS Essentials/Homeworks/03.Arrays-and-Matrices_Exercise/P04.js
function solve(input) {
let rotation = Number(input.pop());
for (let i = 0; i < rotation % input.length; i++) {
let lastElement = input.pop();
input.unshift(lastElement);
}
console.log(input.join(" "));
}
solve... |
jackodsteel/RFToolsUtility | src/main/java/mcjty/rftoolsutility/modules/logic/client/GuiRedstoneInformation.java | package mcjty.rftoolsutility.modules.logic.client;
import com.mojang.blaze3d.matrix.MatrixStack;
import mcjty.lib.gui.GenericGuiContainer;
import mcjty.lib.gui.Window;
import mcjty.lib.gui.layout.HorizontalAlignment;
import mcjty.lib.gui.widgets.*;
import mcjty.lib.tileentity.GenericTileEntity;
import mcjty.rftoolsbas... |
wycivil08/blendocv | source/blender/modifiers/intern/MOD_uvproject.c | /*
* $Id: MOD_uvproject.c 40372 2011-09-19 19:55:59Z dfelinto $
*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (a... |
hlystovea/BBBS | project/api/migrations/0018_auto_20210611_2323.py | # Generated by Django 3.2.3 on 2021-06-11 16:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0017_video_tags'),
]
operations = [
migrations.AlterField(
model_name='movie',
name='tags',
field... |
renquanbo/location-engine-anchor-service | src/main/java/com/breadcrumbdata/anchor_service/dataobject/Level.java | <filename>src/main/java/com/breadcrumbdata/anchor_service/dataobject/Level.java<gh_stars>0
package com.breadcrumbdata.anchor_service.dataobject;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
public class Level {
@Id
@GeneratedValue
private I... |
weimingtom/X-moe | Unpacker/crass/cui/ADX/vgmstream-r526/src/meta/xbox_wvs.c | #include "meta.h"
#include "../util.h"
/* WVS
WVS (found in Metal Arms - Glitch in the System)
*/
VGMSTREAM * init_vgmstream_xbox_wvs(STREAMFILE *streamFile) {
VGMSTREAM * vgmstream = NULL;
char filename[260];
int loop_flag=0;
int channel_count;
int i;
/* check extension, case insensitive *... |
lnrCoder/Algorithm | src/com/liang/leetcode/L326.java | <filename>src/com/liang/leetcode/L326.java
package com.liang.leetcode;
/**
* @ClassName L326
* @description power-of-three
* @Author LiaNg
* @Date 2018/11/4
*/
public class L326 {
public static void main(String[] args) {
L326 l = new L326();
boolean result = l.isPowerOfThree(27);
Syst... |
JackSSS/Catch | server.js | <filename>server.js
var express = require('express');
var app = express();
var mongoose = require('mongoose');
mongoose.connect(process.env.MONGOLAB_URI || "mongodb://localhost/catch_dev");
var catchRouter = require(__dirname + '/routes/catch_routes');
var contactsRouter = require(__dirname + '/routes/contacts_routes'... |
ZetBrush/VidGen | MultiPick/src/main/java/com/luminous/pick/MainActivity.java | <filename>MultiPick/src/main/java/com/luminous/pick/MainActivity.java<gh_stars>0
package com.luminous.pick;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import android.app.Activity;
import android.app.... |
Zimpler/ironfan-pantry | cookbooks/redis/attributes/default.rb | <gh_stars>0
#
# Locations
#
default[:redis][:conf_dir] = "/etc/redis"
default[:redis][:log_dir] = "/var/log/redis"
default[:redis][:data_dir] = "/var/lib/redis"
default[:redis][:home_dir] = "/var/lib/redis"
default[:redis][:pid_file] = "/var/run/redis.pid"
default[:redis... |
tsingdao-Tp/Indigo | core/indigo-core/common/base_cpp/bitoutworker.h | <reponame>tsingdao-Tp/Indigo<filename>core/indigo-core/common/base_cpp/bitoutworker.h
/****************************************************************************
* Copyright (C) from 2009 to Present EPAM Systems.
*
* This file is part of Indigo toolkit.
*
* Licensed under the Apache License, Version 2.0 (the "Li... |
RugeroCarmelo/EBM_tool | src/main/java/EBM_tool/OWL2Prefuse/graph/NodeColorAction.java | package EBM_tool.OWL2Prefuse.graph;
import EBM_tool.OWL2Prefuse.OWL2Prefuse.Constants;
import prefuse.Visualization;
import prefuse.action.assignment.ColorAction;
import prefuse.visual.VisualItem;
/**
* This class is a specific ColorAction for the nodes in the graph.
* <p/>
* Project OWL2Prefuse <br/>
* NodeColor... |
idc9/mvmm_sim | mvmm_sim/simulation/gif_utils.py | # from imageio import mimsave, imread
from glob import glob
from natsort import natsorted
import os
from PIL import Image, ImageDraw # , ImageFont
import gif
def make_gif_from_dir(gif_fpath, img_dir, frame_length=0.5, font_size=20,
delete_images=False):
"""
Makes a gif from images store... |
Yeeyao/leetcode-go | array/59_test.go | package array
import (
"testing"
)
func TestPro(t *testing.T) {
t.Run("59. Spiral Matrix II", func(t *testing.T) {
input := 3
want := [][]int{{1, 2, 3}, {8, 9, 4}, {7, 6, 5}}
got := solution(input)
if !IntSliceEqual(got, want) {
t.Errorf("got: %v, want: %v", got, want)
}
})
t.Run("59. Spiral Matrix ... |
tristantarrant/protostream | core/src/test/java/org/infinispan/protostream/ProtobufParserTest.java | <gh_stars>0
package org.infinispan.protostream;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashSet;
import org.infinispan.protostream.descriptors.Descriptor;
import org.infinispan.protostream.descriptors.EnumDescriptor;
import org.infinispan.protostream.descriptors.FieldDescriptor;
import o... |
PaulsBecks/Blockchain-Logging-Framework | src/main/java/blf/blockchains/ethereum/reader/EthereumDataReader.java | package blf.blockchains.ethereum.reader;
import blf.core.exceptions.ExceptionHandler;
import blf.core.readers.DataReader;
import java.util.stream.Stream;
/**
* EthereumSources
*/
public class EthereumDataReader extends DataReader<EthereumClient, EthereumBlock, EthereumTransaction, EthereumLogEntry> {
public S... |
sfarrens/cosmostat | src/cxx/mga/libmga3d/IM3D_DCT.h | /******************************************************************************
** Copyright (C) 2008 by CEA
*******************************************************************************
**
** UNIT
**
** Version: 1.0
**
** Author: <NAME>
**
** Date: 24th Oct. 2008
**
** File: IM3D... |
stbly/gemp-swccg-public | gemp-swccg-logic/src/main/java/com/gempukku/swccgo/logic/effects/PutCardsFromHandOnBottomOfReserveDeckEffect.java | package com.gempukku.swccgo.logic.effects;
import com.gempukku.swccgo.common.Filterable;
import com.gempukku.swccgo.common.Zone;
import com.gempukku.swccgo.logic.timing.Action;
/**
* An effect to put cards from hand on bottom of Reserve Deck.
*/
public class PutCardsFromHandOnBottomOfReserveDeckEffect extends PutCa... |
IkwhanChang/bbb-file-manager | node_modules/tessel/test/badserver/test.js | <filename>node_modules/tessel/test/badserver/test.js
// This test fails if any error is thrown.
var async = require('async');
var assert = require('assert');
var builds = require('../../src/builds');
console.log('1..5');
assert(builds.utils.buildsPath == 'https://builds.tessel.io/');
function checkBogusServer (path... |
fcrimins/YTMusicUploader | Documentation/html/d5/d88/class_y_t_music_uploader_1_1_providers_1_1_request_models_1_1_browseendpointcontextmusicconfig6.js | var class_y_t_music_uploader_1_1_providers_1_1_request_models_1_1_browseendpointcontextmusicconfig6 =
[
[ "pageType", "d5/d88/class_y_t_music_uploader_1_1_providers_1_1_request_models_1_1_browseendpointcontextmusicconfig6.html#ad50707aca2c88ac8a8df658f21e93a95", null ]
]; |
HawxChen/barrelfishOS | usr/monitor/iref.c | /**
* \file
* \brief IREF allocation/management
*/
/*
* Copyright (c) 2007, 2008, 2010, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Haldeneggsteig 4, CH-809... |
AlexeySKiselev/unirand | test/distributions.seed.test.js | /**
* Tests for distributions with seed
* As PRNG was tested, seeded generator generates uniform distribution [0, 1)
* Distributions also tested for PRNG without seed
* Created by <NAME>
*/
// Import Mocha tool for tests
let chai = require('chai'),
expect = chai.expect,
{describe, it} = require(... |
robotan0921/mruby_on_tinet-tecs | asp3/tecsgen/cdelib/tcontrol.rb | # -*- coding: utf-8 -*-
=begin
TECSCDE - TECS Component Diagram Editor
Copyright (C) 2014-2015 by TOPPERS Project
The above copyright holders grant permission gratis to use,
duplicate, modify, or redistribute (hereafter called use) this
software (including the one made by modifying this software),
provided that... |
Faulik/ruby_kaiter | db/migrate/20151025182727_create_sprints.rb | class CreateSprints < ActiveRecord::Migration
def change
create_table :sprints do |t|
t.string :title, limit:45
t.date :started_at
t.date :finished_at
t.string :state
t.timestamps null: false
end
end
end
|
helloximeier/LoveFlyHome | LoveFlyHome/PublicClass/Constant.h | <filename>LoveFlyHome/PublicClass/Constant.h
//
// SearchBarView.h
// LoveFlyHome
//
// Created by Lefeng on 16/5/26.
// Copyright © 2016年 Lefeng. All rights reserved.
//
#ifndef meituan_Constant_h
#define meituan_Constant_h
//友盟Appkey
#define UMAPPKEY @"<KEY>"
#endif
|
arubdesu/zentral | zentral/contrib/monolith/migrations/0044_auto_20201130_0824.py | # Generated by Django 2.2.17 on 2020-11-30 08:24
from datetime import datetime
from django.db import migrations, models
def set_default_manifest_timestamps(apps, schema_editor):
now = datetime.utcnow()
Manifest = apps.get_model("monolith", "Manifest")
for manifest in Manifest.objects.all():
manif... |
wh14274493/raft | server/src/main/java/cn/ttplatform/wh/data/log/LogFileMetadataRegion.java | package cn.ttplatform.wh.data.log;
import cn.ttplatform.wh.data.support.MetadataRegion;
import lombok.extern.slf4j.Slf4j;
import java.io.File;
import static cn.ttplatform.wh.data.FileConstant.LOG_FILE_HEADER_SPACE_POSITION;
import static cn.ttplatform.wh.data.FileConstant.LOG_FILE_HEADER_SPACE_SIZE;
/**
* @author ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.