repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
fletcher91/open-raadsinformatie | ocd_backend/transformers/ggm.py | from lxml import etree
from ocd_backend.log import get_source_logger
from ocd_backend.transformers import BaseTransformer
from ocd_backend.utils.misc import load_object, strip_namespaces
log = get_source_logger('transformer')
class GegevensmagazijnTransformer(BaseTransformer):
def run(self, *args, **kwargs):
... |
wolforest/wolf | lib/dts/src/main/java/study/daydayup/wolf/dts/transformation/DbTransformation.java | package study.daydayup.wolf.dts.transformation;
import lombok.Getter;
import lombok.NonNull;
import study.daydayup.wolf.common.io.db.Row;
import study.daydayup.wolf.common.io.db.Table;
import study.daydayup.wolf.common.util.collection.CollectionUtil;
import study.daydayup.wolf.dts.sink.Sink;
import java.util.ArrayLis... |
depthmind/compiled-spring | depthmind-core/src/main/java/com/depthmind/concurrent/demo14/Container2.java | <filename>depthmind-core/src/main/java/com/depthmind/concurrent/demo14/Container2.java
package com.depthmind.concurrent.demo14;
import java.util.LinkedList;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.Reent... |
tonioshikanlu/tubman-hack | sources/b/l/f/c0/b.java | <filename>sources/b/l/f/c0/b.java
package b.l.f.c0;
public final class b extends s {
/* renamed from: b reason: collision with root package name */
public static final char[] f5591b;
public static final char[] c = {'T', 'N', '*', 'E'};
public static final char[] d = {'/', ':', '+', '.'};
/* rena... |
gilramir/instmake | instmakeplugins/report_shell.py | <reponame>gilramir/instmake<filename>instmakeplugins/report_shell.py
# Copyright (c) 2010 by Cisco Systems, Inc.
"""
Show records that GNU make would have used the shell to run
instead of using fork/exec.
"""
from instmakelib import instmake_log as LOG
import getopt
import sys
import os
description = "Show records tha... |
bpaauwe/pg3 | core/lib/config/__tests__/config.test.js | const config = require('../config')
describe('check config object', () => {
test('config should be defined', () => {
expect(config).toBeDefined()
})
test('config should be an object', () => {
expect(config).toEqual(expect.any(Object))
})
test('shutdown should be false', () => {
expect(config.shut... |
FranicevicNikola/OOP | FER/Exams-master/2019_20/AutumnExam_2019_20-09-04-IR_3/solved/src/main/java/hr/fer/oop/task1/ChocolateType.java | <gh_stars>0
package hr.fer.oop.task1;
public enum ChocolateType {
WHITE, MILK, DARK
}
|
brandongk/segmenter | segmenter/jobs/GridSearchJob.py | <reponame>brandongk/segmenter
from .BaseJob import BaseJob
import argparse
from typing import Dict
import os
import itertools
import sys
import pprint
from importlib.machinery import SourceFileLoader
from importlib import util
import itertools
class GridSearchJob(BaseJob):
name = "grid-search"
@staticmethod... |
gustavopinto/entente | seeds/mozilla/non262/regress/regress-626436.js | // Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/licenses/publicdomain/
// Contributors: <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
(1 ? 2 : delete(0 ? 0 : {})).x;
reportCompare(0, 0, 'ok');
|
kcevik/SoftwareProjekt2020 | src/main/java/de/fhbielefeld/pmt/login/event/LoginFailedEvent.java | package de.fhbielefeld.pmt.login.event;
import java.util.EventObject;
import de.fhbielefeld.pmt.login.ILoginModel;
public class LoginFailedEvent extends EventObject {
public LoginFailedEvent(ILoginModel model) {
super(model);
}
}
|
menify/sandbox | aql/benchmark/lib_97/class_8.cpp | #include "class_8.h"
#include "class_1.h"
#include "class_7.h"
#include "class_9.h"
#include "class_6.h"
#include "class_0.h"
#include <lib_3/class_9.h>
#include <lib_54/class_3.h>
#include <lib_6/class_8.h>
#include <lib_64/class_5.h>
#include <lib_2/class_0.h>
class_8::class_8() {}
class_8::~class_8() {}
|
andreww591/tme-phabrics | host/gtk/gtk-display.h | /* $Id: gtk-display.h,v 1.10 2009/08/28 01:29:47 fredette Exp $ */
/* host/gtk/gtk-display.h - header file for GTK display support: */
/*
* Copyright (c) 2003 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follo... |
qeo/qeo-core | qeo-codegen/qeo-codegen/src/main/java/com/technicolor/qeo/codegen/type/qdm/QDM.java | /*
* Copyright (c) 2016 - Qeo LLC
*
* The source code form of this Qeo Open Source Project component is subject
* to the terms of the Clear BSD license.
*
* You can redistribute it and/or modify it under the terms of the Clear BSD
* License (http://directory.fsf.org/wiki/License:ClearBSD). See LICENSE file
* fo... |
FroobWorld/NabSuite | src/main/java/com/froobworld/nabsuite/modules/protect/command/ClaimHorseCommand.java | package com.froobworld.nabsuite.modules.protect.command;
import cloud.commandframework.Command;
import cloud.commandframework.context.CommandContext;
import com.froobworld.nabsuite.command.NabCommand;
import com.froobworld.nabsuite.modules.protect.ProtectModule;
import com.froobworld.nabsuite.modules.protect.horse.Hor... |
alljoyn/lighting-service_framework | thin_core_library/lamp_service/src/LampState.c | /******************************************************************************
* Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source
* Project (AJOSP) Contributors and others.
*
* SPDX-License-Identifier: Apache-2.0
*
* All rights reserved. This program and the accompanying ... |
wesleyegberto/javaee_projects | jaxrs-specification/src/main/java/com/github/wesleyegberto/jaxrsspecificationtest/config/Audited.java | package com.github.wesleyegberto.jaxrsspecificationtest.config;
import javax.ws.rs.NameBinding;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(Re... |
jackstack24/gitaly-mirror | proto/go/gitalypb/remote.pb.go | <gh_stars>1-10
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: remote.proto
package gitalypb
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Refe... |
1067511899/tornado-learn | codewars/HumanReadableTime.py | '''
Write a function, which takes a non-negative integer (seconds) as input and returns the time in a human-readable format (HH:MM:SS)
HH = hours, padded to 2 digits, range: 00 - 99
MM = minutes, padded to 2 digits, range: 00 - 59
SS = seconds, padded to 2 digits, range: 00 - 59
The maximum time never exceeds 359999 (... |
ggreen/khem | khem-joelib/src/main/java/joelib2/math/Matrix3D.java | <gh_stars>0
///////////////////////////////////////////////////////////////////////////////
//Filename: $RCSfile: Matrix3D.java,v $
//Purpose: TODO description.
//Language: Java
//Compiler: JDK 1.4
//Authors: <NAME>
//Version: $Revision: 1.4 $
// $Date: 2005/02/17 16:48:35 $
// $Author: wegner $
//... |
Eruimdas/eruimdas.github.io | vendor/bundle/ruby/2.7.0/gems/tzinfo-data-1.2021.1/lib/tzinfo/data/definitions/Antarctica/Casey.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Antarctica
module Casey
include TimezoneDefinition
timezone 'Antarctica/Casey' do |tz|
... |
RipDevil/mirador | src/state/selectors/config.js | <reponame>RipDevil/mirador<gh_stars>100-1000
import { createSelector } from 'reselect';
import deepmerge from 'deepmerge';
import { miradorSlice } from './utils';
import { getWorkspace } from './getters';
/** */
export function getConfig(state) {
const slice = miradorSlice(state || {});
return slice.config || {};
... |
ShimmyShaman/midge | src/modules/ui_elements/stack_container.h | // /* stack_container.h */
// #ifndef stack_container_H
// #define stack_container_H
// #include "control/mc_controller.h"
// #include "core/core_definitions.h"
// #include "mc_str.h"
// #include "render/render_common.h"
// typedef enum mcu_stack_orientation {
// MCU_STACK_ORIENTATION_NULL = 0,
// MCU_STACK_ORIE... |
souslesens/souslesensGraph | public/toutlesens/js/customizeUI.js | <gh_stars>1-10
/*******************************************************************************
* SOUSLESENS LICENSE************************
*
* The MIT License (MIT)
*
* Copyright (c) 2016-2017 <NAME> <EMAIL>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software an... |
Nmane1612/Nihar-Mane | Python Files/critter3.py | class Critter(object):
def __init__(self, name):
self.name = name
def talk(self):
print( "Hi. I'm", self.name, "\n")
crit1 = Critter("abcd")
print(crit1.name)
crit1.talk()
|
laplace22/narou | lib/web/helper4web.rb | <reponame>laplace22/narou
# -*- coding: utf-8 -*-
#
# Copyright 2013 whiteleaf. All rights reserved.
#
require_relative "../helper"
module Helper
module_function
def print_horizontal_rule
print "<hr>"
end
end
|
dacap/loseface | src/captu/linux/spcadecoder.h |
#ifndef SPCADECODER_H
#define SPCADECODER_H
#include "spca5xx.h"
#ifdef __cplusplus
extern "C" {
#endif
#define ISHIFT 11
#define IFIX(a) ((long)((a) * (1 << ISHIFT) + .5))
#define IMULT(a, b) (((a) * (b)) >> ISHIFT)
#define ITOINT(a) ((a) >> ISHIFT)
/* special markers */
#define M_BADHUFF -1
struct in {
unsign... |
berendkleinhaneveld/Registrationshop | ui/widgets/transferfunction/TransferFunctionWidget.py | """
TransferFunctionWidget
:Authors:
<NAME>
"""
from ui.widgets.histogram import Histogram
from ui.widgets.histogram import HistogramWidget
from ui.widgets.transferfunction import TransferFunctionNodeItem
from ui.widgets.transferfunction import TransferFunctionItem
from ui.widgets.ColorWidget import ColorButton
from ... |
chenjianping99/CradCool | src/com/jiubang/goscreenlock/theme/cjpcardcool/switcher/bean/ViewResponAreaInfo.java | <reponame>chenjianping99/CradCool<filename>src/com/jiubang/goscreenlock/theme/cjpcardcool/switcher/bean/ViewResponAreaInfo.java
package com.jiubang.goscreenlock.theme.cjpcardcool.switcher.bean;
/**
* 响应区域
*
* @author hezhiyi
* @date [2013-5-20]
*/
public class ViewResponAreaInfo {
public static final int VIEW_T... |
smagill/opensphere-desktop | open-sphere-base/core/src/main/java/io/opensphere/core/cache/accessor/TimeSpanAccessor.java | package io.opensphere.core.cache.accessor;
import io.opensphere.core.cache.matcher.IntervalPropertyMatcher;
import io.opensphere.core.cache.matcher.TimeSpanMatcher;
import io.opensphere.core.cache.util.PropertyDescriptor;
import io.opensphere.core.model.time.TimeSpan;
/**
* Accessor for time span property va... |
Scandinaf/TicTacToe | src/main/scala/com/tictactoe/service/session/exception/SessionServiceException.scala | package com.tictactoe.service.session.exception
import com.tictactoe.exception.AppException
import cats.syntax.show._
import com.tictactoe.exception.AppException.{ErrorCode, ParameterKey, PrettyMessage}
import com.tictactoe.model.Session.SessionId
sealed trait SessionServiceException extends AppException
object Sess... |
VaibhawPandey/interview | src/com/competitiveCodes/hackerrank/basicPractice/ACMICPCTeam.java | package com.competitiveCodes.hackerrank.basicPractice;
import java.util.Scanner;
public class ACMICPCTeam {
//THis solution is correct logically..
private static void solve() {
String[] topic = {"10101",
"11100",
"11010",
"00101"};
Scanner scan... |
jasond1016/learnAlgorithm | java/leetcode/p0015_3sum/Solution.java | package leetcode.p0015_3sum;
import java.util.*;
public class Solution {
public static void main(String[] args) {
Solution solution = new Solution();
int[] nums = new int[]{-1, 0, 1, 2, -1, -4};
// -4,-1,-1,0,1,2
Arrays.sort(nums);
System.out.println(solution.threeSum(nums)... |
KarolisCibulskis/ns4kafka | cli/src/main/java/com/michelin/ns4kafka/cli/client/UsernameAndPasswordRequest.java | <gh_stars>10-100
package com.michelin.ns4kafka.cli.client;
import io.micronaut.core.annotation.Introspected;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
@Introspected
@Getter
@Setter
@Builder
public class UsernameAndPasswordRequest {
private String username;
private String password;
}
|
andre15silva/styler | python/experiments/projects/couchbase-couchbase-jvm-core/real_error_dataset/1/13/FlushTest.java | /**
* Copyright (C) 2014 Couchbase, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... |
pinkeraw/keter-sql | keter-parser/src/main/java/dev/keter/tree/NaturalJoin.java | <reponame>pinkeraw/keter-sql
package dev.keter.tree;
import com.google.common.collect.ImmutableList;
import java.util.List;
import static com.google.common.base.MoreObjects.toStringHelper;
public class NaturalJoin extends JoinCriteria {
@Override
public boolean equals(Object obj) {
if (this == obj) ... |
devCharles/kodemia-api | src/routes/active-campaign/index.js | <gh_stars>0
const Router = require('koa-router')
const contacts = require('./contacts')
const apply = require('./apply')
const companies = require('./companies')
const router = new Router({
prefix: '/active-campaign'
})
router.use(contacts.routes(), contacts.allowedMethods())
router.use(apply.routes(), apply.allow... |
yousefiparsa/filestack-python | filestack/trafarets.py | import trafaret as t
CONTENT_DOWNLOAD_SCHEMA = t.Dict({
'dl': t.Bool(),
'cache': t.Bool()
})
CONTENT_DOWNLOAD_SCHEMA.make_optional('*')
OVERWRITE_SCHEMA = t.Dict({
'url': t.String(),
'base64decode': t.Bool()
})
OVERWRITE_SCHEMA.make_optional('*')
STORE_LOCATION_SCHEMA = t.Enum('S3', 'gcs', 'azure'... |
nickm01/iNaturalistReactNative | src/providers/contexts.js | <reponame>nickm01/iNaturalistReactNative<filename>src/providers/contexts.js
// @flow
import { createContext } from "react";
const ExploreContext: Object = createContext<Function>( );
const ObsEditContext: Object = createContext<Function>( );
const ObservationContext: Object = createContext<Function>( );
const PhotoGal... |
jibrel/flux | src/model/fluxExtensions/CancerReasonReferenceFix.js | import CancerReasonReference from '../onco/core/CancerReasonReference';
import { FHIRHelper, uuid } from '../json-helper';
/**
* This fix class replaces the original onco.core.CancerReasonReference.fromFHIR function
* with a version that sets the value correctly as a reference instead of a full object.
*/
export... |
pase13voxi/TeaMemory | app/src/test/java/coolpharaoh/tee/speicher/tea/timer/views/new_tea/suggestions/PuerhTeaSuggestionsTest.java | package coolpharaoh.tee.speicher.tea.timer.views.new_tea.suggestions;
import android.app.Application;
import android.content.res.Resources;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import coolpharaoh.tee.spe... |
ark100/multi-os-engine | moe/test/xosrt_tests/src/test/java/org/moe/xosrt/binding/test/uikit/testhelpers/CustomControl.java | <gh_stars>0
package org.moe.xosrt.binding.test.uikit.testhelpers;
import org.moe.natj.general.NatJ;
import org.moe.natj.general.Pointer;
import org.moe.natj.objc.ann.Selector;
import ios.coregraphics.struct.CGRect;
import ios.uikit.UIColor;
import ios.uikit.UIControl;
import ios.uikit.UILabel;
public cl... |
LigeiramenteDesidratado/StrangeMachine | StrangeMachine/smSkinnedModel.c | <reponame>LigeiramenteDesidratado/StrangeMachine
#include "util/bitmask.h"
#include "util/common.h"
#include "data/array.h"
#include "smController.h"
#include "smGLTFLoader.h"
#include "smInput.h"
#include "smMem.h"
#include "smRearrangeBones.h"
#include "smShader.h"
#include "smShaderProgram.h"
#include "smSkinnedMe... |
jandejongh/jqueues | src/test/java/org/javades/jqueues/r5/entity/jq/queue/TestJob2.java | /*
* Copyright 2010-2018 <NAME> <<EMAIL>>, TNO.
*
* 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... |
madeso/hopper | devel/game/gamemessagewindow.h |
#ifndef _GAMEMESSAGEWINDOW_
#define _GAMEMESSAGEWINDOW_
#include "dynagui.h"
#include "delay.h"
/**
* CGameMessageWindow : displays a short text for the provided amout of time and then hide itself
*
* if the display timeout is 0, the window never hides itself
* timeout in ms, defaults to 2 secs.
*/
class ... |
abhijeetviswam/libucresolv | include/glibc-string/tst-strfry.c | <reponame>abhijeetviswam/libucresolv
#include <stdio.h>
#include <string.h>
int
do_test (void)
{
char str[] = "this is a test";
strfry (str);
return 0;
}
#include <support/test-driver.c>
|
github-fhl/staff | src/components/layouts/ContentLayout.js | <filename>src/components/layouts/ContentLayout.js
import React from 'react';
import {Link} from 'react-router'
import {Breadcrumb} from 'antd'
import PropTypes from 'prop-types';
import './ContentLayout.scss'
// autoHeight 是否固定内容区域的高度为一屏,还是自动延伸
//主内容区布局
const ContentLayout = ({header, footer, children, autoHeight = ... |
Bugasu/ghidra | Ghidra/Framework/DB/src/main/java/db/BooleanField.java | <reponame>Bugasu/ghidra
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* 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... |
rsn8887/mame2003-plus-libretro | src/includes/lemmings.h | VIDEO_START( lemmings );
VIDEO_STOP( lemmings );
VIDEO_EOF( lemmings );
VIDEO_UPDATE( lemmings );
WRITE16_HANDLER( lemmings_pixel_0_w );
WRITE16_HANDLER( lemmings_pixel_1_w );
WRITE16_HANDLER( lemmings_vram_w );
extern data16_t *lemmings_pixel_0_data,*lemmings_pixel_1_data,*lemmings_vram_data,*lemmings_control... |
maxvonhippel/snake | ns-3-dev/src/lte/model/lte-mac-header.h | <reponame>maxvonhippel/snake
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published b... |
siwelo/bitshares-2 | libraries/chain/include/graphene/chain/withdraw_permission_object.hpp | <filename>libraries/chain/include/graphene/chain/withdraw_permission_object.hpp
/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
*... |
EchoThreeLLC/echothree | src/java/com/echothree/model/control/training/server/transfer/TrainingClassAnswerTranslationTransferCache.java | // --------------------------------------------------------------------------------
// Copyright 2002-2022 Echo Three, LLC
//
// 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:/... |
allansrc/fuchsia | build/python/tests/bin/main.py | #!/usr/bin/env python3.8
# Copyright 2021 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import lib
import sys
def main():
lib.f()
if __name__ == "__main__":
sys.exit(main())
|
sergeytkachenko/siesta-template | tests/056_is_element_scrolled_out.t.js | StartTest(function (t) {
// this test exersizes the "elementIsScrolledOut" method
t.testExtJS(function (t) {
t.it('Determine that element is scrolled out of the view', function (t) {
document.body.innerHTML =
'<div style="position:absolute; left:100px; border:1px solid #... |
qyangge/wechat | node_modules/_flash-store@0.14.5@flash-store/dist/index.js | <reponame>qyangge/wechat<gh_stars>0
export { log } from './config';
export { FlashStoreSync, } from './flash-store-sync';
import { FlashStore, } from './flash-store';
export { FlashStore, };
export default FlashStore;
//# sourceMappingURL=index.js.map |
wangyuqing0424/graviti-python-sdk | graviti/portex/factory.py | <filename>graviti/portex/factory.py
#!/usr/bin/env python3
#
# Copyright 2022 Graviti. Licensed under MIT License.
#
"""Template factory releated classes."""
from collections import OrderedDict
from typing import (
Any,
Callable,
Dict,
Generic,
List,
Mapping,
Optional,
Set,
Tuple,
... |
carmensp85/appverse-sass | demo/app/components/ui-bootstrap/uib-accordion-all-code.js | <gh_stars>0
$scope.groups = [{
title: 'Dynamic Group Header - 1',
content: 'Dynamic Group Body - 1'
}, {
title: 'Dynamic Group Header - 2',
content: 'Dynamic Group Body - 2'
}];
$scope.status = {
isFirstOpen: true,
isFirstDisabled: false
};
$scope.status2 = {
isFirstOpen: true,
isFirstD... |
yangfanchuhai/pigeon | pigeon-remoting/src/main/java/com/dianping/pigeon/remoting/invoker/process/AbstractResponseProcessor.java | /**
*
*/
package com.dianping.pigeon.remoting.invoker.process;
import org.apache.logging.log4j.Logger;
import com.dianping.pigeon.log.LoggerLoader;
import com.dianping.pigeon.monitor.Monitor;
import com.dianping.pigeon.monitor.MonitorLoader;
import com.dianping.pigeon.remoting.common.domain.InvocationResponse;
imp... |
jiayidev/Business | app/src/main/java/com/dev/brian/business/module/recommand/RecommandBodyValue.java | package com.dev.brian.business.module.recommand;
import com.dev.brian.business.module.BaseModel;
import com.dev.brian.sdk.module.monitor.Monitor;
import com.dev.brian.sdk.module.monitor.emevent.EMEvent;
import java.util.ArrayList;
/**
* Author :BrianDev
* Email :<EMAIL>
* Create at:2017/11/16 0016
* Descrip... |
JustinKyleJames/irods | unit_tests/src/test_metadata.cpp | #include "catch.hpp"
#include "getRodsEnv.h"
#include "rodsClient.h"
#include "rcConnect.h"
#include "connection_pool.hpp"
#include "filesystem.hpp"
#include "metadata.hpp"
#include "irods_at_scope_exit.hpp"
#include "dstream.hpp"
#include "transport/default_transport.hpp"
#include <vector>
#include <string>
namesp... |
ooskapenaar/mojito | tests/fixtures/gsg5-appConfig/index.js | <gh_stars>100-1000
/*
* Copyright (c) 2011 Yahoo! Inc. All rights reserved.
*/
// this file provides Manhattan integration
process.chdir(__dirname);
var http = require('http'),
app = require('./app');
/**
* @token given by manhattan and used to emit that the app is ready
*/
module.exports = function(config, t... |
bcvsolutions/czechidm-extras | Realization/backend/idm-extras/src/test/java/eu/bcvsolutions/idm/extras/event/processor/contract/CopyRolesFromCurrentContractProcessorTest.java | <reponame>bcvsolutions/czechidm-extras
package eu.bcvsolutions.idm.extras.event.processor.contract;
import java.time.LocalDate;
import java.util.List;
import java.util.UUID;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annota... |
notthatbreezy/geotrellis | spark/src/main/scala/geotrellis/spark/io/hadoop/reader/SimpleRasterReader.scala | /*
* Copyright (c) 2014 DigitalGlobe.
*
* 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... |
ScarletteTout/PDFium | xfa/fxfa/cxfa_ffapp.cpp | <filename>xfa/fxfa/cxfa_ffapp.cpp
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/fxfa/cxfa_ffapp.h"
#include <... |
edigonzales/LandRegisterParcelDescription | src/generated/java/ch/admin/geo/schemas/bj/tgbv/gbbasistypen/_2/GrundstueckWert.java | <gh_stars>0
package ch.admin.geo.schemas.bj.tgbv.gbbasistypen._2;
import java.math.BigDecimal;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotatio... |
edusalguero/rexoubapp | src/main/java/com/edusalguero/rexoubapp/application/server/harvester/ServerHarvesterResponse.java | package com.edusalguero.rexoubapp.application.server.harvester;
import com.edusalguero.rexoubapp.application.datatransformer.DateConverter;
import com.edusalguero.rexoubapp.application.monitor.harvester.HarvesterResponse;
import com.edusalguero.rexoubapp.domain.model.server.harvester.Harvest;
import com.edusalguero.re... |
djknit/timeclock | server/controllers/User/utilities/errors.js | <filename>server/controllers/User/utilities/errors.js
module.exports = {
determineUserInfoError
};
function determineUserInfoError(err) {
const { code, errors, errmsg } = err;
let problemMessages = [];
let problems = {};
let status;
if (code === 11000) {
if (errmsg.indexOf('username') > -1) {
ret... |
gaganeggday/Tasks38 | pkg/odo/cli/pipelines/pipelines.go | package pipelines
import (
"fmt"
"github.com/spf13/cobra"
odoutil "github.com/openshift/odo/pkg/odo/util"
)
// RecommendedPipelinesCommandName is the recommended pipelines command name.
const RecommendedCommandName = "pipelines"
// NewCmdComponent implements the component odo command
func NewCmdComponent(name, ... |
graemepatt/BerryCamExpress | node_modules/grunt-styleguide/node_modules/kss/test/kss_section.js | var kss = require('../index.js'),
KssStyleguide = kss.KssStyleguide,
KssSection = kss.KssSection,
KssModifier = kss.KssModifier,
path = require('path'),
assert = require('assert'),
styleDirectory = path.normalize(__dirname + '/fixtures-styles/'),
common = require('./common.js')(styleDirectory);
suite('KssSect... |
mgrsantox/nmmis | nmmis/contrib/municipal/migrations/0004_auto_20200723_1714.py | <reponame>mgrsantox/nmmis<filename>nmmis/contrib/municipal/migrations/0004_auto_20200723_1714.py
# Generated by Django 3.0.8 on 2020-07-23 11:29
import django.contrib.gis.db.models.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('municipal', '0003_auto_20... |
joshelser/cloudbreak | datalake/src/main/java/com/sequenceiq/datalake/flow/delete/SdxDeleteActions.java | <gh_stars>0
package com.sequenceiq.datalake.flow.delete;
import static com.sequenceiq.datalake.flow.delete.SdxDeleteEvent.SDX_DELETE_FAILED_HANDLED_EVENT;
import static com.sequenceiq.datalake.flow.delete.SdxDeleteEvent.SDX_DELETE_FINALIZED_EVENT;
import static com.sequenceiq.datalake.flow.delete.SdxDeleteEvent.SDX_ST... |
uncle-pier/spark-platform | spark-common/spark-common-datasource/src/main/java/com/spark/platform/common/datasource/emuns/DataScopeTypeEnum.java | package com.spark.platform.common.datasource.emuns;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* @ProjectName: spark-platform
* @Package: com.spark.platform.common.base.datasource.emuns
* @ClassName: DataScopeTypeEnum
* @Author: wangdingfeng
* @Description: 数据权限枚举
* @Date: 2020/6/8 17:13
* @Ve... |
DwangoMediaVillage/marltas_core | dqn/learner.py | <reponame>DwangoMediaVillage/marltas_core
"""Base learner class"""
import logging
from dataclasses import dataclass
from pathlib import Path
from typing import Any, Optional, Tuple
from dqn.model import ModelBase
from dqn.utils import ConfigBase, Counter, EventObject, MovingAverage
@dataclass
class LearnerConfig(Con... |
jbrasileiro/resume-online | resume-online-frontend/resume-online-jfx/src/main/java/resumeonline/jfx/FXMLResourceLoader.java | <gh_stars>0
package resumeonline.jfx;
import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.FXMLLoader;
import resumeonline.commons.ResourceThreadLoader;
import resumeonline.commons.exeception.NoNewInstanceAllowed;
public final class FXMLResourceLoader {
private st... |
wwjiang007/fuchsia-1 | src/firmware/gigaboot/host/stubs.h | <reponame>wwjiang007/fuchsia-1
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file defines stubs for device-only functionality that we don't
// need for unittests, but have to define for compila... |
obecto/perper | functions/python/perper/cache/call_data.py | <gh_stars>10-100
from collections import OrderedDict
from pyignite import GenericObjectMeta
from pyignite.datatypes import *
class CallData(
metaclass=GenericObjectMeta,
type_name="CallData",
schema=OrderedDict(
[
("agent", String),
("agentdelegate", String),
("... |
pferrel/incubator-predictionio | e2/src/test/scala/org/apache/predictionio/e2/engine/BinaryVectorizerTest.scala | <filename>e2/src/test/scala/org/apache/predictionio/e2/engine/BinaryVectorizerTest.scala
/*
* 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 lic... |
dateolive/Hi-Dream-Blog | blog-api/src/main/java/com/datealive/common/PageResult.java | package com.datealive.common;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @ClassName: PageResult
* @Description: TODO
* @author: datealive
* @date: 2021/1/31 22:25
*/
@Data
public class PageResult<T> implements Serializable {
/**
* 状... |
gitter-badger/pygsuite | tests/test_docs.py | from pygsuite import DefaultFonts, TextStyle, Color
from pygsuite.docs.doc_elements.paragraph import Paragraph
BRIGHT_GREEN_HEX = "#72FF33"
def test_text(test_document):
document = test_document
docbody = document.body
docbody.delete()
docbody.add_text(
"TEST_CUSTOM\n",
style=TextStyl... |
gingerik/ol3 | examples/topojson.js | <reponame>gingerik/ol3
import Map from '../src/ol/Map.js';
import View from '../src/ol/View.js';
import TopoJSON from '../src/ol/format/TopoJSON.js';
import TileLayer from '../src/ol/layer/Tile.js';
import VectorLayer from '../src/ol/layer/Vector.js';
import TileJSON from '../src/ol/source/TileJSON.js';
import VectorSo... |
rkondratenko/oxAuth | common/src/main/java/org/gluu/oxauth/claims/Audience.java | package org.gluu.oxauth.claims;
import org.gluu.oxauth.model.jwt.JwtClaims;
import org.gluu.oxauth.model.registration.Client;
/**
* @author <NAME>
*/
public class Audience {
private Audience() {
}
public static void setAudience(JwtClaims claims, Client client) {
if (claims == null || client ==... |
AntonGavr92/agavrikov | chapter_007/src/main/java/ru/job4j/threads/Time.java | <reponame>AntonGavr92/agavrikov
package ru.job4j.threads;
import java.util.Date;
/**
* Класс реализующий контроль времени за другим потоком.
* @author agavrikov
* @since 24.07.2017
* @version 1
*/
public class Time implements Runnable {
/**
* Точка входа.
* @param arg параметры.
*/
public... |
rLadia-demo/AttacknidPatch | decompiled_src/CFR/com/badlogic/gdx/physics/box2d/FixtureDef.java | <reponame>rLadia-demo/AttacknidPatch
/*
* Decompiled with CFR 0_79.
*/
package com.badlogic.gdx.physics.box2d;
import com.badlogic.gdx.physics.box2d.Filter;
import com.badlogic.gdx.physics.box2d.Shape;
public class FixtureDef {
public float density = 0.0f;
public final Filter filter = new Filter();
publ... |
beardog-ukr/uncrustify-config-examples | examples/cmt_width/ex_80c.unc.cpp | <filename>examples/cmt_width/ex_80c.unc.cpp
#include <vector>
#include <iostream>
#include <algorithm>
int main()
{
int x = 10 + 10 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 +
23 + 24 + 25;
// The quick brown fox jumps over the lazy dog. The quick brown fox
// jumps over the lazy dog.
std::c... |
ministryofjustice/mtp-api | mtp_api/urls.py | <gh_stars>1-10
from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from django.http import HttpResponse
from django.utils.translation import gettext_lazy as _
from django.views.generic import RedirectView
from moj_irat.views import HealthcheckView, PingJsonView
fr... |
LongerVisionUSA/VTK | Filters/Generic/Testing/Cxx/otherCreation.cxx | /*=========================================================================
Program: Visualization Toolkit
Module: otherCreation.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOU... |
lecousin/java-framework-core | net.lecousin.core/src/test/java/net/lecousin/framework/core/tests/collections/TestAsyncCollection.java | <filename>net.lecousin.core/src/test/java/net/lecousin/framework/core/tests/collections/TestAsyncCollection.java
package net.lecousin.framework.core.tests.collections;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import net.leco... |
rcooke-ast/VICE | vice/src/multizone/hydrodiskstars.c | /*
* This file implements the interaction between the hydrodiskstars object and
* and the multizone object, specifically the fast-tracked star particle setup.
*/
#include <stdlib.h>
#include "hydrodiskstars.h"
#include "../toolkit/hydrodiskstars.h"
#include "../utils.h"
#include "../singlezone.h"
/* The hydrodisk... |
entanmo/mall | okex-java-sdk-api/src/main/java/com/okcoin/commons/okex/open/api/bean/spot/result/OrderInfo.java | <filename>okex-java-sdk-api/src/main/java/com/okcoin/commons/okex/open/api/bean/spot/result/OrderInfo.java
package com.okcoin.commons.okex.open.api.bean.spot.result;
public class OrderInfo {
/**
* 订单id
*/
private Long order_id;
/**
* limit 订单类型的价格信息
*/
private String price;
/**... |
msn2106/Coding-Websites | src/Codechef/KAVGMAT.java | package Codechef;
import java.util.Arrays;
import java.util.Scanner;
public class KAVGMAT {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
while(t-- >0){
int n = sc.nextInt();
int m = sc.nextInt();
int... |
tzhanl/azure-sdk-for-python | scripts/pylint_custom_plugin/pylint_guidelines_checker.py | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
"""
Pylint custom checkers for SDK guidelines: C4717 - C4738
"""
import logging
import astroid
from pylint.checkers import BaseChecker
from pylint.interfaces import IA... |
yizhe-ang/MMSceneGraph | mmdet/models/anchor_heads/__init__.py | from .anchor_head import AnchorHead
from .atss_head import ATSSHead
from .fcos_head import FCOSHead
from .fovea_head import FoveaHead
from .free_anchor_retina_head import FreeAnchorRetinaHead
from .ga_retina_head import GARetinaHead
from .ga_rpn_head import GARPNHead
from .guided_anchor_head import FeatureAdapti... |
CaffeineShawn/gdutday-wechat | staticData/introdution.js | <gh_stars>1-10
export const introdution = {
//一段为一个项
introdution: [
'gdutday由五位广东工业大学爱好技术的同学开发,为同学们提供查询课表,考试安排,入馆二维码等功能',
'本小程序在ui,交互和自定义化做出不同的尝试,希望给带你最好的体验感受。',
'如果你发现了bug,或者有什么建议或者想法,我们非常欢迎你加入gdutday反馈群:1076030174,我们一起让gdutday变得更好 :)。',
],
team1: [
{
name: 'Cerbur',
... |
exoplanetvetting/DAVE | fileio/test_loadMultipleDetrendings.py | <reponame>exoplanetvetting/DAVE
# -*- coding: utf-8 -*-
"""
Created on Thu Jul 28 16:35:57 2016
@author: fergal
$Id$
$URL$
"""
import loadMultipleDetrendings as lmd
import os
def test_smoke():
epic = 211816003
campaign = 5
dataStorePath = os.path.join(os.environ['HOME'], ",mastio")
detrendTypes =... |
NickPepper/MacScreensavers | rssavers-0.2/src/Plasma/Plasma.cpp | /*
* Copyright (C) 1999-2010 <NAME>
*
* This file is part of Plasma.
*
* Plasma 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... |
changziming/VTour | node_modules/grommet/es6/components/Calendar/stories/Simple.js | import React, { useState } from 'react';
import { storiesOf } from '@storybook/react';
import { Box, Calendar, Grommet } from 'grommet';
import { grommet } from 'grommet/themes';
var SimpleCalendar = function SimpleCalendar() {
var _useState = useState(),
date = _useState[0],
setDate = _useState[1];
v... |
lianxiaopang/camel-store-api | apps/qfile/admin.py | import os
from django.conf import urls
from django.contrib import admin
from django.http import HttpResponseRedirect
from django.shortcuts import render
from django.utils.safestring import mark_safe
from . import models, multi_upload, validators, settings
@admin.register(models.File)
class FileAdmin(admin.ModelAdm... |
kasworld/goguelike-single | game/glclient/meshmaker_ao.go | // Copyright 2014,2015,2016,2017,2018,2019,2020,2021 <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 a... |
ProximaB/das | controller/admin/user.go | package admin
import (
"encoding/json"
"github.com/ProximaB/das/auth"
"github.com/ProximaB/das/businesslogic"
"github.com/ProximaB/das/controller/util"
"github.com/ProximaB/das/viewmodel"
"net/http"
)
type AdminUserManagementServer struct {
auth.IAuthenticationStrategy
accountRepo businesslogic.IAccountReposi... |
bzikarsky/php-driver | ext/util/types.c | <filename>ext/util/types.c
/**
* Copyright 2015-2017 DataStax, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
jiantao88/shareMap | app/src/main/java/com/fenxiangditu/sharemap/ui/map/LocationActivity.java | package com.fenxiangditu.sharemap.ui.map;
import android.Manifest;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.prov... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.