repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
manuelbuil/proxy | go/envoy/config/tap/v3/common.pb.go | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/config/tap/v3/common.proto
package envoy_config_tap_v3
import (
fmt "fmt"
v3 "github.com/cilium/proxy/go/envoy/config/core/v3"
v31 "github.com/cilium/proxy/go/envoy/config/route/v3"
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/envoyp... |
carmanzhang/cornac | tests/cornac/metrics/test_ranking.py | # Copyright 2018 The Cornac Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... |
GernotMaier/Eventdisplay | inc/VInstrumentResponseFunctionRunParameter.h | <reponame>GernotMaier/Eventdisplay
//! VInstrumentResponseFunctionRunParameter run parameters for response function calculator (effective areas)
#ifndef VInstrumentResponseFunctionRunParameter_H
#define VInstrumentResponseFunctionRunParameter_H
#include "Ctelconfig.h"
#include "VEvndispRunParameter.h"
#include "VMont... |
linqyd/etk | etk/structured_extractors/digTokenizerExtractor/digTokenizer/rowTokenizer.py | <gh_stars>0
#!/usr/bin/env python
from ngram import ngram
import re
import unicodedata
import itertools
class RowTokenizer:
def __init__(self, row, json_config):
self.config = json_config
self.settings = json_config["settings"]
self.rows = []
self.__tokenize(row)
self.index ... |
EntityFX/vfpbench | src/MultiAdapter.h | // 2014 <NAME>
// vim:ts=4 sw=4 noet:
#ifndef MULTI_ADAPTER_H_
#define MULTI_ADAPTER_H_
#include <minilib/CoreLib.h>
#include <minilib/Thread.h>
#include <minilib/FixedArray.h>
#include "TestBase.h"
template<typename T>
class MultiAdapter : public ITestBase {
public:
private:
flatlib::ut::FixedArray<T> InstanceArr... |
JarredStanford/JarredStanford.github.io | node_modules/grommet/components/Video/Video.js | "use strict";
exports.__esModule = true;
exports.Video = void 0;
var _react = _interopRequireWildcard(require("react"));
var _recompose = require("recompose");
var _styledComponents = require("styled-components");
var _defaultProps = require("../../default-props");
var _Box = require("../Box");
var _Button = req... |
juhalindfors/bazel-patches | src/test/java/com/google/devtools/build/lib/collect/nestedset/OrderTest.java | // Copyright 2014 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applica... |
manibhushan05/transiq | web/transiq/restapi/serializers/file_upload.py | <reponame>manibhushan05/transiq<filename>web/transiq/restapi/serializers/file_upload.py<gh_stars>0
from datetime import datetime
from django.contrib.auth.models import User
from rest_framework import serializers, ISO_8601
from rest_framework.validators import UniqueValidator, UniqueTogetherValidator
from api import s... |
m-m-m/query | api/src/main/java/net/sf/mmm/query/api/feature/FeatureInsert.java | <filename>api/src/main/java/net/sf/mmm/query/api/feature/FeatureInsert.java
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.query.api.feature;
import net.sf.mmm.query.api.path.EntityAlias;
import net.sf.mmm.query.api.st... |
germix/sanos | src/sys/dev/3c905c.h | <reponame>germix/sanos
//
// 3c905c.h
//
// 3Com 3C905C NIC network driver
//
// 3Com 3C905C NIC network driver
//
// Copyright (C) 2002 <NAME>. All rights reserved.
// Copyright (C) 1999 3Com Corporation. All rights reserved.
//
// 3Com Network Driver software is distributed as is, without any warranty
// of any kind... |
Boundarybreaker/Landmark | src/main/java/dev/hephaestus/landmark/impl/names/provider/types/Selector.java | package dev.hephaestus.landmark.impl.names.provider.types;
import java.util.ArrayList;
import dev.hephaestus.landmark.impl.names.provider.MultiComponentProvider;
import dev.hephaestus.landmark.impl.names.provider.NameComponentProvider;
import net.minecraft.text.MutableText;
import net.minecraft.util.Identifier;
pub... |
jameszhan/notes-ml | 06-programing-languages/01-pythons/03-just-for-fun/03-pdlt/10_conversion_calculator.py | # -*- coding: utf-8 -*-
def eval(e):
if type(e) == type(1): return (e, {}) # <--- (e,{}) common mistake: e
if type(e) == type(1.1): return (e, {}) # <--- (e,{}) common mistake: e
if type(e) == type('m'): return (1, {e: 1}) # <--- base case common mistakes: {e:1}
if type(e) == type(()):
... |
PetRescue/pr-pin | spec/support/test_namespace.rb | <reponame>PetRescue/pr-pin<filename>spec/support/test_namespace.rb<gh_stars>1-10
# Namespace holding all objects created during specs
module Test
def self.remove_constants
constants.each(&method(:remove_const))
end
end
|
EAndresen/aws-cdk-go | awscdk/awskinesisanalyticsflink/internal/types.go | package internal
import (
"github.com/aws/aws-cdk-go/awscdk/v2"
"github.com/aws/aws-cdk-go/awscdk/v2/awsiam"
)
type Type__awscdkResource = awscdk.Resource
type Type__awsiamIGrantable = awsiam.IGrantable
type Type__awscdkIResource = awscdk.IResource
|
paveloom-p/P3 | ARPREC/arprec-2.2.13/tests/quad-ts.cpp | /*
* quad-ts.cpp
*
* This work was supported by the Director, Office of Science, Division
* of Mathematical, Information, and Computational Sciences of the
* U.S. Department of Energy under contract number DE-AC03-76SF00098.
*
* Copyright (c) 2004
*
*
* Creation Date: June 7, 2004
* Modified: June 27, 2... |
aiden-liu413/Lreport | common/src/main/java/com/kxingyi/common/util/feign/FeignClientRegistrar.java | <filename>common/src/main/java/com/kxingyi/common/util/feign/FeignClientRegistrar.java
package com.kxingyi.common.util.feign;
import feign.Feign;
import feign.Request;
import feign.Target;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.... |
upeshpv/fluent-fluentd | lib/fluent/plugin/output.rb | #
# Fluentd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
DapDeveloper/MK4duo | MK4duo/src/core/mechanics/core_mechanics.h | <reponame>DapDeveloper/MK4duo
/**
* MK4duo Firmware for 3D Printer, Laser and CNC
*
* Based on Marlin, Sprinter and grbl
* Copyright (C) 2011 <NAME> / <NAME>
* Copyright (C) 2019 <NAME> @MagoKimbra
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General P... |
HaraDev001/IoT_NorthConnectedHomeBulb_Android | app/src/main/java/com/guohua/north_bulb/net/ThreadPool.java | package com.guohua.north_bulb.net;
import android.os.Handler;
import com.guohua.north_bulb.AppContext;
import com.guohua.north_bulb.util.CodeUtils;
import com.guohua.north_bulb.util.Constant;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* 此类用于顺序执行线程 如此使用: ThreadPool pool ... |
brakhin/job4j | 3_hibernate_carseller/src/main/java/ru/bgbrakhi/carseller/servlets/AddDataController.java | <gh_stars>0
package ru.bgbrakhi.carseller.servlets;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
import ru.bgbrakhi.carseller.models.*;
import ru.bgbrakhi.carseller.service.Validator;
impor... |
pattyolanterns/mbed-os | features/nanostack/sal-stack-nanostack/source/Security/PANA/pana_relay_table.c | /*
* Copyright (c) 2013-2017, Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* 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/... |
MadelineMurray/teku | networking/eth2/src/test/java/tech/pegasys/teku/networking/eth2/gossip/topics/BlockTopicHandlerTest.java | /*
* Copyright 2019 ConsenSys AG.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
xWhitey/Zamorozka-0.5.3-src | net/minecraft/client/renderer/tileentity/TileEntityShulkerBoxRenderer.java | <reponame>xWhitey/Zamorozka-0.5.3-src<filename>net/minecraft/client/renderer/tileentity/TileEntityShulkerBoxRenderer.java
package net.minecraft.client.renderer.tileentity;
import net.minecraft.block.BlockShulkerBox;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.model.ModelShulker;
import ne... |
yuantiku/ytk-learn | src/main/java/com/fenbi/ytklearn/param/RandomParams.java | /**
*
* Copyright (c) 2017 ytk-learn https://github.com/yuantiku
*
* 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 use, copy,... |
SemanticBeeng/toolbox | huginlink/src/main/java/eu/amidst/huginlink/examples/learning/ParallelPCExample.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"); ... |
thariyarox/ORG-carbon-identity | components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth/tokenprocessor/EncryptionDecryptionPersistenceProcessor.java | <reponame>thariyarox/ORG-carbon-identity
/*
*Copyright (c) 2005-2013, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
*WSO2 Inc. licenses this file to you under the Apache License,
*Version 2.0 (the "License"); you may not use this file except
*in compliance with the License.
*You may obtain a copy of the Licens... |
harness/harness-go-sdk | harness/nextgen/model_triggered_by.go | /*
* CD NextGen API Reference
*
* This is the Open Api Spec 3 for the NextGen Manager. This is under active development. Beware of the breaking change with respect to the generated code stub # Authentication <!-- ReDoc-Inject: <security-definitions> -->
*
* API version: 3.0
* Contact: <EMAIL>
* Generated by: S... |
iganna/lspec | ugene/src/plugins/biostruct3d_view/src/WormsGLRenderer.h | <reponame>iganna/lspec
/**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2012 UniPro <<EMAIL>>
* http://ugene.unipro.ru
*
* 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;... |
ybx945ybx/yhy | app/src/main/java/com/quanyan/yhy/ui/views/CustomerRatingBarGo.java | <reponame>ybx945ybx/yhy
package com.quanyan.yhy.ui.views;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ImageView;
import android.widget.Li... |
srikanthprathi/flatpack | flatpack-samples/src/main/java/net/sf/flatpack/examples/createsamplecsv/CSVTestFileCreator.java | <gh_stars>10-100
package net.sf.flatpack.examples.createsamplecsv;
import java.io.FileWriter;
import java.io.PrintWriter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/*
* Created on Nov 30, 2005
*
*/
/**
* @author zepernick
*
* Creates a sample csv file with the specified number o... |
skrauchenia/akka | akka-docs/rst/java/code/docs/jrouting/CustomRouterDocTest.java | <filename>akka-docs/rst/java/code/docs/jrouting/CustomRouterDocTest.java
/**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package docs.jrouting;
import akka.routing.FromConfig;
import akka.routing.RoundRobinRoutingLogic;
import akka.routing.Routee;
import akka.routing.RoutingLogic;
import akk... |
power-electro/phantomjs-Gohstdriver-DIY-openshift | src/qt/qtbase/src/corelib/tools/qline.cpp | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commer... |
umjammer/tritonus | tritonus-alsa/src/main/java/org/tritonus/midi/device/alsa/AlsaMidiDeviceProvider.java | <filename>tritonus-alsa/src/main/java/org/tritonus/midi/device/alsa/AlsaMidiDeviceProvider.java
/*
* AlsaMidiDeviceProvider.java
*
* This file is part of Tritonus: http://www.tritonus.org/
*/
/*
* Copyright (c) 1999 - 2001 by <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you... |
codebyravi/otter | autoscale_cloudroast/test_repo/autoscale/functional/scheduler/test_list_scheduler_policies.py | <reponame>codebyravi/otter
"""
Test list scheduler policies (at and cron style).
"""
from test_repo.autoscale.fixtures import ScalingGroupPolicyFixture
class ListSchedulerScalingPolicy(ScalingGroupPolicyFixture):
"""
Verify list scheduler policies.
"""
def setUp(self):
"""
Create 2 s... |
wilsonpage/gaia | apps/system/test/unit/value_picker_test.js | <filename>apps/system/test/unit/value_picker_test.js
'use strict';
requireApp('system/js/value_selector/value_picker.js');
suite('value selector/value picker', function() {
var subject,
stubByQuery,
monthUnitStyle;
teardown(function() {
stubByQuery.restore();
});
setup(function() {
stubByQue... |
egpbos/egp | egp/__version__.py | <gh_stars>0
__version__ = '0.1.0'
__author__ = "<NAME>. <NAME>"
__email__ = '<EMAIL>'
|
benhunter/ctf | htb/fatty-10.10.10.174/fatty-client/org/springframework/beans/factory/parsing/PropertyEntry.java | /* */ package org.springframework.beans.factory.parsing;
/* */
/* */ import org.springframework.util.StringUtils;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* ... |
bonitobonita24/Mayan-EDMS | mayan/apps/appearance/tests/test_views.py | from unittest import skip
from selenium.common.exceptions import NoAlertPresentException
from django.conf import settings
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
from mayan.apps.user_management.permissions import (
permission_user_edit, permission_user_view
)
from mayan.apps.testi... |
MM0x00/Stowaway | admin/process/children.go | <gh_stars>1-10
package process
import (
"Stowaway/admin/manager"
"Stowaway/admin/printer"
"Stowaway/admin/topology"
"Stowaway/protocol"
)
func nodeOffline(mgr *manager.Manager, topo *topology.Topology, uuid string) {
topoTask := &topology.TopoTask{
Mode: topology.DELNODE,
UUID: uuid,
}
topo.TaskChan <- top... |
jjhenkel/dockerizeme | hard-gists/1935808/snippet.py | """Simple utility script for semi-gracefully downgrading v3 notebooks to v2"""
import io
import os
import sys
from IPython.nbformat import current
def heading_to_md(cell):
"""turn heading cell into corresponding markdown"""
cell.cell_type = "markdown"
level = cell.pop('level', 1)
cell.source = '#'*le... |
spr-networks/super | frontend/src/api/API.js | export const apiURL = () => {
const { REACT_APP_API } = process.env
if (REACT_APP_API) {
try {
let url = new URL(REACT_APP_API)
//console.log('[API] using base:' + url)
return url.toString()
} catch (e) {
// REACT_APP_API=mock -- dont load in prod
let MockAPI = import('../api/M... |
codingfriend1/meanbase | src/hooks/allow-upsert.js |
import errors from 'feathers-errors'
export default options => {
return hook => {
if(hook.params) {
hook.params = Object.assign({}, hook.params, {mongoose: {upsert: true} })
}
}
}
|
SaeidSamadi/mc_rtc | src/mc_observers/BodySensorObserver.cpp | /*
* Copyright 2015-2019 CNRS-UM LIRMM, CNRS-AIST JRL
*/
#include <mc_observers/BodySensorObserver.h>
#include <mc_observers/ObserverMacros.h>
#include <mc_control/MCController.h>
#include <mc_rtc/gui/Arrow.h>
namespace mc_observers
{
BodySensorObserver::BodySensorObserver(const std::string & name, double dt, co... |
cokeSchlumpf/ada | ada-vcs/src/main/java/ada/domain/dvc/values/repository/VersionState.java | package ada.domain.dvc.values.repository;
public enum VersionState {
INITIALIZED,
PUSHED,
ANALYZING,
ANALYZED
}
|
jodi-one/jod | jodi_odi12/src/main/java/oracle/odi/domain/project/ProcedureOptionBuilder.java | package oracle.odi.domain.project;
import one.jodi.etl.internalmodel.procedure.OptionInternal;
public interface ProcedureOptionBuilder {
void build(OdiUserProcedure userProcedure, OptionInternal optionInternal);
}
|
yupengKenny/baw-server | app/modules/set_current.rb | <reponame>yupengKenny/baw-server
# frozen_string_literal: true
# Sets current values for the current model.
module SetCurrent
extend ActiveSupport::Concern
included do
before_action :set_current_user
before_action :set_current_ability
end
private
def set_current_user
Current.user = current_use... |
kepozu/Jockey | app/src/main/java/com/marverenic/music/player/extensions/scrobbler/ScrobblerExtension.java | <filename>app/src/main/java/com/marverenic/music/player/extensions/scrobbler/ScrobblerExtension.java
package com.marverenic.music.player.extensions.scrobbler;
import android.content.Context;
import com.marverenic.music.data.store.ReadOnlyPreferenceStore;
import com.marverenic.music.model.Song;
import com.marverenic.m... |
marvec/SilverWare | hystrix-microservice-provider/src/test/java/io/silverware/microservices/providers/hystrix/execution/MicroserviceHystrixCommandTest.java | <reponame>marvec/SilverWare<filename>hystrix-microservice-provider/src/test/java/io/silverware/microservices/providers/hystrix/execution/MicroserviceHystrixCommandTest.java
/*
* -----------------------------------------------------------------------\
* SilverWare
*
* Copyright (C) 2016 the original author or auth... |
HelionDevPlatform/bloodhound | trac/trac/prefs/tests/functional.py | <gh_stars>10-100
#!/usr/bin/python
from trac.tests.functional import *
#TODO: split this into multiple smaller testcases
class TestPreferences(FunctionalTwillTestCaseSetup):
def runTest(self):
"""Set preferences for admin user"""
prefs_url = self._tester.url + "/prefs"
tc.follow('Preferenc... |
chandaweia/onvm-mos-new | core/src/include/memory_mgt.h | <gh_stars>10-100
#ifndef __MEMORY_MGT_H_
#define __MEMORY_MGT_H_
struct mem_pool;
typedef struct mem_pool* mem_pool_t;
/* create a memory pool with a chunk size and total size
an return the pointer to the memory pool */
mem_pool_t MPCreate(int chunk_size, size_t total_size, int is_hugepage);
/* allocate one chunk... |
naz013/Reminder | app/src/main/java/com/elementary/tasks/core/utils/UriUtil.java | package com.elementary.tasks.core.utils;
import android.content.Context;
import android.net.Uri;
import androidx.annotation.NonNull;
import androidx.core.content.FileProvider;
import com.elementary.tasks.BuildConfig;
import java.io.File;
import timber.log.Timber;
/**
* Copyright 2017 <NAME>
* <p/>
* Licensed un... |
melvinhgf/instantsearch.js | src/connectors/numeric-menu/connectNumericMenu.js | <gh_stars>0
import {
checkRendering,
createDocumentationMessageGenerator,
isFiniteNumber,
noop,
} from '../../lib/utils';
const withUsage = createDocumentationMessageGenerator({
name: 'numeric-menu',
connector: true,
});
/**
* @typedef {Object} NumericMenuOption
* @property {string} name Name of the opt... |
dariusbakunas/rawdisk | rawdisk/session.py | # -*- coding: utf-8 -*-
import rawdisk.scheme
import logging
from rawdisk.filesystems.detector import FilesystemDetector
from rawdisk.filesystems.unknown_volume import UnknownVolume
from rawdisk.plugins.plugin_manager import PluginManager
from rawdisk.scheme.mbr import SECTOR_SIZE
from rawdisk.scheme.common import Par... |
ExeArco/clutch | clutch/schema/request/torrent/mutator.py | from typing import Sequence, Optional
from pydantic import BaseModel, Field
from clutch.schema.user.method.shared import IdsArg
class TrackerReplaceRequest(BaseModel):
tracker_id: int = Field(None, alias="trackerId")
announce_url: str = Field(None, alias="announceUrl")
class Config:
allow_popul... |
emmanuelJet/aepp-sophia-examples | examples/SmartShop/test/contractsTest.js | <filename>examples/SmartShop/test/contractsTest.js
/*
* ISC License (ISC)
* Copyright (c) 2018 aeternity developers
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice... |
carvelle/payment | public_html/webmail/modules/MailWebclient/js/views/CHtmlEditorView.js | 'use strict';
var
_ = require('underscore'),
$ = require('jquery'),
ko = require('knockout'),
AddressUtils = require('%PathToCoreWebclientModule%/js/utils/Address.js'),
TextUtils = require('%PathToCoreWebclientModule%/js/utils/Text.js'),
Types = require('%PathToCoreWebclientModule%/js/utils/Types.js'),
App ... |
crazyblitz/springboot-learn | first-spring-boot-starter/src/main/java/com/ley/first/spring/boot/starter/compose/annotation/AnnotationAttributeApplication.java | <reponame>crazyblitz/springboot-learn
package com.ley.first.spring.boot.starter.compose.annotation;
import org.junit.Test;
import org.springframework.core.annotation.AnnotatedElementUtils;
import org.springframework.core.annotation.AnnotationAttributes;
import org.springframework.stereotype.Service;
import org.springf... |
Ybalrid/orbiter | Extern/mssdk_dx7/samples/Multimedia/D3DRM/src/FlyFS/fly.cpp | //-----------------------------------------------------------------------------
// File: fly.cpp
//
// Desc:
//
// Copyright (C) 1998-1999 Microsoft Corporation. All Rights Reserved.
//-----------------------------------------------------------------------------
#include <d3drmwin.h>
#include <math.h>
#include <stdlib.... |
jdart/fsImgur | src/client/content/matcher.js |
import Imgur from './Imgur.react';
import FsImg from './FsImg.react';
import FsIframe from './FsIframe.react';
import Reddit from './reddit/Reddit.react';
import Gfycat from './Gfycat.react';
import Vidme from './Vidme.react';
import Vimeo from './Vimeo.react';
import Instagram from './Instagram.react';
import Youtube... |
kongaraju/antkorp | 3party/gtk+-3.12.1/gtk/gtksearchengine.c | /*
* Copyright (C) 2005 Novell, Inc.
*
* 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, or (at your option) any later version.
*
* This library i... |
HaHaSDP-UCSC/haha | HaHa/doxygen/html/search/files_6.js | <gh_stars>1-10
var searchData=
[
['main_2ec',['main.c',['../main_8c.html',1,'']]],
['messagequeue_2ec',['messagequeue.c',['../messagequeue_8c.html',1,'']]],
['messagequeue_2eh',['messagequeue.h',['../messagequeue_8h.html',1,'']]]
];
|
gmerz/MatterApi | matterapi/endpoints/sync_api/open_graph.py | """ Module to access the OpenGraph endpoints """
# pylint: disable=too-many-lines,too-many-locals,too-many-public-methods,too-few-public-methods
from typing import Dict, Union
from pydantic import BaseModel
from ...models import OpenGraph, OpenGraphJsonBody
from ..base import ApiBaseClass
class OpenGraphApi(ApiBas... |
MisterZhouZhou/pythonLearn | weixinrabit/wxtools/wxConfigSingleton.py | <gh_stars>1-10
'''
配置单利
'''
def SingleTon(cls, *args, **kwargs):
instances = {}
def _singleton():
if cls not in instances:
instances[cls] = cls(*args, **kwargs)
return instances[cls]
return _singleton
@SingleTon
class WXConfigSingleton(object):
# 自动登录
auto_reply = Fa... |
cantona/NT6 | nitan/adm/daemons/story/beihai.c | <filename>nitan/adm/daemons/story/beihai.c
// story:beihai 北海傳説
#include <ansi.h>
int give_gift(string name);
nosave mixed *story = ({
"華山。",
"李鐵嘴打了個哈欠,百無聊賴。",
"一人忽然闖了進來,看看李鐵嘴,忽然道:你的卦可準?",
"李鐵嘴眼睛瞪得大大的,道:不準不要錢。",
"來人哈哈大笑道:好!好!那麼你算算,明天下不下雨?",
"李鐵嘴擺好卦籤,一頓亂算。",
"來人... |
lshaoge951/remote_aus | src/main/java/com/haitang/project/tool/audio/client/Client.java | <gh_stars>1-10
package com.haitang.project.tool.audio.client;
//客户端界面
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import com.haitang.project.tool.audio.Playback;
public class Client extends Frame
{
TextField tf=new TextField(20);
TextArea ta=new TextArea();
Button send=new ... |
Infornia/BrewStoryBro | Library/Formula/texinfo.rb | class Texinfo < Formula
desc "Official documentation format of the GNU project"
homepage "http://www.gnu.org/software/texinfo/"
url "http://ftpmirror.gnu.org/texinfo/texinfo-5.2.tar.gz"
mirror "http://ftp.gnu.org/gnu/texinfo/texinfo-5.2.tar.gz"
sha1 "dc54edfbb623d46fb400576b3da181f987e63516"
bottle do
... |
linklab-uva/deepracing | DCNN-Pytorch/deepracing_models/data_loading/__init__.py | <reponame>linklab-uva/deepracing<filename>DCNN-Pytorch/deepracing_models/data_loading/__init__.py
import bisect
import numpy as np
class TimeIndex:
def __init__(self, time_array : np.ndarray, data_values : np.ndarray):
if np.any((time_array[1:]-time_array[:-1])<0):
raise ValueError("time_array... |
mennat1/simple-yield-farm-truffle-version | node_modules/@ethereum-waffle/compiler/dist/esm/config/loadConfig.js | import fs from 'fs';
import path from 'path';
export async function loadConfig(configPath) {
if (configPath) {
return require(path.join(process.cwd(), configPath));
}
else if (fs.existsSync('./waffle.json')) {
return require(path.join(process.cwd(), './waffle.json'));
}
else {
... |
hcmaza/nortia | src/main/java/ar/edu/undec/nortia/model/Banco.java | <reponame>hcmaza/nortia<gh_stars>0
/*
* 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 ar.edu.undec.nortia.model;
import java.io.Serializable;
import java.util.List;
import javax... |
geoff604/taskunifier-geoff | TaskUnifier/TaskUnifierGui/src/main/java/com/leclercb/taskunifier/gui/components/tasks/table/menu/TaskTableMenu.java | <gh_stars>1-10
/*
* TaskUnifier
* Copyright (c) 2013, <NAME>
* 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 above copyright
* ... |
vivaxy/algorithms | python/problems/roman_to_integer.py | <gh_stars>1-10
"""
https://leetcode.com/problems/roman-to-integer/
https://leetcode.com/submissions/detail/130844466/
"""
class Solution:
def romanToInt(self, s):
"""
:type s: str
:rtype: int
"""
dic = {
'I': 1,
'V': 5,
'X': 10,
... |
ShotaOd/dabuntu | carbon-component/src/main/java/org/carbon/component/annotation/Component.java | <filename>carbon-component/src/main/java/org/carbon/component/annotation/Component.java
package org.carbon.component.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation is fo... |
Histler/Infodota | app/src/main/java/com/badr/infodota/counter/task/TruepickerCounterLoadRequest.java | <filename>app/src/main/java/com/badr/infodota/counter/task/TruepickerCounterLoadRequest.java
package com.badr.infodota.counter.task;
import android.content.Context;
import com.badr.infodota.BeanContainer;
import com.badr.infodota.base.service.TaskRequest;
import com.badr.infodota.counter.api.TruepickerHero;
import co... |
kieuloc29/BOTLO | nodemodules/node_modules/hyntax/lib-es5/tree-constructor-context-handlers/attributes.js | <filename>nodemodules/node_modules/hyntax/lib-es5/tree-constructor-context-handlers/attributes.js<gh_stars>0
"use strict";
var _require = require('../constants/token-types'),
TOKEN_ATTRIBUTE_KEY = _require.TOKEN_ATTRIBUTE_KEY,
TOKEN_ATTRIBUTE_ASSIGNMENT = _require.TOKEN_ATTRIBUTE_ASSIGNMENT,
TOKEN_OPEN_TAG... |
carefree0910/carefree-learn | cflearn/models/cv/encoder/backbone/settings/vgg.py | <reponame>carefree0910/carefree-learn
from typing import List
from collections import OrderedDict
from ..api import Preset
remove_layers: List[str] = []
target_layers = OrderedDict(
slice0="stage0",
slice1="stage1",
slice2="stage2",
slice3="stage3",
)
vgg19_large_target_layers = OrderedDict(
sli... |
petlenz/tmech | include/tmech/tensor/abs_tensor_wrapper_bones.h | <reponame>petlenz/tmech<filename>include/tmech/tensor/abs_tensor_wrapper_bones.h
/***************************************************************************
* Copyright (c) <NAME> *
* *
* Distribute... |
vimeda/goengine | extension/amqp/amqp.go | package amqp
import (
"io"
"github.com/hellofresh/goengine"
"github.com/streadway/amqp"
)
// NotificationChannel represents a channel for notifications
type NotificationChannel interface {
Publish(exchange, queue string, mandatory, immediate bool, msg amqp.Publishing) error
Consume(queue, consumer string, autoA... |
Miraculous-Bots/Ladybug | commands/economy/leaderboard.js | const Discord = require("discord.js");
module.exports.run = async (prefix, cmd, client, args, message, config) => {
let db = client.con;
db.query("SELECT * FROM credits ORDER BY credits DESC LIMIT 10", [], async(err, results) => {
let text = "";
for (let r of results){
user = await c... |
tanishiking/dotty | tests/untried/neg/unchecked3.scala | <filename>tests/untried/neg/unchecked3.scala
sealed trait A2[T1]
final class B2[T1, T2] extends A2[T1]
sealed trait A[T]
final class B[T] extends A[T]
sealed trait A1[T]
trait B1[T] extends A1[T]
trait C1[T] extends A1[T]
trait D1[T] extends A1[Int]
trait E1[T] extends B1[Int]
trait F1[T] extends B1[T]
object MiscUn... |
sgerrand/homebrew | Library/Formula/csshx.rb | <filename>Library/Formula/csshx.rb
class Csshx < Formula
desc "Cluster ssh tool for Terminal.app"
homepage "https://github.com/brockgr/csshx"
url "https://csshx.googlecode.com/files/csshX-0.74.tgz"
mirror "https://distfiles.macports.org/csshX/csshX-0.74.tgz"
sha256 "eaa9e52727c8b28dedc87398ed33ffa2340d6d0f3ea... |
brunomichalski/Treinamento-javascript-coamo | Javascript/Prof. Silvano/Listas/2-variaveis-tipos-operadores/exec07.js | "use strict"
// CONSTANTES PARA ESTILOS DO CARACTERE (ST = STYLE)
const ST_RESET = "\x1b[0m"
const ST_BRIGHT = "\x1b[1m"
const ST_DIM = "\x1b[2m"
const ST_UNDERSCORE = "\x1b[4m"
const ST_BLINK = "\x1b[5m"
const ST_REVERSE = "\x1b[7m"
const ST_HIDDEN = "\x1b[8m"
// CONSTANTES PARA CORES DO CARACTERE (FG = FOREGROUND)
c... |
shin-eunsu/POCU_Cplusplus | Assignment2/DeusExMachina.cpp | #include "DeusExMachina.h"
namespace assignment2
{
DeusExMachina* DeusExMachina::GetInstance()
{
static DeusExMachina* deusExMachina = new DeusExMachina();
return deusExMachina;
}
void DeusExMachina::Travel() const
{
}
bool DeusExMachina::AddVehicle(Vehicle* vehicle)
{
if (mDeusCnt > 10 || vehicle == n... |
SpectrumBroad/xible | app/Flow/index.js | 'use strict';
const { EventEmitter } = require('events');
const debug = require('debug');
const fs = require('fs');
const path = require('path');
// lazy requires
let sanitizePath;
let express;
const flowDebug = debug('xible:flow');
/**
* Does a very simple html encode of the input string.
* Only replaces double ... |
holon-platform/holon-vaadin7 | navigator/src/main/java/com/holonplatform/vaadin7/navigator/internal/DefaultViewContextField.java | /*
* Copyright 2016-2017 Axioma srl.
*
* 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... |
onap/ncomp-docker | ncomp-docker-model/src/main/xcore-gen/org/openecomp/ncomp/docker/impl/ContainerMemoryUsageImpl.java |
/*-
* ============LICENSE_START==========================================
* OPENECOMP - DCAE
* ===================================================================
* Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
* ===================================================================
* Licensed... |
PhilippePerret/Montrello2 | js/required-2/system/IO.js | 'use strict';
/**
Utilitaires d'entrée sortie
**/
class IO {
/**
+path+ Le path complet ou relatif (si +folder+ est fourni)
+folder+ Le dossier si +path+ est fourni en chemin relatif
**/
static openInFinder(path, folder){
Ajax.send('system/open-in-finder.rb', {path:path, folder:folder})
.the... |
Breakaway-Dezigns-Agency/bad-portfolio-21 | src/components/layout/container-full.js | import * as React from "react"
import PropTypes from "prop-types"
const ContainerFull = ({ className, children }) => {
return (
<section className={`max-w-full mx-auto ${className !== '' ? className : ''}`}>
{children}
</section>
)
}
ContainerFull.propTypes = {
className: PropTypes.node.isRequire... |
Apodead/BoxRouter | html/search/defines_1.js | var searchData=
[
['address',['ADDRESS',['../BoxRouter_8h.html#a280feb883e9d4a7edcc69c8bcb9f38f2',1,'BoxRouter.h']]]
];
|
PkayJava/fintech | src/main/java/com/angkorteam/fintech/pages/client/center/CenterClosePage.java | package com.angkorteam.fintech.pages.client.center;
import org.apache.wicket.authroles.authorization.strategies.role.annotations.AuthorizeInstantiation;
import com.angkorteam.fintech.Page;
import com.angkorteam.fintech.dto.Function;
@AuthorizeInstantiation(Function.ALL_FUNCTION)
public class CenterClosePage extends ... |
mikenavarroro/ProgramacionII | Challenge/intercambio.c | #include <stdio.h>
int main(){
int n, aux;
scanf("%d", &n);
int numeros[n];
for(int i = 0; i < n; i++){
scanf("%d", &numeros[i]);
}
for(int i = 0; i < (n/2); i++){
aux = numeros[i];
numeros[i] = numeros[n-1-i];
numeros[n-1-i] = aux;
}
for(int i =... |
arshajii/rho | src/runtime/opcodes.h | <reponame>arshajii/rho<filename>src/runtime/opcodes.h<gh_stars>1-10
#ifndef RHO_OPCODE_H
#define RHO_OPCODE_H
typedef enum {
RHO_INS_NOP = 0x30,
RHO_INS_LOAD_CONST,
RHO_INS_LOAD_NULL,
RHO_INS_LOAD_ITER_STOP,
RHO_INS_ADD,
RHO_INS_SUB,
RHO_INS_MUL,
RHO_INS_DIV,
RHO_INS_MOD,
RHO_INS_POW,
RHO_INS_BITAND,
RHO_I... |
HarumeJs/Discord-Bot | commands/Fun/urban.js | <reponame>HarumeJs/Discord-Bot<filename>commands/Fun/urban.js
// Dependencies
const ud = require('urban-dictionary');
const Discord = require('discord.js');
module.exports.run = async (bot, message, args, emojis, settings) => {
// Get phrase
const phrase = args.join(' ');
if (!phrase) return message.channel.send({ ... |
gesslar/shadowgate | d/avatars/circe/testsword.c | #include <std.h>
inherit "/d/common/obj/weapon/longsword.c";
void create(){
::create();
set_name("<NAME>");
add_id(({ "you better work", "dammit" }));
set_short("Long Sword");
set_obvious_short("long sword");
set_long(
@AVATAR
This is a long sword.
AVATAR
);
set_value(150);
set_property("enchantment",4);
se... |
rosiecowling/specialist-publisher | lib/services.rb | require "gds_api/publishing_api_v2"
require "gds_api/asset_manager"
require "gds_api/email_alert_api"
module Services
def self.publishing_api
@publishing_api ||= GdsApi::PublishingApiV2.new(
Plek.new.find("publishing-api"),
bearer_token: ENV["PUBLISHING_API_BEARER_TOKEN"] || "example",
timeout:... |
navikom/tinkerpop-js | test/tinkergraph/proccess/Graph.min.spec.js | import { TinkerFactory, both } from '../../../src';
describe('Graph min', () => {
const graph = TinkerFactory.createModern();
const g = graph.traversal();
it('g.V().values("age").min().next(); should return 27', () => {
expect(g.V().values("age").min().next()).toBe(27);
});
it('g.V().values("age").min().next... |
bobheadlabs/sourcegraph | enterprise/internal/batches/testing/config.go | <reponame>bobheadlabs/sourcegraph
package testing
import (
"testing"
"github.com/sourcegraph/sourcegraph/enterprise/internal/batches/types/scheduler/config"
"github.com/sourcegraph/sourcegraph/internal/conf"
)
func MockConfig(t testing.TB, mockery *conf.Unified) {
t.Helper()
conf.Mock(mockery)
t.Cleanup(func(... |
AaronFriel/pulumi-aws-native | sdk/python/pulumi_aws_native/wafregional/_inputs.py | <gh_stars>10-100
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. impor... |
19920625lsg/itcast-java | socket/java-network-programming/src/main/java/Chapter02Stream/P36CharactersGenerateOptimize.java | /***********************************************************
* @Description : 字符生成器.定义了一个翻出ASCII文本的服务器
* 优化:使用缓存并一次性全部写出
* @author : 梁山广(<NAME>)
* @date : 2019/9/25 07:29
* @email : <EMAIL>
***********************************************************/
package Chapter02Stream;
import java.io.IOEx... |
enotio/Tempest | Tempest/ui/controls/lineedit.cpp | #include "lineedit.h"
#include <Tempest/Application>
#include <Tempest/Android>
#include <Tempest/IOS>
using namespace Tempest;
#ifdef __OSX__
static const KeyEvent::KeyType cmdKey = KeyEvent::K_Command;
#else
static const KeyEvent::KeyType cmdKey = KeyEvent::K_Control;
#endif
LineEdit::LineEdit() {
resize(100,27... |
ziwa-gangwang/AndroidDemo | app/src/main/java/com/zhou/android/common/ScrollableViewCompat.java | package com.zhou.android.common;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.StaggeredGridLayoutManager;
import android.view.View;
import android.widget.AbsListView;
import android.widget.ScrollView;
public class ScrollableViewC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.