repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
mathiewz/modernized-slick | src/main/java/com/github/mathiewz/slick/svg/inkscape/EllipseProcessor.java | package com.github.mathiewz.slick.svg.inkscape;
import org.w3c.dom.Element;
import com.github.mathiewz.slick.geom.Ellipse;
import com.github.mathiewz.slick.geom.Shape;
import com.github.mathiewz.slick.geom.Transform;
import com.github.mathiewz.slick.svg.Diagram;
import com.github.mathiewz.slick.svg.Figure;
i... |
cpopescu/whispercast | whisperstreamlib/f4v/frames/header.h | <reponame>cpopescu/whispercast<filename>whisperstreamlib/f4v/frames/header.h
// Copyright (c) 2009, Whispersoft s.r.l.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistribution... |
katrinazhu/game_engine | src/author/view/pages/level_editor/windows/level_edit_window/ILevelEditWindowInternal.java | /**
*
*/
package author.view.pages.level_editor.windows.level_edit_window;
/**
* @author <NAME> (ct168)
*
*/
interface ILevelEditWindowInternal {
void close();
}
|
51breeze/es-javascript | core/Plugins.js | <filename>core/Plugins.js
const plugins=new Map();
module.exports={
register(name, plugin){
plugins.set(name, plugin);
},
getPlugin(name){
return plugins.get(name);
}
} |
danielatomoiaga/openEHR_SDK | client/src/test/java/org/ehrbase/client/classgenerator/examples/openereactcarecomposition/definition/StoryHistoryObservation.java | <gh_stars>0
package org.ehrbase.client.classgenerator.examples.openereactcarecomposition.definition;
import com.nedap.archie.rm.datastructures.Cluster;
import com.nedap.archie.rm.generic.PartyProxy;
import org.ehrbase.client.annotations.Archetype;
import org.ehrbase.client.annotations.Entity;
import org.ehrbase.client... |
wgsyd/wgtf | src/core/lib/tf_types/vector4.hpp | <reponame>wgsyd/wgtf
#pragma once
#include "vector3.hpp"
namespace wgt
{
class Vector4
{
public:
float x;
float y;
float z;
float w;
Vector4() : x(0.f), y(0.f), z(0.f), w(0.f)
{
}
Vector4(const Vector4& v) : x(v.x), y(v.y), z(v.z), w(v.w)
{
}
Vector4(const Vector3& v, float w_) : x(v.x), y(v.y), z(v.z),... |
kellyselden/ember-cli-dependency-graph | test/fixtures/code-corps-ember/code-corps-ember/components/tooltip-on-element.js | <filename>test/fixtures/code-corps-ember/code-corps-ember/components/tooltip-on-element.js
define('code-corps-ember/components/tooltip-on-element', ['exports', 'code-corps-ember/config/environment', 'ember-tooltips/components/tooltip-on-element'], function (exports, _environment, _tooltipOnElement) {
'use strict';
... |
iMigno/click_framework | src/main/java/com/clickntap/smart/SmartUserAgent.java | <filename>src/main/java/com/clickntap/smart/SmartUserAgent.java
package com.clickntap.smart;
public class SmartUserAgent {
private String channel;
private String header;
private String ip;
private String host;
public SmartUserAgent(SmartContext smartContext) {
header = smartContext.getRequest().getHeader("User... |
jfsong1122/iostest | objc/Project/Pods/Headers/Public/BDWebKitToB/BDWebSSLPlugin.h | <reponame>jfsong1122/iostest
//
// BDWebSSLPlugin.h
// BDWebKit
//
// Created by 温宇涛 on 2020/2/21.
//
#import <BDWebCoreToB/IWKPluginObject.h>
NS_ASSUME_NONNULL_BEGIN
@interface BDWebSSLPlugin : IWKPluginObject <IWKInstancePlugin>
@end
NS_ASSUME_NONNULL_END
|
ibara/LiteBSD-Ports | comms/zmtx-zmrx/version.h | /* the release version number as printed by the programs */
#define VERSION "1.02"
|
creatubbles/ctb-mcmod | src/main/java/com/creatubbles/repack/endercore/client/gui/widget/GuiScrollableList.java | package com.creatubbles.repack.endercore.client.gui.widget;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.renderer.Tessellator;
imp... |
robertsawko/proteus | scripts/readFun.py | <filename>scripts/readFun.py
#! /usr/bin/env python
from numpy import *
import proteus
from proteus.MeshTools import *
from proteus.FemTools import *
## \ingroup scripts
#
# \file readFun.py
#
# \brief A script for reading an ADH .3dm mesh and .data file to build a finite element function.
def readFun():
from opt... |
vbauer/caesar | src/test/java/com/github/vbauer/caesar/runner/impl/FutureMethodRunnerTest.java | <filename>src/test/java/com/github/vbauer/caesar/runner/impl/FutureMethodRunnerTest.java<gh_stars>100-1000
package com.github.vbauer.caesar.runner.impl;
import com.github.vbauer.caesar.basic.BasicRunnerTest;
import com.github.vbauer.caesar.exception.MissedSyncMethodException;
import org.junit.Assert;
import org.junit.... |
job-hunter-toolkit/job-hunter-toolk | jobpostings/uber.go | package jobpostings
import (
"context"
"encoding/json"
"fmt"
"net/http"
"strings"
)
type uberInfo struct {
//Status string `json:"status"`
Data struct {
Results []struct {
ID int `json:"id"`
Title string `json:"title"`
//Description string `json:"description"`
//InternalDescription ... |
trungtuan/motech | platform/event/src/test/java/org/motechproject/event/it/EventHandlerForServerEventRelayTransactionIT.java | <filename>platform/event/src/test/java/org/motechproject/event/it/EventHandlerForServerEventRelayTransactionIT.java<gh_stars>1-10
package org.motechproject.event.it;
import org.motechproject.event.MotechEvent;
import org.motechproject.event.listener.annotations.MotechListener;
import org.springframework.stereotype.Com... |
KerakTelor86/AlgoCopypasta | source/01_Miscellaneous/07_Random Primes.cpp | 36671 74101 724729 825827 924997 1500005681 2010408371 2010405347
|
openstack-atlas/atlas-lb | core-api/core-common-api/src/test/java/org/opestack/atlas/api/validation/validator/HealthMonitorValidatorTest.java | <gh_stars>1-10
package org.opestack.atlas.api.validation.validator;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.runners.Enclosed;
import org.junit.runner.RunWith;
import org.openstack.atlas.api.validation.result.ValidatorResult;
import org.openstack.atlas.api.... |
djewsbury/XLE | RenderCore/Techniques/ShaderVariationSet.cpp | // Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "ShaderVariationSet.h"
#include "ParsingContext.h"
#include "../Types.h"
#include "../FrameBufferDesc.h"
#include "../UniformsStream.h"
#include "../BufferView.h"
#inc... |
thejihuijin/realsense_sdk | sdk/src/cameras/playback/include/playback_device_impl.h | // License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2016 Intel Corporation. All Rights Reserved.
#pragma once
#include <memory>
#include <mutex>
#include <thread>
#include <queue>
#include <condition_variable>
#include "playback_device_interface.h"
#include "disk_read_interface.h"
#include "rs_... |
xyxiaoyou/snappy-store | tests/core/src/main/java/com/gemstone/gemfire/internal/size/ObjectTraverserPerf.java | /*
* Copyright (c) 2010-2015 Pivotal Software, 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 req... |
FAD95/NEXT.JS-Course | node_modules/@iconify/icons-mdi/src/violin.js | <gh_stars>1-10
let data = {
"body": "<path d=\"M11 2a1 1 0 0 0-1 1v6a.5.5 0 0 0 .5.5H12a.5.5 0 0 1 .5.5a.5.5 0 0 1-.5.5h-1.5C9.73 10.5 9 9.77 9 9V5.16C7.27 5.6 6 7.13 6 9v1.5A2.5 2.5 0 0 1 8.5 13A2.5 2.5 0 0 1 6 15.5V17c0 2.77 2.23 5 5 5h2c2.77 0 5-2.23 5-5v-1.5a2.5 2.5 0 0 1-2.5-2.5a2.5 2.5 0 0 1 2.5-2.5V9c0-2.22-1.7... |
MinSomai/uadmin | test.go | <reponame>MinSomai/uadmin
package uadmin
import (
"errors"
"fmt"
"github.com/sergeyglazyrindev/uadmin/blueprint/auth"
interfaces3 "github.com/sergeyglazyrindev/uadmin/blueprint/auth/interfaces"
"github.com/sergeyglazyrindev/uadmin/core"
"github.com/sergeyglazyrindev/uadmin/utils"
"github.com/stretchr/testify/su... |
swkim01/stm32lib | stm32lib/ssd1306.c | /*
*----------------------------------------------------------------------
* Copyright (C) <NAME>, 2018
*
* 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, inc... |
julianladisch/stripes-cli | lib/doc/yargs-help-parser.js | /*
Recursively parses Yargs command --help output to generate a command tree for use in generating a CLI command reference.
This is currently specific to stripes-cli, but a future refactor could make it general purpose for other Yargs-based CLIs
*/
const childProcess = require('child_process');
const logger = requi... |
d4rkr00t/aik | flow-typed/npm-custom/insight.js | declare module "insight" {
declare module.exports: Function;
}
|
unclealex72/west-ham-calendar | app/logging/Fatal.scala | package logging
import cats.data.NonEmptyList
import model.FatalError
/**
* A service for logging fatal errors.
* Created by alex on 28/02/16.
*/
trait Fatal {
def fail(errors: NonEmptyList[String], optionalException: Option[Throwable], optionalLinkBuilder: Option[FatalError => String])(implicit remoteStream:... |
PanDAWMS/panda-jedi | pandajedi/jeditest/jobSplitterTest.py | <reponame>PanDAWMS/panda-jedi<gh_stars>1-10
# logger
from pandacommon.pandalogger.PandaLogger import PandaLogger
from pandajedi.jedicore.MsgWrapper import MsgWrapper
from pandajedi.jedicore.JediTaskBufferInterface import JediTaskBufferInterface
from pandajedi.jediddm.DDMInterface import DDMInterface
from pandajedi.jed... |
Mishco/99-problems-java | src/main/java/lists/P28.java | package lists;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static java.util.stream.Collectors.toList;
/**
* We suppose that a list (InList) contains elements that are lists themselves.
* The objective is to sort the elements of InList according to thei... |
xqueue/maileon-java-api-client | java-api-client/src/main/java/com/maileon/api/transactions/ImportContactReference.java | <reponame>xqueue/maileon-java-api-client
package com.maileon.api.transactions;
import java.io.Serializable;
public class ImportContactReference implements Serializable {
private Long id;
private String email;
private String externalId;
private Integer permission;
private String errorField;
... |
hellobagus/ifcasplus_web | js/highcharts-master/samples/issues/highcharts-4.1.5/1457-ranges-reversed-axis/demo.js | <gh_stars>0
$(function () {
QUnit.test('Reversed axis range', function (assert) {
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'columnrange',
inverted: false
},
yAxis: {
reverse... |
abhinotes/eventuate-local | eventuate-local-console/eventuate-local-console-client/src/reducers/subscription.js | <gh_stars>100-1000
/**
* Created by andrew on 12/13/16.
*/
import { handleActions } from 'redux-actions';
import Immutable, { Map, List } from 'immutable';
import invariant from 'invariant';
import { subscribedTypes } from '../actions/subscription';
export default handleActions({
[subscribedTypes]: (state, action)... |
scommons/scommons | ui/src/main/scala/scommons/client/ui/popup/OkPopup.scala | package scommons.client.ui.popup
import scommons.client.ui.{Buttons, UiSettings}
import scommons.client.util.ActionsData
import scommons.react._
import scommons.react.hooks._
case class OkPopupProps(message: String,
onClose: () => Unit,
image: Option[String] = None)
ob... |
knuu/Introduction_to_Computing_and_Programming_Using_Python | ch04/ex4-1-1.py | <reponame>knuu/Introduction_to_Computing_and_Programming_Using_Python<gh_stars>1-10
def isIn(s, t):
if len(s) > len(t):
s, t = t, s
for i in range(0, len(t)-len(s)+1):
if s == t[i:i+len(s)]:
return True
return False
if __name__ == '__main__':
print(isIn('hogefugafoobar', 'fo... |
kmdsbng/api-elements.js | packages/openapi3-parser/test/unit/parser/oas/parseSecuritySchemeObject-test.js | const { Fury } = require('fury');
const { expect } = require('../../chai');
const parse = require('../../../../lib/parser/oas/parseSecuritySchemeObject');
const Context = require('../../../../lib/context');
const { minim: namespace } = new Fury();
describe('Security Scheme Object', () => {
let context;
beforeEach... |
benja-M-1/homebrew-cask | Casks/mucommander.rb | cask "mucommander" do
version "0.9.5-1"
sha256 "476ffd9e271163513d9fde2d015d1da3f2777e54b913b10d4ef49ac7e016bae1"
# github.com/mucommander/mucommander/ was verified as official when first introduced to the cask
url "https://github.com/mucommander/mucommander/releases/download/#{version}/mucommander-#{version}.... |
leandrogonqn/Proyecto2017Seguros | dom/src/main/java/com/pacinetes/dom/polizaautomotor/PolizaAutomotor.java | <reponame>leandrogonqn/Proyecto2017Seguros<filename>dom/src/main/java/com/pacinetes/dom/polizaautomotor/PolizaAutomotor.java
/*******************************************************************************
* Copyright 2017 SiGeSe
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use... |
puneetarora2000/adkworks | HumiTemp/src/net/cattaka/android/humitemp/util/GraphDrawer.java |
package net.cattaka.android.humitemp.util;
import java.util.List;
import net.cattaka.android.humitemp.util.CtkCanvasUtil.Gravity;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
public class GraphDrawer {
public static class GraphAreaInfo {
public float padd... |
gina-alaska/gina-catalog | test/controllers/api/map_layers_controller_test.rb | require 'test_helper'
class Api::MapLayersControllerTest < ActionController::TestCase
def test_index
get :index, format: 'json'
assert_response :success
end
end
|
openedx/paragon | icons/es5/AirlineSeatFlatAngled.js | <reponame>openedx/paragon<filename>icons/es5/AirlineSeatFlatAngled.js<gh_stars>1-10
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key]... |
danghica/mokapot | mokapot/src/benchmark/java/xyz/acygn/mokapot/benchmarksuite/programs/sort/benchmarks/SortLocalBenchmark.java | package xyz.acygn.mokapot.benchmarksuite.programs.sort.benchmarks;
import java.io.IOException;
import java.rmi.NotBoundException;
import java.util.List;
import xyz.acygn.mokapot.benchmarksuite.benchmark.RemoteProcess;
import xyz.acygn.mokapot.benchmarksuite.programs.sort.HelperImpl;
import xyz.acygn.mokapot.benchmark... |
rolandomar/stheno | euryale/src/org/cracs/euryale/qos/medusa/medusa.cpp | <gh_stars>1-10
/*
* Copyright 2012 <NAME>, CRACS & INESC-TEC, DCC/FCUP
*
* 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
*
*... |
postillonmedia/app | src/components/steady/states/loggedOut/index.js | import { compose } from 'recompose';
import { ThemeManager, connectStyle } from '@postillon/react-native-theme';
import { i18n } from '@postillon/react-native-i18n';
import { Themes } from './../../../../constants/themes';
import styles from './styles';
import SteadyLoggedOutView from './SteadyLoggedOutView';
Theme... |
kubeform/provider-google-api | apis/monitoring/v1alpha1/notification_channel_types.go | /*
Copyright AppsCode Inc. and Contributors
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... |
HenryssonDaniel/teacup-java-core | src/test/java/io/github/henryssondaniel/teacup/core/assertion/AbstractCharSequenceAssertTest.java | <filename>src/test/java/io/github/henryssondaniel/teacup/core/assertion/AbstractCharSequenceAssertTest.java<gh_stars>0
package io.github.henryssondaniel.teacup.core.assertion;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import java.util.Locale;
import org.junit.jupiter.api.Test;
class Ab... |
sjyothi54/gatsby-theme-newrelic | packages/gatsby-theme-newrelic/src/components/SEO.js | import React from 'react';
import PropTypes from 'prop-types';
import { Helmet } from 'react-helmet';
import { graphql, useStaticQuery } from 'gatsby';
import useLocale from '../hooks/useLocale';
import path from 'path';
const SEO = ({ title, location, type, children }) => {
const {
site: { siteMetadata },
a... |
dujianxin/Windows-universal-samples | Samples/ComplexInk/cpp/pch.h | //
// Header for standard system include files.
//
#pragma once
#include <collection.h>
#include <ppltasks.h>
#include <wrl.h>
#include <wrl/client.h>
#include <d3d11_2.h>
#include <d2d1_2.h>
#include <d2d1effects_1.h>
#include <dwrite_2.h>
#include <wincodec.h>
#include <DirectXColors.h>
#include <Di... |
leapframework/framework | base/lang/src/main/java/leap/lang/el/ElConstantField.java | <reponame>leapframework/framework<gh_stars>10-100
/*
* Copyright 2014 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/lic... |
protegeproject/webprotege-owlapi-jackson | src/main/java/edu/stanford/protege/webprotege/jackson/OWLHasKeyAxiomImplMixin.java | <reponame>protegeproject/webprotege-owlapi-jackson
package edu.stanford.protege.webprotege.jackson;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.Nulls;
import org.s... |
Kelly9373/main | src/main/java/seedu/address/logic/parser/DeleteCommandParser.java | <filename>src/main/java/seedu/address/logic/parser/DeleteCommandParser.java
package seedu.address.logic.parser;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_PASSWORD;
import static seedu.address.logic.parser.CliSynta... |
hjc851/Dataset2-HowToDetectAdvancedSourceCodePlagiarism | Variant Programs/2-2/18/consignor/Limiter.java | <gh_stars>0
package consignor;
import spooler.AlterPlanner;
import spooler.GrrProgrammer;
import spooler.March;
import spooler.OberProgrammer;
import spooler.TreatedSynchronization;
import spooler.Workspace;
import spooler.PapsOrganizer;
import sim.ActMock;
import java.io.IOException;
import java.util.*;
public class... |
auto-flow/autoflow | autoflow/workflow/components/regression/catboost.py | from copy import deepcopy
from typing import Dict
import numpy as np
from autoflow.data_container import DataFrameContainer
from autoflow.workflow.components.iter_algo import LgbmIterativeMixIn
from autoflow.workflow.components.regression_base import AutoFlowRegressionAlgorithm
__all__ = ["CatBoostRegressor"]
clas... |
TaraBryn/testable-projects-fcc | cypress/integration/test-testable-projects.spec.js | /* global cy */
const projectPaths = require('../fixtures/project-fix.json');
describe('Test all projects', () => {
const project = Object.entries(projectPaths);
for (const [projectName, projectPath] of project) {
it('project ' + projectName + ' should work correctly', () => {
cy.checkProjectTests(proje... |
SINTEF/simapy | src/sima/riflex/blueprints/sncurve.py | #
# Generated with SNCurveBlueprint
from dmt.blueprint import Blueprint
from dmt.dimension import Dimension
from dmt.attribute import Attribute
from dmt.enum_attribute import EnumAttribute
from dmt.blueprint_attribute import BlueprintAttribute
from sima.sima.blueprints.namedobject import NamedObjectBlueprint
class SN... |
er3n/project4 | src/main/java/tr/com/heartsapiens/tedis/aop/DBLog.java | <filename>src/main/java/tr/com/heartsapiens/tedis/aop/DBLog.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 tr.com.heartsapiens.tedis.aop;
/**
*
* @author ers... |
crazypoo/PTools | PooToolsSource/PooTools_Example-Bridging-Header.h | //
// Use this file to import your target's public headers that you would like to expose to Swift.
//
#import "NSString+Regulars.h"
#import "UIButton+ImageTitleSpacing.h"
#import <WZLBadge/UIView+WZLBadge.h>
#import <SDWebImage/UIButton+WebCache.h>
#import "DOGobalFileManager.h"
|
xjie06109334/SOP | sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/api/service/param/ServiceInstanceParam.java | <gh_stars>1-10
package com.gitee.sop.adminserver.api.service.param;
import com.gitee.easyopen.doc.annotation.ApiDocField;
import com.gitee.easyopen.util.CopyUtil;
import com.gitee.sop.adminserver.bean.ServiceInstance;
import lombok.Data;
import javax.validation.constraints.NotBlank;
/**
* @author tanghc
*/
@Data
p... |
kkevn/LEDsign | app/src/main/java/com/kkevn/ledsign/ui/settings/SettingsFragment.java | /**
* SettingsFragment is the fragment containing the list of changeable application preferences.
*
* @author <NAME>
*/
package com.kkevn.ledsign.ui.settings;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.support.annotation.No... |
robatipoor/paste-file | src/main/java/org/robatipoor/pastefile/requests/AccessRequest.java | package org.robatipoor.pastefile.requests;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonAlias;
import org.robatipoor.pastefile.models.AccessType;
/**
* AccessRequest
*/
public class AccessRequest {
private String username;
@JsonAlias("access_type")
private AccessType accessTy... |
arsummers/python-data-structures-and-algorithms | challenges/count_triplets/test_count_triplets.py | import pytest
from count_triplets import count_triplets
def test_exists():
assert count_triplets
def test_two():
arr = [1, 2, 2, 4]
r = 2
expected = 2
actual = count_triplets(arr, r)
assert expected == actual
#2 triplets at [0, 1, 3], [0 2, 3]
def test_three():
arr = [1, 3, 9, 9, 27, ... |
zvr/Online-Self-Certification-Web-App | src/org/openchain/certification/UserSession.java | /**
* Copyright (c) 2016 Source Auditor 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 appli... |
raychorn/svn_Cordova_Code_Samples | mysoundboard/www/js/controllers.js | angular.module('mysoundboard.controllers', [])
.controller('HomeCtrl', function($scope, Sounds, $ionicPlatform) {
var getSounds = function() {
console.log('getSounds called');
Sounds.get().then(function(sounds) {
console.dir(sounds);
$scope.sounds = sounds;
});
}
$scope.$on('$ionicView.enter', func... |
fmedisov/homefinance | web/src/main/java/ru/medisov/home_finance/web/view/CurrencyView.java | <reponame>fmedisov/homefinance<gh_stars>0
package ru.medisov.home_finance.web.view;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
@Data
@Accessors(chain = true)
@NoArgsConstructor
public class CurrencyView {
private Long id;
private String name;
private String ... |
anuartapia/genetic_algorithms | implementacion/src/test/PopulationTest.java | import gaframework.*;
public class PopulationTest {
public static void main(String[] args) {
}
}
|
danadi7/tp | src/main/java/seedu/schedar/logic/commands/RetrieveCommand.java | package seedu.schedar.logic.commands;
import static java.util.Objects.requireNonNull;
import seedu.schedar.logic.CommandHistory;
import seedu.schedar.logic.commands.exceptions.CommandException;
import seedu.schedar.model.Model;
import seedu.schedar.model.task.Task;
/**
* Retrieves the recently deleted Task.
* Only... |
ksn-nsk/product-catalog-import-tool | productImport/productImportHandler.go | package productImport
import (
"fmt"
"go.uber.org/dig"
"log"
"os"
"regexp"
"ts/adapters"
"ts/config"
"ts/productImport/mapping"
"ts/productImport/ontologyRead"
"ts/productImport/ontologyRead/models"
"ts/productImport/ontologyValidator"
"ts/productImport/reports"
"ts/productImport/tradeshiftImportHandler"
... |
egg82/EventChain | Bukkit/src/main/java/ninja/egg82/events/internal/BukkitHandlerMapping.java | <reponame>egg82/EventChain<gh_stars>10-100
package ninja.egg82.events.internal;
import org.bukkit.event.Event;
import org.bukkit.event.EventPriority;
import org.jetbrains.annotations.NotNull;
import java.util.function.Function;
public class BukkitHandlerMapping<E extends Event, T> extends AbstractPriorityHandlerMapp... |
psiha/nt2 | modules/core/container/table/unit/predicates/issquare.cpp | <gh_stars>10-100
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
... |
mythnc/online-judge-solved-lists | UVa/UVa231/231_v2.c | <reponame>mythnc/online-judge-solved-lists
/* ACM 231 Testing the CATCHER
* mythnc
* 2012/01/15 21:19:58
* run time: 0.004
*/
#include <stdio.h>
#define MAXM 10000
void input(void);
int lds(void);
void binsearch(int, int, int);
int n;
int v[MAXM];
int catcher[MAXM];
int main(void)
{
int set, data;
se... |
touchhome/touchhome-bundle | zigbee/src/main/java/org/touchhome/bundle/zigbee/setting/ZigBeeDiscoveryDurationSetting.java | package org.touchhome.bundle.zigbee.setting;
import org.touchhome.bundle.api.setting.SettingPluginSlider;
public class ZigBeeDiscoveryDurationSetting implements SettingPluginSlider {
@Override
public Integer getMin() {
return 60;
}
@Override
public Integer getMax() {
return 254;
... |
mleitejunior/code-team-2020 | solutions/marcelo_leite/URI1002.java | <gh_stars>1-10
import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
double N = 3.14159d;
double raio = sc.nextDouble();
System.out.println("A... |
cmstar/go-logx | stdlogger_test.go | package logx
import (
"bytes"
"log"
"testing"
"github.com/stretchr/testify/assert"
)
func TestStdLogger(t *testing.T) {
buf := new(bytes.Buffer)
underlyingLogger := log.New(buf, "", 0)
stdLogger := NewStdLogger(underlyingLogger)
type args struct {
level Level
message string
keyValues []interface... |
dev-alissonalves/python-codes | scripts/4-condidionais-python/condicionais-aninhadas-python/ex036.py | # -*- coding: UTF-8 -*-
#Exercício Python 36: Escreva um programa para aprovar o empréstimo bancário para a compra de uma casa. Pergunte o valor da casa, o salário do comprador e em quantos anos ele vai pagar. A prestação mensal não pode exceder 30% do salário ou então o empréstimo será negado.
#CÓDIGO DE CORES PARA E... |
shekoocoder/telepathy | QtumJsIosServer/qtum-ios-develop/qtum wallet/Profile Flow/Contract/QStore/QStoreCoordinator.h | <reponame>shekoocoder/telepathy
//
// QStoreCoordinator.h
// qtum wallet
//
// Created by <NAME> on 09.08.17.
// Copyright © 2017 QTUM. All rights reserved.
//
#import "BaseCoordinator.h"
@interface QStoreCoordinator : BaseCoordinator <Coordinatorable>
@end
|
Tech-XCorp/visit-deps | windowsbuild/MSVC2017/ospray/1.6.1/include/ospray/visit/VisItImageComposite.h | // ======================================================================== //
// Copyright <NAME> //
// Scientific Computing and Image Institution //
// University of Utah //
// ... |
eyangch/competitive-programming | CSES/Introductory_Problems/creating_strings_i.cpp | #include <bits/stdc++.h>
#define f first
#define s second
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pii;
template <typename T1, typename T2>
ostream &operator <<(ostream &os, pair<T1, T2> p){os << p.first << " " << p.second; return os;}
template <typename T>
ostream &op... |
bmjames/intellij-haskforce | src/com/haskforce/parsing/srcExtsDatatypes/ImportSpecTopType.java | <filename>src/com/haskforce/parsing/srcExtsDatatypes/ImportSpecTopType.java<gh_stars>0
package com.haskforce.parsing.srcExtsDatatypes;
/**
* data ImportSpec l
* = IVar l (Name l) -- ^ variable
* | IAbs l (Name l) -- ^ @T@:
* -- the name of a class, datatype or type synonym.
... |
Hash-Checker/hash-checker | app/src/main/java/com/smlnskgmail/jaman/hashchecker/components/locale/api/Language.java | package com.smlnskgmail.jaman.hashchecker.components.locale.api;
import android.content.Context;
import androidx.annotation.NonNull;
import com.smlnskgmail.jaman.hashchecker.R;
import com.smlnskgmail.jaman.hashchecker.ui.bottomsheets.lists.ListItem;
public enum Language implements ListItem {
EN("English", "en"... |
anatawa12/intellij-community | platform/core-impl/src/com/intellij/psi/impl/ResolveScopeManager.java | <reponame>anatawa12/intellij-community
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.psi.impl;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
import com.intelli... |
yuvalbdgit/TEST | internal/commands/root.go | /*
Copyright (c) 2019 the Octant contributors. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package commands
import (
"fmt"
"log"
"os"
"github.com/spf13/cobra"
)
// Execute executes octant.
func Execute(version string, gitCommit string, buildTime string) {
// remove timestamp from log
log.SetFl... |
ro-msg-spring-training/online-shop-mariusfica10 | shop/src/main/java/ro/msg/learning/shop/controller/SupplierController.java | <gh_stars>0
package ro.msg.learning.shop.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapp... |
gianpietro1/manageiq-providers-openstack | app/models/manageiq/providers/openstack/cloud_manager/cloud_resource_quota.rb | class ManageIQ::Providers::Openstack::CloudManager::CloudResourceQuota < ::CloudResourceQuota
private
# quota_used methods defined for each known quota type
# if no method is provided for a quota type, then -1 is returned by
# method_missing (see parent)
VMS_POWER_FILTER = "power_state != 'unknown'"
def ... |
billwert/azure-sdk-for-java | sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/directconnectivity/StoreResult.java | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.cosmos.implementation.directconnectivity;
import com.azure.cosmos.CosmosException;
import com.azure.cosmos.implementation.Exceptions;
import com.azure.cosmos.implementation.HttpConstants;
import com.azure... |
jordanblakey/react-ecosystem | dist/components/MessageBrowser/Sidebar.js | <reponame>jordanblakey/react-ecosystem
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Sidebar = undefined;
var _react = require("react");
var _react2 = _interopRequireDefault(_react);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }... |
Tommsy64/ModularPowerArmor | src/main/java/com/github/lehjr/modularpowerarmor/client/model/item/PowerFist.java | package com.github.lehjr.modularpowerarmor.client.model.item;
public class PowerFist {
// TODO: try to restore original power fist model or else back to the same old same old
/*
https://github.com/MrJake222/AUNIS/blob/master/src/main/java/mrjake/aunis/item/PageNotebookBakedModel.java
https://github.co... |
ScalablyTyped/SlinkyTyped | h/heremaps/src/main/scala/typingsSlinky/heremaps/H/ui/Pano.scala | <gh_stars>10-100
package typingsSlinky.heremaps.H.ui
import typingsSlinky.heremaps.H.service.MapType
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object Pano {
/**
... |
damirault/azure-sdk-for-c | sdk/core/az_core/src/az_http_header_validation_private.h | <gh_stars>0
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
/**
* @file az_http_header_validation_private.h
*
* @brief This header defines a bit array that is used to validate whenever or not an ASCII char is
* valid within an http header name.
*
*/
#ifndef _az_HTTP_... |
123FLO321/semantic-release-docker | test/unit/build-config.js | 'use strict'
const path = require('path')
const {test, threw} = require('tap')
const buildConfig = require('../../lib/build-config.js')
test('build-config', async (t) => {
t.testdir({
standard: {
'package.json': JSON.stringify({name: 'this-is-not-scoped'})
}
, scoped: {
'package.json': JSON.st... |
fredsterorg/incubator-pinot | pinot-controller/src/main/java/org/apache/pinot/controller/ControllerStarter.java | <gh_stars>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
*... |
xwgoon/exercise | src/main/java/com/horstmann/corejava/v2ch03/xpath/MyTest.java | package com.horstmann.corejava.v2ch03.xpath;
import javax.xml.namespace.QName;
import javax.xml.xpath.XPathConstants;
import java.util.StringJoiner;
public class MyTest {
public static void main(String[] args) {
// StringJoiner joiner = new StringJoiner(",", "{", "}");
// joiner.add("aa");
// ... |
RedBrumbler/virtuoso-codegen | include/VROSC/VRPlayer_OverrideControllerPrefab.hpp | <reponame>RedBrumbler/virtuoso-codegen<filename>include/VROSC/VRPlayer_OverrideControllerPrefab.hpp
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#in... |
aplocon/sis | core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/matrix/SolverTest.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 ... |
jku-win-se/module-eer | org.module.eer.project/bundles/org.module.eer.jenetics/src/org/module/eer/jenetics/split/ff/CouplingFF.java | package org.module.eer.jenetics.split.ff;
import java.util.Iterator;
import java.util.function.Function;
import org.eclipse.emf.common.util.EList;
import org.module.eer.jenetics.config.utils.ModularizableElementUtils;
import org.module.eer.jenetics.utils.Cohesive;
import org.module.eer.mm.moduleeer.Aggregation;
impor... |
google-ar/chromium | net/cert/internal/trust_store.h | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_CERT_INTERNAL_TRUST_STORE_H_
#define NET_CERT_INTERNAL_TRUST_STORE_H_
#include <vector>
#include "base/memory/ref_counted.h"
#include "net/b... |
Kast0rTr0y/ao | activeobjects-integration-test/src/test/java/net/java/ao/it/TestSelectWithTableAlias.java | <filename>activeobjects-integration-test/src/test/java/net/java/ao/it/TestSelectWithTableAlias.java
package net.java.ao.it;
import net.java.ao.Entity;
import net.java.ao.EntityManager;
import net.java.ao.Preload;
import net.java.ao.Query;
import net.java.ao.test.ActiveObjectsIntegrationTest;
import net.java.ao.test.jd... |
fengjixuchui/Reverse.Engineering.Engine | tests/pointer/ptr3.c | int main()
{
int a=1;
int b=2;
int c;
int *p;
int *q;
p = &a;
q = &b;
c = *p + *q;
return c;
}
|
lechium/tvOS124Headers | System/Library/Frameworks/CoreML.framework/MLModelErrorUtils.h | <reponame>lechium/tvOS124Headers<filename>System/Library/Frameworks/CoreML.framework/MLModelErrorUtils.h<gh_stars>1-10
/*
* This header is generated by classdump-dyld 1.0
* on Saturday, August 24, 2019 at 9:45:05 PM Mountain Standard Time
* Operating System: Version 12.4 (Build 16M568)
* Image Source: /System/Library/F... |
danielbairamian/RL-RL | rlbot/messages/flat/BallMaxSpeedOption.py | <reponame>danielbairamian/RL-RL
# automatically generated by the FlatBuffers compiler, do not modify
# namespace: flat
class BallMaxSpeedOption(object):
Default = 0
Slow = 1
Fast = 2
Super_Fast = 3
|
Havoc-OS/androidprebuilts_go_linux-x86 | src/internal/x/crypto/poly1305/poly1305_test.go | <reponame>Havoc-OS/androidprebuilts_go_linux-x86<filename>src/internal/x/crypto/poly1305/poly1305_test.go<gh_stars>1000+
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package poly1305
import (
"encoding/h... |
fujaba/NetworkParser | src/javafx/de/uniks/networkparser/test/javafx/ApplicationTest.java | <reponame>fujaba/NetworkParser
package de.uniks.networkparser.test.javafx;
import de.uniks.networkparser.ext.SimpleController;
import de.uniks.networkparser.ext.javafx.ModelListenerFactory;
import de.uniks.networkparser.test.model.GUIEntity;
import javafx.application.Application;
import javafx.scene.control.Button;
im... |
FSchiltz/RawParser | Source/RawSpeed/parsers/FiffParser.h | <gh_stars>10-100
/*
RawSpeed - RAW file decoder.
Copyright (C) 2017 <NAME>
This library 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.