repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
afeng11/tomato-arm | release/src-rt-6.x.4708/router/transmission/gtk/transmission-resources.h | <reponame>afeng11/tomato-arm
#ifndef __RESOURCE_transmission_H__
#define __RESOURCE_transmission_H__
#include <gio/gio.h>
extern GResource *transmission_get_resource (void);
#endif
|
ts-miller/rails-project | app/controllers/callbacks_controller.rb | <reponame>ts-miller/rails-project
class CallbacksController < ApplicationController
def google
@user = User.from_omniauth(request.env["omniauth.auth"])
session[:user_id] = @user.id
set_session(@user)
redirect_to user_pledges_path(@user)
end
end |
jMonkeyEngine/jMonkeyEngineSDK | jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/animation/JmeJointChildren.java | /*
* Copyright (c) 2009-2020 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this... |
UmerSami/SS-OpenSpecimen | WEB-INF/src/com/krishagni/catissueplus/core/administrative/domain/factory/SpecimenRequestErrorCode.java | package com.krishagni.catissueplus.core.administrative.domain.factory;
import com.krishagni.catissueplus.core.common.errors.ErrorCode;
public enum SpecimenRequestErrorCode implements ErrorCode {
NOT_FOUND,
NOT_APPROVED,
CLOSED,
SPECIMEN_DISTRIBUTED,
SPECIMEN_SHIPPED,
FORM_NOT_CONFIGURED,
FORM_NOT_FILLED,... |
franneck94/UdemyCExt | 12_Advanced/MatrixLib3/Matrix.h | <gh_stars>0
#ifndef MATRIX_H
#define MATRIX_H
#include <stdbool.h>
#include <stdint.h>
#include "Vector.h"
/**********************/
/* DEFINES AND TYPES */
/**********************/
typedef enum
{
AXIS_0,
AXIS_1,
} Axis;
typedef struct
{
float *data;
size_t num_rows;
size_t num_cols;
} Matrix;
... |
Pritam-Biswas/Transaction-Cost-Analytics-Engine | Multi Process Application/analysis/SimpleAnalysisSpread.py | <filename>Multi Process Application/analysis/SimpleAnalysisSpread.py<gh_stars>1-10
from data.DataCash import CDataCash
from data.DataFuture import CDataFuture
from utils.Spread import CSpread
from utils.UtilsSpread import CUtilsSpread
from data.FormatData import CFormatData
from visualize.plot.CustomPlot import CCustom... |
yogeshwargnanasekaran/gophercloud | acceptance/openstack/networking/v2/extensions/fwaas/firewall_test.go | // +build acceptance networking fwaas
package fwaas
import (
"testing"
"github.com/yogeshwargnanasekaran/gophercloud/acceptance/clients"
layer3 "github.com/yogeshwargnanasekaran/gophercloud/acceptance/openstack/networking/v2/extensions/layer3"
"github.com/yogeshwargnanasekaran/gophercloud/acceptance/tools"
"git... |
ETN-Tech/isen_emergence-app | react-ui/src/components/godfather/MeetingRating.js | <filename>react-ui/src/components/godfather/MeetingRating.js
/**
* MEETINGS RATING COMPONENT <- GODFATHER MEETING CARD COMPONENT <- GODFATHER MEETINGS LIST PAGE
* Radio buttons to rate a meeting
*/
import React, {useState} from "react";
import {Button, Form, FormCheck} from "react-bootstrap";
function MeetingRatin... |
hendrik-skubch/alica | alica_tests/autogenerated/src/Plans/Defend1402488893641.cpp | <filename>alica_tests/autogenerated/src/Plans/Defend1402488893641.cpp
#include "Plans/Defend1402488893641.h"
using namespace alica;
/*PROTECTED REGION ID(eph1402488893641) ENABLED START*/ // Add additional using directives here
/*PROTECTED REGION END*/
namespace alicaAutogenerated
{
// Plan:Defend
/* generated comment... |
rajat-saxena14/All-Integrated-Apps | app/src/main/java/com/example/allandroidprojects/SplashAnimation1.java | package com.example.allandroidprojects;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.Handler;
import android.view.MenuItem;
import android.view.WindowManager;
import and... |
stephenjmaher/ipet | ipet/validation/__init__.py | <reponame>stephenjmaher/ipet<filename>ipet/validation/__init__.py<gh_stars>10-100
# -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2018 Zuse Institute Berlin, www.zib.de
Permissions are granted as stated in the license file you have obtained
with this software. If you find the library useful for your p... |
frasermacquarrie/thenoiseontoys | modules/core/client/config/core-admin.client.menus.js | 'use strict';
angular.module('core.admin').run(['Menus',
function (Menus) {
//Adding the topbar menu
Menus.addMenu('admin.sidebar', {
roles: ['admin']
});
Menus.addMenuItem('admin.sidebar', {
title: 'Dashboard',
state: 'admin.home',
//type: 'dropdown',
icon: { 'simple... |
giantcroc/envoy | source/common/tracing/http_tracer_impl.cc | #include "source/common/tracing/http_tracer_impl.h"
#include <string>
#include "envoy/config/core/v3/base.pb.h"
#include "envoy/network/address.h"
#include "envoy/tracing/http_tracer.h"
#include "envoy/type/metadata/v3/metadata.pb.h"
#include "envoy/type/tracing/v3/custom_tag.pb.h"
#include "source/common/common/ass... |
Cherobin/GameJamUnivali2020 | ApocalipseCHI/src/engine/base/entities/GameObject.java | package engine.base.entities;
import java.awt.Graphics2D;
import java.util.Map;
import engine.utils.BoundingBox;
public interface GameObject extends Comparable<GameObject> {
String getName();
void update(float diffTime);
void render(Graphics2D dbg);
Map<String, Component> getComponents();
int compa... |
apache/incubator-taverna-server | taverna-server-webapp/src/main/java/org/apache/taverna/server/master/exceptions/FilesystemAccessException.java | <filename>taverna-server-webapp/src/main/java/org/apache/taverna/server/master/exceptions/FilesystemAccessException.java
/*
*/
package org.apache.taverna.server.master.exceptions;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distribute... |
FEPD/Kira | kira-manager/src/main/webapp/app/view/task/TaskList.js | Ext.define('Kira.view.task.TaskList', {
extend : 'Ext.container.Container',
//extend : 'Ext.form.Panel',
alias : 'widget.tasklist',
title : '任务配置管理',
layout: 'fit',
closable : true,
initComponent : function() {
var me = this;
Ext.applyIf(me, {
//margin : '0 10 10 10'
});
me.callParent(... |
yangfancoming/spring-5.1.x | spring-tx/src/main/java/org/springframework/dao/DataIntegrityViolationException.java |
package org.springframework.dao;
/**
* Exception thrown when an attempt to insert or update data
* results in violation of an integrity constraint. Note that this
* is not purely a relational concept; unique primary keys are
* required by most database types.
*
* @author <NAME>
*/
@SuppressWarnings("serial")
... |
mtezych/cpp | vulkan/include/vulkan/PipelineCache.h |
#ifndef VULKAN_PIPELINE_CACHE
#define VULKAN_PIPELINE_CACHE
#include <vulkan/vulkan.h>
#include <vector>
namespace vk
{
struct Device;
struct PipelineCache
{
const Device* device;
VkPipelineCache vkPipelineCache;
PipelineCache
(
const Device& device,
const std::vector<const vo... |
raeleus/gdx-vfx | gdx-vfx/core/src/com/crashinvaders/vfx/utils/ScreenQuadMesh.java | /*******************************************************************************
* Copyright 2012 bmanuel
* Copyright 2019 metaphore
*
* 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
*
... |
ldy121/algorithm | google_interview_practice/The_k_Strongest_Values_in_an_Array/solve.cc | class Solution {
public:
vector<int> getStrongest(vector<int>& arr, int k) {
vector<int> ret;
int m;
sort(arr.begin(), arr.end());
m = arr[(arr.size() - 1) / 2];
for (int left = 0, right = arr.size() - 1; (left <= right) && ret.size() < k;) {
int l = m - arr[left];... |
openforis/calc | calc-webapp/src/main/webapp/js/calc/manager/data/strata-data-provider.js | /**
* data provider for strata.
*
* @author <NAME>
*/
StrataDataProvider = function (){
this.exportEnabled = false;
this.schema = '';
this.table = '';
this.variables = [];
this.count( $.proxy(function(cnt){
if( cnt > 0 ){
var tableInfo = new StratumManager.prototype.tableInfo();
this.sche... |
Cadcorp/GeometricTools | GTE/Graphics/DX11/DX11SamplerState.cpp | // <NAME>, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2020
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
// https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// Version: 4.0.2019.08.13
#include <Graphics/DX11/GTGraphicsDX11PCH.h>
#include... |
privet56/qDesktopSearch | clucene/CLucene/search/FilterResultCache.h | <reponame>privet56/qDesktopSearch
/*------------------------------------------------------------------------------
* Copyright (C) 2003-2006 <NAME> and the CLucene Team
*
* Distributable under the terms of either the Apache License (Version 2.0) or
* the GNU Lesser General Public License, as specified in the COPYING ... |
ScalablyTyped/SlinkyTyped | s/std/src/main/scala/typingsSlinky/std/MSAssertion.scala | package typingsSlinky.std
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait MSAssertion extends StObject {
val id: java.lang.String = js.native
val `ty... |
s-guillaume/nuxeo-web-ui | packages/nuxeo-web-ui-ftest/pages/ui/group.js | import BasePage from '../base';
export default class Group extends BasePage {
getField(field) {
driver.waitForExist(this._selector);
driver.waitForVisible(this._selector);
return this.el.element(`[id="${field}"]`);
}
get dropdown() {
return this.el.element('#menu');
}
get groupItem() {
... |
sabachan/framework | src/Core/Assert.cpp | <gh_stars>0
#include "stdafx.h"
#include "Assert.h"
#include "IntTypes.h"
#include "Log.h"
#include "WindowsH.h"
#include <sstream>
#include <unordered_set>
namespace sg {
//=============================================================================
namespace {
size_t PackFileAndLine_CanCollide(ch... |
CommandPost/FinalCutProFrameworks | Headers/Frameworks/Ozone/OZCurveEditorAppDelegate-Protocol.h | <filename>Headers/Frameworks/Ozone/OZCurveEditorAppDelegate-Protocol.h
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <Ozone/NSObject-Protocol.h>
@class NSString;
@protocol OZCurveEditorAppDelegate <NSObject>
- (void)uns... |
gczhang-minhong/spring-boot-samples | spring-boot-demo/src/main/java/com/funtl/spring/hello/moudule/proxy/staticProxy/StaticProxy.java | <filename>spring-boot-demo/src/main/java/com/funtl/spring/hello/moudule/proxy/staticProxy/StaticProxy.java
package com.funtl.spring.hello.moudule.proxy.staticProxy;
import com.funtl.spring.hello.moudule.proxy.Man;
import com.funtl.spring.hello.moudule.proxy.Person;
/**
* @PackgeName: com.funtl.spring.hello.moudule.p... |
langkcc/AndroidFramwork | androidframework/src/main/java/com/juefeng/android/framework/LKDownFileManager.java | package com.juefeng.android.framework;
import com.juefeng.android.framework.down.DownHandler;
import java.io.File;
/**
* Created with IntelliJ IDEA.
* User: LangK
* Date: 2017/9/28
* Time: 16:14
* Description:
*/
public interface LKDownFileManager {
/**
* down file.
* support breakpoint resume
... |
TerikKek/Chuu | src/main/java/core/parsers/explanation/ArtistExplanation.java | package core.parsers.explanation;
import core.parsers.explanation.util.Explanation;
import core.parsers.explanation.util.ExplanationLineType;
import core.parsers.explanation.util.Interactible;
import net.dv8tion.jda.api.interactions.commands.OptionType;
public class ArtistExplanation implements Explanation {
publ... |
NickRowell/companieshouseapiclient | src/dm/Links.java | /*
* Gaia CU5 DU10
*
* (c) 2005-2020 Gaia Data Processing and Analysis Consortium
*
*
* CU5 photometric calibration software 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... |
tooky/dm-more | dm-serializer/spec/unit/to_json_spec.rb | require 'pathname'
require Pathname(__FILE__).dirname.expand_path.parent + 'spec_helper'
describe DataMapper::Serialize, '#to_json' do
#
# ==== ajaxy JSON
#
before(:all) do
query = DataMapper::Query.new(DataMapper::repository(:default), Cow)
@collection = DataMapper::Collection.new(query) do |c|
... |
gtkatakura/furb-learn-regex | client/components/exercises/Form.js | <filename>client/components/exercises/Form.js<gh_stars>1-10
import React from 'react';
import { FieldArray } from 'redux-form';
import { Form, TextField } from 'components/forms';
import { required } from 'validations';
import { SaveButton } from 'components/buttons';
import ExerciseSteps from './Steps';
import Regula... |
sidhoda/dnp3 | cpp/libs/src/opendnp3/outstation/event/EventCollection.h | /*
* Licensed to Green Energy Corp (www.greenenergycorp.com) under one or
* more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Green Energy Corp licenses this file to you under the Apache License,
* Version 2.0 (the "Lic... |
apm-learning/ApplicationInsights-Java | test/smoke/framework/utils/src/main/java/com/microsoft/applicationinsights/smoketest/HttpHelper.java | /*
* ApplicationInsights-Java
* Copyright (c) Microsoft Corporation
* All rights reserved.
*
* 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, inclu... |
angoodkind/darpa_aa | src/ngrammodel/FourgramModel.java | package ngrammodel;
import java.io.*;
import java.util.*;
import keystroke.KeyStroke;
public class FourgramModel implements Serializable {
private static final long serialVersionUID = 6529685098267757691L;
private ArrayList<String> unigrams;
private HashMap<String,Integer> unigramCounts;
private HashMap<Bi... |
wangyuxiang0829/Codeforces-CPP | src/dynamic_programming/494.cpp | #include <vector>
#include <cassert>
#include <algorithm>
using namespace std;
class Solution {
public:
int findTargetSumWays(vector<int> &nums, int S) {
int sum = 0;
for_each(nums.begin(), nums.end(), [&](int num) { sum += num; });
if (sum < S || ((sum + S) & 1) != 0) return 0;
int ... |
AdlerFleurant/roller | app/src/main/webapp/roller-ui/authoring/editors/xinha-1.5.1/plugins/MootoolsFileManager/MootoolsFileManager.FileManager.js | /**
= Mootools File Manager =
== File Manager ==
The functions in this file extend the MootoolsFileManager plugin with support
for managing files (inserting a link to a file). This file is loaded automatically.
* @author $Author$
* @version $Id$
* @package MootoolsFileManager
*/
// Open a "files... |
katoy/rails4-teams | app/models/relationship.rb | <reponame>katoy/rails4-teams
# people 1:<->:n (Developer, Staff)
class Relationship < ActiveRecord::Base
has_many :jobkinds, dependent: :destroy
belongs_to :follower, class_name: 'Person'
belongs_to :followed, class_name: 'Person'
default_scope -> { order(created_at: :asc) }
validates :follower_id, presenc... |
moogacs/aws-sdk-go-v2 | service/internal/benchmark/dynamodb/customizations_test.go | <filename>service/internal/benchmark/dynamodb/customizations_test.go
package benchmark
import (
"bytes"
"compress/gzip"
"context"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"path/filepath"
"strconv"
"testing"
"github.com/aws/aws-sdk-go-v2/internal/awstesting/unit"
"github.com/aws/aws-sdk-go-v2/service/dynamo... |
sansergio/thread-example | myTempSensor_REED/middleware/wireless/nwk_ip_1.2.1/base/stack_globals/icmp_globals.c | /*
* Copyright (c) 2014 - 2015, Freescale Semiconductor, Inc.
* Copyright 2016-2017 NXP
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice,... |
davidbhon/dpc-app | dpc-go/dpc-api/src/constants/constants.go | <filename>dpc-go/dpc-api/src/constants/constants.go
package constants
type contextKey int
const (
// OrgHeader is used in place of a auth token until SSAS is implemented
OrgHeader string = "X-ORG"
// FwdHeader is used to pass on the requesting IP address to attribution
FwdHeader string = "X-Forwarded-For"
// Req... |
huizhongyu/tempProject | app/src/main/java/cn/closeli/rtc/VideoConferenceActivity.java | <gh_stars>0
package cn.closeli.rtc;
import android.annotation.Nullable;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.PixelFormat;
import android.hardware.display.DisplayManager;
import android.os.Bundle;
import android.os.Handler;
import ... |
terceiro/rmagick | spec/rmagick/draw/circle_spec.rb | RSpec.describe Magick::Draw, '#circle' do
it 'works' do
draw = described_class.new
image = Magick::Image.new(200, 200)
draw.circle(10, '20.5', 30, 40.5)
expect(draw.inspect).to eq('circle 10,20.5 30,40.5')
expect { draw.draw(image) }.not_to raise_error
expect { draw.circle('x', 20, 30, 40) }... |
GhostMachineSoftware/SPFX_UsefulLinks | node_modules/office-ui-fabric-react/lib-amd/utilities/keytips/index.js | <filename>node_modules/office-ui-fabric-react/lib-amd/utilities/keytips/index.js
define(["require", "exports", "tslib", "./IKeytipTransitionKey", "./KeytipConfig", "./KeytipConstants", "./KeytipManager", "./KeytipUtils"], function (require, exports, tslib_1, IKeytipTransitionKey_1, KeytipConfig_1, KeytipConstants_1, Ke... |
jeffposnick/ioweb2015 | app/elements/webgl-globe/sol.js | /* global IOWA */
/**
* Copyright 2015 Google 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... |
yyc-git/YYCToolBox | control/paging/pagingServer/createPage/PagingBuilder.js | (function () {
//*方法库
function extend(destination, source) {
// var temp = {};
var property = "";
for (property in source) {
// temp[property] = source[property]; //用中间对象来保存source
destination[property] = source[property];
}
... |
bbcawodu/careadvisors-backend | picbackend/views/v2/nav_location_views/views.py | from django.views.generic import View
from picbackend.views.utils import JSONGETRspMixin
from picbackend.views.utils import JSONPUTRspMixin
from picmodels.models import NavMetricsLocation
from .tools import validate_put_rqst_params
# Need to abstract common variables in get and post class methods into class attrib... |
kozanitis/adam | adam-core/src/test/scala/org/bdgenomics/adam/models/FeatureHierarchySuite.scala | /**
* Licensed to Big Data Genomics (BDG) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The BDG licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use ... |
MrCreosote/execution_engine2 | lib/execution_engine2/authorization/roles.py | """
A utility class for fetching roles for a token and caching them.
This makes use of the TokenCache in the built-in service auth client.
This is an SDK-based service, so auth token validation is handled through
the Server. This just takes an auth token and discerns whether there's
a valid EE2 admin role attached to ... |
Khalid-Sultan/Algorithms-Prep | Leetcode/Array/2_-_Medium/1442._Count_Triplets_That_Can_Form_Two_Arrays_of_Equal_XOR.py | class Solution:
def countTriplets(self, A):
res = cur = 0
count = {0: [1, 0]}
for i, a in enumerate(A):
cur ^= a
n, total = count.get(cur, [0, 0])
res += i * n - total
count[cur] = [n + 1, total + i + 1]
return res |
krisjin/uis | luban-common/src/main/java/org/luban/common/web/json/JsonHelper.java | package org.luban.common.web.json;
/**
* User: krisjin
* Date: 2016/10/8
*/
public final class JsonHelper {
// private static final ObjectMapper objectMapper = new ObjectMapper();
// private static final JsonFactory jsonFactory = new JsonFactory();
//
// static {
// //设置输入时忽略在JSON字符串中存在但Java对象实际没有的属... |
28Smiles/jdbi-modules | src/main/java/jdbi_modules/internal/CollectorImpl.java | <filename>src/main/java/jdbi_modules/internal/CollectorImpl.java<gh_stars>1-10
package jdbi_modules.internal;
import jdbi_modules.Collector;
import org.jdbi.v3.core.mapper.RowMapper;
import org.jdbi.v3.core.statement.StatementContext;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;... |
EvanTich/WASPBot | src/evan/tichenor/bot/commands/util/BigText.java | package bot.evan.tichenor.commands.util;
import de.btobastian.javacord.entities.User;
import de.btobastian.sdcf4j.Command;
import de.btobastian.sdcf4j.CommandExecutor;
/**
* @author <NAME> (<EMAIL>)
* @version 1.0, 9/9/2017
*/
public class BigText implements CommandExecutor {
@Command(aliases = {"big", "bigte... |
Ccloud0302/seata | serializer/seata-serializer-kryo/src/main/java/io/seata/serializer/kryo/KryoInnerSerializer.java | /*
* Copyright 1999-2019 Seata.io Group.
*
* 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... |
liangxiaoqiao/LeetCodeDay | src/main/java/com/liangxiaoqiao/leetcode/day/hard/WordSearchIi.java | package com.liangxiaoqiao.leetcode.day.hard;
import java.util.List;
/*
* English
* id: 212
* title: Word Search II
* href: https://leetcode.com/problems/word-search-ii
* desc: Given a 2D board and a list of words from the dictionary, find all words in the board.\nEach word must be constructed from letters of seq... |
banderous/nfdiv-case-api | src/main/java/uk/gov/hmcts/divorce/document/content/provider/ApplicantTemplateDataProvider.java | package uk.gov.hmcts.divorce.document.content.provider;
import org.springframework.stereotype.Component;
import uk.gov.hmcts.ccd.sdk.type.AddressGlobalUK;
import uk.gov.hmcts.divorce.divorcecase.model.Applicant;
import uk.gov.hmcts.divorce.divorcecase.model.Application;
import java.util.stream.Stream;
import static ... |
hiyouga/CPP-Learning | buaaoj/1335.cpp | <reponame>hiyouga/CPP-Learning<gh_stars>0
#include <iostream>
using namespace std;
int n, s = 0;
void step(int t)
{
if (t >= n) {
s += (t == n);
return;
}
step(t+1);
step(t+2);
}
int main()
{
cin >> n;
step(0);
cout << s << endl;
return 0;
} |
1690296356/jdk | test/jdk/java/time/test/java/time/format/TestLocalizedOffsetPrinterParser.java | /*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... |
gompus/gompus | models/gateway/events/integration.go | package events
import (
"github.com/gompus/gompus/models/guild/integration"
"github.com/gompus/snowflake"
)
// IntegrationCreateEvent is the event sent when an integration is created.
type IntegrationCreateEvent struct {
integration.Integration
// GuildID is the id of the guild for which the integration was crea... |
hepingood/bmp388 | doc/html/driver__bmp388__register__test_8c.js | <reponame>hepingood/bmp388
var driver__bmp388__register__test_8c =
[
[ "bmp388_register_test", "group__bmp388__test__driver.html#ga1b2fb20362f53dcf2392bb517529dd3e", null ]
]; |
tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | argouml/org/argouml/uml/ui/UMLClassifierListModel.java | <gh_stars>10-100
// Copyright (c) 1996-2001 The Regents of the University of California. All
// Rights Reserved. Permission to use, copy, modify, and distribute this
// software and its documentation without fee, and without a written
// agreement is hereby granted, provided that the above copyright notice
// and this ... |
ericdriggs/ragnarok | reportcard-server/src/generated/java/io/github/ericdriggs/reportcard/gen/db/tables/records/BranchRecord.java | /*
* This file is generated by jOOQ.
*/
package io.github.ericdriggs.reportcard.gen.db.tables.records;
import io.github.ericdriggs.reportcard.gen.db.tables.Branch;
import javax.annotation.processing.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record3;
import org.jooq.Row3;
import or... |
mrouhi13/my-mit-python-practice | MIT/ps3_template.py | <filename>MIT/ps3_template.py
from string import *
# this is a code file that you can use as a template for submitting your
# solutions
# these are some example strings for use in testing your code
# target strings
target1 = 'atgacatgcacaagtatgcat'
target2 = 'atgaatgcatggatgtaaatgcag'
# key strings
key10 = 'a'
... |
kaolalib/kaola | httpserver/src/main/java/org/grain/httpserver/FileHttpFilter.java | <filename>httpserver/src/main/java/org/grain/httpserver/FileHttpFilter.java
package org.grain.httpserver;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import ... |
WilSenwish/zipkin | zipkin-server/src/main/java/zipkin2/server/internal/prometheus/ZipkinMetricsController.java | /*
* Copyright 2015-2019 The OpenZipkin 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 law or a... |
netrek/netrek-client-mactrek | netrek-server-vanilla/ntserv/phaser.c | <gh_stars>0
/*
* phaser.c
*/
#include "copyright.h"
#include <stdio.h>
#include <math.h>
#include <signal.h>
#include <stdlib.h>
#include <time.h>
#include <sys/types.h>
#include <unistd.h>
#include "defs.h"
#include "struct.h"
#include "data.h"
#include "packets.h"
#include "proto.h"
#include "ltd_stats.h"
#include... |
tterem/Resteasy | testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/core/servlet/resource/UndertowServlet.java | package org.jboss.resteasy.test.core.servlet.resource;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServlet;
import java.io.IOException;
public class UndertowServlet extends HttpS... |
polarpathgames/Polar-Path | Final_Fantasy_Mystery_World/Final_Fantasy_Mystery_World/p2PerfTimer.cpp | // ----------------------------------------------------
// p2PerfTimer.cpp
// Slow timer with microsecond precision
// ----------------------------------------------------
#include "p2PerfTimer.h"
#include "SDL\include\SDL_timer.h"
uint64 p2PerfTimer::frequency = 0;
// ---------------------------------------------
p... |
yannikbehr/seiscomp3 | src/seedlink/plugins/libgcf2-2.3.2/examples/g2ints.c | /*
* g2ints.c:
*
* examples of how to use the endian-aware non-aligned
* integer functions.
*
* Copyright (c) 2004 Guralp Systems Limited
* Author <NAME>, contact <<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... |
ratchapol-an/autorest | PackageTest/Generated/NodeJS/models/index.js | <gh_stars>10-100
/* jshint latedef:false */
/* jshint forin:false */
/* jshint noempty:false */
'use strict';
exports.ErrorModel = require('./ErrorModel');
|
wandisuh/wiploo | public/assets/frontend/assets/node_modules/jit-grunt/lib/jit-grunt.js | 'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var fs = require('fs');
var path = require('path');
va... |
hockbene/motis | modules/path/test/aggregate_osm_ways_test.cc | #include "gtest/gtest.h"
#include "utl/to_vec.h"
#include "utl/verify.h"
#include "motis/path/prepare/osm/osm_way.h"
namespace mp = motis::path;
mp::osm_way make_way(mcd::vector<int64_t> const& ids,
mp::source_bits const sb) {
utl::verify(ids.size() >= 2, "make_ways: invalid input");
mp::o... |
guoshucan/mpaas | ghost.framework.data.mongodb/src/main/java/ghost/framework/data/mongodb/core/aggregation/Field.java | <filename>ghost.framework.data.mongodb/src/main/java/ghost/framework/data/mongodb/core/aggregation/Field.java<gh_stars>1-10
/*
* Copyright 2013-2020 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.
... |
AkshatSh/iSeqL | iseql_front_end/src/components/labeling/surprising_labels.js | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import ListItem from '@material-ui/core/ListItem';
import Typography from '@material-ui/core/Typography';
import List from '@material-ui/core/List';
import Divider from '@material-ui/core/Divider';
impo... |
lukekras/zig | lib/libc/include/any-linux-any/linux/netfilter/xt_SECMARK.h | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _XT_SECMARK_H_target
#define _XT_SECMARK_H_target
#include <linux/types.h>
/*
* This is intended for use by various security subsystems (but not
* at the same time).
*
* 'mode' refers to the specific security subsystem which the
* packets are... |
silphire/GodingBat | recursion2/splitArray.go | package recursion2
func _search(nums []int, target int) bool {
if len(nums) == 0 || target < 0 {
return false
}
if target == 0 {
return true
}
return _search(nums[1:len(nums)], target-nums[0])
}
func _sum(nums []int) int {
if len(nums) == 0 {
return 0
}
return nums[0] + _sum(nums[1:len(nums)])
}
func s... |
Almazmsi/Kamado-Tanjiro | handlers/erela_events/node_events.js | let started = false;
module.exports = (client) => {
client.manager
.on("nodeConnect", (node) => {
if (!started) {
started = true;
client.logger(`Node подключена :: ${String(node.options.identifier).brightBlue}`)
}
setTimeout(() => {
started = false;
}, 2000)
})
... |
danmainah/vacations-booking-front-end | src/components/DeleteDestinations.js | import React from 'react';
import { useSelector, useDispatch } from 'react-redux';
import Button from 'react-bootstrap/Button';
import { deleteThunkDestination } from '../redux/Destinations/destinations';
import styles from '../styles/Delete.module.css';
const DeleteDestinations = () => {
const destinations = useSel... |
NeuroArchitect/lm | src/lm/datasets/constants.py | <gh_stars>1-10
"""
vocab conventions
"""
PAD = "[PAD]"
# End Of Sentence
EOS = "[EOS]"
PAD_ = 0
EOS_ = 1
TEXT_FEATURE_NAME = "target"
|
icbat/RFTools | src/main/java/mcjty/rftools/blocks/storagemonitor/StorageScannerBlock.java | <filename>src/main/java/mcjty/rftools/blocks/storagemonitor/StorageScannerBlock.java<gh_stars>0
package mcjty.rftools.blocks.storagemonitor;
import mcjty.lib.api.Infusable;
import mcjty.lib.gui.GenericGuiContainer;
import mcjty.rftools.RFTools;
import mcjty.rftools.blocks.GenericRFToolsBlock;
import net.minecraft.bloc... |
leafchild0/chart-desk | charts/src/main/java/chart/desk/configuration/JsonConfiguration.java | package chart.desk.configuration;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.joda.JodaModule;
imp... |
supudo/Kuplung | Kuplung/kuplung/settings/FontsList.cpp | <reponame>supudo/Kuplung
//
// FontsList.cpp
// Kuplung
//
// Created by <NAME> on 2/4/16.
// Copyright © 2016 supudo.net. All rights reserved.
//
#include "FontsList.hpp"
#include <algorithm>
#include <stdio.h>
#include <boost/algorithm/string/replace.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesyste... |
anubhab-code/Competitive-Programming | Codeforces/A_Snow_Footprints.py | <reponame>anubhab-code/Competitive-Programming
n=int(input())
s=input()
l,r=s.rfind('L')+1,s.find('R')+1
if r>0:
print(r,r+s.count('R'))
else:
print(l,l-s.count('L')) |
kovetskiy/aurora | cmd/aurorad/cloud.go | package main
import (
"context"
"fmt"
"io"
"os"
"path/filepath"
"runtime"
"strconv"
"sync"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/client"
"github.com/docker/docker/pkg/stdcopy"
"github.com/kovetskiy/lorg"
"github.com/reconquest/karma... |
frekele/focusnfe-api-client | src/test/java/org/frekele/fiscal/focus/nfe/client/filter/RequestLoggingFilterTest.java | <gh_stars>1-10
package org.frekele.fiscal.focus.nfe.client.filter;
import org.frekele.fiscal.focus.nfe.client.testng.InvokedMethodListener;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
import javax.ws.rs.client.ClientRequestContext;
import javax.ws.rs.core.MediaType;
import static org... |
johnjohndoe/pgem | db/migrate/20181120224626_create_ticket_group_benefits.rb | <gh_stars>1-10
class CreateTicketGroupBenefits < ActiveRecord::Migration
def self.up
create_table :ticket_group_benefits do |t|
t.references :ticket_group, null: false
t.string :name, null: false
t.text :description, null: false
t.integer :position
t.timestamps
end
add_fore... |
TJC-Team/Twitch2Minecraft-WhitelistTool | node_modules/ircv3/lib/Message/MessageTypes/Numerics/Error482ChanOpPrivsNeeded.js | <reponame>TJC-Team/Twitch2Minecraft-WhitelistTool
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Error482ChanOpPrivsNeeded = void 0;
var tslib_1 = require("tslib");
var Message_1 = require("../../Message");
var MessageDefinition_1 = require("../../MessageDefinition");
var Error482C... |
npocmaka/Windows-Server-2003 | sdktools/ztools/src/pname.c | /*** pname.c - form a "pretty" version of a user file name
*
* OS/2 v1.2 and later will allow filenames to retain the case
* when created while still being case insensitive for all operations.
* This allows the user to create more visually appealing file names.
*
* All runtime routines should, therefore, pr... |
gchicoye/amphtml | ads/playstream.js | <reponame>gchicoye/amphtml
/**
* Copyright 2020 The AMP HTML Authors. 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/LICEN... |
bompi88/grand-view | client/lib/helpers/general.js | <gh_stars>1-10
//--------------------------------------------------------------------------------------------------
// General helpers
//--------------------------------------------------------------------------------------------------
import { $ } from 'jquery';
import { moment } from 'meteor/momentjs:moment';
import... |
shreejitverma/GeeksforGeeks | Competitive Programming/System Design/Tweet Counts Per Frequency.cpp | /*
https://leetcode.com/problems/tweet-counts-per-frequency/
1348. Tweet Counts Per Frequency
Medium
78
150
Add to List
Share
A social media company is trying to monitor activity on their site by analyzing the number of tweets that occur in select periods of time. These periods can be partitioned into smaller time... |
GoodyIT/social-app-iOS | Q-municate/Scenes/Auth/Calendar window/CalendarViewController.h | //
// CalendarViewController.h
// Pile
//
// Created by Admin on 2016-11-14.
// Copyright © 2016 Admin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CalendarViewController : UIViewController
@end
|
cburgess421/PokeGame | Master/GameControllers/GameMenuViewController.h | <gh_stars>1-10
//
// GameMenuViewController.h
// iPokeMon
//
// Created by <NAME> on 2/26/12.
// Copyright (c) 2012 Kjuly. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol GameMenuViewControllerDelegate;
@interface GameMenuViewController : UIViewController <UIAlertViewDelegate> {
id <GameMenuViewContr... |
chrisharrington/twitter-followers-server | lib/controllers/sign-in/request-token.js | <gh_stars>1-10
"use strict";
var twitter = include("twitter-oauth"),
cache = require("./cache");
module.exports = function(app) {
app.get("/auth/request-token", function(req, res, next) {
twitter.getRequestToken(function(err, token, secret) {
if (err)
res.status(500).send(err);
else {
cache[token] =... |
harry-hao/easemob-im-server-sdk | im-sdk-core/src/main/java/com/easemob/im/server/api/group/member/add/GroupMemberAdd.java | package com.easemob.im.server.api.group.member.add;
import com.easemob.im.server.api.Context;
import reactor.core.publisher.Mono;
public class GroupMemberAdd {
public static Mono<Void> single(Context context, String groupId, String username) {
return context.getHttpClient()
.post()
... |
nosix/dragome-sdk | dragome-w3c-standards/src/main/java/org/w3c/dom/css/CSSStringComponentValue.java | <reponame>nosix/dragome-sdk
// Generated by esidl 0.4.0.
package org.w3c.dom.css;
public interface CSSStringComponentValue
{
// CSSStringComponentValue
public String getString();
public void setString(String string);
}
|
zhangce/elementary | doc/html/search/classes_74.js | <reponame>zhangce/elementary
var searchData=
[
['tests',['tests',['../structtests.html',1,'']]],
['timer',['Timer',['../classmia_1_1elly_1_1utils_1_1_timer.html',1,'mia::elly::utils']]]
];
|
jovanidash21/express-react-redux-chat-app | src/_main/containers/Partial/MembersList/Index.js | <reponame>jovanidash21/express-react-redux-chat-app
export { default as MembersList } from './MembersList';
|
amazing-2020/pdf | C/code case/code case 179.c | <reponame>amazing-2020/pdf
#include <stdio.h>
#include <math.h>
int issushu(int k);
int main(void) {
int n, count=0;
scanf("%d", &n);
for (int i=n; i>3; i--) {
if (issushu(i)) {
if (issushu(i-2)) {
count++;
}
}
}
printf("%d ", count);
re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.