repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
sathyavikram-ksu/sppam-api | src/main/java/com/group1/sppam/repository/EffortRepository.java | <reponame>sathyavikram-ksu/sppam-api<gh_stars>0
package com.group1.sppam.repository;
import com.group1.sppam.models.Effort;
import org.springframework.data.repository.CrudRepository;
import java.util.List;
public interface EffortRepository extends CrudRepository<Effort, Long> {
List<Effort> findAllByRequirement_... |
mjorod/textram | tool/ca.mcgill.sel.ram/src/ca/mcgill/cs/sel/ram/impl/RLongImpl.java | /**
*/
package ca.mcgill.cs.sel.ram.impl;
import ca.mcgill.cs.sel.ram.RLong;
import ca.mcgill.cs.sel.ram.RamPackage;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.emf.common.util.WrappedException;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EOperation;
/**
* <!-- be... |
masrice/megamol | core/src/param/FilePathParam.cpp | <reponame>masrice/megamol<filename>core/src/param/FilePathParam.cpp
/*
* FilePathParam.cpp
*
* Copyright (C) 2008 by Universitaet Stuttgart (VIS).
* Alle Rechte vorbehalten.
*/
#include "mmcore/param/FilePathParam.h"
#include "mmcore/utility/FileUtils.h"
#include "stdafx.h"
using namespace megamol::core::param;... |
makkrnic/simutrans-extended | gui/halt_list_stats.cc | /*
* This file is part of the Simutrans-Extended project under the Artistic License.
* (see LICENSE.txt)
*/
#include "halt_list_stats.h"
#include "../simhalt.h"
#include "../simskin.h"
#include "../simcolor.h"
#include "../display/simgraph.h"
#include "../display/viewport.h"
#include "../player/simplay.h"
#include ... |
saydulk/parliamentary-questions | db/migrate/20150428133026_clean_stats_data.rb | class CleanStatsData < ActiveRecord::Migration
def change
ActiveRecord::Base.connection.execute(
"UPDATE action_officers_pqs " +
"SET updated_at = created_at " +
"WHERE action_officer_id = 497;"
)
ActiveRecord::Base.connection.execute(
"UPDATE action_officers_pqs " +
"SE... |
GitHubYangZhiwen/arcgis-js-siteapp-3.x | widgets/BatchAttributeEditor/nls/nl/strings.js | <reponame>GitHubYangZhiwen/arcgis-js-siteapp-3.x<filename>widgets/BatchAttributeEditor/nls/nl/strings.js
define({
"_widgetLabel": "Batch Attribute Editor",
"widgetIntroSelectByArea": "Gebruik een van de tools hieronder om een selectie van objecten te maken om bij te werken. Als de rij is <font class='maxRecordInInt... |
mosoft521/lemon | src/main/java/com/mossle/internal/sendmail/service/SendmailDataService.java | package com.mossle.internal.sendmail.service;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import com.mossle.api.store.StoreDTO;
import com.mossle.client.store.StoreClient;
import com.mossle.core.mail... |
camallen/Panoptes | spec/workers/unfinish_workflow_worker_spec.rb | <reponame>camallen/Panoptes
require 'spec_helper'
RSpec.describe UnfinishWorkflowWorker do
let(:worker) { described_class.new }
let(:workflow) { create(:workflow) }
describe "#perform" do
it "should not do anything if the workflow is not finished" do
expect { worker.perform(workflow.id) }.not_to chang... |
moikot/smartthings-go | client/deviceprofiles/get_device_profile_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package deviceprofiles
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"net/http"
"time"
"github.com/go-openapi/errors"
"github.com/go-openapi/runtime"
cr "gith... |
Tariqali13/JusGotPaidFrontend | components/layouts/marketing-template/marketing-template.js | // @flow
import React from 'react';
import NProgress from 'nprogress';
import Router from 'next/router';
import { Header, Footer, TopHeader } from './components';
import MarketingHead from './marketing-head';
type Props = {
children: any,
showMenu?: boolean,
};
const MarketingTemplate = (props: Props) => {
cons... |
nokia-wroclaw/nokia-book | 02/MiNiK/src/store.hpp | <filename>02/MiNiK/src/store.hpp
#pragma once
#include <cassert>
#include <string>
#include <vector>
#include <algorithm>
#include <memory>
const int WordSize = 4;
struct FunctionDef {
std::string name;
std::string symName;
std::size_t numberOfArgs;
std::size_t frameSize;
bool predefined;
};
cl... |
mcdeoliveira/NC | NCGB/Compile/src/Timing.cpp | <reponame>mcdeoliveira/NC
// Timing.c
#include "Timing.hpp"
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Instructions
NOTE: This file is not to be used with Timing.h or Timing.inline.h - it is the
C implementation of timing commands.
To time a section of code, first ... |
suluner/tencentcloud-sdk-cpp | tdmq/include/tencentcloud/tdmq/v20200217/model/EnvironmentRole.h | <filename>tdmq/include/tencentcloud/tdmq/v20200217/model/EnvironmentRole.h<gh_stars>10-100
/*
* 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.
* Y... |
swaron/fruit | web-helper/target/classes/META-INF/web-resources/libjs/src/form/field/VTypes.js | <filename>web-helper/target/classes/META-INF/web-resources/libjs/src/form/field/VTypes.js
Ext.define("Lib.form.field.VTypes", {
override : "Ext.form.field.VTypes",
daterange : function(val, field) {
var date = field.parseDate(val);
var basicValidate = function(datefield) {
var vtype = datefield.vtype;
datef... |
coiax/muhscreeps | prototype.source.js | <filename>prototype.source.js
'use strict';Source.prototype.is_harvestable = function(a) {
return 0 === this.energy ? !1 : a && this.pos.isNearTo(a) ? !0 : this.pos.walkable_adjacent().length ? !0 : !1
};
|
korydraughn/jargon | jargon-core/src/main/java/org/irods/jargon/core/pub/PluggableApiCallResult.java | package org.irods.jargon.core.pub;
public class PluggableApiCallResult {
private String jsonResult = "";
private int intInfo = 0;
private int errorInfo = 0;
public String getJsonResult() {
return jsonResult;
}
public void setJsonResult(String jsonResult) {
this.jsonResult = jsonResult;
}
public int get... |
zccdy/XBHEBProject | model/XBHImagePicker.h | <filename>model/XBHImagePicker.h
//
// XBHImagePicker.h
// XBHEBProject
//
// Created by xubh-note on 15/4/20.
// Copyright (c) 2015年 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSUInteger, XBHImagePickerDataMode){
XBHImagePickerDataMode_ImageFromLibrary=0,
XBHImage... |
GirlsOfSteelRobotics/GirlsOfSteelFRC | old_robots/y2013/Eve2013/src/main/java/com/gos/ultimate_ascent/commands/TrackSideTarget.java | package com.gos.ultimate_ascent.commands;
import edu.wpi.first.wpilibj.command.CommandGroup;
import com.gos.ultimate_ascent.objects.ShooterCamera;
import com.gos.ultimate_ascent.subsystems.Chassis;
public class TrackSideTarget extends CommandGroup {
public TrackSideTarget(Chassis chassis) {
double turnTh... |
wilfredwilly/springboot-learn-by-example | chapter-09/springboot-jpa-demo/src/main/java/com/sivalabs/demo/UserRepository.java | /**
*
*/
package com.sivalabs.demo;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* @author Siva
*
*/
public interface UserRepository extends JpaRepository<User, Integer>
{
}
|
sxxlearn2rock/AgileJavaStudy | src/cn/sxx/agilejava/report/ReportCardTest.java | <reponame>sxxlearn2rock/AgileJavaStudy
package cn.sxx.agilejava.report;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
im... |
Telecominfraproject/wlan-cloud-owprov-ui | src/pages/VenuePage/VenueChildrenCard/VenueLiveView/CirclePack/CircleComponent/DeviceCircle.js | <reponame>Telecominfraproject/wlan-cloud-owprov-ui
import React, { useMemo } from 'react';
import PropTypes from 'prop-types';
import { animated } from '@react-spring/web';
import {
IconButton,
Popover,
PopoverArrow,
PopoverBody,
PopoverCloseButton,
PopoverContent,
PopoverHeader,
PopoverTrigger,
Porta... |
YongChenSu/GoodJobShare | src/components/CompanyAndJobTitle/WorkExperiences/index.js | import React from 'react';
import PropTypes from 'prop-types';
import CompanyAndJobTitleWrapper from '../CompanyAndJobTitleWrapper';
import StatusRenderer from '../StatusRenderer';
import WorkExperiencesSection from './WorkExperiences';
import Helmet from './Helmet';
const WorkExperiences = ({
pageType,
pageName,
... |
umts/st-pax | app/models/feedback.rb | <reponame>umts/st-pax<gh_stars>0
# frozen_string_literal: true
require 'mock_github_client'
class Feedback
include ActiveModel::Model
attr_accessor :title, :description, :category, :issue, :user
CATEGORIES = %w[bug enhancement addition].freeze
DEFAULT_CATEGORIES = %w[unconfirmed].freeze
validates :title,... |
byrne-greg/the-stool-diary | src/context/global/actions.js | <reponame>byrne-greg/the-stool-diary<filename>src/context/global/actions.js
import { CHANGE_LANGUAGE, UPDATE_AUTH_USER, UPDATE_USER } from "./actionTypes"
export const updateUser = (dispatch, value) =>
updateState(dispatch, UPDATE_USER, value)
export const updateAuthUser = (dispatch, authUser) => {
updateState(dis... |
SmartDataAnalytics/ckan-deploy | dcat-suite-app/src/main/java/org/aksw/dcat_suite/app/model/impl/UserSpaceImpl.java | <filename>dcat-suite-app/src/main/java/org/aksw/dcat_suite/app/model/impl/UserSpaceImpl.java
package org.aksw.dcat_suite.app.model.impl;
import java.nio.file.Path;
import org.aksw.dcat_suite.app.model.api.UserProjectMgr;
import org.aksw.dcat_suite.app.model.api.UserSpace;
public class UserSpaceImpl
extends LifeC... |
omunroe-com/nasaaccmars | src/js/components/terrain.js | <gh_stars>10-100
// Copyright 2017 Google 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 by applicable l... |
billwert/azure-sdk-for-java | sdk/core/azure-core/src/main/java/com/azure/core/implementation/util/EnvironmentConfiguration.java | <filename>sdk/core/azure-core/src/main/java/com/azure/core/implementation/util/EnvironmentConfiguration.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.core.implementation.util;
import com.azure.core.util.Configuration;
import com.azure.core.util.... |
hephzaron/youth-interact | server/dist/helpers/GenerateTreeStructure.js | <gh_stars>0
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require('babel-runtime/helpers/createClass');
var _createClass3 = _... |
jsaveta/SPIMBench | src/eu/ldbc/semanticpublishing/transformations/logical/CWSameAs.java | <filename>src/eu/ldbc/semanticpublishing/transformations/logical/CWSameAs.java
package eu.ldbc.semanticpublishing.transformations.logical;
import java.util.Random;
import org.openrdf.model.Model;
import org.openrdf.model.Resource;
import org.openrdf.model.Statement;
import org.openrdf.model.URI;
import org.openrdf.... |
evmorov/ruby-coffeescript | code/python/array_get_first_and_last.py | <reponame>evmorov/ruby-coffeescript
arr = ['one', 'two']
print(arr[0])
print(arr[-1])
|
sudeshana/carbon-governance | components/governance/org.wso2.carbon.governance.list.ui/src/main/java/org/wso2/carbon/governance/list/ui/clients/ListMetadataServiceClient.java | /*
* Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.o... |
annabranco/zombie-mix | src/setup/zombies.js | import Walker from '../assets/images/zombies/walker.jpg';
import WalkerSmall from '../assets/images/zombies/walker-small.jpg';
import Runner from '../assets/images/zombies/runner.jpg';
import RunnerSmall from '../assets/images/zombies/runner-small.jpg';
import Fatty from '../assets/images/zombies/fatty.jpg';
import Fat... |
TaffarelXavier/next.js-starter-project | storybook/config.js | import './styles';
import { configure } from '@storybook/react';
import { setOptions } from '@storybook/addon-options';
setOptions({
name: 'Project UI',
url: '#',
showAddonPanel: false,
hierarchySeparator: /\/|\./,
hierarchyRootSeparator: /\|/,
});
function importAll(req) {
req.keys().forEach(filename => ... |
jckr/react-sim | src/index.js | <filename>src/index.js
import React from 'react';
import styles from './styles.module.css';
export { default as CanvasFrame, CanvasFrameComponent } from './canvas-frame';
export { default as CheckboxComponent } from './checkbox';
export {
default as Controls,
Checkbox,
Input,
Radio,
Range,
Select,
Timer,... |
ludovic-chaboud/docker-dashboard | index/routes/images.js | <reponame>ludovic-chaboud/docker-dashboard<gh_stars>0
module.exports = __ => {
const {app, docker} = __;
app.get('/images', function(req, res) {
docker.listImages({all: true}, function(err, images) {
if(err) {
res.send(err)
} else {
res.send(images)
}
});
});
require('.... |
fredsterorg/incubator-pinot | pinot-plugins/pinot-batch-ingestion/v0_deprecated/pinot-hadoop/src/main/java/org/apache/pinot/hadoop/job/reducers/AvroDataPreprocessingReducer.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... |
froyomu/imsdk-android | imsdk/src/main/java/com/qunar/im/ui/util/atmanager/AtContactsModel.java | package com.qunar.im.ui.util.atmanager;
import com.qunar.im.base.util.LogUtil;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* Created by hzchenkang on 2017/7/7.
*
* @ 联系人数据
*/
public class AtContactsModel {
// 已@ 的成员
p... |
hyh123a/myems | web/src/components/MyEMS/auth/basic/ChangePassword.js | <filename>web/src/components/MyEMS/auth/basic/ChangePassword.js
import React from 'react';
import ChangePasswordForm from '../ChangePasswordForm';
import { withTranslation } from 'react-i18next';
const ChangePassword = ({ t }) => {
return (
<ChangePasswordForm />
);
};
export default withTranslation()(ChangeP... |
ChiaraCism/mondora-website-front | app/pages/inbox/inbox.js | angular.module("mnd-web.pages")
.controller("InboxController", ["$scope", function ($scope) {
var notificationsRQ = $scope.Notifications.reactiveQuery({});
notificationsRQ.on("change", function () {
$scope.safeApply(function () {
$scope.notifications = notificationsRQ.result;
});
});
$scope.notifications... |
Segfault5/HoverCar | XivelySDKAndroid/src/main/java/com/xively/internal/connection/package-info.java | <reponame>Segfault5/HoverCar<filename>XivelySDKAndroid/src/main/java/com/xively/internal/connection/package-info.java
/**
* Connection APIs for Xively Messaging (MQTT).
*/
package com.xively.internal.connection;
|
AswinBarath/C-Programming-for-Engineers | PSP Lab Work/Lab 5 - Solving problems using String Functions/StringConcatenation.c | // strcat(s1, s2) concatenates(joins) the second string s2 to the first string s1.
#include <stdio.h>
#include <string.h>
int main()
{
char s2[] = "World";
char s1[20] = "Hello";
strcat(s1, s2);
printf("Source string = %s\n", s2);
printf("Target string = %s\n", s1);
return 0;
}
|
biocodellc/biscicol-ui | webpack.config.js | <reponame>biocodellc/biscicol-ui
const path = require('path');
const fs = require('fs');
// Modules
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
/... |
comprakt/comprakt-fuzz-tests | output/af8df178b1894a91b5c68a7433bf72b9.java | class lnWY9pbh6 {
}
class Y {
public static void ouuWhlxZ98 (String[] RVkyx2o) throws Dc9aEn {
!!--null[ !!-new gdHxImHYe0gK()[ false[ -!new AMb()[ VvmjyG55ciyqKU()[ new v().VvwNpSnzeiV0db]]]]];
}
public void[][] Ckxqx;
public boolean _7gpN () throws TDOtiBz64 {
{
int bOvSv... |
AlexanderKindel/solver | stack/stack.h | <gh_stars>1-10
/*Let a function's result refer to its return value together with the values to which it assigns its
out parameters, if it has any. Let the reference graph of a value of a primitive data type refer to
the value, the reference graph of a pointer refer to the reference graph of the value it points to,
and ... |
mehrdad-shokri/retdec | src/unpackertool/plugins/upx/decompressors/decompressor_nrv.h | <filename>src/unpackertool/plugins/upx/decompressors/decompressor_nrv.h
/**
* @file src/unpackertool/plugins/upx/decompressors/decompressor_nrv.h
* @brief Declaration of NRV decompressor visitor for unpacking packed data.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#ifndef UNPACKERTOOL_P... |
icokeamy2/ResearchProjectFrontend | src/components/ecommerce/SalesReport.js | <filename>src/components/ecommerce/SalesReport.js
import React from "react";
import PropTypes from "prop-types";
import {
Card,
CardHeader,
CardBody,
Row,
Col,
ButtonGroup,
Button
} from "shards-react";
import RangeDatePicker from "../common/RangeDatePicker";
import Chart from "../../utils/chart";
class... |
Justin-Fisher/webots | src/webots/gui/WbSingleTaskApplication.cpp | // Copyright 1996-2021 Cyberbotics 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 applicable law or agr... |
hawkaa/trimesh | tests/test_repr.py | try:
from . import generic as g
except BaseException:
import generic as g
class ReprTest(g.unittest.TestCase):
def test_repr(self):
m = g.trimesh.creation.icosphere()
r = str(m)
assert 'trimesh.Trimesh' in r
assert 'vertices' in r
assert 'faces' in r
s = m... |
luizgribeiro/airbyte | airbyte-integrations/connectors/source-e2e-test/src/test/java/io/airbyte/integrations/source/e2e_test/ExceptionAfterNSourceTest.java | /*
* MIT License
*
* Copyright (c) 2020 Airbyte
*
* 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, ... |
Ehtisham-Ayaan/aoo-ghr-bnain-update | node_modules/@iconify/icons-mdi/guitar-acoustic.js | var data = {
"body": "<path d=\"M19.59 3H22v2h-1.59l-4.24 4.24c-.37-.56-.85-1.04-1.41-1.41L19.59 3M12 8a4 4 0 0 1 4 4a3.99 3.99 0 0 1-3 3.87V16a5 5 0 0 1-5 5a5 5 0 0 1-5-5a5 5 0 0 1 5-5h.13c.45-1.76 2.04-3 3.87-3m0 2.5a1.5 1.5 0 0 0-1.5 1.5a1.5 1.5 0 0 0 1.5 1.5a1.5 1.5 0 0 0 1.5-1.5a1.5 1.5 0 0 0-1.5-1.5m-5.06 3.74l-... |
aleks-pro/resolve | packages/adapters/snapshot-adapters/resolve-snapshot-mysql/test/index.test.js | <reponame>aleks-pro/resolve<filename>packages/adapters/snapshot-adapters/resolve-snapshot-mysql/test/index.test.js
import MySQL from 'mysql2/promise'
import createSnapshotAdapter from '../src'
describe('resolve-snapshot-mysql', () => {
const bucketSize = 5
let snapshotAdapter = null
beforeEach(async () => {
... |
loongX/AndroidDemo | component/XModulable-master/im/src/main/java/com/xpleemoon/im/IMActivity.java | package com.xpleemoon.im;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.xpleemoon.common.app.BaseCommonActivity;
import com.xpleemoon.common.router.module.ModuleName;
import com.xp... |
maxxcs/swc | crates/swc/tests/tsc-references/es6/destructuring/destructuringObjectBindingPatternAndAssignment4/input.ts/es2015.1.normal/output.js | <reponame>maxxcs/swc<filename>crates/swc/tests/tsc-references/es6/destructuring/destructuringObjectBindingPatternAndAssignment4/input.ts/es2015.1.normal/output.js<gh_stars>1000+
const { a =1 , b =2 , c =b , d =a , e =f , f =f // error
} = {
};
|
terminux/jdk1.7.0_80 | src/com/sun/jmx/snmp/IPAcl/JDMIpAddress.java | /*
* Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
/* Generated By:JJTree: Do not edit this line. JDMIpAddress.java */
package com.sun.jmx.snmp.IPAcl;
... |
RoboticExplorationLab/micropython-ulab | tests/common/buffer.py | try:
from ulab import numpy as np
except:
import numpy as np
def print_as_buffer(a):
print(len(memoryview(a)), list(memoryview(a)))
print_as_buffer(np.ones(3))
print_as_buffer(np.zeros(3))
print_as_buffer(np.eye(4))
print_as_buffer(np.ones(1, dtype=np.int8))
print_as_buffer(np.ones(2, dtype=np.uint8))
prin... |
ajesse11x/dremio-oss | sabot/kernel/src/test/java/com/dremio/exec/catalog/TestDatasetManager.java | /*
* Copyright (C) 2017-2019 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
jeongjoonyoo/AMD_RGA | RadeonGPUAnalyzerGUI/Src/rgViewContainer.cpp | // C++.
#include <cassert>
// Qt.
#include <QAction>
#include <QHBoxLayout>
#include <QPushButton>
#include <QResizeEvent>
#include <QSpacerItem>
#include <QStyle>
#include <QWidget>
// Local.
#include <RadeonGPUAnalyzerGUI/Include/Qt/rgViewContainer.h>
#include <RadeonGPUAnalyzerGUI/Include/rgDefinitions.h>
#include... |
Dineshs91/uptime | internal/api/dashboard.go | package api
import (
"net/http"
"github.com/defraglabs/uptime/internal/utils"
"github.com/defraglabs/uptime/internal/db"
)
// DashboardStatsHandler returns dashboard stats.
func DashboardStatsHandler(w http.ResponseWriter, r *http.Request) {
authToken := r.Header.Get("Authorization")
user, authErr := db.Valida... |
jgaudio/king-http-client | integration-tests/src/test/java/com/king/platform/net/http/integration/HttpDelete.java | // Copyright (C) king.com Ltd 2015
// https://github.com/king/king-http-client
// Author: <NAME>
// License: Apache 2.0, https://raw.github.com/king/king-http-client/LICENSE-APACHE
package com.king.platform.net.http.integration;
import com.king.platform.net.http.HttpClient;
import org.junit.After;
import org.junit.B... |
factman/api-app | app/services/brand/routes.js | <reponame>factman/api-app
/*
* @author 4Dcoder
*/
import express from "express";
import * as brand from "./controller";
const router = express.Router();
// Create a new brand
router.post("/brands", brand.create);
// Retrieve all Notes
router.get("/brands", brand.findAll);
// Retrieve a single brand with brandId
ro... |
tinapiao/Software-IC-Automation | laygo/generators/splash/adc_sar_sarsamp_schematic_generator_bb.py | # -*- coding: utf-8 -*-
import pprint
import bag
import numpy as np
import yaml
lib_name = 'adc_sar_templates'
cell_name = 'sarsamp_bb'
impl_lib = 'adc_sar_generated'
params = dict(
lch=16e-9,
pw=4,
nw=4,
m_sw=4,
m_sw_arr=6,
m_inbuf_list=[16, 24],
m_outbuf_list=[8, 32],
device_intent... |
ckamtsikis/cmssw | PhysicsTools/PatAlgos/python/recoLayer0/jetCorrections_cff.py | import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.recoLayer0.jetCorrFactors_cfi import *
from JetMETCorrections.Configuration.JetCorrectionServicesAllAlgos_cff import *
## for scheduled mode
patJetCorrectionsTask = cms.Task(patJetCorrFactors)
patJetCorrections = cms.Sequence(patJetCorrectionsTask)
|
figassis/iso20022 | DataFormat2Choice.go | <reponame>figassis/iso20022
package iso20022
// Choice between the specification of the data in a structured or unstructured form.
type DataFormat2Choice struct {
// Specification of data in a structured form.
Structured *GenericIdentification1 `xml:"Strd"`
// Specification of data for which there isn't a structu... |
senagbe/stroke | src/com/isode/stroke/serializer/StartTLSFailureSerializer.java | /*
* Copyright (c) 2011, Isode Limited, London, England.
* All rights reserved.
*/
/*
* Copyright (c) 2010, <NAME>.
* All rights reserved.
*/
package com.isode.stroke.serializer;
import com.isode.stroke.elements.Element;
import com.isode.stroke.elements.StartTLSFailure;
import com.isode.stroke.serializer.xml.XM... |
martinrohrbach/vsphere-automation-sdk-go | services/nsxt-mp/api/ManagementPlaneAPINetworkingLogicalBridgingBridgeEndpointsClient.go | <gh_stars>10-100
// Copyright © 2019-2021 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: BSD-2-Clause
// Auto generated code. DO NOT EDIT.
// Interface file for service: ManagementPlaneAPINetworkingLogicalBridgingBridgeEndpoints
// Used by client-side stubs.
package api
import (
"github.com/vmware/v... |
jscrdev/LeetCode-in-Java | src.save/test/java/g1501_1600/s1520_maximum_number_of_non_overlapping_substrings/SolutionTest.java | <reponame>jscrdev/LeetCode-in-Java
package g1501_1600.s1520_maximum_number_of_non_overlapping_substrings;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
import java.util.Arrays;
import org.junit.jupiter.api.Test;
class SolutionTest {
@Test
void maxNumOfS... |
webfx-project/webfx-platform | webfx-platform-independent-util/webfx-platform-shared-util/src/main/java/dev/webfx/platform/shared/util/tuples/Unit.java | <filename>webfx-platform-independent-util/webfx-platform-shared-util/src/main/java/dev/webfx/platform/shared/util/tuples/Unit.java<gh_stars>0
package dev.webfx.platform.shared.util.tuples;
/**
* @author <NAME>
*/
public final class Unit<T> {
private T o1;
public Unit() {
}
public Unit(T o1) {
... |
JhonataSantos36/Mercado-pago | sdk/src/test/java/com/mercadopago/mocks/Payments.java | package com.mercadopago.mocks;
import com.mercadopago.model.ApiException;
import com.mercadopago.model.Payment;
import com.mercadopago.util.JsonUtil;
import com.mercadopago.utils.ResourcesUtil;
public class Payments {
public static Payment getApprovedPayment() {
String json = ResourcesUtil.getStringResour... |
RazvanRotari/iaP | services/utils/rsql.py | #!/usr/bin/env python3
import re
import sys
import model
PATTERN = "\{\{.*?\}\}"
class RSQL:
def __init__(self):
self.prefix = {}
def find_term_intern(self, item):
(cls_name, field) = item.replace("{", "").replace("}", "").split(".")
try:
getattr(model, cls_name)
e... |
AnikaZN/AnikaDS | Study_Ahead/Flask Basics/dynamic_page.py | from flask import Flask
app = Flask(__name__)
@app.route ('/')
def index():
return '<h1>This is a happy puppy!</h1>'
@app.route('/info')
def info():
return '<h2>This is information!</h2>'
@app.route('/puppy/<name>')
def puppy(name):
return '<h3>This page is for {}</h3>'.format(name)
#this is like on... |
svher/TigerCompiler | ch06/translate.h | <gh_stars>10-100
#ifndef TRANSLATE_H_
#define TRANSLATE_H_
#include "temp.h"
typedef struct Tr_level_ *Tr_level;
typedef struct Tr_access_ *Tr_access;
typedef struct Tr_accessList_ *Tr_accessList;
struct Tr_accessList_ {
Tr_access head;
Tr_accessList tail;
};
Tr_accessList Tr_AccessList(Tr_access head, Tr_ac... |
gregzanch/functional-acoustics | functional-acoustics/util/mean.js | const mean = x => x.reduce((p, c) => p + c, 0) / x.length;
export default mean; |
chu10/xmfcn-spring-cloud | xmfcn-spring-cloud-sys-elasticsearch-service/src/main/java/com/cn/xmf/service/es/ElasticsearchHelperService.java | package com.cn.xmf.service.es;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.cn.xmf.base.model.ResultCodeMessage;
import com.cn.xmf.base.model.RetData;
import com.cn.xmf.model.es.EsModel;
import com.cn.xmf.model.es.EsPage;
import com.cn.xmf.model.es.EsPartion;
import com.cn.... |
Hathoute/ENSEEIHT | TOB/tps/TP02/PointTest.java | import org.junit.*;
import java.awt.*;
import static org.junit.Assert.*;
/** Programme de test de la classe Point.
* @author <NAME>
* @version 1.11
*/
public class PointTest {
public static final double EPSILON = 1e-6;
// précision pour la comparaison entre réels.
private Point p1;
private Point p2;
@... |
pcdd05/iiixTibaMe_java | java_2018.Dec-2019.Jan/HomeWork_07_01.java | package xxx;
import java.io.File;
public class HomeWork_07_01 {
//請寫一個程式,可以在讀入一個檔案後,顯示有多少個位元組
public static void main (String[] args) {
File inputfile = new File("D:\\CA107_Workspace\\JAVA\\Homework\\Homework_07.pdf");
if (inputfile.isFile()) {
System.out.println(inputfile.getName()+"共有"+inputfile.... |
gpillusion/Avrilpedia | app/src/main/java/com/illusion/avrillavigne/util/Data.java | <gh_stars>1-10
package com.illusion.avrillavigne.util;
public class Data {
public static String BASE = "http://i.imgur.com/";
public static String EXT = ".jpg";
public static String[] URLS_hdpi = {
BASE + "8XfDo7N" + EXT, BASE + "L6FumDP" + EXT, BASE + "p8XHWXT" + EXT,
BASE + "cyBIZ... |
jguillaumes/muxx | h/a.out.h | /*-
* Copyright (c) 1991 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
... |
bcgov/mds | services/core-web/src/tests/components/noticeOfWork/applications/referals/ReferralTabs.spec.js | import React from "react";
import { shallow } from "enzyme";
import { ReferralTabs } from "@/components/noticeOfWork/applications/referals/ReferralTabs";
import * as NOW_MOCK from "@/tests/mocks/noticeOfWorkMocks";
const dispatchProps = {};
const reducerProps = {};
const setupDispatchProps = () => {
dispatchProps.o... |
peter-lawrey/hazelcast-stabilizer | stabilizer/src/main/java/com/hazelcast/stabilizer/agent/workerjvm/WorkerJvm.java | /*
* Copyright (c) 2008-2013, 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 ... |
blindsubmissions/icse19replication | generated-tests/qmosa/tests/s1023/85_shop/evosuite-tests/umd/cs/shop/JSJshop_ESTest.java | /*
* This file was automatically generated by EvoSuite
* Fri Aug 24 16:04:19 GMT 2018
*/
package umd.cs.shop;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.awt.GridLayout;
import java.awt.HeadlessException;
import java.io.BufferedReader;
im... |
78182648/blibli-go | app/admin/main/growup/http/upload.go | <gh_stars>10-100
package http
import (
"io/ioutil"
"mime/multipart"
"net/http"
"path"
"strings"
"time"
"bytes"
"crypto/md5"
"fmt"
"go-common/app/admin/main/growup/conf"
"go-common/app/admin/main/growup/dao"
"go-common/library/ecode"
"go-common/library/log"
bm "go-common/library/net/http/blademaster"
"g... |
Financial-Times/origami-repo-data | data/migration/20171107161007_normalise-versions.js | <reponame>Financial-Times/origami-repo-data
'use strict';
const semver = require('semver');
exports.up = async database => {
// Add a normalised version field to the versions table,
// and also start to index the version field as we're
// querying against it now
await database.schema.table('versions', table => {... |
ankithans/dsa | trees/interviewbit/Root to leaf/Burn A Tree.cpp | <filename>trees/interviewbit/Root to leaf/Burn A Tree.cpp
int findMaxDistance(unordered_map<TreeNode*, TreeNode*> &parentMap, TreeNode* target) {
queue<TreeNode*> q;
q.push(target);
unordered_map<TreeNode*, int> visited;
visited[target] = 1;
int maxi = 0;
while(!q.empty()) {
int size = q... |
hocgin/spring-boot-starters-project | spring-boot-web/web-core/src/main/java/in/hocg/boot/web/exception/ServiceException.java | package in.hocg.boot.web.exception;
import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HttpStatus;
import lombok.Getter;
import java.util.function.Supplier;
/**
* Created by hocgin on 2019-09-24.
* email: <EMAIL>
*
* @author hocgin
*/
public class ServiceException extends RuntimeException {
@Getter
... |
rascazzione/answerator | app_demo/node_modules/@progress/kendo-react-popup/dist/npm/Popup.js | "use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
ireina7/gzsl-seg | src/util/typing/typeclass/__init__.py |
all = [
'core',
'typeclass',
'instances',
]
# from util.typing.typeclass import *
from util.typing.typeclass.typeclass import *
# Monoid[int]()
|
delcypher/stp | include/stp/AST/NodeFactory/NodeFactory.h | /********************************************************************
* AUTHORS: <NAME>
*
* BEGIN DATE: Feb, 2010
*
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, includin... |
voei/megamol | core/src/AbstractNamedObject.cpp | <gh_stars>1-10
/*
* AbstractNamedObject.cpp
*
* Copyright (C) 2009-2015 by MegaMol Team
* Alle Rechte vorbehalten.
*/
#include "stdafx.h"
#include "mmcore/AbstractNamedObject.h"
#include "vislib/assert.h"
#include "vislib/sys/AutoLock.h"
#include "vislib/sys/Log.h"
#include "vislib/UnsupportedOperationException.h"... |
eshuo/bfly | p2p-pay/src/main/java/info/bfly/pay/bean/user/VerifySinaBaseEntity.java | <reponame>eshuo/bfly
package info.bfly.pay.bean.user;
import org.springframework.beans.factory.annotation.Value;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
/**
* 用户认证参数on 2017/4/20 0020.
*/
public class VerifySinaBaseEntity extends SinaUserBaseEntity {
private stat... |
TheAmeliaDeWitt/YAHoneyPot | modules/MarchCommand/src/main/java/com/marchnetworks/common/diagnostics/database/SystemInfoDAOImpl.java | <filename>modules/MarchCommand/src/main/java/com/marchnetworks/common/diagnostics/database/SystemInfoDAOImpl.java
package com.marchnetworks.common.diagnostics.database;
import com.marchnetworks.command.common.diagnostics.DatabaseNameEnum;
import com.marchnetworks.command.common.diagnostics.IndexFragmentation;
import ... |
nathansmith11170/RandomGalaxyTool | target/generated-sources/jaxb/model/xml/generated/Order.java | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2
// See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2021.09.29 ... |
fdecampredon/jsx-typescript-old-version | tests/baselines/reference/selfReferencesInFunctionParameters.js | //// [selfReferencesInFunctionParameters.js]
function foo(x) {
if (typeof x === "undefined") { x = x; }
}
function bar(x0, x) {
if (typeof x0 === "undefined") { x0 = ""; }
if (typeof x === "undefined") { x = x; }
}
var C = (function () {
function C(x, y) {
if (typeof x === "undefin... |
kevinzhwl/ZRXSDKMod | ZRXSDK/2014/arxport/dbtable.h | <reponame>kevinzhwl/ZRXSDKMod
#ifndef __DBTABLE_H__
#define __DBTABLE_H__
#include "dbmain.h"
#include "dbents.h"
#include "AcField.h"
#include "DbLinkedTableData.h"
#include "dbformattedtabledata.h"
#include "..\inc\zdbtable.h"
#ifndef ACDB_DECLARE_MEMBERS
#define ACDB_DECLARE_MEMBERS ZCDB_DECLARE_ME... |
mysql/mysql-shell | unittest/scripts/auto/js_shell/scripts/authentication_kerberos_norecord.js | //@ {hasAuthEnvironment('KERBEROS') && !['windows', 'macos'].includes(__os_type)}
//@<> Setup
dba.verbose = 1
var keytab_file = os.path.join(__tmp_dir, "mysql2.keytab")
testutil.cpfile(os.path.join(__data_path, "keytab", "mysql.keytab"), keytab_file)
testutil.deployRawSandbox(__mysql_sandbox_port1, 'root',
{
... |
zrsaber/piflow-web | piflow-web/src/main/java/cn/cnic/controller/api/NoteBookCtrl.java | <gh_stars>0
package cn.cnic.controller.api;
import cn.cnic.base.utils.SessionUserUtil;
import cn.cnic.component.livy.service.INoteBookService;
import cn.cnic.component.user.service.LogHelper;
import cn.cnic.controller.requestVo.NoteBookVoRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiPara... |
no7hings/Lynxi | workspace/module/python-2.7/LxMtx/mtxMtdCore.py | <filename>workspace/module/python-2.7/LxMtx/mtxMtdCore.py
# coding:utf-8
import functools
import collections
import MaterialX
from LxGraphic import grhCfg
from . import mtxCfg
class Mtd_MtxBasic(mtxCfg.MtxUtility):
MOD_materialx = MaterialX
MOD_functools = functools
class Mtd_MtxFile(Mtd_MtxBasic):
... |
qinFamily/freeVM | enhanced/archive/classlib/modules/rmi2/rmi-1.4.2/src/ar/org/fitc/test/rmi/integration/fase2/test/PerformanceTestCase.java | package ar.org.fitc.test.rmi.integration.fase2.test;
import java.rmi.RemoteException;
abstract public class PerformanceTestCase extends ExecutorTestCase {
public PerformanceTestCase() {
super();
}
public PerformanceTestCase(String arg0) {
super(arg0);
}
public static int NumberOfIteration = 10;
protec... |
StrayDragon/OJ-Solutions | PTA/PAT_A/Cpp11/A1027_AC.cc | <reponame>StrayDragon/OJ-Solutions
// ---
// id : 1027
// title : Colors in Mars
// difficulty : Easy
// score : 20
// tag : Simple Simulation
// keyword : conversion
// status : AC
// from : PAT (Advanced Level) Practice
// ---
#include <algorithm>
#include <iostream>
#include <s... |
suryajak/pacbot | jobs/pacman-data-shipper/src/main/java/com/tmobile/cso/pacman/datashipper/util/AuthUtil.java | <gh_stars>1-10
package com.tmobile.cso.pacman.datashipper.util;
import java.util.Map;
public class AuthUtil {
public static String authorise(String authApi,String authToken) throws Exception{
String response = HttpUtil.post(authApi+"/oauth/token?grant_type=client_credentials","",authToken,"Ba... |
FrankKwok/Oreo | com/android/internal/telephony/CarrierSignalAgent.java | /*
* Copyright (C) 2016 The Android Open Source 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 app... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.