repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
helloqinglan/courtdriver | src/main/java/com/domoes/kafka/POJOTagValue.java | package com.domoes.kafka;
public class POJOTagValue {
private String tag;
private String value;
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
public String getValue() {
return value;
}
public void setValue(Strin... |
arfathpasha/auth2 | src/us/kbase/test/auth2/lib/RoleTest.java | package us.kbase.test.auth2.lib;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
import java.util.Arrays;
import java.util.Collections;
import java.util.Set;
import java.util.stream.Collectors;
import org.junit.Test;
import us.kbase.auth2.l... |
Cyynet/CreditSalesman | CreditSalesman/Classes/LeftMenu/View/ZHVersionModel.h | <filename>CreditSalesman/Classes/LeftMenu/View/ZHVersionModel.h
//
// ZHVersionModel.h
// ZHFinancialClient
//
// Created by zhph on 2017/4/25.
// Copyright © 2017年 正和. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ZHVersionModel : NSObject
/*主键*/
@property(nonatomic,copy)NSString * ID;
/... |
aml-org/als | als-lsp/shared/src/main/scala/org/mulesoft/lsp/feature/link/DocumentLinkClientCapabilities.scala | package org.mulesoft.lsp.feature.link
/**
* Capabilities specific to the `textDocument/documentLink`.
*
* @param dynamicRegistration Whether documentLink supports dynamic registration.
* @param tooltipSupport Whether the client support the `tooltip` property on `DocumentLink`.
*/
case class DocumentLinkClien... |
wupengFEX/mip-extensions-platform | mip-wygx-webp/mip-wygx-webp.js | /**
* @file mip-wygx-webp 组件
* @author qiu_rj
*/
define(function (require) {
'use strict';
var util = require('util');
var customElement = require('customElement').create();
var lazyCookie = {
setCookie: function () {
var exdate = new Date();
exdate.setDate(exdate.get... |
yangdsh/ottertune | server/website/script/fixture_generators/knob_settings/oracle/create_knob_settings.py | <filename>server/website/script/fixture_generators/knob_settings/oracle/create_knob_settings.py
#
# OtterTune - create_knob_settings.py
#
# Copyright (c) 2017-18, Carnegie Mellon University Database Group
#
import csv
import json
import shutil
from operator import itemgetter
# Oracle Type:
# 1 - Boolean
# 2 - String
#... |
staddi99/AdventOfCode | 2020/day_8/input.js | const input = `acc +18
nop +222
acc -16
acc +28
jmp +475
acc -6
jmp +584
acc -12
acc -8
jmp +554
acc -9
acc +12
acc -16
acc +27
jmp +336
acc -4
jmp +214
acc +38
jmp +61
acc +3
acc +28
acc +5
acc -19
jmp +584
nop +206
jmp +506
acc +36
jmp +133
acc +20
acc +43
acc -18
jmp +409
acc +24
jmp +131
acc -12
acc +7
acc +7
jmp +... |
aliyun/dingtalk-sdk | dingtalk/java/src/main/java/com/aliyun/dingtalkyida_1_0/models/GetTaskCopiesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkyida_1_0.models;
import com.aliyun.tea.*;
public class GetTaskCopiesRequest extends TeaModel {
// 应用ID
@NameInMap("appType")
public String appType;
// 验权token
@NameInMap("systemToken")
public String systemToken;... |
Miyo-Excellent/Friender_Advance | src/app/views/User/views/components/Profile/components/ProfileInformation/components/Header/index.js | // Dependencies
import { connect } from 'react-redux';
import React, { Component } from 'react';
// Styles
import styles from './scss/Header.scss';
class Header extends Component {
constructor(props) {
super(props);
}
render() {
const { user } = this.props;
const headerWrapperCustomStyles = (optio... |
ChrisHilborne/to-do-api | src/main/java/com/chilborne/todoapi/security/SecurityConfig.java | <gh_stars>0
package com.chilborne.todoapi.security;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotati... |
TrustedBSD/sebsd | sys/dev/usb/if_cdcereg.h | /*
* Copyright (c) 2003-2005 <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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
Xtra-Computing/briskstream | FlinkBenchmarks/src/main/java/applications/FlinkRunner.java | <filename>FlinkBenchmarks/src/main/java/applications/FlinkRunner.java
package applications;
import applications.topology.benchmarks.*;
import com.beust.jcommander.JCommander;
import com.beust.jcommander.ParameterException;
import constants.*;
import org.apache.flink.storm.api.FlinkLocalCluster;
import org.apache.flink... |
mmiladi/galaxy | config/plugins/visualizations/charts/static/client/views/groups.js | <reponame>mmiladi/galaxy
/** This class renders the chart data selection form with repeats. */
define( [ 'utils/utils', 'mvc/ui/ui-misc', 'mvc/form/form-view', 'mvc/form/form-repeat', 'mvc/form/form-data', 'plugin/views/description' ],
function( Utils, Ui, Form, Repeat, FormData, Description ) {
var GroupView =... |
AlexAtNet/galgo | solutions/hackerrank/palindrome-index/palindrome-index.go | package main
import (
"bufio"
"fmt"
"os"
"strconv"
"strings"
)
func main() {
r := bufio.NewReader(os.Stdin)
d, _ := r.ReadBytes('\n')
n, _ := strconv.Atoi(strings.Trim(string(d), "\n"))
for i := 0; i < n; i++ {
d, _ = r.ReadBytes('\n')
line := strings.Trim(string(d), "\n")
if check(line, -1) {
fm... |
hpham/odftoolkit | odfdom/src/main/java/org/odftoolkit/odfdom/dom/element/table/TableDataPilotFieldReferenceElement.java | <reponame>hpham/odftoolkit<gh_stars>10-100
/**
* **********************************************************************
*
* <p>DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
*
* <p>Copyright 2008, 2010 Oracle and/or its affiliates. All rights reserved.
*
* <p>Use is subject to license terms.
*
* ... |
Iron-Panthers/FTC-2017 | TeamCode/src/main/java/org/firstinspires/ftc/team7316/util/commands/sensors/PollColor.java | package org.firstinspires.ftc.team7316.util.commands.sensors;
import org.firstinspires.ftc.team7316.util.Constants;
import org.firstinspires.ftc.team7316.util.Hardware;
import org.firstinspires.ftc.team7316.util.commands.Command;
import org.firstinspires.ftc.team7316.util.subsystems.Subsystems;
/**
* Created by jerr... |
openeuler-mirror/radiaTest | radiaTest-web/src/views/backendTask/modules/taskSocket.js | import { Socket } from '@/socket';
import config from '@/assets/config/settings';
import { getTask } from './taskTable';
function connectSocket() {
const socketObj = new Socket(`${config.websocketProtocol}://${config.serverPath}/celerytask`);
console.log('connect');
socketObj.connect();
socketObj.listen('update... |
turbo-play/ewallet | apps/admin_panel/assets/src/helpers/copier.js | <reponame>turbo-play/ewallet<gh_stars>1-10
export default function copyToClipboard(text) {
const textArea = document.createElement('textarea');
textArea.value = text;
document.body.appendChild(textArea);
textArea.select();
try {
document.execCommand('copy');
} catch (error) {
console.log('Unable to ... |
steinarvk/orclib | module/orc-tinkgcpkms/module.go | <reponame>steinarvk/orclib
package orctinkgcpkms
import (
"github.com/google/tink/go/core/registry"
"github.com/google/tink/go/integration/gcpkms"
"github.com/sirupsen/logrus"
"github.com/steinarvk/orc"
)
type Module struct {
}
func (m *Module) ModuleName() string { return "TinkGCPKMS" }
var M = &Module{}
func... |
jd3538/Marist-Sakai-11.x | gradebookng/tool/src/java/org/sakaiproject/gradebookng/tool/panels/SettingsGradeReleasePanel.java | package org.sakaiproject.gradebookng.tool.panels;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.apache.wicket.AttributeModifier;
import org.apache.wicket.ajax.AjaxEventBehavior;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.f... |
BJackal/biodynamo_singularity | src/core/environment/kd_tree_environment.cc | // -----------------------------------------------------------------------------
//
// Copyright (C) 2021 CERN & University of Surrey for the benefit of the
// BioDynaMo collaboration. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compl... |
abhisheks008/Design-and-Analysis-Algorithm-Lab-4th-Semester | OOPs using JAVA/Day 10/Assignment 3/a3q12.java | // Write a Java program to print transpose of matrix.
// Author : <NAME>
public class a3q12{
public static void main(String args[]){
int original[][]={{1,3,4},{2,4,3},{3,4,5}};
int transpose[][]=new int[3][3];
for(int i=0;i<3;i++){
for(int j=0;j<3;j++){
transpose[i][j]=origi... |
trae-horton/secret-bridge | models/monitors/monitor.py | <reponame>trae-horton/secret-bridge
from abc import ABC, abstractmethod
class MonitorModel(ABC):
@abstractmethod
def poll(self):
"""Polls the appropriate Github Events API for new events associated
with this model.
"""
pass |
qatix/JavaBase | src/main/java/com/qatix/base/jol/EmptyClassArr.java | package com.qatix.base.jol;
import org.openjdk.jol.info.ClassLayout;
import org.openjdk.jol.vm.VM;
public class EmptyClassArr {
public static void main(String[] args) throws Exception {
System.out.println(VM.current().details());
A[] as = new A[2];
System.out.println(ClassLayout.parseInst... |
BBN-E/text-open | src/python/serif/util/dump_eer_only_custom.py | import os,sys,enum, multiprocessing
current_script_path = __file__
project_root = os.path.realpath(os.path.join(current_script_path, os.path.pardir, os.path.pardir, os.path.pardir))
sys.path.append(project_root)
import serifxml3
def get_event_anchor(serif_em:serifxml3.EventMention,serif_sentence_tokens:serifxml3.Tok... |
Abhiroopks/MuJava-Project | src/openjava/ptree/VariableInitializer.java | //
// Decompiled by Procyon v0.5.36
//
package openjava.ptree;
public interface VariableInitializer extends ParseTree
{
}
|
Dqu1J/marbles | src/main/java/net/dodogang/marbles/block/vanilla/PublicTorchBlock.java | <reponame>Dqu1J/marbles
package net.dodogang.marbles.block.vanilla;
import net.minecraft.block.TorchBlock;
import net.minecraft.particle.ParticleEffect;
public class PublicTorchBlock extends TorchBlock {
public PublicTorchBlock(Settings settings, ParticleEffect particle) {
super(settings, particle)... |
jakkrits/ChewEste | mutations/CreateWebMutation.js | <filename>mutations/CreateWebMutation.js
// @flow
import { graphql, commitMutation } from 'react-relay';
import type { Commit } from '../types';
import type {
CreateWebMutationVariables,
CreateWebMutationResponse,
} from './__generated__/CreateWebMutation.graphql';
import { ConnectionHandler } from 'relay-runtime';... |
tsegall/mongo-jdbc-driver | src/main/java/com/dbschema/mongo/nashorn/MemberFunction.java | package com.dbschema.mongo.nashorn;
import jdk.nashorn.api.scripting.ScriptObjectMirror;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.function.*;
/**
* @author <NAME>
**/
public cl... |
mskoenz/arduino_crash_course | libraries/CustomHeaderLibs/ustd/filter/lowpass.hpp | // Author: <NAME> <<EMAIL>>
// Date: 23.07.2013 05:09:59 EDT
// File: lowpass.hpp
/* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Vers... |
MouseLightProject/Fetch | ui/uiunits.h | <filename>ui/uiunits.h
#pragma once
#include "units.h"
#include <QtWidgets>
#include <Eigen\Core>
using namespace Eigen;
namespace fetch {
namespace units {
template<Length dst, Length src>
inline Vector3f cvt(const Vector3f& r)
{ return cvt<dst,src>(1.0)*r;
}
template<Length dst, Length src>
inline Q... |
Jorch72/OpenPeripheral | src/main/java/openperipheral/api/ApiAccess.java | package openperipheral.api;
/**
* This class is used to access instancef of API interfaces (marked with {@link IApiInterface}).
*
* For alternative method, see {@link ApiHolder}.
*/
public class ApiAccess {
public static final String API_VERSION = "$OP-API-VERSION$";
public interface ApiProvider {
public <T e... |
Siddhant-K-code/darwin | third_party/gtest/gtest.h | <reponame>Siddhant-K-code/darwin<gh_stars>10-100
#pragma once
#include "src/googletest/include/gtest/gtest.h"
|
edusasse/SaGUI | sagui-parent/sagui-render-common/src/main/java/com/sagui/ext/common/render/util/ListDiference.java | package com.sagui.ext.common.render.util;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
public class ListDiference<E> {
private final Comparator<E> comparator;
private final List<E> newList;
... |
markllama/osp-survey | src/ospsurvey/probes/sm.py | """
Classes and Functions to query the software update status of a Red Hat
server.
"""
import logging
import os
import re
import subprocess
import tempfile
#
# Subscription Manager
#
class SubscriptionManager():
"""
Query and report status of Subscription Manager
"""
def __init__(self):
self._status = None... |
msxiehui/eoLinker-API-Management-for-PHP | frontend_resource/src/app/service/service.module.js | <gh_stars>1-10
(function() {
'use strict';
/**
* @Author 广州银云信息科技有限公司 eolinker
* @function [服务模块定义js] [Service module definition js]
* @version 3.0.2
*/
angular.module('eolinker.service', [])
})();
|
teddywest32/intellij-community | java/java-tests/testData/psi/resolve/method/Remove4.java | <gh_stars>1-10
package ;
/**
* Created by IntelliJ IDEA.
* User: ik
* Date: 17.01.2003
* Time: 19:11:56
* To change this template use Options | File Templates.
*/
public class Remove4 {
}
|
drkane/find-that-charity | ftc/management/commands/import_rsl.py | import datetime
import io
from openpyxl import load_workbook
from ftc.management.commands._base_scraper import HTMLScraper
from ftc.models import Organisation, OrganisationLocation
class Command(HTMLScraper):
"""
Spider for scraping details of Registered Social Landlords in England
"""
name = "rsl"... |
keyboardcowboy42/LightZone | lightcrafts/jnisrc/lcms/lcms/cmsgamma.c | <gh_stars>10-100
//
// Little cms
// Copyright (C) 1998-2006 <NAME>
//
// 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 ... |
ARCHTK-prog/utils-tools | utils-spider/src/main/java/com/chua/utils/tools/spider/interpreter/AbstractPageInterpreter.java | package com.chua.utils.tools.spider.interpreter;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.function.Consumer;
/**
* 页面处理
* @author CH
*/
public abstract class AbstractPageInterpreter implements IPageInterpreter{
private Set<Stri... |
prepare/vmware-svga-git | examples/cubemark/main.c | <filename>examples/cubemark/main.c
/*
* Cubemark, a microbenchmark which renders a very large number of
* very simple objects. This stresses the throughput of the SVGA3D
* command pipeline and API layers.
*
* Half of the cubes are rendered using fixed-function, and half of
* them are rendered using shaders. This ... |
wgarcia1309/competitive-programming | URI Online Judge/Beginners/1158 - Sum of Consecutive Odd Numbers III.cpp | <gh_stars>0
//1158 - Sum of Consecutive Odd Numbers III
#include<iostream>
using namespace std;
int main(){
int n,t=0;
double c=0;
cin>>n;
for(int i=1;i<=n;i++){
int x,y,s=0;
cin>>x;
cin>>y;
y=x+(y*2);
if(x%2==0)x++;
for(int j=x;j<y;j+=2){
s+=... |
Robbbert/messui | src/devices/bus/isa/bt54x.cpp | // license:BSD-3-Clause
// copyright-holders:AJR
/***************************************************************************
BusTek/BusLogic BT-54x series PC/AT SCSI host adapters
The earlier version of the BT-542B, with BusTek labels, has a NCR 86C05
bus controller where a later version has the 80C20 AS... |
SebastianWeberKamp/KAMP | bundles/Toometa/toometa.requirements/src/requirements/ProcessRequirements.java | <filename>bundles/Toometa/toometa.requirements/src/requirements/ProcessRequirements.java
/**
*/
package requirements;
import de.uka.ipd.sdq.identifier.Identifier;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Process Requirements</b></em>'.
... |
valencik/bloop | frontend/src/main/scala/bloop/exec/JavaEnv.scala | package bloop.exec
import bloop.io.AbsolutePath
/**
* The configuration of the Java environment for a given project.
*
* @param javaHome Location of the java home. The `java` binary is expected to be found
* in `$javaHome/bin/java`.
* @param javaOptions The options to pass the JVM when star... |
npocmaka/Windows-Server-2003 | drivers/wdm/audio/legacy/wdmaud.sys/mixer.c | <filename>drivers/wdm/audio/legacy/wdmaud.sys/mixer.c
//---------------------------------------------------------------------------
//
// Module: mixer.c
//
// Description:
// Contains the kernel mode portion of the mixer line driver.
//
//
//@@BEGIN_MSINTERNAL
// Development Team:
// <NAME>
//
/... |
yiliuchen/TarsJava | core/src/main/java/com/qq/tars/protocol/tars/TarsStructBase.java | <gh_stars>100-1000
/**
* Tencent is pleased to support the open source community by making Tars available.
*
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
* in compliance with the License.... |
Autoafterdarkphx/payflow-gateway | java/src/sdk/dataobjects/paypal/payflow/ECDoResponse.java | <gh_stars>10-100
/*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope th... |
wjiec/packages | java/effective-java/src/test/java/com/wjiec/learn/effectivejava/random/RandomNumberTest.java | <filename>java/effective-java/src/test/java/com/wjiec/learn/effectivejava/random/RandomNumberTest.java<gh_stars>0
package com.wjiec.learn.effectivejava.random;
import java.util.Random;
import java.util.concurrent.ThreadLocalRandom;
public class RandomNumberTest {
public static void main(String[] args) {
... |
aanciaes/secure-redis-container | prod/attestation_server/include/C_CkAuthAzureAD.h | // This is a generated source file for Chilkat version 9.5.0.83
#ifndef _C_CkAuthAzureAD_H
#define _C_CkAuthAzureAD_H
#include "chilkatDefs.h"
#include "Chilkat_C.h"
CK_C_VISIBLE_PUBLIC void CkAuthAzureAD_setAbortCheck(HCkAuthAzureAD cHandle, BOOL (*fnAbortCheck)(void));
CK_C_VISIBLE_PUBLIC void CkAuthAzure... |
cybergarage/CyberLink4CC | std/include/cybergarage/upnp/media/server/object/format/JPEGFormat.h | <reponame>cybergarage/CyberLink4CC
/******************************************************************
*
* MediaServer for CyberLink
*
* Copyright (C) <NAME> 2003
*
* File : JPEGFormat.h
*
* Revision:
*
* 04/18/04
* - first revision.
*
******************************************************************/
... |
anistarafdar/gbdk-2020 | docs/api/search/defines_a.js | var searchData=
[
['j_5fa_1136',['J_A',['../gb_8h.html#a31af766e3b598eb7a6b63f55a4988e7a',1,'gb.h']]],
['j_5fb_1137',['J_B',['../gb_8h.html#ae47e59a309120f9420993f26816b5e6d',1,'gb.h']]],
['j_5fdown_1138',['J_DOWN',['../gb_8h.html#ae032c5c544196e37ec0432f6cfad7904',1,'gb.h']]],
['j_5fleft_1139',['J_LEFT',['../g... |
Anonym0uz/VKPreferences | VKHDHeaders/MRAsyncCommandDelegate-Protocol.h | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
@class MRAsyncCommand, MRAsyncCommandResult;
@protocol MRAsyncCommandDelegate
- (void)commandFinished:(MRAsyncCommand *)arg1 withResult:(MRAsyncCommandResult *)arg2;
@end
|
csga31971/testbot | src/com/moebuff/discord/utils/URLUtils.java | <reponame>csga31971/testbot<filename>src/com/moebuff/discord/utils/URLUtils.java
package com.moebuff.discord.utils;
import org.apache.commons.codec.DecoderException;
import org.apache.commons.codec.EncoderException;
import org.apache.commons.codec.net.URLCodec;
import java.io.File;
import java.io.IOException;
import ... |
ThinkingXuan/chat-room-go | api/router/router.go | package router
import (
"chat-room-go/api/router/handlers"
"chat-room-go/api/router/middleware"
"github.com/gin-gonic/gin"
)
// Load load the middlewares, routers
func Load(e *gin.Engine, mw ...gin.HandlerFunc) *gin.Engine {
// use middlewares
//e.Use(gin.Recovery())
//e.Use(gin.Logger())
e.Use(mw...)
// use... |
UCLALibrary/bucketeer | src/main/java/edu/ucla/library/bucketeer/HTTP.java |
package edu.ucla.library.bucketeer;
/**
* A set of HTTP related constants.
*/
public final class HTTP {
/** Success response */
public static final int OK = 200;
/** Created response */
public static final int CREATED = 201;
/** Success, no content */
public static final int NO_CONTENT = ... |
lockie/HiveGame | HiveGame/MyGUI/MyGUIEngine/include/MyGUI_ResourceManager.h | <gh_stars>1-10
/*!
@file
@author <NAME>
@date 09/2008
*/
/*
This file is part of MyGUI.
MyGUI 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 3 of the License, or
(at your option) ... |
BrassGoggledCoders/SteamAgeRevolution | unused/code/guideapi/CategoryTransportStorage.java | package xyz.brassgoggledcoders.steamagerevolution.compat.guideapi;
import java.util.*;
import amerifrance.guideapi.api.IPage;
import amerifrance.guideapi.api.impl.abstraction.EntryAbstract;
import amerifrance.guideapi.api.util.PageHelper;
import amerifrance.guideapi.entry.EntryItemStack;
import net.minecraft.item.Ite... |
aapotts/3akai-ux | dev/lib/jquery/plugins/jquery.autolink.js | <gh_stars>1-10
/*
jQuery AutoLink
MIT License
Sakai OAE Notes: below
This was originally taken from here: https://gist.github.com/47317
on July 29, 2011.
We have made a few changes, such as fixing a syntax error, changing the
replace link to use Sakai OAE styles, and adding a check for if parent is
u... |
asad-awadia/swim | swim-system-java/swim-core-java/swim.csv/src/main/java/swim/csv/structure/ArrayStructure.java | <filename>swim-system-java/swim-core-java/swim.csv/src/main/java/swim/csv/structure/ArrayStructure.java<gh_stars>0
// Copyright 2015-2021 Swim 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 Li... |
backo880607/pisces | integration/src/main/java/com/pisces/integration/bean/DsStream.java | package com.pisces.integration.bean;
import javax.persistence.Table;
import com.pisces.integration.enums.STREAM_TYPE;
@Table(name = "INTEGRATION_DS_STREAM")
public class DsStream extends DataSource {
private STREAM_TYPE type;
@Override
public void init() {
super.init();
type = STREAM_TYPE.TABLE... |
pdv-ru/ClickHouse | src/Functions/JSONPath/Parsers/ParserJSONPathStar.cpp | <reponame>pdv-ru/ClickHouse
#include <Functions/JSONPath/Parsers/ParserJSONPathStar.h>
#include <Functions/JSONPath/ASTs/ASTJSONPathStar.h>
namespace DB
{
bool ParserJSONPathStar::parseImpl(Pos & pos, ASTPtr & node, Expected & expected)
{
if (pos->type != TokenType::OpeningSquareBracket)
{
return fals... |
my-personal-forks/Vintageous | ex_motions.py | import sublime
import sublime_plugin
class _vi_cmd_line_a(sublime_plugin.TextCommand):
def run(self, edit):
self.view.sel().clear()
self.view.sel().add(sublime.Region(1))
class _vi_cmd_line_k(sublime_plugin.TextCommand):
def run(self, edit):
text = self.view.substr(sublime.Region(0, ... |
kstrat2001/greedyshot-ios | Classes/GameParticles.h | <reponame>kstrat2001/greedyshot-ios<filename>Classes/GameParticles.h
//
// GameParticles.h
// collector
//
// Created by <NAME> on 3/12/11.
// Copyright 2011 C-Stick Run. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "CCParticleExamples.h"
@interface OrbitExplosionParticle... |
BlizzedRu/OpenSongKick | src/main/java/ru/blizzed/opensongkick/methods/gigography/ArtistGigography.java | <reponame>BlizzedRu/OpenSongKick
package ru.blizzed.opensongkick.methods.gigography;
import ru.blizzed.opensongkick.ApiCaller;
import ru.blizzed.opensongkick.models.Event;
import ru.blizzed.opensongkick.models.ResultsPage;
import ru.blizzed.opensongkick.params.Param;
import ru.blizzed.opensongkick.params.ParamsConvert... |
sheisters/doc-parser-proffix | _result/golang/Dokumentstatus.go | <filename>_result/golang/Dokumentstatus.go
package golang
type Dokumentstatus struct {
DokumentstatusNr string `json:DokumentstatusNr`
Bezeichnung string `json:Bezeichnung`
Sperren bool `json:Sperren`
}
|
bdaw/keycloak | forms/common-freemarker/src/main/java/org/keycloak/freemarker/FreeMarkerUtil.java | package org.keycloak.freemarker;
import freemarker.cache.URLTemplateLoader;
import freemarker.template.Configuration;
import freemarker.template.Template;
import freemarker.template.TemplateException;
import java.io.IOException;
import java.io.StringWriter;
import java.io.Writer;
import java.net.URL;
/**
* @author ... |
vrushank-agrawal/video_editor_BX23 | src/audio/aubio/python/demos/demo_yin_compare.py | <gh_stars>0
#! /usr/bin/env python
# -*- coding: utf8 -*-
""" Pure python implementation of the sum of squared difference
sqd_yin: original sum of squared difference [0]
d_t(tau) = x ⊗ kernel
sqd_yinfast: sum of squared diff using complex domain [0]
sqd_yinfftslow: tappered squared diff [1]
sq... |
Gnatnaituy/leetcode | leetcode-java/src/others/easy/ltwenty/SortArrayByParity.java | <filename>leetcode-java/src/others/easy/ltwenty/SortArrayByParity.java
package others.easy.ltwenty;
/**
* 905 Sort Array by Parity
*/
public class SortArrayByParity {
private int[] sortArrayByParity(int[] A) {
int head = 0, tail = A.length - 1;
while (head < tail) {
if (A[h... |
paviliondev/invoices | spec/views/payment_receivers/new.html.erb_spec.rb | require 'rails_helper'
RSpec.describe "payment_receivers/new", type: :view do
before(:each) do
assign(:payment_receiver, PaymentReceiver.new(
:payment_provider => nil,
:payment_type => 1,
:instructions => "MyString",
:currency => "MyString"
))
end
it "renders new payment_receiver... |
danielogen/msc_research | selected projects/mobile/Signal-Android-4.60.5/app/src/main/java/org/thoughtcrime/securesms/preferences/widgets/ContactPreference.java | <filename>selected projects/mobile/Signal-Android-4.60.5/app/src/main/java/org/thoughtcrime/securesms/preferences/widgets/ContactPreference.java
package org.thoughtcrime.securesms.preferences.widgets;
import android.content.Context;
import android.graphics.PorterDuff;
import androidx.preference.Preference;
import and... |
dcui/FreeBSD-9.3_kernel | sys/dev/nxge/include/xgehal-types.h | /*-
* Copyright (c) 2002-2007 Neterion, 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... |
feliposz/project-euler-solutions | python/euler51.py | <reponame>feliposz/project-euler-solutions
"""Problem 51
29 August 2003
http://projecteuler.net/problem=51
By replacing the 1st digit of *3, it turns out that six of the nine
possible values: 13, 23, 43, 53, 73, and 83, are all prime.
By replacing the 3rd and 4th digits of 56**3 with the same digit, this
5-digit numb... |
amir9979/DesigniteJava | src/Designite/organic/collector/SmellName.java | <filename>src/Designite/organic/collector/SmellName.java
package Designite.organic.collector;
public enum SmellName {
ClassDataShouldBePrivate("Class Data Should Be Private"),
ComplexClass("Complex Class"),
FeatureEnvy("Feature Envy"),
GodClass("God Class"),
LazyClass("Lazy Class"),
LongMethod("Long Method"),
L... |
agoalofalife/slack-bot-loftschool-nodejs | src/Messages/Command.js | /**
*
* @type {module.Command}
*/
module.exports = class Command {
/**
*
* @param response
* @param baseBot class BaseBot
*/
constructor(response, baseBot){
this.response = response;
this.base = baseBot;
}
/**
* @link https://api.slack.com/events/message.im
... |
reallinfo/lifelog | django/user/views.py | from django.views.generic import CreateView
from django.urls import reverse
from .forms import RegisterForm
class RegisterView(CreateView):
template_name = 'user/register.html'
form_class = RegisterForm
def get_success_url(self):
return reverse('user:login')
|
RyanTorant/simple-physx | PhysX_3.4/Include/PxActor.h | <reponame>RyanTorant/simple-physx
// This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this ... |
0range228/MySootScript | src/main/java/pta/Contex.java | //package pta;
//
//import soot.Local;
//import soot.Value;
//
//import java.util.Collections;
//import java.util.HashMap;
//import java.util.List;
//import java.util.Map;
//
///**
// *
// * @author xinjiang
// * 模拟一个函数上下文
// * 对于一个函数内部,有其相应的Local(变量),不同的函数内部,Local可以具有相同的名字
// * 对于该类需要解决:
// * 1. 在某个函数体A内,调用了函数B,如何将A中变... |
ScalablyTyped/SlinkyTyped | c/cypress/src/main/scala/typingsSlinky/cypress/fpMod/LodashZipWith.scala | package typingsSlinky.cypress.fpMod
import typingsSlinky.cypress.lodashMod.List
import typingsSlinky.cypress.lodashMod.__
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
@js.native
trait LodashZipWith extends js.Object {
def apply[T1](iteratee: __, arrays1: List[T1]): Lodash... |
ahmedlawi92/izpack | izpack-compiler/src/main/java/com/izforge/izpack/compiler/compressor/DefaultPackCompressor.java | /*
* $Id$
* IzPack - Copyright 2001-2008 <NAME>, All Rights Reserved.
*
* http://izpack.org/
* http://izpack.codehaus.org/
*
* Copyright 2005 <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... |
lauramazzuca21/DTNME | servlib/bundling/BundleEventHandler.h | /*
* Copyright 2005-2006 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
Akhilesh271988/numpy | numpy/core/src/common/npy_partition.h | #ifndef NUMPY_CORE_SRC_COMMON_PARTITION_H_
#define NUMPY_CORE_SRC_COMMON_PARTITION_H_
#include "npy_sort.h"
/* Python include is for future object sorts */
#include <Python.h>
#include <numpy/ndarraytypes.h>
#include <numpy/npy_common.h>
#define NPY_MAX_PIVOT_STACK 50
#ifdef __cplusplus
extern "C" {
#endif
NPY_NO... |
MhdT/dhis2-core | dhis-2/dhis-api/src/main/java/org/hisp/dhis/calendar/impl/PersianCalendar.java | <reponame>MhdT/dhis2-core<gh_stars>1-10
package org.hisp.dhis.calendar.impl;
/*
* Copyright (c) 2004-2020, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributio... |
venkatramanm/swf-all | swf-plugin-bugs/src/main/java/com/venky/swf/plugins/bugs/controller/NotesController.java | <gh_stars>1-10
package com.venky.swf.plugins.bugs.controller;
import java.util.List;
import com.venky.swf.controller.ModelController;
import com.venky.swf.path.Path;
import com.venky.swf.plugins.bugs.db.model.Note;
import com.venky.swf.views.HtmlView;
import com.venky.swf.views.model.ModelListView;
public class Note... |
manbanpan/TrickEditPic | TrickEditPic/TrickEditPic/Puzzle-trick/puzzle/TcePuzzlePuzzleEditScrollView.h | //
// TcePuzzlePuzzleEditScrollView.h
// ConstellationCamera
//
// Created by zzb on 2019/1/9.
// Copyright © 2019年 ConstellationCamera. All rights reserved.
//
#import <UIKit/UIKit.h>
@class TcePuzzlePuzzleEditScrollView;
@protocol TcePuzzlePuzzleEditScrollViewDelegate <NSObject>
- (void)TcePuzzleTapWithEditView:... |
flogic/flogiston-cms | spec/models/layout_spec.rb | <gh_stars>1-10
require File.expand_path(File.join(File.dirname(__FILE__), *%w[.. spec_helper]))
describe Layout do
before :each do
@layout = Layout.spawn
end
describe 'attributes' do
it 'should have a handle' do
@layout.should respond_to(:handle)
end
it 'should allow setting and retri... |
alteryx/alteryx-ui | packages/icons/src/icons/procedure.js | import React from 'react';
import PropTypes from 'prop-types';
// Mui Example:
// https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/Avatar/Avatar.js#L38
// eslint-disable-next-line prefer-arrow-callback
const Procedure = React.forwardRef(function Procedure(props, ref) {
const { color, size,... |
carlos-sancho-ramirez/android-java-langbook | dbManager/src/test/java/sword/langbook3/android/db/RuleIdManager.java | package sword.langbook3.android.db;
import sword.database.DbValue;
final class RuleIdManager implements ConceptualizableSetter<ConceptIdHolder, RuleIdHolder> {
@Override
public RuleIdHolder getKeyFromInt(int key) {
return (key == 0)? null : new RuleIdHolder(key);
}
@Override
public RuleI... |
nataliesun/estatecloud-app | src/components/UserStats/UserStats.test.js | <filename>src/components/UserStats/UserStats.test.js
import React from 'react';
import { shallow } from 'enzyme';
import UserStats from './UserStats';
import { library } from '@fortawesome/fontawesome-svg-core';
import 'jest-canvas-mock';
import {
faDoorOpen, faPlusCircle, faPlus, faTimes
} from '@fortawesome/free-s... |
divad-nhok/obsidian_fork | src/world/testworld.hpp | //!
//! Contains tests for the world model.
//!
//! \file world/testworld.cpp
//! \author <NAME>
//! \date 2014
//! \license Affero General Public License version 3 or later
//! \copyright (c) 2014, NICTA
//!
#include <cmath>
#include "world/grid.hpp"
#include "world/kernel.hpp"
#include "world/interpolate.hpp"
#incl... |
Tarsnap/tarsnap-gui | src/widgets/tarsnapaccountdialog.cpp | #include "tarsnapaccountdialog.h"
WARNINGS_DISABLE
#include <QAbstractItemView>
#include <QDate>
#include <QHBoxLayout>
#include <QHeaderView>
#include <QLabel>
#include <QLineEdit>
#include <QMessageBox>
#include <QPushButton>
#include <QRegExp>
#include <QTableWidget>
#include <QTableWidgetItem>
#include <QVariant>
... |
zhouyihangcn/my-blog | blog-halo/src/main/java/cc/ryanc/halo/service/UserService.java | package cc.ryanc.halo.service;
import cc.ryanc.halo.model.domain.User;
import java.util.Date;
/**
* <pre>
* 用户业务逻辑接口
* </pre>
*
* @author : RYAN0UP
* @date : 2017/11/14
*/
public interface UserService {
/**
* 保存个人资料
*
* @param user user
*/
void save(User user);
/**
*... |
loremipsumjp/custom-base | proxy/lib/auth.js | 'use strict'
module.exports = factory
function factory() {
return function (req, res, next) {
const authorization = req.headers['authorization']
const buffer = new Buffer(authorization.split(' ')[1], 'base64')
const userId = buffer.toString().split(':')[0]
req.locals.user = { _id: userId }
ret... |
matthiasblaesing/COMTypelibraries | office2/src/main/java/eu/doppel_helix/jna/tlb/office2/MsoGradientStyle.java | <gh_stars>10-100
package eu.doppel_helix.jna.tlb.office2;
import com.sun.jna.platform.win32.COM.util.IComEnum;
public enum MsoGradientStyle implements IComEnum {
/**
* (-2)
*/
msoGradientMixed(-2),
/**
* (1)
*/
msoGradientHorizontal(1),
/**
* (2)
*/
... |
gsteri1/OG-Platform | projects/OG-Core/src/com/opengamma/core/position/impl/PortfolioNodeTraverser.java | <reponame>gsteri1/OG-Platform
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.core.position.impl;
import com.opengamma.core.position.PortfolioNode;
import com.opengamma.core.position.Position;
import com.ope... |
tuix/tutorials | House_Price_Prediction/hpp_databroker/house_price_prediction_client.py | import grpc
from timeit import default_timer as timer
import logging
# import the generated classes
import model_pb2
import model_pb2_grpc
port = 8061
def run():
print("Calling HPP_Stub..")
with grpc.insecure_channel('localhost:{}'.format(port)) as channel:
stub = model_pb2_grpc.DatabrokerStub(chann... |
Hupengyu/Paddle_learning | img_opt/compress_img.py | <reponame>Hupengyu/Paddle_learning<filename>img_opt/compress_img.py
from PIL import Image
import cv2
import os
def compress_img(image, img_path, cover_ori_img=True, img_size_thresh_KB=1000):
os_size = os.path.getsize(img_path) # 返回字节数
img_size = os_size / 1024
if img_size < img_size_thresh_KB:
re... |
Marthox1999/UV-Energy | front/uv-energy-front/src/views/Administrador-Configurar/SetInvoices.js | import React from "react";
import axios from 'axios';
// reactstrap components
import {
Button,
Card,
CardHeader,
CardBody,
Form,
Input,
Container,
Row,
Col,
Table,
Alert,
} from "reactstrap";
// core components
import 'leaflet/dist/leaflet.css';
import Cookies from 'universal-cookie';
import { ... |
BlackCatInTheWhite/jiayouzhanjianguan | src/main/java/com/aaa/project/system/gas/mapper/GasMapper.java | <filename>src/main/java/com/aaa/project/system/gas/mapper/GasMapper.java
package com.aaa.project.system.gas.mapper;
import com.aaa.project.system.gas.domain.Gas;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 加油站 数据层
*
* @author aaa
* @date 2019-04-22
*/
public interface GasMapper
{
... |
oxygenxml/oxygen-dita-references-view-addon | src/main/java/com/oxygenxml/ditareferences/workspace/KeysProvider.java | /**
*
*/
package com.oxygenxml.ditareferences.workspace;
import java.net.URL;
import java.util.LinkedHashMap;
import ro.sync.ecss.dita.reference.keyref.KeyInfo;
/**
* @author Alexandra_Dinisor
*
*/
public interface KeysProvider {
/**
* Get the LinkedHashMap with KeyInfo for key references from the current ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.