repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
owenzhou/ginrbac
config/config.go
<filename>config/config.go package config import ( "github.com/spf13/viper" "github.com/owenzhou/ginrbac/contracts" "os" ) func newConfig(app contracts.IApplication) *viper.Viper { configPath := "config.yaml" if _, err := os.Stat(configPath); err != nil{ return nil } viper := app.Make("viper").(*viper.Viper...
FlippingBinary/wqxlib
wqxlib-python/wqxlib/wqx_v3_0/ActivityDescription.py
from ..common import WQXException from .MeasureCompact import MeasureCompact from .SimpleContent import ( ActivityConductingOrganizationText, ActivityEndDate, ActivityIdentifier, ActivityIdentifierUserSupplied, ActivityMediaName, ActivityMediaSubdivisionName, ActivityRelativeDepthName, ActivityStartDate...
dharshatharan/web-book
api/app/models/user.rb
<gh_stars>0 class User < ApplicationRecord # IdentityCache include IdentityCache # Bcrypt Secure Password has_secure_password # Validations validates :email, presence: true, uniqueness: true validates :username, presence: true, uniqueness: true validates :role, presence: true, inclusion: { in: ["publi...
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gcc.dg/always_inline3.c
/* { dg-do compile } */ /* { dg-options "-O2 -fgnu89-inline" } */ int do_something_evil (void); inline __attribute__ ((always_inline)) void q2(void) /* { dg-error "recursive inlining" } */ { if (do_something_evil ()) return; q2(); /* { dg-message "called from here" } */ q2(); /* With -O2 we don't warn here...
mwiesenberger/feltor-dev.github.io
doc/exblas/html/search/all_0.js
var searchData= [ ['accumulate_0',['Accumulate',['../namespacedg_1_1exblas_1_1gpu.html#ae8560d81d2a195d7fae6fee57db801f0',1,'dg::exblas::gpu::Accumulate()'],['../namespacedg_1_1exblas_1_1cpu.html#aeb5ba33e37102969daf45883c7582d0d',1,'dg::exblas::cpu::Accumulate()']]], ['accumulate_2ecuh_1',['accumulate.cuh',['../ac...
congscallion/ds
src/test/java/io/ds/congscallion/iopackages/RandomAccessFileDemo.java
package io.ds.congscallion.iopackages; import org.junit.Test; import java.io.IOException; import java.io.RandomAccessFile; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.attribute.BasicFileAttributeView; import java.nio.file.attribute.BasicFileAttributes; publ...
yndu13/credentials-java
src/test/java/utils/ParameterHelperTest.java
package utils; import com.aliyun.credentials.utils.ParameterHelper; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import java.text.ParseException; import java.util.Date; public class ParameterHelperTest { @Before public void init() { new ParameterHelper(); } @Test ...
atul-vyshnav/2021_IBM_Code_Challenge_StockIT
src/StockIT-v1-release_source_from_JADX/sources/com/google/android/gms/clearcut/C1525R.java
package com.google.android.gms.clearcut; /* renamed from: com.google.android.gms.clearcut.R */ public final class C1525R { private C1525R() { } }
18406611280/oil
grainoil-service-api/grainoil-system-api/src/main/java/com/grainoil/system/domain/vo/point_management/StorehouseGet.java
package com.grainoil.system.domain.vo.point_management; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.io.Serializable; import java.util.List; /** * 修改仓房时的返回页面显示信息 */ @Data @ApiModel(value = "StorehouseGet", description = "根据id获取仓房信息") public...
nickgros/SynapseWebClient
src/main/java/org/sagebionetworks/web/client/widget/evaluation/EvaluationFinderViewImpl.java
package org.sagebionetworks.web.client.widget.evaluation; import org.gwtbootstrap3.client.ui.Button; import org.gwtbootstrap3.client.ui.Modal; import org.gwtbootstrap3.client.ui.html.Div; import com.google.gwt.core.shared.GWT; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiFiel...
mahaplatform/mahaplatform.com
src/apps/datasets/admin/views/records/show/details.js
<reponame>mahaplatform/mahaplatform.com import Content from '@apps/forms/admin/tokens/content' import { Audit, Comments, List, Panel } from '@admin' import PropTypes from 'prop-types' import React from 'react' class Details extends React.PureComponent { static contextTypes = { router: PropTypes.object } st...
wayshall/onetwo
core/modules/boot/src/main/java/org/onetwo/boot/plugin/core/ByPluginNameEanbledCondition.java
<filename>core/modules/boot/src/main/java/org/onetwo/boot/plugin/core/ByPluginNameEanbledCondition.java<gh_stars>10-100 package org.onetwo.boot.plugin.core; import org.onetwo.boot.core.condition.EnabledKeyCondition; import org.onetwo.common.reflect.ReflectUtils; import org.onetwo.common.spring.SpringUtils; import org....
itsmevanessi/Competitive-Programming
Codeforces/Codeforces Global Round 4/A.cpp
<reponame>itsmevanessi/Competitive-Programming<filename>Codeforces/Codeforces Global Round 4/A.cpp #include <bits/stdc++.h> using namespace std; vector< pair<int, int> > parties, ans; int main(void){ int p, t, all = 0, alice = 0, col = 0; scanf("%d", &p); for(int i = 0; i < p; ++i){ scanf("%d", &t); all...
TheSoftwareFactory/lokki-android
App/src/main/java/cc/softwarefactory/lokki/android/services/ApiService.java
<gh_stars>1-10 package cc.softwarefactory.lokki.android.services; import android.content.Context; import android.util.Log; import com.androidquery.AQuery; import com.androidquery.callback.AjaxCallback; import com.fasterxml.jackson.core.JsonProcessingException; import org.json.JSONException; import org.json.JSONObjec...
schallerdavid/perses
perses/dispersed/smc.py
<gh_stars>10-100 import openmmtools.cache as cache import os import copy from perses.dispersed.utils import * from openmmtools.states import ThermodynamicState, CompoundThermodynamicState, SamplerState import numpy as np import mdtraj as md import simtk.unit as unit import logging import time from collections import n...
Team-60/ColorSwitch
src/gameEngine/customExceptions/FallOutException.java
<filename>src/gameEngine/customExceptions/FallOutException.java package gameEngine.customExceptions; public class FallOutException extends GameOverException { public FallOutException() { super("Ball fell out of the screen"); } @Override public String toString() { return "FallOutExceptio...
davidvancleve/web.dev
src/site/_data/paths/index.js
<reponame>davidvancleve/web.dev const accessible = require('./accessible.json'); const angular = require('./angular.json'); const devices = require('./devices.json'); const discoverable = require('./discoverable.json'); const fast = require('./fast.json'); const learnWebVitals = require('./learn-web-vitals.json'); cons...
iikirilov/teku
data/provider/src/main/java/tech/pegasys/artemis/api/schema/BeaconState.java
/* * Copyright 2020 ConsenSys AG. * * 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 wr...
shaojiankui/iOS10-Runtime-Headers
PrivateFrameworks/OfficeImport.framework/ODDNodePoint.h
<reponame>shaojiankui/iOS10-Runtime-Headers<filename>PrivateFrameworks/OfficeImport.framework/ODDNodePoint.h /* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport */ @interface ODDNodePoint : ODDDataPoint { NSMutableArray * mChildren; ODDNodePoint * mPa...
moorecoin/MooreCoinMiningAlgorithm
src/secp256k1/src/java/org_moorecoin_nativesecp256k1.h
/* do not edit this file - it is machine generated */ #include <jni.h> /* header for class org_moorecoin_nativesecp256k1 */ #ifndef _included_org_moorecoin_nativesecp256k1 #define _included_org_moorecoin_nativesecp256k1 #ifdef __cplusplus extern "c" { #endif /* * class: org_moorecoin_nativesecp256k1 * method: ...
mkinsner/llvm
lldb/unittests/Process/Utility/RegisterContextNetBSDTest_x86_64.cpp
<filename>lldb/unittests/Process/Utility/RegisterContextNetBSDTest_x86_64.cpp //===-- RegisterContextNetBSDTest_x86_64.cpp ------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-...
da07ng/dipper
src/other/webmap/widgets/_StyledCheckboxTreeNode.js
/* * @Author: Esri * @Date: 2016-09-10 15:41:43 * @Last Modified by: Esri * @Last Modified time: 2016-09-10 16:10:23 */ define([ "dojo/dom-style", "dojo/_base/declare", "dijit/_TemplatedMixin", "dijit/_WidgetsInTemplateMixin", "dojo/text!./templates/template_styled_treenode_checkbox.html" ], functio...
antarikshray/websiterudra
node_modules/react-icons/ti/adjust-brightness.js
import React from 'react' import Icon from 'react-icon-base' const TiAdjustBrightness = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20 11.6l1.7-4.9c0.1-0.4 0.1-0.8 0-1.2-0.3-0.9-1.3-1.4-2.3-1.1-0.9 0.3-1.4 1.3-1.1 2.3l1.7 4.9z m-13.3 6.7c-0.4-0.1-0.8-0.1-1.2 0-0.9 0.3-1.4 1.3-1.1 2.3 0.3...
vidkidz/crossbridge
llvm-2.9/tools/clang/test/CodeGenCXX/devirtualize-virtual-function-calls.cpp
<filename>llvm-2.9/tools/clang/test/CodeGenCXX/devirtualize-virtual-function-calls.cpp // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s struct A { virtual void f(); A h(); }; A g(); void f(A a, A *ap, A& ar) { // This should not be a virtual function call. // CHECK: call void @_ZN1A1fEv(%struct.A* ...
chinhpv95/52n-core
src/js/Styling/directives/barToggler.js
angular.module('n52.core.style') .directive('swcBarToggler', function () { return { restrict: 'E', templateUrl: 'templates/styling/bar-toggler.html', controller: ['$scope', 'styleService', function ($scope, styleService) { $scop...
eoogbe/violit
src/server/users/controllers/__tests__/createUserCollection.test.js
<reponame>eoogbe/violit /** * Copyright 2022 Google LLC * * 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 app...
KingFarGrace/blog_system
back-end/src/main/java/com/kingfar/blog/entity/ArticleData.java
package com.kingfar.blog.entity; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; import java.util.Date; /** * @author ZHANGKAIHENG */ @Data public class ArticleData implements Serializable { privat...
thefool76/hacktoberfest2021
DSA/AVL Trees/Insertion.cpp
<filename>DSA/AVL Trees/Insertion.cpp //Insertion in AVL Tree //AVL trees are balanced Binary Search Trees. //Wee have a new Term call balanced factor //balanced factor = height of left subtree - height of right subtree //If balanced factor ranges in {-1, 0, 1} for each node, then the tree is balanced //Otherwise it's...
giordanna/mycoldlogicapp
client/src/assets/FeedbackNeutral.js
import React from 'react'; const FeedbackNeutral = (props) => { return <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"> <title>NeutralIcon</title> <path d="M50,0C22.4,0,0.1,22.4,0.1,50s22.4,49.9,50,49.9s49.9-22.4,49.9-50C100,22.3,77.7,0,50.2,0H50z M50,90 c-22.1,0-40-17.9...
joshayoung/joshayoung_website
src/snippets/vim.js
<reponame>joshayoung/joshayoung_website<filename>src/snippets/vim.js import React from "react"; export default () => ( <dl> <dt>Remove all folds</dt> <dd>zR</dd> <dt>Toggle fold inside current indent</dt> <dd>za</dd> <dt>Find Character Before</dt> <dd> <code>t}</code> </dd> <dt>...
chrisidefix/devide
modules/filters/polyDataConnect.py
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk EMODES = { 1:'Point seeded regions', 2:'Cell seeded regions', 3:'Specified regions', 4:'Largest region', 5:'All regions', 6:'Closest po...
waynezhang87/MCommon
sdk/src/main/java/com/waynezhang/mcommon/template/interfaces/FieldTemplateImageCallback.java
<filename>sdk/src/main/java/com/waynezhang/mcommon/template/interfaces/FieldTemplateImageCallback.java package com.waynezhang.mcommon.template.interfaces; import com.waynezhang.mcommon.template.model.TemplateImageItem; import com.waynezhang.mcommon.template.response.TemplateResponse; import com.waynezhang.mcommon.temp...
codelieche/cronjob
tutorial/etcd/operation/main.go
package main import ( "context" "fmt" "log" "time" "github.com/coreos/etcd/clientv3" ) func main() { // etcd配置 config := clientv3.Config{ Endpoints: []string{"127.0.0.1:2379"}, DialTimeout: 20 * time.Second, } // 连接etcd client, err := clientv3.New(config) if err != nil { log.Panic(err) } // 实...
lordio/insanity
src/Windows/CWindowsWin32Window.cpp
#define INSANITY_BUILDING_LIBRARY #include "CWindowsWin32Window.hpp" #if defined(PLATFORM_MSWINDOWS) #include <IThread.hpp> #include <IGarbageCollector.hpp> #include <IApplication.hpp> #include <TRectangle.hpp> #include <IConfigObject.hpp> #include "WindowsStringConversion.hpp" #include <windowsx.h> #include <CommC...
xiaojieay/mybatis-study
src/main/java/org/apache/ibatis/type/FloatTypeHandler.java
package org.apache.ibatis.type; import java.sql.CallableStatement; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; /** * @author <NAME> */ public class FloatTypeHandler extends BaseTypeHandler<Float> { @Override public void setNonNullParameter(PreparedStatement ps, i...
NullPopPoLab/Play--Framework
include/StreamBitStream.h
<gh_stars>10-100 #pragma once #include <stdexcept> #include "Types.h" #include "Stream.h" #include "BitStream.h" namespace Framework { class CStreamBitStream : public CBitStream { public: CStreamBitStream(Framework::CStream&); virtual ~CStreamBitStream(); virtual void Advance(ui...
emptyland/nyaa
src/system/random-zone-system.cc
#include "system/random-zone-system.h" #include "component/zone-component.h" #include "resource/cube-library.h" #include "resource/sprite-library.h" #include "game/game.h" namespace nyaa { namespace sys { void RandomZoneSystem::Update(com::ZoneComponent *zone) { Update(zone->mutable_region()); } void RandomZone...
ita-social-projects/ZeroWaste
db/migrate/20210428101446_change_products.rb
class ChangeProducts < ActiveRecord::Migration[6.1] def up ProductType.find_by(title: 'Diapers').products.create([{title: 'Diapers'}, {title: 'Reusable diapers'}]) end def down ProductType.find_by(title: 'Diapers').products.destroy_all end end
npocmaka/Windows-Server-2003
inetcore/connectionwizard/icwconn2/debug.h
<reponame>npocmaka/Windows-Server-2003 /*----------------------------------------------------------------------------- debug.h Declarations for debug features Copyright (C) 1996 Microsoft Corporation All rights reserved Authors: ChrisK <NAME> Histroy: 7/22/96 ChrisK Cleaned and formatted -...
long-grass/mikey
universal_api_project_template/api/controllers/user.js
// // Route Dependencies // import express from 'express'; // let router = express.Router(); // import app from '../../server'; // import bcrypt from 'bcrypt'; // // // Services // import AuthServices from '../services/AuthService'; // // // Routes ---------------------------- // // // Base Path: /user-> // // //Authen...
osmar-jr/orange-talents-07-template-ecommerce
src/main/java/br/com/zupacademy/osmarjunior/mercadolivre/controller/form/LoginForm.java
<filename>src/main/java/br/com/zupacademy/osmarjunior/mercadolivre/controller/form/LoginForm.java package br.com.zupacademy.osmarjunior.mercadolivre.controller.form; import br.com.zupacademy.osmarjunior.mercadolivre.annotation.ExistsId; import br.com.zupacademy.osmarjunior.mercadolivre.model.Usuario; import com.faster...
prem-chand/Cassie_CFROST
Digit_Example/opt_two_step/gen/opt/Js_dxDiscreteMapLeftImpact.cc
/* * Automatically Generated from Mathematica. * Fri 5 Nov 2021 16:27:00 GMT-04:00 */ #ifdef MATLAB_MEX_FILE #include <stdexcept> #include <cmath> #include<math.h> /** * Copied from Wolfram Mathematica C Definitions file mdefs.hpp * Changed marcos to inline functions (<NAME>) */ inline double Power(double x, dou...
RMRicketts/covid19Back
actions/index.js
'use strict'; const _ = require('lodash'); const fs = require('fs').promises; const path = require('path'); let getActions = async (merge, filePath) => { try { let dir = await fs.opendir(filePath); for await (let dirent of dir) { let {name} = dirent; if (dirent.isDirectory()) { merge = a...
rjw57/tiw-computer
emulator/src/devices/bus/dmv/ram.cpp
<gh_stars>1-10 // license:BSD-3-Clause // copyright-holders:<NAME> /*************************************************************************** K200 64K RAM expansion K202 192K RAM expansion K208 448K RAM expansion ***************************************************************************/ #include "emu...
White-116/xlsxd
libxlsxwriter/test/functional/src/test_autofilter01.c
/***************************************************************************** * Test cases for libxlsxwriter. * * Test to compare output against Excel files. * * Copyright 2014-2019, <NAME>, <EMAIL> * */ #include "xlsxwriter.h" int main() { lxw_workbook *workbook = workbook_new("test_autofilter01.xlsx"...
baojie/neo4j
enterprise/ha/src/main/java/org/neo4j/kernel/ha/HighlyAvailableGraphDatabase.java
<reponame>baojie/neo4j /** * Copyright (c) 2002-2013 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published...
qaz4042/beBetter
3-common/src/main/java/bebetter/basejpa/cfg/sub/IRealm.java
package bebetter.basejpa.cfg.sub; import cn.hutool.crypto.digest.DigestUtil; import org.apache.shiro.authc.AuthenticationException; import org.apache.shiro.authc.AuthenticationInfo; import org.apache.shiro.authc.AuthenticationToken; import org.apache.shiro.authz.AuthorizationInfo; import org.apache.shiro.realm.Authori...
dakoto747/datastructuresandalgorithms
src/main/java/com/dakoto/datastructuresandalgorithms/dynamic/programming/DynamicProgrammingPrimerOld.java
<filename>src/main/java/com/dakoto/datastructuresandalgorithms/dynamic/programming/DynamicProgrammingPrimerOld.java package com.dakoto.datastructuresandalgorithms.dynamic.programming; public class DynamicProgrammingPrimerOld { //also think about backtracking //n-choose-k /** YOU MUST REWATCH ALL THE V...
likuisuper/Java-Notes
JavaSourceLearn/javafx-src/com/sun/javafx/tk/quantum/PerformanceTrackerImpl.java
/* * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.javafx.tk.quantum; import com.sun.javafx.perf.PerformanceTracker; /** * Class contai...
UniStuttgart-VISUS/OcclusionCulling
CPUT/CPUTTextureDX11.cpp
<reponame>UniStuttgart-VISUS/OcclusionCulling //////////////////////////////////////////////////////////////////////////////// // Copyright 2017 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a c...
mariusj/org.openntf.domino
domino/core/src/sample/java/org/openntf/conference/graph/examples/GraphExamples.java
package org.openntf.conference.graph.examples; import org.openntf.conference.graph.Attendee; import org.openntf.conference.graph.ConferenceGraph; import org.openntf.domino.Session; import org.openntf.domino.graph2.impl.DGraph; import org.openntf.domino.utils.Factory; import org.openntf.domino.utils.Factory.Sess...
openstreetcam/android
app/src/main/java/com/telenav/osv/data/user/model/details/gamification/GamificationLevel.java
package com.telenav.osv.data.user.model.details.gamification; /** * Class representing information related to level achieved by the user using gamification feature. * @author horatiuf */ public class GamificationLevel { /** * Current level number. */ private int level; /** * The next l...
krattai/AEBL
blades/seafile/server/processors/recvcommit-v2-proc.c
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ #include "common.h" #include <fcntl.h> #include <ccnet.h> #include "net.h" #include "utils.h" #include "seafile-session.h" #include "recvcommit-v2-proc.h" #include "processors/objecttx-common.h" #include "seaf-utils.h" enum { INIT, ...
jaredsburrows/Project-Euler
java/src/main/java/leetcode/Problem686RepeatedStringMatch.java
package leetcode; /** * https://leetcode.com/problems/repeated-string-match */ public final class Problem686RepeatedStringMatch { // Time - O(N), Space - O(N) public int repeatedStringMatch(String A, String B) { if (A == null || B == null) { return -1; } StringBuilder str...
sidneys/yt-playlist-hero
app/scripts/main/components/application.js
'use strict'; /** * Modules * Node * @constant */ const path = require('path'); /** * Modules * Electron * @constant */ const electron = require('electron'); const { app } = electron; /** * Modules * External * @constant */ const appRootPath = require('app-root-path'); /** * Modules * Configuration ...
mcarcaso/foam2
src/foam/dao/FixedSizeDAO.js
<gh_stars>0 /** * @license * Copyright 2018 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.dao', name: 'FixedSizeDAO', extends: 'foam.dao.ProxyDAO', documentation: ` Manages the size of a dao by purging on each put. Elements that matc...
jk-ozlabs/op-test-framework
testcases/OpTestEM.py
#!/usr/bin/env python2 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: op-test-framework/testcases/OpTestEM.py $ # # OpenPOWER Automated Test Project # # Contributors Listed Below - COPYRIGHT 2015 # [+] International Business Machines Corp. # # # Licensed under the Apache License, Versi...
tqrg-bot/onos
apps/openstacktelemetry/app/src/main/java/org/onosproject/openstacktelemetry/codec/TinaStatsInfoByteBufferCodec.java
<filename>apps/openstacktelemetry/app/src/main/java/org/onosproject/openstacktelemetry/codec/TinaStatsInfoByteBufferCodec.java /* * Copyright 2018-present Open Networking Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....
jhunt/ssg
pkg/ssg/provider/compressor.go
package provider import ( "fmt" "compress/zlib" "github.com/jhunt/ssg/pkg/meter" ) func Compress(ul Uploader, alg string) (Uploader, error) { switch alg { case "none", "": return ul, nil case "zlib": return &ZlibUploader{ w: zlib.NewWriter(ul), inner: ul, }, nil default: return nil, fmt.Err...
kiranmai-sfdev/aura
aura-components/src/test/components/valueChange/simpleValueChange/simpleValueChangeTest.js
<gh_stars>100-1000 /* * Copyright (C) 2013 salesforce.com, inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
wanderwaltz/Frostbit
FrostbitTests/FRBTestAttributedStringInlineStylesApplication.h
// // FRBTestAttributedStringInlineStylesApplication.h // Frostbit // // Created by <NAME> on 22/04/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import "FRBAttributedStringTest.h" #pragma mark - #pragma mark FRBTestAttributedStringInlineStylesApplication interface @interface FRBTestAttributedString...
c-base/diaspora
spec/javascripts/app/views/comment_stream_view_spec.js
describe("app.views.CommentStream", function(){ beforeEach(function(){ this.view = new app.views.CommentStream({model : factory.post()}) }) describe("postRenderTemplate", function(){ it("applies infield labels", function(){ spyOn($.fn, "inFieldLabels") this.view.postRenderTemplate() exp...
leandromoreira/edash-packager
packager/media/base/audio_stream_info.cc
<reponame>leandromoreira/edash-packager // Copyright 2014 Google Inc. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd #include "packager/media/base/audio_stream_info.h" #inclu...
ellios/hedwig
hedwig-http/src/main/java/me/ellios/hedwig/http/server/HttpServerFactory.java
package me.ellios.hedwig.http.server; import me.ellios.hedwig.rpc.core.ServiceSchema; import me.ellios.hedwig.rpc.core.ServiceType; import me.ellios.hedwig.rpc.server.RpcServer; import me.ellios.hedwig.rpc.server.RpcServerFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * We use this factory to ...
majormoses/superhosting
lib/superhosting/helper/i18n.rb
<filename>lib/superhosting/helper/i18n.rb module Superhosting module Helper module I18n def i18n_initialize ::I18n.load_path << "#{::File.dirname(::File.dirname(__FILE__))}/config/net_status.yml" ::I18n.reload! ::I18n.locale = :en end end end end Superhosting::Helper::I1...
nguyenthaiphuong/calling
gulp/tasks/stylelint.js
'use strict'; import gulp from 'gulp'; import stylelint from 'gulp-stylelint'; import { APP_SCSS } from '../const'; gulp.task('stylelint', () => { return gulp.src([APP_SCSS, '!src/styles/theme/**/*']) .pipe(stylelint({ reporters: [{ formatter: 'string', console: true }] })); });
nhnent/EAT
examples/exampleCustomAPI/src/main/java/com/nhnent/eat/sampleCustomAPI/customAPI.java
<reponame>nhnent/EAT package com.nhnent.eat.sampleCustomAPI; import co.paralleluniverse.fibers.SuspendExecution; import com.nhnent.eat.customScenario.BaseCustomAPI; import com.nhnent.eat.entity.ScenarioExecutionResult; import com.nhnent.eat.entity.ScenarioUnit; import com.nhnent.eat.entity.ScenarioUnitType; import jav...
StartupWichita/startupwichita.com
app/models/user.rb
# == Schema Information # # Table name: users # # id :integer not null, primary key # email :string(255) default(""), not null # encrypted_password :string(255) default(""), not null # reset_password_token :string(255) # reset_password_sent_at :datetime...
nimbus-org/nimbus
src/test/java/jp/ossc/nimbus/service/http/httpclient/HttpRequestImplTest.java
package jp.ossc.nimbus.service.http.httpclient; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStream; import jp.ossc.nimbus.core.ServiceManagerFactory; import jp.ossc.nimbus...
josh33901/F1-SDK
DynamicNetvars.hh
<reponame>josh33901/F1-SDK #pragma once #include <memory> #include <unordered_map> #include <vector> #include "baseHeaders.hh" #include "dt_recv2.hh" // TODO: move into netvar class class netvar_tree { struct node; using map_type = std::unordered_map<std::string, std::shared_ptr<node>>; struct node { node (in...
rsumnerz/refined-github
source/features/copy-on-y.js
<filename>source/features/copy-on-y.js import select from 'select-dom'; import ghInjection from 'github-injection'; import copyToClipboard from 'copy-text-to-clipboard'; import * as pageDetect from '../libs/page-detect'; const handler = ({key, target}) => { if (key === 'y' && target.nodeName !== 'INPUT') { const pe...
Ankita-Palekar/mojito
tests/func/common/testacpartialrenderclient.js
<reponame>Ankita-Palekar/mojito /* * This is a basic func test for a Common application. */ YUI.add('common-testacpartialinvokeclient-tests', function (Y) { var suite = new Y.Test.Suite("Common: ACPartailRenderClient"); suite.add(new Y.Test.Case({ "test ACPartailRenderClient": function() { ...
AhmedNasser1601/ProblemSolving
URI Judge/URI Judge/1154.cpp
//#include <iostream> //#include <stdio.h> //#include <iomanip> //#include <string> // //using namespace std; // //int main() { // int x = 0, y = -1; // float z = 0; // // while (x >= 0) // { // cin >> x; // // if (x >= 0) // z += x; // // y++; // } // // cout << fixed << setprecision(2) << z / y << endl; // // re...
philgamevy/loupe
test/objects.js
<filename>test/objects.js import loupe from '../index' import { expect } from 'chai' for (const [suite, inspect] of Object.entries({ objects: loupe, 'objects (Object.create(null))': (obj, ...rest) => loupe(Object.assign(Object.create(null), obj), ...rest), })) { describe(suite, () => { it('returns `{}` for e...
raghavkedia/CS308_VOOGASalad
src/engine/backend/game_object/Mode.java
/** * * @author mario_oliver93 * */ package engine.backend.game_object; import java.util.HashMap; import java.util.Map; public class Mode { // myLevels is a map of index at which level is played to Level object. private Map<Integer, Level> myLevels; private String myName; private GameStatistics myGameStatis...
sidorovpavel/writing-javascript-actions
.github/actions/joke-action/node_modules/lodash/fp/bindAll.js
var convert = require('lodash/fp/convert'), func = convert('bindAll', require('lodash/bindAll')); func.placeholder = require('lodash/fp/placeholder'); module.exports = func;
windrunner123/sentinel-cpp
sentinel-core/flow/flow_rule.h
#pragma once #include <functional> #include <memory> #include <string> #include <vector> #include "sentinel-core/common/constants.h" #include "sentinel-core/common/rule.h" #include "sentinel-core/flow/flow_rule_constants.h" namespace Sentinel { namespace Flow { struct FlowRule : public Rule { public: FlowRule() ...
pcl/spark-js-sdk
packages/plugin-encryption/src/kms-error.js
<reponame>pcl/spark-js-sdk /**! * * Copyright (c) 2015-2016 Cisco Systems, Inc. See LICENSE file. * @private */ import extendError from 'extend-error'; /** * @class */ const KmsError = extendError({ /** * @param {Object} body * @returns {string} */ parseFn(body) { body = body.body || body; ...
bobgeis/js-space-rocks
src/reducers/game-reducer.js
import { Map } from 'immutable'; import undoable from 'redux-undo'; import * as types from '../action-types'; import * as modes from '../mode-types'; import { initialStore } from '../store'; import { updateGame } from '../update/game-update'; const gameReducer = (state = Map(), action) => { switch (action.type) { ...
marco-brandizi/ondex-knet-builder
ondex-desktop/ovtk2/src/main/java/net/sourceforge/ondex/ovtk2/ui/dialog/DialogDataSource.java
package net.sourceforge.ondex.ovtk2.ui.dialog; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.beans.PropertyVetoException; import javax.swing.BorderFactory; import javax.swing.GroupLayout; import javax.swing.JLabel; import javax.swing.JOptionPane; im...
Aurelien7877/noodl-mapbox-module
node_modules/turf-jsts/src/org/locationtech/jts/geom/LineSegment.js
import NotRepresentableException from '../algorithm/NotRepresentableException' import CGAlgorithms from '../algorithm/CGAlgorithms' import Coordinate from './Coordinate' import Double from '../../../../java/lang/Double' import Comparable from '../../../../java/lang/Comparable' import RobustLineIntersector from '../algo...
jgretz/pghbeer
api/src/features/users/index.js
export * from './users.controller'; export * from './userByWebUserId.controller'; export {FindUserByWebUserIdHandler} from './findUserByWebUserId';
spencercjh/sync-leetcode-today-problem-cpp-example
cousins_in_binary_tree.cpp
package leetcode /** * https://leetcode-cn.com/problems/cousins-in-binary-tree/ * * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), right(nullptr) {} * TreeNode(int x) : val(x), left(nullptr), righ...
golfstream83/JavaCourse
Module4/SRP/src/test/java/ru/tulin/InteractCalculatorTest.java
package ru.tulin; import org.junit.Before; import org.junit.Test; import static org.hamcrest.CoreMatchers.is; import static org.mockito.Mockito.*; import static org.junit.Assert.*; /** * @author <NAME> * @version 1 * @since 29.10.2016 */ public class InteractCalculatorTest { @Test public void whenAddTw...
amirisback/pemrograman-perangkat-bergerak
project/MOBPRO/MOBPRO7_JURNAL_6706160014_REZA/MOBPRO7_JURNAL_6706160014_REZA/Jurnal5/app/src/main/java/id/frogobox/amirisback/jurnal5/LangkaActivity.java
package id.frogobox.amirisback.jurnal5; import android.content.Context; import android.media.AudioManager; import android.media.MediaPlayer; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.AdapterView; import android.widget.ListView; import ja...
rkanavath/ossim18
src/ossim/base/ossimDuration.cpp
<reponame>rkanavath/ossim18<filename>src/ossim/base/ossimDuration.cpp //******************************************************************* // // License: MIT // // See LICENSE.txt file in the top level directory for more details. // // Author: <NAME> // //**************************************************************...
xiaotuoapi/yyblog
src/main/java/net/laoyeye/yyblog/service/AboutService.java
package net.laoyeye.yyblog.service; import net.laoyeye.yyblog.common.YYBlogResult; import net.laoyeye.yyblog.model.AboutDO; public interface AboutService { /** * 更新关于信息 */ YYBlogResult updateByTab(AboutDO about); /** * 跟进tab发现关于栏内容 */ AboutDO getAboutByTab(String tab);...
mxalbert1996/homebrew-fonts
Formula/font-sura.rb
<gh_stars>10-100 class FontSura < Formula head "https://github.com/google/fonts/trunk/ofl/sura", verified: "github.com/google/fonts/", using: :svn desc "Sura" homepage "https://fonts.google.com/specimen/Sura" def install (share/"fonts").install "Sura-Bold.ttf" (share/"fonts").install "Sura-Regular.ttf" ...
AdmiralBulldogTv/VodApi
src/api/gql.go
package api import ( "bytes" "context" "net/url" "time" "github.com/99designs/gqlgen/graphql" "github.com/99designs/gqlgen/graphql/handler/extension" "github.com/AdmiralBulldogTv/VodApi/graph/generated" "github.com/AdmiralBulldogTv/VodApi/src/api/cache" "github.com/AdmiralBulldogTv/VodApi/src/api/complexity"...
wjchenge/JavaCourseCodes
03nio/src/test/java/nio/wjchenge/netty/gateway/v3/router/HttpEndpointRouterTest.java
<reponame>wjchenge/JavaCourseCodes package nio.wjchenge.netty.gateway.v3.router; import org.junit.jupiter.api.Test; import java.util.HashMap; import java.util.Map; import static org.junit.jupiter.api.Assertions.*; /** * @Author wj * @Date 2021/10/12 9:32 */ class HttpEndpointRouterTest { public static final...
LandingJobs/conundrum
spec/models/question_spec.rb
require 'spec_helper' describe Question do it 'has a valid factory' do expect(Fabricate(:question)).to be_valid end it 'is invalid without a question text' do expect(Fabricate.build(:question, question_text:nil)).not_to be_valid end end
evanmok2401/Makanbook
src/test/java/seedu/address/model/accounting/UniqueDebtListTest.java
package seedu.address.model.accounting; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static seedu.address.testutil.TypicalDebts.DEBT_A; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException;...
maidiHaitai/haitaibrowser
third_party/catapult/perf_insights/perf_insights/endpoints/upload.py
# Copyright (c) 2015 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. import json import logging import os import re import webapp2 import uuid from perf_insights import trace_info from perf_insights import cloud_config i...
tanxinzheng/bms-webapp
src/main/java/com/xmomen/module/order/entity/TbPackingExample.java
<filename>src/main/java/com/xmomen/module/order/entity/TbPackingExample.java package com.xmomen.module.order.entity; import com.xmomen.framework.mybatis.model.BaseMybatisExample; import java.util.ArrayList; import java.util.Date; import java.util.List; public class TbPackingExample extends BaseMybatisExample { pr...
sumervardhan/SlogoIDE
src/view/FeatureReceiver.java
<reponame>sumervardhan/SlogoIDE package view; import controller.interfaces.Language; import java.util.List; import java.util.Map; /** * This interface follows the observer design pattern. * This is given to classes which implement the Feature interface so that there can be * two way communication between the View...
Who2232/mymapofdaworld
src/render/ImageTile.js
<filename>src/render/ImageTile.js /* * Copyright 2015-2017 WorldWind 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.org/licenses/LICENSE-2.0 * ...
cawel/vinifera
app/controllers/application_controller.rb
<gh_stars>1-10 class ApplicationController < ActionController::Base include AuthenticatedSystem helper :all before_filter :seo_defaults before_filter :configure_mailers before_filter :localizate before_filter :top_wines before_filter :top_contributers before_filter :cellar_count before_filter :review...
inqwell/inq
src/main/java/com/inqwell/any/client/swing/FileChooserListener.java
/** * Copyright (C) 2011 Inqwell Ltd * * You may distribute under the terms of the Artistic License, as specified in * the README file. */ /* * $Archive: /src/com/inqwell/any/client/swing/FileChooserListener.java $ * $Author: sanderst $ * $Revision: 1.2 $ * $Date: 2011-04-07 22:18:22 $ */ package com.inqwell...
arfusop/weather
src/layout/views/CurrentWeather.js
import React from 'react' import { useSelector } from 'react-redux' import { format } from 'date-fns' import WeatherCard from '../../components/card' import WeatherSpan from '../../components/weatherSpan' import { getWeatherIcon } from '../../helpers' import StyledCurrentWeather from './styled/StyledCurrentWeather' co...
qrsforever/workspace
cpp/test/getopt/Test.cpp
#include <unistd.h> #include <string> #include <stdio.h> void usage(const char* program) { printf("Usage: %s [Bd]\n", program); printf("\t -d: configure dir\t -t -B: number, enable bridge and set sleep time\n"); } int test(int argc, char *argv[]) { bool enable_bridge = false; int sleeptime = 0; in...