repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
Pandrex247/patched-src-eclipselink | utils/org.eclipse.persistence.dbws.builder/src/org/eclipse/persistence/tools/dbws/PLSQLProcedureOperationModel.java | <filename>utils/org.eclipse.persistence.dbws.builder/src/org/eclipse/persistence/tools/dbws/PLSQLProcedureOperationModel.java
package org.eclipse.persistence.tools.dbws;
public class PLSQLProcedureOperationModel extends ProcedureOperationModel {
@Override
public boolean isPLSQLProcedureOperation() {
r... |
wbars/go-lang-idea-plugin | testData/psi/resolve/vars/SimpleMethodParameter.go | package main
func method(/*def*/x int) {
/*ref*/x
}
|
a-pompom/Python-markdownParser | tests/converter/converter_grouping_test.py | <gh_stars>0
import pytest
from app.converter.converter import group_same_range_blocks
from app.markdown.parser import MarkdownParser
class TestGrouping:
""" 同範囲を同一とみなすBlock要素をグルーピングできるか"""
# CodeBlockの範囲内では当該メソッドによりCodeBlockへグループ化されるか
@pytest.mark.parametrize(
('lines', 'expected_list'),
... |
investtools/ftpmvc | lib/ftpmvc/authenticator/promiscuous.rb | module FTPMVC
module Authenticator
class Promiscuous
def authenticate(username, password)
true
end
end
end
end
|
codeperfector/joss | src/main/java/org/javaswift/joss/exception/CommandExceptionError.java | package org.javaswift.joss.exception;
public enum CommandExceptionError {
UNKNOWN,
ACCESS_FORBIDDEN,
ENTITY_ALREADY_EXISTS,
ENTITY_DOES_NOT_EXIST,
CONTAINER_NOT_EMPTY,
CONTENT_NOT_MODIFIED,
CONTENT_DIFFERENT,
MD5_CHECKSUM,
MISSING_CONTENT_LENGTH_OR_TYPE,
NO_SERVICE_CATALOG_FOUND... |
piekaa/lol-stats | src/main/java/pl/noip/lolstats/lol/stats/dto/stats/MatchesResponse.java | package pl.noip.lolstats.lol.stats.dto.stats;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import java.util.List;
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class MatchesResponse {
private List<Match> matches;
} |
desmondbera/dental-schedule-app | dentalScheduleApp/src/com/dentalScheduleApp/entities/DentalOffice.java | package com.dentalScheduleApp.entities;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneT... |
solomax/openjpa | openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/enhance/TestSubclassedBehavior.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 ... |
matias-capeletto/plugins | packages/node-resolve/test/fixtures/hash-in-path.js | import test from 'test/#/foo';
export default test;
|
purusharths/NumCpp | docs/doxygen/html/navtreeindex6.js | var NAVTREEINDEX6 =
{
"corrcoef_8hpp.html":[6,0,101],
"corrcoef_8hpp.html#a2232014b014afca61e5ebe93c5ba2c0c":[6,0,101,0],
"corrcoef_8hpp_source.html":[6,0,101],
"cos_8hpp.html":[6,0,102],
"cos_8hpp.html#a736de91eb8f79bfaf4dc92d7161f1c87":[6,0,102,1],
"cos_8hpp.html#af208ae28fe0df17392ca128188cbcd73":[6,0,102,0],
"cos_8... |
DylanPachecoCoder/matricula-aluno | src/dominio/Semestre.java | <gh_stars>0
package dominio;
public class Semestre extends EntidadeDominio {
private int ano;
private String semestre;
public Semestre(int ano, String semestre) {
this.ano = ano;
this.semestre = semestre;
}
public int getAno() {
return ano;
}
public void setAno(int ano) {
this.ano = ano;
}
publ... |
sinoz/project-56 | app/models/GameCategory.java | package models;
import io.ebean.Model;
import play.data.validation.Constraints;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* A category of types of games.
*
* @author <NAME>
*/
@Entity(name = "game_category")
public final class GameCategory extends Model {
/** The primary key of the categ... |
blockchaingate/Kanban | src-vanilla/external_connections/fabcoin/handlers_smart_contract.js | "use strict";
const solidity = require('./../../solidity_abi').solidity;
const encodingDefault = require('../../crypto/encodings').encodingDefault;
const fabcoinRPC = require('./rpc');
const ResponseWrapper = require('../../response_wrapper').ResponseWrapper;
var hashers = require('../../crypto/hashes').hashes;
var cry... |
DonaldPeat/ether-campaign | node_modules/semantic-ui-react/dist/commonjs/addons/Pagination/PaginationItem.js | <gh_stars>0
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutPropert... |
giannhskp/Linked-In-Clone | Back End/src/main/java/com/example/demo/controller/FriendsController.java | package com.example.demo.controller;
import com.example.demo.dto.FriendsDto;
import com.example.demo.service.AuthService;
import com.example.demo.service.FriendsService;
import lombok.AllArgsConstructor;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframew... |
mimifitz/IOMED | node_modules/@elastic/eui/test-env/services/index.js | "use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "accessibleClickKeys", {
enumerable: true,
get: function get() {
return _accessibility.accessibleClickKeys;
}
... |
hhd3/Mark-Mind | src/renderer/mind/command/stack.js | class Stack {
constructor(limit) {
this.limit = limit || 30;
this.undos = [];
this.redos = [];
this.saveCommand = null;
}
execute(command) {
this.clearRedo();
command.execute();
var length = this.undos.length;
if (length >= this.limit) ... |
corder-ybh/xcEduCode | xc-framework-model/src/main/java/com/xuecheng/framework/domain/goods/response/CategoryResult.java | package com.xuecheng.framework.domain.goods.response;
import com.xuecheng.framework.domain.goods.Category;
import com.xuecheng.framework.model.response.ResponseResult;
import com.xuecheng.framework.model.response.ResultCode;
import lombok.Data;
@Data
public class CategoryResult extends ResponseResult {
Category c... |
Sanjeevani19/data-hub-central-community | ui/src/api/OSApi.js | <reponame>Sanjeevani19/data-hub-central-community
import axios from 'axios';
export default {
name: 'OSApi',
getFlowNames() {
return axios
.get('/api/os/getFlowNames/')
.then(response => {
return { response: response.data };
})
.catch(error => {
console.error('error:', error);
return error;
});
... |
opengauss-mirror/DataStudio | code/datastudio/src/org.opengauss.mppdbide.view/src/org/opengauss/mppdbide/view/core/sourceeditor/SQLDoubleClickStrategy.java | <filename>code/datastudio/src/org.opengauss.mppdbide.view/src/org/opengauss/mppdbide/view/core/sourceeditor/SQLDoubleClickStrategy.java
/*
* Copyright (c) 2022 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan P... |
eumis/pyviews | pyviews/rendering/common.py | """Common functionality for rendering package"""
from contextlib import contextmanager
from contextvars import ContextVar
from functools import wraps
from typing import Union
from injectool import dependency
from pyviews.core import PyViewsError, InheritedDict, Node, XmlNode, InstanceNode, ViewInfo
class RenderingE... |
hmrc/manage-transit-movements-departure-frontend | test/base/SpecBase.scala | <reponame>hmrc/manage-transit-movements-departure-frontend<filename>test/base/SpecBase.scala
/*
* Copyright 2022 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
*
... |
manovotn/core | impl/src/test/java/org/jboss/weld/tests/unit/VersionTest.java | package org.jboss.weld.tests.unit;
import org.jboss.weld.util.reflection.Formats;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class VersionTest {
@Test
public void testVersionParser() {
assertEquals("1.0.0 (1981-28-12 17:00)", Formats.version("1.0.0-SNAPSHOT", "1981-28... |
nosamanuel/babel-but-with-guy-fieri | packages/babel-plugin-transform-typescript/test/fixtures/function/parameters/expected.js | function f(x, ...y) {}
function g(x = 0) {} |
open-AIMS/ereefs-database | src/test/java/au/gov/aims/ereefs/database/DatabaseClientTest.java | <reponame>open-AIMS/ereefs-database
/*
* Copyright (c) Australian Institute of Marine Science, 2021.
* @author <NAME> <<EMAIL>>
*/
package au.gov.aims.ereefs.database;
import com.mongodb.MongoWriteException;
import com.mongodb.client.MongoClient;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.... |
xuericlin/wikum | wikum-env3/lib/python3.7/site-packages/wikitools/category.py | # -*- coding: utf-8 -*-
# Copyright 2008-2016 <NAME> (<EMAIL>)
# This file is part of wikitools.
# wikitools 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 opti... |
ForoughA/CORGI | testnet/prolog/builtin/register.py | <gh_stars>10-100
import py
from prolog.interpreter.parsing import TermBuilder
from prolog.interpreter import helper, term, error
from prolog.interpreter.signature import Signature
from prolog.interpreter.arithmetic import eval_arithmetic
from rpython.rlib.objectmodel import we_are_translated
from rpython.rlib import j... |
NViper21/ZeroQuest | 1.7.10-src/common/zeroquest/world/gen/layer/GenLayerRareNileBiome.java | package common.zeroquest.world.gen.layer;
import common.zeroquest.ModBiomes;
import net.minecraft.world.gen.layer.GenLayer;
import net.minecraft.world.gen.layer.IntCache;
public class GenLayerRareNileBiome extends GenLayer
{
private static final String __OBFID = "CL_00000562";
public GenLayerRare... |
dfreese/Gray | include/Gray/Daq/DaqModel.h | /*
* Gray: A Ray Tracing-based Monte Carlo Simulator for PET
*
* Copyright (c) 2018, <NAME>, <NAME>, <NAME>, <NAME>
*
* This software is distributed under the terms of the MIT License unless
* otherwise noted. See LICENSE for further details.
*
*/
#ifndef DaqModel_h
#define DaqModel_h
#include <fstream>
#inc... |
dubdabasoduba/estatio | estatioapp/fixture/src/main/java/org/estatio/fixture/lease/LeaseForOxfTopModel001Gb.java | /*
*
* Copyright 2012-2014 Eurocommercial Properties NV
*
*
* 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 req... |
DIMO-Network/benthos | internal/impl/pure/processor_log_test.go | package pure_test
import (
"fmt"
"reflect"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/benthosdev/benthos/v4/internal/bundle/mock"
"github.com/benthosdev/benthos/v4/internal/log"
"github.com/benthosdev/benthos/v4/internal/message"
"github.com/benthosdev/b... |
jayavigneshksd/yavijava | src/main/java/com/vmware/vim25/HostStorageDeviceInfo.java | <gh_stars>100-1000
/*================================================================================
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 sou... |
twpayne/charm | ui/link/link.go | <gh_stars>1000+
package link
import (
"fmt"
"github.com/charmbracelet/bubbles/spinner"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/charm/client"
"github.com/charmbracelet/charm/ui/charmclient"
"github.com/charmbracelet/charm/ui/common"
"github.com/charmbracelet/charm/ui/keygen"
"github.... |
gaigeshen/wechat-mp | src/main/java/me/gaigeshen/wechat/mp/shakearound/statistics/PageBasedStatisticsBatchRequest.java | package me.gaigeshen.wechat.mp.shakearound.statistics;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Builder;
import me.gaigeshen.wechat.mp.Request;
/**
* 批量查询页面统计数据
*
* @author gaigeshen
*/
@Builder
public class PageBasedStatisticsBatchRequest implements Request<PageBasedStatisticsBatchResponse... |
dchaplinsky/ragoogle | mbu/loader.py | from abstract.loaders import FileLoader
class MbuLoader(FileLoader):
filetype = "mongo"
mongo_collection = "kga_gov_ua"
last_updated_param_is_required = False
last_updated_path = "order_date"
@property
def model(self):
from .models import MbuModel
return MbuModel
def prepr... |
TwFlem/react-cosmos | packages/react-cosmos/src/server/web/webpack/attach-webpack.js | // @flow
import path from 'path';
import promisify from 'util.promisify';
import webpackDevMiddleware from 'webpack-dev-middleware';
import webpackHotMiddleware from 'webpack-hot-middleware';
import { getRootUrl } from '../../shared/server';
import enhanceWebpackConfig from './enhance-webpack-config';
import type { C... |
pengan1990/sqoop-on-spark | core/src/main/java/org/apache/sqoop/audit/AuditLoggerManager.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... |
iychoi/cyverse-irods | iRODS/server/test/src/test_chl.cpp | <reponame>iychoi/cyverse-irods
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/*
ICAT test program.
*/
#include "rodsClient.h"
#include "parseCommandLine.h"
#include "readServerConfig.hpp"
#include "irods... |
sho25/jackrabbit-oak | oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/TextExtractionQueryTest.java | <filename>oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/TextExtractionQueryTest.java
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distribu... |
erebe/dcos-commons | sdk/scheduler/src/main/java/com/mesosphere/sdk/specification/DefaultTransportEncryptionSpec.java | <gh_stars>100-1000
package com.mesosphere.sdk.specification;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder... |
austinburks/nlp-udemy | machine_learning_examples/ann_logistic_extra/logistic_predict.py | <filename>machine_learning_examples/ann_logistic_extra/logistic_predict.py<gh_stars>0
import numpy as np
from process import get_binary_data
X, Y = get_binary_data()
# randomly initialize weights
D = X.shape[1]
W = np.random.randn(D)
b = 0 # bias term
# make predictions
def sigmoid(a):
return 1 / (1 + np.exp(-a)... |
sleepy-owl/coax | coax/utils/__init__.py | <gh_stars>0
# ------------------------------------------------------------------------------------------------ #
# MIT License #
# #
# Cop... |
ajitkhaparde/trex-core | src/dpdk/lib/librte_acl/rte_acl.c | <reponame>ajitkhaparde/trex-core
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2010-2014 Intel Corporation
*/
#include <rte_eal_memconfig.h>
#include <rte_string_fns.h>
#include <rte_acl.h>
#include <rte_tailq.h>
#include <rte_vect.h>
#include "acl.h"
TAILQ_HEAD(rte_acl_list, rte_tailq_entry);
static st... |
gavinbaker999/Java-Framework-Apps | ehscontrols/src/CollapsibleEditorKit.java | import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.awt.font.*;
import java.awt.color.*; // ColorSpace
import java.awt.geom.*; // AffineTransform
import java.sql.*;
import java.io.*;
import java.net.*;
import java.util.*;
import java.awt.List;
import java.awt.pr... |
aliok/trnltk-java | web/src/test/java/org/trnltk/web/training/TrainingSetCreatorParserSelectionTest.java | /*
* Copyright 2013 <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... |
cantona/NT6 | nitan/d/tangmen/npc/boy.c | <reponame>cantona/NT6<filename>nitan/d/tangmen/npc/boy.c
//boy.c
inherit NPC;
void create()
{
int i,amun;
string *order = ({"張", "王", "李", "趙", "孫", "徐", "鄭", "周", "吳",
"蔣", "沈", "楊", "苗", "尹", "金", "魏", "陶", "俞", "柳", "朱"});
string *orderr = ({"包包", "寶寶", "乖乖", "小小", "磊磊",
... |
jpratt-mru/new.maco.calendar | src/components/RoomDoubleBookingIssue.js | <filename>src/components/RoomDoubleBookingIssue.js
import React from "react";
import styled from "styled-components";
const Issue = styled.div`
padding: 10px;
`;
const RoomDoubleBookingIssue = props => {
return (
<Issue className="alert alert-primary">
<p className="mb-0">
<span className="font-... |
JoannaCode/LeetCode-Sol-Res | Medium/BestTimeStock2.java | <filename>Medium/BestTimeStock2.java
/**
* Say you have an array for which the ith element is the price of a given
* stock on day i.
*
* Design an algorithm to find the maximum profit. You may complete
* <strong>as many transactions as you like</strong> (ie, buy one and sell
* one share of the stock multiple t... |
pedrol3001/Compiler | Src/TabelaDeSimbolos/Jump/Jump.cpp | #include "Jump.h"
#include <cassert>
void LabelVal::setLinha(long long int _linha) {
linha=_linha;
}
long long int LabelVal::getLinha() {
assert(linha>=0);
return linha;
}
LabelVal::LabelVal(): Atributo("LabelVal") {}
|
upowerman/spring-boot-learning | spring-boot-web/src/main/java/com/yunus/base/IntToGenderConverter.java | package com.yunus.base;
import com.yunus.constant.Gender;
import org.springframework.core.convert.converter.Converter;
public class IntToGenderConverter implements Converter<String, Gender> {
@Override
public Gender convert(String source) {
return Gender.getByValue(Integer.parseInt(source));
}
}
|
ronkok/Temml | src/functions/hbox.js | <gh_stars>1-10
import defineFunction, { ordargument } from "../defineFunction";
import { StyleLevel } from "../constants"
import mathMLTree from "../mathMLTree";
import * as mml from "../buildMathML";
// \hbox is provided for compatibility with LaTeX \vcenter.
// In LaTeX, \vcenter can act only on a box, as in
// \vce... |
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python | 2116.py | <reponame>ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python<gh_stars>1-10
arr = []
for i in range(2,1001):
flag = 0
for j in range(2,i):
if i % j == 0:
flag = 1
break
if flag == 0:
arr.append(i)
# print(arr)
n, m = map(int, input().split(... |
blockspacer/chromium_base_conan | extensions/gen/mojo/public/cpp/bindings/tests/idle_tracking_unittest.test-mojom-shared-message-ids.h | // mojo/public/cpp/bindings/tests/idle_tracking_unittest.test-mojom-shared-message-ids.h is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2018 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.
#i... |
lifebit-ai/exomedepth | bin/R-3.5.1/src/library/utils/src/windows/dialogs.c | <filename>bin/R-3.5.1/src/library/utils/src/windows/dialogs.c<gh_stars>1-10
/*
* R : A Computer Language for Statistical Data Analysis
* file dialogs.c
* Copyright (C) 1998--2003 <NAME> and <NAME>
* Copyright (C) 2004 The R Foundation
* Copyright (C) 2005--2017 The R Core Team
*
* This program is f... |
naboxwallet/nabox | nabox-common/src/main/java/io/nabox/common/config/RedisConfig.java | <reponame>naboxwallet/nabox<gh_stars>10-100
/**
* Copyright (c) 2016-2019 Nabox开源 All rights reserved.
*
* https://www.renren.io
*
* 版权所有,侵权必究!
*/
package io.nabox.common.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springfra... |
markitus18/Thor-Engine | ThorEngine/Source Code/M_SceneManager.cpp | #include "M_SceneManager.h"
#include "Engine.h"
#include "Globals.h"
#include "Intersections.h"
#include "Config.h"
#include "Quadtree.h"
#include "Time.h"
#include "M_Camera3D.h"
#include "M_Input.h"
#include "I_Scenes.h"
#include "M_Editor.h"
#include "M_Renderer3D.h"
#include "M_FileSystem.h"
#include "M_Resources... |
entropyio/go-entropy | database/memorydb/memorydb_test.go | <filename>database/memorydb/memorydb_test.go
package memorydb
import (
"testing"
)
func TestMemoryDB(t *testing.T) {
t.Run("DatabaseSuite", func(t *testing.T) {
dbtest.TestDatabaseSuite(t, func() ethdb.KeyValueStore {
return New()
})
})
}
|
zichuan-scott-xu/automl-workflow | examples/automl_freiburg/ASlibScenario/setup.py | import os
import setuptools
requirements = ['numpy', 'scipy', 'pyyaml', 'liac-arff', 'pandas']
setuptools.setup(
name="aslib_scenario",
version="1.0.0",
author="<NAME>",
author_email="<EMAIL>",
description=("Python Package to read scenario from the algorithm selection library"),
license="2-cl... |
sfwn/go-utils | errorx/multi_error.go | package errorx
import (
"bytes"
"fmt"
)
// MultiError 多个错误的集合类型
type MultiError interface {
error
Num() int // 返回错误的数量
MaybeUnwrap() error
}
// Errors is a slice of errors implementing the error interface.
type Errors []error
// NewMultiError 创建错误集合
func NewMultiError(errs ...error) MultiError {
merr := make(... |
ankurqss2009/AUSK_NEW | modules/post/server-scala/src/main/scala/repositories/PostRepository.scala | package repositories
import com.byteslounge.slickrepo.repository.Repository
import javax.inject.Inject
import model.{PaginatedResult, Pagination, PaginationParams, Post}
import model.PostTable.PostTable
import slick.ast.BaseTypedType
import slick.jdbc.JdbcProfile
import scala.concurrent.ExecutionContext
class PostRe... |
xlinx69/leasestack | public/modules/refinancements/services/refinancements.client.service.js | 'use strict';
//Refinancements service used to communicate Refinancements REST endpoints
angular.module('refinancements').factory('Refinancements', ['$resource',
function($resource) {
return $resource('refinancements/:refinancementId', { refinancementId: '@_id'
}, {
update: {
method: 'PUT'
}
});
}
])... |
yrj2011/mycrawler | mycrawler-tutorial/mycrawler-tutorial-spring/Spring AOP/AOP/aop after throwing advice/aop/src/com/springinaction/springidol/Main.java | <reponame>yrj2011/mycrawler
package com.springinaction.springidol;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Main {
private static ApplicationContext context;
public static void main(String[] args) {
c... |
abdalla/docker-image-for-python-boto3-mysql | deps/unixODBC-2.3.4/Drivers/Postgre7.1/results.c | <gh_stars>0
/* Module: results.c
*
* Description: This module contains functions related to
* retrieving result information through the ODBC API.
*
* Classes: n/a
*
* API functions: SQLRowCount, SQLNumResultCols, SQLDescribeCol, SQLColAttributes,
* SQLG... |
BantorSchwanzVor/plotscanner-leak | org/newdawn/slick/svg/Loader.java | <gh_stars>0
package org.newdawn.slick.svg;
import org.newdawn.slick.geom.Transform;
import org.w3c.dom.Element;
public interface Loader {
void loadChildren(Element paramElement, Transform paramTransform) throws ParsingException;
}
/* Location: C:\Users\BSV\AppData\Local\Temp\Rar$DRa6216.20396\Preview... |
jc-lab/sipc | java/src/main/java/kr/jclab/javautils/sipc/ProcessSipcHost.java | <filename>java/src/main/java/kr/jclab/javautils/sipc/ProcessSipcHost.java
package kr.jclab.javautils.sipc;
import kr.jclab.javautils.sipc.channel.ChannelHost;
import kr.jclab.javautils.sipc.crypto.CryptoException;
import kr.jclab.javautils.sipc.crypto.DefaultEphemeralKeyAlgorithmsFactory;
import kr.jclab.javautils.sip... |
manoj-gk/tr069simulator | src/main/java/org/dslforum/cwmp_1_0/SetVouchers.java |
package org.dslforum.cwmp_1_0;
/**
* SetVouchers message - Annex A.4.1.3
*
* Schema fragment(s) for this class:
* <pre>
* <xs:element xmlns:ns="urn:dslforum-org:cwmp-1-0" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="SetVouchers">
* <xs:complexType>
* <xs:sequence>
* <xs:element ... |
skiyooka/blackduck-alert | alert-common/src/test/java/com/synopsys/integration/alert/common/enumeration/AccessOperationTest.java | package com.synopsys.integration.alert.common.enumeration;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.juni... |
shenzeyu/recommend | src/main/webapp/scripts/front/clients_js/information1.js | <gh_stars>0
function onloading(){
strYear = document.formID.year.outerHTML;
strMonth = document.formID.month.outerHTML;
strDay = document.formID.day.outerHTML;
MonHead = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
//先给年下拉框赋内容
var year = new Date().getFullYear(); ... |
kemokemo/beats | x-pack/filebeat/processors/decode_cef/cef/types.go | // Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
// or more contributor license agreements. Licensed under the Elastic License;
// you may not use this file except in compliance with the Elastic License.
package cef
import (
"net"
"strconv"
"time"
"github.com/pkg/errors"
"github.... |
opensrp/opensrp-client-sid | opensrp-vaksinator/src/main/java/org/smartregister/vaksinator/sync/UpdateActionsTask.java | package org.smartregister.vaksinator.sync;
import android.content.Context;
import android.util.Log;
import org.smartregister.vaksinator.service.SyncService;
import util.ServiceTools;
import static org.smartregister.util.Log.logInfo;
public class UpdateActionsTask {
private static final String TAG = UpdateActio... |
zoodles/vocab | lib/vocab/extractor/rails.rb | <filename>lib/vocab/extractor/rails.rb
module Vocab
module Extractor
class Rails < Base
DIFF = 'en.yml'
FULL = 'en.full.yml'
DIFF_SUFFIX = 'diff.yml'
FULL_SUFFIX = 'full.yml'
class << self
def write_diff( strings, plurals, path, locale = :en )
path ||= "#{Vocab.roo... |
ContinuITy-Project/ContinuITy | continuity.service.cobra/src/main/java/org/continuity/cobra/controllers/MeasurementDataController.java | <reponame>ContinuITy-Project/ContinuITy
package org.continuity.cobra.controllers;
import static org.continuity.api.rest.RestApi.Cobra.MeasurementData.ROOT;
import static org.continuity.api.rest.RestApi.Cobra.MeasurementData.Paths.GET;
import static org.continuity.api.rest.RestApi.Cobra.MeasurementData.Paths.GET_VERSIO... |
saq7/MeTA | src/index/ranker/okapi_bm25.cpp | /**
* @file okapi_bm25.cpp
* @author <NAME>
*/
#include <cmath>
#include "index/inverted_index.h"
#include "index/ranker/okapi_bm25.h"
#include "index/score_data.h"
namespace meta
{
namespace index
{
const std::string okapi_bm25::id = "bm25";
okapi_bm25::okapi_bm25(double k1, double b, double k3) : k1_{k1}, b_{b... |
ttomttom/aarc-master-portal | master-portal/master-portal-client/src/main/java/eu/rcauth/masterportal/client/MPOA2MPService.java | package eu.rcauth.masterportal.client;
import java.security.GeneralSecurityException;
import java.security.cert.X509Certificate;
import java.util.Map;
import edu.uiuc.ncsa.myproxy.MPConnectionProvider;
import edu.uiuc.ncsa.myproxy.MyProxyConnectable;
import edu.uiuc.ncsa.myproxy.oa4mp.client.Asset;
import edu.uiuc.nc... |
IdanBanani/Pwnable.kr-CTF-Writeups | pwnable.kr/Rookiss/dragon/solve.py | <gh_stars>0
#!/usr/bin/env python2
from pwn import *
ready = True
if ready:
conn = remote('pwnable.kr', 9004)
else:
conn = process(['/home/doublesine/Desktop/dragon'])
def SendLine(s):
conn.sendline(s)
print(s)
sleep(0.5)
# First round will get a failure
# But don't woory, we will win in the next... |
keremkoseoglu/Kifu | web/static/openui5/sap/ui/mdc/link/SemanticObjectMapping-dbg.js | <reponame>keremkoseoglu/Kifu
/*
* ! OpenUI5
* (c) Copyright 2009-2020 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define([
'sap/ui/core/Element'
], function(Element) {
"use strict";
/**
* Constructor for a new SemanticObjectMapping.
*
... |
Jawbone/Specs | PBJVideoPlayer/0.1.4/PBJVideoPlayer.podspec | <gh_stars>1-10
Pod::Spec.new do |s|
s.name = "PBJVideoPlayer"
s.version = "0.1.4"
s.summary = "iOS video player, simple drop in component featuring touch-to-play"
s.homepage = "https://github.com/piemonte/PBJVideoPlayer"
s.license = "MIT"
s.authors = { "<NAME>" => "<EMAIL>" }... |
HubSpot/Baragon | BaragonData/src/test/java/com/hubspot/baragon/auth/BaragonAuthFilterTest.java | package com.hubspot.baragon.auth;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import com.google.inject.Inject;
import name.falgout.jeffrey.testing.junit.guice.GuiceExtension;
import name.falgout.jeffrey.testing.junit.guice.IncludeModule;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.ap... |
Terry-Lee-Git/weirblog-quarkus | quarkus-narayana-lra-demo/narayana-lra-client2/src/main/java/org/acme/client/TicketService.java | package org.acme.client;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
@Path("/client")
@Produces(MediaType.APPLICATION_JSON)
@RegisterRestClient
public interface TicketService {
... |
dsqdata/jl-admin-server | rtadmin-docs/src/main/java/com/ratel/modules/updata/rest/YqpcController.java | package com.ratel.modules.updata.rest;
import com.ratel.config.DataScope;
import com.ratel.framework.exception.BadRequestException;
import com.ratel.modules.docs.domain.ModDocs;
import com.ratel.modules.logging.aop.log.Log;
import com.ratel.modules.updata.domain.YqpcMain;
import com.ratel.modules.updata.service.ModYqp... |
lyzhang1999/nocalhost | internal/nhctl/app/application_config.go | <filename>internal/nhctl/app/application_config.go
package app
import (
"strconv"
"time"
)
const (
DefaultSideCarImage = "codingcorp-docker.pkg.coding.net/nocalhost/public/nocalhost-sidecar:syncthing"
DefaultDevImage = "codingcorp-docker.pkg.coding.net/nocalhost/publi... |
molybdenum-99/mediawiktory | lib/mediawiktory/wikipedia/actions/refresheducation.rb | # frozen_string_literal: true
module MediaWiktory::Wikipedia
module Actions
# Rebuild summary data of Education Program objects.
#
# Usage:
#
# ```ruby
# api.refresheducation.ids(value).perform # returns string with raw output
# # or
# api.refresheducation.ids(value).response # return... |
leenlab2/TLI-server | src/main/java/com/caravantage/use_case_managers/Recommender.java | <gh_stars>1-10
package com.caravantage.use_case_managers;
import com.caravantage.car_recommendations.SetUpAccountHolder;
import com.caravantage.constants.RecommendationConstants;
import com.caravantage.data_access.AccountAccessInterface;
import com.caravantage.fetch_cars.BankingDataProcessor;
import com.caravantage.en... |
kkpenaranda/ITERAC_5 | src/vos/IngresoZonaPorAdministrador.java | <filename>src/vos/IngresoZonaPorAdministrador.java
package vos;
import org.codehaus.jackson.annotate.JsonProperty;
public class IngresoZonaPorAdministrador {
@JsonProperty(value= "idAdministrador")
private Long idAdministrador;
@JsonProperty(value="contraseniaAdministrador")
private String contraseniaAdministr... |
Filjo0/JavaRushTasks | 1.JavaSyntax/src/com/javarush/task/task07/task0707/Solution.java | package com.javarush.task.task07.task0707;
import java.lang.reflect.Array;
import java.util.ArrayList;
/*
Что за список такой?
*/
public class Solution {
public static void main(String[] args) throws Exception {
ArrayList<String> list = new ArrayList<>();
list.add("1");
list.add("1");
... |
sasano8/pyright | packages/pyright-internal/src/tests/samples/loops1.py | # This sample tests the type checker's ability to handle type
# inferences within loop constructs.
def bar(a: list):
pass
def func1():
data = None
for x in [2, 3]:
if not data:
data = [1, 2]
else:
# This should not generate an error because the
# type... |
FreeSlave/resolve | examples/cli-uploader/client/index.js | import React from 'react'
import { render } from 'react-dom'
import { createResolveStore, ResolveReduxProvider } from 'resolve-redux'
import jsCookie from 'js-cookie'
import jwt from 'jsonwebtoken'
import App from './containers/App'
import Layout from './components/Layout'
const entryPoint = (clientContext) => {
co... |
javg15/sirh_backend | app/models/rhnominas.model.js | <reponame>javg15/sirh_backend
module.exports = function(sequelize, DataTypes) {
return sequelize.define('rhnominas', {
id: {
autoIncrement: true,
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true
},
quincenapago: {
type: D... |
bayesmix-dev/math | test/unit/math/opencl/rev/scaled_inv_chi_square_lpdf_test.cpp | #ifdef STAN_OPENCL
#include <stan/math/opencl/rev.hpp>
#include <stan/math.hpp>
#include <gtest/gtest.h>
#include <test/unit/math/opencl/util.hpp>
#include <vector>
TEST(ProbDistributionsScaledInvChiSquare, error_checking) {
int N = 3;
Eigen::VectorXd y(N);
y << 0.3, 0.8, 1.0;
Eigen::VectorXd y_size(N - 1);
... |
prasannachinnapareddy/FullStactDevelopement | Secondlar.java | <reponame>prasannachinnapareddy/FullStactDevelopement<gh_stars>0
package com.cts.main;
import java.util.Scanner;
/*
Write a program in C to find the second largest element in an array.
Test Data :
Input the size of array : 5
Input 5 elements in the array :
element - 0 : 2
element - 1 : 9
element - 2 : 1
element... |
liyork/violin | violin-utils/src/main/java/com/wolf/utils/redis/threadpool/CommonThreadPool.java | /**
* Description: CommonThreadPool.java
* All Rights Reserved.
*/
package com.wolf.utils.redis.threadpool;
import java.io.IOException;
import java.io.InputStream;
import java.lang.management.ManagementFactory;
import java.text.SimpleDateFormat;
import java.util.Collection;
import java.util.Date;
import java.util.... |
robindiddams/handlebars.js | spec/expected/empty.amd.simple.js | {"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
return "";
},"useData":true} |
sofa-framework/issofa | SofaKernel/modules/SofaLoader/BaseVTKReader.inl | /******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* *
... |
DougRogers-DigitalFish/USD | pxr/base/trace/testenv/testTraceReportPerf.cpp | //
// Copyright 2018 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
chingov/Milkomeda | Milkomeda/src/main/java/com/github/yizzuide/milkomeda/hydrogen/core/HydrogenHolder.java | <reponame>chingov/Milkomeda
package com.github.yizzuide.milkomeda.hydrogen.core;
import com.github.yizzuide.milkomeda.hydrogen.i18n.I18nMessages;
import javax.validation.Validator;
/**
* HydrogenHolder
*
* @author yizzuide
* @since 3.0.0
* Create at 2020/03/26 20:25
*/
public class HydrogenHolder {
/**
... |
jnpr-pranav/contrail-controller | src/vnsw/agent/resource_manager/resource_table.cc | <filename>src/vnsw/agent/resource_manager/resource_table.cc
/*
* Copyright (c) 2016 Juniper Networks, Inc. All rights reserved.
*/
#include <boost/uuid/uuid_io.hpp>
#include <cmn/agent_cmn.h>
#include <cmn/agent.h>
#include <resource_manager/resource_manager.h>
#include <resource_manager/resource_table.h>
#include <... |
newincpp/GLnewin | LunaticPlatypus/Math.hh | <reponame>newincpp/GLnewin<filename>LunaticPlatypus/Math.hh<gh_stars>0
#pragma once
#include <cmath>
template<typename T>
T lerp(T a, T b, float f) {
return a + f * (b - a);
}
template<typename T>
T CosineInterpolate(T y1, T y2, float mu) {
return learp<T>(y1, y2, (1-cos(mu*PI))/2);
}
//template<typename T>
... |
ikechan8370/bhpan-student-group-importer | java-client/src/main/java/io/openDocAPI/client/model/FileGetfilecustomattributeResItem.java | <filename>java-client/src/main/java/io/openDocAPI/client/model/FileGetfilecustomattributeResItem.java
/*
* 6.0-OpenDoc_API-文档访问
* API to access AnyShare 如有任何疑问,可到开发者社区提问:https://developers.aishu.cn # Authentication - 调用需要鉴权的API,必须将token放在HTTP header中:\"Authorization: Bearer ACCESS_TOKEN\" - 对于GET请求,除了将token放在HT... |
AsahiOS/gate | usr/src/cmd/fs.d/udfs/mkfs/mkfs.c | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
lechium/tvOS144Headers | Applications/Siri/SRPagerViewController.h | //
// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <UIKit/UIViewController.h>
#import "SRPagerViewDataSource-Protocol.h"
#import "SRPagerViewDelegate-Protocol.h"
@class NSArray, NSMutableArray, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.