repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
Ghostbaby/Zookeeper-operator | controllers/workload/rollout/rollout.go | <reponame>Ghostbaby/Zookeeper-operator<gh_stars>10-100
package rollout
import (
cachev1alpha1 "github.com/ghostbaby/zookeeper-operator/api/v1alpha1"
"github.com/ghostbaby/zookeeper-operator/controllers/k8s"
commonsts "github.com/ghostbaby/zookeeper-operator/controllers/workload/common/sts"
"github.com/go-logr/logr... |
leeonky/DAL-java | src/main/java/com/github/leeonky/dal/compiler/TokenMatcher.java | <reponame>leeonky/DAL-java<filename>src/main/java/com/github/leeonky/dal/compiler/TokenMatcher.java
package com.github.leeonky.dal.compiler;
import com.github.leeonky.dal.ast.Node;
import java.util.Optional;
import java.util.function.Function;
public interface TokenMatcher {
Optional<Token> fetch(SourceCode sour... |
wdpm/lets-spring | lets-spring-web-mvc/src/main/java/io/github/wdpm/servlet/ExampleServlet.java | package io.github.wdpm.servlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
/**
* @author evan
* @date 2020/5/20
*/
public class ExampleServlet extends HttpServlet {
... |
mijieu/topbisgo | custom/plugins/TopbisgoAdvancedUsers/src/Resources/app/administration/src/module/sw-product/component/sw-product-price-form/index.js | <gh_stars>0
import template from './sw-product-price-form-override.html.twig';
Shopware.Component.override('sw-product-price-form', {
template,
inject: ['acl'],
})
|
isabella232/aistreams | third_party/gstreamer/gst/gstmacros.h | <filename>third_party/gstreamer/gst/gstmacros.h
/* GStreamer
* Copyright (C) <1999> <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the Lic... |
aspose-slides/Aspose.Slides-for-Python-via-.NET | examples/src/Presentations/Conversion/ConvertingPresentationToHtmlWithEmbedAllFontsHtmlController.py | <gh_stars>0
import aspose.slides as slides
def convert_to_html_with_embed_all_fonts():
#ExStart:ConvertingPresentationToHtmlWithEmbedAllFontsHtmlController
dataDir = "./examples/data/"
outDir = "./examples/out/"
with slides.Presentation(dataDir + "welcome-to-powerpoint.pptx") as pres:
# exclud... |
AsepMo/ZFile | DataApplication/app/src/main/java/com/store/data/engine/app/shutdown/OnErrorListener.java | <reponame>AsepMo/ZFile
package com.store.data.engine.app.shutdown;
public interface OnErrorListener {
public void onError(final String msg);
public void onError(final Exception exc);
public void onNotRoot();
}
|
Angel1612/Computer_Science_UNSA | Programacion Competitiva/UVA/11136.cpp | <gh_stars>0
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <string>
#include <cctype>
#include <stack>
#include <queue>
#include <list>
#include <vector>
#include <map>
#include <sstream>
#include <cmath>
#include <bitset>
#include <utility>
#include <set>
#include <numeric>
#inc... |
Dmtrv91/Java-OOP | 07. Interfaces and Abstraction - Lab/06. Ferrari/Main.java | <reponame>Dmtrv91/Java-OOP<gh_stars>1-10
import interfaces.Car;
import car.Ferrari;
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
Car ferrari = new Ferrari(input);
S... |
kushboy/AntennaPod | src/de/danoeh/antennapod/activity/MainActivity.java | <reponame>kushboy/AntennaPod
package de.danoeh.antennapod.activity;
import java.util.ArrayList;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.app.FragmentTra... |
cowwoc/requirements.java | java/src/main/java/com/github/cowwoc/requirements/java/internal/NumberVerifierNoOp.java | /*
* Copyright (c) 2019 <NAME>
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
package com.github.cowwoc.requirements.java.internal;
import com.github.cowwoc.requirements.java.NumberVerifier;
import com.github.cowwoc.requirements.java.internal.extension.AbstractNumber... |
velocist/TS4CheatsInfo | Scripts/simulation/situations/situation_goal_simoleons_earned.py | <reponame>velocist/TS4CheatsInfo<filename>Scripts/simulation/situations/situation_goal_simoleons_earned.py
# uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\... |
gsaurus/sor_pancakes | Sor2_LevelEditor/src/main/Sor2LevelEditor.java | <filename>Sor2_LevelEditor/src/main/Sor2LevelEditor.java
/*
* Copyright 2018 gil.costa.
*
* 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-... |
goclimate/goclimate | spec/factories/climate_report_invoice.rb | <reponame>goclimate/goclimate
# frozen_string_literal: true
FactoryBot.define do
factory :climate_report_invoice do
invoice_address { 'Testvägen 11' }
amount { 100_00 }
currency { 'sek' }
co2e { 1818 }
association :climate_report
trait :ten_tonnes do
association :climate_report, :ten_t... |
CBIIT/stats-application-commons | src/gov/nih/nci/caintegrator/application/lists/ListItem.java | <reponame>CBIIT/stats-application-commons
/*L
* Copyright SAIC
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/stats-application-commons/LICENSE.txt for details.
*/
package gov.nih.nci.caintegrator.application.lists;
import java.io.Serializable;
import org.apache.lo... |
savageboy74/FluxUtilities | src/main/java/tv/savageboy74/fluxutils/common/inventory/FluxRecipes.java | <reponame>savageboy74/FluxUtilities
package tv.savageboy74.fluxutils.common.inventory;
/*
* FluxRecipes.java
* Copyright (C) 2015 Savage - github.com/savageboy74
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"),... |
blusechen/venus | venus-commons/venus-common-io/src/test/java/com/meidusa/venus/io/asm/test/TestJson.java | <filename>venus-commons/venus-common-io/src/test/java/com/meidusa/venus/io/asm/test/TestJson.java
package com.meidusa.venus.io.asm.test;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org... |
wuchunfu/lakego-admin | pkg/lakego-pkg/go-exception/exception/error.go | <reponame>wuchunfu/lakego-admin<gh_stars>0
package exception
import (
"fmt"
"runtime"
)
// 抛出异常
func Throw(message string, code ...int) {
e := NewExceptionWithMessage(message, code...)
panic(e)
}
// 拦截
func Try(f func()) *Error {
e := &Error{}
e.Try(f)
return e
}
/**
* 捕获异常
*
* @cre... |
uk-gov-mirror/hmrc.interest-restriction-return-frontend | test/controllers/ukCompanies/ReviewCompanyRestrictionsControllerSpec.scala | <filename>test/controllers/ukCompanies/ReviewCompanyRestrictionsControllerSpec.scala
/*
* Copyright 2021 HM Revenue & Customs
*
* 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
*
* ht... |
pink-king/Final-Fantasy-Tactics | Motor2D/j1EasingSplines.cpp | <gh_stars>1-10
#include "j1EasingSplines.h"
#include "p2Defs.h"
#include "p2Log.h"
#include "j1App.h"
#include <string>
#include "p2Log.h"
#include "j1Scene.h"
#include "Brofiler/Brofiler.h"
j1EasingSplines::j1EasingSplines() : j1Module()
{
name.assign("easingsplines");
LOG("Construct Spline Module");
}
// Destruct... |
Rbb666/SDK | bsp_for_art-badge/packages/bsal-latest/port/realtek/bsal_rtk.c | <reponame>Rbb666/SDK<filename>bsp_for_art-badge/packages/bsal-latest/port/realtek/bsal_rtk.c
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-05-28 Supperthomas the first version
*/
#include <string... |
huifeideyema/android_wdiget | commonlibrary/src/main/java/com/mrzang/commonlibrary/widget/tv/StringTransformationBitmapUtils.java | <gh_stars>0
package com.mrzang.commonlibrary.widget.tv;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.FontMetricsInt;
import android.graph... |
chrishamillsnyk/c-goof | vendor/iptables-1.8.7/iptables/nft-ipv4.c | /*
* (C) 2012-2014 by <NAME> <<EMAIL>>
* (C) 2013 by <NAME> <<EMAIL>>
*
* 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
* (at your option) any later ve... |
anvitrola/VisCo | src/components/NavBar/Navbar.styles.js | <reponame>anvitrola/VisCo<filename>src/components/NavBar/Navbar.styles.js
import styled from "styled-components";
export const Bar = styled.nav`
width: 40%;
a{
text-decoration: none;
}
ul {
list-style-type: none;
display: flex;
}
`;
export const Filter = styled.ul`
text-transform: uppercase;... |
aparesse/Lightswing | src/schedule.cpp | <gh_stars>0
// Copyright (C)
//
// 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 (at your option) any later version.
//
// This program is distributed... |
relokin/parsec | pkgs/apps/vips/src/libsrc/convolution/im_gaussmasks.c | <gh_stars>1-10
/* @(#) Returns a circularly symmetric Gaussian mask
* @(#) min_amplitude should be greater than 0.0 and less than 1.0
* @(#) min_amplitude determines the size of the mask; if for instance
* @(#) the value .1 is entered this means that the produced mask is clipped
* @(#) at values less than 10 percen... |
pupper68k/arcusplatform | common/arcus-common/src/test/java/com/iris/regex/TestByteRegex.java | <gh_stars>0
/*
* Copyright 2019 Arcus Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
philip-dds/atst | tests/forms/test_task_order.py | import datetime
from dateutil.relativedelta import relativedelta
from flask import current_app as app
from atst.forms.task_order import CLINForm, TaskOrderForm
from atst.models import JEDICLINType
from atst.utils.localization import translate
import tests.factories as factories
def test_clin_form_jedi_clin_type():
... |
byasaa/easybuy-backend | src/controllers/cart.js | <reponame>byasaa/easybuy-backend
const {
response
} = require('../helpers/response')
const {
getMyCartList,
addItem,
editItem,
deleteCartItem,
getSingleCartItem
} = require('../models/cart')
const {
getSingleProduct
} = require('../models/product')
module.exports = {
getMyCartList: asyn... |
nhojpatrick/apache_maven-resolver | maven-resolver-api/src/main/java/org/eclipse/aether/graph/Dependency.java | package org.eclipse.aether.graph;
/*
* 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, V... |
orcoliver/traccar-web-l | src/main/java/org/traccar/web/server/model/ServerMessages.java | /*
* Copyright 2015 <NAME> (<EMAIL>)
*
* 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 agree... |
kingrom/jstarcraft-ai | jstarcraft-ai-jsat/src/main/java/com/jstarcraft/ai/jsat/utils/ArrayUtils.java | package com.jstarcraft.ai.jsat.utils;
import java.util.Arrays;
import java.util.Random;
/**
* Extra utilities for working on array types
*
* @author <NAME>
*/
public class ArrayUtils {
/**
* No constructing!
*/
private ArrayUtils() {
}
/**
* Converts the return value from binaryS... |
fengyanjava/msb-android | app/src/main/java/com/mianshibang/main/ui/Main.java | package com.mianshibang.main.ui;
import android.os.SystemClock;
import android.support.v4.app.Fragment;
import android.view.View;
import android.widget.TextView;
import com.mianshibang.main.R;
import com.mianshibang.main.api.ClassifyApis;
import com.mianshibang.main.api.PlatformApis;
import com.mianshibang.main.api.U... |
kevin10723/mail-1 | src/styleguide/helpers/strip-file-extension.js | 'use strict';
module.exports.register = function(Handlebars) {
// Customize this helper
Handlebars.registerHelper('stripFileExtension', function(str) {
var content = str.replace(/\.[^\.]*$/, '');
return new Handlebars.SafeString(content);
});
}; |
sanderv32/cosmic | cosmic-model/src/main/java/com/cloud/legacymodel/vm/VirtualMachine.java | <gh_stars>10-100
package com.cloud.legacymodel.vm;
import com.cloud.legacymodel.Displayable;
import com.cloud.legacymodel.Identity;
import com.cloud.legacymodel.InternalIdentity;
import com.cloud.legacymodel.acl.ControlledEntity;
import com.cloud.legacymodel.statemachine.StateMachine2;
import com.cloud.legacymodel.sta... |
Kevin-SJW/Enterprise-programming-exercises | AutumnRecruitment/chap5_5/RunLength.java | package AutumnRecruitment.chap5_5;
/**
* @Classname RunLength
* @Description TODO
* @Date 2020/1/17 22:58
* @Created by 14241
*/
public class RunLength {
public static void expand() {
boolean b = false;
while (!BinaryStdIn.isEmpty()) {
char cnt = BinaryStdIn.readChar();
... |
qtwre/Open-Vehicle-Monitoring-System-3 | vehicle/OVMS.V3/main/ovms_semaphore.cpp | /*
; Project: Open Vehicle Monitor System
; Date: 14th March 2017
;
; Changes:
; 1.0 Initial release
;
; (C) 2011 <NAME> / Stegen Electronics
; (C) 2011-2017 <NAME>
; (C) 2011 <NAME> @ EPRO/DX
; (C) 2018 <NAME>
;
; Permission is hereby granted, free of charge,... |
praetorian-thendrickson/msgraph-sdk-go | devicemanagement/devicecategories/device_categories_request_builder.go | <filename>devicemanagement/devicecategories/device_categories_request_builder.go
package devicecategories
import (
ida96af0f171bb75f894a4013a6b3146a4397c58f11adb81a2b7cbea9314783a9 "github.com/microsoft/kiota/abstractions/go"
i4a838ef194e4c99e9f2c63ba10dab9cb120a89367c1d4ab0daa63bb424e20d87 "github.com/microso... |
AQ18/skimpy | tutorials/signaling/tutorial_oscillations.py | # -*- coding: utf-8 -*-
"""
.. module:: skimpy
:platform: Unix, Windows
:synopsis: Simple Kinetic Models in Python
.. moduleauthor:: SKiMPy team
[---------]
Copyright 2021 Laboratory of Computational Systems Biotechnology (LCSB),
Ecole Polytechnique Federale de Lausanne (EPFL), Switzerland
Licensed under the ... |
Nick-Caris/Quizzer | quizz-app/team-app/src/components/roundScreen/roundScreen.js | // Imports
import React from "react";
import AnswerQuestion from "./answerQuestion";
import ShowQuestion from "./showQuestion";
export const RoundScreen = () => (
<div className="round-screen">
<ShowQuestion />
<AnswerQuestion />
</div>
);
|
ArrogantWombatics/openbsd-src | sys/scsi/mpath_emc.c | /* $OpenBSD: mpath_emc.c,v 1.21 2015/03/14 03:38:52 jsg Exp $ */
/*
* Copyright (c) 2011 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all c... |
karanrajpal14/portfolio-redux-again | src/components/StyledImage.js | import styled from "styled-components"
import Img from "gatsby-image"
export const StyledImage = styled(Img)`
border-radius: 5px 5px 0 0 !important;
` |
mgreminger/OCP | opencascade/OSD_MAllocHook.hxx | <reponame>mgreminger/OCP<filename>opencascade/OSD_MAllocHook.hxx
// Created on: 2011-02-03
// Created by: <NAME>
// Copyright (c) 2011-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the ter... |
arez/arez | core/src/test/java/arez/component/DisposeNotifierTest.java | package arez.component;
import arez.AbstractTest;
import arez.SafeProcedure;
import javax.annotation.Nonnull;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
public final class DisposeNotifierTest
extends AbstractTest
{
static class BasicDisposeNotifier
implements DisposeNotifier
{
... |
fciubotaru/z-pec | ZimbraSelenium/src/java/com/zimbra/qa/selenium/projects/admin/tests/migration/NavigateAccountMigration.java | package com.zimbra.qa.selenium.projects.admin.tests.migration;
import org.testng.annotations.Test;
import com.zimbra.qa.selenium.framework.util.HarnessException;
import com.zimbra.qa.selenium.framework.util.ZAssert;
import com.zimbra.qa.selenium.projects.admin.core.AdminCommonTest;
import com.zimbra.qa.selenium.proje... |
abitmore/open-monitor | monitor-server/models/db_monitor.go | <reponame>abitmore/open-monitor<filename>monitor-server/models/db_monitor.go
package models
type DbMonitorTable struct {
Id int `json:"id"`
EndpointGuid string `json:"endpoint_guid"`
Name string `json:"name"`
Sql string `json:"sql"`
SysPanel string `json:"sys_panel"`
}
type DbMo... |
ALRubinger/descriptors | metadata-parser/src/main/java/org/jboss/shrinkwrap/descriptor/metadata/mojo/MetadataParserMojo.java | /*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not us... |
kalyons11/kevin | kevin/leet/check_binary_codes.py | """
https://leetcode.com/explore/challenge/card/march-leetcoding-challenge-2021/589/week-2-march-8th-march-14th/3669/
"""
# time O(N), where N = len(s)
# memory O(2 ** k)
class Solution:
def has_all_codes(self, s: str, k: int) -> bool:
# O(n) solution - gather all length k substrings and check their set
... |
SIIS-cloud/pileus | difc-kernel/pileus-kernel/drivers/input/keyboard/samsung-keypad.c | <filename>difc-kernel/pileus-kernel/drivers/input/keyboard/samsung-keypad.c<gh_stars>1-10
/*
* Samsung keypad driver
*
* Copyright (C) 2010 Samsung Electronics Co.Ltd
* Author: <NAME> <<EMAIL>>
* Author: <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify it
* under the t... |
santiagozky/sling | tooling/support/provisioning-model/src/main/java/org/apache/sling/provisioning/model/Version.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 n... |
AB-informatica-service/swat4stats.com | tracker/tests/test_views.py | <reponame>AB-informatica-service/swat4stats.com<gh_stars>10-100
from __future__ import unicode_literals
import datetime
import random
from mock import patch
from django import test
from tracker import models, utils, const
class PopularProfileTestCase(test.TestCase):
unpopular_sets = (
{},
{'na... |
Ledzy/tsearcher | search/ON_LSTM/parse_test.py | <reponame>Ledzy/tsearcher
import sys
import torch
import argparse
import hashlib
import os
import numpy as np
import data
from data import Corpus
from torch.optim import SGD, Adam
from splitcross import SplitCrossEntropyLoss
from model import RNNModel
from parse_arg import *
from utils import batchify, get_batch, repac... |
Yannic/chromium | chrome/browser/policy/chrome_browser_cloud_management_controller_android_unittest.cc | <gh_stars>10-100
// Copyright 2021 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.
#include "chrome/browser/policy/chrome_browser_cloud_management_controller_android.h"
#include "chrome/test/base/testing_browser_process... |
stangelandcl/hardhat | hardhat/recipes/python/django_filter.py | from .base import PipBaseRecipe
class DjangoFilterRecipe(PipBaseRecipe):
def __init__(self, *args, **kwargs):
super(DjangoFilterRecipe, self).__init__(*args, **kwargs)
self.name = 'django-filter'
self.version = '0.13.0'
self.pydepends = ['django']
self.sha256 = 'b4c1614576... |
jamesmwright/client | shared/login/forms/intro.js | // @flow
import {Splash, Intro, Failure} from '.'
import {connect} from 'react-redux'
import {loginTab} from '../../constants/tabs'
import {navigateTo} from '../../actions/route-tree'
import {retryBootstrap} from '../../actions/config'
import {setRevokedSelf, setDeletedSelf, setLoginFromRevokedDevice, login} from '../.... |
parasol-ppl/PPL_utils | stapl_release/stapl/containers/array/static_array_traits.hpp | <filename>stapl_release/stapl/containers/array/static_array_traits.hpp
/*
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
// All rights reserved.
// The information and source code contained herein is the exclusive
// property of TEES and may... |
iaiai/cobra | cobra.platform/src/main/java/com/iaiai/cobra/platform/wx/WxPayUtil.java | <gh_stars>1-10
package com.iaiai.cobra.platform.wx;
import com.iaiai.cobra.common.util.StringUtil;
import com.iaiai.cobra.common.util.web.HttpsUtil;
import com.iaiai.cobra.common.util.xml.XmlUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.http.HttpEntity;
import org.apache.http.client.methods.CloseableHttpRe... |
kupl/npex | extractor/src/main/java/npex/extractor/context/AbstractCallerMethodContext.java | <gh_stars>1-10
package npex.extractor.context;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import npex.common.filters.MethodOrConstructorFilter;
import spoon.reflect.code.CtAbstractInvocation;
import spoon.reflect.declaration.CtExecutable;
public abstract class AbstractCallerMethodContext implements Con... |
Bloombox/jsinterop-generator | javatests/jsinterop/generator/externs/generics/ExtendInterfaceWithGeneric.java | package jsinterop.generator.externs.generics;
import java.lang.Double;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public interface ExtendInterfaceWithGeneric extends InterfaceWithGeneric<Double> {
void bar(InterfaceWithGeneric<... |
BennettDixon/holbertonschool-low_level_programming | 0x1C-binary_trees/2-binary_tree_insert_right.c | <gh_stars>1-10
#include "binary_trees.h"
#include <stdlib.h>
/**
* binary_tree_insert_right - inserts a node to the right of parent
* @parent: parent node to insert child under
* @value: value to create new node data
*
* Return: pointer to new binary tree node
*/
binary_tree_t *binary_tree_insert_right(binary_tr... |
conghannn/CX_Interface | visualize_synapses.py | <filename>visualize_synapses.py
#!/usr/bin/env python
"""
Visualize inferred synapses.
"""
import itertools
import logging
import sys
import numpy as np
import pandas as pd
from pyorient.ogm import Graph, Config
import neuroarch.models as models
import neuroarch.query as query
import neuroarch.conv as conv
import a... |
davidsli/boubei-tss | src/main/java/com/boubei/tss/dm/record/permission/RecordResource.java | <filename>src/main/java/com/boubei/tss/dm/record/permission/RecordResource.java
/* ==================================================================
* Created [2016-3-5] by Jon.King
* ==================================================================
* TSS
* =================================================... |
PercyWoeds/ruby_snat2 | sunat.gemspec | <reponame>PercyWoeds/ruby_snat2<filename>sunat.gemspec
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'sunat/version'
Gem::Specification.new do |spec|
spec.name = "sunat"
spec.version = SUNAT::VERSION
spec.authors = ... |
ChalkLab/SciFlow | datafiles/migrations/0001_initial.py | # Generated by Django 3.2.8 on 2021-10-12 15:54
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AspectActlog',
fields=[
('id', models.AutoF... |
silentorb/mythic-cpp | projects/client/audio/aura_sequencing/source/aura/sequencing/Note.h | #pragma once
#include "aura/sequencing/Pitch.h"
#include "Beats.h"
namespace aura {
namespace sequencing {
class Note {
Beats duration;
const Pitch *pitch;
float frequency;
Beats start;
float velocity = 1;
// unsigned long id;
public:
... |
platypii/OpenJSCAD.org | packages/vtree/core/modeling/index-old.js | <reponame>platypii/OpenJSCAD.org
/* eslint-disable */
const { toArray, flatten } = require('@jscad/array-utils')
const colors = (params, ...objects) => {
objects = flatten(objects)
return { children: objects, type: 'colors', params }
}
// attempt at workaround for non tree items that need access to data before fi... |
ZhenwenHe/gtl-java | series/src/main/java/cn/edu/cug/cs/gtl/series/common/saxtg/Utils.java | package cn.edu.cug.cs.gtl.series.common.saxtg;
import cn.edu.cug.cs.gtl.array.Array;
import cn.edu.cug.cs.gtl.series.common.MultiSeries;
import cn.edu.cug.cs.gtl.series.common.Series;
import cn.edu.cug.cs.gtl.series.common.TimeSeries;
public class Utils {
/**
* saxtg representation
*
* @param ts
... |
DiffBlue-benchmarks/apache-isis | core/applib/src/main/java/org/apache/isis/applib/util/Hashing.java | <gh_stars>0
package org.apache.isis.applib.util;
import java.util.List;
import java.util.Objects;
import java.util.function.Function;
import org.apache.isis.applib.internal.collections._Lists;
/**
* Fluent Object Hash Code Composition.
*
* @param <T>
* @since 2.0.0
*
*/
public class Hashing<T> {
public sta... |
folago7/abe718 | ware15-source-data/src/main/java/com/data/source/controller/DataController.java | <reponame>folago7/abe718<filename>ware15-source-data/src/main/java/com/data/source/controller/DataController.java
package com.data.source.controller;
import com.data.source.entity.AdminUser;
import com.data.source.entity.UserBase;
import com.data.source.service.AdminUserService;
import com.data.source.service.UserBase... |
insphereapplication/rhodes | platform/shared/common/RhodesApp.h | #pragma once
#include "RhodesAppBase.h"
#ifdef __cplusplus
#include "common/ThreadQueue.h"
#include "net/INetRequest.h"
#include "net/HttpServer.h"
#include "SplashScreen.h"
#include "AppMenu.h"
#undef DEFAULT_LOGCATEGORY
#define DEFAULT_LOGCATEGORY "RhodesApp"
namespace rho {
namespace common {
class CRhodesAp... |
lazyeraser/DereHelper | app/src/main/java/com/lazyeraser/imas/cgss/entity/CardIndex.java | package com.lazyeraser.imas.cgss.entity;
/**
* Created by lazyeraser on 2017/9/19.
*/
public class CardIndex {
public int id;
public int evolution_id;
}
|
atmhrt/gatsby-theme-hello-friend-ng | gatsby-theme-hello-friend-ng/src/components/icons/hamburger-menu.js | import React from "react"
const HamburgerMenuIcon = () => {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M0 0h24v24H0z" fill="none" />
<path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" />
</svg>
)
}
export default HamburgerMenuIcon
|
FeiZhan/Algo-Collection | answers/lintcode/3 Sum.cpp | //@level Medium
//@type Two Pointers Sort Array
//@result Accepted Total Runtime: 57 ms 100% test cases passed.
class Solution {
public:
/**
* @param numbers : Give an array numbers of n integer
* @return : Find all unique triplets in the array which gives the sum of zero.
*/
vect... |
bb4/bb4-experimentation | scala-source/com/barrybecker4/experimentation/gcf/BruteGcfSolver.scala | /** Copyright by <NAME>, 2000-2018. Licensed under MIT License: http://www.opensource.org/licenses/MIT */
package com.barrybecker4.experimentation.gcf
/**
* Find the GCF by brute force approach.
* This is <i>much</i> slower than Euclid's algorithm
* @author <NAME>
*/
final class BruteGcfSolver extends GcfSolv... |
blahutova/talent-tool-openshift | talent-tool-frontend/src/components/categories/EditTranslationPage.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import TextInput from '../common/TextInput';
import * as categoryActions from '../../actions/categoryActions';
import {bindActionCreators} from 'redux';
import { withRouter } from 'react-router-dom';
import {connect} from 'react-redux';
import ... |
Amity-Network/amity | contrib/depends/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/net/if_ether.h | <reponame>Amity-Network/amity
/*
* Copyright (c) 2004-2012 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License')... |
vanadium-archive/java | projects/syncslides/app/src/main/java/io/v/android/apps/syncslides/FullscreenSlideFragment.java | // Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package io.v.android.apps.syncslides;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import androi... |
chizon/dubbo | hdw-upms-web/src/main/java/com/hdw/upms/shiro/oauth2/ShiroJwtConfig.java | <reponame>chizon/dubbo
package com.hdw.upms.shiro.oauth2;
import com.hdw.upms.shiro.cache.RedisCacheManager;
import com.hdw.upms.shiro.cache.RedisSessionDAO;
import org.apache.shiro.codec.Base64;
import org.apache.shiro.mgt.SecurityManager;
import org.apache.shiro.session.mgt.ExecutorServiceSessionValidationScheduler;... |
APistole/KnightOnline | Server/shared/database/MagicType6Set.h | <filename>Server/shared/database/MagicType6Set.h
#pragma once
class CMagicType6Set : public OdbcRecordset
{
public:
CMagicType6Set(OdbcConnection * dbConnection, Magictype6Array * pMap)
: OdbcRecordset(dbConnection), m_pMap(pMap) {}
virtual tstring GetTableName() { return _T("MAGIC_TYPE6"); }
virtual tstring G... |
cbracis/ForagingModel | test/ForagingModel/space/AbstractMemoryHelper.java | package ForagingModel.space;
import org.apache.commons.math3.linear.ArrayRealVector;
import org.apache.commons.math3.linear.RealMatrix;
import org.apache.commons.math3.linear.RealVector;
import ForagingModel.core.NdPoint;
public class AbstractMemoryHelper extends AbstractMemory
{
protected AbstractMemoryHelper(Ang... |
meKokabi/osgi | org.osgi.test.cases.framework.launch/src/javax/security/auth/x500/X500Principal.java | /*
* (C) Copyright 2001 Sun Microsystems, Inc.
* Copyright (c) OSGi Alliance (2001, 2016). 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.apa... |
vargandhi/ime-congs | chipyard.TestHarness.LargeBoomAndRocketConfig/chipyard.TestHarness.LargeBoomAndRocketConfig/VTestHarness__16.cpp | // Verilated -*- C++ -*-
// DESCRIPTION: Verilator output: Design implementation internals
// See VTestHarness.h for the primary calling header
#include "VTestHarness.h"
#include "VTestHarness__Syms.h"
#include "verilated_dpi.h"
VL_INLINE_OPT void VTestHarness::_sequent__TOP__2186(VTestHarness__Syms* __restrict vlSy... |
suhaibmujahid/manager | src/users/user/layouts/PermissionsPage.spec.js | <filename>src/users/user/layouts/PermissionsPage.spec.js
import { mount, shallow } from 'enzyme';
import React from 'react';
import sinon from 'sinon';
import { PermissionsPage } from '~/users/user/layouts/PermissionsPage';
import { expectDispatchOrStoreErrors, expectRequest } from '~/test.helpers';
import { testUser... |
cern-fts/fts3 | src/cred/DelegCred.h | /*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
LunarWatcher/Genesis | src/genesis/rendering/Texture.hpp | <filename>src/genesis/rendering/Texture.hpp
#pragma once
#include "GL/glew.h"
#include <string>
#include <vector>
namespace genesis {
class Texture {
protected:
GLuint textureId;
int width, height;
int atlasTileWidth, atlasTileHeight;
// TODO: figure out what this is actually for
// (generated by... |
goflutterjava/java-sdk | java-tool/src/main/java/com/github/shoothzj/javatool/util/LogUtil.java | <filename>java-tool/src/main/java/com/github/shoothzj/javatool/util/LogUtil.java<gh_stars>1-10
package com.github.shoothzj.javatool.util;
import lombok.extern.slf4j.Slf4j;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.core.config.Configurator;
/**
* @author hezhangjian
*/
@Slf4j
public clas... |
zthang/code2vec_treelstm | raw_dataset/72457711@solve@OK.java | <filename>raw_dataset/72457711@solve@OK.java
void solve() throws IOException {
n = ni();
X = new int[n + 1][n + 1];
Y = new int[n + 1][n + 1];
A = new int[n + 1][n + 1];
for (int x = 1; x <= n; x++) {
for (int y = 1; y <= n; y++) {
X[x][y] = ni();
Y[x][y] = ni();
... |
mrgrassho/pisa | tools/compute_intersection.cpp | #include <limits>
#include <optional>
#include <string>
#include <vector>
#include "mappable/mapper.hpp"
#include <CLI/CLI.hpp>
#include <fmt/format.h>
#include <range/v3/view/filter.hpp>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/spdlog.h>
#include "app.hpp"
#include "index_types.hpp"
#include "in... |
diyaa-3/eduplaycloud_v8 | public/assets/eduplaycloud/customs/editor-playground/vendor/CodeMirror-QEdu/codemirror-Q/addon/hover/QEdu-hover.js | <filename>public/assets/eduplaycloud/customs/editor-playground/vendor/CodeMirror-QEdu/codemirror-Q/addon/hover/QEdu-hover.js
(function() {
"use strict";
function getHtmlOfFunction(module, f, prefix) {
var className = startsWithString(module.namespace, 'java:') ? 'CodeMirror-hover-module-java' : 'CodeMirror-hove... |
adriangrepo/qreservoir | gui/wellplot/setup/wellselectionwidget.py | <reponame>adriangrepo/qreservoir<gh_stars>1-10
from PyQt4.QtGui import QWidget, QDialog, QStandardItem, QStandardItemModel
from PyQt4 import QtGui, QtCore
from globalvalues.appsettings import AppSettings
from statics.types.logtype import LogType
from PyQt4.Qt import Qt
from preferences.general.generalsettings import... |
AsahiOS/gate | usr/src/cmd/cmd-inet/usr.sbin/traceroute/traceroute.h | /*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright (c) 1988, 1989, 1991, 1994, 1995, 1996, 1997
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modifi... |
franmper/healthy-front | src/state/auth/sagas/register.saga.js | import { takeLatest } from "redux-saga/effects";
import * as actions from "../actions";
import * as types from "../types";
import * as services from "../services";
import { makeWorker } from "../../utils";
function* watchRegister() {
const workerRegister = makeWorker(services.postRegister, {
success: actions.succes... |
qunarcorp/startalk_pc_v2 | UIChatViewPlug/MessageItems/CodeItem.h | //
// Created by cc on 2019-02-28.
//
#ifndef QTALK_V2_CodeItem_H
#define QTALK_V2_CodeItem_H
#include "MessageItemBase.h"
#include <QLabel>
class CodeItem : public MessageItemBase {
Q_OBJECT
public:
explicit CodeItem(const QTalk::Entity::ImMessageInfo &msgInfo, QWidget *parent = Q_NULLPTR);
~CodeItem() ... |
dmontoya1/cajas | cajas/reports/api/views/report_ranking_save.py | <gh_stars>0
from datetime import datetime
from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import APIView
from cajas.api.CsrfExempt import CsrfExemptSessionAuthentication
from ...models import RankingOffice
class ReportRankingSave(APIView):
authenticati... |
happycode4ever/spark | spark-core/rdd/src/main/scala/com/jj/rdd/transform/TransformTest1.scala | package com.jj.rdd.transform
import com.jj.rdd.util.PartitionUtil
import org.apache.spark.rdd.RDD
import org.apache.spark.{HashPartitioner, SparkConf, SparkContext}
import scala.reflect.ClassTag
object TransformTest1 {
private val sparkConf = new SparkConf().setMaster("local[*]").setAppName("transform1")
private... |
trungson/adspeed-amphtml-rev1 | extensions/amp-bind/0.1/test/test-bind-impl.js | <gh_stars>0
/**
* Copyright 2016 The AMP HTML 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
*
* Un... |
chyuck/leet-code | src/main/java/solutions/WordLadder.java | <reponame>chyuck/leet-code
package solutions;
import java.util.*;
/**
* Solution for https://leetcode.com/problems/word-ladder problem with
* Time complexity: O(N * W)
* Space complexity: O(N * W)
* where N - number of words, W - length of word
*/
public class WordLadder {
class WordWithLevel {
publ... |
EliKabasele/openHAB_MyUI | Source Code/AsTeRICS/ARE/components/processor.differentiate/src/main/java/eu/asterics/component/processor/differentiate/DifferentiateInstance.java |
/*
* AsTeRICS - Assistive Technology Rapid Integration and Construction Set
*
*
* d8888 88888888888 8888888b. 8888888 .d8888b. .d8888b.
* d88888 888 888 Y88b 888 d88P Y88b d88P Y88b
* d88P888 888 888 888 888 888 888 Y88b.... |
appkr/msabase | templates/webmvc/src/main/java/stream/ProducerChannel.java | package {{packageName}}.stream;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
public interface ProducerChannel {
String CHANNEL = "messageChannel";
@Output
MessageChannel messageChannel();
} |
dunkelstern/libmqtt | src/state_queue.h | #ifndef state_queue_h__included
#define state_queue_h__included
#include <stdint.h>
#include "mqtt.h"
#include "packet.h"
typedef struct _MQTTCallbackQueueItem {
struct _MQTTCallbackQueueItem *next;
MQTTControlPacketType type;
uint16_t packet_id;
void *context;
MQTTEventHandler callback;
} MQTTCa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.