repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
aliyun/alibabacloud-maxcompute-tool-migrate | mma-server/src/main/java/com/aliyun/odps/mma/server/task/HiveToMcTableDataTransmissionTask.java | /*
* Copyright 1999-2021 Alibaba Group Holding Ltd.
*
* 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 appl... |
mindcloud69/Sakura_mod | src/main/java/cn/mcmod/sakura/client/model/ModelSamuraiArmors2.java | package cn.mcmod.sakura.client.model;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.inventory.EntityEquipmentSlot;
import org.lwjgl.opengl.GL11;
public class ModelSamuraiArmors2
extends ModelCustomArmor
{
ModelRenderer Helmet;
ModelRenderer HelmetR;
... |
xuxiannian/knet-modules | knet-moudles-aipage/src/main/java/com/baidubce/services/aipage/model/SiteRenewItemModel.java | package com.baidubce.services.aipage.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.util.List;
@Data
@AllArgsConstructor
public class SiteRenewItemModel {
private SiteRenewItemConfigModel config;
private List<PaymentMethodModel> paymentMethod;
public SiteRenewItemModel(String ... |
suluner/tencentcloud-sdk-cpp | tcss/include/tencentcloud/tcss/v20201101/model/DescribeAssetImageScanStatusResponse.h | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
joevandyk/monkeycharger | vendor/plugins/active_merchant/test/remote_tests/remote_linkpoint_test.rb | #
# In order for this test to pass, a valid store number and PEM file
# are required. Unfortunately, with LinkPoint YOU CAN'T JUST USE ANY
# OLD STORE NUMBER. Also, you can't just generate your own PEM file.
# You'll need to use a special PEM file provided by LinkPoint.
#
# Go to http://www.linkpoint.com/support/su... |
aman1309/rest.li | r2-filter-compression/src/main/java/com/linkedin/r2/filter/compression/GzipCompressor.java | /*
Copyright (c) 2013 LinkedIn Corp.
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... |
upframe/shopy | cmd/shopy/config.go | package main
import (
"encoding/json"
"os"
)
type config struct {
Development bool
Key1 string
Key2 string
Domain string
Errors string
Port int
Scheme string
Assets string
InviteOnly bool
DefaultInvites int
Database struct {
Use... |
erick-rivas/reactjs-web-template | src/seed/examples/views/scores/Form.js | /*
__Seed builder__
(Read_only) Example view
Be careful copying content
*/
import React from "react";
import PropTypes from "prop-types";
import { Formik, Field, Form } from "formik";
import { MultiField, FileField } from "seed/helpers";
const ScoreForm = ({ score= {}, players= [], matches= [], onSubmit, error })... |
Crossroads-Development/Crossroads | src/main/java/com/Da_Technomancer/crossroads/items/itemSets/OreProfileItem.java | <filename>src/main/java/com/Da_Technomancer/crossroads/items/itemSets/OreProfileItem.java
package com.Da_Technomancer.crossroads.items.itemSets;
import com.Da_Technomancer.crossroads.items.CRItems;
import net.minecraft.core.NonNullList;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.chat.Component;... |
sgholamian/log-aware-clone-detection | NLPCCd/Hive/1851_2.java | <gh_stars>0
//,temp,sample_3150.java,2,19,temp,sample_4077.java,2,19
//,3
public class xxx {
public void dummy_method(){
for (Map.Entry<Path, ArrayList<String>> e : pathToAliases) {
if (lDrvStat != null && lDrvStat.isAborted()) {
throw new IOException("Operation is Canceled.");
}
Path file = e.getKey();
List<String> al... |
mozsakalli/GamaVM | classpath/src/main/java/java/net/URL.java | <gh_stars>0
/*
* Copyright (C) 2019 Digitoy Games.
*
* 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 applicab... |
flo-l/systemds | src/main/java/org/apache/sysds/lops/compile/linearization/ILinearize.java | <gh_stars>100-1000
/*
* 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
... |
netfanely/cli | lib/dependencies.js | 'use strict';
let versionMap = require('./dependencies.json');
exports.getSupportedVersion = function(name) {
return versionMap[name] || 'latest';
};
|
Pandaaaa906/product_spider | product_spider/spiders/srinidhiindsynth_spider.py | import re
from scrapy import Request
from product_spider.items import RawData
from product_spider.utils.functions import strip
from product_spider.utils.spider_mixin import BaseSpider
# TODO extract info from text
class SrinidhiindSynthSpider(BaseSpider):
name = "srinidhiindsynth"
allowd_domains = ["srinidh... |
gmYuan/project | mini_react/src/router/react-router-dom/index.js | export * from '../react-router';
export { default as HashRouter} from './HashRouter'
export { default as BrowserRouter } from './BrowserRouter';
export {default as Link} from './Link';
export {default as NavLink} from './NavLink'; |
lubo-ivanov/SoftUniAdvanced | setsAndMaps/exercise/Task1.java | package javaAdvanced.setsAndMaps.exercise;
import java.util.LinkedHashSet;
import java.util.Scanner;
public class Task1 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int count = Integer.parseInt(scanner.nextLine());
LinkedHashSet<String> words = new L... |
SaltAPI/SaltAPI.github.io | Doxygen/html/search/functions_4.js | <reponame>SaltAPI/SaltAPI.github.io
var searchData=
[
['end',['end',['../class_h_t_t_p_1_1_processing_list.html#ae9e221da82b4aacf1b92f60c460a9c2b',1,'HTTP::ProcessingList']]]
];
|
MarlonDValencia/SistemaDeInformacionAcademica-DDD | notas/src/main/java/com/universidad/informacionacademica/domain/tutor/events/TesisCalificada.java | <reponame>MarlonDValencia/SistemaDeInformacionAcademica-DDD<gh_stars>0
package com.universidad.informacionacademica.domain.tutor.events;
import co.com.sofka.domain.generic.DomainEvent;
import com.universidad.informacionacademica.domain.tutor.TesisAsignada;
public class TesisCalificada extends DomainEvent {
protec... |
ArcheGraphics/Arche-cpp | vox.render/ui/widgets/visual/separator.h | // Copyright (c) 2022 <NAME>
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#ifndef separator_hpp
#define separator_hpp
#include "ui/widgets/widget.h"
namespace vox {
namespace ... |
GDVFox/dflow | lib/go-actionlib/input_test.go | <gh_stars>0
package actionlib
import (
"bytes"
"encoding/binary"
"testing"
"github.com/stretchr/testify/assert"
)
func TestReadMessage(t *testing.T) {
var buff bytes.Buffer
stdin = &buff
messages := [][]byte{
[]byte("Hello"),
[]byte("World"),
{0x1, 0x3, 0x3, 0x7},
[]byte("🍪𓅿"),
}
for _, msg := r... |
eternita/frontcache | frontcache-core/src/main/java/org/frontcache/hystrix/fr/FallbackResolverFactory.java | <gh_stars>1-10
/**
* Copyright 2017 Eternita 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... |
shuwenjin/dcwlt | dcwlt-common/dcwlt-common-pay/src/main/java/com/dcits/dcwlt/pay/api/domain/dcep/common/Amt.java | package com.dcits.dcwlt.pay.api.domain.dcep.common;
import com.alibaba.fastjson.annotation.JSONField;
import org.hibernate.validator.constraints.Length;
public class Amt {
@Length(max = 3)
private String ccy;
@Length(max = 18)
private String value;
@JSONField(name = "Ccy")
public String getC... |
dvirtz/conan-center-index | recipes/qwt/all/conanfile.py | <gh_stars>1-10
import os
from conans import ConanFile, tools
required_conan_version = ">=1.33.0"
class QwtConan(ConanFile):
name = "qwt"
license = "LGPL-2.1-or-later"
url = "https://github.com/conan-io/conan-center-index"
homepage = "https://qwt.sourceforge.io/"
topics = ("conan", "archive", "comp... |
ObjectivitySRC/PVGPlugins | Filters/SumBillboard/vtkSumBillboard.h | <reponame>ObjectivitySRC/PVGPlugins
#ifndef __vtkSumBillboard_h
#define __vtkSumBillboard_h
#include "vtkTableAlgorithm.h"
class VTK_EXPORT vtkSumBillboard : public vtkTableAlgorithm
{
public:
static vtkSumBillboard* New();
vtkTypeRevisionMacro(vtkSumBillboard, vtkTableAlgorithm);
void PrintSelf(ostre... |
eventstorm-projects/eventstorm | eventstorm-sql/src/test/java/eu/eventstorm/sql/builder/SelectBuilderFromSubSelectTest.java | package eu.eventstorm.sql.builder;
import static com.google.common.collect.ImmutableList.of;
import static eu.eventstorm.sql.dialect.Dialects.h2;
import static eu.eventstorm.sql.expression.AggregateFunctions.rowNumber;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.Mockito.when;... |
simonzcx/quinn-service-framework | quinn-service-biz/src/main/java/com/quinn/framework/configuration/JsonSerializerConfiguration.java | <filename>quinn-service-biz/src/main/java/com/quinn/framework/configuration/JsonSerializerConfiguration.java
package com.quinn.framework.configuration;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fast... |
fyndiq/fyndiq-ui | packages/fyndiq-ui-test/stories/component-message.js | <filename>packages/fyndiq-ui-test/stories/component-message.js
import React from 'react'
import { storiesOf } from '@storybook/react'
import Button, { Wrapper as ButtonWrapper } from 'fyndiq-component-button'
import { Message, Wrapper, addMessage } from 'fyndiq-component-message'
import { Error, Truck, Warning, Checkma... |
marcofavorito/agents-aea | packages/fetchai/protocols/http/message.py | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2021 fetchai
#
# 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
#
#... |
bhkjersten/autopsy | Core/src/org/sleuthkit/autopsy/coreutils/ModuleSettings.java | /*
* Autopsy Forensic Browser
*
* Copyright 2011 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* 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://ww... |
gracielundell/scienceBlog | tmp/babel-output_path-eHmlLazt.tmp/modules/liquid-fire/is-browser.js | export default isBrowser;
function isBrowser() {
return typeof window !== 'undefined' && window && typeof document !== 'undefined' && document;
} |
knightjdr/prohits-viz-analysis | pkg/stats/mean_test.go | <reponame>knightjdr/prohits-viz-analysis<gh_stars>1-10
package stats_test
import (
. "github.com/knightjdr/prohits-viz-analysis/pkg/stats"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("Mean string", func() {
It("Should return mean of a slice of strings", func() {
slice := []string{"7... |
leopardoooo/cambodia | boss-report/src/main/java/com/ycsoft/report/dao/config/RepTOsdSqlDao.java | <reponame>leopardoooo/cambodia
package com.ycsoft.report.dao.config;
import java.sql.PreparedStatement;
import org.springframework.stereotype.Component;
import com.ycsoft.beans.config.TOsdSql;
import com.ycsoft.commons.exception.ReportException;
import com.ycsoft.daos.abstracts.BaseEntityDao;
@Component
pu... |
5GinFIRE/eu.5ginfire.nbi.osm5java | src/main/java/osm5/ns/yang/nfvo/mano/types/rev170208/guest/epa/guest/epa/numa/policy/numa/aware/numa/node/policy/node/om/numa/type/PairedThreads.java | package osm5.ns.yang.nfvo.mano.types.rev170208.guest.epa.guest.epa.numa.policy.numa.aware.numa.node.policy.node.om.numa.type;
import javax.annotation.Nullable;
import org.opendaylight.yangtools.yang.binding.Augmentable;
import org.opendaylight.yangtools.yang.binding.DataObject;
import org.opendaylight.yangtools.yang.c... |
syin2/openthread | third_party/silabs/gecko_sdk_suite/v1.0/protocol/thread_2.2/app/util/bootload/tftp/tftp.c | // File: tftp.c
//
// Description: TFTP Bootloader headers and defines
//
// Copyright 2013 by Silicon Laboratories. All rights reserved. *80*
#include PLATFORM_HEADER
#include "stack/include/ember.h"
#include "stack/core/log.h"
#include "hal/hal.h"
#include "plugin/serial/serial.h"
#include "app/util/boot... |
reki2000/rekicc | test/062-void-return/test.c | void sub() {
return;
}
int main() {
sub();
}
|
Leafly-com/ad-hok-js | src/__tests__/addPropTypes.js | <filename>src/__tests__/addPropTypes.js
/* eslint-disable no-console */
import React from 'react'
import {render} from 'react-testing-library'
import 'jest-dom/extend-expect'
import PropTypes from 'prop-types'
import {addPropTypes, addProps, flowMax} from '..'
const Comp = flowMax(addPropTypes({a: PropTypes.number.is... |
babbel/aws-record-extensions | lib/aws-record-extensions/nested_documents/object_attr.rb | module AwsRecordExtensions
module NestedDocuments
module ObjectAttr
extend ActiveSupport::Concern
class_methods do
def object_attr(
name,
type_cast:,
# By default assume that type from type_cast has
# a pair of methods from_h/to_h:
serializer:... |
gonayl/Chaste | heart/src/odes/ionicmodels/noncardiac/CorriasBuistSMCModified.hpp | <gh_stars>0
/*
Copyright (c) 2005-2017, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and ... |
vietruyn/ShareFile | app/src/main/java/com/zjk/wifiproject/util/FileUtils.java | package com.zjk.wifiproject.util;
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.Environment;
import android.provider.MediaStore;
import com.orhanobut.logger.Logger;
import com.zjk.wifiproject.entity.FileStyle;
import c... |
Henrique-GM/Exercicios_de_Python | Pacote download/Exercicios/tuplas.py | lanche = ('Hambúrguer', 'Suco', 'Pizza', 'Pudim')
print(lanche[1])
print(lanche[-2])
print(lanche[1:3])
print(lanche[:2])
print(lanche[2:])
print(lanche[-2:])
print(lanche[-3:])
print(lanche)
# 1º jeito com for
print('\n')
for i in lanche:
print(f'O {i} é delicioso')
print('Todos muito bons!')
print('\n')
print(l... |
richeyphu/ITE-428-LAB | ITE-428/collection2/list2.py | # แก้ไขข้อมูล
score = [10, 56, 67, 88, 98, 3, 21]
print("{}".format(score))
score[0] = 20
print("{}".format(score))
score.append(56)
print("{}".format(score))
score = score + [77, 88, 99]
print("{}".format(score))
del score[3]
print("{}".format(score))
score.sort()
print("{}".format(score))
score.sort(reve... |
baihongwei4/leetcode-exercise-playground | src/hongwei/leetcode/playground/other/na2/Question1.java | <filename>src/hongwei/leetcode/playground/other/na2/Question1.java
package hongwei.leetcode.playground.other.na2;
public class Question1 {
public String canBePalindromeByChangingOneCharacter(String s) {
int halfLen = s.length() / 2;
int unsymmetryCounter = 0;
for (int i = 0; i < halfLen; i+... |
cvisionai/tator-py | test/test_job_cluster.py | <gh_stars>1-10
import random
import uuid
import pytest
import tator
def random_job_cluster_spec():
uid = str(uuid.uuid4())
return {
"name": f"Job Cluster {uid}",
"host": "test-host",
"port": random.randint(4000, 6000),
"token": <PASSWORD>,
"cert": f"{uid}.cert",
}... |
trgswe/fs2open.github.com | qtfred/src/mission/dialogs/MissionGoalsDialogModel.cpp | //
//
#include "MissionGoalsDialogModel.h"
namespace fso {
namespace fred {
namespace dialogs {
MissionGoalsDialogModel::MissionGoalsDialogModel(QObject* parent, fso::fred::EditorViewport* viewport) :
AbstractDialogModel(parent, viewport) {
}
bool MissionGoalsDialogModel::apply()
{
for (int i = 0; i < Num_goals; ... |
sahin88/Django_Rest_Framework_Redux_React_Estate_App_FullStack | node_modules/redex/test/adhoc/thunk.js | <gh_stars>1-10
import fs from 'fs';
async function readFile(file) {
return cb => {
fs.readFile(file, cb);
};
}
async function test() {
return await readFile('README.md');
}
test().then(result => {
console.log('done', result);
});
|
hustjl22/accumulo | test/src/test/java/org/apache/accumulo/test/DeleteRowsIT.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 ... |
yacob21/Century | app/src/main/java/com/example/user/century/UnggahActivity.java | <filename>app/src/main/java/com/example/user/century/UnggahActivity.java<gh_stars>0
package com.example.user.century;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
... |
yangyimincn/ucloud-sdk-go | private/utils/patch.go | package utils
import (
"regexp"
)
// Patch is the patch object to provider a converter function
type Patch interface {
Patch([]byte) []byte
}
// RegexpPatcher a patch object to provider a converter function from regular expression
type RegexpPatcher struct {
pattern *regexp.Regexp
replacement string
}
// Ne... |
Yeep/zeebe | clients/java/src/main/java/io/camunda/zeebe/client/impl/ZeebeClientCredentials.java | <reponame>Yeep/zeebe
/*
* Copyright © 2017 camunda services GmbH (<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
*
* Unle... |
imvu/bluesteel | app/logic/bluesteel/controllers/__init__.py | """ Automatic file """
from app.logic.bluesteel.controllers.BluesteelLayoutController import BluesteelLayoutController
from app.logic.bluesteel.controllers.BluesteelProjectController import BluesteelProjectController
|
qingqibing/go-genproto | googleapis/ads/googleads/v2/resources/operating_system_version_constant.pb.go | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/resources/operating_system_version_constant.proto
package resources
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
enums "google.golang.org/genproto/... |
Cataldir/koalixcrm | koalixcrm/crm/migrations/0027_auto_20180606_2034.py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-06-06 20:34
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.s... |
aliyun/aliyun-openapi-cpp-sdk | dts/include/alibabacloud/dts/model/CreateSynchronizationJobRequest.h | <reponame>aliyun/aliyun-openapi-cpp-sdk<gh_stars>10-100
/*
* Copyright 2009-2017 Alibaba Cloud 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://ww... |
ohtu-aikavali2/aikavali2-front | src/app/components/common/FeedbackBar.js | import React from 'react'
const FeedbackBar = ({ topLeftContent, topRightContent }) => {
return (
<div style={{ width: '100%', height: 30, display: 'flex', flexDirection: 'row', justifyContent: 'center' }}>
<div style={{ flex: 1, display: 'flex', justifyContent: 'flex-end', alignItems: 'center' }}>
... |
wuyazero/Elastos.App.UnionSquare.iOS | ELA/ThirdSDK/WOCrashProtector/WOContainer/NSMutableString+WOCrash.h | //
// NSMutableString+WOCrash.h
// GridGovernance
//
// Created by 吴欧 on 2017/12/21.
// Copyright © 2017年 Bitvalue. All rights reserved.
//
/**
* Can avoid crash method
*
* 1. 由于NSMutableString是继承于NSString,所以这里和NSString有些同样的方法就不重复写了
* 2. - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *... |
Process-Creative/Slate | packages/slate-ajax-collection/src/filter/facet/decorators/SelectFacet.js | import { FACET_SELECT_SELECTOR } from './../../../constant/Constants';
export const decorateSelectFacet = FacetType => {
return class extends FacetType {
constructor(params) {
super(params);
this.container.on('change', FACET_SELECT_SELECTOR, e => this.onChange(e));
}
getPrint(e) {
let... |
TeamSPoon/CYC_JRTL_with_CommonLisp_OLD | platform/main/server-4q/com/cyc/cycjava/cycl/inference/modules/removal/removal_modules_mean_stdev.java | <reponame>TeamSPoon/CYC_JRTL_with_CommonLisp_OLD
package com.cyc.cycjava.cycl.inference.modules.removal;
import static com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLObjectFactory.makeKeyword;
import static com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLObjectFactory.makeString;
import static com.cyc.tool.subl.jrtl.... |
alexsicart/BravaKin | client/src/components/Homepage.js | import React from 'react';
import { connect } from 'react-redux';
import { Redirect } from 'react-router-dom';
import conf from '../private/conf';
import FontAwesome from 'react-fontawesome';
import { Row, Col, Button } from 'reactstrap';
import './style.css';
class Homepage extends React.Component {
loginClick =... |
ManoloAlvarezForo/abadon-server | src/app.js | import '@babel/polyfill';
import express from 'express';
import mongoose from 'mongoose';
// import path from 'path';
import { ApolloServer } from 'apollo-server-express';
import schema from './graphql/schema';
// Subscriptions
import { PubSub } from 'graphql-subscriptions';
// import fs from 'fs';
// import { createS... |
AlisonZXQ/micro-pratice | kk-react/src/components/Tool/components/stepTwo.js | <filename>kk-react/src/components/Tool/components/stepTwo.js
import React, { Component } from 'react';
import { Button, Row, Table, message } from 'antd';
import { connect } from 'dva';
import { importAdviseFile, getAdviseCustomList } from '@services/advise';
import { importRequirementFile, getRequirementCustomList } f... |
dejakob/react-native-alegrify-offline | src/components/create-thought-dialog/CreateThoughtDialog.js | import React, { PureComponent } from 'react';
import { Platform } from 'react-native';
import { Button, Dialog, Input, Label, SegmentedControl, Padding } from 'react-native-alegrify-ui';
import { translate } from '../../services/language';
import { MOODS, MOOD_ELEMENTS } from '../thought/Thought';
class CreateThoughtD... |
wxmerkt/ihmc-open-robotics-software | IHMCQuadrupedRobotics/src/us/ihmc/quadrupedRobotics/controller/ControllerEvent.java | package us.ihmc.quadrupedRobotics.controller;
public enum ControllerEvent
{
DONE,
FAIL,
}
|
wkoszek/ncurses_guide | book-ref/hline.c | <reponame>wkoszek/ncurses_guide<gh_stars>10-100
#include <ncurses.h>
int main(void)
{
int maxy,maxx,halfx,y,len;
initscr();
getmaxyx(stdscr,maxy,maxx);
halfx = maxx >> 1; /* x/2 */
len = 1;
for(y=0;y<maxy;y++,len++)
{
mvhline(y,halfx-len,0,len+len);
}
refresh();
getch();
endwin();
return 0;
}
|
mrinalini-m/travelog | client/src/utils/auth.utils.js | <gh_stars>0
import axios from 'axios'
import { createErrorMessage } from '@/utils'
const authHeader = () => {
let user = JSON.parse(localStorage.getItem('user'))
if (user && user.token) {
return { Authorization: 'Bearer ' + user.token }
} else {
return {}
}
}
const _logout = () => {
localStorage.re... |
edmund-troche/mbl-core | ci/lava/tests/test-provision-mbl.py | <gh_stars>1-10
#!/usr/bin/env python3
# Copyright (c) 2019 Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
"""Tests for MBL provisioning."""
import os
import time
from pathlib import Path
class TestProvisionMbl:
"""Class to encapsulate the testing of mbl-cli provisio... |
lemkova/Yorozuya | library/ATF/__respawn_monster.hpp | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_react_area.hpp>
#include <_react_obj.hpp>
START_ATF_NAMESPACE
struct __respawn_monster
{
_react_obj ReactObj;
_react_area ReactArea;
... |
FantLab/go-kit | http/mux/builder.go | <reponame>FantLab/go-kit
package mux
import "net/http"
func (g *Group) Middleware(fn func(http.Handler) http.Handler) {
g.Middlewares = append(g.Middlewares, fn)
}
func (g *Group) Endpoint(method, path string, handler http.Handler) {
g.Endpoints = append(g.Endpoints, &Endpoint{
Method: method,
Path: path,
... |
trumank/DRG-Mods | Source/FSD/Public/PipelineExtractorPodAnimInstance.h | <reponame>trumank/DRG-Mods
#pragma once
#include "CoreMinimal.h"
#include "Animation/AnimInstance.h"
#include "ERessuplyPodState.h"
#include "EPipelineExtractorPodAnimState.h"
#include "EPipelineBuildState.h"
#include "ERefineryState.h"
#include "PipelineExtractorPodAnimInstance.generated.h"
class APipelineExtractorPo... |
noelc-s/amber_developer_stack | eigen_utilities/include/eigen_utilities/operator_utilities.hpp | /**
* @author <NAME> <<EMAIL>>, member of Dr. Aaron
* Ames's AMBER Lab
*/
#ifndef EIGEN_OPERATOR_UTILITIES_H
#define EIGEN_OPERTAOR_UTILITIES_h
#include <Eigen/Dense>
namespace Eigen
{
template<typename Derived>
Eigen::MatrixBase<Derived>& operator-=(Eigen::MatrixBase<Derived> &X, const typename Derived::Scal... |
lockie/HiveGame | HiveGame/MyGUI/Tools/LayoutEditor/PropertyFieldFileName.h | /*!
@file
@author <NAME>
@date 12/2010
*/
#ifndef __PROPERTY_FIELD_FILE_NAME_H__
#define __PROPERTY_FIELD_FILE_NAME_H__
#include "EditorToolTip.h"
#include "PropertyFieldEditBox.h"
namespace tools
{
class PropertyFieldFileName :
public PropertyFieldEditBox
{
public:
PropertyFieldFileName(MyGUI::Widget* _p... |
Glidias/yuka | src/perception/memory/MemorySystem.js | <gh_stars>0
import { MemoryRecord } from './MemoryRecord.js';
/**
* Class for representing the memory system of a game entity. It is used for managing,
* filtering, and remembering sensory input.
*
* @author {@link https://github.com/Mugen87|Mugen87}
*/
class MemorySystem {
/**
* Constructs a new memory system.
*
... |
leedalmogbel/ace | src/app/SignedURL/GenerateModelSignedUrl.js | const { Operation } = require('@amberjs/core');
const signURL = require('src/infra/services/signedUrl');
const modelStatus = {
COMPLETED : 'Completed',
FAILED : 'Failed',
PROCESSING : 'Processing'
};
class GenerateModelSignedUrl extends Operation {
constructor({ ThirdPartyApis, ClipRepository, StandardModelRe... |
tianyapiaozi/tensorflow | tensorflow/contrib/lite/testing/tf_driver_test.cc | <filename>tensorflow/contrib/lite/testing/tf_driver_test.cc
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/... |
CameronMcWilliam/odo | vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/olm/overrides/inject_test.go | <gh_stars>1-10
package overrides_test
import (
"testing"
"github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/olm/overrides"
"github.com/stretchr/testify/assert"
corev1 "k8s.io/api/core/v1"
)
var (
defaultEnvVars = []corev1.EnvVar{
corev1.EnvVar{
Name: "HTTP_PROXY",
Value... |
pu2clr/PCF8574 | extras/apidoc/html/search/all_4.js | <filename>extras/apidoc/html/search/all_4.js
var searchData=
[
['lookfordevice_7',['lookForDevice',['../group__group01.html#gabb38aa941e8b607557fa8f3f98bf9fc5',1,'PCF']]]
];
|
wreiner/Office365-REST-Python-Client | office365/sharepoint/client_context.py | <filename>office365/sharepoint/client_context.py
import copy
import adal
from office365.runtime.auth.authentication_context import AuthenticationContext
from office365.runtime.auth.client_credential import ClientCredential
from office365.runtime.auth.providers.saml_token_provider import resolve_base_url
from office36... |
leilinen/flink | flink-state-backends/flink-statebackend-changelog/src/main/java/org/apache/flink/state/changelog/AbstractStateChangeLogger.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 ... |
jonjomckay/jooby | jooby/src/main/java/io/jooby/internal/handler/SendAttachment.java | <gh_stars>0
/**
* Jooby https://jooby.io
* Apache License Version 2.0 https://jooby.io/LICENSE.txt
* Copyright 2014 <NAME>
*/
package io.jooby.internal.handler;
import io.jooby.AttachedFile;
import io.jooby.Context;
import io.jooby.Route;
import javax.annotation.Nonnull;
public class SendAttachment implements Li... |
PraydE007/uChat | client/src/mx_init_signal_10.c | #include "client.h"
void mx_init_signal_10(t_s_glade *gui) {
g_signal_connect(gui->b_p_close, "clicked",
G_CALLBACK(mx_close_profile), gui);
g_signal_connect(gui->b_p_apply, "clicked",
G_CALLBACK(mx_change_profile), gui);
g_signal_connect(gui->b_password, "clicked",
... |
chyzman/victus | src/main/java/com/glisco/victus/hearts/content/GoldenAspect.java | <reponame>chyzman/victus
package com.glisco.victus.hearts.content;
import com.glisco.victus.Victus;
import com.glisco.victus.hearts.HeartAspect;
import com.glisco.victus.hearts.HeartAspectComponent;
import net.minecraft.entity.damage.DamageSource;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.min... |
Akarin-project/Paper2Srg | src/main/java/net/minecraft/server/dedicated/ServerHangWatchdog.java | package net.minecraft.server.dedicated;
import java.io.File;
import java.lang.management.ManagementFactory;
import java.lang.management.ThreadInfo;
import java.lang.management.ThreadMXBean;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
import org.apache.l... |
esagecloudOS/esage-esage-etk | lib/abiquo-etk.rb | <reponame>esagecloudOS/esage-esage-etk
Dir[File.dirname(__FILE__) + '/../vendor/*'].each do |dir|
$: << dir + '/lib'
end
require 'logger'
require 'rubygems'
require 'term/ansicolor'
require 'rpm-utils'
require 'logger'
require 'nokogiri'
require 'mixlib/cli'
require 'abiquo'
#
# CONFIG CONSTANTS
#
ENV['LANG'] = ... |
amintasvrp/database-as-a-service | dbaas/physical/admin/__init__.py | <gh_stars>100-1000
# -*- coding:utf-8 -*-
from django.contrib import admin
from .. import models
from .databaseinfra import DatabaseInfraAdmin
from .engine import EngineAdmin
from .engine_type import EngineTypeAdmin
from .plan import PlanAdmin
from .host import HostAdmin
from .environment import EnvironmentAdmin
from .... |
dplbsd/soc2013 | head/sys/sys/buf.h | /*-
* Copyright (c) 1982, 1986, 1989, 1993
* The Regents of the University of California. All rights reserved.
* (c) UNIX System Laboratories, Inc.
* All or some portions of this file are derived from material licensed
* to the University of California by American Telephone and Telegraph
* Co. or Unix System Lab... |
carloseduardomarques/java-fundamentals-poo | 2Disciplina/2Disciplina/src/unidade3/grafico/GenericsApp.java | <reponame>carloseduardomarques/java-fundamentals-poo
package unidade3.grafico;
import java.util.ArrayList;
import java.util.List;
public class GenericsApp {
public static void main(String[] args) {
List<Shape> lista = new ArrayList<>();
lista.add(new Circle());
lista.add(new Rectangle());
List<?> ls =... |
smarter/scalameta | tests/src/test/scala/show/ScalaSuite.scala | import org.scalatest._
import scala.meta._
import scala.meta.internal.{ ast => impl }
import scala.meta.dialects.Scala211
class ScalaSuite extends InferSuite {
def templStatForceInfer(code: String)(implicit dialect: Dialect) = forceInferAll(super.templStat(code))
def tpeForceInfer(code: String)(implicit dialect: ... |
marcus-crane/junkcode | enspiral-dev-academy/JSListProject/js/script.js | <filename>enspiral-dev-academy/JSListProject/js/script.js<gh_stars>0
var lists = {
"Books": [{
"Title": "The Lord of the Rings",
"Author": "<NAME>"
}, {
"Title": "A Game of Thrones",
"Author": "<NAME>"
}],
"Games": [{
"Title": "Super Metroid",
"Developer": "Nintendo, Intelligent Systems, Nintendo R&D 1"... |
MewX/contendo-viewer-v1.6.3 | jp/cssj/sakae/pdf/g/b/b.java | /* */ package jp.cssj.sakae.pdf.g.b;
/* */
/* */ import java.io.FilterOutputStream;
/* */ import java.io.IOException;
/* */ import java.io.OutputStream;
/* */
/* */
/* */
/* */
/* */
/* */ public class b
/* */ implements e
/* */ {
/* 14 */ private final int[] a = new int... |
chrisguikema/seL4_projects_libs | libsel4arm-vmm/src/plat/exynos5/devices/misc_devices.c | /*
* Copyright 2017, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(DATA... |
onezens/QQTweak | qqtw/qqheaders7.2/QQVIPFunctionComicNavigationController.h | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "QQNavigationController.h"
#import "UIGestureRecognizerDelegate.h"
#import "UINavigationControllerDelegate.h"
@class NSString, QQVIPFunctionComicPopNavigationTransition, QQVIPFu... |
menty44/tutorials | orika/src/main/java/com/baeldung/orika/Personne.java | <filename>orika/src/main/java/com/baeldung/orika/Personne.java
package com.baeldung.orika;
public class Personne {
private String nom;
private String surnom;
private int age;
public Personne(String nom, String surnom, int age) {
this.nom = nom;
this.surnom = surnom;
this.age = ... |
i-vyatkin/snappykit.constructor | src/components/Modal.js | import classNames from 'classnames';
import { get } from 'lodash';
import PropTypes from 'prop-types';
import * as React from 'react';
import { Portal } from 'react-portal';
import { connect } from 'react-redux';
import { CSSTransition } from 'react-transition-group';
import { compose, withHandlers } from 'recompose';
... |
BrandonJohnGrenier/pattern-tokamak | tokamak-authorization/src/main/java/fm/pattern/tokamak/authorization/OAuth2AuthorizationContext.java | <gh_stars>1-10
/*
* Copyright 2012-2017 the original author or 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... |
Sweetist/spree_ams | spec/dummy/db/migrate/20171207164342_add_execution_backtrace_to_spree_integration_actions.rb | class AddExecutionBacktraceToSpreeIntegrationActions < ActiveRecord::Migration
def change
add_column :spree_integration_actions, :execution_backtrace, :text
end
end
|
Syrupz-UO/VERDICT | tools/verdict-back-ends/verdict-bundle/verdict-attack-defense-collector/src/main/java/com/ge/verdict/attackdefensecollector/Triple.java | <filename>tools/verdict-back-ends/verdict-bundle/verdict-attack-defense-collector/src/main/java/com/ge/verdict/attackdefensecollector/Triple.java
package com.ge.verdict.attackdefensecollector;
import java.util.Objects;
/**
* A generic triple. Correctly implements equals() and hashCode(), so may be used as a key to a... |
GKotsovos/WebBanking-Front-End | src/routes/root/routes/Banking/routes/Orders/routes/NewTransferOrder/routes/NewTransferOrderForm/components/SelectPeriodicity/index.js | import SelectPeriodicity from './SelectPeriodicity'
export default SelectPeriodicity
|
mallikarjuna54/rdk-xconfserver | dataaccess-core/src/main/java/com/comcast/hesperius/dataaccess/core/dao/RowMappingPartialDAO.java | /*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2018 RDK Management
*
* 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 ... |
SitdikovRustam/CatBoost | util/string/util.h | <reponame>SitdikovRustam/CatBoost
#pragma once
//THIS FILE A COMPAT STUB HEADER
#include <cstring>
#include <cstdarg>
#include <algorithm>
#include <util/system/defaults.h>
#include <util/generic/string.h>
#include <util/generic/strbuf.h>
/// @addtogroup Strings_Miscellaneous
/// @{
int a2i(const TString& s);
/// ... |
Kiddinglife/J2EE-DEMO | OnlineShop/Assign2WAR/WEB-INF/classes/uts/edu/controller/AbstractController.java | package uts.edu.controller;
import java.util.Arrays;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import uts.edu.web.RequestMethod;
import com.bea.common.security.xacml.IOException;
/**
* @author Administ... |
utfpr-gp-tsi/SGE | lib/populate/users.rb | require './lib/faker/cpf'
module Populate
class Users
def initialize
@rn = 1_234_567
@bol = [true, false]
end
def populate
create_users
end
private
def create_users
75.times do |i|
@rn += i
User.create!(
name: Faker::Name.name,
us... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.