repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
hnatt/tdlib-schema | lib/tdlib/types/update/connection_state.rb | module TD::Types
# The connection state has changed.
# This update must be used only to show a human-readable description of the connection state.
#
# @attr state [TD::Types::ConnectionState] The new connection state.
class Update::ConnectionState < Update
attribute :state, TD::Types::ConnectionState
en... |
hydrognomik/cssnano | site/src/layouts/App/Index.js | import * as React from 'react';
import Sticky from 'react-sticky-el';
import Analytics from '../../components/Analytics';
import Container from '../../components/Container';
import DefaultHeadMeta from '../../components/DefaultHeadMeta';
import Content from '../../components/Content';
import Header from '../../... |
yangdinglou/DryadSynth | StarExec/src/z3/src/smt/smt_b_justification.h | /*++
Copyright (c) 2006 Microsoft Corporation
Module Name:
smt_b_justification.h
Abstract:
<abstract>
Author:
<NAME> (leonardo) 2008-02-19.
Revision History:
--*/
#ifndef SMT_B_JUSTIFICATION_H_
#define SMT_B_JUSTIFICATION_H_
#include "smt/smt_literal.h"
#include "smt/smt_clause.h"
namespace smt {
... |
jwytd/cscipm | src/main/java/com/csci/cscipm/core/constant/CsciExceptionConstant.java | package com.csci.cscipm.core.constant;
public interface CsciExceptionConstant {
//账号冻结
String EXCEPTION_ACCOUNT_LOCKED_CODE = "100001";
String EXCEPTION_ACCOUNT_LOCKED_MSG = "账号冻结!";
//账号密码错误异常
String EXCEPTION_ACCOUNT_PASSWORD_ERROR_CODE = "100002";
String EXCEPTION_ACCOUNT_PASSWORD_ERROR_MSG... |
gorkamolero/hb-react | src/context/SlideContext.js | import React, { useState, createContext, useEffect, useRef } from 'react'
import {cfg} from '../containers/App'
import Utils from '../utils/Utils'
export const SlideContext = createContext(null);
const SlideContextProvider = ({children}) => {
const EngineRef = useRef(null);
const [slideModel, setSli... |
lizij/Leetcode | src/Friend_Circles/Solution.java | package Friend_Circles;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
public class Solution {
public int findCircleNum(int[][] M) {
int N = M.length;
Integer[] marked = new Integer[N];
for (int i = 0; i < N; i++) {
marked[i] = i;
}
... |
lani009/Ajou-OOP-Practice_22 | Lecture Codes/week3/MovieAudience/src/hw03/Movie.java | package hw03;
public class Movie {
private String title;
private String genre;
private double rating;
private int ageLimit;
public Movie(String title, String genre, double rating, int ageLimit) {
this.title = title;
this.genre = genre;
this.rating = rating;
this.age... |
liyu711/SUAS | UpdatedImageProcessing/integrated_image_processing_runner.py | <reponame>liyu711/SUAS<gh_stars>0
import timeit
from UpdatedImageProcessing import *
start_time = timeit.default_timer()
#IntegratedImageProcessingTester.complete_integrated_image_processing()
IntegratedImageProcessingTester.run_integrated_image_processing_tester()
Logger.format_time_report(timeit.default_timer() - ... |
lgykuuga/jeefast2.0 | jeefast-oms/src/main/java/com/lgy/oms/interfaces/kjy/util/ApacheHttpUtils.java | <filename>jeefast-oms/src/main/java/com/lgy/oms/interfaces/kjy/util/ApacheHttpUtils.java
package com.lgy.oms.interfaces.kjy.util;
import org.apache.http.Consts;
import org.apache.http.HttpEntity;
import org.apache.http.HttpStatus;
import org.apache.http.NameValuePair;
import org.apache.http.client.config.RequestConfig... |
zzachimed/ClickHouse | src/Interpreters/TransactionLog.h | <reponame>zzachimed/ClickHouse<filename>src/Interpreters/TransactionLog.h<gh_stars>1000+
#pragma once
#include <Interpreters/MergeTreeTransaction.h>
#include <Interpreters/MergeTreeTransactionHolder.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <Common/ThreadPool.h>
#include <boost/noncopyable.hpp>
#include <mute... |
bence-toth/nano-router | packages/history/src/memory.spec.js | <filename>packages/history/src/memory.spec.js<gh_stars>1-10
import unexpected from "unexpected";
import unexpectedSinon from "unexpected-sinon";
import sinon from "sinon";
import { createMemoryHistory } from "./memory.js";
const expect = unexpected.clone().use(unexpectedSinon);
describe("memory", () => {
let histor... |
michael51/node-easywechat | dist/OfficialAccount/Card/CoinClient.js | <filename>dist/OfficialAccount/Card/CoinClient.js
'use strict';
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const BaseClient_1 = __importDefault(require("../../Co... |
MobileSeoul/2017seoul-15 | seoulMarketDayAndroid/seoulMarketDayAndroid/app/src/main/java/com/stm/market/fragment/story/adapter/MarketStoryFileAdapter.java | package com.stm.market.fragment.story.adapter;
import android.content.Context;
import android.graphics.Bitmap;
import android.support.v4.view.PagerAdapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
... |
mattwamboldt/synthesizer | source/app/audio/file/midi.h | <filename>source/app/audio/file/midi.h
#ifndef AUDIO_FILE_MIDI
#define AUDIO_FILE_MIDI
#include "../audio.h"
#include <vector>
#include <string>
namespace Audio
{
class MidiController;
// A Midi track is a collection of timed midi events or commands that modify
// the midi system to generate music. It a... |
stytooldex/NewProject0 | app/src/main/java/android/app/IApplicationThread.java | package android.app;
/**
* Created by rikka on 2017/11/6.
*/
public class IApplicationThread {
}
|
H-Tatsuhiro/Com_Pro-Cpp | AtCoder/abc165/d/main.cpp | <filename>AtCoder/abc165/d/main.cpp
#include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
long long int a, b, n; cin >> a >> b >> n;
long long int ans = (a * n) / b - a * (n / b);
if (b - 1 <= n) ans = max(ans, (a * (b - 1)) / b - a * ((b - 1) / b));
... |
lastaflute/lastaflute | src/main/java/org/lastaflute/core/smartdeploy/RomanticServiceCreator.java | <reponame>lastaflute/lastaflute
/*
* Copyright 2015-2021 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-... |
lezzles11/End-to-End-Testing | cypress_examples/examples/fundamentals__custom-browsers/cypress/integration/spec.js | /// <reference types="cypress" />
describe('browser', () => {
it('works', () => {
cy.log(
`Running in browser **${Cypress.browser.displayName} v${
Cypress.browser.majorVersion
}**`
)
cy.task('echo', {
browser: Cypress.browser
})
})
}) |
st-js/st-js | generator/src/test/java/org/stjs/generator/writer/specialMethods/SpecialMethod23.java | <gh_stars>10-100
package org.stjs.generator.writer.specialMethods;
import org.stjs.javascript.JSGlobal;
public class SpecialMethod23 {
@SuppressWarnings("unused")
public void method() {
String n = JSGlobal.typeof("abc");
}
}
|
pyrated/cable | libcable/src/core/stream.c | #include <errno.h>
#include <string.h>
#include <cable/core/stream.h>
#include <cable/core/allocator.h>
#include <cable/core/string.h>
#include <cable/core/error.h>
#include <cable/core/data.h>
typedef enum Species Species;
enum Species {
ISTREAM,
OSTREAM,
IDATA,
ODATA,
};
struct CblStream {
CblC... |
awesome-archive/Dragon | Dragon/include/operators/arithmetic/eltwise_op.h | /*!
* Copyright (c) 2017-present, SeetaTech, Co.,Ltd.
*
* Licensed under the BSD 2-Clause License.
* You should have received a copy of the BSD 2-Clause License
* along with the software. If not, See,
*
* <https://opensource.org/licenses/BSD-2-Clause>
*
* --------------------------------------------------... |
jnthn/intellij-community | java/java-tests/testData/compileServer/incremental/markDirty/cleanTimestampsWithOutputOnModuleRebuild/moduleA/src/a/FA.java | <reponame>jnthn/intellij-community
package a;
public class FA {
} |
RilaShu/spatio-temporal-visualization-of-massive-web-map-logs | tile-generation/src/test/scala/com/oculusinfo/tilegen/tiling/analytics/InSituAnalyticTestSuite.scala | /*
* Copyright (c) 2014 Oculus Info Inc.
* http://www.oculusinfo.com/
*
* Released under the MIT License.
*
* 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, includ... |
jsienniak/sttp-oauth2 | oauth2/src/main/scala/com/ocadotechnology/sttp/oauth2/ClientCredentialsToken.scala | package com.ocadotechnology.sttp.oauth2
import com.ocadotechnology.sttp.oauth2.common._
import io.circe.Decoder
import io.circe.refined._
import sttp.client3.ResponseAs
import com.ocadotechnology.sttp.oauth2.common.Error.OAuth2Error
import scala.concurrent.duration.FiniteDuration
object ClientCredentialsToken {
t... |
EmileRouxTriton/android-sdk | streamingproxy/src/main/java/com/tritondigital/net/streaming/proxy/server/http/HttpRequest.java | <reponame>EmileRouxTriton/android-sdk<filename>streamingproxy/src/main/java/com/tritondigital/net/streaming/proxy/server/http/HttpRequest.java
package com.tritondigital.net.streaming.proxy.server.http;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* Represents an Http Request.
* Filled when each line is... |
tsh2/platform-sdk2 | src/client/assets/js/nodes/inputs/inject/actions.js | <filename>src/client/assets/js/nodes/inputs/inject/actions.js<gh_stars>1-10
import * as Action from './constants';
import {actionCreators as nodeActions} from 'features/nodes/actions';
import moment from 'moment';
const multiplier = { 's': 1, 'm': 60, 'h': 60*60};
function crontab(state){
if (state.repeatOption ==... |
wookie41/blitz | renderer/core/src/core/ogl/buffer/OpenGLBufferFiller.cpp | <reponame>wookie41/blitz
#include "core/RendererErrorCode.h"
#include "core/ogl/OpenGLContext.h"
#include "core/ogl/buffer/OpenGLBufferFiller.h"
#include "core/ogl/buffer/SimpleOpenGLBuffer.h"
namespace blitz::ogl
{
OpenGLBufferFiller::OpenGLBufferFiller(OpenGLContext* glContext) : glContext(glContext) {}
vo... |
piiigletTheThird/FlightOneOpenSource | src/flight_controller/inc/imu.h | <reponame>piiigletTheThird/FlightOneOpenSource
#pragma once
// +X to the right
// +Y straight up
// +Z axis toward viewer
// Heading = rotation about y axis
// Attitude = rotation about z axis
// Bank = rotation about x axis
//30 degrees per second
#define MAX_SPIN_RATE_RAD 0.523599f
typedef struct {
volatile flo... |
metux/chromium-deb | mojo/public/tools/bindings/generate_export_header.py | #!/usr/bin/env python
# Copyright 2017 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.
"""Generates a C++ header to define a component export macro."""
import argparse
import os
import sys
_TEMPLATE = """// Copyright 201... |
nhojpatrick/nhojpatrick-cucumber | testing-internal/steps/src/main/java/com/github/nhojpatrick/cucumber/testing/internal/steps/json/transform/WhitespaceTransformation_TestingInternalSteps.java | <reponame>nhojpatrick/nhojpatrick-cucumber
package com.github.nhojpatrick.cucumber.testing.internal.steps.json.transform;
import com.github.nhojpatrick.cucumber.core.exceptions.IllegalKeyException;
import com.github.nhojpatrick.cucumber.core.exceptions.IllegalOperationException;
import com.github.nhojpatrick.cucumber.... |
ht1131589588/web-library | Webpack/mini-webpack/plugins/TestPlugin.js | <filename>Webpack/mini-webpack/plugins/TestPlugin.js
class TestPlugin {
apply(compiler) {
compiler.hooks.beforeRun.tapAsync("just4fun", function() {
console.log('[Success] 开始编译')
})
}
}
module.exports = TestPlugin |
nielsmeima/tinyMediaManagerSME | src/main/java/org/tinymediamanager/scraper/moviemeter/MovieMeter.java | /*
* Copyright 2012 - 2020 <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 agreed t... |
yzr0512/tingwoshuo | app/src/main/java/com/cqu/shixun/tingwoshuo/MyApplication.java | package com.cqu.shixun.tingwoshuo;
import android.app.Application;
import com.cqu.shixun.tingwoshuo.model.User;
public class MyApplication extends Application {
// 在这里可以定义一些全局的变量
User currUser; // 当前登录的用户
public User getCurrUser() {
return currUser;
}
public void setCurrUser(User ... |
BrianApple/iRpc | src/main/java/iRpc/base/processor/IProcessor.java | <filename>src/main/java/iRpc/base/processor/IProcessor.java
package iRpc.base.processor;
import java.util.HashMap;
import java.util.Map;
import iRpc.dataBridge.ResponseData;
/**
* 执行器
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2019</p>
* <p>Company: www.uiotp.com</p>
* @author yangcheng
* @date 2021年... |
hodgman/eight | src/core/timer/timer.cpp | //------------------------------------------------------------------------------
#include <eight/core/test.h>
#include <eight/core/debug.h>
#include <eight/core/alloc/scope.h>
#include <eight/core/timer/timer.h>
#include <eight/core/thread/atomic.h>
#include <timer_lib/timer.h>
using namespace eight;
//---------------... |
jasonadamyoung/busterleague | app/models/game_batting_stat.rb | # === COPYRIGHT:
# Copyright (c) <NAME>
# === LICENSE:
# see LICENSE file
class GameBattingStat < ApplicationRecord
include CleanupTools
belongs_to :roster, optional: true
has_one :player, through: :roster
belongs_to :team
belongs_to :opposing_team, :class_name => 'Team'
belongs_to :boxscore
before_sav... |
fuqi1001/EasyTrading | data/index.js | <reponame>fuqi1001/EasyTrading
module.exports = {
users: require("./users"),
items: require("./items"),
classify: require("./classify"),
apartments: require("./apartments"),
locations: require("./locations"),
comments: require("./comments")
}; |
cobot/coworkers | features/support/id_generators.rb | module IdGenerators
def next_id
@id ||= 0
@id += 1
@id.to_s
end
end
World(IdGenerators) if respond_to?(:World)
|
srgnuclear/shogun | src/shogun/classifier/svm/SVMSGD.cpp | <gh_stars>1-10
/*
SVM with stochastic gradient
Copyright (C) 2007- <NAME>
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.1 of the License, or (at your optio... |
ncgomez17/OlympicGames | juegos_olimpicos/src/main/java/com/juegosolimpicos/services/impl/HeadquarterServiceImpl.java | <gh_stars>0
package com.juegosolimpicos.services.impl;
import com.juegosolimpicos.dto.IOlympicGamesDto;
import com.juegosolimpicos.exceptions.BaseException;
import com.juegosolimpicos.exceptions.ConflictException;
import com.juegosolimpicos.exceptions.EntityNotFoundException;
import com.juegosolimpicos.exceptions.Erro... |
julian119988/crud-ecommerce-server | models/tables.model.js | module.exports = (sequelize, DataTypes) => {
const Products = sequelize.define(
"products",
{
name: {
type: DataTypes.STRING,
allowNull: false,
required: true,
},
description: {
type: DataTypes.STRING... |
fsxfreak/esys-pbi | src/pupil/pupil_src/shared_modules/video_capture/uvc_backend.py | '''
(*)~---------------------------------------------------------------------------
Pupil - eye tracking platform
Copyright (C) 2012-2017 <NAME>
Distributed under the terms of the GNU
Lesser General Public License (LGPL v3.0).
See COPYING and COPYING.LESSER for license details.
---------------------------------------... |
Priyansh863/e-backend | Lib/site-packages/opt_einsum/backends/cupy.py | <reponame>Priyansh863/e-backend
"""
Required functions for optimized contractions of numpy arrays using cupy.
"""
import numpy as np
from ..sharing import to_backend_cache_wrap
__all__ = ["to_cupy", "build_expression", "evaluate_constants"]
@to_backend_cache_wrap
def to_cupy(array): # pragma: no cover
import ... |
vis4rd/db_project_2021 | doc/html/search/functions_8.js | var searchData=
[
['placeformsection_169',['placeFormSection',['../class_application.html#a81f066df3ca1cdae16028a15a952a94b',1,'Application']]],
['placemenusection_170',['placeMenuSection',['../class_application.html#abb3ba6361b4dc0042031ea66ae6fe544',1,'Application']]]
];
|
jan-zajic/kotlin-eclipse | kotlin-eclipse-core/src/org/jetbrains/kotlin/core/debug/KotlinSourceLookupNavigator.java | <gh_stars>100-1000
/*
* Copyright 2010-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
dmaciaszek/pac4j | pac4j-openid/src/main/java/org/pac4j/openid/credentials/extractor/YahooCredentialsExtractor.java | <filename>pac4j-openid/src/main/java/org/pac4j/openid/credentials/extractor/YahooCredentialsExtractor.java
package org.pac4j.openid.credentials.extractor;
import org.openid4java.discovery.DiscoveryInformation;
import org.openid4java.message.ParameterList;
import org.pac4j.core.context.WebContext;
import org.pac4j.core... |
adamnok/linden | componens/linden-package-flowers/src/main/scala/linden/flowers/dynamic.scala | /*
* MIT LICENCE
*
* Copyright (c) 2021 <NAME> [<EMAIL>]
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy... |
uscliufei/TouMai-Net | app/src/main/java/com/runer/toumai/dao/AddImageDao.java | package com.runer.toumai.dao;
import android.content.Context;
import com.fasterxml.jackson.databind.JsonNode;
import com.loopj.android.http.RequestParams;
import com.orhanobut.logger.Logger;
import com.runer.net.IDao;
import com.runer.net.RequestCode;
import com.runer.net.interf.INetResult;
import com.runer.toumai.ba... |
DFE-Digital/login.dfe.applications | src/app/services/upsertServiceBanner.js | <reponame>DFE-Digital/login.dfe.applications
const { upsertServiceBanner } = require('./data');
const logger = require('./../../infrastructure/logger');
const validate = (req) => {
const model = {
banner: {
bannerId: req.body.id,
serviceId: req.params.id,
name: req.body.name,
title: req.b... |
zipated/src | third_party/blink/renderer/core/editing/commands/selection_for_undo_step.cc | // Copyright 2017 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 "third_party/blink/renderer/core/editing/commands/selection_for_undo_step.h"
#include "third_party/blink/renderer/core/editing/editing_utilities... |
Mortimyrrh/Mycelia-Forge | build/tmp/expandedArchives/forge-1.16.5-36.1.0_mapped_official_1.16.5-sources.jar_01fb3b8234f72f7172716347a075bc60/net/minecraft/command/impl/ParticleCommand.java | <filename>build/tmp/expandedArchives/forge-1.16.5-36.1.0_mapped_official_1.16.5-sources.jar_01fb3b8234f72f7172716347a075bc60/net/minecraft/command/impl/ParticleCommand.java
package net.minecraft.command.impl;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.FloatArgumentType;
import... |
FStoeltie/themaopdracht04 | examples/courses/v1th04/practicum1/main.c | // blink a LED on pin PIO1_4
//
// This is a very simple blink-a-LED application.
// It aims to show direct use of the hardware rather than
// good programming practices (like abstracting from the GPIO pin
// used and using a timer for the delay).
//
// It uses the CMSIS header file to access the direction
// and value... |
austin-starks/Zetta | test/fixture/portscanner.js | <reponame>austin-starks/Zetta<gh_stars>100-1000
var portscanner = require('portscanner');
var async = require('async');
module.exports = find;
function find(obj, cb) {
var startPort = obj.startingPort || 3000;
var ports = [];
async.until(function(){
return ports.length > obj.count;
}, function(next) {
... |
fexter-svk/C90-Compiler-EIE2 | test/c_compiler/int_18/int_18.c | int main(){
int j = 10, z = 120;
int i = 2;
i &= 20 + j;
i |= 20 + i + z;
return i;
}
|
derpferd/aws-sdk-cpp | aws-cpp-sdk-application-insights/include/aws/application-insights/model/ApplicationInfo.h | <filename>aws-cpp-sdk-application-insights/include/aws/application-insights/model/ApplicationInfo.h
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* ... |
xge/megamol | plugins/mesh/src/Utility.cpp | <filename>plugins/mesh/src/Utility.cpp<gh_stars>10-100
#include "mesh/Utility.h"
namespace megamol {
namespace mesh {
namespace utility {
std::tuple<VertexPositions, VertexNormals, QuadIndices> tessellateFace(
glm::vec3 v00, glm::vec3 v10, glm::vec3 v11, glm::vec3 v01, unsigned int u_subdivs, unsigned int v_subdi... |
ViktorHirin/NFT-Tax-Tool | src/views/pages/Default/index.js | <reponame>ViktorHirin/NFT-Tax-Tool<gh_stars>1-10
import { useEffect, useState } from 'react';
// material-ui
import { Grid, Typography, useMediaQuery, Button } from '@mui/material';
import { useTheme } from '@mui/material/styles';
// Import EventBus
import EventBus from 'hooks/eventBus';
import ReactExport from 'react... |
NumberAI/python-bandwidth-iris | examples/rate_center.py | <reponame>NumberAI/python-bandwidth-iris
import sys
from iris_sdk import Client, RateCenters, RestError
if len(sys.argv) < 2:
sys.exit("usage: python rate_center.py [state], e.g.:\n" +
"python rate_center.py NJ")
rate_centers = RateCenters(client=Client(filename="config.cfg"))
print("\n")
try:
cent... |
gitwyy/prometheus | aphrodite-model/src/main/java/com/pay/aphrodite/model/entity/HqlTaskLog.java | package com.pay.aphrodite.model.entity;
public class HqlTaskLog extends BaseEntity<HqlTaskLog>{
private String lfsPath;
private String taskStep;
private String taskNo;
public String getLfsPath() {
return lfsPath;
}
public HqlTaskLog setLfsPath(String lfsPath) {
this.lfsPat... |
ndennu/appPattern | AppPattern/app/src/main/java/com/example/ndennu/apppattern/TaskActivity.java | package com.example.ndennu.apppattern;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Recy... |
jingcao80/Elastos | Sources/Elastos/Frameworks/Droid/Base/Services/Server/src/elastos/droid/server/pm/CrossProfileIntentFilter.cpp | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... |
Arodev76/L2Advanced | src/main/java/l2f/gameserver/model/reward/RewardList.java | <reponame>Arodev76/L2Advanced
package l2f.gameserver.model.reward;
import java.util.ArrayList;
import java.util.List;
import l2f.gameserver.model.Player;
/**
* @reworked VISTALL
*/
@SuppressWarnings("serial")
public class RewardList extends ArrayList<RewardGroup>
{
public static final int MAX_CHANCE = 1000000;
p... |
JJhuk/study_emu | chip8/src/main.cpp | <reponame>JJhuk/study_emu
#include <iostream>
#include <atomic>
#include <thread>
#include <gl/gl3w.h>
#include <GLFW/glfw3.h>
#include "hardware/Chip8.h"
#include <chrono>
/*
void ReadCh(std::atomic<bool>& run)
{
std::string buffer;
int input;
while (run.load())
{
input = _getch();
if (input == '0')
{
... |
andy-v-h/hollow | pkg/api/v1/server.go | package hollow
import (
"time"
"github.com/gin-gonic/gin"
"github.com/google/uuid"
"github.com/volatiletech/null/v8"
"go.metalkube.net/hollow/internal/models"
)
// Server represents a server in a facility
type Server struct {
UUID uuid.UUID `json:"uuid"`
Name string ... |
bharath063/NSPHP-DOC | class_net_suite_1_1_classes_1_1_topic_solution.js | <filename>class_net_suite_1_1_classes_1_1_topic_solution.js
var class_net_suite_1_1_classes_1_1_topic_solution =
[
[ "$message", "class_net_suite_1_1_classes_1_1_topic_solution.html#abf17cb2dba2ed17cb28aa5f37deb5293", null ],
[ "$solution", "class_net_suite_1_1_classes_1_1_topic_solution.html#aa9d7f2370bf077bc3... |
mongobaba/refactoring-java | src/main/java/org/mongobaba/refactory/chapter10/Chapter10_7.java | package org.mongobaba.refactory.chapter10;
/**
* Preserve Whole Object
* 保持对象完整
*/
public class Chapter10_7 {
static class TempRange {
private int low;
private int high;
public TempRange(int low, int high) {
this.low = low;
this.high = high;
}
pu... |
billchenxi/ClaraGenomicsAnalysis | docs/cpp/search/functions_5.js | var searchData=
[
['filter_5foverlaps_194',['filter_overlaps',['../group__cudamapper.html#ga3e5732f34489315ec8d1ef8b82ccea5c',1,'claragenomics::cudamapper::Overlapper']]],
['first_5foccurrence_5fof_5frepresentations_195',['first_occurrence_of_representations',['../classclaragenomics_1_1cudamapper_1_1Index.html#af4f... |
trygas/CGHomework | Ubpa/UGM-0.1/include/UGM/Interfaces/IArray/IArray.h | <filename>Ubpa/UGM-0.1/include/UGM/Interfaces/IArray/IArray.h<gh_stars>0
#pragma once
#include "../../basic.h"
#include "../Arg.h"
#include <UTemplate/SI.h>
#include <array>
#include <vector>
#include <iostream>
#include <cmath>
#include <assert.h>
namespace Ubpa {
template<typename Base, typename Impl, typename ... |
PatrickDropbox/abc | src/jvm_bytecode/operations/math_operations.scala | import java.io.DataInputStream
import java.io.DataOutput
// stack: ..., value1, value2 -> ..., result
abstract class BinaryIOp(owner: AttributeOwner, opCode: Int, mnemonic: String)
extends NoOperandOp(owner, opCode, mnemonic) {
}
// stack: ..., value1 -> ..., result
abstract class UnaryIOp(owner: AttributeOw... |
arez/arez | processor/src/test/fixtures/input/com/example/pre_dispose/other/AbstractMultiModel.java | package com.example.pre_dispose.other;
import arez.annotations.PreDispose;
public abstract class AbstractMultiModel
{
@PreDispose
protected void abstractPreDispose1()
{
}
@PreDispose
protected void abstractPreDispose2()
{
}
}
|
Oracle-Exam-Preparation/OCP | src/main/java/com/trl/_tests/nestedClass/innerClass/t3/Test.java | <reponame>Oracle-Exam-Preparation/OCP
package com.trl._tests.nestedClass.innerClass.t3;
/**
* This test is taken from the book: OCP: Oracle ®
* Certified Professional
* Java® SE 8 Programmer II
* by <... |
simplificator/helena_administration | spec/features/surveys/manage_survey_spec.rb | require 'spec_helper'
feature 'Surveys' do
scenario 'Index site lists all surveys' do
create :survey, name: 'Innerbetriebliche Zufriedenheit', position: 2
create :survey, name: 'Life satisfaction scale', position: 1
visit surveys_path
within 'nav .breadcrumbs' do
expect(page).to have_content ... |
Amity-Network/amity | contrib/depends/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/DiscRecording.framework/Versions/A/Headers/DRContentFile.h | <gh_stars>0
/*
File: DiscRecording/DRContentFile.h
Contains: Interface to file objects used in filesystem creation.
Version: Technology: Mac OS X
Release: Mac OS X
Copyright: (c) 2002-2007 Apple Inc. All Rights Reserved.
Bugs?: For bug reports, cons... |
XuHaijwill/spring-demo | spring-base/src/test/java/org/example/spring/base/cap8/Cap8MainTest.java | package org.example.spring.base.cap8;
import org.example.spring.base.cap8.bean.Bird;
import org.example.spring.base.cap8.config.Cap8MainConfig;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;
import s... |
sylphlike/Gopal.pan-hairSalon | src/main/java/com/horse/v7mc/common/base/BaseAction.java | <reponame>sylphlike/Gopal.pan-hairSalon<gh_stars>0
package com.horse.v7mc.common.base;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.horse.v7mc.po.V7Employee;
import org.springframework.stereotype.Component;
import org.sp... |
flightstats/hub | src/main/java/com/flightstats/hub/dao/ContentKeyUtil.java | package com.flightstats.hub.dao;
import com.flightstats.hub.model.*;
import com.flightstats.hub.util.TimeUtil;
import org.apache.commons.lang3.StringUtils;
import org.joda.time.DateTime;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class ContentKeyUtil {
public ... |
loveweb58/React-Pro-Dashboard | architectui-react-pro/src/DemoPages/Dashboards/Design/index.js | import React, { Component, Fragment } from 'react';
import Tabs from 'react-responsive-tabs';
import DesignLanding from './Landing';
// Examples
const tabsContent = [
{
title: 'Landing',
content: <DesignLanding />
},
{
title: 'Collection',
content: <DesignLanding />
},
{
title: 'Product'... |
IgnoredAmbience/test262 | implementation-contributed/javascriptcore/stress/weakmap-set-cse.js | function shouldBe(actual, expected)
{
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
function test()
{
var key1 = {};
var map = new WeakMap();
var r1 = map.get(key1);
map.set(key1, 42);
var r2 = map.get(key1);
return [r1, r2];
}
noInline(test);
for (var i = 0; ... |
silviu-negoita/smallrye-reactive-messaging | smallrye-reactive-messaging-provider/src/main/java/io/smallrye/reactive/messaging/providers/extension/HealthCenter.java | package io.smallrye.reactive.messaging.providers.extension;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Any;
import javax.enterprise.inject.Instance;
import javax.inject.Inject;
import io.smallrye.reactive.... |
JamesCao2048/BlizzardData | Corpus/aspectj/6533.java | <gh_stars>1-10
/* *******************************************************************
* Copyright (c) 2004 IBM
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distribution and is available at
... |
Yoomee/ym-content | test/dummy/db/migrate/20140212152412_create_content_attributes.rb | <filename>test/dummy/db/migrate/20140212152412_create_content_attributes.rb
class CreateContentAttributes < ActiveRecord::Migration
def change
create_table :content_attributes do |t|
t.belongs_to :content_type
t.string :slug
t.string :name
t.text :description
t.string :field_type
... |
billwert/azure-sdk-for-java | sdk/spring/spring-cloud-azure-core/src/main/java/com/azure/spring/cloud/core/provider/authentication/NamedKeyProvider.java | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.spring.cloud.core.provider.authentication;
import com.azure.spring.cloud.core.properties.authentication.NamedKeyProperties;
/**
* Interface to be implemented by classes that wish to provide the named ke... |
RedRecondite/hotel | story/pigsack.c | //sack of grain. again more or less copied from the original game.
void main( void )
{
sp_touch_damage(¤t_sprite, -1);
}
void hit(void)
{
say("I hate you, sack of feed!", 1);
}
void talk(void)
{
//removing the freezing because it can lock up the game if you pick it up and talk to it at the same time
//freeze(... |
jovialgent/ivx-js | src/angular/directives/input.options.js | <gh_stars>0
import createFactoryFunction from '../utilities/create-factory-function.js';
import OptionsInputController from '../controllers/input.options.js';
import { ErrorMessages } from '../utilities/messages.error.js';
class OptionsInput {
constructor($compile, $filter, iVXjs, iVXjsUIModule, iVXjsBus, pul... |
karinakozarova/C-Programming-Exercises | Code/Entrance level/11grade/17_twin_primes.c | #include <stdio.h>
int are_prime(int num1,int num2){
if(num1 - num2 == 2 || num2 - num1 == 2)
return 1;
return 0;
}
float sum_primes(float x){
double sum = 0,result = 0;
for (int i = 1; ; ++i){
result = 1/i + 1/(i+2);
printf("%f %d\n",result,i );
if (result < x) break;
sum += result;
}
r... |
vnyrjkmr/myapp | strongloop/node_modules/strong-build/test/test-onto.js | var assert = require('assert');
var debug = require('debug')('strong-build:test');
var fs = require('fs');
var path = require('path');
var tar = require('tar');
var util = require('util');
var vasync = require('vasync');
var zlib = require('zlib');
var shell = require('shelljs/global');
// Check for node silently exi... |
codingchili/chili-game-ext | services/realm/main/java/com/codingchili/instance/transport/UpdateMessage.java | <filename>services/realm/main/java/com/codingchili/instance/transport/UpdateMessage.java
package com.codingchili.instance.transport;
import com.codingchili.common.ReceivableMessage;
import com.codingchili.instance.model.events.Event;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.an... |
tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | XFree86-3.3/xc/lib/x11/CrGlCur.c | /* $XConsortium: CrGlCur.c,v 11.9 94/04/17 20:19:00 rws Exp $ */
/*
Copyright (c) 1986 X Consortium
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitat... |
qnoid/windmill-api | src/test/java/io/windmill/windmill/services/NotificationMessagesTest.java | //
// Created by <NAME> (<EMAIL>)
// Copyright © 2014-2020 qnoid.com. All rights reserved.
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// Permission is granted to anyone to use this software for any purpose,
// includin... |
quantummaiddeveloper/mapmaid | tests/src/test/java/de/quantummaid/mapmaid/specs/examples/system/generator/concepts/CustomPrimitive.java | /*
* Copyright (c) 2020 <NAME> - https://quantummaid.de/.
*
* 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 und... |
paulmetzger/Device-Hopping-Paper | source_to_source_translator/malloc_for_indirectly_accessed_buffers_template.h | {
auto start_index_lambda = %START_INDEX_LAMBDA%;
auto final_index_lambda = %FINAL_INDEX_LAMBDA%;
const size_t start_thread_id = current_offsets[0] * BLOCK_SIZE_X;
const size_t final_thread_id = start_thread_id + current_slice_sizes[0] * BLOCK_SIZE_X;
const size_t start_index = start_index_lambda(st... |
cpreh/spacegameengine | libs/opencl/src/opencl/command_queue/map_flags_to_native.cpp | // Copyright <NAME> 2006 - 2019.
// 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 <sge/opencl/clinclude.hpp>
#include <sge/opencl/command_queue/map_flags.hpp>
#include <sge/opencl/co... |
Iceweazel/testbed | separate/testbedproject/src/main/java/com/johan/producers/RabbitProducer.java | package com.johan.producers;
import java.io.IOException;
import java.util.concurrent.TimeoutException;
import com.johan.generic.Producer;
import com.rabbitmq.client.ConnectionFactory;
import com.rabbitmq.client.MessageProperties;
import com.rabbitmq.client.AMQP.BasicProperties;
import com.rabbitmq.client.Channel;
imp... |
uw-x/tymp | mcu/imageSensor/HM01B0_GPIO.h | <filename>mcu/imageSensor/HM01B0_GPIO.h
/*
* HM01B0_GPIO.h
*
* Created on: Nov 20, 2018
* Author: Ali
*/
#ifndef HM01B0_GPIO_H_
#define HM01B0_GPIO_H_
/* Standard C Included Files */
#include <stdbool.h>
//#include <stdio.h>
//#include <string.h>
#include "nrf.h"
#include "nrf_drv_gpiote.... |
iamzken/aliyun-openapi-cpp-sdk | rds/include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerResult.h | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
yanyushr/fuchsia | garnet/bin/a11y/a11y_manager/util.cc | // Copyright 2019 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 "garnet/bin/a11y/a11y_manager/util.h"
namespace a11y_manager {
zx_koid_t GetKoid(const fuchsia::ui::views::ViewRef& view_ref) {
return fsl::Ge... |
blackjyn/flex-sdk | modules/thirdparty/velocity/src/java/org/apache/flex/forks/velocity/exception/MethodInvocationException.java | package org.apache.flex.forks.velocity.exception;
/*
* Copyright 2001,2004 The Apache Software Foundation.
*
* 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... |
McDoyen/yavasource | javasource/saml20/proxies/EntityDescriptor.java | <filename>javasource/saml20/proxies/EntityDescriptor.java
// This file was generated by Mendix Modeler.
//
// WARNING: Code you write here will be lost the next time you deploy the project.
package saml20.proxies;
public class EntityDescriptor
{
private final com.mendix.systemwideinterfaces.core.IMendixObjec... |
PowerOlive/garnet | bin/auth/cache/token_cache.h | // Copyright 2017 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 GARNET_BIN_AUTH_CACHE_TOKEN_CACHE_H
#define GARNET_BIN_AUTH_CACHE_TOKEN_CACHE_H
#include <list>
#include <map>
#include <string>
#include <utility... |
flapjs/webapp | src/main.js | /* global __NODE_ENV__ */
/* global __VERSION__ */
import { startUp } from './WebApplication.js';
// NOTE: __NODE_ENV__ is defined in `template.html` as a global.
// NOTE: __VERSION__ is defined by Webpack with the DefinePlugin.
startUp(__NODE_ENV__, __VERSION__);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.