repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
hao-wang/Montage | js-test-suite/testsuite/8f936eaaa3a58e09d7b82246bd04634b.js | load("201224b0d1c296b45befd2285e95dd42.js");
function TestCase(n, d, e, a) {}
function reportCompare (expected, actual, description) {
new TestCase("", description, expected, actual);
}
new TestCase( "", "", 0, Number(new Number()) );
reportCompare(true, true);
evaluate("\
function TestCase(n, d, e, a) {}\
test_nega... |
neal-siekierski/kwiver | sprokit/tests/sprokit/pipeline/test_process_cluster.cxx | <reponame>neal-siekierski/kwiver
/*ckwg +29
* Copyright 2011-2017 by Kitware, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the abov... |
applied-systems-biology/acaq5 | jipipe-core/src/main/java/org/hkijena/jipipe/extensions/tables/display/OpenResultsTableInImageJDataOperation.java | /*
* Copyright by <NAME>, <NAME>
*
* Research Group Applied Systems Biology - Head: Prof. Dr. <NAME>
* https://www.leibniz-hki.de/en/applied-systems-biology.html
* HKI-Center for Systems Biology of Infection
* Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI)
* Ado... |
peterekepeter/libNIST | TestLibNistSts/CusumUnitTest.cpp | <reponame>peterekepeter/libNIST
#include "stdafx.h"
#include "CppUnitTest.h"
#include <vector>
#include "../LibNistSts/BitSequence.h"
#include "../LibNistSts/Parameters.h"
#include "../LibNistSts/Test.h"
#include "../LibNistSts/common/stat_fncs.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespa... |
dmgerman/camel | components/camel-fop/src/test/java/org/apache/camel/component/fop/FopHelper.java | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... |
ed1rac/AulasEstruturasDados | 2019/Structs/pontoFuncaoPorValor.c | #include <stdio.h>
#include <stdlib.h>
/* Função : Captura e imprime um ponto - Autor : Edkallenn - Data : 02/06/2016 - Obs: Usando passagem por valor */
typedef struct ponto{
char letra;
float x;
float y;
}Ponto;
void imprime(Ponto);
Ponto captura();
int main(){
Ponto p;
p = capt... |
lathroplabs/CodeLaboratoryAddin | node_modules/@fluentui/react/lib-amd/components/GroupedList/GroupHeader.js | define(["require", "exports", "../../Utilities", "./GroupHeader.styles", "./GroupHeader.base"], function (require, exports, Utilities_1, GroupHeader_styles_1, GroupHeader_base_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GroupHeader = void 0;
exports.GroupHea... |
usamakhan049/assignment | src/Watermark/WatermarkAlignmentStateChangedMessage.h | <filename>src/Watermark/WatermarkAlignmentStateChangedMessage.h
// Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#pragma once
#include <string>
namespace ExampleApp
{
namespace Watermark
{
class WatermarkAlignmentStateChangedMessage
{
public:
WatermarkAlignmentState... |
swingflip/C64_mini_UBOOT | u-boot-2011.09/drivers/video_sunxi/dev_disp.c | #include "dev_disp.h"
#include <asm/arch/timer.h>
fb_info_t g_fbi;
__disp_drv_t g_disp_drv;
#define __user
#define HZ 100
#define EFAULT 1
static __u32 lcd_flow_cnt[2] = {0};
static __bool lcd_op_finished[2] = {0};
struct timer_list lcd_timer[2];
static __bool lcd_op_start[2] = {0};
static unsigned int gbuff... |
GodBastardNeil/somethings | projects/IPR_DIPLOM/diplom/project/frontend/public/js/apprentice_main.js |
const socket = io.connect('', {
'forceNew': true,
'reconnection': false
});
socket.on('disconnect', () => {
setTimeout(() => {
alert("Потеряно соединение с сервером.");
document.location.reload();
}, 2000);
});
const userlog = window.location.href.split('/')[4];
socket.emit('take_user'... |
Site-Command/sourcegraph | enterprise/internal/codeintel/autoindex/inference/typescript.go | <reponame>Site-Command/sourcegraph
package inference
import (
"context"
"encoding/json"
"path/filepath"
"regexp"
"github.com/sourcegraph/sourcegraph/enterprise/internal/codeintel/autoindex/config"
)
const (
lsifTscImage = "sourcegraph/lsif-node:autoindex"
nMuslCommand = "N_NODE_MIRROR=https://unofficial-build... |
LTNGlobal-opensource/libatsc3 | src/mmt/MMTExtractor.h | <gh_stars>10-100
#include <stdio.h>
using namespace std;
#ifndef LIBATSC3_MMTEXTRACTOR_H
#define LIBATSC3_MMTEXTRACTOR_H
#include "atsc3_utils.h"
#include "atsc3_udp.h"
#include "atsc3_mmtp_packet_types.h"
#include "atsc3_mmtp_parser.h"
//TODO: remove this
#include "atsc3_lls_types.h"
class MMTExtractor {
pub... |
IvanildoPereira/ShopApp | backend/src/controllers/productsController.js | <gh_stars>0
const Product = require("../models/Product");
const User = require("../models/User");
const Comment = require("../models/Comment");
const HttpError = require("../models/http-error");
const { Op } = require("sequelize");
const getProducts = async (req, res, next) => {
const { page, perPage, category, sort... |
koungkmitl/webpro-jwt-springboot | src/main/java/murraco/dto/StudentConferenceResponse.java | <filename>src/main/java/murraco/dto/StudentConferenceResponse.java
package murraco.dto;
import murraco.domain.Student;
import java.util.List;
public class StudentConferenceResponse {
private List<Student> conferenceList;
private int amount;
public StudentConferenceResponse(List<Student> conferenceList, ... |
dgomesbr/felaguiar-trip | src/main/java/org/springframework/social/instagram/api/impl/LocationList.java | package org.springframework.social.instagram.api.impl;
import java.util.List;
import org.springframework.social.instagram.api.Location;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown=true)
public class LocationL... |
Kannanradhi/myrafrance | src/main/java/com/isteer/b2c/repository/ReportsOrderVM.java | <gh_stars>0
package com.isteer.b2c.repository;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.ViewModel;
import android.arch.paging.LivePagedListBuilder;
import android.arch.paging.PagedList;
import com.isteer.b2c.dao.BillData_DAO;
import com.isteer.b2c.dao.PendingOrderData_DAO;
import com.iste... |
slategroup/clay-kiln | lib/validators/mutations.js | import _ from 'lodash';
import { UPDATE_VALIDATION } from './mutationTypes';
export default {
[UPDATE_VALIDATION]: (state, validationState) => {
_.set(state, 'validation', validationState);
return state;
}
};
|
ynsingh/brihaspati2 | WEB-INF/src/java/org/iitk/brihaspati/modules/actions/ExtractAction.java | package org.iitk.brihaspati.modules.actions;
/*
* @(#)ExtractAction.java
*
* Copyright (c) 2005-2006 ETRG,IIT Kanpur.
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:
*
* Re... |
ndsc-iot/jcbase | src/main/java/com/jcbase/model/SysUser.java | /**
* Copyright (c) 2011-2016, <NAME>(<EMAIL>).
*
* 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 ... |
lijiahongda/22222 | component/userPopup/userPopup.js | <filename>component/userPopup/userPopup.js
import {
post
} from '../../utils/util.js';
var app = getApp();
Component({
/**
* 组件的属性列表
*/
properties: {
},
created: function () {
let that = this
// that.getData()
},
/**
* 组件的初始数据
*/
data: {
list: {},
// isRedPopup: wx... |
scarybeasts/beebj | asm/asm_defs_host.h | #ifndef BEEBJIT_ASM_DEFS_HOST_H
#define BEEBJIT_ASM_DEFS_HOST_H
#include "asm_platform.h"
/* NOTE: K_BBC_MEM_RAW_ADDR varies betweeen platforms, and is in
* asm_platform.h
*/
#define K_BBC_MEM_OFFSET_FROM_RAW 0x01000000
#define K_BBC_MEM_OFFSET_TO_WRITE_IND 0x01000000
#define K_BBC_MEM_OFFSE... |
jsdelivrbot/privosoft.github.io | jspm_packages/npm/lodash-compat@3.10.2/object/keysIn.js | <filename>jspm_packages/npm/lodash-compat@3.10.2/object/keysIn.js
/* */
var arrayEach = require('../internal/arrayEach'),
isArguments = require('../lang/isArguments'),
isArray = require('../lang/isArray'),
isFunction = require('../lang/isFunction'),
isIndex = require('../internal/isIndex'),
isLengt... |
ShaneJim/SpringBootSamples | personal-admin/src/main/java/com/shanejim/myweb/personaladmin/security/MyUserDetailsService.java | package com.shanejim.myweb.personaladmin.security;
import com.shanejim.myweb.personaldao.mapper.EmployeeMapper;
import com.shanejim.myweb.personalmodel.entity.Employee;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.sec... |
krnsk0/git_user_switcher | src/unsetConfig/unsetConfig.spec.js | <reponame>krnsk0/git_user_switcher<filename>src/unsetConfig/unsetConfig.spec.js
const { unsetConfig } = require('./unsetConfig');
const { unsetLocalGitUser } = require('./helpers');
const { UNSET_SUCCESSFUL, UNSET_FAILED } = require('../strings');
jest.mock('./helpers', () => ({
unsetLocalGitUser: jest
.fn()
... |
senotrusov/rubymq | lib/rubymq/application/daemon.rb | <filename>lib/rubymq/application/daemon.rb
#
# Copyright 2007-2008 <NAME> <<EMAIL>>
#
# 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
... |
936748646/TCP | vectoring/derby/v1/raw/000317.java | /*
Derby - Class org.apache.derbyTesting.functionTests.tests.lang.holdCursorJava
Copyright 2002, 2005 The Apache Software Foundation or its licensors, as applicable.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may... |
ychp/coding | common/src/main/java/com/ychp/coding/common/util/Encryption.java | package com.ychp.coding.common.util;
import com.google.common.base.Objects;
import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;
import com.ychp.coding.common.exception.EncryptionException;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import java.securit... |
78182648/blibli-go | app/interface/main/dm2/model/advert.go | <filename>app/interface/main/dm2/model/advert.go<gh_stars>10-100
package model
import (
"encoding/json"
"fmt"
)
// resource id defined by advert
const (
adRscIDIphone = 2630
adRscIDAndrod = 2631
adRscIDIphoneIcon = 2642
adRscIDAndroidIcon = 2643
)
// Resource get resource by mobi_app.
func Resource(... |
axxel/GPUImage | examples/FilterShowcase/FilterShowcase/ShowcaseFilterViewController.h | #import <UIKit/UIKit.h>
#import "GPUImage.h"
typedef enum {
GPUIMAGE_SATURATION,
GPUIMAGE_CONTRAST,
GPUIMAGE_BRIGHTNESS,
GPUIMAGE_EXPOSURE,
GPUIMAGE_SHARPEN,
GPUIMAGE_UNSHARPMASK,
GPUIMAGE_TRANSFORM,
GPUIMAGE_TRANSFORM3D,
GPUIMAGE_CROP,
GPUIMAGE_GAMMA,
GPUIMAGE_HAZE,
GPU... |
davidzou/WonderingWall | android/libcomm/src/com/wonderingwall/base/AbstractBaseService.java | <reponame>davidzou/WonderingWall<filename>android/libcomm/src/com/wonderingwall/base/AbstractBaseService.java<gh_stars>1-10
/**
* Project Name:libui
* File Name:BaseServiceImpl.java
* Package Name:com.wonderingwall.ui
* Date:Sep 18, 20145:10:22 PM
* Copyright (c) 2014, <EMAIL> All Rights Reserved.
*
*/
... |
Rose2073/RoseCppSource | Luogu/P1427.cpp | <gh_stars>1-10
#include<cstdio>
int main(){
int a[101],n=0;
for(;n==0||a[n-1]!=0;n++)
scanf("%d",&a[n]);
for(int i=n-2;i>-1;i--)
printf("%d ",a[i]);
return 0;
}
|
rafajpet/cloud | resource-aggregate/cqrs/eventstore/mongodb/maintenance.go | package mongodb
import (
"context"
"errors"
"fmt"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"
"github.com/plgd-dev/cloud/resource-aggregate/cqrs/eventstore/maintenance"
"go.mongodb.org/mongo-driver/bson"
)
const maintenanceCName = "maintenance"
func makeDbAggregateVersion... |
ealonas/Markus | app/models/assignment.rb | <gh_stars>0
require 'csv_invalid_line_error'
class Assignment < ActiveRecord::Base
include RepositoryHelper
MIN_PEER_REVIEWS_PER_GROUP = 1
has_many :rubric_criteria,
-> { order(:position) },
class_name: 'RubricCriterion',
dependent: :destroy
has_many :flexible_criteria,
... |
mrkosterix/lua-commons | lua-commons-impl/lua-commons-impl-lua-5.2/lua-commons-impl-lua-tests/src/test/java/org/lua/commons/impl/nativelua/TestCoroutines.java | <reponame>mrkosterix/lua-commons
package org.lua.commons.impl.nativelua;
import org.lua.commons.nativeapi.LuaStateApi;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public class TestCoroutines {
private LuaStat... |
coderd-repos/eva | eva-front/src/api/system/department.js | <filename>eva-front/src/api/system/department.js
import request from '@/utils/request'
// 查询
export function fetchTree () {
return request.post('/system/department/tree')
}
// 查询部门用户
export function fetchUserList (data) {
return request.post('/system/department/users', data)
}
// 新建
export function create (data)... |
julienchastang/thredds | opendap/src/main/java/opendap/util/SortedTable.java | <filename>opendap/src/main/java/opendap/util/SortedTable.java
/////////////////////////////////////////////////////////////////////////////
// This file is part of the "Java-DAP" project, a Java implementation
// of the OPeNDAP Data Access Protocol.
//
// Copyright (c) 2010, OPeNDAP, Inc.
// Copyright (c) 2002,200... |
bobheadlabs/sourcegraph | lib/batches/execution/cache/cache_test.go | package cache
import (
"fmt"
"os"
"testing"
"gopkg.in/yaml.v2"
"github.com/sourcegraph/sourcegraph/lib/batches"
"github.com/sourcegraph/sourcegraph/lib/batches/template"
)
const testExecutionCacheKeyEnv = "TEST_EXECUTION_CACHE_KEY_ENV"
func TestExecutionKey_RegressionTest(t *testing.T) {
// This test is a r... |
superzhc/SuperzHadoop | superz-hadoop/superz-hadoop-spark/src/main/java/com/github/superzhc/hadoop/spark/DStreamDemo.java | package com.github.superzhc.hadoop.spark;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.function.FlatMapFunction;
import org.apache.spark.api.java.function.VoidFunction;
import org.apache.spark.streaming.Durations;
import org.apache.spark.streaming.api.ja... |
roti/lut | library/src/test/scala/roti/lut/Record3.scala | <filename>library/src/test/scala/roti/lut/Record3.scala
package roti.lut
import roti.lut.annotation.record
/**
* Test for when the companion object already exists.
*/
@record
trait Record3 extends Record {
def id: Long
def name: String
}
object Record3 {
def apply(s: String) = s
} |
scalecube/reactor-aeron | reactor-aeron-benchmarks/src/main/java/reactor/aeron/ClientServerSends.java | <filename>reactor-aeron-benchmarks/src/main/java/reactor/aeron/ClientServerSends.java
package reactor.aeron;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import java.nio.charset.Charset;
import org.agrona.DirectBuffer;
import reactor.core.CoreSubscriber;
import reactor.core.publisher.Flux;
import r... |
serhiislobodian/peach-wallet-mobile | App/Containers/NfcPaymentScreen.js | import React, { Component } from 'react';
import { Image } from 'react-native';
import { SafeAreaView } from 'react-navigation';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import NfcActions from '../Redux/NfcRedux';
import Types from '../Config/Types';
import BackAwareComponent from '../... |
open-garden/garden-opendriveconverter | src/main/java/com/zipc/garden/webplatform/opendrive/converter/object/ObjectRoadMarks.java | package com.zipc.garden.webplatform.opendrive.converter.object;
import java.util.ArrayList;
public class ObjectRoadMarks {
private String name;
private String type;
private String mode;
private ObjectRoadMarksParameters parameters;
private ArrayList<ObjectRoadMarksSegments> segments;
publ... |
IanAWatson/LillyMol-4.0-Bazel | src/Molecule_Lib/mdl_molecule.cc | <reponame>IanAWatson/LillyMol-4.0-Bazel
#include <stdlib.h>
#include <memory>
#include "Foundational/iwmisc/misc.h"
#define COMPILING_MDL_CC
#include "mdl.h"
#include "substructure.h"
#include "molecule_to_query.h"
#define COMPILING_MDL_CC
#include "mdl_molecule.h"
#include "mdl_atom_record.h"
#include "molecule_... |
tkamata-test/ydk-py | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ipv4_arp_cfg.py | """ Cisco_IOS_XR_ipv4_arp_cfg
This module contains a collection of YANG definitions
for Cisco IOS\-XR ipv4\-arp package configuration.
This module contains definitions
for the following management objects\:
arp\: ARP configuraiton
arpgmp\: arpgmp
arp\-redundancy\: arp redundancy
This YANG module augments the
... |
rage/concepts | backend/src/index.js | import path from 'path'
import { GraphQLServer } from 'graphql-yoga'
import express from 'express'
import cors from 'cors'
import cookieParser from 'cookie-parser'
import './util/titleCase'
import { prisma } from '../schema/generated/prisma-client'
import { authenticate } from './middleware/authentication'
import { l... |
NTrevisani/cmssw | Geometry/HcalCommonData/src/HcalGeomParameters.cc | #include "Geometry/HcalCommonData/interface/HcalGeomParameters.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "DetectorDescription/Core/interface/DDutils.h"
#include "DetectorDescription/Core/interface/DDValue.h"
#include "DetectorDescription/Co... |
ne-bknn/c_labs | 1_lab/src/main.c | #include <stdio.h>
#include "lib.h"
#include <stdlib.h>
int main() {
// m - rows, n - columns
int n, m, status;
get_int(&m);
print_debug("M: %d\n", m);
get_int(&n);
print_debug("N: %d\n", n);
struct Matrix* pmatrix = create_matrix(m, n);
if (NULL == pmatrix) {
print_error("Failed to create matrix.");
exi... |
FDA/precisionFDA | app/models/user.rb | <filename>app/models/user.rb
# == Schema Information
#
# Table name: users
#
# id :integer not null, primary key
# dxuser :string(255)
# private_files_project :string(255)
# public_files_project :string(255)
# private_comparisons_project :string(2... |
Dobrynin91/jepria-showcase | module/JepRiaShowcase/App/gwt/src/java/com/technology/jep/jepriashowcase/allshopgoods/server/AllShopGoodsServerConstant.java | package com.technology.jep.jepriashowcase.allshopgoods.server;
import com.technology.jep.jepria.server.JepRiaServerConstant;
public class AllShopGoodsServerConstant extends JepRiaServerConstant {
public static final String RESOURCE_BUNDLE_NAME = "com.technology.jep.jepriashowcase.allshopgoods.shared.text.AllSho... |
moltenguy1/deusexmachina | DEM/Src/L3/AI/Memory/MemFactSmartObj.h | #pragma once
#ifndef __DEM_L3_AI_MEM_FACT_SMART_OBJ_H__
#define __DEM_L3_AI_MEM_FACT_SMART_OBJ_H__
#include <AI/Memory/MemFact.h>
#include <Data/StringID.h>
#include <mathlib/vector.h>
// Memory fact representing overseer, entity that controls this actor's behavoiur
namespace AI
{
typedef Ptr<class CStim... |
jayfans3/example | liupeng/src/main/java/liupeng/Ch13_MobileMonitor/CreateHBaseIndex/ParseDataIntoHBase.java | package HBaseIndexAndQuery.CreateHBaseIndex;
import java.io.IOException;
import java.util.Calendar;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FSDataInputStream;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import HBaseIndexAndQuery.HBaseDao.HBaseDaoImp;
impo... |
gizemaltintas/online-education-tool | src/main/java/com/oet/application/usecases/manageAnswers/DTO/AssignmentDTO.java | package com.oet.application.usecases.manageAnswers.DTO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
@Builder
@Getter
@Setter
@AllArgsConstructor
public class AssignmentDTO {
private Long classId;
private String className;
private Long studentId;
... |
sho25/cxf | rt/databinding/aegis/src/test/java/org/apache/cxf/aegis/type/map/fortest/MapTest.java | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * 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 ... |
Gerile3/My_Python | Small Apps/money_toss.py | #!/usr/bin/env python3
import random
def toss(money):
"""
A player wins 1$ for every head and loses 1.5$ for every tail.
The game is over when the player's balance reaches 0$
"""
count = 0
while money > 0:
count += 1
coin = random.choice(["Heads", "Tails"])
if coin ==... |
i-sourabh/dhis2-android-sdk | ui-bindings/src/main/java/org/hisp/dhis/client/sdk/ui/bindings/commons/DefaultSyncAdapter.java | <reponame>i-sourabh/dhis2-android-sdk
package org.hisp.dhis.client.sdk.ui.bindings.commons;
import android.accounts.Account;
import android.content.ContentProviderClient;
import android.content.SyncResult;
import android.os.Bundle;
import android.os.IBinder;
public interface DefaultSyncAdapter {
void onPerformSy... |
krossenk/GoogleApiObjectivecClientREST | Source/GeneratedServices/GroupsSettings/GTLRGroupsSettingsObjects.h | // NOTE: This file was generated by the ServiceGenerator.
// ----------------------------------------------------------------------------
// API:
// Groups Settings API (groupssettings/v1)
// Description:
// Lets you manage permission levels and related settings of a group.
// Documentation:
// https://developer... |
SYCstudio/OI | Practice/2018/2018.10.28/BZOJ3111.cpp | <filename>Practice/2018/2018.10.28/BZOJ3111.cpp<gh_stars>1-10
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
const int maxN=110;
const int maxK=25;
const int inf=1000000000;
int n,m,K;
... |
Commoble/magus | src/main/java/com/github/commoble/magus/CallbackRegistrar.java | <gh_stars>0
package com.github.commoble.magus;
import com.github.commoble.magus.api.CachedEntry;
import com.github.commoble.magus.api.serializablefunctions.CallbackFactory;
import com.github.commoble.magus.api.serializablefunctions.CallbackUtil;
import com.github.commoble.magus.content.SimpleCallbacks;
import com.gith... |
Joon7891/Competitive-Programming | Miscellaneous/A Noisy Class.cpp | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 10001;
int N, M;
vector<int> adj[MAXN];
bool v[MAXN][MAXN];
bool p[MAXN];
bool t[MAXN];
bool topologicalCheck(int i)
{
if (t[i]) return false;
if (p[i]) return true;
t[i] = 1;
for (int a : adj[i])
{
if (!topologicalCheck(a))
... |
abreuboom/yap | node_modules/gatsby/node_modules/gatsby-cli/lib/structured-errors/construct-error.js | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
const Joi = require(`@hapi/joi`);
const stackTrace = require(`stack-trace`);
const errorSc... |
visit-dav/vis | src/avt/Expressions/General/avtCurlExpression.h | <filename>src/avt/Expressions/General/avtCurlExpression.h
// Copyright (c) Lawrence Livermore National Security, LLC and other VisIt
// Project developers. See the top-level LICENSE file for dates and other
// details. No copyright assignment is required to contribute to VisIt.
// ***********************************... |
pradyumna2905/yanab | db/fixtures/05_friendships.rb | <filename>db/fixtures/05_friendships.rb
john = User.find_by(email: '<EMAIL>')
mary = User.find_by(email: '<EMAIL>')
john.friend_requests.create!(
first_name: mary.first_name,
email: mary.email,
status: FriendRequest::STATUSES[:accepted]
)
john.friends << mary
|
blgrossMS/xbox-live-api | Source/System/iOS/XBLiOSGlobalState.h | <filename>Source/System/iOS/XBLiOSGlobalState.h
//
// XBLiOSGlobalState.h
// XboxLiveServices
//
// Created by <NAME> on 5/3/16.
// Copyright © 2016 Microsoft Corporation. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface XBLiOSGlobalState : NSObject
/**
Set the launch... |
carmon/Enduro | test/utilities_test/test_utilities_test.js | <reponame>carmon/Enduro
// * vendor dependencies
const expect = require('chai').expect
const path = require('path')
// * enduro dependencies
const local_enduro = require('../../index').quick_init()
const test_utilities = require(enduro.enduro_path + '/test/libs/test_utilities')
describe('Test utilites', function () {... |
TheVinic/bootcamp-01-template-casa-do-codigo | src/main/java/com/itau/cdc/validator/ValidaCpfCnpj.java | package com.itau.cdc.validator;
import org.hibernate.validator.internal.constraintvalidators.hv.br.CNPJValidator;
import org.hibernate.validator.internal.constraintvalidators.hv.br.CPFValidator;
import org.springframework.http.HttpStatus;
import com.itau.cdc.configuration.exception.ApiErroException;
//4
public class ... |
tumuyan/bluelineconsole | app/src/main/java/net/nhiroki/bluelineconsole/dataStore/persistent/URLEntry.java | package net.nhiroki.bluelineconsole.dataStore.persistent;
import android.content.Context;
import androidx.annotation.StringRes;
import net.nhiroki.bluelineconsole.R;
import net.nhiroki.bluelineconsole.lib.StringValidator;
public class URLEntry {
public int id;
public String name;
public String display_n... |
buptn/CCNxTomcat | ccn/org/ccnx/ccn/test/io/content/CCNNetworkObjectTestBase.java | /*
* A CCNx library test.
*
* Copyright (C) 2011, 2012 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
* This work is distributed in the hope tha... |
kristenkotkas/moviediary | src/main/java/server/entity/Privilege.java | <reponame>kristenkotkas/moviediary<gh_stars>1-10
package server.entity;
public enum Privilege {
ADMIN
}
|
uptutu/tkeel | cmd/rudder/root.go | /*
Copyright 2021 The tKeel 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 agreed to in writing, software... |
derekmerck/DIANA | packages/halibut/halibut/__init__.py | <reponame>derekmerck/DIANA
__name__="halibut"
__version__ = "0.1.0"
__author__ = "<NAME>"
__author_email__ = "<EMAIL>"
|
rowandh/gdrive | vendor/github.com/soniakeys/bits/bits_test.go | <gh_stars>0
// Copyright 2017 <NAME>
// License MIT: http://opensource.org/licenses/MIT
package bits_test
import (
"fmt"
"reflect"
"testing"
"github.com/soniakeys/bits"
)
func ExampleNew() {
b := bits.New(80)
fmt.Printf("%#v\n", b)
// Output:
// bits.Bits{Num:80, Bits:[]uint64{0x0, 0x0}}
}
func ExampleNewG... |
mengyangbai/leetcode | array/countRangeSum.py | <filename>array/countRangeSum.py
import bisect
class Solution(object):
def countRangeSum(self, nums, lower, upper):
"""
:type nums: List[int]
:type lower: int
:type upper: int
:rtype: int
"""
sums = nums[:]
for x in range(1, len(sums)):
sum... |
rhpvorderman/galaxy | client/src/components/History/providers/CollectionContentProvider/CollectionContentProvider.js | <filename>client/src/components/History/providers/CollectionContentProvider/CollectionContentProvider.js
import { DatasetCollection } from "../../model";
import { ContentProvider, processContentStreams } from "../ContentProvider";
import { collectionPayload } from "./collectionPayload";
export default {
mixins: [C... |
mvladev/gardenctl | vendor/google.golang.org/genproto/googleapis/ads/googleads/v0/enums/access_reason.pb.go | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v0/enums/access_reason.proto
package enums // import "google.golang.org/genproto/googleapis/ads/googleads/v0/enums"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress err... |
vonaxs/EdgeAdmin | web/public/js/components/server/http-cache-config-box.js | Vue.component("http-cache-config-box", {
props: ["v-cache-config", "v-is-location", "v-is-group", "v-cache-policy"],
data: function () {
let cacheConfig = this.vCacheConfig
if (cacheConfig == null) {
cacheConfig = {
isPrior: false,
isOn: false,
addStatusHeader: true,
addAgeHeader: false,
en... |
gstavosanchez/tytus | parser/team15/TytusDB_G15/main.py | from tkinter import *
from tkinter import ttk
import random
from gramatica import parse
from principal import *
import ts as TS
from expresiones import *
from instrucciones import *
from ast import *
instrucciones_Global = []
root = Tk()
w, h = root.winfo_screenwidth(), root.winfo_screenheight()
root.geometry("%dx... |
mingmwang/parquet-mr | parquet-avro/src/test/java/org/apache/parquet/avro/TestReflectInputOutputFormat.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
inaat/HRMFRONTEND | src/redux/session/reducer.js | <filename>src/redux/session/reducer.js
import {
SESSION_GET_LIST,
SESSION_GET_LIST_SUCCESS,
SESSION_GET_LIST_ERROR,
SESSION_ADD_ITEM,
SESSION_ADD_ITEM_SUCCESS,
SESSION_ADD_ITEM_ERROR,
SESSION_DELETE_ITEM,
SESSION_DELETE_SUCCESS,
SESSION_DELETE_ITEM_ERROR,
SESSION_UPDATE_ITEM,
SESSION_UPDATE_ITEM_S... |
Anteru/nsl | nsl/passes/ComputeTypes.py | from collections import OrderedDict
from nsl import ast, types, Errors, Visitor, LinearIR
from enum import Enum
from typing import List
def ParseSwizzleMask(mask):
'''Parse a swizzle mask into a list of element indices, starting
at 0.
'''
mapping = { 'x' : 0,
'y' : 1,
'z' : 2,
'w' : 3,
... |
Knightwalker/Knowledgebase | 19_JavaScript/2020_JS_Advanced/06_DomManipulations/Lab/01. List-Of-Items/app.js | <reponame>Knightwalker/Knowledgebase
function addItem() {
let el_items = document.getElementById("items");
let el_newItemText = document.getElementById("newItemText");
let el_li = document.createElement("li");
el_li.textContent = el_newItemText.value;
el_items.appendChild(el_li);
el_ne... |
socialsoftware/edition | microfrontend/src/microfrontends/user/User_DISPATCHER.js | <reponame>socialsoftware/edition
import React from 'react'
import { Route, Switch } from 'react-router-dom'
import Login from './pages/Login';
import Register from './pages/Register';
import ChangePassword from './pages/ChangePassword';
import '../../resources/css/user/User.css'
const User_DISPATCHER = (props) => {
... |
mhamaneamogh50/All_Python_Pro | for loop.py | <reponame>mhamaneamogh50/All_Python_Pro<gh_stars>0
g=int(input("Enter number"))
for b in range(g)
print(b)
|
mccool/elastic-builder | src/queries/full-text-queries/mono-field-query-base.js | 'use strict';
const has = require('lodash.has');
const isNil = require('lodash.isnil');
const FullTextQueryBase = require('./full-text-query-base');
/**
* The `MonoFieldQueryBase` provides support for common options used across
* various full text query implementations with single search field.
*
* **NOTE:** Ins... |
esastack/esa-cabin | cabin-container/src/main/java/io/esastack/cabin/container/service/deploy/BizModuleFactoryServiceImpl.java | <gh_stars>10-100
/*
* Copyright 2021 OPPO ESA Stack 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... |
Lin1225/vtk_v5.10.0 | Wrapping/Python/PyVTKMutableObject.cxx | <gh_stars>1-10
/*=========================================================================
Program: Visualization Toolkit
Module: PyVTKMutableObject.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software i... |
masssoud/hr-plus | jobs/models/__init__.py | <gh_stars>0
from .category import Category
from .job_posting import JobPosting
from .applicant import Applicant, ApplicantHistory
from .comment import Comment
|
haikelfazzani/instant-file-sharing | src/components/Faq.js | import React from 'react';
const faqQuestions = [
{ title: 'What Is Instant?', desc: 'Peer to peer file sharing.' },
{ title: 'How much does Insant cost?', desc: 'Insant is completely free for life.' },
];
export default function Faq() {
return (<div className="text-uppercase ltsp2 mt-5 mb-5">
<div classNam... |
jack-gannon/Personal-Site | src/pages/contact.js | import React from "react"
import { graphql } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
import styled from "styled-components"
import { breakpoints } from "../utils/breakpoints"
import GetInTouch from "../components/about/GetInTouch"
import StayConnected from "../compone... |
seventy-three/gameofcode-app | gameofcode/data/src/main/java/lu/ing/gameofcode/services/BusDataGenerator.java | package lu.ing.gameofcode.services;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Deque;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import lu.ing.gameofcode.geojson.*;
import lu.ing.gameofcod... |
player1537-forks/spack | var/spack/repos/builtin/packages/r-rbibutils/package.py | <reponame>player1537-forks/spack
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RRbibutils(RPackage):
"""Convert Between Bibliography For... |
NazarethCollege/heweb2017-devops-presentation | sites/tweetheat/src/backend/vendor/src/github.com/youtube/vitess/go/vt/topo/replication.go | /*
Copyright 2017 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
bzxy/cydia | iOSOpenDev/frameworks/ChatKit.framework/Headers/CKMessagePartComposeResourcePool.h | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/ChatKit.framework/ChatKit
*/
#import <ChatKit/XXUnknownSuperclass.h>
@interface CKMessagePartComposeResourcePool : XXUnknownSuperclass {
}
+ (int)requestProviderID; // 0x451bd
+ (void)relinquishProviderID:(int)anId... |
unexpectedBy/dcrd | dcrjson/dcrwalletextresults.go | // Copyright (c) 2015 The btcsuite developers
// Copyright (c) 2015 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package dcrjson
// GetMultisigOutInfoResult models the data returned from the getmultisigoutinfo
// command.
type GetMultisigOutI... |
mgoyal2-atl/atlassian-slack-integration-server | confluence-slack-server-integration-plugin/src/main/java/com/atlassian/confluence/plugins/slack/spacetochannel/model/EventInfo.java | package com.atlassian.confluence.plugins.slack.spacetochannel.model;
import com.atlassian.confluence.user.ConfluenceUser;
import java.util.Objects;
import java.util.Set;
public class EventInfo {
private final ConfluenceUser trigger;
private final String spaceKey;
private final String typeName;
privat... |
jamesanto/scala | test/files/run/t7850c.scala | // Testing that isEmpty and get are viewed with `memberType` from `Casey1`.
trait T[A, B >: Null] { def isEmpty: A = false.asInstanceOf[A]; def get: B = null}
class Casey1() extends T[Boolean, String]
object Casey1 { def unapply(a: Casey1) = a }
object Test {
def main(args: Array[String]): Unit = {
val c @ Casey... |
shaojiankui/iOS10-Runtime-Headers | PrivateFrameworks/CoreParsec.framework/PARRankerSearchRequestParameters.h | <filename>PrivateFrameworks/CoreParsec.framework/PARRankerSearchRequestParameters.h
/* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/CoreParsec.framework/CoreParsec
*/
@interface PARRankerSearchRequestParameters : NSObject {
unsigned long long _numTopics;
double _thresholdTopicScor... |
767214481/Summer | src/test/java/com/swingfrog/summer/test/ecsgameserver/module/player/base/PlayerBeanComponent.java | package com.swingfrog.summer.test.ecsgameserver.module.player.base;
import com.swingfrog.summer.ecs.component.AbstractBeanComponent;
import com.swingfrog.summer.test.ecsgameserver.module.player.Player;
public abstract class PlayerBeanComponent<B extends PlayerBean> extends AbstractBeanComponent<Long, B, Player> {
... |
googleinterns/gail-dyn | third_party/a2c_ppo_acktr/collect_tarsim_traj.py | <reponame>googleinterns/gail-dyn
# MIT License
#
# Copyright (c) 2017 <NAME> and (c) 2020 Google LLC
#
# 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 with... |
bold-commerce/checkout-react-components | src/components/product/index.js | <reponame>bold-commerce/checkout-react-components<gh_stars>1-10
// eslint-disable-next-line import/prefer-default-export
export { default as Product } from './Product';
|
smallpdf/Leanplum-Android-SDK | AndroidSDKTests/src/androidTest/java/com/leanplum/ScreenshotTestRunner.java | <gh_stars>10-100
package com.leanplum;
import android.os.Bundle;
import androidx.test.runner.AndroidJUnitRunner;
import com.facebook.testing.screenshot.ScreenshotRunner;
public class ScreenshotTestRunner extends AndroidJUnitRunner {
@Override
public void onCreate(Bundle args) {
ScreenshotRunner.onCreate(this,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.