repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
koji-m/airbyte | airbyte-integrations/connectors/destination-oracle/src/test-integration/java/io/airbyte/integrations/destination/oracle/OracleIntegrationTest.java | /*
* Copyright (c) 2021 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.integrations.destination.oracle;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import io.airbyte.commons.io.IOs;
import io.airbyte.commons.json.Jsons;
import io.airbyte.db.Datab... |
SamB/cerberus | tests/csmith/small_int_arith/csmith_957.c | <filename>tests/csmith/small_int_arith/csmith_957.c
// Options: --no-arrays --no-pointers --no-structs --no-unions --argc --no-bitfields --checksum --comma-operators --compound-assignment --concise --consts --divs --embedded-assigns --pre-incr-operator --pre-decr-operator --post-incr-operator --post-decr-operator --u... |
fioresoft/NO5 | SimpleInputDlg.h | // SimpleInputDlg.h: interface for the CSimpleInputDlg class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SIMPLEINPUTDLG_H__85DF3529_CF6E_4523_A991_D26E351E6D8F__INCLUDED_)
#define AFX_SIMPLEINPUTDLG_H__85DF3529_CF6E_4523_A991_D26E351E6D8F__INCLUDED_
#if _MSC_VER ... |
UXPin/mineral-ui | src/website/app/demos/Dropdown/examples/scrolling.js | /* @flow */
import Button from '../../../../../library/Button';
import Dropdown from '../../../../../library/Dropdown';
import ScrollParent from '../../Popover/components/ScrollBox';
import data from '../../Menu/components/menuData';
export default {
id: 'scrolling-container',
title: 'Scrolling container',
descr... |
qwersm/ruoyi | ruoyi-knowledge/src/main/java/com/ruoyi/knowledge/service/impl/CmsCategoryServiceImpl.java | package com.ruoyi.knowledge.service.impl;
import java.util.ArrayList;
import java.util.List;
import com.ruoyi.common.constant.UserConstants;
import com.ruoyi.common.core.domain.Ztree;
import com.ruoyi.common.core.domain.ZtreeExt;
import com.ruoyi.common.exception.BusinessException;
import com.ruoyi.common.utils.Strin... |
penehyba/arquillian-cube | kubernetes/kubernetes/src/main/java/org/arquillian/cube/kubernetes/api/AnnotationProvider.java | <reponame>penehyba/arquillian-cube<filename>kubernetes/kubernetes/src/main/java/org/arquillian/cube/kubernetes/api/AnnotationProvider.java
package org.arquillian.cube.kubernetes.api;
import java.util.Map;
public interface AnnotationProvider extends WithToImmutable<AnnotationProvider> {
String SESSION_ID = "arquil... |
Kapersyx/sync-endpoint | src/main/java/org/opendatakit/aggregate/odktables/rest/entity/PropertyEntryXmlList.java | /*
* Copyright (C) 2014 University of Washington
*
* 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 ... |
vicpopov/omim | routing/geometry.cpp | <reponame>vicpopov/omim
#include "routing/geometry.hpp"
#include "routing/city_roads.hpp"
#include "routing/maxspeeds.hpp"
#include "routing/routing_exceptions.hpp"
#include "routing/routing_options.hpp"
#include "indexer/altitude_loader.hpp"
#include "indexer/data_source.hpp"
#include "indexer/ftypes_matcher.hpp"
#... |
liziGaoLi/MobileOfficePad | app/src/main/java/com/mobilepolice/office/webservice/ItemAdapter.java | <filename>app/src/main/java/com/mobilepolice/office/webservice/ItemAdapter.java
package com.mobilepolice.office.webservice;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
i... |
cj-chung/alcor | services/data_plane_manager/src/test/java/com/futurewei/alcor/dataplane/entity/UTPortWithSubnetAndIPMapping.java | /*
MIT License
Copyright(c) 2020 Futurewei Cloud
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... |
jahanzebbaber/hazelcast-jet | hazelcast-jet-core/src/main/java/com/hazelcast/jet/datamodel/Tag.java | /*
* Copyright (c) 2008-2019, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... |
bieganski/gitlab-runner | vendor/github.com/saracen/fastzip/extractor_unix.go | // +build !windows
package fastzip
import (
"os"
"runtime"
"time"
"golang.org/x/sys/unix"
)
func lchmod(name string, mode os.FileMode) error {
var flags int
if runtime.GOOS == "linux" {
if mode&os.ModeSymlink != 0 {
return nil
}
} else {
flags = unix.AT_SYMLINK_NOFOLLOW
}
err := unix.Fchmodat(uni... |
Kardzhaliyski/Java-OOP | 2.InheritanceExercise/src/animals/Animal.java | <filename>2.InheritanceExercise/src/animals/Animal.java<gh_stars>0
package animals;
public class Animal {
private String name;
private int age;
private String gender;
public Animal(String name, int age, String gender) {
this.name = name;
this.age = age;
this.gender = gender;
... |
amarzavery/cool_sdk | lib/services/resourceManagement/lib/resource/models/basicDependency.js | <filename>lib/services/resourceManagement/lib/resource/models/basicDependency.js
'use strict';
var util = require('util');
var models = require('./index');
/**
* @class
* Initializes a new instance of the BasicDependency class.
* @constructor
*/
function BasicDependency() { }
/**
* Validate the payload against... |
bounoable/cqrs-es | eventbus/channel/eventbus.go | <gh_stars>0
package channel
import (
"context"
"sync"
"github.com/bounoable/cqrs-es"
)
// Option ...
type Option func(*config)
type eventBus struct {
cfg config
events chan cqrs.Event
mux sync.RWMutex
subscribers map[cqrs.EventType][]chan cqrs.Event
}
type config struct {
BufferSize in... |
odrevet/SimpleGameLayer | src/image.c | <filename>src/image.c
#include "image.h"
void image_load(image *p_image, const char *full_path, SDL_Renderer *renderer)
{
p_image->p_texture = IMG_LoadTexture(renderer, full_path);
SDL_QueryTexture(p_image->p_texture, NULL, NULL, &p_image->width, &p_image->height);
p_image->flip = false;
}
bool image_draw(image... |
KDr2/v8 | test/mjsunit/regress/regress-crbug-980529.js | <reponame>KDr2/v8<gh_stars>0
// Copyright 2019 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --turbofan --no-always-turbofan
const a = {toString: () => {
console.log("print argumen... |
onezens/QQTweak | qqtw/qqheaders7.2/QQStoryShareToGroupCell.h | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "UITableViewCell.h"
@class QQAvatarView, QQStoryShareToGroupCellModel, UIButton, UILabel, UIView;
@interface QQStoryShareToGroupCell : UITableViewCell
{
QQStoryShareToGroupC... |
wvanheemstra/core | public/app/service/asset/mock/Service.js | /**
* The mock asset service object.
*/
Ext.define("Core.service.asset.mock.Service", {
extend: "FlowMVC.mvc.service.mock.AbstractServiceMock",
inject: [
"logger"
],
/**
* The mock service call.
*/
createAsset: function(asset) {
this.logger.debug("createAsset");
... |
mkesmetzis/starter-kit-spring-maven | src/main/java/com/client/core/base/tools/propertyeditors/MyCustomNumberEditor.java | package com.client.core.base.tools.propertyeditors;
import org.apache.commons.lang3.math.NumberUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.propertyeditors.CustomNumberEditor;
import org.springframework.util.StringUtils;
public class MyCu... |
gesslar/shadowgate | d/avatars/myrkul/zombieshirt.c | <reponame>gesslar/shadowgate<filename>d/avatars/myrkul/zombieshirt.c<gh_stars>10-100
#include <std.h>
inherit "/d/common/obj/clothing/shirt";
void create(){
::create();
set_name("%^RESET%^%^CYAN%^z%^GREEN%^o%^CYAN%^m%^GREEN%^b%^CYAN%^i%^GREEN%^e %^YELLOW%^s%^RESET%^%^ORANGE%^h%^YELLOW%^r%^RESET%^%^ORANGE%^e%^YELLOW%... |
EchoDao-BSC/badger-system | assistant/rewards/RewardsLogger.py | <filename>assistant/rewards/RewardsLogger.py
from tabulate import tabulate
from rich.console import Console
import json
console = Console()
class RewardsLogger:
def __init__(self):
self._distributionInfo = {}
self._unlockSchedules = {}
self._userData = {}
self._epochData = {}
de... |
kngeno/Arbiter-Android | Arbiter-Android/assets/www/js/Arbiter/DatabaseHelpers/ProjectDbHelper.js | Arbiter.ProjectDbHelper = (function(){
var PROJECT_DATABASE_NAME = "projectdb";
var projectDb = null;
var manager = null;
return {
getProjectDatabase: function(){
if(projectDb === null){
projectDb = sqlitePlugin.openDatabase(PROJECT_DATABASE_NAME);
Arbiter.SQLiteTransactionManager.push(proje... |
mladencekic/Social_Backend_RubyonRails | facet/spec/support/test_classes/bottle.rb | # frozen_string_literal: true
class Bottle < ActiveRecord::Base
self.per_page = 2
scope :broken, -> { where(broken: true) }
scope :unbroken, -> { where(broken: false) }
scope :newest_first, -> { order(updated_at: :desc) }
end
|
grame-cncm/inscoredoc | docs/BNF/13-mapping/scoreMap.js | ComplexDiagram(
Sequence ('map', Choice (0, 'page', 'system', 'systemflat', 'staffn', 'voicen'))
).addTo()
|
crsiebler/my-site | assets/components/PageLayout/Sections/AvatarSection.js | <gh_stars>0
import React from "react";
import Avatar from "@material-ui/core/Avatar";
import Typography from "@material-ui/core/Typography";
import Grid from "@material-ui/core/Grid";
import IconButton from "@material-ui/core/IconButton";
import avatar from "images/avatar.webp";
import { menuItems } from "constants/nav... |
dianziguan1234/CustomCategory | PageViewController/PagerView.h | <filename>PageViewController/PagerView.h<gh_stars>1-10
//
// PagerView.h
// PagerViewController
//
// Created by 曾涛 on 2017/6/12.
// Copyright © 2017年 曾涛. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PagerView : UIView
@property (strong, nonatomic) UIViewController *viewController;
/**
滑块按钮
@... |
ragupta-git/ucscentralsdk | ucscentralsdk/mometa/nfs/NfsMountDef.py | <filename>ucscentralsdk/mometa/nfs/NfsMountDef.py<gh_stars>0
"""This module contains the general information for NfsMountDef ManagedObject."""
from ...ucscentralmo import ManagedObject
from ...ucscentralcoremeta import UcsCentralVersion, MoPropertyMeta, MoMeta
from ...ucscentralmeta import VersionMeta
class NfsMount... |
angelgomezsa/Cplusplus | Consolidation 3/11 - P63370 - Jutge (2)/ex11.cc | <filename>Consolidation 3/11 - P63370 - Jutge (2)/ex11.cc
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
struct Enviament {
string dni;
string exer;
int temps;
string res;
};
typedef vector<Enviament> Historia;
bool compara(Enviament e1,Enviament e2) {
return e... |
jgnagy/moneta | spec/moneta/proxies/transformer/transformer_bert_spec.rb | <reponame>jgnagy/moneta<gh_stars>100-1000
describe 'transformer_bert', unsupported: defined?(JRUBY_VERSION), proxy: :Transformer do
moneta_build do
Moneta.build do
use :Transformer, key: :bert, value: :bert
adapter :Memory
end
end
moneta_loader do |value|
::BERT.decode(value)
end
mon... |
WolfieWerewolf/intellij-haxe | src/common/com/intellij/plugins/haxe/model/type/HaxeTypeCompatible.java | <filename>src/common/com/intellij/plugins/haxe/model/type/HaxeTypeCompatible.java<gh_stars>10-100
/*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2014-2015 AS3Boyan
* Copyright 2014-2014 <NAME>
* Copyright 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use thi... |
ppartarr/azure-sdk-for-java | sdk/network/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/network/v2020_06_01/ConnectionMonitorEndpoint.java | <gh_stars>1-10
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.network.v2020_06_01;
import com.f... |
s-stark/aos-Video | src/leanback/java/com/archos/mediacenter/video/leanback/network/NetworkRootActivity.java | // Copyright 2017 <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 of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writ... |
unascribed/NotEnoughCreativity | src/main/java/com/unascribed/notenoughcreativity/mixin/MixinEntity.java | package com.unascribed.notenoughcreativity.mixin;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import org.spo... |
cm-heclouds/onenet-studio-api-java-sdk | src/main/java/com/github/cm/heclouds/onenet/studio/api/entity/common/Event.java | package com.github.cm.heclouds.onenet.studio.api.entity.common;
import com.alibaba.fastjson.annotation.JSONField;
import com.github.cm.heclouds.onenet.studio.api.entity.enums.FunctionEventType;
import com.github.cm.heclouds.onenet.studio.api.json.ValueHolderDeserializer;
import com.github.cm.heclouds.onenet.studio.api... |
mark-marshall/twilio-flex-interactive-webchat | flex-webchat-interactive/node_modules/@material-ui/icons/es/SatelliteOutlined.js | <gh_stars>1-10
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(React.createElement(React.Fragment, null, React.createElement("path", {
fill: "none",
d: "M0 0h24v24H0V0z"
}), React.createElement("path", {
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1... |
artivis/micro_ros_raspberrypi_pico_sdk | uros_ws/firmware/build/include/nav_msgs/msg/detail/path__functions.c | // generated from rosidl_generator_c/resource/idl__functions.c.em
// with input from nav_msgs:msg/Path.idl
// generated code does not contain a copyright notice
#include "nav_msgs/msg/detail/path__functions.h"
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
// Include directives for ... |
stsiwo/e-commerce-starter-kits | api/src/main/java/com/iwaodev/application/mapper/CompanyMapper.java | package com.iwaodev.application.mapper;
import com.iwaodev.application.dto.company.CompanyDTO;
import com.iwaodev.application.dto.company.PublicCompanyDTO;
import com.iwaodev.infrastructure.model.Company;
import com.iwaodev.ui.criteria.user.UserCompanyCriteria;
import org.mapstruct.Mapper;
import org.mapstruct.Mappin... |
altshiftcreative/checkout-sdk-java | src/main/java/com/checkout/workflows/four/events/Event.java | <reponame>altshiftcreative/checkout-sdk-java
package com.checkout.workflows.four.events;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
@Data
public final class Event {
private String id;
@SerializedName("display_name")
private String displayName;
private String description;... |
tkashi-github/IMXRT1060-EVK | IMXRT1060-EVK_APL/source/UserDriver/SPIFlash/SPIFlash.c | <filename>IMXRT1060-EVK_APL/source/UserDriver/SPIFlash/SPIFlash.c
/*
* Copyright (c) 2016, Freescale Semiconductor, Inc.
* All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "SPIFlash/SPIFlash.h"
#include "board.h"
#include "mimiclib.h"
#include "pin_mux.h"
#include "board.h"
#includ... |
davinder2385/iot-edge-samples | IoT_Edge/persistence-service-ref-app/app/src/main/java/com/sap/persistenceservice/refapp/iot/model/SensorType.java | package com.sap.persistenceservice.refapp.iot.model;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@JsonI... |
mehrabik/az | modules/entities/dataset/filtered_dataset.py | <gh_stars>10-100
import logging
from modules.entities.entity import Entity
from modules.services.apk_evaluator import ApkEvaluator
class FilteredDataset(Entity):
def __init__(self, source=None, criteria=None):
self.source = source
self.criteria = criteria
self.apk_evaluator = ApkEvaluator... |
mczenko/agile-toolbox | AgileToolbox/Questions/TableViewCells/EPAttributedTextTableViewCell.h | <filename>AgileToolbox/Questions/TableViewCells/EPAttributedTextTableViewCell.h<gh_stars>0
//
// EPAttributedTextTableViewCell.h
// AgileToolbox
//
// Created by <NAME> on 13/02/14.
//
//
#import <UIKit/UIKit.h>
#import "Question.h"
@interface EPAttributedTextTableViewCell : UITableViewCell
- (id)initWithTextView... |
keilaoko/nuclide | src/menu-fn/m_viewreadme.c | /*
* Copyright (c) 2016-2020 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR ... |
shisheng-1/tapestry-5 | tapestry-http/src/main/java/org/apache/tapestry5/http/Link.java | // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed unde... |
youssriaboelseod/pyerp | apps/base/urls/plugin.py | <filename>apps/base/urls/plugin.py
"""uRLs para gestionar los plugin
"""
# Django Library
from django.urls import path
# Localfolder Library
from ..views.plugin import (
PluginInstall, PluginListView, PluginUninstall, PluginUpdate)
app_name = 'PyPlugin'
urlpatterns = [
path('', PluginListView.as_view(), name... |
cyberstormdotmu/azure-tools-for-java | Utils/hdinsight-node-common/src/com/microsoft/azure/hdinsight/spark/jobs/framework/IRequest.java | <gh_stars>100-1000
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
package com.microsoft.azure.hdinsight.spark.jobs.framework;
import com.microsoft.azure.hdinsight.sdk.cluster.IClusterDetail;
import com... |
CamW/servicetalk | servicetalk-http-security-jersey/src/main/java/io/servicetalk/http/security/auth/basic/jersey/AbstractBasicAuthSecurityContextFilter.java | /*
* Copyright © 2019 Apple Inc. and the ServiceTalk project authors
*
* 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 requi... |
sapnaBaniya102/vitesse1 | node_modules/.pnpm/unplugin-icons@0.12.18_ffe6ba4676d23562dbecd516d3abe553/node_modules/unplugin-icons/dist/loaders.js | <reponame>sapnaBaniya102/vitesse1
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkWOL7QKXNjs = require('./chunk-WOL7QKXN.js');
require('./chunk-IJYRCWEX.js');
// src/loaders.ts
var _fs = require('fs');
function FileSystemIconLoader(dir) {
return (name) => {
const pathes = [
... |
djodjoni/jus | jus-java/src/main/java/io/apptik/comm/jus/converter/ContentTypeBasedRespConverter.java | /*
* Copyright (C) 2015 AppTik Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
npocmaka/Windows-Server-2003 | public/internal/ds/inc/samrpc.h |
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 6.00.0361 */
/* Compiler settings for samrpc.idl, samsrv.acf:
Oicf, W1, Zp8, env=Win32 (32b run)
protocol : dce , ms_ext, c_ext, oldnames, robust
error checks: allocation ref b... |
matija94/show-me-the-code | learning_django/snippets/views.py | from django.contrib.auth.models import User
# Create your views here.
from rest_framework import permissions, renderers
from rest_framework.reverse import reverse
from rest_framework.decorators import api_view
from rest_framework.generics import RetrieveUpdateDestroyAPIView, ListCreateAPIView, ListAPIView, RetrieveAPI... |
Yannic/chromium | content/browser/devtools/protocol/io_handler.h | // Copyright 2015 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.
#ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_IO_HANDLER_H_
#define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_IO_HANDLER_H_
#include "base/macros.h"
#include "base/m... |
rsearls/jaxb-ri | jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/generator/bean/field/Messages.java | /*
* Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... |
cryptowilliam/goutil | interpreter/engine_go_yaegi.go | <reponame>cryptowilliam/goutil<gh_stars>1-10
package interpreter
import (
"github.com/cryptowilliam/goutil/container/gany"
"github.com/traefik/yaegi/interp"
"github.com/traefik/yaegi/stdlib"
"reflect"
)
type (
vmYaegj struct {
vmYaegi *interp.Interpreter
customLib map[string]map[string]reflect.Value
}
)
fu... |
Want100Cookies/GradeMaster | src/main/resources/public/app/services/notification.service.js | <filename>src/main/resources/public/app/services/notification.service.js
app.factory('NotificationService', function (API) {
this.getNotifications = () => {
return API.get({
path: `notifications`
});
};
this.readNotification = (notificationId) => {
return API.patch({
... |
yaoyue123/WHU_SummerTraining | p1/snake_master/src/main.c | <reponame>yaoyue123/WHU_SummerTraining
#include "ai.h"
#include "file.h"
#include "game.h"
#include "view.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
int main(int argc, char *argv[]) {
srand(time(0));
if (argc != 2) {
printf("Usage: ./main file_name\n");
exit(-... |
ApacheSourceCode/kylin | engine-spark/src/test/java/org/apache/kylin/engine/spark/util/KyroMappingGenerator.java | <reponame>ApacheSourceCode/kylin
/*
* 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, Ver... |
pudongping/gin-biz-web-api | internal/controller/example_ctrl/upload_controller.go | package example_ctrl
import (
"github.com/gin-gonic/gin"
"gin-biz-web-api/pkg/errcode"
"gin-biz-web-api/pkg/responses"
"gin-biz-web-api/pkg/upload"
)
type UploadController struct {
}
// UploadFile 上传文件
// curl --location --request POST 'localhost:3000/api/example/upload-file' \
// --form 'file=@"/Users/pudongpi... |
woonsan/incubator-s2graph | s2core/src/test/scala/org/apache/s2graph/core/benchmark/OrderingUtilBenchmarkSpec.scala | <filename>s2core/src/test/scala/org/apache/s2graph/core/benchmark/OrderingUtilBenchmarkSpec.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. T... |
ckamtsikis/cmssw | RecoTracker/TkHitPairs/test/testCompatKernel.cc | #include "RecoTracker/TkTrackingRegions/interface/HitRZCompatibility.h"
#include "RecoTracker/TkTrackingRegions/interface/HitEtaCheck.h"
#include "RecoTracker/TkTrackingRegions/interface/HitRCheck.h"
#include "RecoTracker/TkTrackingRegions/interface/HitZCheck.h"
#include "RecoTracker/TkHitPairs/interface/RecHitsSorted... |
SuperRun/spokenman | ota-web/src/main/java/com/zust/itee/exam/service/exam/member/finish/ExamMemberFinishService.java | <filename>ota-web/src/main/java/com/zust/itee/exam/service/exam/member/finish/ExamMemberFinishService.java
package com.zust.itee.exam.service.exam.member.finish;
import com.zust.itee.exam.dto.exam.member.DriverInfoInExamManagement;
import com.zust.itee.exam.dto.exam.member.ExamFinishInfo;
import com.zust.itee.exam.ent... |
nursix/DRKCM | languages/sr.py | <filename>languages/sr.py
{
'City': 'Град',
'District': 'Округ',
'Municipality / City': 'Општина / Град',
'Municipality': 'Општина',
'Serbian': 'Српски',
}
|
AjayNandoriya/gitlabhq | spec/frontend/issues_list/components/issue_card_time_info_spec.js | <reponame>AjayNandoriya/gitlabhq<gh_stars>1-10
import { GlIcon, GlLink } from '@gitlab/ui';
import { shallowMount } from '@vue/test-utils';
import { useFakeDate } from 'helpers/fake_date';
import IssueCardTimeInfo from '~/issues_list/components/issue_card_time_info.vue';
describe('IssuesListApp component', () => {
u... |
phlegmaticprogrammer/Babel-17 | Babel17_Netbeans_Module/src/com/babel17/netbeans/Babel17ParserFactory.java | package com.babel17.netbeans;
import org.netbeans.modules.parsing.spi.*;
import org.netbeans.modules.parsing.api.*;
import java.util.Collection;
public class Babel17ParserFactory extends ParserFactory {
@Override
public Parser createParser (Collection<Snapshot> snapshots) {
return new Babel17Parser (... |
Lightbass/job4j | chapter_001/src/test/java/ru/job4j/condition/PointTest.java | package ru.job4j.condition;
import org.junit.Test;
import static org.hamcrest.number.IsCloseTo.closeTo;
import static org.junit.Assert.assertThat;
/**
* JUnit класс для теста класса Point.
* @author <NAME>
* @since 30.07.18
* @version 0.1
*/
public class PointTest {
/**
* Тест метода distanceTo().
... |
timedata-org/old-timedata_visualizer | JuceLibraryCode/modules/juce_gui_basics/filebrowser/juce_ImagePreviewComponent.h | <gh_stars>10-100
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2015 - ROLI Ltd.
Permission is granted to use this software under the terms of either:
a) the GPL v2 (or any later version)
b) the Affero GPL... |
wynnw/django-mako-plus | django_mako_plus/templatetags/__init__.py | <filename>django_mako_plus/templatetags/__init__.py
# This package contains DJANGO tags in the normal Django style
# Don't put regular DMP or Mako things in it.
|
14ms/Minecraft-Disclosed-Source-Modifications | Astomero/net/minecraft/world/biome/BiomeDecorator.java | <filename>Astomero/net/minecraft/world/biome/BiomeDecorator.java
package net.minecraft.world.biome;
import net.minecraft.world.*;
import java.util.*;
import net.minecraft.util.*;
import net.minecraft.init.*;
import net.minecraft.world.gen.*;
import net.minecraft.block.*;
import net.minecraft.block.properties.*;
import... |
hanisaf/mist4600-spring2019 | ArrayExample/src/Example2.java | <reponame>hanisaf/mist4600-spring2019
public class Example2 {
public static void main(String[] args) {
Restaurant favLunchPlace = new Restaurant();
Restaurant favDinnerPlace = new Restaurant();
favLunchPlace.setName("Central Deli");
favLunchPlace.setRating(4);
favDinnerPlace.setName("Friends Cafe");
fa... |
1160300922/incubator-iotdb | server/src/main/java/org/apache/iotdb/db/query/dataset/AggreResultDataPointReader.java | <gh_stars>1-10
/**
* 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 "Licen... |
yanpingli/btm | btm/src/test/java/bitronix/tm/mock/JdbcSharedConnectionTest.java | <gh_stars>0
/*
* Copyright (C) 2006-2013 Bitronix Software (http://www.bitronix.be)
*
* 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
*
*... |
doumKim/surf-client-repo | src/constants/formStyles.js | <reponame>doumKim/surf-client-repo
import styled from "@emotion/styled";
import { keyframes } from "@emotion/core";
const slideUp = keyframes`
from {
transform: translateY(200px);
}
to {
transform: translateY(0px);
}
`;
export const Wrapper = styled.div`
position: relative;
margin: 0 auto;
backg... |
bieremayi/carbondata | core/src/main/java/org/apache/carbondata/core/scan/collector/impl/RestructureBasedDictionaryResultCollector.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
helios-language/helios | docs/search/classes_5.js | <gh_stars>1-10
var searchData=
[
['parser_5ferror',['parser_error',['../structparser__error.html',1,'']]],
['parser_5ft',['Parser_t',['../structParser__t.html',1,'']]]
];
|
lechium/iOS1351Headers | usr/lib/libcoreroutine.dylib/RTDevice.h | <reponame>lechium/iOS1351Headers
/*
* This header is generated by classdump-dyld 1.5
* on Wednesday, October 27, 2021 at 3:17:53 PM Mountain Standard Time
* Operating System: Version 13.5.1 (Build 17F80)
* Image Source: /usr/lib... |
cpetry/AntSim | js/controller.js | <gh_stars>10-100
/**
* The Controller enables the user to program his/hers ants behaviour.<br>
* It has limited access to some of the ants current values.<br>
* The action for the upcoming iteration is to be written by the user.<br>
* @module Controller
*/
define(function() {
return class Controller {
/**
*... |
paullewallencom/java-978-1-7895-3476-4 | _/Section-3/config-service/src/main/java/cloud/nativ/javaee/JsonObjectConverter.java | <reponame>paullewallencom/java-978-1-7895-3476-4
package cloud.nativ.javaee;
import org.eclipse.microprofile.config.spi.Converter;
import javax.json.Json;
import javax.json.JsonException;
import javax.json.JsonObject;
import java.io.StringReader;
/**
* A MicroProfile Config converter for {@link JsonObject}.
*/
pub... |
MicrochipTech/aws-iot-winc1500-secure-wifi-board-included-source-files | mcu-firmware/saml21g18b_sensor_board_demo/src/cryptoauthlib/docs/html/search/enums_1.js | var searchData=
[
['i2c_5fread_5fwrite_5fflag',['i2c_read_write_flag',['../a00429.html#gaa3e90779b37cd1b3a4d32321d9d8b772',1,'hal_i2c_bitbang.h']]]
];
|
enterstudio/mobile-center-cli | src/util/apis/generated/models/testCloudStartTestRunOptions.js | /*
* Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* @class
* Initializes a new instance of the TestCloudStartTestRunOptions class.
* @constructor
* @summary TestCloudStartTestRunOptio... |
svenpopping/acfl-replication-package | data/problems/Math-40/frame-5/tests-pass-evo-+/org/apache/commons/math/analysis/solvers/BracketingNthOrderBrentSolver_ESTest_EvoSuite.java | /*
* This file was automatically generated by EvoSuite
* Mon Feb 24 16:38:44 GMT 2020
*/
package org.apache.commons.math.analysis.solvers;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.apache.commons.math.analysis.UnivariateFunction;
import ... |
jszip/jszip-maven-plugin | src/main/java/org/jszip/pseudo/io/NotExistingPseudoFile.java | <gh_stars>1-10
/*
* Copyright 2011-2012 <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 of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
bubbledoodle/EL-GY-6183-Digital-Signal-Processing-LAB | DSP Lab 6/Lab_6_Shuaiyu_Liang_sl5352/Lab6_Sec1_Ex2_sl5352.py | # plot_micinput_spectrum.py
import pyaudio
import struct
import numpy as np
from matplotlib import pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
pp = PdfPages('logarithmatic_spectrum.pdf')
plt.ion() # Turn on interactive mode so plot gets updated
WIDTH = 2 # bytes per sample
... |
afloarea/vertx-json-schema | src/test/java/io/vertx/json/schema/asserts/SchemaRouterAssert.java | /*
* Copyright (c) 2011-2020 Contributors to the Eclipse Foundation
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
* which is available at https:... |
dvreeze/tqa2 | jvm/src/test/scala/eu/cdevreeze/tqa2/locfreetaxonomy/TestResourceUtil.scala | <reponame>dvreeze/tqa2<filename>jvm/src/test/scala/eu/cdevreeze/tqa2/locfreetaxonomy/TestResourceUtil.scala<gh_stars>0
/*
* Copyright 2019-2019 <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 of th... |
chuckwondo/iter-tools | src/impls/$includes-seq/async-includes-seq.js | /**
* @generated-from ./$includes-seq.js
* This file is autogenerated from a template. Please do not edit it directly.
* To rebuild it from its template use the command
* > npm run generate
* More information can be found in CONTRIBUTING.md
*/
import { asyncIterableCurry, asyncEnsureIterable } from '../../intern... |
KoizumiSinya/DemoProject | Widgets/SlidingMenuDelete/src/main/java/sap_mobile_newapi/demo_slidingmenudelete/SecondActivity.java | package sap_mobile_newapi.demo_slidingmenudelete;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;
import sap_mobile_newapi.demo_slidingmenudelete.widget.MySlidin... |
todotresde/microservices | server-app2/src/main/java/com/todotresde/myapp/app2/repository/package-info.java | /**
* Spring Data JPA repositories.
*/
package com.todotresde.myapp.app2.repository;
|
rnedit/workflow | src/main/java/kz/spring/workflow/service/DAL/UserService.java | <gh_stars>0
package kz.spring.workflow.service.DAL;
import kz.spring.workflow.domain.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.Optional;
import java.util.Set;
public interface UserService {
Optional<User> findByUsername(String username);
... |
rui278/rui278.github.io | hevc/loopfilter_8h.js | var loopfilter_8h =
[
[ "x265_saoCuOrgE0_sse4", "loopfilter_8h.html#ac15eed7eebf32159c0a6d8a166ee2ab9", null ]
]; |
warelab/sciapps | agavedancer/public/javascripts/components/appsItem.js | <reponame>warelab/sciapps
'use strict';
import React from 'react';
import AppsActions from '../actions/appsActions.js';
import DsActions from '../actions/dsActions.js';
import {ListGroupItem} from 'react-bootstrap';
const AppsItem=React.createClass({
/*
### Description
loading apps form in main panel
*/
sho... |
s0/hid_api | api/services/GSSSyncService.js | const fs = require('fs');
const { OAuth2Client } = require('google-auth-library');
const { google } = require('googleapis');
const Boom = require('@hapi/boom');
const GSSSync = require('../models/GSSSync');
const List = require('../models/List');
const User = require('../models/User');
const config = require('../../con... |
jikanghz/jianli | code/server/sys/src/main/java/com/jianli/sys/workflow/dao/WorkflowActivityDao.java | package com.jianli.sys.workflow.dao;
import com.jianli.sys.workflow.domain.WorkflowActivity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;
import java.util.LinkedHashMap;
import java.util.Li... |
ByteHamster/silt | fawnds/fawnds_partition.cc | /* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#include "fawnds_partition.h"
#include "fawnds_factory.h"
#include "debug.h"
#include "bit_access.hpp"
#include <sstream>
namespace fawn {
FawnDS_Partition::FawnDS_Partition()
{
}
FawnDS_Partition::~FawnDS_Partition()
{
Clo... |
mankeyl/elasticsearch | plugins/analysis-icu/src/main/java/org/elasticsearch/plugin/analysis/icu/IcuFoldingTokenFilterFactory.java | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... |
kenichiro-kimura/diagrams | diagrams/openstack/optimization.py | <reponame>kenichiro-kimura/diagrams
# This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _OpenStack
class _Optimization(_OpenStack):
_type = "optimization"
_icon_dir = "resources/openstack/optimization"
class Congress(_Optimization):
_icon = "congress.png"
class Rally(_O... |
mkimartinez/Lyfey | init_db_data.py | <filename>init_db_data.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Slackers.settings')
import django
django.setup()
import json
import argparse
import random
import datetime
import codecs
import os.path as op
from library.models import Book, Reader, B... |
gabrielrussoc/devbox | devbox/common/src/Cli.scala | package devbox.common
import scala.annotation.tailrec
object Cli{
/**
* Additional [[scopt.Read]] instance to teach it how to read Ammonite paths
*/
implicit def pathScoptRead: scopt.Read[os.Path] = scopt.Read.stringRead.map(os.Path(_, os.pwd))
case class Arg[T, V](name: String,
... |
so931/poseidonos | test/unit-tests/journal_manager/replay/replay_volume_deletion_mock.h | <filename>test/unit-tests/journal_manager/replay/replay_volume_deletion_mock.h
#include <gmock/gmock.h>
#include <string>
#include <list>
#include <vector>
#include "src/journal_manager/replay/replay_volume_deletion.h"
namespace pos
{
class MockReplayVolumeDeletion : public ReplayVolumeDeletion
{
public:
using Rep... |
lrog/gate-nlp-service | service/src/test/java/nlp/service/controller/ServiceControllerTests.java | <gh_stars>0
package nlp.service.controller;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONObject;
import org.junit.Test;
import org.springfra... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.