repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
drumonii/LeagueTrollBuild | backend/src/main/java/com/drumonii/loltrollbuild/batch/maps/MapsRetrievalItemReadListener.java | <filename>backend/src/main/java/com/drumonii/loltrollbuild/batch/maps/MapsRetrievalItemReadListener.java<gh_stars>1-10
package com.drumonii.loltrollbuild.batch.maps;
import com.drumonii.loltrollbuild.model.GameMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.core.ItemReadL... |
alexamy/electric-circuit-testing-platform | spec/features/tests/index_spec.rb | # frozen_string_literal: true
require 'rails_helper'
feature 'User can view list of tests', "
In order to start preferable test
As an unauthenticated user
I would like to select a test
" do
given(:student) { create(:student) }
given!(:test) { create(:test, name: 'with questions') }
given!(:test_without_qu... |
colesadam/hill-lists | app/src/main/java/uk/colessoft/android/hilllist/ui/activity/AboutActivity.java | package uk.colessoft.android.hilllist.ui.activity;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import android.text.util.Linkify;
import android.widget.LinearLayout;
import android.widget.TextView;
import java.util.Map;
import uk.colessoft.android.hilllist.R;
import uk.colessoft.android... |
smallst/esper.js | src/stdlib/Assert.js | 'use strict';
const Value = require('../Value');
const CompletionRecord = require('../CompletionRecord');
const ObjectValue = require('../values/ObjectValue');
class AssertFunction extends ObjectValue {
*rawCall(n, evalu, scope) {
if ( n.arguments.length == 0 ) return Value.undef;
let args = new Array(n.argume... |
shalomeir/generator-snippod-hackathon | client/scripts/actions/messagesActions.js | <reponame>shalomeir/generator-snippod-hackathon
'use strict';
var Reflux = require('reflux'),
assign = require('object-assign');
var messagesActions = Reflux.createActions({
//by pass to store
'setMessages':{},
'setError':{}
});
module.exports = messagesActions;
|
CDFN/panda | panda-framework/src/main/java/org/panda_lang/language/resource/internal/java/JavaModule.java | <reponame>CDFN/panda
/*
* Copyright (c) 2020 Dzikoysk
*
* 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 applic... |
pm4j/org.pm4j | pm4j-common/src/main/java/org/pm4j/common/util/collection/FilteringIterable.java | package org.pm4j.common.util.collection;
import java.util.Iterator;
/**
* An iterator that filters the items of a given base iterator.
*/
public abstract class FilteringIterable<T> implements Iterable<T> {
private Iterable<T> baseIterable;
public FilteringIterable(Iterable<T> baseIterable) {
this.baseIt... |
pidster/spring-migration-analyzer | analyze/src/test/java/org/springframework/migrationanalyzer/analyze/fs/support/FileFileSystemEntryTests.java | /*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
philswan/vms-tool | node_modules/xo/node_modules/eslint-plugin-ava/rules/no-unknown-modifiers.js | 'use strict';
var createAvaRule = require('../create-ava-rule');
var modifiers = [
'after',
'afterEach',
'before',
'beforeEach',
'cb',
'only',
'serial',
'skip',
'todo'
];
function getTestModifiers(node) {
if (node.type === 'CallExpression') {
return getTestModifiers(node.callee);
}
if (node.type === 'M... |
lanpinguo/apple-sauce | ofagent/indigo/modules/OFConnectionManager/module/src/ofconnectionmanager_int.h | /****************************************************************
*
* Copyright 2013, Big Switch Networks, Inc.
*
* Licensed under the Eclipse Public License, Version 1.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* ... |
imcloudfloating/Cloud-OJ | judge-service/src/main/java/group/_204/oj/judge/component/Judgement.java | <filename>judge-service/src/main/java/group/_204/oj/judge/component/Judgement.java
package group._204.oj.judge.component;
import com.fasterxml.jackson.databind.ObjectMapper;
import group._204.oj.judge.dao.*;
import group._204.oj.judge.error.UnsupportedLanguageError;
import group._204.oj.judge.model.*;
import group._20... |
Natsurii/nicabot-monkee | neko3/features/bot_developer_toolkit.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Nekozilla is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Nekozilla is distributed... |
brycelelbach/hpx | src/components/security/certificate_authority_base.cpp | <gh_stars>0
// Copyright (c) 2013 <NAME>
//
// 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 <hpx/config.hpp>
#include <hpx/runtime/actions/basic_action.hpp>
#include <hpx/runtime/components/component_ty... |
boostcd/console-ui | src/components/MicroserviceCard/MicroserviceCard.styled.js | <reponame>boostcd/console-ui<filename>src/components/MicroserviceCard/MicroserviceCard.styled.js
import { CheckCircle, ExclamationCircle } from '@styled-icons/fa-solid';
import styled, { css } from 'styled-components';
import { ifProp } from 'styled-tools';
import Card from '../Card/Card';
export const Wrapper = styl... |
thezerothcat/LaMulanaRandomizer | src/main/java/lmr/randomizer/rcd/object/Chest.java | package lmr.randomizer.rcd.object;
/**
* 0x2c chest Reversed
* 0 - item type, 1-10 are drop types, 11+ are inventory word - 11, 0 is empty
* 1 - if drop then quantity
* // if item then item arg 2 (whether it's a real item)
* 2 - if 0 then brown else blue
* 3 - if >0, cursed
* 4 - i... |
arnavpisces/saksham-refined | app/src/main/java/com/zuccessful/trueharmony/pojo/DailyRoutineRecord.java | package com.zuccessful.trueharmony.pojo;
/**
* Created by Admin on 07-08-2018.
*/
public class DailyRoutineRecord {
private String dailyRoutId;
private String name;
private long timestamp;
private int slot;
private int done;
public DailyRoutineRecord() {
}
public DailyRoutineRecord... |
seoh/scastie | migration/src/main/scala/full.scala | import com.olegych.scastie.api._
import java.nio.file._
import System.{lineSeparator => nl}
import play.api.libs.json._
import play.api.libs.functional.syntax._
import java.nio.file._
import scala.collection.JavaConverters._
import play.api.libs.json._
import play.api.libs.json.OFormat
object SnippetProgressV1 {
... |
Muhammad-Adnan-Ahmad/Aspose.Slides-for-Java | Examples/src/main/java/com/aspose/slides/examples/Slides/Charts/SettingNumberFormatForChartDataCell.java | <reponame>Muhammad-Adnan-Ahmad/Aspose.Slides-for-Java<filename>Examples/src/main/java/com/aspose/slides/examples/Slides/Charts/SettingNumberFormatForChartDataCell.java
package com.aspose.slides.examples.Slides.Charts;
import com.aspose.slides.ChartType;
import com.aspose.slides.IChart;
import com.aspose.slides.IChartD... |
AlexeyMalafeev/kfw-the-game | kf_lib/actors/human_controlled_fighter.py | <reponame>AlexeyMalafeev/kfw-the-game
from kf_lib.ui import align_text, cls, get_bar, menu, pak, pretty_table
from kf_lib.utils import roman
from .fighter import Fighter
ALIGN = 60
INDENT = 0
# todo break HCF into submodules like Fighter
class HumanControlledFighter(Fighter):
is_human = True
def upgrade_att... |
sureshHARDIYA/idpt | backend/src/api/assignmentResponse/types/index.js | <gh_stars>10-100
module.exports = [
require('./assignmentResponse'),
require('./assignmentResponsePage'),
require('./assignmentResponseInput')
]
|
philconst/dynatrace-service | internal/monitoring/project_create_finished_event_handler.go | <gh_stars>0
package monitoring
import (
"github.com/keptn-contrib/dynatrace-service/internal/dynatrace"
"github.com/keptn-contrib/dynatrace-service/internal/keptn"
log "github.com/sirupsen/logrus"
)
type ProjectCreateFinishedEventHandler struct {
event ProjectCreateFinishedAdapterInterface
dtClient ... |
chiendm/gooddata-ruby | spec/lcm/userprov/user_provisioning_extended_spec.rb | require_relative '../fixtures/user_provisioning_fixtures'
require_relative 'support/user_provisioning_helper'
require_relative '../integration/support/configuration_helper'
require_relative '../integration/support/s3_helper'
require_relative '../../../lib/gooddata/models/user_filters/user_filter_builder'
require_relati... |
jingcao80/Elastos | Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/bindings/core/v8/V8SVGGlyphRefElement.cpp | // Copyright 2014 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.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#if ENABLE(SVG_FONTS)
#include "V8SVGGlyphRefElement.h"
... |
shaojiankui/iOS10-Runtime-Headers | PrivateFrameworks/FMCore.framework/FMXPCTransactionManager.h | <reponame>shaojiankui/iOS10-Runtime-Headers
/* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/FMCore.framework/FMCore
*/
@interface FMXPCTransactionManager : NSObject {
NSCountedSet * _activeTransactions;
NSString * _keepAliveActivityIdentifier;
NSObject<OS_dispatch_queue> * _txn_... |
ericho/stx-neutron | neutron/tests/unit/plugins/wrs/test_host_driver.py | # Copyright (c) 2013 OpenStack Foundation
# 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 ... |
pussbb/pymaillib | pymaillib/imap/entity/envelope.py | <gh_stars>0
# -*- coding: utf-8 -*-
"""
Imap Envelope Entity
~~~~~~~~~~~~~~~~
Imap Envelope Entity
:copyright: (c) 2017 WTFPL.
:license: WTFPL, see LICENSE for more details.
"""
from typing import Iterator, List
from email.headerregistry import Address as HeaderAddress
from ..utils import decode_p... |
abilashgt/study_java | java/hibernate/maven-hibernate/src/main/java/org/koushik/javabrains/dto/many2many/M2MVehicle.java | package org.koushik.javabrains.dto.many2many;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.Collection;
@Entity
@Table(name = "m2m_vehicle")
public class M2MVehicle {
@Id
@GeneratedValue
private int vehicleId;
private String vehicleName;
@ManyToMany(mappedBy = "vehicles... |
zhangpf/fuchsia-rs | zircon/system/utest/core/handle-info/handle-info.cc | <reponame>zhangpf/fuchsia-rs
// Copyright 2016 The Fuchsia 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 <stdio.h>
#include <stdlib.h>
#include <zircon/process.h>
#include <zircon/syscalls.h>
#include <zircon/syscalls/obj... |
xformation/xformation-compliancemanager-service | compliancemanager-server/src/test/java/com/synectiks/process/server/plugin/indexer/searches/timeranges/AbsoluteRangeEntityTest.java | /*
* */
package com.synectiks.process.server.plugin.indexer.searches.timeranges;
import org.joda.time.format.ISODateTimeFormat;
import org.junit.Test;
import com.synectiks.process.server.plugin.indexer.searches.timeranges.AbsoluteRange;
import com.synectiks.process.server.plugin.indexer.searches.timeranges.InvalidRa... |
ssynhtn/leetcode | src/com/ssynhtn/medium/PushDominoes.java | package com.ssynhtn.medium;
import java.util.*;
public class PushDominoes {
public String pushDominoes(String dominoes) {
char[] chs = dominoes.toCharArray();
int i = 0;
int j = 0;
final int len = chs.length;
while (true) {
while (i < len && chs[i] != '.') {
... |
JoonasVali/Mirrors | mirrors-core/src/main/java/ee/joonasvali/mirrors/EvolutionPropertyLoader.java | package ee.joonasvali.mirrors;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Properties;
import java.util.function.Function;
import static ee.joonasvali.mirrors.DefaultEvolutionP... |
avinfinity/UnmanagedCodeSnippets | spheregeometry.cpp | #include "spheregeometry.h"
namespace vc{
SphereGeometry::SphereGeometry()
{
}
} |
XpressAI/frovedis | test/core/test2.6.2/test.cc | <filename>test/core/test2.6.2/test.cc<gh_stars>10-100
#include <frovedis.hpp>
#define BOOST_TEST_MODULE FrovedisTest
#include <boost/test/unit_test.hpp>
using namespace frovedis;
using namespace std;
int sum(std::string key, int a, int b) {return a + b;}
int optional_sum(std::string key, int a, boost::optional<int>... |
Fuge2008/saasdriver | src/com/small/saasdriver/global/HttpConstant.java | <gh_stars>0
package com.small.saasdriver.global;
/**
* 项目中使用的URL控制管理类
*
* @author ZhangKui
*
*/
public class HttpConstant {
// 测试用服务器
public final static String BASE_URL = "http://192.168.3.11:82";
// 正式发布用服务器
//public final static String BASE_URL="http://192.168.1.254:130";
/** ================== 订单部分用到... |
vgauri1797/Eclipse | WebAppBuilderForArcGIS/server/apps/2/widgets/Analysis/nls/pl/strings.js | define({
"_widgetLabel": "Analiza",
"executeAnalysisTip": "Kliknij narzędzie analizy, aby uruchomić analizę",
"noToolTip": "Nie skonfigurowano narzędzia analizy!",
"jobSubmitted": "przesłane.",
"jobCancelled": "Anulowano.",
"jobFailed": "Niepowodzenie",
"jobSuccess": "Powodzenie.",
"executing": ... |
jarocho105/pre2 | erp_desktop_all/src_activosfijos/com/bydan/erp/activosfijos/presentation/swing/jinternalframes/report/ResponsablesJInternalFrame.java | <reponame>jarocho105/pre2
/*
*AVISO LEGAL
© Copyright
*Este programa esta protegido por la ley de derechos de autor.
*La reproduccion o distribucion ilicita de este programa o de cualquiera de
*sus partes esta penado por la ley con severas sanciones civiles y penales,
*y seran objeto de todas las sanciones legale... |
risktx/risktx | src/main/scala/org/risktx/domain/model/messaging/TradingProfile.scala | <filename>src/main/scala/org/risktx/domain/model/messaging/TradingProfile.scala<gh_stars>1-10
package org.risktx.domain.model.messaging
abstract case class TradingProfile protected(
val sender: TradingParty,
val receiver: TradingParty,
val outboundSoapAction: String,
val outboundTimeoutMillis: Int
)
object Tr... |
SocraticGrid/UCS-Implementation | ucs-nifi-extensions/nifi-ucs-nifi-extensions-processors/src/main/java/org/socraticgrid/hl7/ucs/nifi/controller/UCSControllerServiceProxy.java | <reponame>SocraticGrid/UCS-Implementation
/*
* Copyright 2015 Cognitive Medical Systems, Inc (http://www.cognitivemedicine.com).
*
* 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
*
* ... |
RadStr/DiaSynth | src/str/rad/synthesizer/gui/diagram/panels/port/Cable.java | <filename>src/str/rad/synthesizer/gui/diagram/panels/port/Cable.java<gh_stars>0
package str.rad.synthesizer.gui.diagram.panels.port;
import str.rad.synthesizer.gui.diagram.ifaces.MaxElevationGetterIFace;
import str.rad.synthesizer.gui.diagram.panels.ifaces.MovablePanelSpecificGetMethodsIFace;
import java.awt.*;
impor... |
Phonemetra/TurboSQL | src/main/java/com/phonemetra/turbo/internal/visor/node/VisorAtomicConfiguration.java | <gh_stars>1-10
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "Lice... |
zarelaky/fuchsia | src/ui/lib/input_reader/tests/mock_hid_decoder.h | <filename>src/ui/lib/input_reader/tests/mock_hid_decoder.h
// Copyright 2018 The Fuchsia 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 SRC_UI_LIB_INPUT_READER_TESTS_MOCK_HID_DECODER_H_
#define SRC_UI_LIB_INPUT_READER_TESTS_... |
Coobaha/reasonml-idea-plugin | src/com/reason/lang/dune/DuneParser.java | package com.reason.lang.dune;
import com.intellij.lang.*;
import com.intellij.psi.tree.*;
import com.reason.lang.*;
import org.jetbrains.annotations.*;
public class DuneParser extends CommonParser<DuneTypes> {
DuneParser() {
super(DuneTypes.INSTANCE);
}
@Override
protected void parseFile(@NotNull PsiBuil... |
wqk317/mi8_kernel_source | mi8/drivers/staging/qcacld-3.0/core/hdd/inc/wlan_hdd_debugfs.h | <gh_stars>0
/*
* Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all
* copies.
*
* THE ... |
medismailben/llvm-project | clang/test/Analysis/copypaste/not-autogenerated.cpp | // RUN: %clang_analyze_cc1 -std=c++11 -analyzer-checker=alpha.clone.CloneChecker -analyzer-config alpha.clone.CloneChecker:MinimumCloneComplexity=10 -analyzer-config alpha.clone.CloneChecker:IgnoredFilesPattern="moc_|ui_|dbus_|.*_automoc" -verify %s
void f1() {
int *p1 = new int[1];
int *p2 = new int[1];
if (p1)... |
sunwolf-swb/mark-idea | src/main/java/ink/markidea/note/entity/exception/PromptException.java | package ink.markidea.note.entity.exception;
/**
* @author hansanshi
* @date 2020/2/9
*/
public class PromptException extends RuntimeException {
public PromptException(String message) {
super(message);
}
}
|
sky5454/30daysMakeOS-Origin-ISOfiles | 30days-Origin-ISOfiles/omake/tolsrc/go_0023s/gcc/graph.c | /* Output routines for graphical representation.
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
Contributed by <NAME> <<EMAIL>>, 1998.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as publish... |
grzegorz103/webshop-microservices | product-service/src/main/java/product/service/web/api/CategoryController.java | <reponame>grzegorz103/webshop-microservices
package product.service.web.api;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;
import product.service.services.category.CategoryDTO;
... |
TianyuDu/AnnEconForecast | pytorch/hp_search.py | """
TODO: write documents
"""
from pprint import pprint
from datetime import datetime
import sys
sys.path.extend(["./core", "./core/tools"])
import matplotlib
c = input("Use Agg as matplotlib (avoid tkinter)[y/n]: ")
if c.lower() in ["y", ""]:
matplotlib.use("agg")
from matplotlib import pyplot as plt
import pand... |
liumingmusic/HadoopLearning | SparkSQL/src/main/scala/com/c503/sparksql/Spark_SQL_2.scala | <reponame>liumingmusic/HadoopLearning
package com.c503.sparksql
import com.c503.utils.SparkSqlUtils
import org.apache.spark.sql.Row
import org.apache.spark.sql.types.{StringType, StructField, StructType}
/**
* 描述 简单描述方法的作用
*
* @author liumm
* @since 2018-09-16 15:45
*/
object Spark_SQL_2 {
def main(args:... |
jihwahn1018/ovirt-engine | backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/connection/iscsibond/GetIscsiBondsByStoragePoolIdQuery.java | <reponame>jihwahn1018/ovirt-engine<gh_stars>100-1000
package org.ovirt.engine.core.bll.storage.connection.iscsibond;
import java.util.List;
import javax.inject.Inject;
import org.ovirt.engine.core.bll.QueriesCommandBase;
import org.ovirt.engine.core.bll.context.EngineContext;
import org.ovirt.engine.core.common.busi... |
MaastrichtU-IDS/biosearch | src/main/java/cn/edu/nju/ws/biosearch/classTree/ClassGroup.java | <reponame>MaastrichtU-IDS/biosearch<filename>src/main/java/cn/edu/nju/ws/biosearch/classTree/ClassGroup.java<gh_stars>0
package cn.edu.nju.ws.biosearch.classTree;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Properties;
public class ClassGroup {
private stati... |
hevp/fcrepo | fcrepo-server/src/main/java/org/fcrepo/server/storage/ExternalContentManager.java | <filename>fcrepo-server/src/main/java/org/fcrepo/server/storage/ExternalContentManager.java
/* The contents of this file are subject to the license and copyright terms
* detailed in the license directory at the root of the source tree (also
* available online at http://fedora-commons.org/license/).
*/
package org.f... |
dphrygian/zeta | Code/Projects/Rosa/src/Actions/wbactionrosaloadgame.h | <reponame>dphrygian/zeta
#ifndef WBACTIONROSALOADGAME_H
#define WBACTIONROSALOADGAME_H
#include "wbaction.h"
#include "simplestring.h"
class WBActionRosaLoadGame : public WBAction
{
public:
WBActionRosaLoadGame();
virtual ~WBActionRosaLoadGame();
DEFINE_WBACTION_FACTORY( RosaLoadGame );
virtual void InitializeF... |
solotzg/tiflash | dbms/src/Interpreters/IInterpreter.h | // Copyright 2022 PingCAP, 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 agreed to i... |
liupangzi/codekata | leetcode/Algorithms/763.PartitionLabels/Solution.java | import java.util.ArrayList;
import java.util.List;
class Solution {
public List<Integer> partitionLabels(String S) {
int[] map = new int[26];
for (int i = 0; i < S.length(); i++) map[S.charAt(i) - 'a'] = i;
int cursor = 0;
ArrayList<Integer> result = new ArrayList<>();
whil... |
luyan1990/lifeix-football-app-android-master | android-client/src/main/java/io/swagger/client/model/TimeLineNews.java | package io.swagger.client.model;
import io.swagger.client.model.Post;
import java.util.*;
import io.swagger.annotations.*;
import com.google.gson.annotations.SerializedName;
/**
* 时间轴形式的新闻
**/
@ApiModel(description = "时间轴形式的新闻")
public class TimeLineNews {
@SerializedName("date")
private String date = nul... |
bingchunjin/1806_SDK | linux-4.14.90-dev/linux-4.14.90/arch/x86/platform/intel-mid/device_libs/platform_bcm43xx.c | /*
* platform_bcm43xx.c: bcm43xx platform data initilization file
*
* (C) Copyright 2016 Intel Corporation
* 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
* as published by the Free Software Foundation; ve... |
brianmckenna/thredds | bufr/src/main/java/ucar/nc2/iosp/bufr/MessageCompressedDataReader.java | /*
* Copyright 1998-2013 University Corporation for Atmospheric Research/Unidata
*
* Portions of this software were developed by the Unidata Program at the
* University Corporation for Atmospheric Research.
*
* Access and use of this software shall impose the following obligations
* and understandings... |
lesaint/experimenting-annotation-processing | experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_5288.java | <gh_stars>1-10
package fr.javatronic.blog.massive.annotation1.sub1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_5288 {
}
|
karthik-git-user/SAP-Stage | core-customize/hybris/bin/modules/integration-apis/outboundsync/src/de/hybris/platform/outboundsync/RootItemChannelCorrelationStrategy.java | <reponame>karthik-git-user/SAP-Stage<gh_stars>0
/*
* Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
*/
package de.hybris.platform.outboundsync;
import de.hybris.platform.outboundsync.dto.OutboundItemDTO;
import com.google.common.base.Preconditions;
/**
* Defines a correlation strategy... |
jezhiggins/stiX | c++/lib/file_open.cpp | #include "file_open.hpp"
#include <filesystem>
namespace fs = std::filesystem;
namespace stiX {
std::ifstream file_opener(std::string const& filename) {
return std::ifstream(filename);
} // file_opener
std::ofstream file_write_opener(std::string const& filename) {
auto path = fs::path(filen... |
TheStanfordDaily/loris-archives | data_science/apps/devise/app/static/javascript.js | function display_images(query, n='12') {
document.getElementById('images').innerHTML = '';
image_div = document.getElementById('images');
const query_url = '/devise/search?query='.concat(query.toLowerCase()).concat('&n=').concat(n);
fetch(query_url)
.then((resp) => resp.json())
.then(fun... |
thisaripatabendi/carbon-device-mgt-plugins-parent | components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile/src/main/java/org/wso2/carbon/device/mgt/mobile/config/MobileDeviceConfigurationManager.java | <gh_stars>0
/*
* Copyright (c) 2014, 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... |
puyoai/puyoai | src/core/bit_field.h | <filename>src/core/bit_field.h
#ifndef CORE_BIT_FIELD_H_
#define CORE_BIT_FIELD_H_
#include <string>
#include <glog/logging.h>
#include "base/base.h"
#include "base/sse.h"
#include "core/field_bits.h"
#include "core/frame.h"
#include "core/puyo_color.h"
#include "core/rensa_result.h"
#include "core/rensa_tracker.h"
... |
SjoerdKoop/vicon_control | robot_control/pru-cgt/lib/src/set_new.c | /******************************************************************************
* \ ___ / *
* / \ *
* Edison Design Group C++ Runtime - | \^/ | - *
... |
Benjoyo/distributed-tracing | tracingbackend/src/main/java/tracing/backend/scheduler/causal/CausalScheduler.java | package tracing.backend.scheduler.causal;
import tracing.backend.Target;
import tracing.backend.TraceQueue;
import tracing.backend.scheduler.EvictionService;
import tracing.backend.scheduler.QueueSpliterator;
import tracing.backend.scheduler.Scheduler;
import tracing.backend.trace.EventType;
import tracing.backend.tra... |
zenhack/bs | fs/dirent.go | package fs
import (
"context"
"os"
"time"
"github.com/pkg/errors"
"github.com/bobg/bs/anchor"
)
// IsDir tells whether d refers to a directory.
func (d *Dirent) IsDir() bool {
return os.FileMode(d.Mode).IsDir()
}
// Dir returns the directory referred to by d.
// It is an error to call this when !d.IsDir().
f... |
poppeman/Pictus | source/PictThumbs/codecsetup.cpp | #include "codecsetup.h"
#include "illa/codecmgr.h"
#include "illa/f_pcx.h"
#include "illa/f_tga.h"
#include "illa/f_wbmp.h"
#include "illa/f_psd.h"
#include "illa/f_psp.h"
#include "illa/f_tiff.h"
#include "illa/f_webp.h"
#include "illa/f_xyz.h"
void CodecManagerSetup(Img::CodecFactoryStore* cfs) {
// With the except... |
Andrewich/deadjustice | sgviewer/MainFrm.h | <reponame>Andrewich/deadjustice
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__D53EDAE3_A166_11D5_BC88_0000B49545E8__INCLUDED_)
#define AFX_MAINFRM_H__D53EDAE3_A166_11D5_BC88_0000B49545E8__INCLUDED_
#... |
gcherian/reladomo | reladomo/src/main/java/com/gs/fw/common/mithra/list/CascadeInsertAllTransactionalCommand.java | <reponame>gcherian/reladomo
/*
Copyright 2016 <NAME>.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... |
leonlee/mde | entity-engine/src/main/java/org/blab/mde/ee/EntityEngine.java | package org.blab.mde.ee;
import org.blab.mde.core.CompositeEngine;
import org.blab.mde.core.CompositeEngineContext;
import org.blab.mde.core.CompositeEngineListener;
import org.blab.mde.ee.annotation.Aggregate;
import org.blab.mde.ee.annotation.Entity;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import s... |
desihub/qlf | frontend/src/screens/history/widgets/table-history/ccd-selector/ccd-selector.js | <filename>frontend/src/screens/history/widgets/table-history/ccd-selector/ccd-selector.js<gh_stars>1-10
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import Popover from '@material-ui/core/Popo... |
Kneelawk/SimpleCurseModpackDownloader | src/main/scala/org/kneelawk/simplecursemodpackdownloader/task/InterruptState.scala | <filename>src/main/scala/org/kneelawk/simplecursemodpackdownloader/task/InterruptState.scala
package org.kneelawk.simplecursemodpackdownloader.task
object InterruptState {
object Abort extends InterruptState
object ZombieKill extends InterruptState
}
/** An enum for different reasons to interrupt a task.
*
* ... |
wedataintelligence/vivaldi-source | chromium/device/bluetooth/test/test_bluetooth_adapter_observer.h | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_
#define DEVICE_BLUETOOTH_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_
#include <stdint.h>
#include "ba... |
XXBM/glmisWeb | src/main/java/com/glmis/domain/attendance/SchoolAbsence.java | package com.glmis.domain.attendance;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.MappedSuperclass;
/**
* Created by dell on 2017-05-23 .
*/
@MappedSuperclass
@DynamicInsert(true)
@DynamicUpdate(true)
public abstract class SchoolAbsence ex... |
aniskchaou/ULTRA-SHOP-CMS | wp-content/plugins/woocommerce-products-filter/ext/color/js/html_types/plugin_options.js | jQuery(function ($) {
$('.woof_toggle_colors').click(function () {
$(this).parent().find('ul.woof_color_list').toggle();
});
});
|
duanegtr/legendv3-cogs | modplus/modplus.py | from discord import user
from redbot.core import commands, Config, checks, modlog
import discord
import asyncio
import datetime
import time
from pyrate_limiter import (
BucketFullException,
Duration,
RequestRate,
Limiter,
MemoryListBucket,
MemoryQueueBucket,
)
ERROR_MESSAGES = {
'NOTIF_UNRECO... |
keerthana1502/python_practice | database.py | import pymongo
connection_url="mongodb://localhost:27017"
client = pymongo.MongoClient(connection_url)
db = client['users']
collection = db['employee']
#collection.insert_one({"name":"ocean"})
#collection.insert_many([{"name":"keerthana","number":5,"department":"CSE"},
#{"name":"kishore","number"... |
light1021/dynamic-application-loader-host-interface | libjhi/CommandInvoker.h | /*
Copyright 2010-2016 Intel Corporation
This software is licensed to you in accordance
with the agreement between you and Intel Corporation.
Alternatively, you can use this file in compliance
with the Apache license, Version 2.
Apache License, Version 2.0
Licensed under the Apache License, Ve... |
bzxy/cydia | iOSOpenDev/frameworks/OfficeImport.framework/Headers/ODDLayoutObjectList.h | <reponame>bzxy/cydia
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport
*/
#import <OfficeImport/ODDLayoutObject.h>
@class NSMutableArray;
__attribute__((visibility("hidden")))
@interface ODDLayoutObjectList : ODDLayoutObject {
@... |
gcodebackups/srcdemo2 | lib/any/jlibs/src/jlibs/core/lang/ThreadTasker.java | /**
* JLibs: Common Utilities for Java
* Copyright (C) 2009 <NAME> <<EMAIL>>
*
* 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.1 of the License, or (at your opt... |
cidneyhamilton/Composer | App/features/scripts/nodes/fadeEditor.js | <gh_stars>0
define(function(require) {
var assetDatabase = require('infrastructure/assetDatabase'),
observable = require('plugins/observable'),
NodeEditor = require('./nodeEditor'),
Editor = require('features/shared/editor');
var ctor = function() {
NodeEditor.call(this)... |
kaist-plrg/jest | data/generated/159.js | var x = 0n ; -- x ; |
jmvezic/webcurator | wct-submit-to-rosetta/src/main/java/nz/govt/natlib/ndha/common/FixityUtils.java | <filename>wct-submit-to-rosetta/src/main/java/nz/govt/natlib/ndha/common/FixityUtils.java
/**
* nz.govt.natlib.ndha.common.Common - Software License
*
* Copyright 2007/2008 National Library of New Zealand.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not us... |
team-diana/nucleo-dynamixel | docs/html/group___t_i_m_ex___exported___functions.js | var group___t_i_m_ex___exported___functions =
[
[ "TIMEx_Exported_Functions_Group1", "group___t_i_m_ex___exported___functions___group1.html", null ],
[ "TIMEx_Exported_Functions_Group2", "group___t_i_m_ex___exported___functions___group2.html", null ],
[ "TIMEx_Exported_Functions_Group3", "group___t_i_m_ex__... |
zhouhp007/AndroidAll | language-java/jvm/jvm-sample/src/gc/PermGenOOM.java | package gc;
import java.io.File;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.List;
public class PermGenOOM {
//C:\Program Files (x86)\Java\jdk1.6.0_45\bin>
//java -XX:PermSize=1m -XX:MaxPermSize=9m -Xmx16m PermGenOOM
//C:\Program Files\Java\jdk1.8.0_... |
Dilepa/micropython-async | v2/fast_io/fast_can_test.py | <gh_stars>100-1000
# fast_can_test.py Test of cancellation of tasks which call sleep
# Copyright (c) <NAME> 2019
# Released under the MIT licence
import uasyncio as asyncio
import sys
ermsg = 'This test requires the fast_io version of uasyncio V2.4 or later.'
try:
print('Uasyncio version', asyncio.version)
if... |
cleanlyer/cleanly | test/unit/actions/types-test.js | import * as types from '../../../src/actions/types'
describe('types should have', () => {
it('UPDATE_USER_LOCATION as UPDATE_USER_LOCATION', () => {
expect(types.UPDATE_USER_LOCATION).toEqual('UPDATE_USER_LOCATION')
})
it('SEND_REPORT as SEND_REPORT', () => {
expect(types.SEND_REPORT).toEqu... |
cliveyao/Orienteer | orienteer-bpm/src/main/java/org/orienteer/bpm/camunda/handler/BatchEntityHandler.java | package org.orienteer.bpm.camunda.handler;
import com.orientechnologies.orient.core.metadata.schema.OType;
import org.camunda.bpm.engine.batch.BatchQuery;
import org.camunda.bpm.engine.impl.batch.BatchEntity;
import org.orienteer.bpm.camunda.OPersistenceSession;
import org.orienteer.bpm.camunda.handler.history.UserOpe... |
Waynocs/NathanWaian_cpoa | src/tests/dao/mysql/mysqlOrderTest.java | <filename>src/tests/dao/mysql/mysqlOrderTest.java
package tests.dao.mysql;
import dao.DAOFactory;
import dao.DAOFactory.Mode;
import tests.dao.OrderTest;
public class mysqlOrderTest extends OrderTest {
@Override
protected DAOFactory getFactory() {
return DAOFactory.getFactory(Mode.SQL);
}
}
|
agilecreativity/go-playground | structs-and-interfaces/way-to-go-11-11-reflection-02.go | package main
import (
"fmt"
"reflect"
)
func main() {
var x float64 = 3.4
v := reflect.ValueOf(x)
// Setting a value (will not work)
// v.SetFloat(3.1415) // panic : using unaddressable value
fmt.Println("Settability of v:", v.CanSet()) // false
v = reflect.ValueOf(&x) // Note: take the... |
eksant/mtc | Amtc/src/views/Checklist/index.js | import React, { Component } from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { StyleSheet, View, ScrollView, Text } from 'react-native'
import { Actions } from 'react-native-router-flux'
import FAIcon from 'react-native-vector-icons/FontAwesome'
import { Container, Bo... |
dbajgoric/playground | prog-languages/javascript/samples/rest_params.js | <filename>prog-languages/javascript/samples/rest_params.js
/**
* Illustrates JavaScript rest parameters introduced in ES6.
*/
describe("Rest Parameters", function () {
it('illustrates rest parameters', function () {
function fnWithRestParameters(first, ...other_params) {
return other_params;
... |
craig-l/js-wark | lib/modules/map/index.js | <reponame>craig-l/js-wark<gh_stars>0
import { combine } from '../../'
const map = mappingFn => stream =>
combine
(([ stream ], self) => self.set(mappingFn(stream.get())))
([ stream ])
export default map
|
Daniel-Fonseca-da-Silva/Agilidade-e-TDD-um-dia-no-desenvolvimento-de-software | src/main/java/br/com/caelum/clines/shared/domain/Airport.java | <filename>src/main/java/br/com/caelum/clines/shared/domain/Airport.java<gh_stars>1-10
package br.com.caelum.clines.shared.domain;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.... |
evrardjp/carrier | deployments/registry.go | <gh_stars>0
package deployments
import (
"context"
"fmt"
"os"
"strings"
"time"
"github.com/avast/retry-go"
"github.com/epinio/epinio/helpers"
"github.com/epinio/epinio/helpers/kubernetes"
"github.com/epinio/epinio/helpers/termui"
"github.com/epinio/epinio/internal/auth"
"github.com/epinio/epinio/internal/d... |
ton31337/batfish | projects/question/src/test/java/org/batfish/question/edges/EdgesTest.java | package org.batfish.question.edges;
import static org.batfish.datamodel.vxlan.Layer2Vni.testBuilder;
import static org.batfish.question.edges.EdgesAnswerer.COL_INTERFACE;
import static org.batfish.question.edges.EdgesAnswerer.COL_MULTICAST_GROUP;
import static org.batfish.question.edges.EdgesAnswerer.COL_NODE;
import ... |
alefherrera/gorgory | client/src/reducers/ui/menu.js | <filename>client/src/reducers/ui/menu.js
import { handleActions } from 'redux-actions';
import { OPEN_MENU, CLOSE_MENU } from '../../constants';
const initialState = {
open: false,
};
export default handleActions(
{
[OPEN_MENU]: state => ({ ...state, open: true }),
[CLOSE_MENU]: state => ({ ...state, open... |
Akriti3011/GreenApple | green_apple_website/drop_a_note/views.py | from django.shortcuts import render, redirect
from django.http import HttpResponseRedirect, HttpResponse
from django.core.urlresolvers import reverse
from drop_a_note.forms import NoteForm
from django.views.decorators.csrf import csrf_protect
from django.core.mail import EmailMessage
from validate_email import validate... |
raomohan89/GATK | src/main/java/org/broadinstitute/hellbender/tools/funcotator/OutputRenderer.java | <reponame>raomohan89/GATK
package org.broadinstitute.hellbender.tools.funcotator;
import htsjdk.variant.variantcontext.VariantContext;
import java.util.LinkedHashMap;
import java.util.List;
/**
* An abstract class to allow for writing output for the Funcotator.
* Used to output Funcotations to a location of the us... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.