repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
ivan-kyosev-gs/legend-engine | legend-engine-executionPlan-execution/src/main/java/org/finos/legend/engine/plan/execution/result/json/JsonStreamingResult.java | // Copyright 2020 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writ... |
stinsonga/geo-prime-workspace | work/exampleLvDP.js | <gh_stars>0
function my_function335(){
//02134417749050445973843731917364iQnevdGdztTkeYNsnecfHtHYefkMRLwa
}
function my_function582(){
//22082324650280060759547568446288sDzocWxGbdBrrmPkwEPnhTaApdHPANoU
}
function my_function277(){
//17965697719055740664321442004531xnKaUipPSarjFsZpzwTNHxLKtOosyPGh
}
function my_funct... |
fruitboy1226/cli-bak | vendor/github.com/containerd/continuity/syscallx/syscall_windows.go | <filename>vendor/github.com/containerd/continuity/syscallx/syscall_windows.go<gh_stars>100-1000
package syscallx
import (
"syscall"
"unsafe"
)
type reparseDataBuffer struct {
ReparseTag uint32
ReparseDataLength uint16
Reserved uint16
// GenericReparseBuffer
reparseBuffer byte
}
type mountPoin... |
zraees/sms-project | client/src/app/routes/ui/containers/icons/FlagIcons.js | import React from 'react'
import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../../components'
export default class FlagIcons extends React.Component {
state = {
search: ''
}
shouldComponentUpdate(nextProps, nextState) {
if (this.state.search != nextState.search) {
let $contain... |
ducnm98/howdyapp | src/components/SpeakingMatchingItem/SpeakingMatchingItem.js | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import withStyles from 'isom... |
ABinLin/framework-boot | framework-boot-util/src/main/java/com/farerboy/framework/boot/util/encryption/Md5Util.java | <reponame>ABinLin/framework-boot
package com.farerboy.framework.boot.util.encryption;
import com.farerboy.framework.boot.util.AssertUtil;
import com.farerboy.framework.boot.util.ByteUtil;
import com.farerboy.framework.boot.util.encryption.exception.EncryptionException;
import javax.crypto.KeyGenerator;
import javax.cr... |
agnesnatasya/Be-Tree | server/main.cpp | // -*- mode: c++; c-file-style: "k&r"; c-basic-offset: 4 -*-
#include <pthread.h>
#include <sched.h>
#include <cstdlib>
#include <iostream>
#include <thread>
#include <csignal>
#include <numa.h>
#include "network/configuration.hpp"
#include "network/fasttransport.hpp"
#include "common/gflags.hpp"
#include "storage_ser... |
meashishsaini/BOW | docs/html/search/functions_4.js | var searchData=
[
['dataresetter',['DataResetter',['../_b_o_w-a_01film_01guessing_01game_8cpp.html#a48d94754ebff71d662296b454681612f',1,'BOW-a film guessing game.cpp']]],
['datasorter',['DataSorter',['../_b_o_w-a_01film_01guessing_01game_8cpp.html#a844b65907b85d1b68843603a3d530f46',1,'BOW-a film guessing game.cpp']... |
pulumi/pulumi-mongodbatlas | sdk/go/mongodbatlas/getLdapVerify.go | // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package mongodbatlas
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// `LdapVerify` describes a LDAP Verify.
//
// > **NOTE:** Groups and... |
scbedd/azure-sdk-for-node | lib/services/batchaiManagement/lib/models/nodeSetup.js | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
YegorKozlov/acs-aem-commons | bundle/src/test/java/com/adobe/acs/commons/remoteassets/impl/RemoteAssetsTestUtil.java | /*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2019 Adobe
* %%
* 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... |
therealjgrant/frontity | packages/connect/src/connect.js | <reponame>therealjgrant/frontity
import {
useState,
useEffect,
useMemo,
memo,
useRef,
createContext,
useContext,
} from "react";
import { warn } from "@frontity/error";
import { observe, unobserve } from "@frontity/observer-util";
const COMPONENT = Symbol("owner component");
/**
* A React context that ... |
william-xian/rap | src/mail/rap_mail_ssl_module.c |
/*
* Copyright (C) <NAME>
* Copyright (C) Rap, Inc.
*/
#include <rap_config.h>
#include <rap_core.h>
#include <rap_mail.h>
#define RAP_DEFAULT_CIPHERS "HIGH:!aNULL:!MD5"
#define RAP_DEFAULT_ECDH_CURVE "auto"
static void *rap_mail_ssl_create_conf(rap_conf_t *cf);
static char *rap_mail_ssl_merge_conf(rap_c... |
ZhuoZhuoCrayon/AcousticKeyBoard-Web | apps/keyboard/handler/common.py | <filename>apps/keyboard/handler/common.py
# -*- coding: utf-8 -*-
import logging
from typing import Any, Dict, List
from celery.result import AsyncResult
from django.utils.translation import ugettext_lazy as _
from djangocli.constants import LogModule
logger = logging.getLogger(LogModule.APPS)
class CommonHandler:... |
gustavo-mendel/my-college-projects | accs-programacao-basica/lista5/E6.cpp | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int mat[n][n];
for (int i=0; i<n; i++) {
for (int j=0; j<n; j++) {
cin >> mat[i][j];
}
}
int harry = 0, rony = 0;
int x, y;
cin >> x >> y;
for (int i=0; i<n; i++) {
harr... |
gauravl612/Insights | PlatformService/src/main/java/com/cognizant/devops/platformservice/rest/querycaching/service/QueryCachingConstants.java | <reponame>gauravl612/Insights<filename>PlatformService/src/main/java/com/cognizant/devops/platformservice/rest/querycaching/service/QueryCachingConstants.java
/*******************************************************************************
* Copyright 2017 Cognizant Technology Solutions
*
* Licensed under the Apach... |
ShapeShiftOS-WIP/android_build_soong | ui/build/ninja.go | <gh_stars>1-10
// Copyright 2017 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless require... |
djeada/Nauka-programowania | src/JavaScript/02_Instrukcje_sterujace/Zad5.js | <gh_stars>1-10
var Main = /** @class */ (function() {
function Main() {}
Main.main = function(args) {
console.info("podaj trzy liczby:");
var rl = require('readline-sync');
var a = rl.question('');
var b = rl.question('');
var c = rl.question('');
if (a >=... |
rccarper/aws-sdk-java-v2 | codegen/src/main/java/software/amazon/awssdk/codegen/poet/model/AbstractMemberSetters.java | <filename>codegen/src/main/java/software/amazon/awssdk/codegen/poet/model/AbstractMemberSetters.java
/*
* Copyright 2010-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... |
hirokiuedaRcast/karkinos | src/main/java/jp/ac/utokyo/karkinos/noisefilter/AFDepthMatrix.java | /*
Copyright <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 writing, software
distributed u... |
meghabh/twu-biblioteca-megha | src/main/java/com/twu/menuoptions/CheckedOutItems.java | package com.twu.menuoptions;
import com.twu.biblioteca.UserAuthentication;
import com.twu.biblioteca.Output;
import com.twu.biblioteca.Repository;
import com.twu.io.InputReader;
import java.util.ArrayList;
import java.util.List;
public class CheckedOutItems implements MenuOptions {
private String type;
priv... |
zhangyu345293721/leetcode | src/leetcodejava/tree/HouseRobber337.java | package leetcodejava.tree;
import org.junit.Assert;
import org.junit.Test;
/**
* This is the solution of No. 337 problem in the LeetCode,
* the website of the problem is as follow:
* https://leetcode-cn.com/problems/house-robber-iii
* <p>
* The description of problem is as follow:
* ============================... |
pablosjv/aco-spark | src/main/scala/org/chocosolver/solver/search/loop/move/MoveLearnBinaryTDR.java | <filename>src/main/scala/org/chocosolver/solver/search/loop/move/MoveLearnBinaryTDR.java
/**
* This file is part of choco-solver, http://choco-solver.org/
*
* Copyright (c) 2017, IMT Atlantique. All rights reserved.
*
* Licensed under the BSD 4-clause license.
* See LICENSE file in the project root for full licen... |
openid-certification/-conformance-suite | src/main/java/net/openid/conformance/openid/client/logout/OIDCCClientTestRPInitLogout.java | <filename>src/main/java/net/openid/conformance/openid/client/logout/OIDCCClientTestRPInitLogout.java
package net.openid.conformance.openid.client.logout;
import com.google.common.base.Strings;
import net.openid.conformance.condition.as.logout.EnsureClientHasAtLeastOneOfBackOrFrontChannelLogoutUri;
import net.openid.co... |
Maxul/sgx_vmx_protocol | Sandbox/qemu-sgx-master/slirp/tftp.h | /* tftp defines */
#ifndef SLIRP_TFTP_H
#define SLIRP_TFTP_H
#define TFTP_SESSIONS_MAX 20
#define TFTP_SERVER 69
#define TFTP_RRQ 1
#define TFTP_WRQ 2
#define TFTP_DATA 3
#define TFTP_ACK 4
#define TFTP_ERROR 5
#define TFTP_OACK 6
#define TFTP_FILENAME_MAX 512
struct tftp_t {
struct udphdr udp;
... |
TR-API-Samples/Example.EMA.Java.ValueAddObjects | src/com/refinitiv/platformservices/rt/objects/data/OmmTimeImpl.java | /*
* Copyright 2021 Refinitiv
*
* DISCLAIMER: This source code has been written by Refinitiv for the only
* purpose of illustrating articles published on the Refinitiv Developer
* Community. It has not been tested for usage in production environments.
* Refinitiv cannot be held responsible for any issues that ... |
devibizsys/unip | app_app_pub/src/main/webapp/app/js/wf/WFUserAssistEditView2Controller.js | var WFUserAssistEditView2Controller = WFUserAssistEditView2ControllerBase.extend({}); |
Simcon/dotNetify | _archive/src/react/dotnetify-react.scope.js | /*
Copyright 2017 <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 writing, software
distri... |
TISparta/competitive-programming-solutions | UVa/Competitive_Programming_Exercises/03-Problem_Solving_Paradigms/03-Greedy/01-Classical_Usually_Easier/01193.cpp | <filename>UVa/Competitive_Programming_Exercises/03-Problem_Solving_Paradigms/03-Greedy/01-Classical_Usually_Easier/01193.cpp
#include <bits/stdc++.h>
#define SIZE 1010
using namespace std;
int n, d, ans, tc, j, x, y;
pair <double, double> v[SIZE];
bool check;
double dx;
int main(){
while(scanf("%d %d", &n, &d), ... |
ant0ine/phantomjs | src/qt/src/3rdparty/webkit/Source/WebCore/svg/SVGFETileElement.cpp | <gh_stars>10-100
/*
* Copyright (C) 2004, 2005, 2007 <NAME> <<EMAIL>>
* Copyright (C) 2004, 2005 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* versio... |
lastweek/source-freebsd | src/share/examples/tests/tests/plain/printf_test.c | /* $FreeBSD$ */
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright 2013 Google 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 re... |
yangfancoming/mockito | src/main/java/org/mockito/invocation/Location.java |
package org.mockito.invocation;
import org.mockito.NotExtensible;
/**
* Describes the location of something in the source code.
*/
@NotExtensible
public interface Location {
/**
* Human readable location in the source code, see {@link Invocation#getLocation()}
*
* @return location
*/
S... |
taolinqu/ds4p | DS4P/access-control-service/common-library/src/main/java/org/hl7/v3/ActRelationshipHasComponent.java | package org.hl7.v3;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
@XmlType(name="ActRelationshipHasComponent")
@XmlEnum
public enum ActRelationshipHasComponent
{
COMP,
ARR,
CTRLV,
DEP;
public String value() {
return name();
}
public static ActRelationshipHa... |
AlexGuti14/harvesting-tfg | harvesting-dashboard/frontend/src/backend/cereal.js | <reponame>AlexGuti14/harvesting-tfg<filename>harvesting-dashboard/frontend/src/backend/cereal.js
import {doGet} from "./common";
function getCerealData(params, callback){
//console.log("### GetHistoryData", params);
doGet("/cereal/aggregate", params, callback)
}
function getCerealMarkets(params, callback){
doG... |
rreusser/demos | regl-sketches/src/012/invert-camera.js | const invert = require('gl-mat4/invert');
module.exports = function (regl) {
let m1 = [];
let m2 = [];
return regl({
uniforms: {
iview: ctx => invert(m1, ctx.view),
iproj: ctx => invert(m2, ctx.projection),
}
});
}
|
OAGi/Score | score-http/score-repo/src/main/java/org/oagi/score/repo/api/impl/jooq/entity/tables/Bcc.java | <reponame>OAGi/Score
/*
* This file is generated by jOOQ.
*/
package org.oagi.score.repo.api.impl.jooq.entity.tables;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Index;
import org.jooq.N... |
chrismattmann/oodt | xmlquery/src/main/java/org/apache/oodt/xmlquery/CompressedObjectCodec.java | <filename>xmlquery/src/main/java/org/apache/oodt/xmlquery/CompressedObjectCodec.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 license... |
zealoussnow/chromium | chrome/browser/ui/views/media_router/web_contents_display_observer_view_unittest.cc | <reponame>zealoussnow/chromium
// Copyright 2018 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 <memory>
#include <utility>
#include "base/bind.h"
#include "chrome/browser/ui/views/media_router/web_contents_di... |
Watch-Later/REDM | DmMain/src/Core/Event/DMEventMgr.cpp | <gh_stars>10-100
#include "DmMainAfx.h"
#include "DMEventMgr.h"
namespace DM
{
DMEventItem::DMEventItem(DWORD dwEventID):m_dwEventID(dwEventID)
{
}
DMEventItem::~DMEventItem()
{
for (UINT i=0; i<m_EvtSlots.GetCount(); i++)
{
delete m_EvtSlots[i];
}
m_EvtSlots.RemoveAll();
}
bool DMEventItem::Subs... |
DongerZone/o3de | Gems/ScriptCanvas/Code/Include/ScriptCanvas/Libraries/Core/CoreNodes.cpp | <gh_stars>1-10
/*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "CoreNodes.h"
#include <Data/DataMacros.h>
#include <Data/DataTrait.h>
#inc... |
giantchen2012/poplibs | tests/popsolver/Sum.cpp | <filename>tests/popsolver/Sum.cpp
// Copyright (c) 2018 Graphcore Ltd. All rights reserved.
#include "Constraint.hpp"
#include "Scheduler.hpp"
#include <memory>
#define BOOST_TEST_MODULE Sum
#include <boost/test/unit_test.hpp>
using namespace popsolver;
BOOST_AUTO_TEST_CASE(PropagateNoChange) {
Variable a(0), b(1),... |
ecrc/bemfmm | include/fmm/partition.h | <reponame>ecrc/bemfmm<filename>include/fmm/partition.h
#ifndef partition_h
#define partition_h
#include "logger.h"
#include "sort.h"
#include "hilbert_key.h"
#if EXAFMM_USE_PARMETIS
#include "parmetis_wrapper.h"
#endif
#include <numeric>
namespace exafmm {
//! Handles all the partitioning of domains
class Partition {
... |
fraunhofer-iais/IAIS-Python-Snippets | Data/Transform/Set timestamp as index.py | # Set timestamp as index
format = '%Y-%m-%d %H:%M:%S.%f'
data['time'] = pd.to_datetime(data['time'], format=format)
data = data.set_index(['time'])
data = data.sort_index() |
Ken-Utsunomiya/SnackTrack-Server | src/suggestion/controller.js | <filename>src/suggestion/controller.js
import { db } from '../db/index.js'
import { errorCode } from '../util/error.js'
const Suggestions = db.suggestions
const Users = db.users
export const addSuggestion = async (req, res) => {
try {
const suggestion = req.body
const userId = suggestion.suggested_by
co... |
PKUfudawei/cmssw | HLTrigger/Configuration/python/HLT_75e33/modules/hltParticleFlowSuperClusterECALL1Seeded_cfi.py | <gh_stars>1-10
import FWCore.ParameterSet.Config as cms
hltParticleFlowSuperClusterECALL1Seeded = cms.EDProducer("PFECALSuperClusterProducer",
BeamSpot = cms.InputTag("hltOnlineBeamSpot"),
ClusteringType = cms.string('Mustache'),
ESAssociation = cms.InputTag("hltParticleFlowClusterECALL1Seeded"),
Energ... |
theodi/office-calendar | features/support/vcr.rb | <filename>features/support/vcr.rb
require 'vcr'
require 'webmock/cucumber'
VCR.configure do |c|
# Automatically filter all secure details that are stored in the environment
ignore_env = %w{SHLVL RUNLEVEL GUARD_NOTIFY DRB COLUMNS USER LOGNAME LINES}
(ENV.keys-ignore_env).select{|x| x =~ /\A[A-Z_]*\Z/}.each do |ke... |
networkmodeling/V2X-Hub | src/tmx/Asn_J2735/include/asn_j2735_r41/BrakeSystemStatus.h | /*
* Generated by asn1c-0.9.27 (http://lionet.info/asn1c)
* From ASN.1 module "DSRC"
* found in "../J2735_R41_Source_mod.ASN"
* `asn1c -gen-PER -fcompound-names -fincludes-quoted`
*/
#ifndef _BrakeSystemStatus_H_
#define _BrakeSystemStatus_H_
#include "asn_application.h"
/* Including external dependencies */... |
schroedinger-survey/frontend | src/components/submissions/SubmissionSpotlight.js | <filename>src/components/submissions/SubmissionSpotlight.js
import React, {useEffect, useState} from "react";
import {sortQuestions} from "../utils/SortQuestions";
import SubmissionAPIHandler from "../../calls/submission";
import {createPaginationMarker} from "../utils/PageMarker";
import {EuropeanTime} from "../utils/... |
MayBeDied/a2web | Monitor-framework/src/main/java/com/monitor/framework/query/entity/BeforeInit.java | package com.monitor.framework.query.entity;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.digester3.annotations.rules.ObjectCreate;
import org.apache.commons.digester3.annotations.rules.SetNext;
@ObjectCreate(pattern="queryContext/query/beforeInit")
public class BeforeInit {
List<Befo... |
SamanFekri/BookRecommendation | puresvd.py | from sklearn.utils.extmath import randomized_svd
import scipy.sparse as sps
import numpy as np
class PureSVDRecommender():
""" PureSVDRecommender"""
RECOMMENDER_NAME = "PureSVDRecommender"
def __init__(self, verbose=True):
self.URM_train = None
self.USER_factors = None
self.ITEM_... |
WargulWB/javaExampleProject | src/main/java/jep/example/general/lambda/LambdaExpressionExample.java | package jep.example.general.lambda;
import java.util.Comparator;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.stream.Collectors;
import jep.example... |
tkwtokyo/ThinMP_Android | app/src/main/java/tokyo/tkw/thinmp/listener/PlaylistDialogClickListener.java | <reponame>tkwtokyo/ThinMP_Android
package tokyo.tkw.thinmp.listener;
import android.app.Activity;
import android.view.View;
import androidx.appcompat.app.AlertDialog;
import tokyo.tkw.thinmp.music.Music;
import tokyo.tkw.thinmp.register.add.PlaylistAdder;
public class PlaylistDialogClickListener implements View.OnC... |
TeamSPoon/CYC_JRTL_with_CommonLisp_OLD | platform/lib/all-deps/com/cyc/webservice/client/api/url/QueryApiURLs.java | package com.cyc.webservice.client.api.url;
import com.cyc.cat.common.url.BaseURLStringLibrary;
import com.cyc.cat.common.url.URLString;
import com.cyc.cat.common.url.URLString.Parameter;
import com.cyc.cat.common.url.URLString.Protocol;
import java.io.Serializable;
/**
*
* @author nwinant
*/
public class QueryApiU... |
18730298725/aliyun-openapi-java-sdk | aliyun-java-sdk-oos/src/main/java/com/aliyuncs/oos/transform/v20190601/CreateSecretParameterResponseUnmarshaller.java | <reponame>18730298725/aliyun-openapi-java-sdk<gh_stars>0
/*
* 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 applicab... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.