repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
alinakazi/apache-royale-0.9.8-bin-js-swf | royale-compiler/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/DirectiveProcessor.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"); ... |
zelinskiyrk/ftl-jb-001 | src/com/company/tasks/task022/Fahrenheit.java | <filename>src/com/company/tasks/task022/Fahrenheit.java<gh_stars>0
package com.company.tasks.task022;
public class Fahrenheit implements Converting{
@Override
public double getValue(double value) {
return (9 / 5) * value + 32;
}
}
|
sahanperera00/C-programming | Tutorials/Tutorial 11/Question1-Thushara.c | #include<stdio.h>
#include<string.h>
int main(void) {
char word[10];
int length, count, flag;
printf("Enter any word : ");
scanf("%10s", word);
length = strlen(word);
for (count = 0; count <= (length/2); count++) {
if (word[count] != word[(length - 1) - count]) {
flag = 0;
break;
}
else {
... |
refdiff-data/gocd | server/webapp/WEB-INF/rails.new/vendor/bundle/jruby/1.9/gems/yard-0.8.7.6/spec/handlers/private_class_method_handler_spec.rb | require File.dirname(__FILE__) + '/spec_helper'
describe "YARD::Handlers::Ruby::#{LEGACY_PARSER ? "Legacy::" : ""}PrivateClassMethodHandler" do
before(:all) { parse_file :private_class_method_handler_001, __FILE__ }
it "should handle private_class_method statement" do
Registry.at('A.c').visibility.should eq :... |
senaademr/CS1950UFinal | src/final/abilities/abilityconstants.cpp | #include "abilityconstants.h"
|
BeeeOn/gateway-frc | src/zmq/ZMQConnector.h | #ifndef BEEEON_ZMQ_CONNECTOR_H
#define BEEEON_ZMQ_CONNECTOR_H
#include <string>
#include <Poco/AtomicCounter.h>
#include <Poco/SharedPtr.h>
#include <zmq.hpp>
#include "loop/StoppableRunnable.h"
#include "util/Loggable.h"
#include "zmq/ZMQMessageError.h"
namespace BeeeOn {
class ZMQMessage;
/*
* Abstract class ... |
ShawnZhong/SplitFS | tar/gnulib/lib/usleep.c | <reponame>ShawnZhong/SplitFS
/* Pausing execution of the current thread.
Copyright (C) 2009-2018 Free Software Foundation, Inc.
Written by <NAME> <<EMAIL>>, 2009.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the... |
BasisTI/madre | suprimentos/src/main/java/br/com/basis/suprimentos/service/AutorizacaoFornecimentoService.java | <filename>suprimentos/src/main/java/br/com/basis/suprimentos/service/AutorizacaoFornecimentoService.java<gh_stars>1-10
package br.com.basis.suprimentos.service;
import br.com.basis.suprimentos.domain.AutorizacaoFornecimento;
import br.com.basis.suprimentos.repository.AutorizacaoFornecimentoRepository;
import br.com.ba... |
daiki01240/obyte-insurance | node_modules/safe-json-parse/index.js | module.exports = SafeParse
function SafeParse(obj, reviver, callback) {
if (arguments.length === 2) {
callback = reviver
reviver = null
}
var json
try {
json = JSON.parse(obj, reviver)
} catch (err) {
return callback(err)
}
callback(null, json)
}
|
uk-gov-mirror/dvsa.motr | motr-notifier/src/integration-test/java/uk/gov/dvsa/motr/test/integration/dynamodb/DynamoDbIntegrationHelper.java | package uk.gov.dvsa.motr.test.integration.dynamodb;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDB;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClientBuilder;
import static uk.gov.dvsa.motr.test.environmant.variables.TestEnvironmentVariables.region;
public class DynamoDbIntegrationHelper {
/... |
haohanscm/pds | src/main/java/com/haohan/platform/service/sys/modules/pds/core/admin/impl/AdminShortcutServiceImpl.java | <filename>src/main/java/com/haohan/platform/service/sys/modules/pds/core/admin/impl/AdminShortcutServiceImpl.java
package com.haohan.platform.service.sys.modules.pds.core.admin.impl;
import com.haohan.framework.entity.BaseResp;
import com.haohan.platform.service.sys.common.utils.Collections3;
import com.haohan.platfor... |
afonsopbarros/appcenter-cli | dist/commands/crashes/lib/subfolder-symbols-helper.js | <filename>dist/commands/crashes/lib/subfolder-symbols-helper.js
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(fu... |
jbayer/external-secrets | pkg/provider/aws/parameterstore/fake/fake.go | <filename>pkg/provider/aws/parameterstore/fake/fake.go
/*
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 ... |
ubirch/ubirch-auth-service | core/src/test/scala/com/ubirch/auth/core/manager/LogoutManagerSpec.scala | package com.ubirch.auth.core.manager
import com.ubirch.auth.testTools.db.redis.RedisSpec
import com.ubirch.util.json.JsonFormats
import com.ubirch.util.oidc.model.UserContext
import com.ubirch.util.oidc.util.OidcUtil
import org.json4s.native.Serialization.write
/**
* author: cvandrei
* since: 2017-03-22
*/
cla... |
Harteex/Tuniac | Tuniac1/TuniacApp/LibraryEntry.h | <reponame>Harteex/Tuniac
/*
Copyright (C) 2003-2008 <NAME>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
... |
Darlingnotin/Antisocial_VR | libraries/controllers/src/controllers/impl/endpoints/ScriptEndpoint.cpp | //
// Created by <NAME> 2015/10/23
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "ScriptEndpoint.h"
#include "../../Logging.h"
#include <QtCore/QThread>
#include <S... |
demisto/pycharm-plugin | src/main/java/com/demisto/plugin/ide/generalUIComponents/DemistoCollapsingListeners.java | <filename>src/main/java/com/demisto/plugin/ide/generalUIComponents/DemistoCollapsingListeners.java
package com.demisto.plugin.ide.generalUIComponents;
public interface DemistoCollapsingListeners {
void onCollapsingChanged(CollapsiblePanel panel, boolean newValue);
}
|
longluo/leetcode | Java/src/com/longluo/offer_ii/Offer2_03_countBits.java | package com.longluo.offer_ii;
import java.util.Arrays;
/**
* 剑指 Offer II 003. 前 n 个数字二进制中 1 的个数
* <p>
* 给定一个非负整数 n ,请计算 0 到 n 之间的每个数字的二进制表示中 1 的个数,并输出一个数组。
* <p>
* 示例 1:
* 输入: n = 2
* 输出: [0,1,1]
* 解释:
* 0 --> 0
* 1 --> 1
* 2 --> 10
* <p>
* 示例 2:
* 输入: n = 5
* 输出: [0,1,1,2,1,2]
* 解释:
* 0 --> 0
* 1 -... |
benshurts/ttauri-gui | src/ttauri/event_queue.hpp | <gh_stars>1-10
// Copyright <NAME> 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include "wfree_fifo.hpp"
#include <concepts>
namespace tt {
namespace detail {
class event_queue_item_base ... |
jjwatts/gigantum-client | ui/__tests__/components/shared/activity/ActivityCard.test.js | <reponame>jjwatts/gigantum-client<filename>ui/__tests__/components/shared/activity/ActivityCard.test.js
// vendor
import React, { Component } from 'react';
import renderer from 'react-test-renderer';
import { mount } from 'enzyme';
import relayTestingUtils from '@gigantum/relay-testing-utils';
import { Provider } from ... |
neo4j-contrib/gcli | lib/gcli/l10n.js | <reponame>neo4j-contrib/gcli<filename>lib/gcli/l10n.js
/*
* Copyright 2012, Mozilla Foundation and contributors
*
* 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.or... |
tnga/underscore-es | src/defer.js | // `_defer` : (ahem) a function's function
// ----------------------------------------
import _partial from './partial';
import _delay from './delay';
// Defers a function, scheduling it to run after the current call stack has cleared.
var _defer = _partial(_delay, _partial.placeholder, 1);
export {_defer as default... |
KCodeYT/gomint | gomint-server/src/main/java/io/gomint/server/world/block/Glowstone.java | package io.gomint.server.world.block;
import io.gomint.inventory.item.ItemGlowstoneDust;
import io.gomint.inventory.item.ItemStack;
import io.gomint.world.block.BlockType;
import io.gomint.server.registry.RegisterInfo;
import io.gomint.world.block.BlockGlowstone;
import java.util.ArrayList;
import java.util.List;
im... |
seagullua/Alarm-x4 | Classes/Widgets/TurnOnAlarmMenuWidget.h | <gh_stars>1-10
#ifndef TURNONALARMMENUWIDGET_H
#define TURNONALARMMENUWIDGET_H
#include "Core/Widget.h"
class TurnOnAlarmMenuDelegate
{
public:
TurnOnAlarmMenuDelegate(cocos2d::CCObject* wake_up_obj=0,
cocos2d::SEL_CallFunc wake_up_method=0,
cocos2d::CCObje... |
olebole/voclient | mini-d/vocRegistry_f77.c | <reponame>olebole/voclient<gh_stars>1-10
/**
* VOC_REGISTRYQUERY -- Utility code to act as a client interface to
* the NVO Registry service.
*
* RegistryQuery
* ----------------------
*
* High-Level Query:
*
* res = voc_regSearch (term1, term2, orValues)
* res = voc_regSearchBySvc (svc, ... |
steph-dmts/mailchain | cmd/mailchain/internal/prompts/promptstest/select.go | package promptstest
import (
"testing"
"github.com/stretchr/testify/assert"
)
func MockSelectItemSkipable(t *testing.T, wantItems []string, returnSelected string, returnSkipped bool, returnErr error) func(label string, items []string, skipable bool) (selected string, skipped bool, err error) {
return func(label s... |
ggonnella/genometools | src/match/seqabstract.h | /*
Copyright (c) 2013 <NAME> <<EMAIL>>
Copyright (c) 2013 Center for Bioinformatics, University of Hamburg
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all cop... |
CNES/ccsdsmo-malgo | mal/sessiontype.go | /**
* MIT License
*
* Copyright (c) 2020 CNES
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, me... |
GillesArcas/Advent_of_Code | 2018/13.py | <filename>2018/13.py
import re
DATA = '13.txt'
def get_data():
with open(DATA) as f:
amap = list(line.strip('\n') for line in f.readlines())
carts = list()
for y, line in enumerate(amap):
for match in re.finditer('([<>^v])', line):
c = match.group(1)
x = match.sta... |
itamar244/arithmetic-evaluator | src/types.js | // @flow
import type { SourceLocation } from './utils/location'
export interface NodeBase {
loc: SourceLocation;
start: number;
end: number;
}
export type AnyNode = NodeBase & { [string]: any }
export type Node =
| Program
| Expression
| Import
| UnaryExpression
| BinaryExpression
| VariableDeclerations
| V... |
stefb965/nomulus | java/google/registry/bigquery/BigqueryFactory.java | <reponame>stefb965/nomulus
// Copyright 2017 The Nomulus 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/LICENSE-2.0... |
shamazmazum/voxvision | benchmarks/voxtrees/static-tree-creation.c | #include <stdlib.h>
#include <stdio.h>
#include <voxtrees.h>
#include <gettime.h>
#define N 10000000
int main ()
{
vox_dot *dots = vox_alloc (sizeof(vox_dot)*N);
int i;
double time;
struct vox_node *tree;
vox_dot_set (vox_voxel, 1, 1, 1);
for (i=0; i<N; i++)
{
// XXX: must be uniqu... |
brent2333/barterly | client/src/components/posts/PostsByUser.js | <reponame>brent2333/barterly
import React, { Fragment, useEffect } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux';
import Spinner from '../layout/Spinner';
import PostItem from './PostItem';
import { getPostsByUser } from '../../actions/post';
const PostsByUser = ({ getPostsByUser... |
chopshop-166/chopshoplib | core/src/test/java/com/chopshop166/chopshoplib/states/Claw2.java | <filename>core/src/test/java/com/chopshop166/chopshoplib/states/Claw2.java
package com.chopshop166.chopshoplib.states;
/** Sample Claw class using states. */
public class Claw2 extends StateSubsystem<Direction> {
/** Create a Claw and set up state transitions. */
public Claw2() {
super(Direction.NEUTRAL);
... |
lw-lin/incubator-ranger | ranger-plugin-classloader/src/test/java/org/apache/ranger/plugin/classloader/test/Impl/TestChildFistClassLoader.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 ... |
jnplonte/helper | lib/sort.js | "use strict";
const sortFunction = {
'sortObject': function(data = {}) {
const ordered = {};
Object.keys(data).sort().forEach(function (key) {
ordered[key] = data[key];
});
return ordered;
},
'sortObjectInList': function(data = {}, arrayList = []) {
con... |
danielroth1/PackingRectanglesOptimizer | src/gui/ControlPanel.java | <reponame>danielroth1/PackingRectanglesOptimizer<filename>src/gui/ControlPanel.java
package gui;
public class ControlPanel {
public ControlPanel() {
// TODO Auto-generated constructor stub
}
}
|
Valda-IR/Valda-IR | valda-dexlib2/src/test/java/at/yawk/valda/ir/dex/compiler/NaiveCodeCompilerTest.java | package at.yawk.valda.ir.dex.compiler;
import at.yawk.valda.SmaliUtils;
import at.yawk.valda.ir.Classpath;
import at.yawk.valda.ir.LocalClassMirror;
import at.yawk.valda.ir.LocalMethodMirror;
import at.yawk.valda.ir.TriState;
import at.yawk.valda.ir.code.BasicBlock;
import at.yawk.valda.ir.code.BinaryOperation;
import... |
shoukaiseki/sksweb | src/java/beans/com/ibm/tivoli/imi/spi/IMUserStatusHandler.java | <filename>src/java/beans/com/ibm/tivoli/imi/spi/IMUserStatusHandler.java
package com.ibm.tivoli.imi.spi;
public abstract interface IMUserStatusHandler
{
public abstract void addListener(IMUserStatusListener paramIMUserStatusListener)
throws IMException;
public abstract void removeListener(IMUserStatusListener... |
RobLoach/ion | third_party/openctm/files/lib/ctmlimits.h | <filename>third_party/openctm/files/lib/ctmlimits.h
// Google-authored addition to openctm.
#ifndef __OPENCTM_CTMLIMITS_H_
#define __OPENCTM_CTMLIMITS_H_
#include <stdbool.h>
typedef struct {
// If non-zero, any attempt to allocate more than maxAllocation bytes
// during mesh loading will fail with CTM_OUT_OF_ME... |
King0987654/windows2000 | private/net/api/confstub.c | /*++
Copyright (c) 1991-92 Microsoft Corporation
Module Name:
ConfStub.c
Abstract:
This module contains stubs for the NetConfig APIs.
Author:
<NAME> (JohnRo) 23-Oct-1991
Environment:
Portable to any flat, 32-bit environment. (Uses Win32 typedefs.)
Requires ANSI C extens... |
jacekk/emuto | src/parsers/primitives/string.js | // @flow
/* eslint no-control-regex: 0 */
/* eslint no-useless-escape: 0 */
import P from 'parsimmon'
import type { NodeType } from '../../types'
export default P.regexp(
/("(((?=\\)\\(["\\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\0-\x1F\x7F]+)*")/
).map((value: string): NodeType => ({
name: 'primitive',
value
}))
|
jitwxs/disruptor-study | disruptor-netty-client/src/main/java/jit/wxs/disruptor/netty/client/NettyClientMain.java | <filename>disruptor-netty-client/src/main/java/jit/wxs/disruptor/netty/client/NettyClientMain.java
package jit.wxs.disruptor.netty.client;
import com.github.jitwxs.commons.core.util.thread.ThreadPoolUtils;
import jit.wxs.disruptor.common.netty.Constant;
import jit.wxs.disruptor.common.netty.Entry;
import jit.wxs.disru... |
PrathamBooks/sw-core | app/controllers/api/v1/search_controller.rb | class Api::V1::SearchController < Api::V1::ApplicationController
respond_to :json
EVERYTHING = "*"
PER_PAGE = 10
DEFAULT_CRITERIA = [
{ _score: {order: :desc} },
{ recommended_status: {order: :asc, ignore_unmapped: true} },
{ reads: {order: :desc} },
{ likes: {order: :desc} }
]
#... |
smdb21/java-miape-api | src/main/java/org/proteored/miapeapi/xml/mzidentml/autogenerated/PSIPIAnalysisProcessProteinDetectionProtocolType.java | <gh_stars>1-10
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-257
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Gen... |
micromouseonline/micromouse_maze_tool | mazefiles/cfiles/tic05followersheats.c |
/* text version of maze 'mazefiles/binary/tic05followersheats.maz'
generated by mazetool (c) <NAME> 2018
o---o---o---o---o---o---o---o---o---o---o---o---o---o---o---o---o
| |
o o---o o---o---o---o---o---o---o---o---o---o---o---o---o o
| |... |
Jarvie8176/eth | parser/TronGrid/Swap_TriggerSmartContract_4bf3e2d0_test.py | <reponame>Jarvie8176/eth<gh_stars>0
from unittest import TestCase
from parser.TronGrid.util import prepare_parse_result
def test_usage() -> None:
expected = {
"trx_id": "c96f0d6a3bce8099b1351a9858abd26d9071d7b1da8a4df71f951c8ff4d20284",
"url": "https://tronscan.org/#/transaction/c96f0d6a3bce8099b1... |
edublancas/pipeline | pipeline/sklearn/__init__.py | from .MetaEstimator import MetaEstimator |
quis/collections-1 | features/support/services_and_information_helper.rb | require "gds_api/test_helpers/search"
require_relative "../../test/support/rummager_helpers"
module ServicesAndInformationHelpers
include GdsApi::TestHelpers::Search
include RummagerHelpers
def stub_services_and_information_lookups
@services_and_information = %w[
environmental-permit-check-if-you-nee... |
jethronap/jstat | src/main/java/jstat/ml/models/GaussianMixtureModel.java | package jstat.ml.models;
import org.apache.commons.math3.distribution.MultivariateNormalDistribution;
import org.apache.commons.math3.distribution.fitting.MultivariateNormalMixtureExpectationMaximization;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.nd4j.linalg.api.ndarray.INDArray;... |
magicgh/algorithm-contest-code | BashuOJ-Code/5121.cpp | #include<iostream>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cmath>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<vector>
#define ri register int
#define ll long long
using namespace std;
const int MAXN=100005;
int Lmax[MAXN],Rmax[MAXN],Lmin[MAXN],Rmin[MAXN],Cnt[MAXN... |
wnbts/random-cut-forest-by-aws | Java/core/src/main/java/com/amazon/randomcutforest/ComponentList.java | <filename>Java/core/src/main/java/com/amazon/randomcutforest/ComponentList.java
/*
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License... |
nettee/leetcode | solutions/0926.find-and-replace-pattern/0926.find-and-replace-pattern.1540533202.cpp | <reponame>nettee/leetcode
/*
* [926] Find and Replace Pattern
*
* https://leetcode.com/problems/find-and-replace-pattern/description/
*
* algorithms
* Medium (68.65%)
* Total Accepted: 11.2K
* Total Submissions: 16.3K
* Testcase Example: '["abc","deq","mee","aqq","dkd","ccc"]\n"abb"'
*
* You have a list ... |
ruoyewu/QpD | src/queue_reconstruction_by_height/Main.java | <filename>src/queue_reconstruction_by_height/Main.java<gh_stars>0
package queue_reconstruction_by_height;
import java.util.*;
/**
* User: wuruoye
* Date: 2019-02-24 22:46
* Description:
*/
public class Main {
public static void main(String[] args) {
int[][] people = new int[][]{{7,0}, {4,4}, {7,1}, {5... |
lechium/iPhoneOS_12.1.1_Headers | usr/lib/libboringssl.dylib/boringssl_concrete_boringssl_ctx_callback.h | /*
* This header is generated by classdump-dyld 1.0
* on Saturday, June 1, 2019 at 6:42:35 PM Mountain Standard Time
* Operating System: Version 12.1.1 (Build 16C5050a)
* Image Source: /usr/lib/libboringssl.dylib
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>.
*/
#import <libobjc.A.dylib/OS_... |
rdstonech/VW | api/src/main/java/com/voxelwind/api/game/item/data/wood/Log.java | <gh_stars>0
package com.voxelwind.api.game.item.data.wood;
import com.google.common.base.Preconditions;
import com.voxelwind.api.game.util.data.LogDirection;
import com.voxelwind.api.game.util.data.TreeSpecies;
import java.util.Objects;
/**
* Represents a log.
*/
public class Log extends Wood
{
public static Log ... |
agaveplatform/science-apis | agave-systems/systems-core/src/test/java/org/iplantc/service/transfer/gridftp/GridFTPLoadTest.java | <gh_stars>0
package org.iplantc.service.transfer.gridftp;
import org.apache.commons.io.FilenameUtils;
import org.apache.log4j.Logger;
import org.codehaus.plexus.util.FileUtils;
import org.iplantc.service.systems.dao.SystemDao;
import org.iplantc.service.systems.model.StorageSystem;
import org.iplantc.service.transfer.... |
zcy421593/aliyun-openapi-cpp-sdk | aliyun-api-rds_region/2014-08-15/include/ali_rdsregion_describe_accounts_types.h | #ifndef ALI_RDSREGION_DESCRIBE_ACCOUNTS_TYPESH
#define ALI_RDSREGION_DESCRIBE_ACCOUNTS_TYPESH
#include <stdio.h>
#include <string>
#include <vector>
namespace aliyun {
struct RdsRegionDescribeAccountsRequestType {
std::string owner_id;
std::string resource_owner_account;
std::string resource_owner_id;
... |
ausbin/qcor | mlir/transforms/lowering/CallableLowering.hpp | #pragma once
#include "quantum_to_llvm.hpp"
namespace qcor {
class TupleUnpackOpLowering : public ConversionPattern {
protected:
public:
explicit TupleUnpackOpLowering(MLIRContext *context)
: ConversionPattern(mlir::quantum::TupleUnpackOp::getOperationName(), 1,
context) {}
Logical... |
fandylua/clickhouse-jdbc | clickhouse-client/src/main/java/com/clickhouse/client/data/ClickHouseIpv4Value.java | package com.clickhouse.client.data;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.net.Inet4Address;
import java.net.Inet6Address;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
im... |
amichard/tfrs | backend/api/migrations/0192_update_guest_role.py | <filename>backend/api/migrations/0192_update_guest_role.py
from django.db import migrations
from django.db.migrations import RunPython
def set_default_role(apps, schema_editor):
"""
Set FSNoAccess (Guest) as a default role
"""
db_alias = schema_editor.connection.alias
role = apps.get_model('api',... |
RollingSoftware/L2J_HighFive_Hardcore | l2j_server/src/main/java/com/l2jserver/gameserver/ai/NextAction.java | /*
* Copyright (C) 2004-2016 L2J Server
*
* This file is part of L2J Server.
*
* L2J Server is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any ... |
couchbase-fs/sdk-go | tools/cbfsadm/backup.go | package main
import (
"flag"
"io"
"log"
"net/http"
"net/url"
"os"
"strconv"
"strings"
"time"
"github.com/couchbaselabs/cbfs/config"
"github.com/couchbaselabs/cbfs/tools"
)
var backupFlags = flag.NewFlagSet("backup", flag.ExitOnError)
var backupWait = backupFlags.Bool("w", false, "Wait for backup to comple... |
weizhou/p5-image | src/p5Blenders/P5ExclusionBlender.js | import { P5Blender } from "./P5Blender";
export class P5ExclusionBlender extends P5Blender{
constructor(){
super();
this.fragmentShader = `
#ifdef GL_ES
precision mediump float;
#endif
varying vec2 vTexCoord;
uniform sampler2D textureID1;
un... |
lkumarjain/jain-I18n | src/main/java/com/jain/addon/i18N/I18NChangeListener.java | /*
* Copyright 2012 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
TwoPillar/jiba | src/com/twopillar/jiba/util/PreferencesUtils.java | package com.twopillar.jiba.util;
import android.content.Context;
import android.content.SharedPreferences;
public class PreferencesUtils
{
public static final String PREFERENCES_NAME = "cfg"; // 配置文件名称
/**
* 1.int写入
*
* @param context
* @param key
* @param value
*/
public ... |
openedx/paragon | icons/es5/Unpublished.js | function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
i... |
sweetkristas/anura | src/formula_callable_definition_fwd.hpp | <filename>src/formula_callable_definition_fwd.hpp
/*
Copyright (C) 2003-2013 by <NAME> <<EMAIL>>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
... |
plamenti/DesignPatterns | Factory/src/com/plamenti/factoryMethod/ChicagoPizzaStore.java | <gh_stars>0
package com.plamenti.factoryMethod;
import com.plamenti.factoryMethod.chicagoPizzas.ChicagoStyleCheesePizza;
import com.plamenti.factoryMethod.chicagoPizzas.ChicagoStyleClamPizza;
import com.plamenti.factoryMethod.chicagoPizzas.ChicagoStylePepperoniPizza;
import com.plamenti.factoryMethod.chicagoPizzas.Chi... |
AlexDoumas/BrPong_1 | DoraGamePlaying-m7noskip/basicRunDORA.py | # basicRunDORA.py
# basic functions and core run code for a simple DORA run (i.e., mapping, retrieval, predication, schema induction, whole relation formation).
# Are you being run on an iPhone?
run_on_iphone = False
# imports.
import random, numbers, math, operator, copy, json
import numpy as np
import dataTypes
im... |
vamsi3/IITB-Operating-Systems | Lab Quiz 3/160050064-labquiz3/part1/xv6/sem_test2.c | <filename>Lab Quiz 3/160050064-labquiz3/part1/xv6/sem_test2.c
#include "types.h"
#include "stat.h"
#include "user.h"
#define sem1 0
#define NPROCESS 10
void delay(int ticks)
{
int endtime;
endtime = uptime() + ticks;
while(uptime() < endtime);
}
int main(int argc, char *argv[])
{
sem_init(sem1, 5);
... |
Mario-Kart-Felix/hotkeynet-project | hotkeynet/projects/warmane/constant/credentials.py | # -*- coding: utf-8 -*-
"""
此模块用于枚举所有的账号密码, 避免将敏感信息写入代码, 并安全地在 Hotkeynet 脚本中引用这些
信息.
"""
import json
import typing
import attr
from pathlib_mate import PathCls as Path
from enum import Enum
# put credentials.json file in the git repo root folder
credentials_file = Path(__file__).parent.parent.parent.parent.change(n... |
duely/BuildingGadgets | src/main/java/com/direwolf20/buildinggadgets/common/items/gadgets/ModeGadget.java | package com.direwolf20.buildinggadgets.common.items.gadgets;
import com.direwolf20.buildinggadgets.common.network.packets.PacketRotateMirror.Operation;
import com.direwolf20.buildinggadgets.common.util.GadgetUtils;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecra... |
BortoBoy/jabref2 | src/main/java/org/jabref/model/search/matchers/NotMatcher.java | package org.jabref.model.search.matchers;
import java.util.Objects;
import org.jabref.model.entry.BibEntry;
import org.jabref.model.search.SearchMatcher;
/**
* Inverts the search result.
* <p>
* Example:
* false --> true
* true --> false
*/
public class NotMatcher implements SearchMatcher {
... |
AlirezaIvaz/OneUI-Design-Library | yanndroid/oneui/src/main/java/androidx/reflect/provider/SeslSystemReflector.java | <filename>yanndroid/oneui/src/main/java/androidx/reflect/provider/SeslSystemReflector.java
package androidx.reflect.provider;
import android.os.Build;
import android.provider.Settings;
import androidx.reflect.SeslBaseReflector;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
public class SeslSystem... |
denis-mludek/SupSMS | SupSMS-ejb/src/java/com/supsms/webservice/SmsWebService.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.supsms.webservice;
import com.supsms.entity.Conversation;
import com.supsms.entity.Sms;
import com.supsms.service.Conversa... |
nguyenduylinh0201/tttn | src/Components/Dashboard/TopMenu.js | <reponame>nguyenduylinh0201/tttn
import React from 'react';
import logoutImg from '../../img/logout.svg';
var Boolean = false;
function contentDb(left, width) {
document.querySelector('.menu-dashboard').style.display = left;
for (let i = 0; i < document.getElementsByClassName("content-dashboard").length; i++) {
... |
relwell/cw-app-rewrite | app/containers/AuthHeader/messages.js | /*
* AuthHeader Messages
*
* This contains all the text for the AuthHeader component.
*/
import { defineMessages } from 'react-intl';
export default defineMessages({
header: {
id: 'app.containers.AuthHeader.header',
defaultMessage: 'This is AuthHeader container !',
},
});
|
shinesolutions/cloudmanager-api-clients | clients/scala-finch/generated/src/main/scala/org/openapitools/apis/EnvironmentsApi.scala | package org.openapitools.apis
import java.io._
import org.openapitools._
import org.openapitools.models._
import org.openapitools.models.BadRequestError
import org.openapitools.models.Environment
import org.openapitools.models.EnvironmentList
import org.openapitools.models.EnvironmentLogs
import io.finch.circe._
impor... |
hakkisabah/tsentiment-services | oAuth/controllers/userpanel.js | <filename>oAuth/controllers/userpanel.js
const { getRedis } = require('../helpers/redis')
const logInfo = {
servicename: 'oauth',
file: 'controllers/userpanel.js'
}
exports.userPanel = async (request, response) => {
try {
const userAppToken = await getRedis(`${request.currentAuthData.user_id}_token`)
if ... |
ONSdigital/ledr-dashboard | src/main/app/src/navigation/SubNavigationBar.js | <filename>src/main/app/src/navigation/SubNavigationBar.js
import React, {Component} from 'react'
import {Link, withRouter} from 'react-router-dom';
import {Menu} from "semantic-ui-react";
import {ROUTER_PATH} from "../utils/Constants";
/**
* This class renders the top navigation bar for the application
*/
class SubN... |
DigitEgal/one | src/fireedge/src/client/models/ProvisionTemplate.js | export const isValidProvisionTemplate = ({
defaults,
hosts,
name,
provider,
provision_type: provisionType
}) => {
const providerName = defaults?.provision?.provider_name ?? hosts?.[0]?.provision.provider_name
return !(
providerName === undefined ||
[name, provisionType, provider].includes(undefin... |
guileschool/BEAGLEBONE-tutorials | BBB-firmware/u-boot-v2018.05-rc2/include/configs/MPC8641HPCN.h | /*
* Copyright 2006, 2010-2011 Freescale Semiconductor.
*
* <NAME> (<EMAIL>)
*
* SPDX-License-Identifier: GPL-2.0+
*/
/*
* MPC8641HPCN board configuration file
*
* Make sure you change the MAC address and other network params first,
* search for CONFIG_SERVERIP, etc. in this file.
*/
#ifndef __CONFIG_H
#de... |
l2dy/machg | Classes/FilesView/FSViewerPaneCell.h | <gh_stars>0
//
// FSBrowserCell.h
//
// Copyright (c) 2001-2007, Apple Inc. All rights reserved.
//
// FSBrowserCell knows how to display file system info obtained from an FSNodeInfo object.
//
// Extensively modified by <NAME>.
// Copyright 2010 <NAME>. All rights reserved.
// This software is licensed under the... |
rdkcmf/rdkc-rms | sources/thelib/src/protocols/rawmedia/rawmediaprotocol.cpp | /**
##########################################################################
# If not stated otherwise in this file or this component's LICENSE
# file the following copyright and licenses apply:
#
# Copyright 2019 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... |
tobiasraabe/respy_for_ma | respy/python/simulate/simulate_auxiliary.py | <filename>respy/python/simulate/simulate_auxiliary.py
import copy
import os
import numpy as np
import pandas as pd
from respy.pre_processing.data_checking import check_estimation_dataset
from respy.python.shared.shared_auxiliary import dist_class_attributes
from respy.python.shared.shared_auxiliary import get_conditi... |
visp-streaming/pathfinder | src/test/java/net/knasmueller/pathfinder/unit_tests/RuleBasedNexusTests.java | <gh_stars>1-10
package net.knasmueller.pathfinder.unit_tests;
import net.knasmueller.pathfinder.entities.operator_statistics.SingleOperatorStatistics;
import net.knasmueller.pathfinder.exceptions.InvalidCircuitBreakerTransition;
import net.knasmueller.pathfinder.service.CircuitBreaker;
import net.knasmueller.pathfinde... |
madhuriattarde/Laravel-Book-Service | public/js/NotesController.js | app.controller('NotesController', function($state, $http, $rootScope, $scope,$auth, $filter, $location, $window, $uibModal) {
$scope.noteAdd= $scope.reply = {};
$scope.messages={};
$scope.utcTime = ' UTC';
$scope.submitted = false;
var url = $location.path().split('/');
$scope.quote_id = url[url.length - 1];
... |
mirunix/libelektra | src/libs/tools/include/merging/mergetask.hpp | /**
* @file
*
* @brief Models a merge task
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#ifndef MERGETASK_HPP_
#define MERGETASK_HPP_
#include <kdb.h>
namespace kdb
{
namespace tools
{
namespace merging
{
class MergeKeys
{
public:
const KeySet keys;
const Key parent;
p... |
ifiri/react-spa | assets/scripts/Api/Middlewares/ChunkUploader.js | import RequestFactory from '../RequestFactory';
import RequestExecuter from '../RequestExecuter';
import CommonUtils from '../../Utils/Common';
export default class ChunkUploader {
constructor(request, executer) {
const data = request.params.body;
this.request = request;
this.executer = e... |
xiang12835/JavaLearning | BasicSyntax/src/WuZiQiHuaQiPan.java | public class WuZiQiHuaQiPan {
public static void main(String[] args) {
// 代表不同的角色
int black = 0;
int white = 1;
int empty = 2;
// 不同的角色的不同的棋子字符
char[] qizi = new char[3];
qizi[0] = '●';
qizi[1] = '○';
qizi[2] = ' ';
// 刚刚下好的棋子,用不一样的图形... |
watilde/web-platform-tests | geolocation-API/support.js | <filename>geolocation-API/support.js<gh_stars>0
var geo;
setup(function() {
geo = navigator.geolocation;
}, {explicit_done: true});
// The spec states that an implementation SHOULD acquire user permission before
// beggining the position acquisition steps. If an implementation follows this
// advice, set the follow... |
ScalablyTyped/SlinkyTyped | g/googleapis/src/main/scala/typingsSlinky/googleapis/v33Mod/dfareportingV33/SchemaCrossDimensionReachReportCompatibleFields.scala | <gh_stars>10-100
package typingsSlinky.googleapis.v33Mod.dfareportingV33
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
/**
* Represents fields that are compatible to be sel... |
benja-M-1/homebrew-cask | Casks/aladin.rb | <reponame>benja-M-1/homebrew-cask
cask "aladin" do
version :latest
sha256 :no_check
url "https://aladin.u-strasbg.fr/java/download/Aladin.dmg"
name "Aladin Desktop"
homepage "https://aladin.u-strasbg.fr/AladinDesktop/"
app "Aladin.app"
end
|
yantarou/midonet | nsdb/src/main/java/org/midonet/cluster/backend/zookeeper/SessionUnawareConnectionWatcher.java | <reponame>yantarou/midonet<filename>nsdb/src/main/java/org/midonet/cluster/backend/zookeeper/SessionUnawareConnectionWatcher.java<gh_stars>0
/*
* Copyright 2015 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
evgenyboxer/near-wallet | src/components/common/Disclaimer.js | import React from 'react'
import { Grid } from 'semantic-ui-react'
import { Translate } from 'react-localize-redux'
import styled from 'styled-components'
const DisclaimerGrid = styled(Grid)`
&& .disclaimer {
margin-top: 100px;
border-top: 2px solid #f8f8f8;
> .column {
paddin... |
willroberts/duelyst | app/view/nodes/reward/MysteryCrateNode.js | <reponame>willroberts/duelyst
//pragma PKGS: mystery_crate_node
var CONFIG = require("app/common/config");
var EventBus = require('app/common/eventbus');
var EVENTS = require('app/common/event_types');
var RSX = require("app/data/resources");
var PKGS = require("app/data/packages");
var BaseSprite = require('app/view/... |
MaceM8/validarium | packages/intl/src/utils/unlessIsNil.js | import { unless, isNil } from 'ramda';
export default unless(isNil);
|
tbepler/JProbe | src/jprobe/services/Debug.java | <filename>src/jprobe/services/Debug.java
package jprobe.services;
public enum Debug {
OFF,
LOG,
FULL;
private static volatile Debug debugLevel;
public static void setLevel(Debug level){
Debug.debugLevel = level;
}
public static Debug getLevel(){
return debugLevel;
}
public static Debug fromString(... |
std-freejia/hymni.study | Code/20200824_Hide_and_Seek_LDH.c | <reponame>std-freejia/hymni.study
#include <stdio.h>
int main(int argc, char* argv[], char* env[])
{
int positionOfSubin = 0; //수빈의 위치
int positionOfSister = 0; //동생의 위치
int Q[250000] = {0, };
int visit[100001] = {0, };
int front = -1;
int back = -1;
int d[100001] = {0, };
//수빈 위치, 동생 위치 입력 받음
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.