repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
TheTryton/rtti | rtti/include/reflection/template/template_info.hpp | <reponame>TheTryton/rtti<filename>rtti/include/reflection/template/template_info.hpp
#pragma once
#include "../common.hpp"
REFLECTION_NAMESPACE_BEGIN
class template_info
{
friend class reflection;
template<class T>
friend class template_type_info_impl;
protected:
template_info() = default;
public:
... |
alvienzo720/Dep_Nadine | nadine-2.2.3/doors/threads.py | <filename>nadine-2.2.3/doors/threads.py<gh_stars>0
import sys
import time
import logging
import threading
from core import Messages
class Heartbeat(threading.Thread):
def __init__(self, connection, poll_delay_sec):
threading.Thread.__init__(self)
self.connection = connection
self.poll_del... |
generative-fm/user | src/user-id/select-user-id.js | const selectUserId = ({ userId }) => userId;
export default selectUserId;
|
MobileSeoul/2017seoul-15 | seoulMarketDayAndroid/seoulMarketDayAndroid/app/src/main/java/com/stm/story/create/interactor/StoryCreateInteractor.java | package com.stm.story.create.interactor;
import com.stm.common.dao.Story;
import com.stm.common.dao.User;
import com.stm.common.dto.FileDto;
import java.util.ArrayList;
/**
* Created by ㅇㅇ on 2017-07-11.
*/
public interface StoryCreateInteractor {
void setStoryRepository(String accessToken);
User getUser... |
tao-pr/52-challenges | 004-time-series-geo-data/libdata/wrangle.py | import pandas as pd
import numpy as np
from typing import List
from libdata.func import collect, head
def split_month_year(df: pd.DataFrame) -> pd.DataFrame:
"""
Split the `dt` column into `year` and `month`
"""
df['dt'] = pd.to_datetime(df['dt'])
df['year'] = df['dt'].dt.to_period('Y').apply(lambda period:... |
mudbungie/NetExplorer | Config.py | <gh_stars>0
# This is a file that just parses the config
# Gives a dict-like object to anything that imports it
from configobj import ConfigObj
import os.path
whereAmI = os.path.dirname(os.path.abspath(__file__)) + '/'
config = ConfigObj(whereAmI + 'netexplorer.conf')
|
plasticviking/fv-web-ui | modules/security/firstvoices-security/src/main/java/ca/firstvoices/security/securitypolicies/groups/LanguageRecorders.java | <filename>modules/security/firstvoices-security/src/main/java/ca/firstvoices/security/securitypolicies/groups/LanguageRecorders.java
/*
*
* *
* * Copyright 2020 First People's Cultural Council
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in comp... |
dwtester88/jitsi_master | src/org/jitsi/android/gui/chat/JitsiProtocolReceiver.java | <reponame>dwtester88/jitsi_master<gh_stars>100-1000
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a c... |
Elfo404/drivers | rtl8720dn/crc16.go | <filename>rtl8720dn/crc16.go
package rtl8720dn
// https://github.com/EmbeddedRPC/erpc/blob/develop/erpc_python/erpc/crc16.py
const (
crcStart = 0xEF4A
)
var table = [256]uint16{
0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50A5, 0x60C6, 0x70E7, 0x8108, 0x9129, 0xA14A, 0xB16B, 0xC18C, 0xD1AD, 0xE1CE, 0xF1EF,
0x1231, ... |
ghsecuritylab/tomato_egg | release/src-rt/linux/linux-2.6/include/asm-arm/cache.h | /*
* linux/include/asm-arm/cache.h
*/
#ifndef __ASMARM_CACHE_H
#define __ASMARM_CACHE_H
#define L1_CACHE_SHIFT 5
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
#endif
|
guoshucan/mpaas | ghost.framework.web.context/src/main/java/ghost/framework/web/context/http/responseContent/SelectResponse.java | <reponame>guoshucan/mpaas<filename>ghost.framework.web.context/src/main/java/ghost/framework/web/context/http/responseContent/SelectResponse.java
package ghost.framework.web.context.http.responseContent;
/**
* 分页响应。
*/
public class SelectResponse extends DataResponse {
private static final long serialVersionUID ... |
wuzhun1001/TinyEngine | scripts/drivers/ir/hxd091/src/index.js | /*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
var hxd091 = function(scl_id,sda_id,busy_id) {
this.sclHandle = GPIO.open(scl_id);
this.sdaHandle = GPIO.open(sda_id);
this.busyHandle = GPIO.open(busy_id);
this.init = function() {
GPIO.write(this.sdaHandle, 1);
GPIO.write(this.... |
phatblat/macOSPrivateFrameworks | PrivateFrameworks/NotesShared/NSManagedObjectContext-IC.h | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSManagedObjectContext.h"
@class NSString;
@interface NSManagedObjectContext (IC)
- (void)ic_performBlockAndWait:(CDUnknownBlockType)arg1 andPerformBlockAndWaitOnMainThread:(CD... |
tkddlf4209/iotivity2.0.1 | resource/docs/cpp-doc/docs/html/class_o_i_c_1_1_service_1_1_r_c_s_resource_attributes_1_1_type.js | var class_o_i_c_1_1_service_1_1_r_c_s_resource_attributes_1_1_type =
[
[ "Type", "class_o_i_c_1_1_service_1_1_r_c_s_resource_attributes_1_1_type.html#a18ff9feb7f9d17613cad98d7809566a5", null ],
[ "Type", "class_o_i_c_1_1_service_1_1_r_c_s_resource_attributes_1_1_type.html#a2fd82f04ee2564933effb70c1a3ce1e6", nul... |
Vesna1971/babel | packages/babel-plugin-transform-es2015-instanceof/src/index.js | <reponame>Vesna1971/babel<gh_stars>1-10
export default function ({ types: t }) {
return {
visitor: {
BinaryExpression(path) {
const { node } = path;
if (node.operator === "instanceof") {
path.replaceWith(t.callExpression(this.addHelper("instanceof"), [node.left, node.right]));
... |
ScalablyTyped/SlinkyTyped | g/googleapis/src/main/scala/typingsSlinky/googleapis/visionV1Mod/visionV1/SchemaGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse.scala | package typingsSlinky.googleapis.visionV1Mod.visionV1
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
/**
* Response to an async batch file annotation request.
*/
@js.nativ... |
lihuibng/marshmallow | art/runtime/gc/accounting/mod_union_table_test.cc | <filename>art/runtime/gc/accounting/mod_union_table_test.cc
/*
* Copyright (C) 2015 The Android 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
*
* http://www.... |
LukasHabring/api | java/src/org/thethingsnetwork/api/networkserver/NetworkServerGrpc.java | package org.thethingsnetwork.api.networkserver;
import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static i... |
evelinamorim/cogroo4 | cogroo-nlp/src/main/java/org/cogroo/tools/featurizer/DefaultFeaturizerContextGenerator.java | <gh_stars>10-100
/**
* Copyright (C) 2012 cogroo <<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 ... |
landv/golang-test | dog-tunnel/nat/nat.go | package nat
import (
"errors"
"net"
"strings"
"time"
"golang-test/dog-tunnel/nat/stun"
)
func Init(outIpList string, buster bool, id int, udpAddr string) (*AttemptEngine, error) {
sock, err := net.ListenUDP("udp", &net.UDPAddr{})
if err != nil {
return nil, err
}
engine := &AttemptEngine{sock: sock, bust... |
zshnb/qiangdongserver | src/main/java/com/qiangdong/reader/service/IBlockUserService.java | package com.qiangdong.reader.service;
import com.qiangdong.reader.dto.BlockUserDto;
import com.qiangdong.reader.entity.BlockUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qiangdong.reader.request.BaseRequest;
import com.qiangdong.reader.request.block_user.AddBlockUserRequest;
impor... |
emarc99/SLib | src/slib/core/charset_windows.cpp | <reponame>emarc99/SLib
/*
* Copyright (c) 2008-2019 SLIBIO <https://github.com/SLIBIO>
*
* 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 li... |
dusenberrymw/IBM-SystemML | system-ml/src/test/java/com/ibm/bi/dml/test/integration/functions/unary/matrix/MatrixInverseTest.java | <reponame>dusenberrymw/IBM-SystemML<filename>system-ml/src/test/java/com/ibm/bi/dml/test/integration/functions/unary/matrix/MatrixInverseTest.java
/**
* (C) Copyright IBM Corp. 2010, 2015
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... |
timothyhinrichs/opa | topdown/example_test.go | // Copyright 2016 The OPA Authors. All rights reserved.
// Use of this source code is governed by an Apache2
// license that can be found in the LICENSE file.
package topdown_test
import (
"bytes"
"context"
"encoding/json"
"fmt"
"strings"
"github.com/open-policy-agent/opa/ast"
"github.com/open-policy-agent/... |
ajaypp123/DataStructure_Competative_Programing | Compatative_Programing/Graph/KruskalSpanningTree.java | <filename>Compatative_Programing/Graph/KruskalSpanningTree.java<gh_stars>0
/*
Spanning Tree:
- It is part of graph having V-1 edges and cover all points.
- It is sub part of graph, there can be multiple combination possible.
Minimum Cost Spanning Tree:
- Spanning Tree whose edge cost is minimum called min... |
Simmesimme/illusion-3d | test/Core/TestProperty.cpp | <gh_stars>1-10
////////////////////////////////////////////////////////////////////////////////////////////////////
// //
// _) | | _) This code may be used and modified under the terms //
//... |
shetouane/armitage-android-client | Armitage-Client/src/main/java/com/shetouane/armitage/structures/SessionCommandsAdapter.java | package com.shetouane.armitage.structures;
import java.util.HashMap;
import java.util.Map;
import com.shetouane.armitage.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Filter;
impo... |
vietnamz/quod_challange | src/test/java/fileutil/FileUtilTest.java | package fileutil;
import github.Project;
import org.junit.Assert;
import org.junit.Test;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.stream.Stream;
public class FileUtilTest {
@Test
public void fileUtil_unzipfile_success() {
Op... |
LeonelMenendez/meetups | backend/src/main/java/io/github/lzmz/meetups/dto/response/InvitationDto.java | <reponame>LeonelMenendez/meetups
package io.github.lzmz.meetups.dto.response;
import io.github.lzmz.meetups.model.InvitationModel;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
import java.time.LocalDate;
@Getter
@Setter
public class InvitationDto implements Serializable {
private lon... |
apaqi/sharkstore | proxy/store/dskv/rawkv.go | <reponame>apaqi/sharkstore
package dskv
import (
"model/pkg/kvrpcpb"
"golang.org/x/net/context"
)
func (p *KvProxy) RawPut(req *kvrpcpb.KvRawPutRequest) (*kvrpcpb.KvRawPutResponse, error) {
in := &Request{
Type: Type_RawPut,
RawPutReq: &kvrpcpb.DsKvRawPutRequest{
Header: &kvrpcpb.RequestHeader{},
Req: ... |
qiangwushuang/ParaView | Plugins/pvNVIDIAIndeX/src/vtknvindex_instance.cxx | <filename>Plugins/pvNVIDIAIndeX/src/vtknvindex_instance.cxx
/* Copyright 2020 NVIDIA Corporation. 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 reta... |
yegor256/codexia | objects/projects.rb | <filename>objects/projects.rb
# frozen_string_literal: true
# Copyright (c) 2020 <NAME>
#
# 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 th... |
KLumy/Basic-Algorithm | programmers/lv2/72411.py | from typing import List
from collections import Counter
from itertools import combinations
def solution(orders: List[str], courses: List[int]) -> List[str]:
answer = []
for c in courses:
order = []
for o in orders:
if c > len(o):
continue
order += combin... |
ng-eneter/eneter-java | IntegrationTests/CalculatorClient/calculatorclient/program.java | <gh_stars>1-10
package calculatorclient;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import eneter.messaging.diagnostic.EneterTrace;
import eneter.messaging.endpoints.typedmessages.*;
import eneter.messaging.messagingsystems.composites.bufferedmessagingcomposit.BufferedMessagingFactory;
i... |
shreejitverma/GeeksforGeeks | LeetCode/C++/139. Word Break.cpp | <reponame>shreejitverma/GeeksforGeeks<gh_stars>1-10
//DP
//Runtime: 28 ms, faster than 48.19% of C++ online submissions for Word Break.
//Memory Usage: 10.8 MB, less than 61.87% of C++ online submissions for Word Break.
//time: O(N^3), substr takes O(N)
//space: O(N)
class Solution {
public:
bool wordBreak(string s... |
roscopecoltran/SniperKit-Core | .References/src/github.com/ndob/yarrar_u3d_ar_pipeline/src/yarrar/PipelineStage.h | <reponame>roscopecoltran/SniperKit-Core<gh_stars>0
#pragma once
#include "Types.h"
#include "Scene.h"
#include "LockableData.h"
#include <json11.hpp>
#include <opencv2/opencv.hpp>
#include <functional>
#include <map>
#include <vector>
namespace yarrar
{
class PipelineStage
{
public:
PipelineStage(const json11::... |
reels-research/iOS-Private-Frameworks | CloudPhotoLibrary.framework/CPLPushToTransportScopeTask.h | <gh_stars>1-10
/* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/CloudPhotoLibrary.framework/CloudPhotoLibrary
*/
@interface CPLPushToTransportScopeTask : CPLEngineScopedTask {
NSMutableDictionary * _additionalTransportScopes;
CPLChangeBatch * _batchToCommit;
<CPLEngineTransportCh... |
neerajkumar101/CustomEthereumTokenWalletApp | node_modules/dapple/lib/package_build_filter.js | <reponame>neerajkumar101/CustomEthereumTokenWalletApp
'use strict';
var _ = require('lodash');
module.exports = class PackageBuildFilter {
filter (names) {
if (!this.contractNames) return [];
return _.intersection(this.contractNames, names);
}
seed (workspace, sources) {
this.contractNames = [];
... |
nagineni/chromium-crosswalk | cc/layers/contents_scaling_layer.cc | <gh_stars>100-1000
// Copyright 2012 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 "cc/layers/contents_scaling_layer.h"
#include "ui/gfx/size_conversions.h"
namespace cc {
gfx::Size ContentsScalingLayer::Com... |
patrickb42/backend-vbb-portal | vbb_backend/program/api/serializers/slotStudent.py | <reponame>patrickb42/backend-vbb-portal
from rest_framework import serializers
from vbb_backend.program.models import StudentSlotAssociation
from vbb_backend.users.models import Student
from vbb_backend.users.api.serializers.user import UserBareMinimumSerializer
from rest_framework.exceptions import ValidationError
... |
cosmin-ionita/Diploma-Project | SourceCode/Client/src/main/java/Commands/InitCommand.java | <filename>SourceCode/Client/src/main/java/Commands/InitCommand.java
package Commands;
import Exceptions.IncorrectParameterException;
import Interfaces.Command;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class InitCommand implements Command {
public void s... |
wufeiafei/xuperunion | pluginmgr/pluginmgr.go | // Package pluginmgr is a plugin manager which keeps all plugins' instance
// Notice: any plugin using this framework should implements
// a func named 'GetInstance' to return there instance
package pluginmgr
import (
"encoding/json"
"errors"
"os"
"path"
"plugin"
"github.com/xuperchain/log15"
)
// Plug... |
shalk/TIJ4Code | initialization/solution/Ex1.java | package initialization.solution;
class Ex11 {
String s;
}
public class Ex1 {
public static void main(String[] args){
Ex11 a = new Ex11();
System.out.println(a.s);
}
}
|
Mopolino8/feltor | inc/dg/backend/functions.h | <reponame>Mopolino8/feltor
#pragma once
/*! @file
*
* Contains some utility functions for the evaluation() routines
*/
namespace dg{
///@cond
/**
* @brief The delta function
*
* @param i Index
* @param j Index
*
* @return delta_{ij}
*/
inline double delta( unsigned i, unsigned j)
{
if( i==j )
return ... |
sjdv1982/seamless | tests/highlevel/simpler-ipython.py | <reponame>sjdv1982/seamless
from seamless.highlevel import Context, Transformer
ctx = Context()
ctx.a = 12
ipycode = """
%%timeit
def triple_it(a):
return 3 * a
result = _
"""
ctx.transform = Transformer()
ctx.transform.language = "ipython"
ctx.transform.code = ipycode
ctx.transform.a = ctx.a
ctx.transform.debu... |
wereHuang/kripton | kripton-arch-integration/src/main/java/net/sqlcipher/database/SQLiteCursor.java | <reponame>wereHuang/kripton
package net.sqlcipher.database;
import android.content.ContentResolver;
import android.database.CharArrayBuffer;
import android.database.ContentObserver;
import android.database.DataSetObserver;
import android.net.Uri;
import android.os.Bundle;
import net.sqlcipher.Cursor;
public class SQL... |
mtheory101/hybrid-rendering-thesis | branches/rev71/Raytracer/OptixRender.h | #pragma once
#include "../Scene/Quad.h"
#include "../File/ShaderLoader.h"
#include <Optix/optixu/optixpp_namespace.h>
#include <memory>
namespace Render
{
class GBuffer;
typedef std::shared_ptr<GBuffer> GBufferPtr;
}
namespace Raytracer
{
class OptixRender;
typedef std::shared_ptr<OptixRende... |
lstyles/nsgflowlogsbeat | vendor/github.com/elastic/beats/vendor/github.com/shirou/gopsutil/process/process_freebsd_amd64.go | // Created by cgo -godefs - DO NOT EDIT
// cgo -godefs types_freebsd.go
package process
const (
CTLKern = 1
KernProc = 14
KernProcPID = 1
KernProcProc = 8
KernProcPathname = 12
KernProcArgs = 7
)
const (
sizeofPtr = 0x8
sizeofShort = 0x2
sizeofInt ... |
toofuns/codeituk-ccd-data-store-api | src/test/java/uk/gov/hmcts/ccd/v2/internal/controller/UIStartEventControllerCaseRolesIT.java | package uk.gov.hmcts.ccd.v2.internal.controller;
import org.junit.Before;
import org.junit.Test;
import org.springframework.http.HttpHeaders;
import org.springframework.test.context.jdbc.Sql;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.MvcResult;
import org.springfr... |
ethansaxenian/RosettaDecode | lang/C/guess-the-number-with-feedback--player--1.c | <filename>lang/C/guess-the-number-with-feedback--player--1.c
#include <stdio.h>
int main(){
int bounds[ 2 ] = {1, 100};
char input[ 2 ] = " ";
/* second char is for the newline from hitting [return] */
int choice = (bounds[ 0 ] + bounds[ 1 ]) / 2;
/* using a binary search */
printf( "Choose a number ... |
netfighter/openproject | app/helpers/i18n_js_helper.rb | <reponame>netfighter/openproject
#-- encoding: UTF-8
#-- copyright
# OpenProject is a project management system.
# Copyright (C) 2012-2014 the OpenProject Foundation (OPF)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
#
# OpenP... |
silenc3502/MYSQL-Arch-Doc-Summary | mysql-server/sql/records.h | #ifndef SQL_RECORDS_H
#define SQL_RECORDS_H
/* Copyright (c) 2008, 2020, Oracle and/or its affiliates.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also ... |
lvsgate/lvs-dpdk | tools/keepalived/keepalived/check/check_smtp.c | <reponame>lvsgate/lvs-dpdk
/*
* Soft: Keepalived is a failover program for the LVS project
* <www.linuxvirtualserver.org>. It monitor & manipulate
* a loadbalanced server pool using multi-layer checks.
*
* Part: SMTP CHECK. Check an SMTP-server.
*
* Authors: <NAME>, <<... |
zhangzhizhong520/super-devops | super-devops-umc/super-devops-umc-receiver/src/main/java/com/wl4g/devops/umc/config/UmcReceiveAutoConfiguration.java | <filename>super-devops-umc/super-devops-umc-receiver/src/main/java/com/wl4g/devops/umc/config/UmcReceiveAutoConfiguration.java
/*
* Copyright 2017 ~ 2025 the original author or authors. <<EMAIL>, <EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compl... |
agustinhenze/mibs.snmplabs.com | pysnmp/WATCHGUARD-SMI.py | #
# PySNMP MIB module WATCHGUARD-SMI (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/WATCHGUARD-SMI
# Produced by pysmi-0.3.4 at Mon Apr 29 21:29:00 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2... |
lafaspot/imapnioclient | core/src/test/java/com/yahoo/imapnio/async/request/ImapRFCSupportedCommandTypeTest.java | package com.yahoo.imapnio.async.request;
import org.testng.Assert;
import org.testng.annotations.Test;
/**
* Unit test for {@link ImapRFCSupportedCommandType}.
*/
public class ImapRFCSupportedCommandTypeTest {
/**
* Tests CommandType enum.
*/
@Test
public void testCommandTypeEnum() {
... |
jnthn/intellij-community | java/java-tests/testData/codeInsight/joinLines/LeaveTrailingComment.java | <reponame>jnthn/intellij-community<filename>java/java-tests/testData/codeInsight/joinLines/LeaveTrailingComment.java
public class Foo {
{
String a = null;<caret>
a = "sss"; //stupid test
}
}
|
hawesome512/EDSOnline | app/src/main/java/com/xseec/eds/fragment/DataLogFragment.java | <gh_stars>0
package com.xseec.eds.fragment;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatAc... |
qikaifzj/ludwig | src/lc_droplet.h | <filename>src/lc_droplet.h
/*****************************************************************************
*
* lc_droplet.h
*
* Routines related to liquid crystal droplet free energy
* and molecular field.
*
* Edinburgh Soft Matter and Statistical Physics Group and
* Edinburgh Parallel Computing Centre
*
... |
avelez93/tfx | tfx/dsl/input_resolution/ops/unnest_op.py | # Copyright 2021 Google LLC. 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 by applicable law or a... |
freestyle076/MyMsInspect | src/org/fhcrc/cpl/viewer/quant/gui/ProteinQuantSummaryFrame.java | /*
* Copyright (c) 2003-2012 <NAME> Cancer Research Center
*
* 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 a... |
wiresboy/Java-Game-APCS | src/web/Shareable.java | <reponame>wiresboy/Java-Game-APCS
/** Shareable.java <NAME> 2/18/2015
* defines the methods that will be used to pack and unpack data being transfered with another player.
*/
package web;
public interface Shareable{
int getIdentifier(); //get a unique identifier so that the WebInterface knows where to send what ... |
JuDFTteam/masci-tools | masci_tools/io/parsers/fleur/outxml_conversions.py | # -*- coding: utf-8 -*-
###############################################################################
# Copyright (c), Forschungszentrum Jülich GmbH, IAS-1/PGI-1, Germany. #
# All rights reserved. #
# This file is part of the Masci-tools package. ... |
Neusoft-Technology-Solutions/aws-sdk-cpp | aws-cpp-sdk-lakeformation/include/aws/lakeformation/model/Resource.h | <gh_stars>0
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/lakeformation/LakeFormation_EXPORTS.h>
#include <aws/lakeformation/model/CatalogResource.h>
#include <aws/lakeformation/model/DatabaseResource.h>
#include <aws/l... |
IsraelAugusto0110/Linguagens-de-Programacao | C/Iniciante/1133restodadivisao.c | <reponame>IsraelAugusto0110/Linguagens-de-Programacao
#include<stdio.h>
void main(){
int x, y;
scanf("%d\n", &x);
scanf("%d", &y);
if(x < y){
for(int i = x + 1; i < y; i++){
if(i%5 == 2 || i%5 == 3){
printf("%d\n", i);
}
}
}
if(x > y){
... |
Pedrioko/FAWSAC | core/src/main/java/com/gitlab/pedrioko/core/zk/component/rangebox/LongRangeBox.java | package com.gitlab.pedrioko.core.zk.component.rangebox;
import com.gitlab.pedrioko.core.lang.LongRange;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.Events;
import org.zkoss.zul.Div;
import org.zkoss.zul.Longbox;
public class LongRangeBox extends Div {
... |
ResonanceGroup/FEMM | femm/viewpref.cpp | // Pref.cpp : implementation file
//
#include "stdafx.h"
#include "femm.h"
#include "ViewPref.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#define SelColor clist[0]
#define BackColor clist[1]
#define MeshColor clist[2]
#define BlockColor cl... |
0racles/devil.js | node_modules/can-make-rest/can-make-rest.js | var each = require("can-util/js/each/each");
var methodMapping = {
item: {
'GET': 'getData',
'PUT': 'updateData',
'DELETE': 'destroyData',
},
list: {
'GET': 'getListData',
'POST': 'createData'
}
};
function inferIdProp (url) {
var wrappedInBraces = /\{(.*)\}/;
var matches = url.match(wrappedInBraces)... |
skycryer/carbon-for-ibm-dotcom | packages/utilities/src/utilities/removeHtmlTagEntities/removeHtmlTagEntities.js | /**
* Copyright IBM Corp. 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
const _htmlTagRegex = /<.*?>/g;
const _cleanStringRegex = /\n|\s{2,}|&([a-zA-Z]+);/g;
/**
* Removes any html tags from a string and keeps inner te... |
OpenMPDK/SMDK | lib/linux-5.18-rc3-smdk/include/trace/trace_custom_events.h | <filename>lib/linux-5.18-rc3-smdk/include/trace/trace_custom_events.h
/* SPDX-License-Identifier: GPL-2.0 */
/*
* This is similar to the trace_events.h file, but is to only
* create custom trace events to be attached to existing tracepoints.
* Where as the TRACE_EVENT() macro (from trace_events.h) will create
* bot... |
mf01/luacpp | Source/Engine/LuaTUserData.cpp | <reponame>mf01/luacpp
/*
MIT License
Copyright (c) 2021 <NAME>
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 us... |
aashishgahlawat/CompetetiveProgramming | aashishgahlawat/codeforces/B/556-B/556-B-31658893.cpp | <filename>aashishgahlawat/codeforces/B/556-B/556-B-31658893.cpp<gh_stars>0
#include <iostream>
#include <bits/stdc++.h>
#define endl '\n'
using namespace std;
int game[1002];
int counter;
bool Check(){
int i=1;
for(i=1;i<counter;++i){
if((game[i]-1)!=game[i-1]) break;
}
if(i==counter) return tru... |
fancheng123/wangsy-january | january-merchant/src/main/java/smile/wangsy/january/merchant/vo/ProductCategoryVo.java | <reponame>fancheng123/wangsy-january<gh_stars>100-1000
package smile.wangsy.january.merchant.vo;
import org.springframework.beans.BeanUtils;
import smile.wangsy.january.merchant.model.ProductCategory;
import java.util.List;
import java.io.Serializable;
import java.util.stream.Collectors;
import lombok.Data;
/**
* ... |
pln606/https-github.com-OmegaHelix-openproject | app/models/queries/relations/filters/involved_filter.rb | #-- encoding: UTF-8
#-- copyright
# OpenProject is a project management system.
# Copyright (C) 2012-2017 the OpenProject Foundation (OPF)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
#
# OpenProject is a fork of ChiliProject,... |
Passer-D/GameAISDK | src/ImgProc/Comm/Utils/Log.h | /*
* Tencent is pleased to support the open source community by making GameAISDK available.
* This source code file is licensed under the GNU General Public License Version 3.
* For full details, please refer to the file "LICENSE.txt" which is provided as part of this source code package.
* Copyright (C) 2020... |
OhmPopy/MPFUI | include/suic/Skia/core/SkFontHost.h | <filename>include/suic/Skia/core/SkFontHost.h<gh_stars>10-100
/*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkFontHost_DEFINED
#define SkFontHost_DEFINED
#include "SkTypeface.h"
class SkDes... |
willfish/trade-tariff-backend | db/migrate/20130123125153_adjust_chief_decimal_columns.rb | <reponame>willfish/trade-tariff-backend
Sequel.migration do
up do
alter_table :chief_comm do
set_column_type :full_dty_adval1, BigDecimal, size: [6, 3]
set_column_type :full_dty_adval2, BigDecimal, size: [6, 3]
set_column_type :full_dty_spfc1, BigDecimal, size: [8, 4]
set_column_type :ful... |
whitmans-max/python-examples | Google API/Geocoding/main.py | <filename>Google API/Geocoding/main.py
#
# https://developers.google.com/maps/documentation/geocoding/intro
#
import googlemaps
API_KEY = '<YOUR-API-KEY>'
gmaps = googlemaps.Client(key=API_KEY)
# convert address to lat,long
results = gmaps.geocode('221B Baker Street, London, United Kingdom')
for key in results[0... |
NeilJustice/FileRevisor | libFileRevisorTests/UtilityComponents/FunctionCallers/Member/MetalMock/NonVoidTwoArgMemberFunctionCallerMock.h | <reponame>NeilJustice/FileRevisor
#pragma once
#include "libFileRevisor/UtilityComponents/FunctionCallers/Member/NonVoidTwoArgMemberFunctionCaller.h"
template<typename ReturnType, typename ClassType, typename Arg1Type, typename Arg2Type>
class NonVoidTwoArgMemberFunctionCallerMock : public Metal::Mock<NonVoidTwoAr... |
zvam1/gitlab-on-heroku | app/assets/javascripts/pipelines/utils.js | import { pickBy } from 'lodash';
import { SUPPORTED_FILTER_PARAMETERS } from './constants';
export const validateParams = params => {
return pickBy(params, (val, key) => SUPPORTED_FILTER_PARAMETERS.includes(key) && val);
};
export const createUniqueJobId = (stageName, jobName) => `${stageName}-${jobName}`;
/**
* ... |
coveo/swagger-core | modules/swagger-jaxrs/src/test/scala/resources/Resource942SubResource.java | <reponame>coveo/swagger-core<filename>modules/swagger-jaxrs/src/test/scala/resources/Resource942SubResource.java
package resources;
import models.Employee;
import com.wordnik.swagger.annotations.*;
import javax.ws.rs.*;
import javax.ws.rs.core.Response;
import java.util.*;
@Api(hidden = true)
public class Resource9... |
hktr92/phaser3-rex-notes | templates/ui/roundrectanglecanvas/RoundRectangleCanvas.js | import RoundRectangleCanvas from '../../../plugins/gameobjects/canvas/roundrectangle/RoundRectangle.js';
export default RoundRectangleCanvas; |
dipta007/Competitive-Programming | SPOJ/QTREE2.cpp | #include <bits/stdc++.h>
using namespace std;
#define READ(f) freopen(f, "r", stdin)
#define WRITE(f) freopen(f, "w", stdout)
#define MP(x, y) make_pair(x, y)
#define PB(x) push_back(x)
#define FOR(i,L,R) for (int i = (int)(L); i <= (int)(R); i++)
#define ROF... |
phatblat/macOSPrivateFrameworks | PrivateFrameworks/SidecarCore/SidecarDisplayAgent_Interface-Protocol.h | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
@class NSArray, SidecarDevice, SidecarDisplayConfig;
@protocol SidecarDisplayAgent_Interface
- (void)preferencesChanged:(NSArray *)arg1;
- (void)displayCurrentConfig:(void (^)(SidecarDis... |
int128/amefuriso | gateways/weather_test.go | <gh_stars>1-10
package gateways
import (
"context"
"testing"
"time"
"github.com/go-test/deep"
"github.com/golang/mock/gomock"
"github.com/int128/amefuriso/domain"
"github.com/int128/amefuriso/domain/testdata"
"github.com/int128/amefuriso/gateways/interfaces"
"github.com/int128/amefuriso/infrastructure/interf... |
zipated/src | chrome/android/java/src/org/chromium/chrome/browser/TtsPlatformImpl.java | <filename>chrome/android/java/src/org/chromium/chrome/browser/TtsPlatformImpl.java<gh_stars>1000+
// Copyright 2013 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.
package org.chromium.chrome.browser;
import android.os.... |
medja/ovs-prirocnik | src/components/plot/plot.js | import React, { Component } from 'react';
import { math, range } from 'core';
import { Surface } from 'components/graphics';
import Grid from './grid';
class Plot extends Component {
static defaultProps = {
fill: '#bbdefb'
};
width = 1000;
height = 700;
padding = 20;
of... |
DeepDiver1975/msgraph.go | v1.0/WorkbookChartTitleModel.go | // Code generated by msgraph-generate.go DO NOT EDIT.
package msgraph
// WorkbookChartTitle undocumented
type WorkbookChartTitle struct {
// Entity is the base model of WorkbookChartTitle
Entity
// Overlay undocumented
Overlay *bool `json:"overlay,omitempty"`
// Text undocumented
Text *string `json:"text,omitem... |
PiCaQiuLory/Travel-For-Qinker | AutoSync/src/main/java/com/ss/pojo/OrderApplyExample.java | <gh_stars>0
package com.ss.pojo;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class OrderApplyExample implements Serializable{
/**
*
*/
private static final long serialVersionUID = 8641579177993474910L;
protected... |
SKA-ScienceDataProcessor/rascil | rascil/workflows/shared/__init__.py | <gh_stars>1-10
from .imaging import *
|
surav6174/Code-With-C | Computer Lab/Lab 6 Source Code/Program02.c | /*Write a program to display the chessboard pattern.*/
/*Importing Header Files*/
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
int main()
{
system("cls"); /*Clear the screen*/
printf("\t\tChessBoard\n\n"); /*An information while printing*/
/*Double Loop explained below:*/
for (int i = 0... |
1337programming/leviathan | nfc/src/DOOM/neo/swf/SWF_Main.cpp | /*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free... |
olsonbrandon/react-native | ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevBundleDownloadListener.java | <reponame>olsonbrandon/react-native
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in... |
apulis/apulisedge | cloud/pkg/domain/node/types.go | <reponame>apulis/apulisedge
// Copyright 2020 Apulis Technology Inc. All rights reserved.
package node
import (
_ "fmt"
)
// node status
const (
StatusOnline string = "Online"
StatusOffline string = "Offline"
StatusNotInstalled string = "NotInstalled"
StatusInstalling string = "Installing"
StatusD... |
fergy/aplit_linux-5 | drivers/net/wireless/realtek/rtlwifi/rtl8723com/main.c | // SPDX-License-Identifier: GPL-2.0
/* Copyright(c) 2009-2014 Realtek Corporation.*/
#include "../wifi.h"
#include <linux/module.h>
MODULE_AUTHOR("Realtek WlanFAE <<EMAIL>>");
MODULE_AUTHOR("<NAME> <<EMAIL>>");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Realtek RTL8723AE/RTL8723BE 802.11n PCI wireless common routin... |
glvnian/go-atlassian-1 | pkg/infra/models/admin_scim_group.go | <reponame>glvnian/go-atlassian-1
package models
type SCIMGroupPathScheme struct {
Schemas []string `json:"schemas,omitempty"`
Operations []*SCIMGroupOperationScheme `json:"Operations,omitempty"`
}
type SCIMGroupOperationScheme struct {
Op string `json:"op,omitempt... |
ID2R/ID2R-API | api-common/src/main/java/dev/id2r/api/common/placeholder/replacer/CharsReplacer.java | package dev.id2r.api.common.placeholder.replacer;
import dev.id2r.api.common.placeholder.Placeholder;
import java.util.function.Function;
public class CharsReplacer implements Replacer {
// https://github.com/PlaceholderAPI/PlaceholderAPI/blob/master/src/main/java/me/clip/placeholderapi/replacer/CharsReplacer.j... |
11Zero/DemoBCG | BCG/BCGPDragFrameImpl.cpp | //*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a part of BCGControlBar Library Professional Edition
// Copyright (C) 1998-2014 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only unde... |
CommandPost/FinalCutProFrameworks | Headers/Frameworks/LunaKit/LKFeetFramesTimecode-Protocol.h | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35).
//
// Copyright (C) 1997-2019 <NAME>.
//
@protocol LKFeetFramesTimecode
- (void)subtractFeet:(long long)arg1 frames:(long long)arg2 quarterFrames:(long long)arg3;
- (void)addFeet:(long long)arg1 frames:(long long)arg2 quarte... |
JasonPollman/jp-utils | test/Protolib.object.max.js | <reponame>JasonPollman/jp-utils
(function () {
'use strict';
var expect;
if(typeof window === 'object' && window.expect) {
expect = window.expect;
}
else {
expect = require('chai').expect;
}
describe('Protolib.object.max', function () {
before(function () {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.