repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
asmfstatoil/neqsim | src/main/java/neqsim/thermo/phase/PhaseDesmukhMather.java | <reponame>asmfstatoil/neqsim<filename>src/main/java/neqsim/thermo/phase/PhaseDesmukhMather.java
package neqsim.thermo.phase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import neqsim.thermo.component.ComponentDesmukhMather;
import neqsim.thermo.component.ComponentGEInterface;
/... |
sjohnson-sage/carbon | src/components/heading/heading.component.js | <reponame>sjohnson-sage/carbon
import React from "react";
import PropTypes from "prop-types";
import styledSystemPropTypes from "@styled-system/prop-types";
import { filterStyledSystemMarginProps } from "../../style/utils";
import tagComponent from "../../utils/helpers/tags";
import {
StyledHeading,
StyledHeadingI... |
megahbite/transources | config/routes.rb | Transources::Application.routes.draw do
resources :resources do
resources :comments, only: [:create, :destroy]
collection do
get 'manage'
get 'search'
get 'search_all'
get 'tag/:tag_id', to: "resources#tag"
end
member do
post 'score'
end
end
get "tags/categories... |
louisgy/paperless | paperless/src/main/java/com/ueh/paperless/service/IntStudentPasswordReset.java | //package com.ueh.paperless.service;
//
//import com.ueh.paperless.domain.Students;
//import com.ueh.paperless.dto.Passworddto;
//
//public interface IntStudentPasswordReset {
// public Students resetPassword(Passworddto passworddto);
//}
|
trevorhein-matc/theTwistedLeaf | src/components/Element/BaseContainer/BaseContainer.js | // @flow
import * as React from 'react'
import PropTypes from 'prop-types'
import { Flex, Box } from 'rebass'
export function BaseContainer({
children,
flex,
className,
...props
}: {
children: React.Node,
flex: boolean,
className: string,
props: any
}) {
if (flex) {
return (
<Flex {...props... |
jhgonggg/spring-boot | hello-spring-boot/src/main/java/com/funtl/hello/spring/boot/help/ContentValidator.java | package com.funtl.hello.spring.boot.help;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.funtl.hello.spring.boot.annotation.ContentValidate;
import com.funtl.hello.spring.boot.constant.SysConst;
import com.funtl.hello.spring.boot.enums.WorkFlowTypeEnum;
import lombok.extern.slf4j.... |
femmebot/shape | db/migrate/20200729224906_add_collection_style_settings.rb | <reponame>femmebot/shape<filename>db/migrate/20200729224906_add_collection_style_settings.rb
class AddCollectionStyleSettings < ActiveRecord::Migration[5.2]
def change
add_column :collections, :font_color, :string, default: nil
add_column :collections, :propagate_font_color, :boolean, default: false
add_c... |
mewspring/llir-llvm-backup | asm/enum/dwarflang_string.go | // Code generated by "string2enum -linecomment -type DwarfLang /home/u/Desktop/go/src/github.com/llir/llvm/ir/enum"; DO NOT EDIT.
package enum
import "fmt"
import "github.com/llir/llvm/ir/enum"
const (
_DwarfLang_name_0 = "DW_LANG_C89DW_LANG_CDW_LANG_Ada83DW_LANG_C_plus_plusDW_LANG_Cobol74DW_LANG_Cobol85DW_LANG_For... |
MoezAbid/Thinklance-pidev-java | src/com/thinklance/pidev/GUI/Projet/ListTacheController.java | <reponame>MoezAbid/Thinklance-pidev-java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.thinklance.pidev.GUI.Projet;
import com.thinklance.pidev.Service.Impl.TacheServi... |
xvik/spock-junit5 | src/test/java/playground/tests/JupiterManualRegistration.java | <filename>src/test/java/playground/tests/JupiterManualRegistration.java
package playground.tests;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.jupiter.api.extension.RegisterExtension;
import ru.vyarus.spock.jupiter.support... |
TwoFistedJustice/square-pie | src/lib/order_object_tax.js | const { nanoid } = require("nanoid");
const {
arche_money,
shazam_max_length,
shazam_is_integer,
} = require("./utilities");
const { uid_length } = require("../pie_defaults");
const man =
"build one Line Item Tax for an order. (goes in taxes array of Order_Object) \n" +
"Uses standard Pie syntax. There is not... |
aberdev/orientdb | client/src/main/java/com/orientechnologies/orient/client/remote/message/OListDatabasesResponse.java | package com.orientechnologies.orient.client.remote.message;
import com.orientechnologies.orient.client.remote.OBinaryResponse;
import com.orientechnologies.orient.client.remote.OStorageRemoteSession;
import com.orientechnologies.orient.core.record.impl.ODocument;
import com.orientechnologies.orient.core.serialization.... |
Marvingms7/IFPI | Semana09Atividade01/Sem08Atv01Q05.py | <filename>Semana09Atividade01/Sem08Atv01Q05.py
def carrega_cidades():
resultado = []
m = str(int(input()))
p = int(input())
res = e_mes(int(m))
ress = str(res).upper()
print(f'CIDADES COM MAIS DE {p} HABITANTES E ANIVERSÁRIO EM {ress}:')
with open('cidades.csv', 'r', encoding='utf-8') as arq... |
NewAcropolis/api | migrations/versions/0040.py | <reponame>NewAcropolis/api
"""empty message
Revision ID: 0040 add email providers
Revises: 0039 add subject to emails
Create Date: 2020-06-18 01:38:30.911104
"""
# revision identifiers, used by Alembic.
revision = '0040 add email providers'
down_revision = '0039 add subject to emails'
from alembic import op
import ... |
Futuremappermydud/Naluluna-Modifier-Quest | include/codegen/include/GlobalNamespace/GameEnergyCounter_InitData.hpp | <filename>include/codegen/include/GlobalNamespace/GameEnergyCounter_InitData.hpp<gh_stars>1-10
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shar... |
nordapp/rest | org.i3xx.util.driverapi/src/main/java/org/i3xx/util/driverapi/client/RootsInfo.java | <filename>org.i3xx.util.driverapi/src/main/java/org/i3xx/util/driverapi/client/RootsInfo.java
package org.i3xx.util.driverapi.client;
import com.google.gson.FieldNamingPolicy;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
/**
* JSON Deserializer
*
* @author Stefan
*
*/
public clas... |
vertgenlab/gonomics | cmd/statCalc/statCalc.go | // Command Group: "Statistics & Population Genetics"
package main
import (
"flag"
"fmt"
"github.com/vertgenlab/gonomics/common"
"github.com/vertgenlab/gonomics/numbers"
"github.com/vertgenlab/gonomics/popgen"
"log"
"strings"
)
//kills the program if multiple options are selected.
func MultipleOptionErrorCheck... |
vladbalach/uchat | client/src/file_sender/mx_free_file.c | #include "client.h"
#include "mxinet.h"
#include "defines_client.h"
void mx_free_file(t_file *file) {
free(file->name);
free(file);
}
|
matthiasblaesing/COMTypelibraries | excel1/src/main/java/eu/doppel_helix/jna/tlb/excel1/PivotFilters.java |
package eu.doppel_helix.jna.tlb.excel1;
import com.sun.jna.platform.win32.COM.util.annotation.ComInterface;
import com.sun.jna.platform.win32.COM.util.annotation.ComMethod;
import com.sun.jna.platform.win32.COM.util.annotation.ComProperty;
import com.sun.jna.platform.win32.COM.util.IDispatch;
import com.sun.jna.platf... |
johnwilldonicely/LDAS | source/xf_expand1_f.c | <filename>source/xf_expand1_f.c
/*
<TAGS>signal_processing transform</TAGS>
[JRH] 23 November 2015
DESCRIPTION:
Expand a series of numbers so there are a user-defined number of elements [setn]
Data is duplicated as required
Alters input array
NAN values will be ignored, but INF will affect the results
USES:
- ... |
KnightAndroid/wanandroid | library_util/src/main/java/com/knight/wanandroid/library_util/SystemUtils.java | package com.knight.wanandroid.library_util;
import android.app.Activity;
import android.app.ActivityManager;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.Pack... |
chpatel3/coherence-cpp-extend-client | include/public/coherence/lang/cloneable_spec.hpp | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#ifndef COH_CLONEABLE_SPEC_HPP
#define COH_CLONEABLE_SPEC_HPP
#include "coherence/lang/compatibility.hpp"
#include "coherence/lang/class_spec... |
unverbraucht/cybergarage-upnp | core/src/main/java/org/cybergarage/soap/SOAPRequest.java | <gh_stars>100-1000
/******************************************************************
*
* CyberSOAP for Java
*
* Copyright (C) <NAME> 2002
*
* File: SOAPRequest.java
*
* Revision;
*
* 12/11/02
* - first revision.
* 02/13/04
* - <NAME> <<EMAIL>>, <NAME> <<EMAIL>>.
* - Added XML header, <?xml version=\"1.0\"?> to set... |
kmhughes/robotbrains-examples | data/cloud/scala/org.robotbrains.data.cloud.timeseries.server/src/main/scala/org/robotbrains/support/web/server/netty/NettyHttpResponse.java | <reponame>kmhughes/robotbrains-examples
/*
* Copyright (C) 2013 Google Inc.
* Copyright (C) 2015 <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/licen... |
statful/statful-client-java | core/src/main/java/com/statful/client/core/api/ConfigurationBuilder.java | <reponame>statful/statful-client-java
package com.statful.client.core.api;
import com.statful.client.core.config.DefaultClientConfiguration;
import com.statful.client.domain.api.ClientConfiguration;
import com.statful.client.domain.api.Tags;
import com.statful.client.domain.api.Transport;
/**
* This is a {@link com.... |
CalmDownsy/TestPlatform | ulpay-platform/src/main/java/com/ulpay/testplatform/common/enums/MessageType.java | <filename>ulpay-platform/src/main/java/com/ulpay/testplatform/common/enums/MessageType.java<gh_stars>1-10
package com.ulpay.testplatform.common.enums;
import com.ulpay.testplatform.handler.message.BaseMessageParseHandler;
import com.ulpay.testplatform.handler.message.JsonMessageParseHandler;
import com.ulpay.testplatf... |
Wzzzx/chromium-crosswalk | content/browser/frame_host/frame_tree.cc | // Copyright 2013 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.
#include "content/browser/frame_host/frame_tree.h"
#include <stddef.h>
#include <queue>
#include <utility>
#include "base/bind.h"
#include "base/callba... |
21tretiak0101/briana-crm | briana-server/src/main/java/by/ttre16/briana/service/EventService.java | <filename>briana-server/src/main/java/by/ttre16/briana/service/EventService.java
package by.ttre16.briana.service;
import by.ttre16.briana.entity.Event;
import by.ttre16.briana.repository.EventRepository;
import by.ttre16.briana.transport.mapper.EventMapper;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstr... |
FationSH/MinusXL | MinusXL source code/minusXL_view/NewWorkbookWindow.java | package minusXL_view;
import minusXL_data_management.*;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Font;
public class NewWorkbookWindow extends... |
wachunga/ui-demo | tools/babel/index.js | // All babel config needs to be in one file, since babel caching mechanism won't check other "require"d modules/file
const packageRoots = require('../../lerna.json').packages;
const plugins = [
['@babel/plugin-proposal-decorators', { legacy: true }],
['@babel/plugin-proposal-class-properties', { loose: true }],
... |
varuntiwari27/rally | tests/unit/plugins/openstack/scenarios/zaqar/test_basic.py | # Copyright (c) 2014 Red Hat, 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 law or agreed to in writ... |
devium/argentum | argentum-api/api/models/config.py | from django.db import models
from rest_framework import serializers, viewsets, mixins
from rest_framework.filters import OrderingFilter
class Config(models.Model):
key = models.CharField(max_length=32, unique=True)
value = models.CharField(max_length=32)
def __str__(self):
return f'Config(id={sel... |
booknu/study-refactoring-book | martin-fowler-refactoring-2nd/test/chp10/ReplaceNestedConditionalwithGuardClauses2.test.js | <filename>martin-fowler-refactoring-2nd/test/chp10/ReplaceNestedConditionalwithGuardClauses2.test.js
import {expect} from 'chai';
import {adjustedCapital} from '../../src/chp10/ReplaceNestedConditionalwithGuardClauses2'
describe('adjustedCapital', () => {
it('give 0 adjusted capital if capital is 0 or less than 0'... |
moneytech/skift | kernel/device/zero.c | <filename>kernel/device/zero.c
/* Copyright © 2018-2020 <NAME>. */
/* This code is licensed under the MIT License. */
/* See: LICENSE.md */
#include <libsystem/cstring.h>
#include "kernel/file... |
jarreed0/ArchGE | docs/html/search/all_1.js | var searchData=
[
['b',['b',['../classInput.html#a0db44708450d98572cb324ac9f0daafb',1,'Input']]],
['background',['Background',['../classBackground.html',1,'']]],
['bypasssplash',['bypassSplash',['../classEngine.html#a3b9cf8a050f43e4e185748f7b2a3ded8',1,'Engine']]]
];
|
surajkn/brooklin | datastream-client/src/main/java/com/linkedin/datastream/DatastreamRestClient.java | <filename>datastream-client/src/main/java/com/linkedin/datastream/DatastreamRestClient.java
/**
* Copyright 2019 LinkedIn Corporation. All rights reserved.
* Licensed under the BSD 2-Clause License. See the LICENSE file in the project root for license information.
* See the NOTICE file in the project root for add... |
Lchangqing/reservation | front/src/models/searchRePage.js | /* eslint-disable radix */
import { getReByName, getSuitsById, getMenusById } from '../services/restaurant';
export default {
namespace: 'searchRePage',
state: {
searchRes: [],
searchWords: '',
layout: null,
menus: []
},
effects: {
*getRestaurant(action, { call, put }) {
... |
bailuk/TLG | tlg_gnome/src/main/java/ch/bailu/tlg_gnome/BaseContext.java | package ch.bailu.tlg_gtk;
import org.gnome.gdk.RGBA;
import ch.bailu.tlg.PlatformContext;
import ch.bailu.tlg.StateRunning;
import ch.bailu.tlg.TlgPoint;
import ch.bailu.tlg.TlgRectangle;
public class BaseContext extends PlatformContext {
private static final int PALETTE_RESERVED=5;
private static final int... |
NYCMOTI/open-bid | app/presenters/pluralize.rb | class Pluralize
include ActionView::Helpers::TextHelper
attr_reader :number, :word
def initialize(number:, word:)
@number = number
@word = word
end
def to_s
pluralize(number, word)
end
end
|
Shoothzj/go_demo | demo_base/slice/slice_init_test.go | package slice
import (
"fmt"
"testing"
)
func Test_SliceInit1(t *testing.T) {
aux := make([]int, 5)
aux[0] = 1
aux[1] = 2
aux[2] = 3
aux[3] = 4
aux[4] = 5
fmt.Println(aux)
}
func Test_SliceInit2(t *testing.T) {
aux := [5]int{1, 2, 3, 4, 5}
fmt.Println(aux)
}
func Test_SliceInit3(t *testing.T) {
aux := [... |
reyou/Ggg.VueJs | apps/app-web/scrimba.com/Vuex-Documentation/intro12-Modules-SubModules/src/index.js | import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
const moduleA = {
namespaced: true,
state: {
count: 3
},
mutations: {
increment(state) {
state.count++;
}
},
getters: {
doubleCount(state) {
return state.count * 2;
}
},
actions: {
incrementIfOdd({ state... |
Daniel-Tilley/College | FYP/RestAPI/TrainingPalAPI/api_app/dao/target_dao.py | <reponame>Daniel-Tilley/College
from api_app.config.database import DataBase
from api_app.constants.database.targets_table import TargetsTable
from api_app.helpers.dao_helper import DAOHelper
from api_app.helpers.query_builder import QueryBuilder
class TargetDao:
def __init__(self):
self.db = DataBase.Get... |
slaclab/kpix | old-software/kpixSw/util/read_example.cc | <gh_stars>0
//-----------------------------------------------------------------------------
// File : read_example.cc
// Author : <NAME> <<EMAIL>>
// Created : 10/31/2008
// Project : Kpix Software Package
//-----------------------------------------------------------------------------
// De... |
knime-mpicbg/HCS-Tools | de.mpicbg.knime.hcs.core/src/de/mpicbg/knime/hcs/core/Excel2003WriterUtils.java | package de.mpicbg.knime.hcs.core;
import de.mpicbg.knime.hcs.core.model.Plate;
import de.mpicbg.knime.hcs.core.model.Well;
import de.mpicbg.knime.hcs.core.util.StringTable;
import de.mpicbg.knime.hcs.core.view.color.ScreenColorScheme;
import jxl.Workbook;
import jxl.read.biff.BiffException;
import jxl.write.Label;
imp... |
yingxx26/MicroCommunity | service-report/src/main/java/com/java110/report/bmo/reportOwnerPayFee/impl/UpdateReportOwnerPayFeeBMOImpl.java | package com.java110.report.bmo.reportOwnerPayFee.impl;
import com.java110.core.annotation.Java110Transactional;
import com.java110.intf.report.IReportOwnerPayFeeInnerServiceSMO;
import com.java110.po.reportOwnerPayFee.ReportOwnerPayFeePo;
import com.java110.report.bmo.reportOwnerPayFee.IUpdateReportOwnerPayFeeBMO;
imp... |
sirinath/Harmony | jdktools/modules/jdktools/src/main/java/org/apache/harmony/tools/appletviewer/Main.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... |
greatanan/rocketmq-all | namesrv/src/main/java/org/apache/rocketmq/namesrv/processor/DefaultRequestProcessor.java |
package org.apache.rocketmq.namesrv.processor;
import io.netty.channel.ChannelHandlerContext;
import java.io.UnsupportedEncodingException;
import java.util.Properties;
import java.util.concurrent.atomic.AtomicLong;
import org.apache.rocketmq.common.DataVersion;
import org.apache.rocketmq.common.MQVersion;
import org.... |
pierce-m/p4c | test/unittests/transform1.cpp | /*
Copyright 2013-present Barefoot Networks, 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 law or agreed to in ... |
viadee/javaAnchorAdapters | DefaultConfigsExtension/src/main/java/de/viadee/xai/anchor/adapter/tabular/util/SerializableSupplier.java | <filename>DefaultConfigsExtension/src/main/java/de/viadee/xai/anchor/adapter/tabular/util/SerializableSupplier.java
package de.viadee.xai.anchor.adapter.tabular.util;
import java.io.Serializable;
import java.util.function.Supplier;
/**
* {@link Supplier} interface which is {@link Serializable}
*/
@FunctionalInterfa... |
Egg4/microfarm-app | public/js/app/container/popup-container.js | 'use strict';
define([
'jquery',
'underscore',
'lib/container/container',
'app/view/popup/error-popup',
'app/view/popup/confirm-popup',
'app/view/popup/delete-popup',
'app/view/popup/menu-popup',
], function ($, _, Container,
ErrorPopup,
ConfirmPopup,
... |
myriadrf/lms-suite | LMS7002M/lms7suite/controlPanelGUI/dlgRegisterMap.h | <reponame>myriadrf/lms-suite<filename>LMS7002M/lms7suite/controlPanelGUI/dlgRegisterMap.h
/**
@file dlgRegisterMap.h
@author <NAME>
*/
#ifndef DLGREGISTERMAP_H
#define DLGREGISTERMAP_H
//(*Headers(dlgRegisterMap)
#include <wx/dialog.h>
class wxGrid;
class wxStaticText;
class wxFlexGridSizer;
class wxButton;
class wx... |
andrej59/app-work | spring/src/main/java/ru/ajana/work/spring/controller/MainRestController.java | <gh_stars>0
package ru.ajana.work.spring.controller;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.R... |
linliff/AndroidGo | app/src/main/java/com/github/hailouwang/demosforapi/widget/lifecycle/RecyclerViewAdapter.java | package com.github.hailouwang.demosforapi.widget.lifecycle;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.github.hailouwang.demosforapi.widget.recyclerview.test1.vh.BaseRecyclerViewAdapterVh1;
import com.github.hailouwang.demosforapi.w... |
giuseppe/quay | static/js/directives/ui/set-repo-permissions.js | /**
* An element which displays a table for setting permissions for an entity to repositories under
* a namespace.
*/
angular.module('quay').directive('setRepoPermissions', function () {
var directiveDefinitionObject = {
priority: 0,
templateUrl: '/static/directives/set-repo-permissions.html',
replace:... |
khuebeo/scrape | src/NestedBlock/SharpBlock/BinaryComparison/ComparisonE.cc | #include <string>
#include <stdexcept>
#include <algorithm>
#include "NestedBlock/SharpBlock/BinaryComparison/ComparisonE.h"
#include <memory>
bool ComparisonE::getBool() const
{
return left->getValue()==right->getValue();
}
|
Mario-Kart-Felix/AopArms | aop-arms/src/main/java/cn/com/superLei/aoparms/aspect/InterceptAspect.java | <gh_stars>100-1000
package cn.com.superLei.aoparms.aspect;
import android.text.TextUtils;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import cn.com.superLei.aoparms.AopArms;
import cn.c... |
kvpradap/py_entitymatching | py_entitymatching/explorer/pandastable/pandastable_wrapper.py | <filename>py_entitymatching/explorer/pandastable/pandastable_wrapper.py
try:
from tkinter import *
except ImportError as e:
from Tkinter import *
from py_entitymatching.utils.validation_helper import validate_object_type
import pandas as pd
def data_explore_pandastable(df):
"""
Wrapper function for p... |
Amity-Network/amity | contrib/depends/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/WebKit.framework/Versions/A/Headers/HIWebView.h | /*
* Copyright (C) 2004, 2005 Apple Inc. 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
* notice, this list of ... |
mtcrawshaw/meta-world | meta/report/plot.py | <gh_stars>1-10
""" Plotting for performance metrics. """
from typing import Dict, List, Union, Any
import numpy as np
import matplotlib.pyplot as plt
from meta.utils.metrics import Metrics
def plot(
metrics: Union[Metrics, Dict[str, Metrics]],
plot_path: str,
summary: Dict[str, Any] = None,
) -> None:
... |
mankeyl/elasticsearch | server/src/main/java/org/elasticsearch/search/RescoreDocIds.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... |
foxsake/infuzion-sgp | kernel/common/arch/arm/mach-s5pc100/mach-smdkc100.c | /* linux/arch/arm/mach-s5pc100/mach-smdkc100.c
*
* Copyright 2009 Samsung Electronics Co.
* Author: <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*/
#in... |
Jumpscale/ays9 | templates/nodes/node.kvm/actions.py | def install(job):
prefab = job.service.executor.prefab
data = job.service.model.data
name = job.service.name
image = job.service.producers['image_os'][0]
image_name = image.model.data.url.split('/')[-1]
nics = data.nics
vm = prefab.virtualization.kvm.machines.create(
name=name,
... |
mbarall/opensha-dev | src/scratch/kevin/BinaryFileRandomWriteTest.java | package scratch.kevin;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FilterOutputStream;
import java.io.IOException;
import java.io.RandomAccessFile;
public class BinaryFileRandomWriteTest {
priv... |
lgoldstein/communitychest | chest/base-utils/jmx/src/main/java/net/community/chest/jmx/AbstractDynamicMBean.java | <filename>chest/base-utils/jmx/src/main/java/net/community/chest/jmx/AbstractDynamicMBean.java
package net.community.chest.jmx;
import javax.management.Attribute;
import javax.management.AttributeList;
import javax.management.DynamicMBean;
import net.community.chest.reflect.ClassUtil;
/**
* <P>Copyright 2007 as per... |
ele-dev/IT-S_GameClient | src/GamePieces/SniperPiece.java | <filename>src/GamePieces/SniperPiece.java
package GamePieces;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.Shape;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.geom.Arc2D;
import javax.swing.Timer;
impo... |
shisheng-1/tapestry-5 | tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/def/ContributionDef.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 ... |
kruegener/AutoPas | src/autopas/iterators/SingleCellIteratorWrapper.h | /**
* @file SingleCellIteratorWrapper.h
*
* @date 31 May 2018
* @author seckler
*/
#pragma once
#include "autopas/iterators/SingleCellIteratorInterface.h"
#include "autopas/utils/ExceptionHandler.h"
namespace autopas {
/**
* SingleCellIteratorWrapper class is the main class visible to the user to iterate over ... |
vusec/dsn-2016-osiris | llvm/tools/hypermemloganalyze/testpicker/testpicker.c | <reponame>vusec/dsn-2016-osiris
#include <assert.h>
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "coverage.h"
#include "debug.h"
#include "function.h"
#include "helper.h"
#include "minixtestlogsummarize.h"
#include "minixteststats.h"
#in... |
whywhywhyw/o3de | Gems/AWSCore/Code/Source/ResourceMapping/AWSResourceMappingConstants.h | <reponame>whywhywhyw/o3de
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
namespace AWSCore
{
static constexpr const char AWSChi... |
leandog/brazenhead | features/step_definitions/robotium_steps.rb | <filename>features/step_definitions/robotium_steps.rb
When /^I do nothing but "(.*?)"$/ do |method|
@driver.send method
end
Then /^I should receive "(.*?)"$/ do |json|
@driver.last_response.body.should match json
end
When /^I call a method with an integer$/ do
@driver.scroll_up_list(0)
end
When /^I call a meth... |
kahammond/kontent-docs-samples | android/filtering-content/GetItemById.java | // DocSection: filtering_get_item_by_id
List<object> items = deliveryService.<object>items()
// Gets item by its ID
.equalsFilter("system.id", "2f7288a1-cfc8-47be-9bf1-b1d312f7da18")
// EndDocSection
|
charbu01/galen | src/test/java/net/mindengine/galen/tests/action/GalenPageActionRunJavascriptTest.java | <gh_stars>0
/*******************************************************************************
* Copyright 2014 <NAME> http://mindengine.net
*
* 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
*
... |
szerfas1/or-tools | docs/cpp_linear/search/enumvalues_10.js | var searchData=
[
['xpress_5flinear_5fprogramming_1807',['XPRESS_LINEAR_PROGRAMMING',['../classoperations__research_1_1_m_p_solver.html#a76c87990aabadd148304b95332a60ff8a3097f16057930e83bce90546640bdd82',1,'operations_research::MPSolver']]],
['xpress_5fmixed_5finteger_5fprogramming_1808',['XPRESS_MIXED_INTEGER_PROG... |
best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/c-c++-common/raw-string-9.c | // Make sure that we properly handle trigraphs in raw strings when
// trigraphs are disabled, too.
// { dg-options "-std=gnu99" { target c } }
// { dg-options "-std=gnu++0x" { target c++ } }
// { dg-do run }
const char b[] = "??>"; // { dg-message "-trigraphs" }
const char a[] = R"(??>??)??/
??)";
#define TEST(str, ... |
sammiler/GDStash_Pro | src/org/gdstash/ui/character/GDCharShrineAct1Pane.java | <filename>src/org/gdstash/ui/character/GDCharShrineAct1Pane.java
/* */ package org.gdstash.ui.character;
/* */ import java.awt.*;
/* */
/* */ import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/* */ import java.util.LinkedList;
import java.util.List;
/* */ import javax.swin... |
alissonkbprado/orange-talents-07-template-ecommerce | src/main/java/br/com/zupacademy/alissonprado/mercadolivre/model/ImagemProduto.java | <filename>src/main/java/br/com/zupacademy/alissonprado/mercadolivre/model/ImagemProduto.java<gh_stars>0
package br.com.zupacademy.alissonprado.mercadolivre.model;
import org.hibernate.validator.constraints.URL;
import org.springframework.util.Assert;
import javax.persistence.*;
import javax.validation.constraints.Not... |
EnanderW/Minestom | src/main/java/net/minestom/server/event/EntityEvent.java | package net.minestom.server.event;
import net.minestom.server.entity.Entity;
import org.jetbrains.annotations.NotNull;
public class EntityEvent extends Event {
protected final Entity entity;
public EntityEvent(@NotNull Entity entity) {
this.entity = entity;
}
/**
* Gets the entity of t... |
LarryNguyen/ECSim- | INET_EC/physicallayer/contract/packetlevel/IPathLoss.h | //
// Copyright (C) 2013 OpenSim Ltd.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program i... |
yura-hb/sesame-sampled-pairs | samples/36/b.java | <filename>samples/36/b.java
import java.util.LinkedList;
class MemoryHistory implements History {
/**
* Return the content of the current buffer.
*/
public CharSequence current() {
if (index >= size()) {
return "";
}
return items.get(index);
}
private int index = 0;
private f... |
google-cloud-sdk-unofficial/google-cloud-sdk | lib/googlecloudsdk/command_lib/beyondcorp/app/connectors/hooks.py | # -*- coding: utf-8 -*- #
# Copyright 2021 Google LLC. 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 requir... |
fciubotaru/z-pec | ZimbraServer/src/java-test/com/zimbra/cs/service/mail/SearchTest.java | /*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2012 Zimbra, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
... |
ACS106129/uml-editor | src/uml/listener/tool/ToolListenerStub.java | package uml.listener.tool;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ComponentAdapter;
import uml.listener.Listener;
public class ToolListenerStub extends ComponentAdapter implements Listener, ActionListener {
@Override
public v... |
kapw001/Workcation | app/src/main/java/com/droidsonroids/workcation/screens/main/map/DetailsFragment.java | package com.droidsonroids.workcation.screens.main.map;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.transi... |
antoinelefloch/cpp-netlib | libs/network/example/rss/main.cpp | // Copyright (c) <NAME> 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include "rss.hpp"
#include <boost/network/protocol/http/client.hpp>
#include <boost/foreach.hpp>
#include <i... |
b15145456/learning_cpp | Operator Overloading/main.cpp | <reponame>b15145456/learning_cpp
#include <iostream>
#include "Sally.h"
#include "Sally.cpp"
using namespace std;
int main(){
Sally a(34);
Sally b(21);
Sally c;
c = a + b;
cout << c.num << endl;
} |
VitaliPekelis/Android-Interviews | src/arrays/MergeSortedArray.java | <reponame>VitaliPekelis/Android-Interviews
package arrays;
import java.util.Arrays;
public class MergeSortedArray {
/**
* 88. Merge Sorted Array (little changed)
* https://leetcode.com/problems/merge-sorted-array/
* */
public static int[] mergeSortedArray(int[] numbers1, int[] numbers2) {
... |
Process-Creative/Slate | packages/slate-ajax-collection/src/filter/CollectionFilters.js | <reponame>Process-Creative/Slate
import { Filter, TagFilter, OPERATION_AND } from './filters/';
export class CollectionFilters {
constructor(template) {
this.template = template;
this.filters = [];
this.facets = [];
}
isFiltering() {
return this.filters.some(f => {
if(f.getSettings() && f... |
gummybuns/dorm | tests/cerami/datatype/translator/integer_translator_test.py | from tests.helpers.testbase import TestBase
from cerami.datatype import Number
from cerami.datatype.translator import IntegerTranslator
class TestIntegerTranslator(TestBase):
def setUp(self):
self.dt = Number()
self.translator = IntegerTranslator(self.dt)
def test_format_for_dynamodb(self):
... |
PolRod/aleph | lib/github/commit.rb | module Github
module Commit
ENDPOINT = URI.join(Github::ROOT_ENDPOINT, 'repos/', "#{Github::OWNER}/", "#{Github::REPO}/", 'git/', 'commits').to_s
AUTHOR_KEYS = %w(
name
email
date
)
def self.get(sha)
raise 'invalid sha #{sha} when retrieving github commit' unless Github.valid... |
KwangjoJeong/Boost | Example/interprocess_09/main.cpp | #include <boost/interprocess/managed_shared_memory.hpp>
#include <iostream>
using namespace boost::interprocess;
int main()
{
shared_memory_object::remove("Boost");
managed_shared_memory managed_shm{open_or_create, "Boost", 1024};
int *i = managed_shm.find_or_construct<int>("Integer")(99);
std::cout << *i << ... |
warchef/TaViNAV | src/main/java/hu/warchef/nav/domain/alpha/InvoiceQueryParamsType.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.03.31 ... |
raggi/xgt | libraries/vendor/rocksdb/db/compaction/compaction_service_test.cc | <gh_stars>10-100
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#ifndef ROCKSDB_LITE
#include "db/db_te... |
rsdoherty/azure-sdk-for-python | sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/operations/_query_operations.py | # coding=utf-8
# --------------------------------------------------------------------------
# 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.
# Changes may ... |
kaist-plrg/jest | src/main/scala/kr/ac/kaist/jest/model/algorithm/AsyncArrowFunction1Contains0.scala | <filename>src/main/scala/kr/ac/kaist/jest/model/algorithm/AsyncArrowFunction1Contains0.scala
package kr.ac.kaist.jest.model
import kr.ac.kaist.jest.ir._
import kr.ac.kaist.jest.ir.Parser._
object AsyncArrowFunction1Contains0 extends Algorithm {
val name: String = "AsyncArrowFunction1Contains0"
val length: Int = 0... |
abakus-ntnu/abacash-api | src/models/user.model.js | <reponame>abakus-ntnu/abacash-api
import Bluebird from 'bluebird';
import bcrypt from 'bcrypt';
import _ from 'lodash';
import { createToken } from '../auth';
import { sendInviteEmail, sendResetEmail } from '../components/mail';
Bluebird.promisifyAll(bcrypt);
export default function(sequelize, DataTypes) {
const Use... |
jmgilman/fapi | app/tests/core/storage/test_redis.py | <filename>app/tests/core/storage/test_redis.py
from unittest import mock
from app.core import settings
from app.core.storage.redis import RedisConfig, RedisStorage
import redis
@mock.patch("bdantic.models.BeancountFile.parse")
@mock.patch("bdantic.models.BeancountFile.decompress")
@mock.patch("beancount.loader.load... |
viticm/web-pap | server/Server/Skills/SpecialObjLogics.h | ///////////////////////////////////////////////////////////////////////////////
// 文件名:SpecialObjLogics.h
// 程序员:高骐
// 功能说明:所有特殊对象逻辑的头文件总合
//
// 修改记录:
//
//
//
///////////////////////////////////////////////////////////////////////////////
#ifndef SPECIALOBJLOGICS_H
#define SPECIALOBJLOGICS_H
#include "SpecialObjLogi... |
anuragxel/generic-document-library | src/detail/libre_api/libre_chart_func.cpp | //! \file
//! \brief Libre Office Cell Related Internal Functions
#ifndef _LIBRE_CHART_FUNC_CPP
#define _LIBRE_CHART_FUNC_CPP
// Copyright <NAME> 2015.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE... |
supriyasingh01/github_basics | Internetworking Distributed Project/Kernal/linux-3.6.3/arch/m68k/include/asm/m54xxacr.h | /*
* Bit definitions for the MCF54xx ACR and CACR registers.
*/
#ifndef m54xxacr_h
#define m54xxacr_h
/*
* Define the Cache register flags.
*/
#define CACR_DEC 0x80000000 /* Enable data cache */
#define CACR_DWP 0x40000000 /* Data write protection */
#define CACR_DESB 0x20000000 /* Enable data store buffer */
#de... |
giovannistanco/contiki-ng | os/net/app-layer/coap/oscore-support/sliding-window.c | <reponame>giovannistanco/contiki-ng
#include "sliding-window.h"
#include "assert.h"
/* Log configuration */
#include "sys/log.h"
#define LOG_MODULE "oscore"
#ifdef LOG_CONF_LEVEL_OSCORE
#define LOG_LEVEL LOG_CONF_LEVEL_OSCORE
#else
#define LOG_LEVEL LOG_LEVEL_WARN
#endif
void oscore_sliding_window_init(oscore_slidin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.