repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
rLadia-demo/AttacknidPatch | decompiled_src/CFR/org/anddev/andengine/audio/BaseAudioManager.java | /*
* Decompiled with CFR 0_79.
*/
package org.anddev.andengine.audio;
import java.util.ArrayList;
import org.anddev.andengine.audio.IAudioEntity;
import org.anddev.andengine.audio.IAudioManager;
public abstract class BaseAudioManager<T extends IAudioEntity>
implements IAudioManager<T> {
protected final ArrayLis... |
white-lab/pyproteome | pyproteome/motifs/weblogo.py | <filename>pyproteome/motifs/weblogo.py<gh_stars>1-10
import os
import math
import requests
try:
from IPython.display import Image
except ImportError:
Image = None
from . import motif
WEBLOGO_URL = 'http://weblogo.threeplusone.com/create.cgi'
def make_logo(
data,
**kwargs
):
'''
Create a se... |
apache/lenya | org.apache.lenya.core.workflow/src/test/java/org/apache/lenya/cms/workflow/WorkflowTest.java | <filename>org.apache.lenya.core.workflow/src/test/java/org/apache/lenya/cms/workflow/WorkflowTest.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership... |
kevin-DL/m3o-go | examples/sunnah/hadiths/listTheHadithsInABook.go | package example
import (
"fmt"
"os"
"go.m3o.com/sunnah"
)
// Hadiths returns a list of hadiths and their corresponding text for a
// given book within a collection.
func ListTheHadithsInAbook() {
sunnahService := sunnah.NewSunnahService(os.Getenv("M3O_API_TOKEN"))
rsp, err := sunnahService.Hadiths(&sunnah.Hadit... |
ilin-in/OP | hookflash-core/core/hookflash/stack/message/PeerToFinderPeerLocationFindReply.h | /*
Copyright (c) 2012, SMB Phone Inc.
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, this
list of conditions and the ... |
Vsevolod1983/RadeonProRenderMaxPlugin | FireRender.Max.Plugin/plugin/FireRenderAnalyticalSun.cpp | <gh_stars>1-10
/**********************************************************************
Copyright 2020 Advanced Micro Devices, 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... |
AlexWayfer/toys | toys-core/test/lookup-cases/append/.toys.rb | <filename>toys-core/test/lookup-cases/append/.toys.rb
# frozen_string_literal: true
append "namespace-1" do
tool "tool-1-2" do
desc "file tool-1-2 short description"
long_desc "file tool-1-2 long description"
def run
puts "file tool-1-2 execution"
end
end
end
|
Yeeyao/leetcode-go | array/31_test.go | package array
import (
"reflect"
"testing"
)
func TestPro(t *testing.T) {
t.Run("31. Next Permutation", func(t *testing.T) {
nums := []int{1, 2, 3}
want := []int{1, 3, 2}
nextPermutation(nums)
if !reflect.DeepEqual(nums, want) {
t.Errorf("got: %v, want: %v", nums, want)
}
})
}
func nextPermutation(n... |
kushagra27/Use-IBM-MQ-and-App-Connect-on-Cloud-to-transform-data | web-app-a/node_modules/carbon-components-react/es/components/ExpandableSearch/ExpandableSearch.js | <filename>web-app-a/node_modules/carbon-components-react/es/components/ExpandableSearch/ExpandableSearch.js
function _extends() { _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(sou... |
amstee/NeoRestAPI | config/firebase.py | <filename>config/firebase.py<gh_stars>1-10
import json
with open('config.json') as data_file:
neo_config = json.load(data_file)
PROJECT_ID = neo_config["firebase"]["project_id"]
KEY_FILE = neo_config["firebase"]
BASE_URL = 'https://fcm.googleapis.com'
FCM_ENDPOINT = 'v1/projects/' + PROJECT_ID + '/messages:send'... |
XuesongDing/fatiando | gallery/gridder/cutting.py | """
Cutting a section from spacial data
-----------------------------------
The :func:`fatiando.gridder.cut` function extracts points from spatially
distributed data that are inside a given area. It doesn't matter whether or
not the points are on a regular grid.
"""
from fatiando import gridder
import matplotlib.pypl... |
Shigawire/eui | src/components/icon/assets/app_spaces.js | <reponame>Shigawire/eui
import React from "react";
const EuiIconAppSpaces = props => <svg width={32} height={32} viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" {...props}><path className="euiIcon__fillSecondary" d="M4 4h6v2H4zM22 4h6v2h-6zM4 22h6v2H4z" /><path d="M0 14h14V0H0v14zM2 2h10v10H2V2zm16-2v14h14V0H18... |
domlimm/tp | src/main/java/seedu/address/logic/commands/FocusCommand.java | <filename>src/main/java/seedu/address/logic/commands/FocusCommand.java
package seedu.address.logic.commands;
import static java.util.Objects.requireNonNull;
import java.util.List;
import seedu.address.commons.core.Messages;
import seedu.address.commons.core.index.Index;
import seedu.address.logic.commands.exceptions... |
vmware/connectors-workspace-one | hub-hubspot-deals-connector/test/services/hubspot-services-test.js | <filename>hub-hubspot-deals-connector/test/services/hubspot-services-test.js<gh_stars>10-100
/*
* Copyright © 2020 VMware, Inc. All Rights Reserved.
* SPDX-License-Identifier: BSD-2-Clause
*/
'use strict'
const { describe } = require('mocha')
const { expect } = require('chai')
const sinon = require('sinon')
const cha... |
macaurther/DOCUSA | Assets/Python/Screens/PlatyBuilder/WBCorporationScreen.py | <reponame>macaurther/DOCUSA
from CvPythonExtensions import *
import CvUtil
import ScreenInput
import CvScreenEnums
import WBGameDataScreen
import WBReligionScreen
import WBPlayerScreen
import WBTeamScreen
import WBCityEditScreen
import WBInfoScreen
import CvPlatyBuilderScreen
import WBStoredDataScreen
gc = CyGlobalCont... |
mhiley/IDV | src/ucar/visad/display/XAxisScalarMap.java | /*
* Copyright 1997-2015 Unidata Program Center/University Corporation for
* Atmospheric Research, P.O. Box 3000, Boulder, CO 80307,
* <EMAIL>.
*
* 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 Softwa... |
jpacsai/GoogleUdacity | ChallengePhase/JavaScript/StudentPractice/18_ArrayMirrorCheck.js | /*
Write a function that takes an array as argument, and returns true or false depending on the following
Returns true if the first half of the array is containing the same elements present in the last half,
and false if it does not
If the array contains odd number elements ,the function returns true if the two part... |
nowkoai/test | ee/lib/ee/gitlab/background_migration/backfill_iteration_cadence_id_for_boards.rb | <gh_stars>1-10
# frozen_string_literal: true
module EE
module Gitlab
module BackgroundMigration
# class that will populate issue boards with iteration cadence id for boards scopped to current iteration
module BackfillIterationCadenceIdForBoards
BATCH_SIZE = 100
class MigrationBoard <... |
hiteshbedre/gluecodium | gluecodium/src/test/resources/smoke/external_types/output/cbridge/src/smoke/cbridge_Enums.cpp | //
//
#include "cbridge/include/smoke/cbridge_Enums.h"
#include "cbridge_internal/include/BaseHandleImpl.h"
#include "cbridge_internal/include/TypeInitRepository.h"
#include "cbridge_internal/include/WrapperCache.h"
#include "foo/Bar.h"
#include "smoke/Enums.h"
#include <memory>
#include <new>
void smoke_Enums_release_... |
jsockchain/payman | internal/notifier/notifier_test.go | package notifier
import (
"testing"
"github.com/goat-systems/go-tezos/v3/rpc"
"github.com/goat-systems/tzpay/v3/internal/test"
"github.com/stretchr/testify/assert"
)
func Test_isEndorsementSuccessful(t *testing.T) {
m := MissedOpportunityNotifier{
baker: "some_baker",
}
ok := m.isEndorsementSuccessful(&rpc.... |
Relluem94s/RelluLib | src/main/java/de/relluem94/rellulib/threads/ThreadWorker.java | <reponame>Relluem94s/RelluLib
package de.relluem94.rellulib.threads;
import de.relluem94.rellulib.utils.LogUtils;
public class ThreadWorker extends ThreadSleeper implements Runnable {
private final Thread worker;
public ThreadWorker(int... priority) {
worker = new Thread(this);
if ... |
jsz0913/rpg_dvs_evo_open | dvs_mapping/test/test_depth_vector.cpp | #include <aslam/common/entrypoint.h>
#include <gtest/gtest.h>
#include <dvs_depth_from_defocus/depth_vector.hpp>
using namespace depth_from_defocus;
TEST(DepthVectorTest, LinearDepth) {
size_t num_depth_cells = 5;
evo_utils::geometry::Depth min_depth = 1.0;
evo_utils::geometry::Depth max_depth = 5.0;
... |
rexlManu/Open-Cloud | Open-Core/src/main/java/de/tammo/cloud/core/setup/requests/ListRequest.java | /*
* Copyright (c) 2018. File created by Tammo
*/
package de.tammo.cloud.core.setup.requests;
import de.tammo.cloud.core.logging.Logger;
import jline.console.ConsoleReader;
import java.io.IOException;
import java.util.Arrays;
import java.util.function.Consumer;
public class ListRequest {
public void request(... |
maxvankessel/zephyr | samples/subsys/mgmt/updatehub/src/main.c | /*
* Copyright (c) 2018-2020 O.S.Systems
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <updatehub.h>
#include <net/net_mgmt.h>
#include <net/net_event.h>
#include <net/net_conn_mgr.h>
#include <net/wifi_mgmt.h>
#include <dfu/mcuboot.h>
#if defined(CONFIG_UPDATEHUB_DTLS)
#include <net/tls... |
song91425/WeIdentityService | WeIdentityService/Classes/Code/WI/Headers/Utils/WIError.h | //
// WIError.h
// WeIdentityService
//
// Created by lssong on 2021/1/27.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface WIError : NSObject
extern const NSInteger ERR_DEFAULT;//默认错误
extern const NSInteger ERR_INTERNAL ; //内部错误,比如hash失败等,非业务流程或者数据错误,一般不会发生
extern const NSInteger ERR_NOT_I... |
EnorMOZ/homebrew-cask | Casks/the-hit-list.rb | <filename>Casks/the-hit-list.rb<gh_stars>0
cask 'the-hit-list' do
version '1.1.19,308'
sha256 'cc244128df45759cb1306448405cbcd0c0b153292cecda4326230881546eab94'
url "https://distrib.karelia.com/downloads/TheHitList-#{version.after_comma}.zip"
appcast 'https://launch.karelia.com/appcast.php?product=9&appname=Th... |
reels-research/iOS-Private-Frameworks | Celestial.framework/BWInferenceVideoScalingProvider.h | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/Celestial.framework/Celestial
*/
@interface BWInferenceVideoScalingProvider : NSObject <BWInferenceExecutable, BWInferencePreventable, BWInferenceScalingProvider> {
bool _applyUprightExifOrientation;
bool _applyValidBufferRect;
N... |
pedroroque/DigitalBroadcaster | src/Broadcaster2006/Scheduler/ScheduleRightView.h | <filename>src/Broadcaster2006/Scheduler/ScheduleRightView.h
#if !defined(AFX_SCHEDULERIGHTVIEW_H__92264448_3B30_4452_87F3_0E8E8A6B39CF__INCLUDED_)
#define AFX_SCHEDULERIGHTVIEW_H__92264448_3B30_4452_87F3_0E8E8A6B39CF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ScheduleRightView.h : header ... |
holmes07/pulsar-beat-output | vendor/github.com/aws/aws-sdk-go-v2/service/mobile/api_types.go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package mobile
import (
"time"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
"github.com/aws/aws-sdk-go-v2/private/protocol"
)
var _ aws.Config
var _ = awsutil.Prettify
// The details of the bundle.
// Ple... |
rsins/Scratchpad-Java | ScratchPad/src/com/hackerrank/fibonaccimodified/MyMainClass.java | <gh_stars>0
package com.hackerrank.fibonaccimodified;
import java.math.BigInteger;
import java.util.Scanner;
public class MyMainClass {
/*
A series is defined in the following manner:
Given the nth and (n+1)th terms, the (n+2)th can be computed by the following relation
Tn+2 = (Tn+1)2 + Tn
So, if t... |
bnagybalint/BoloDemoEngine | Src/Audio/AudioManager.cpp | <filename>Src/Audio/AudioManager.cpp
#include "AudioManager.h"
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#include <mmsystem.h>
#include <dsound.h>
#include "AudioTrack.h"
// Define singleton parts
DEFINE_SINGLETON_IMPL(AudioManager);
AudioManager::AudioManager()
#if BDE_GL... |
draker94/vividus | vividus-plugin-saucelabs/src/main/java/org/vividus/selenium/sauce/SauceLabsCapabilitiesConfigurer.java | <gh_stars>100-1000
/*
* Copyright 2019-2020 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
*
* Un... |
OpenDeformerDev/OpenDeformer | OpenDeformer/core/datastructure.h | <gh_stars>1-10
#if defined(_MSC_VER)
#pragma once
#endif
#ifndef ODER_CORE_DATASTRUCTURE_H
#define ODER_CORE_DATASTRUCTURE_H
#include "oder.h"
#include "memory.h"
#include <type_traits>
#include <set>
namespace ODER{
template<class T, class Compare = std::less<T>> class DisjointSets{
private:
template<class T> ... |
ThomsonGuoJing/tools | tools-excel/src/main/java/cn/gjing/tools/excel/write/listener/ExcelCascadingDropdownBoxListener.java | <reponame>ThomsonGuoJing/tools<filename>tools-excel/src/main/java/cn/gjing/tools/excel/write/listener/ExcelCascadingDropdownBoxListener.java
package cn.gjing.tools.excel.write.listener;
import cn.gjing.tools.excel.metadata.listener.ExcelWriteListener;
import cn.gjing.tools.excel.write.valid.ExcelDropdownBox;
import or... |
MarjanaKarzek/android_diet_tracker | app/src/main/java/de/karzek/diettracker/presentation/main/MainContract.java | <reponame>MarjanaKarzek/android_diet_tracker<gh_stars>0
package de.karzek.diettracker.presentation.main;
import android.support.annotation.IntDef;
import de.karzek.diettracker.presentation.common.BasePresenter;
import de.karzek.diettracker.presentation.common.BaseView;
/**
* Created by MarjanaKarzek on 26.04.2018.
... |
SNTSVV/FAQAS_MASS | examples/mlfs/libm/common/s_fpclassify.c | <filename>examples/mlfs/libm/common/s_fpclassify.c
/*!
* -------------------------------------------------------------------------------------------------
* \file s_fpclassify.c
* \par ESA Contract Number
* 4000117691/16/NL/FE
* \brief Implementation file for __fpclassifyd.
* \version c07acbf539f8880d8c1255e... |
Hrsn2861/pysat-server | school/urls/school.py | <reponame>Hrsn2861/pysat-server<filename>school/urls/school.py
"""pysat URL Configuration for School.Create
"""
from django.urls import path
from utils.views import view_maker
from utils.params import ParamType
from utils.permission import ActionType
from school.views import school
urlpatterns = [
path('create',... |
haugene/losen | src/web/primitives/Wizard.js | import styled from 'styled-components';
import injectStyles from '../utils/inject-styles';
const Wizard = injectStyles(styled.div`
background-color: white;
background-image: linear-gradient(164deg, rgba(137, 174, 196, 0.34), white, rgba(0, 117, 127, 0.19));
background-repeat: no-repeat;
background-attachment:... |
pickettd/code-dot-org | lib/cdo/sinatra.rb | require 'sinatra/base'
class Sinatra::Base
def self.get_or_post(url,&block)
get(url, &block)
post(url, &block)
end
end
|
argonium/jarman | src/io/miti/jarman/util/ClassParser.java | <reponame>argonium/jarman
package io.miti.jarman.util;
import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.jar.JarEntry;
import java.util.jar.Ja... |
rimliya-scarlet/MiraiGo | client/highway.go | <reponame>rimliya-scarlet/MiraiGo
package client
import (
"crypto/md5"
"errors"
"github.com/Mrs4s/MiraiGo/binary"
"github.com/Mrs4s/MiraiGo/client/pb"
"github.com/golang/protobuf/proto"
"net"
"time"
)
func (c *QQClient) highwayUploadImage(ser string, updKey, img []byte, cmdId int32) error {
conn, err := net.D... |
altbswing/TempGame | Tetris/src/main/Test.java | <reponame>altbswing/TempGame
package main;
public class Test {
String str = new String("binbin");
char[] ch = new char[]{'a','b','c'};
public static void main(String[] args) {
mn(6);
}
public static void mn(int n){
loop:
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= n; j++) {
... |
digital-codes/blockly | blockly_uncompressed.js | /**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Bootstrap code to load Blockly in uncompiled mode.
*/
'use strict';
/**
* Blockly uncompiled-mode startup code. If running in a browser
* loads closure/goog/base.js and tests/deps.js, then (in any case)
... |
ChrissW-R1/ParRoute | src/main/java/me/chrisswr1/parroute/entities/RestrictionRelation.java | <gh_stars>0
package me.chrisswr1.parroute.entities;
import org.openstreetmap.osmosis.core.domain.v0_6.Relation;
import org.openstreetmap.osmosis.core.domain.v0_6.RelationMember;
import org.openstreetmap.osmosis.core.domain.v0_6.Tag;
import me.chrisswr1.parroute.DataHandler;
import me.chrisswr1.parroute.util.St... |
madickson/opencommercesearch | opencommercesearch-atg-pub/src/test/java/org/opencommercesearch/remote/assetmanager/editor/service/RedirectRuleAssetValidatorTest.java | package org.opencommercesearch.remote.assetmanager.editor.service;
import static org.mockito.Matchers.anyString;
import static org.mockito.Mockito.*;
import static org.mockito.MockitoAnnotations.initMocks;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Collection;
import org.junit.Before;
im... |
davygora/splits-io | spec/views/runs/unauthorized_spec.rb | <reponame>davygora/splits-io
require 'rails_helper'
RSpec.describe 'runs/unauthorized' do
it 'renders the unauthorized template' do
render
expect(view).to render_template('runs/unauthorized')
end
end
|
mharmuth/gui-bundle | Resources/scripts/global.js | <reponame>mharmuth/gui-bundle
Ext.require('Phlexible.gui.util.Console');
Phlexible.console = new Phlexible.gui.util.Console();
Ext.provide('Phlexible.Handles');
Ext.require('Phlexible.gui.util.Handles');
Phlexible.Handles = new Phlexible.gui.util.Handles();
Ext.provide('Phlexible.Cookie');
Ext.require('Phlexible.gui.... |
private-octopus/diana | stats/ziptry.py | import gzip
import shutil
import sys
#with gzip.open(sys.argv[1], 'rt') as f_gz:
iline = 0
for line in gzip.open(sys.argv[1], 'rt'):
iline += 1
if iline > 10:
break
print("-->" + line)
|
ikle/janus | groups/node.h | <reponame>ikle/janus<gh_stars>0
/*
* Janus Groups Node
*
* Copyright (c) 2017 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#ifndef JANUS_GROUPS_NODE_H
#define JANUS_GROUPS_NODE_H 1
#include <stdio.h>
#include "address.h"
#include "callout.h"
#include "seq.h"
enum node_type {
NODE_STATIC,
N... |
haekb/nolf1-modernizer | NOLF/ClientShellDLL/SFXMgr.h | // ----------------------------------------------------------------------- //
//
// MODULE : SFXMgr.h
//
// PURPOSE : Special FX Mgr - Definition
//
// CREATED : 10/24/97
//
// (c) 1997-2000 Monolith Productions, Inc. All Rights Reserved
//
// ----------------------------------------------------------------------- //... |
victory460/myOMZ | node_modules/ionic-angular/components/menu/menu-controller.js | <gh_stars>1-10
export var MenuController = (function () {
function MenuController() {
this._menus = [];
}
MenuController.prototype.open = function (menuId) {
var menu = this.get(menuId);
if (menu) {
var openedMenu = this.getOpen();
if (openedMenu && menu !== o... |
teadur/registry | db/migrate/20150217133937_add_index_for_contact_code.rb | <reponame>teadur/registry
class AddIndexForContactCode < ActiveRecord::Migration
def change
add_index :contacts, :code
end
end
|
EzioL/leetcode | src/main/java/_1013_CanThreePartsEqualSum.java | <filename>src/main/java/_1013_CanThreePartsEqualSum.java
/**
* Here be dragons !
*
* @author: Ezio
* created on 2020/3/11
*/
public class _1013_CanThreePartsEqualSum {
static class Solution {
public boolean canThreePartsEqualSum(int[] A) {
if (A.length < 3) {
return false;
... |
wangyuyunmu/Recommended-system-practice | chapter2-Algorithms-user behavior based/LFM/Dataset.py | <reponame>wangyuyunmu/Recommended-system-practice
import random
import time
# 定义装饰器,监控运行时间
def timmer(func):
def wrapper(*args, **kwargs):
start_time = time.time()
res = func(*args, **kwargs)
stop_time = time.time()
print('Func %s, run time: %s' % (func.__name__, stop_time ... |
rekcurd/rekcurd-python | rekcurd/_project.py | <gh_stars>10-100
__project__ = 'rekcurd'
|
haomingzhi/Model | UniversalFramework/UniversalFramework/Common/CommonUtil/BSLocation.h | <reponame>haomingzhi/Model<filename>UniversalFramework/UniversalFramework/Common/CommonUtil/BSLocation.h
//
// BSLocation.h
// JiXie
// 定位:1.工程增加MapKit.framework,2.CoreLocation.framework 3.在plist中增加两个设置:NSLocationWhenInUseUsageDescription(YES),NSLocationAlwaysUsageDescription(YES)
// Created by ORANLLC_IOS1 on 15/6... |
ahmar20/WAVE300 | driver/wireless/driver/shared/mtlk_card_types.h | <gh_stars>10-100
/* $Id: mtlk_card_types.h 10358 2011-01-15 09:59:33Z dmytrof $ */
#ifndef __HW_MTLK_CARD_TYPES_H__
#define __HW_MTLK_CARD_TYPES_H__
typedef enum
{
MTLK_CARD_UNKNOWN = 0x8888, /* Just magics to avoid */
MTLK_CARD_FIRST = 0xABCD, /* accidental coincidences */
#ifdef MTCFG_LINDRV_HW_PCIE
MTL... |
ponyatov/metaL | docs/search/namespaces_4.js | var searchData=
[
['fl',['fl',['../namespacefl.html',1,'']]]
];
|
Kilanov/java-a-to-z | chapter_005/src/main/java/ru/skilanov/io/map/HashMapContainer.java | package ru.skilanov.io.map;
/**
* Conteiner interface for the HashMap.
*
* @param <K> Object
* @param <V> Object
*/
public interface HashMapContainer<K, V> extends Iterable {
/**
* Insert method.
*
* @param key Object
* @param value Object
* @return boolean
*/
boolean inser... |
kunpengcompute/devkit-intellij-plugin | ui/src/main/java/com/huawei/kunpeng/intellij/ui/action/PasswordFieldAction.java | /*
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2022. 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
*
... |
mrojaczy/Labs | 2 term/BAP/3 Lab/mylist.cpp | #include "mylist.h"
MyList::MyList()
{
}
void MyList::add(Info *info)
{
info->next = first;
first = info;
}
void MyList::remove(Info input)
{
first = remove(first, input);
}
Info *MyList::remove(Info *info, Info input)
{
if (info == nullptr) {
return nullptr;
}
if (info->isEqual(inp... |
jgowdyelastic/kibana | src/ui/public/utils/__tests__/diff_time_picker_vals.js | /*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
atul-vyshnav/2021_IBM_Code_Challenge_StockIT | src/StockIT-v1-release_source_from_JADX/sources/com/google/android/gms/auth/account/zzg.java | <filename>src/StockIT-v1-release_source_from_JADX/sources/com/google/android/gms/auth/account/zzg.java
package com.google.android.gms.auth.account;
import android.accounts.Account;
import com.google.android.gms.auth.account.WorkAccountApi;
import com.google.android.gms.common.api.Result;
import com.google.android.gms.... |
estep12/RELOCO | node_modules/walk-back/test/test.js | <gh_stars>10-100
const TestRunner = require('test-runner')
const walkBack = require('../')
const a = require('assert')
const runner = new TestRunner()
runner.test('basic', function (t) {
const filename = walkBack(__dirname + '/fixture/subdir', 'file.txt')
a.ok(filename.search('walk-back/test/fixture/subdir/file.t... |
danielleconnolly/diirt | pvmanager/datasource-test/src/main/java/org/diirt/datasource/test/CountDownWriteFunction.java | <filename>pvmanager/datasource-test/src/main/java/org/diirt/datasource/test/CountDownWriteFunction.java
/**
* Copyright (C) 2010-14 diirt developers. See COPYRIGHT.TXT
* All rights reserved. Use is subject to license terms. See LICENSE.TXT
*/
package org.diirt.datasource.test;
import java.util.concurrent.CountDownL... |
jchiatt/spectrum | src/helpers/signed-out-fallback.js | <reponame>jchiatt/spectrum<gh_stars>0
// @flow
// Render a component depending on a users authentication status
import React from 'react';
import { connect } from 'react-redux';
import AuthViewHandler from 'src/views/authViewHandler';
// This is the component that determines at render time what to do
const Switch = pr... |
f4deb/cen-electronic | common/timer/delayTimer.h | <filename>common/timer/delayTimer.h
#ifndef DELAY_TIMER_H
#define DELAY_TIMER_H
#include <stdlib.h>
#include <stdbool.h>
#include "cenTimer.h"
Timer* timerDelayMark(void);
void timerDelayWaitMark(Timer* delayTimer, unsigned long delayMilliSeconds);
bool timerDelayTimeout(Timer* delayTimer, unsigned lon... |
MBrassey/xscreensaver_BlueMatrix | hacks/glx/swim.c | <reponame>MBrassey/xscreensaver_BlueMatrix
/* atlantis --- Shows moving 3D sea animals */
#if 0
static const char sccsid[] = "@(#)swim.c 1.3 98/06/18 xlockmore";
#endif
/* Copyright (c) <NAME>, 1998. */
/*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and w... |
zhengkaixing/kxmall | kxmall-data/src/main/java/com/kxmall/market/data/dto/InviteDTO.java | package com.kxmall.market.data.dto;
import com.kxmall.market.data.annotation.DtoDescription;
import com.kxmall.market.data.domain.SuperDO;
import com.kxmall.market.data.domain.UserDO;
import lombok.Data;
/**
* 邀请列表
*
* @author kaixin
*/
@Data
public class InviteDTO extends SuperDO {
@DtoDescription(descripti... |
georgegillams/georgegillams.co.uk | src/containers/Work/SideProjects/Container.js | <filename>src/containers/Work/SideProjects/Container.js
import React from 'react';
import { cssModules } from '@george-gillams/components/helpers/cssModules';
import { Button } from '@george-gillams/components/Button';
import { Paragraph } from '@george-gillams/components/Paragraph';
import { Subsection } from '@george... |
blockspacer/chromium_base_conan | extensions/third_party/abseil-cpp/absl/random/uniform_int_distribution.h | <filename>extensions/third_party/abseil-cpp/absl/random/uniform_int_distribution.h<gh_stars>1-10
#pragma once
#include "absl/random/uniform_int_distribution.h"
|
billyfish/lib-gen | src/idl_writer.c | <reponame>billyfish/lib-gen<filename>src/idl_writer.c<gh_stars>0
#include <ctype.h>
#include <string.h>
#include <proto/exec.h>
#include <proto/dos.h>
#include <proto/utility.h>
#include <exec/types.h>
#include "idl_writer.h"
#include "parameter.h"
#include "function_definition.h"
#include "debugging_utils.h"
#incl... |
mhazankin/vic | vendor/github.com/hashicorp/consul/api/lock_test.go | <filename>vendor/github.com/hashicorp/consul/api/lock_test.go
package api
import (
"log"
"net/http"
"net/http/httptest"
"net/http/httputil"
"strings"
"sync"
"testing"
"time"
)
func TestLock_LockUnlock(t *testing.T) {
t.Parallel()
c, s := makeClient(t)
defer s.Stop()
lock, err := c.LockKey("test/lock")
i... |
snkmr/shirasagi | app/jobs/gws/history_archive_job.rb | class Gws::HistoryArchiveJob < Gws::ApplicationJob
include Job::Gws::TaskFilter
include SS::HistoryArchiveBase
self.task_name = 'gws:history_archive'
class << self
def select_histories_to_archive(site, now = Time.zone.now)
save_term = site.effective_log_save_days.days
Gws::History.site(site).l... |
wuzhuobin/QvtkProject | Src/Data/QvtkNeuralTube.cpp | // me
#include "QvtkNeuralTube.h"
//vtk
#include <vtkTubeFilter.h>
#include <vtkLineSource.h>
#include <vtkPolyData.h>
#include <vtkPassArrays.h>
#include <vtkTransform.h>
// qt
#include <QDomElement>
namespace Q {
namespace vtk {
Q_VTK_DATA_CPP(NeuralTube);
NeuralTube::NeuralTube()
:m_intermediatePoint{ 0,0,0... |
robbykraft/SVG | tests/core.coordinates.test.js | const SVG = require("../svg");
test("coordinates, two points", () => {
SVG.core.coordinates(1, 2, 3, 4)
.forEach((n, i) => expect(n).toBe([1,2,3,4][i]));
SVG.core.coordinates([1, 2], [3, 4])
.forEach((n, i) => expect(n).toBe([1,2,3,4][i]));
SVG.core.coordinates([1, 2, 3], [4, 5, 6])
.forEach((n, i) =... |
MarginC/kame | freebsd5/sys/boot/ofw/common/main.c | <filename>freebsd5/sys/boot/ofw/common/main.c<gh_stars>10-100
/*-
* Copyright (c) 2000 <NAME> <<EMAIL>>
* Copyright (c) 2000 <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 me... |
antoniobertilpaiva/cert | ejb-in-ear/ejb/src/main/java/com/criticalsoftware/certitools/entities/sm/EmergencyUser.java | <gh_stars>0
package com.criticalsoftware.certitools.entities.sm;
import com.criticalsoftware.certitools.entities.Contract;
import javax.persistence.*;
/**
* Emergency User Entity
*
* @author miseabra
* @version $Revision$
*/
@SuppressWarnings("UnusedDeclaration")
@Entity
@Table(name = "sm_emergencyuser")
public... |
ctm/executor | src/config/front-ends/nextstep/HFS_XFer/helper.c | <filename>src/config/front-ends/nextstep/HFS_XFer/helper.c
#if defined(OUTDATEDCODE)
/*
* TODO: better support for read-only floppies
*/
#include "rsys/common.h"
#include "OSUtil.h"
#include "FileMgr.h"
#include "myhfs.h"
#include <string.h>
#include "SegmentLdr.h"
#include "xbar.h"
#include "ToolboxEvent.h"
#if de... |
AngularJS-Angular2-Angular4/angular2-project | wsdl/AddressService/com/qwest/xmlschema/TelephoneConnectionT.java |
package com.qwest.xmlschema;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xm... |
teamdigitale/pagopa-ios-example | PagoPaSDK.framework/Headers/WALPpaWalletType.h | <reponame>teamdigitale/pagopa-ios-example<filename>PagoPaSDK.framework/Headers/WALPpaWalletType.h<gh_stars>1-10
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from ppa_wallet_type.djinni
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, WALPpaWalletType)
{
WALPpaWalletTypeCredi... |
lperson/dcaf_case_management | db/migrate/20210403213315_create_users.rb | class CreateUsers < ActiveRecord::Migration[6.0]
def change
create_table :users do |t|
t.string :name, null: false
t.string :line
t.integer :role, null: false, default: 0
t.boolean :disabled_by_fund, default: false
# Scratch field - temporary BSON ID from Mongo so we can link things... |
plojyon/resolwe-bio | resolwe_bio/processes/alignment/star_index.py | """Generate STAR genome index."""
import shutil
from pathlib import Path
from plumbum import TEE
from resolwe.process import (
Cmd,
DataField,
DirField,
FileField,
GroupField,
IntegerField,
Process,
StringField,
)
class StarIndex(Process):
"""Generate STAR genome index.
Gene... |
filmote/Karateka_Pokitto | src/images/fighters/Fullbody10.h | // Automatically generated file, do not edit.
#pragma once
const uint8_t Fullbody10[] = {
24, 40,
0xee,0xee,0xee,0xee,0xee,0xee,0xee,0xee,0xee,0xee,0xee,0xee,
0xee,0xee,0xee,0xee,0xee,0xee,0xee,0xee,0xee,0x44,0x44,0x4e,
0xee,0xee,0xee,0xee,0xee,0xee,0xee,0xee,0xe4,0x44,0x44,0xee,
0xee,0xee,0xee,0xee,0xee,0xee,0xee,0x... |
sunnychanwork/deltaforce | ledgers/src/main/java/org/namstorm/deltaforce/ledgers/DeltaLedgerEntry.java | <reponame>sunnychanwork/deltaforce
package org.namstorm.deltaforce.ledgers;
/**
* Created by maxnamstorm on 16/8/2016.
* It's an entry, bound to a openEntry
*/
public interface DeltaLedgerEntry {
}
|
MManicaM/ogs | ProcessLib/SurfaceFlux/SurfaceFluxLocalAssembler.h | <gh_stars>0
/**
* \copyright
* Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include "NumLib/Fem/Sha... |
Gear61/GO-Database | app/src/main/java/com/randomappsinc/pokemonlocations_pokemongo/Adapters/NavDrawerAdapter.java | package com.randomappsinc.pokemonlocations_pokemongo.Adapters;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android... |
drnic/pivotal-tracker-tmbundle | Support/vendor/rails/railties/lib/generators/rails/controller/controller_generator.rb | <reponame>drnic/pivotal-tracker-tmbundle<gh_stars>1-10
module Rails
module Generators
class ControllerGenerator < NamedBase
argument :actions, :type => :array, :default => [], :banner => "action action"
check_class_collision :suffix => "Controller"
def create_controller_files
template '... |
agoodfriendalwayspayshisdebts/agoodfriendalwayspayshisdebts-webapp | src/js/participant/resource/participants_resource.js | <reponame>agoodfriendalwayspayshisdebts/agoodfriendalwayspayshisdebts-webapp
"use strict";
/* @ngInject */
function ParticipantsResource(restService) {
return {
add: add,
update: update
};
function add(eventId, participant) {
return restService.post("/api/events/" + eventId + "/participants", partic... |
Merkll/Quick-Credit | server/test/helpers/auth.spec.js | /* eslint-disable no-unused-expressions */
import { expect } from 'chai';
import * as Auth from '../../src/helpers/auth';
describe('AuthHelper', () => {
context('TokenGeneration', () => {
it('should return auth token', () => {
const token = Auth.generateToken({ id: 2, name: 'john' });
expect(token).t... |
autocore-ai/scenario_simulator_v2 | openscenario/openscenario_interpreter/include/openscenario_interpreter/syntax/global_action.hpp | <filename>openscenario/openscenario_interpreter/include/openscenario_interpreter/syntax/global_action.hpp
// Copyright 2015-2020 <NAME>, 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... |
phanisai4u/PdfBox-Android | library/src/main/java/com/tom_roush/pdfbox/pdmodel/font/FontMapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
Transkribus/TranskribusDU | TranskribusDU/tasks/case_BAR/DU_BAR_sgm.py | # -*- coding: utf-8 -*-
"""
DU task for BAR - see https://read02.uibk.ac.at/wiki/index.php/Document_Understanding_BAR
Copyright Xerox(C) 2017 <NAME>
Developed for the EU project READ. The READ project has received funding
from the European Union's Horizon 2020 research and innovation... |
utilForever/Wings | Libraries/gtkmm/lib/x64/atkmm/include/atkmmconfig.h | /* atk/atkmmconfig.h. Generated from atkmmconfig.h.in by configure. */
/* atkmm library configuration header */
#ifndef ATKMMCONFIG_H_INCLUDED
#define ATKMMCONFIG_H_INCLUDED
//#define ATKMM_DISABLE_DEPRECATED 1
#include <glibmmconfig.h>
/* Major version number of atkmm. */
#define ATKMM_MAJOR_VERSION 2
/* Minor ... |
atagomes/MoGrid | src/martin/mogrid/p2pdl/protocol/P2PDPCoordinationConnection.java | package martin.mogrid.p2pdl.protocol;
/**
* @author luciana
*
* Created on 22/06/2005
*/
public abstract class P2PDPCoordinationConnection implements P2PDPSenderConnection,
P2PDPReceiverConnection {
}
|
npocmaka/Windows-Server-2003 | admin/extens/acldiag/resource.h | <reponame>npocmaka/Windows-Server-2003
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by acldiag.rc
//
#define IDS_BAD_CL_SYNTAX 1
#define IDS_BAD_CL_SYNTAX_NO_CLOSE_QUOTE 2
#define IDS_SECURITY_DIAGNOSIS_FOR 3
#define IDS_DESCRIPTION 4
#de... |
Crabo-7498/qmk-keyboard-firmware | lib/chibios-contrib/os/hal/ports/HT32/LLD/SPIv1/hal_spi_lld.h | /*
Copyright (C) 2020 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... |
smagill/opensphere-desktop | open-sphere-base/mantle/src/main/java/io/opensphere/mantle/data/cache/impl/DiskCacheReferenceFactory.java | <reponame>smagill/opensphere-desktop
package io.opensphere.mantle.data.cache.impl;
/**
* A factory for creating DiskCacheReference objects based on the size of the
* reference so that the DiskCacheReference objects are the minimum necessary
* size to store the cache reference.
*/
@SuppressWarnings("PMD.Avoi... |
LightningOnOmnilayer/OmniWalletMobile-Server | wallet_service/src/main/java/com/lx/server/service/impl/FpConfigBaseParameterServiceImpl.java | <gh_stars>1-10
package com.lx.server.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lx.server.dao.MyBatisBaseDao;
import com.lx.server.service.impl.MybatisBaseServiceImpl;
import com.lx.server.dao.FpConfigBaseParameterDao;
... |
huanqing/jstorm | jstorm-client/src/main/java/backtype/storm/spout/Scheme.java | package backtype.storm.spout;
import backtype.storm.tuple.Fields;
import java.io.Serializable;
import java.util.List;
public interface Scheme extends Serializable {
public List<Object> deserialize(byte[] ser);
public Fields getOutputFields();
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.