repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
nurcahyaari/Kite | src/domain/generator/appnew.go | package generator
import (
"errors"
"fmt"
"go/parser"
"github.com/nurcahyaari/kite/infrastructure/database"
"github.com/nurcahyaari/kite/internal/templates/misctemplate"
"github.com/nurcahyaari/kite/internal/utils"
"github.com/nurcahyaari/kite/internal/utils/ast"
"github.com/nurcahyaari/kite/internal/utils/pk... |
object-oriented-human/competitive | HackerRank/C++/cpp-lower-bound.cpp | <filename>HackerRank/C++/cpp-lower-bound.cpp<gh_stars>1-10
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int n, q, y; cin >> n;
vector<int> v(n);
for (int i = 0; i < n; i++) {
cin >> v[i];
}
cin >... |
juitem/ONE | compiler/luci/pass/src/SubstituteSplitVToSplitPass.cpp | /*
* Copyright (c) 2021 Samsung Electronics Co., Ltd. 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... |
harishsharma/junk | src/main/java/hackerrank/CutTree.java | package hackerrank;
/**
* https://www.hackerrank.com/challenges/cuttree
*
* @author harish.sharma
*
*/
public class CutTree {
}
|
shopstic/chopsticks | chopsticks-sample/src/main/scala/dev/chopsticks/sample/kvdb/MultiBackendSampleDb.scala | package dev.chopsticks.sample.kvdb
import java.time.Instant
import dev.chopsticks.kvdb.{ColumnFamilySet, KvdbDefinition, KvdbMaterialization}
import dev.chopsticks.kvdb.api.KvdbDatabaseApi
import dev.chopsticks.kvdb.codec.ValueSerdes
import dev.chopsticks.kvdb.fdb.FdbMaterialization
import dev.chopsticks.kvdb.fdb.Fdb... |
shettyh/azure-sdk-for-java | sdk/keyvault/azure-keyvault-keys/src/main/java/com/azure/security/keyvault/keys/cryptography/CryptographyAsyncClient.java | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.security.keyvault.keys.cryptography;
import com.azure.core.exception.HttpResponseException;
import com.azure.core.exception.ResourceNotFoundException;
import com.azure.core.http.HttpPipeline;
import com.a... |
xlf999/AdsDemo | MobGiAdSDK/AggregationSDK/NativeAds/NativeAdDetailsInfo.h | <filename>MobGiAdSDK/AggregationSDK/NativeAds/NativeAdDetailsInfo.h
//
// NativeAdDetailsInfo.h
// NativePolymerization
//
// Created by alan.xia on 2018/1/18.
// Copyright © 2018年 com.idreamsky. All rights reserved.
//
/*该类用于展示的时候传入一些属性设置*/
#import <Foundation/Foundation.h>
@interface NativeAdDetailsInfo : NSOb... |
woohoou/aws-sdk-cpp | aws-cpp-sdk-glue/include/aws/glue/model/Classifier.h | <gh_stars>1-10
/*
* Copyright 2010-2017 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 is located at
*
* http://aws.amazon.com/apache2.0
*
* or in th... |
liufangqi/hudi | hudi-common/src/main/java/org/apache/hudi/common/table/timeline/dto/FileSliceDTO.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 ... |
walesey/go-bundle | generator/test/input13_output.js | var i = React.createElement("div", null);
var j = React.createElement("div", {
prop: "value"
});
var Message = React.createElement(Hello, {
name: "World"
});
React.createElement("div", null);
React.createElement("div", null, "Hello");
React.createElement("div", null, React.createElement("div", null));
|
alwyn/intellij-community | python/educational-core/src/com/jetbrains/edu/learning/core/EduAnswerPlaceholderPainter.java | <gh_stars>0
package com.jetbrains.edu.learning.core;
import com.intellij.openapi.editor.Document;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.RangeMarker;
import com.intellij.openapi.editor.colors.EditorColors;
import com.intellij.openapi.editor.colors.EditorColorsManager;
import com.... |
RexTremendaeMajestatis/QREAL | qrmc/classes/type.h | <filename>qrmc/classes/type.h
/* Copyright 2007-2016 QReal Research Group, <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
*
... |
RollingSoftware/L2J_HighFive_Hardcore | l2j_datapack/dist/game/data/scripts/quests/Q00284_MuertosFeather/Q00284_MuertosFeather.java | <reponame>RollingSoftware/L2J_HighFive_Hardcore
/*
* Copyright (C) 2004-2016 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack 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... |
zeyuanxy/LeetCode | vol5/add-and-search-word-data-structure-design/add-and-search-word-data-structure-design.cpp | <reponame>zeyuanxy/LeetCode<gh_stars>1-10
/*
* @Author: <NAME>
* @Date: 2015-11-05 00:18:39
* @Last Modified by: <NAME>
* @Last Modified time: 2015-11-05 00:18:57
*/
class TrieNode {
public:
// Initialize your data structure here.
TrieNode() : children(26, NULL), isWord(false) {
}
vector<TrieNode*... |
AlexWayfer/sentry | tests/sentry/web/frontend/test_unsubscribe_issue_notifications.py | from __future__ import absolute_import
from sentry.testutils import TestCase
from sentry.models import GroupSubscription
from sentry.utils.linksign import generate_signed_link
class UnsubscribeIssueNotificationsTest(TestCase):
def test_renders(self):
group = self.create_group()
path = generate_s... |
bitbrain/beansjam-2017 | core/src/tv/rocketbeans/supermafiosi/minigame/roulette/RouletteMiniGame.java | package tv.rocketbeans.supermafiosi.minigame.roulette;
import java.util.ArrayList;
import java.util.List;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.utils.Align;
import aurelienribon.tw... |
jingcao80/Elastos | Sources/Elastos/Packages/Apps/Settings/inc/elastos/droid/settings/deviceinfo/CMiscFilesHandler.h | <filename>Sources/Elastos/Packages/Apps/Settings/inc/elastos/droid/settings/deviceinfo/CMiscFilesHandler.h
//=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may no... |
Aimee-MacDonald/blauw | src/tests/components/controls/Toolbox.test.js | <reponame>Aimee-MacDonald/blauw<filename>src/tests/components/controls/Toolbox.test.js<gh_stars>0
import React from 'react'
import {shallow} from 'enzyme'
import {Toolbox} from '../../../components/controls/Toolbox'
test('Render closed Toolbox', () => {
const navigation = {
"bookingSheet":true,
"checkout":f... |
joschock/mu_plus | MsGraphicsPkg/MsEarlyGraphics/MsEarlyGraphicsCommon.c | <reponame>joschock/mu_plus
/** @file
These routines are common between Pei and Dxe versions of MsEarlyGraphics.
Copyright (c) 2016 - 2018, Microsoft Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following co... |
sleyzerzon/soar | Documentation/ManualSource/wikicmd/MoinMoin/parser/text_creole.py | <gh_stars>1-10
# -*- coding: iso-8859-1 -*-
"""
MoinMoin - Creole wiki markup parser
See http://wikicreole.org/ for latest specs.
Notes:
* No markup allowed in headings.
Creole 1.0 does not require us to support this.
* No markup allowed in table headings.
Creole 1.0 does not require u... |
melodyyangaws/arc | src/test/scala/ai/tripl/arc/validate/SQLValidateSuite.scala | <gh_stars>100-1000
package ai.tripl.arc
import java.net.URI
import org.scalatest.FunSuite
import org.scalatest.BeforeAndAfter
import org.apache.commons.io.FileUtils
import org.apache.commons.io.IOUtils
import org.apache.spark.sql._
import org.apache.spark.sql.functions._
import ai.tripl.arc.api._
import ai.tripl.ar... |
cohadar/codereplicator | src/cohadar/tools/replicator/engine/CompositeAlgorithm.java | package cohadar.tools.replicator.engine;
import java.util.regex.Pattern;
/**
* call order:
* setSmartList
* setVerbatimList
* */
public class CompositeAlgorithm extends Composite {
protected final int MAX_SEPARATOR_LENGTH = 5;
protected String[] smartList;
protected String[] verbatimList;
protected Patte... |
ryandesign/yap | packages/myddas/myddas_initialization.c | <filename>packages/myddas/myddas_initialization.c
#include <stdio.h>
#include <stdlib.h>
#include "Yap.h"
#include "myddas.h"
#ifdef MYDDAS_STATS
#include "myddas_statistics.h"
#endif
MYDDAS_GLOBAL
myddas_init_initialize_myddas(void) {
MYDDAS_GLOBAL global = NULL;
/* We cannot call MYDDAS_MALLOC were because the... |
nistefan/cmssw | DataFormats/EcalDetId/src/ESDetId.cc | #include "DataFormats/EcalDetId/interface/ESDetId.h"
#include "FWCore/Utilities/interface/Exception.h"
#include <ostream>
void ESDetId::verify( int strip,
int ixs,
int iys,
int plane,
int iz )
{
if( !validDetId( strip, ixs, iys, plane, iz) )
... |
copasi/copasi-dependencies | src/libSBML/src/sbml/packages/render/util/RenderUtilities.h | <filename>src/libSBML/src/sbml/packages/render/util/RenderUtilities.h
/**
* @file RenderUtilities.h
* @brief Definition of RenderUtilities, a class of utility functions for the render package
* @author <NAME>
*
*<!---------------------------------------------------------------------------
* This file is par... |
flyingkraken/telebook-frontend | src/config/environment.dev.js | <reponame>flyingkraken/telebook-frontend<filename>src/config/environment.dev.js
export const environment = {
firebase: {
apiKey: "<KEY>",
authDomain: "telebook-107e4.firebaseapp.com",
databaseURL: "https://telebook-107e4.firebaseio.com",
projectId: "telebook-107e4",
storageBucket: "telebook-... |
Cregrant/SmaliScissors | patcher/src/main/java/com/github/cregrant/smaliscissors/engine/Regex.java | package com.github.cregrant.smaliscissors.engine;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
class Regex {
static ArrayList<String> matchMultiLines(Pattern readyPattern, CharSequence content, String mode) {
Matcher matcher = readyPa... |
Pixelated-Project/aosp-android-jar | android-31/src/com/android/internal/os/MemoryPowerCalculator.java | package com.android.internal.os;
import android.os.BatteryConsumer;
import android.os.BatteryStats;
import android.os.BatteryUsageStats;
import android.os.BatteryUsageStatsQuery;
import android.os.UserHandle;
import android.util.LongSparseArray;
import android.util.SparseArray;
import java.util.List;
public class Me... |
AdilIqbal95/Career_App | react-client/src/temp_data.js | <gh_stars>0
const data = [
{
Company: "Noodles4Poodles Inc.",
Role: "Junior Noodle Farmer",
Description: "We need somone to farm noodles for poodles with 5 years noodle consumption experience and Owns a poodle"
},
{
Company: "HungryFor.app.les",
Role: "Frontend Developer",
Description: ... |
yuanboshe/Nebula | src/actor/context/Context.cpp | /*******************************************************************************
* Project: Nebula
* @file Context.cpp
* @brief
* @author Bwar
* @date: 2019年2月16日
* @note
* Modify history:
******************************************************************************/
#include "Context.hpp"
namespa... |
haohaibo/learn | C++/Cpp-Concurrency-in-Action/listing_7.19.cpp | template <typename T>
class lock_free_queue {
private:
static void free_external_counter(counted_node_ptr& old_node_ptr) {
node* const ptr = old_node_ptr.ptr;
int const count_increase = old_node_ptr.external_count - 2;
node_counter old_counter = ptr->count.load(std::memory_order_relaxed);
node_counte... |
ht1131589588/react-ssr | client/index.js | import React from 'react'
import ReactDom from 'react-dom'
import { BrowserRouter, Route, Switch } from 'react-router-dom'
import { Provider } from 'react-redux'
import routes from '../src/App'
import Header from '../src/components/Header'
import { getClientStore } from '../src/store'
const Root = (
<Provider store=... |
seedhartha/revan | src/scene/node.h | /*
* Copyright (c) 2020-2022 The reone project contributors
*
* 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 3 of the License, or
* (at your option) any later version.
*
... |
iamhi/on-path-fe | externalcontent.config.js | module.exports = {
source: "http://localhost:3002/public/hi-zone-fe/content/",
destination: './dist/assets/content/',
files: [
{
filename: "about-content.json",
},
{
filename: "application-content.json",
},
{
filename: "current-focus-content.json",
},
{
filename: "social-media-content.json"... |
IsraelyFlightSimulator/Negev-Storm | SOURCES/ui/include/te_include.h | #define TACTICAL_GROUP 3000
|
XYGDeveloper/GlobalFrog | Common/Global/CZCountDownView.h | <reponame>XYGDeveloper/GlobalFrog
//
// CZCountDownView.h
// countDownDemo
//
// Created by 孔凡列 on 15/12/9.
// Copyright © 2015年 czebd. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void(^TimerStopBlock)();
@interface CZCountDownView : UIView
// 时间戳
@property (nonatomic,assign)NSInteger timestamp;
// 背... |
hugmyndakassi/ghidra-kaiju | src/main/java/kaiju/tools/ghihorn/display/GhiHornController.java | <filename>src/main/java/kaiju/tools/ghihorn/display/GhiHornController.java
package kaiju.tools.ghihorn.display;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.beans.PropertyChangeEvent;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
... |
kyowill/hbase-0.1 | src/java/org/apache/hadoop/hbase/hql/generated/HQLParserTokenManager.java | /* Generated By:JavaCC: Do not edit this line. HQLParserTokenManager.java */
package org.apache.hadoop.hbase.hql.generated;
/**
* Copyright 2007 The Apache Software Foundation
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed... |
messyKassaye/my_stock | resources/js/auth/company/components/company/CompanyHome.js | <gh_stars>0
import React,{useEffect,useState} from 'react'
import {useDispatch,useSelector} from 'react-redux'
import HorizontalLoader from '../../../../loaders/HorizontalLoader'
import {index} from '../../../../state/AppAction'
import CompanyStyle from './styles/CompanyStyle'
import CompanyRegistration from './forms/R... |
joba-sprd/rAppid.js | js/lib/flow.js | /*!
* flow.js JavaScript Library v0.2.5
* https://github.com/it-ony/flow.js
*
* Copyright 2012, <NAME>
* Licensed under the MIT license.
* https://raw.github.com/it-ony/flow.js/master/LICENSE
*
* Date: Mon Mar 12 2012 12:36:34 GMT+0100 (CET)
*/
(function (exports) {
"use strict";
var Flow = function (... |
stackrox/stackrox | ui/apps/platform/src/reducers/network/backend.js | import { combineReducers } from 'redux';
import isEqual from 'lodash/isEqual';
import { createFetchingActionTypes, createFetchingActions } from 'utils/fetchingReduxRoutines';
// Action types
export const types = {
FETCH_NETWORK_POLICY_GRAPH: createFetchingActionTypes('network/FETCH_NETWORK_POLICY_GRAPH'),
FET... |
etirelli/kie-wb-common | kie-wb-common-screens/kie-wb-common-default-editor/kie-wb-common-default-editor-client/src/test/java/org/kie/workbench/common/screens/defaulteditor/client/editor/NewFileUploaderTest.java | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* 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 ap... |
Mararok/EpicWar | src/main/com/mararok/epicwar/command/ListWarCommand.java | /**
* EpicWar
* The MIT License
* Copyright (C) 2015 Mararok <<EMAIL>>
*/
package com.mararok.epicwar.command;
import java.util.Collection;
import org.bukkit.command.CommandSender;
import com.mararok.epiccore.command.CommandArguments;
import com.mararok.epiccore.command.CommandMetadata;
import com.mararok.epicco... |
pooyaww/Vivado_HLS_Samples | Adaptive_Filter/vhls/step2/lms_filter.h | <reponame>pooyaww/Vivado_HLS_Samples
#ifndef LMS_FILTER_H
#define LMS_FILTER_H
// Includes
#include "adaptive_filter.h"
class lms_filter: public adaptive_filter
{
protected:
virtual void update_coefs(short* coefs, short* noise_buf, short step_size, short err);
public:
lms_filter();
~lms_filter();
};
#end... |
ks8/conformation | conformation/null_model.py | """ Null model for predicting pairwise distances based on minimum path length between pairs of atoms. """
import itertools
import json
from logging import Logger
import matplotlib.pyplot as plt
import numpy as np
import os
import pickle
# noinspection PyUnresolvedReferences
from rdkit import Chem
# noinspec... |
randmonkey/kpaas | pkg/service/api/v1/helm/export_release.go | // Copyright 2019 Shanghai JingDuo Information Technology co., 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 copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requi... |
hbarsnes/compomics-utilities | src/main/java/com/compomics/util/gui/parameters/proteowizard/MsConvertParametersDialog.java | package com.compomics.util.gui.parameters.proteowizard;
import com.compomics.util.examples.BareBonesBrowserLaunch;
import com.compomics.util.experiment.mass_spectrometry.proteowizard.MsConvertParameters;
import com.compomics.util.experiment.mass_spectrometry.proteowizard.ProteoWizardMsFormat;
import com.compomics.util... |
cryst-al/novoline | src/net/a90.java | package net;
import com.viaversion.viaversion.api.protocol.remapper.PacketRemapper;
import com.viaversion.viaversion.api.type.Type;
import com.viaversion.viaversion.protocol.packet.PacketWrapperImpl;
import net.Zv;
final class a90 extends PacketRemapper {
public void registerMap() {
this.a(Type.STRING);
... |
chenshun00/fuck-rpc | fuck-core/src/main/java/top/huzhurong/fuck/spring/bean/ServiceBean.java | package top.huzhurong.fuck.spring.bean;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
im... |
battlesteed/httpRouter | httpRouter-api/src/main/java/steed/router/api/annotation/DocParam.java | package steed.router.api.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import steed.router.api.domain.Parameter;
/**
* 路径,表明该Processor对应哪个路... |
xeroz/admin-django | apps/competitions/views.py | <reponame>xeroz/admin-django
from django.shortcuts import render, HttpResponseRedirect, get_object_or_404
from apps.competitions.models import Competition
from apps.competitions.forms import CompetitionForm
# Create your views here.
def index(request):
competitions = Competition.objects.all()
data = {
... |
brunolauze/MonoNative | MonoNative/mscorlib/System/mscorlib_System_ValueType.cpp | <filename>MonoNative/mscorlib/System/mscorlib_System_ValueType.cpp
#include <mscorlib/System/mscorlib_System_ValueType.h>
#include <mscorlib/System/mscorlib_System_String.h>
#include <mscorlib/System/mscorlib_System_Type.h>
namespace mscorlib
{
namespace System
{
//Public Methods
mscorlib::System::Boolean Val... |
GyBraLAN/byceps | tests/integration/blueprints/site/user/test_views_create.py | """
:Copyright: 2006-2021 <NAME>
:License: Revised BSD (see `LICENSE` file for details)
"""
from unittest.mock import patch
import pytest
from byceps.database import db
from byceps.services.authentication.password.dbmodels import (
Credential as DbCredential,
)
from byceps.services.authentication.session import ... |
tk1012/ion-kit | include/ion-bb-image-processing/rt.h | // Don't use this file.
// You can add only BB written by pure Halide function to ion-bb-image-processing.
|
iVS3D/iVS3D | iVS3D/src/iVS3D-core/controller/imageiterator.h | #ifndef IMAGEITERATOR_H
#define IMAGEITERATOR_H
#include "ModelInputIterator.h"
/**
* @class ImageIterator
*
* @ingroup Controller
*
* @brief The ImageIterator class is used to iterate given ModelInputPictures instance mip. Handles boundaries and
* and allows for easy boundary checks. Every image is iterated.
... |
Vankka/Platform-abstraction-layer | velocity/src/main/java/net/playeranalytics/plugin/scheduling/UnscheduledVelocityTask.java | package net.playeranalytics.plugin.scheduling;
import com.velocitypowered.api.scheduler.Scheduler;
import java.util.concurrent.TimeUnit;
import java.util.function.Consumer;
public class UnscheduledVelocityTask implements UnscheduledTask {
private final Object plugin;
private final Scheduler scheduler;
p... |
nebula-genomics/iobio-services | gene/client/app/routes.js | import jQuery from 'jquery'
global.jQuery = jQuery
global.$ = jQuery
import globalEduTour from './partials/GlobalEduTour.js'
import d3 from 'd3'
import _ from 'lodash'
import Vue from 'vue'
import VueRouter from 'vue-router'
impor... |
npocmaka/Windows-Server-2003 | admin/wmi/wbem/providers/dsprovider/ldapcach.h | <reponame>npocmaka/Windows-Server-2003
//
// Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
//
// ***************************************************************************
//
// Original Author: <NAME>
//
// $Author: rajeshr $
// $Date: 6/11/98 4:43p $
// $Workfile:ldapcach.h $
//
/... |
CloudSlang/cs-actions | cs-abbyy/src/main/java/io/cloudslang/content/abbyy/constants/InputNames.java | <reponame>CloudSlang/cs-actions
/*
* (c) Copyright 2020 EntIT Software LLC, a Micro Focus company, L.P.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License v2.0 which accompany this distribution.
*
* The Apache License is available at
* htt... |
thinkhy/x3c_extension | code/pkg_Core/Modules/PluginManager/Cx_ObjectFactory.cpp | <gh_stars>1-10
// Copyright 2008-2011 <NAME>, <EMAIL>
// https://sourceforge.net/projects/x3c/
//
// 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/licen... |
SFEley/ezmq | spec/spec_helper.rb | # This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# Require this file using `require "spec_helper"` to ensure that it is only
# loaded once.
#
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
requir... |
alansuphd/sc-riscv | LinuxIO/final_demo/riscv/riscv64-unknown-elf/include/machine/syscfg.h | <gh_stars>1-10
#ifndef RISCV_SYSCFG_H
#define RISCV_SYSCFG_H
//------------------------------------------------------------------------
// RISC-V minimum and maximum vector length
//------------------------------------------------------------------------
#define RISCV_SYSCFG_VLEN_MIN 4
#define RISCV_SYSCFG_VLEN_MAX 3... |
shisheng-1/util | util-core/src/test/java/com/indeed/util/core/ReleaseVersionTest.java | package com.indeed.util.core;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
/**
* @author <EMAIL> (<NAME>)
*/
public class ReleaseVersionTest {
public static void assertVersionLessThan(final String lhs, final String rhs) {
assertEquals(-1, Rele... |
gentjankolicaj/EData | src/main/java/edata/converter/core/MyNasaPowerConverter.java | package edata.converter.core;
import java.util.List;
public interface MyNasaPowerConverter<S,D,C>{
D sourceToDto(S source);
C sourceToCommand(S source);
S dtoToSource(D dto);
S commandToSource(C command);
List<D> sourceToDto(List<S> source);
List<C> sourceToCommand(List<S> source);
... |
jhh67/chapel | third-party/llvm/llvm-src/include/llvm/CodeGen/MIRFormatter.h | <reponame>jhh67/chapel
//===-- llvm/CodeGen/MIRFormatter.h -----------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------------------------... |
atharva8300/Engineering-Practical-Experiments | Semester 6/SPCC/Code optimization - Dead code elimination/main.py | # FINAL
import os
os.system("clear")
with open("test.txt") as f:
lines = []
lines = [i.replace("\n", "") for i in f.readlines()]
def used(variable, code):
counts = 0
for i in code:
if variable in i:
counts += 1
return False if counts > 0 else True
def redefined_variables():... |
jpkulasingham/Eelbrain | examples/datasets/basic.py | """
.. _exa-dataset:
Dataset basics
==============
"""
# Author: <NAME> <<EMAIL>>
from eelbrain import *
import numpy as np
###############################################################################
# A dataset can be constructed column by column, by adding one variable after
# another:
# initialize an empty Da... |
avereon/cart2 | source/test/java/com/avereon/cartesia/data/DesignEllipseTest.java | package com.avereon.cartesia.data;
import com.avereon.cartesia.PointAssert;
import com.avereon.curve.math.Constants;
import javafx.geometry.Point3D;
import org.assertj.core.data.Offset;
import org.junit.jupiter.api.Test;
import java.util.HashMap;
import java.util.Map;
import static com.avereon.cartesia.TestConstants... |
doc22940/flawwwless-ui | src/components/Switch/index.js | <filename>src/components/Switch/index.js
import React, { Component } from 'react';
import GetContext from "../GetContext";
import styles from "./Switch.scss";
class Switch extends Component {
render(){
let { checked, name, onChange, disabled } = this.props;
const { primaryColor } = this.props.context;
const d... |
rogerhutchings/Panoptes | db/migrate/20150610200133_add_defaults_to_project_content.rb | class AddDefaultsToProjectContent < ActiveRecord::Migration
def change
%i(title description introduction science_case result faq education_content).each do |column|
change_column_default :project_contents, column, ""
end
end
end
|
elix22/AtomicGameEngine | Build/node_modules/filelist/node_modules/utilities/test/inflection.js | <filename>Build/node_modules/filelist/node_modules/utilities/test/inflection.js<gh_stars>1000+
/*
* Utilities: A classic collection of JavaScript utilities
* Copyright 2112 <NAME> (<EMAIL>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the... |
olemeyer/eu.cloudwave.ude.fcore.plugin.bundled | src/eu/cloudwave/ude/fcore/plugin/model/Flavor.java | package eu.cloudwave.ude.fcore.plugin.model;
public class Flavor {
private int cpu;
private int ram;
public Flavor(int cpu, int ram) {
super();
this.cpu = cpu;
this.ram = ram;
}
public int getCpu() {
return cpu;
}
public void setCpu(int cpu) {
this.cpu = cpu;
}
public int getRam() {
return ... |
usadson/WebEngine | ccompat.hpp | #pragma once
/**
* Copyright (C) 2020 Tristan. All Rights Reserved.
* This file is licensed under the BSD 2-Clause license.
* See the COPYING file for licensing information.
*
* CCompat is the Compatibility Layer for working with C, when it is needed.
*/
namespace CCompat {
[[nodiscard]] const char *
GetErrn... |
rootsoluk/PulseTile-React | src/components/pages/Events/selectors.js | import { createSelector } from 'reselect';
import _ from 'lodash/fp';
import { operationsOnCollection } from '../../../utils/plugin-helpers.utils';
import { valuesNames } from './forms.config';
const eventsCreateFormSelector = _.getOr({}, 'form.eventsCreateFormSelector');
const eventsDetailFormSelector = _.getOr({}, ... |
Studyokee/studyokee-youtube | models/vocabulary.js | <reponame>Studyokee/studyokee-youtube
'use strict';
var mongoose = require('mongoose');
var q = require('q');
var Vocabulary;
var vocabularySchema = mongoose.Schema({
userId: {
type: String,
required: true
},
fromLanguage: {
type: String,
required: true
},
toLangua... |
82ndAirborneDiv/esquire-frontend | src/components/Header/index.js | <filename>src/components/Header/index.js
import React from 'react'
import PropTypes from 'prop-types'
import Grid from 'material-ui/Grid'
import { withTheme } from 'material-ui/styles'
import Logo from 'components/Logo'
import Greeting from './components/Greeting'
import Avatar from 'components/Avatar'
import Admin fro... |
openJT/auth-rest | apps/web/js/products.js | var products = (function (Global) {
'use strict';
var products, productDetail = {};
var dialog = document.querySelector('#productDialog');
var socket = io('/admin', { 'query': 'token=' + window.localStorage.getItem("token"), path: '/auth-rest/socket.io' });
var snackbarContainer = document.querySele... |
andyglick/openclover-git | clover-eclipse/com.atlassian.clover.eclipse.core/src/com/atlassian/clover/eclipse/core/views/actions/ToggleCloverCompilerActionDelegate.java | <reponame>andyglick/openclover-git
package com.atlassian.clover.eclipse.core.views.actions;
import org.eclipse.jface.action.IAction;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IncrementalProjectBuilder;
import org.eclipse.core.runtime.CoreException;
import com.atlassian.clover.eclips... |
Elizabeth-Warren/pollaris | backend/pollaris/app/tests/test_side_effects.py | import copy
import json
import pprint
import urllib
import pytest
import responses
from django.test import Client
BSD_PROXY_URL = "https://bsd-signup-proxy"
FORM_REQUEST_IA = {
# This comes from inspecting the form submission in Chrome and
# choosing "Copy as cURL".
"form": "firstname=Jason&lastname=Katz... |
AppGalleryConnect/agc-android-demos | publishapi/src/test/java/com/huawei/demo/api/UpdateAppLang.java | /*
* Copyright (c) Huawei Technologies Co., Ltd. 2019-2019. All rights reserved.
*/
package com.huawei.demo.api;
import com.huawei.demo.common.KeyConstants;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.apache.http.Consts;
import org.apache.http.HttpStatus;
import org.apache... |
ppi-ag/deep-sampler | deepsampler-core/src/main/java/de/ppi/deepsampler/core/model/OriginalMethodInvocation.java | package de.ppi.deepsampler.core.model;
/**
* A {@link FunctionalInterface} that is used to pass a means of calling the original method, to an {@link Answer}.
*/
@FunctionalInterface
public interface OriginalMethodInvocation {
/**
* Calls the original method using the particular means of the particular AOP-... |
cinder-config/extractor | src/main/java/ch/uzh/ciclassifier/features/configuration/UseBranches.java | package ch.uzh.ciclassifier.features.configuration;
import ch.uzh.ciclassifier.evaluation.Evaluation;
import ch.uzh.ciclassifier.features.Feature;
import ch.uzh.ciclassifier.features.FeatureType;
import org.json.simple.JSONObject;
import java.io.IOException;
public class UseBranches implements Feature {
private ... |
roj234/rojlib | roj/math/MathUtils.java | <gh_stars>1-10
/*
* This file is a part of MI
*
* The MIT License (MIT)
*
* Copyright (c) 2021 Roj234
*
* 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... |
amylittleyang/OtraCAD | cadnano25/cadnano/part/removeallstrandscmd.py | <reponame>amylittleyang/OtraCAD
from cadnano.cnproxy import UndoCommand
class RemoveAllStrandsCommand(UndoCommand):
"""
1. Remove all strands. Emits strandRemovedSignal for each.
2. Remove all oligos.
"""
def __init__(self, part):
super(RemoveAllStrandsCommand, self).__init__("remove all s... |
Matematica-Divertida/mobile | app/screens/Question/Components/Footer.js | <reponame>Matematica-Divertida/mobile
import React, { useRef } from 'react';
import {
View,
Text,
Platform,
StyleSheet,
TouchableOpacity
} from 'react-native';
import Popover from 'react-native-popover-view';
const styles = StyleSheet.create({
submit: {
height: 64,
backgroundColor: Platform.OS === ... |
seandong23x3m/tobantalx | chapter-06/security-samples/src/main/java/org/rpis5/chapters/chapter_06/security/ProfileService.java | package org.rpis5.chapters.chapter_06.security;
import reactor.core.publisher.Mono;
public interface ProfileService {
Mono<Profile> getByUser(String name);
}
|
shenyiliu/mgcfx | src/main/java/com/pearadmin/modules/sys/domain/NewE.java | <filename>src/main/java/com/pearadmin/modules/sys/domain/NewE.java
package com.pearadmin.modules.sys.domain;
import java.util.ArrayList;
import java.util.Date;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.pearadmin.common... |
amadavan/Stuka | include/stuka/LP/preconditioner/bounds_zero.h | <reponame>amadavan/Stuka<filename>include/stuka/LP/preconditioner/bounds_zero.h
//
// Created by <NAME> on 2019-07-06.
//
#ifndef STUKA_LP_BOUNDS_ZERO_H
#define STUKA_LP_BOUNDS_ZERO_H
#include "base_preconditioner.h"
namespace stuka { namespace LP {
class BoundsZero : public BasePreconditioner {
public:
BoundsZer... |
codhab/support2 | app/models/support/document/allotment_authenticate.rb | <reponame>codhab/support2
require_dependency 'application_record'
module Support
module Document
class AllotmentAuthenticate < ApplicationRecord
self.table_name = 'sihab.document_allotment_authenticates'
audited
end
end
end
|
waldosax/PlexSports | Plug-ins/PlexSportsAgent.bundle/Contents/Code/Data/SportsDataIODownloader.py | import threading
from Constants import *
from UserAgent import *
from Data.GetResultFromNetwork import *
SPORTS_DATA_IO_MLB_API_KEY = "<KEY>" # TODO: Read from settings file?
SPORTS_DATA_IO_NBA_API_KEY = "<KEY>" # TODO: Read from settings file?
SPORTS_DATA_IO_NFL_API_KEY = "<KEY>" # TODO: Read from settings fil... |
shriramrseee/stock-market-chart | chart/src/main/java/com/stock/chart/core/controllers/BoardOfDirectorsController.java | <filename>chart/src/main/java/com/stock/chart/core/controllers/BoardOfDirectorsController.java
package com.stock.chart.core.controllers;
import com.stock.chart.core.entities.BoardOfDirectors;
import com.stock.chart.core.services.BoardOfDirectorsService;
import org.springframework.beans.factory.annotation.Autowired;
i... |
Phindani/collect | collect_app/src/main/java/org/odk/collect/android/backgroundwork/AutoUpdateTaskSpec.java | <reponame>Phindani/collect<gh_stars>1-10
/*
* Copyright 2018 Nafundi
*
* 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... |
Passw/pmwkaa-sophia | sophia/database/sd_scheme.c | <reponame>Passw/pmwkaa-sophia
/*
* sophia database
* sphia.org
*
* Copyright (c) <NAME>
* BSD License
*/
#include <libss.h>
#include <libsf.h>
#include <libsr.h>
#include <libsv.h>
#include <libsd.h>
int sd_schemebegin(sdscheme *c, sr *r)
{
int rc = ss_bufensure(&c->buf, r->a, sizeof(sdschemeheader));
if (ssu... |
osorubeki-fujita/odpt_tokyo_metro | lib/tokyo_metro/refinement/api/station_timetable.rb | <filename>lib/tokyo_metro/refinement/api/station_timetable.rb
module TokyoMetro::Refinement::Api::StationTimetable
end
|
joshwalawender/PypeIt | pypeit/tests/test_flux.py | """
Module to run tests on simple fitting routines for arrays
"""
import os
import sys
import numpy as np
import pytest
#try:
# tsterror = FileExistsError
#except NameError:
# FileExistsError = OSError
from astropy import units
from pypeit.core import flux_calib
from pypeit.core import load
from pypeit.spectr... |
lazergenixdev/Fission | include/Fission/config.h | <gh_stars>1-10
/**
*
* @file: config.h
* @author: <EMAIL>
*
*
* This file is provided under the MIT License:
*
* Copyright (c) 2021 Lazergenix Software
*
* 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 th... |
jhauberg/SHIZEN | src/zrand.c | <reponame>jhauberg/SHIZEN
////
// __| | | _ _| __ / __| \ |
// \__ \ __ | | / _| . |
// ____/ _| _| ___| ____| ___| _|\_|
//
// Copyright (c) 2017 <NAME>
//
// This library is free software; you can redistribute and modify it
// under the terms of the MIT license. See LICENSE for details.
//
#in... |
ReadyTalk/cultivar | cultivar-core/src/main/java/com/readytalk/cultivar/CuratorFrameworkProvider.java | package com.readytalk.cultivar;
import java.util.concurrent.ThreadFactory;
import javax.annotation.Nonnegative;
import javax.annotation.Nullable;
import javax.annotation.concurrent.ThreadSafe;
import org.apache.curator.RetryPolicy;
import org.apache.curator.drivers.TracerDriver;
import org.apache.curator.ensemble.En... |
gkontsevich/leapserial | src/LeapSerial/LeapSerial.h | // Copyright (C) 2012-2018 Leap Motion, Inc. All rights reserved.
#pragma once
#include "Allocation.h"
#include "Archive.h"
#include "Descriptor.h"
#include "field_serializer.h"
#include "ArchiveLeapSerial.h"
#include "IArchiveProtobuf.h"
#include "OArchiveProtobuf.h"
#include "SchemaWriterProtobuf.h"
#include <memory>... |
quanganh2627/bytm-x64-L-w05-2015_external_chromium_org_third_party_WebKit | Source/devtools/front_end/sources/CallStackSidebarPane.js | /*
* Copyright (C) 2008 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.