identifier
stringlengths
42
383
collection
stringclasses
1 value
open_type
stringclasses
1 value
license
stringlengths
0
1.81k
date
float64
1.99k
2.02k
title
stringlengths
0
100
creator
stringlengths
1
39
language
stringclasses
157 values
language_type
stringclasses
2 values
word_count
int64
1
20k
token_count
int64
4
1.32M
text
stringlengths
5
1.53M
__index_level_0__
int64
0
57.5k
https://github.com/binhlh23/cdkbynooddev/blob/master/CDKProjectVer2/Custom/stacks/custom_conf.py
Github Open Source
Open Source
Apache-2.0
null
cdkbynooddev
binhlh23
Python
Code
208
1,173
import aws_cdk.aws_ec2 as ec2 STACK = 'HDBank' AZ_GROUP = { 'AZ_1': 'ap-southeast-1a', 'AZ_2': 'ap-southeast-1b' } INTERNET_GATEWAY = 'Internet GW' NAT_GATEWAY = { 'NATGW_1': { 'EIP':'eipalloc-0f53fb48bec107a3c', 'AZ': 'AZ_1', 'public_subnet':'Public_1' }, } VPC_CIDR = "10.0....
9,846
https://github.com/golubev-ivan/azure-pipelines-tasks/blob/master/common-npm-packages/AzureRmDeploy-common-v3/azure-arm-rest/constants.ts
Github Open Source
Open Source
MIT
2,022
azure-pipelines-tasks
golubev-ivan
TypeScript
Code
74
286
export const AzureEnvironments = { AzureStack: 'azurestack' }; export const APPLICATION_INSIGHTS_EXTENSION_NAME: string = "Microsoft.ApplicationInsights.AzureWebSites"; export const productionSlot: string = "production"; export const mysqlApiVersion: string = '2017-12-01'; export const APIVersions = { azure...
3,529
https://github.com/opensandiego/sdvv-frontend/blob/master/src/app/graphql/candidate-menu-gql/candidate-menu-gql.module.ts
Github Open Source
Open Source
MIT
2,023
sdvv-frontend
opensandiego
TypeScript
Code
70
212
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { HttpClientModule } from '@angular/common/http'; import { CandidateMenuModule } from 'lib-ui-components'; import { GraphQLModule } from '../graphql.module'; import { CandidateMenuGQLComponent } from './candidate-menu-gql....
17,104
https://github.com/hangar18rip/backtotechtesting/blob/master/go/internal/services/datalake/data_lake_analytics_account_resource_test.go
Github Open Source
Open Source
MIT
null
backtotechtesting
hangar18rip
Go
Code
356
2,012
package datalake_test import ( "context" "fmt" "strconv" "testing" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terrafor...
36,560
https://github.com/delaford/game/blob/master/server/player/pipeline/index.js
Github Open Source
Open Source
CC-BY-3.0, LicenseRef-scancode-unknown-license-reference, MIT
2,022
game
delaford
JavaScript
Code
22
38
import player from './players'; /** * Pipelines are used to handle * events for certain actions */ export default { player, };
22,985
https://github.com/The-Log/Yoshis-Island/blob/master/src/MenuPanel.java
Github Open Source
Open Source
MIT
2,016
Yoshis-Island
The-Log
Java
Code
308
1,238
import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.io.*; import java.util.*; /** * It is the Class that setups the GUI */ public class MenuPanel extends JPanel { JFrame frame; JFrame newFrame; JLabel label, label1, label2; JButton play, highScores, rules; public MenuPanel(JF...
38,414
https://github.com/athapf/mpt/blob/master/mpt-app/mpt-app-rf/src/test/robotframework/resources/login.robot
Github Open Source
Open Source
MIT
2,017
mpt
athapf
null
Spoken
129
447
*** Keywords *** Open test browser Open browser about: Close test browser Close all browsers RegisterPage should be shown Page should contain element css=*[id$='nameInput'] Page should contain element css=*[id$='nickInput'] Page should contain element css=*[id$='passwordInput'] Page shou...
17,978
https://github.com/vincentdoerig/strapi/blob/master/packages/strapi-helper-plugin/lib/src/components/HeaderSearch/Clear.js
Github Open Source
Open Source
MIT
2,020
strapi
vincentdoerig
JavaScript
Code
28
81
import styled from 'styled-components'; const Clear = styled.div` display: flex; flex-direction: column; justify-content: center; height: 13px; margin: 25px auto 0; border-radius: 50%; cursor: pointer; `; export default Clear;
10,892
https://github.com/eugeneyl/main/blob/master/src/test/java/seedu/finance/logic/parser/SetCommandParserTest.java
Github Open Source
Open Source
MIT
2,019
main
eugeneyl
Java
Code
69
360
package seedu.finance.logic.parser; import static seedu.finance.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.finance.logic.commands.CommandTestUtil.AMOUNT_DESC_BOB; import static seedu.finance.logic.commands.CommandTestUtil.INVALID_AMOUNT_DESC; import static seedu.finance.logic.commands.Co...
22,150
https://github.com/sshyran/gpdb/blob/master/src/test/regress/bugbuster/sql/mpp-11333.sql
Github Open Source
Open Source
Apache-2.0, PostgreSQL, LicenseRef-scancode-rsa-md4, OLDAP-2.8, HPND-sell-variant, BSD-4-Clause-UC, BSD-3-Clause, Zlib, LicenseRef-scancode-zeusbench, LicenseRef-scancode-mit-modification-obligations, OpenSSL, MIT, LicenseRef-scancode-other-copyleft, bzip2-1.0.6, NTP, W3C, metamail, Beerware, RSA-MD, LicenseRef-scancod...
2,016
gpdb
sshyran
PLpgSQL
Code
85
223
DROP TABLE test_trig; DROP FUNCTION fn_trig(); CREATE TABLE test_trig(id int, aaa text) DISTRIBUTED BY (id); CREATE OR REPLACE FUNCTION fn_trig() RETURNS TRIGGER LANGUAGE plpgsql NO SQL AS $$ BEGIN NEW.id = NEW.id + 1; RAISE NOTICE '%', NEW.id; RETURN NEW; END $$; INSERT INTO test_trig VALUES (1, 'before creating...
35,201
https://github.com/killermann/facilitator-cards/blob/master/static/css/scss/_pages.scss
Github Open Source
Open Source
Unlicense
2,021
facilitator-cards
killermann
SCSS
Code
1,386
5,700
.page-header { margin-top: 4vw; font-family: $theme-font; } .single { padding-top: 2em; } .content { p, h1, h2, h3, h4, ul, ol, blockquote, address, pre, img { @extend .type-wrap; } p:first-of-type { @extend .big-copy; } h2, h3, h4 { margin-bottom: 1.5rem; ...
32,622
https://github.com/GoranGit/JavaScript-UI-and-DOM/blob/master/Exams/Sample-exam-1/task-1/task-files/scripts.js
Github Open Source
Open Source
MIT
null
JavaScript-UI-and-DOM
GoranGit
JavaScript
Code
241
764
function createCalendar(selector, events) { var element = document.querySelector(selector); if (!element) { throw Error(); } var div = document.createElement("div"); var span = document.createElement("span"); var content = document.createElement('p'); var dFrag = document.createDo...
15,155
https://github.com/salehaliii/FreezeYou/blob/master/app/src/main/java/cf/playhi/freezeyou/ShowLogcatActivity.java
Github Open Source
Open Source
Apache-2.0
null
FreezeYou
salehaliii
Java
Code
81
411
package cf.playhi.freezeyou; import android.os.Bundle; import android.widget.EditText; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import cf.playhi.freezeyou.app.FreezeYouBaseActivity; import static cf.playhi.freezeyou.ThemeUtils.processActionBar; import static cf.pl...
8,975
https://github.com/skippyfox/fursvp/blob/master/src/fursvp.api/Requests/SendVerificationCodeRequest.cs
Github Open Source
Open Source
MIT
2,022
fursvp
skippyfox
C#
Code
83
188
// <copyright file="SendVerificationCodeRequest.cs" company="skippyfox"> // Copyright (c) skippyfox. All rights reserved. // Licensed under the MIT license. See the license.md file in the project root for full license information. // </copyright> namespace Fursvp.Api.Requests { using System.ComponentModel.DataAnn...
26,309
https://github.com/brymko/rustls/blob/master/rustls/src/server/builder.rs
Github Open Source
Open Source
Apache-2.0, ISC, MIT
2,021
rustls
brymko
Rust
Code
553
1,738
use crate::error::Error; use crate::key; use crate::keylog::NoKeyLog; use crate::kx::SupportedKxGroup; use crate::server::handy; use crate::server::{ResolvesServerCert, ServerConfig}; use crate::suites::SupportedCipherSuite; use crate::verify; use crate::versions; use std::sync::Arc; /// Building a [`ServerConfig`] i...
54,282
https://github.com/Pronoy999/Petcoset/blob/master/DB/StoredProcedures/Customer/sp_InsertCustomerPetDetails.sql
Github Open Source
Open Source
MIT
null
Petcoset
Pronoy999
SQL
Code
53
249
drop procedure if exists sp_InsertCustomerPetDetails; create procedure sp_InsertCustomerPetDetails(par_customerId int, par_petType enum ('DOG','CAT'), par_petName varchar(255), par_bree...
49,942
https://github.com/rapid7/guardian/blob/master/asset/app/js/authorization.js
Github Open Source
Open Source
Apache-2.0
2,021
guardian
rapid7
JavaScript
Code
54
224
(function(global, JQuery) { new View('#authorization-selector', '/_asset/app/view/authorization/selector.ejs', function(err, view) { if (err) return console.log(err); // Add click events JQuery('.authorization-selector-tab').click(function(e) { e.preventDefault(); var selector = JQuery(this);...
38,820
https://github.com/frankiegu/wifidog-auth-flask/blob/master/app/views.py
Github Open Source
Open Source
MIT
2,017
wifidog-auth-flask
frankiegu
Python
Code
674
3,685
import flask import json import time from app.forms import NetworkForm, LoginVoucherForm, NewVoucherForm, BroadcastForm from app.models import Auth, Gateway, Network, Ping, Voucher, generate_token, db from app.payu import get_transaction, set_transaction, capture # from app.services import influx_db from app.signals i...
6,572
https://github.com/flyfish0594/web/blob/master/SpeedPHP/Extensions/bodyInfo.php
Github Open Source
Open Source
BSD-3-Clause
2,018
web
flyfish0594
PHP
Code
35
584
<?php $aryBodyId2Info=array( '1'=>array('eye','眼部整形'), '2'=>array('bosom','胸部整形'), '3'=>array('skin','皮肤美容'), '4'=>array('brow','眉部整形'), '5'=>array('jowl','颌面整形'), '6'=>array('belly','腰腹部整形'), '7'=>array('nose','鼻部整形'), '8'=>array('mouthlip','唇部整形'), '9'=>array('ear','耳部整形'), '10'=>array('hair','毛发整...
4,003
https://github.com/qcubed-4/application/blob/master/src/Css/DisplayType.php
Github Open Source
Open Source
MIT
2,019
application
qcubed-4
PHP
Code
91
181
<?php /** * * Part of the QCubed PHP framework. * * @license MIT * */ namespace QCubed\Css; /** * Class Display * * @package QCubed\Css * @was QDisplayStyle */ abstract class DisplayType { /** Hide the control */ const NONE = 'none'; /** Treat as a block element */ const BLOCK = 'block'; ...
47,753
https://github.com/AbdullhRtima/github-trend-app/blob/master/src/lib/dummy/index.ts
Github Open Source
Open Source
MIT
null
github-trend-app
AbdullhRtima
TypeScript
Code
7
17
export { repository, developer } from './dummy';
4,953
https://github.com/hnjm/TilemapTools/blob/master/Source/TilemapTools/Tiled/Data.cs
Github Open Source
Open Source
Apache-2.0
2,017
TilemapTools
hnjm
C#
Code
330
931
using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; namespace TilemapTools.Tiled { /// <summary> /// Reresents embedded data. /// </summary> public class Data { /// <summary> /// Gets or sets the encoding. /// </summary> pub...
40,238
https://github.com/atapia2/COMP395_W2020_AT/blob/master/ClassWork_Jan15_17_22/Assets/Projectile.cs
Github Open Source
Open Source
MIT
null
COMP395_W2020_AT
atapia2
C#
Code
440
1,342
using System.Collections; using System.Collections.Generic; using UnityEngine; delegate float rate_of_change(float x, float y); public class Projectile : MonoBehaviour { public float rotationRadius = 10; public float rotationSpeed = 30; //angular speed // private Vector3 oldPos; private Vector3 o...
5,595
https://github.com/qeedquan/misc_utilities/blob/master/gfx/processing/point_size/point_size.pde
Github Open Source
Open Source
MIT
2,023
misc_utilities
qeedquan
null
Spoken
73
171
void setup() { size(1440, 900); } void draw() { background(255); dots(0, 0, 80); } void dots(int x0, int y0, int n) { int x = x0 + n/2; int y = y0 + n/2; for (int i = 0; i < n; i++) { stroke(0, 0, i); strokeWeight(i); point(x, y); x += 2*n; if (x + 2*n >= width) { x = x0 + n/2; ...
39,365
https://github.com/sudharsan-selvaraj/webdriverio/blob/master/packages/webdriverio/tests/commands/element/getCSSProperty.test.ts
Github Open Source
Open Source
MIT
2,021
webdriverio
sudharsan-selvaraj
TypeScript
Code
79
244
// @ts-ignore mocked (original defined in webdriver package) import gotMock from 'got' import { remote } from '../../../src' const got = gotMock as any as jest.Mock describe('getCSSProperty test', () => { it('should allow to get the css property of an element', async () => { const browser = await remote({...
47,743
https://github.com/amida-tech/fhir-react/blob/master/components/shared/InfoDropdown.js
Github Open Source
Open Source
Apache-2.0
null
fhir-react
amida-tech
JavaScript
Code
304
1,071
/* eslint-disable react/require-default-props */ /* eslint-disable react/forbid-prop-types */ import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import uuidv4 from 'uuid/v4'; import { withStyles } from '@material-ui/core/styles'; import { FontAwesomeIcon } from '@fortawesome/react-fonta...
31,714
https://github.com/nikolaybutnik/employee-tracker/blob/master/assets/mysql/seed.sql
Github Open Source
Open Source
MIT
null
employee-tracker
nikolaybutnik
SQL
Code
238
611
-- Insert department names -- INSERT INTO department (`name`) VALUES ("Human Resources"); INSERT INTO department (`name`) VALUES ("Engineering"); INSERT INTO department (`name`) VALUES ("Finance"); INSERT INTO department (`name`) VALUES ("Support"); -- Insert HR roles -- INSERT INTO `role` (title, salary, department_...
24,683
https://github.com/bellmit/sofastack-showcase/blob/master/account-center/account-center-dal/src/main/java/com/aliyun/gts/financial/showcases/sofa/dao/AccountDAO.java
Github Open Source
Open Source
Apache-2.0
2,020
sofastack-showcase
bellmit
Java
Code
64
252
package com.aliyun.gts.financial.showcases.sofa.dao; import java.util.List; import com.aliyun.gts.financial.showcases.sofa.facade.model.Account; import org.springframework.dao.DataAccessException; public interface AccountDAO { void addAccount(Account account) throws DataAccessException; int updateBalance(...
47,244
https://github.com/wahdankedai/perfectstore/blob/master/app/Http/Controllers/UserController.php
Github Open Source
Open Source
MIT
2,016
perfectstore
wahdankedai
PHP
Code
258
814
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; use Session; use App\User; use App\Role; class UserController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ ...
17,754
https://github.com/serialization/ogssViewWithJava/blob/master/src/main/scala/qq/editor/FieldPreferences.scala
Github Open Source
Open Source
MIT
2,019
ogssViewWithJava
serialization
Scala
Code
544
1,706
package qq.editor import ogss.common.java.api; import java.util.prefs.Preferences; import ogss.common.java.internal; import ogss.common.java.internal.fieldTypes; import scala.collection.mutable; import qq.util.Vector; import qq.util.binding._; /** Persistently stored preferences for a field in a skill user type. * ...
32,221
https://github.com/cloud-custodian/cloud-custodian/blob/master/tests/test_cwe.py
Github Open Source
Open Source
Apache-2.0
2,023
cloud-custodian
cloud-custodian
Python
Code
664
3,736
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 import json import jmespath import jmespath.parser import pytest from pytest_terraform import terraform from unittest import TestCase from .common import event_data, BaseTest from c7n.cwe import CloudWatchEvents from c7n.resources import c...
16,645
https://github.com/Catfeeds/Job_Gom/blob/master/video/pluspcfed/gomeplusUI/src/pc-widget/icon/icon.scss
Github Open Source
Open Source
MIT
2,018
Job_Gom
Catfeeds
SCSS
Code
372
2,498
@charset "UTF-8"; [class^="iconn-"], [class*="iconn-"] { vertical-align: -1px; } .iconn-1:before{content: '\ea55';} .iconn-2:before{content: '\ea57';} .iconn-3:before{content: '\e9a5';} .iconn-4:before{content: '\e991';} .iconn-5:before{content: '\eaa2';} .iconn-6:before{content: '\ea78';} .iconn-7:before{content: ...
27,656
https://github.com/zzheffn/spring-cloud-sleuth/blob/master/spring-cloud-sleuth-core/src/test/java/org/springframework/cloud/sleuth/instrument/async/TraceAsyncAspectTest.java
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, Apache-2.0
2,018
spring-cloud-sleuth
zzheffn
Java
Code
101
639
package org.springframework.cloud.sleuth.instrument.async; import brave.Tracing; import brave.propagation.StrictScopeDecorator; import brave.propagation.ThreadLocalCurrentTraceContext; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.reflect.MethodSignature; import org.assertj.core.api.BDDAssertion...
18,128
https://github.com/macrocode/mcgiapp/blob/master/src/pages/oe/oe.scss
Github Open Source
Open Source
Apache-2.0
null
mcgiapp
macrocode
SCSS
Code
3
9
page-oe { }
17,635
https://github.com/danstarns/website/blob/master/tests/src/config.ts
Github Open Source
Open Source
MIT
2,022
website
danstarns
TypeScript
Code
34
116
import dotenv from "dotenv"; dotenv.config(); export const HTTP_PORT = process.env.HTTP_PORT as string; export const EMAIL_SENDER_ADDRESS = process.env.EMAIL_SENDER_ADDRESS as string; export const EMAIL_SENDER_PASSWORD = process.env .EMAIL_SENDER_PASSWORD as string; export const EMAIL_HOST = process.env.EMAIL_HOST a...
50,276
https://github.com/tgrwb/gulp-webpack/blob/master/lib/webpack.js
Github Open Source
Open Source
MIT
null
gulp-webpack
tgrwb
JavaScript
Code
39
164
const {dest} = require('gulp'); const _webpack = require('./_webpack.js'); module.exports = { build, watch }; function build(cb) { const params = require('./_get_tgrwb_gulp_config.js')('webpack'); return _webpack(cb, params) .pipe(dest(params.dist)); } function watch(cb) { const params = require('./_get_tgr...
10,437
https://github.com/douthwja01/OpenMAS/blob/master/objects/agent_2D_formation_ORCA.m
Github Open Source
Open Source
MIT
2,023
OpenMAS
douthwja01
MATLAB
Code
91
270
% Author: James A. Douthwaite classdef agent_2D_formation_ORCA < agent_2D_formation_RVO & agent_2D_ORCA %% INITIALISE THE AGENT SPECIFIC PARAMETERS properties % PROPERTITIES UNIQUE TO AGENT CLASS end %% ///////////////////////// MAIN METHODS ///////////////////////////// methods % Con...
6,702
https://github.com/themarshallproject/open-endrun/blob/master/app/assets/stylesheets/app/email_signup.scss
Github Open Source
Open Source
MIT
2,021
open-endrun
themarshallproject
SCSS
Code
827
2,974
.email-onboard-container-wrapper { &.rendered { border-bottom: 1px solid #cececc; } } body.mobile, body.tablet { .archive-link { display: none; } } .email-onboard { color: #111111; border: none; font-family: "Pressura", Courier; font-weight: normal; font-size: 12px;...
47,058
https://github.com/herodez/metopay/blob/master/app/Soap/Data/Bank.php
Github Open Source
Open Source
MIT
null
metopay
herodez
PHP
Code
14
44
<?php namespace App\Soap\Data; use App\Soap\Data\SoapModel; class Bank extends SoapModel { // Bank class }
10,694
https://github.com/Crshi/lmz/blob/master/models/TagArticleRel.go
Github Open Source
Open Source
MIT
null
lmz
Crshi
Go
Code
28
69
package models // TagArticle 关联表 type TagArticle struct { Id int TagId int ArticleId int } // TableName 获取表名 func (a *TagArticle) TableName() string { return TagArticleTBName() }
36,436
https://github.com/xinxin321198/loserStar_Jfinal/blob/master/WebContent/js/common.js
Github Open Source
Open Source
MIT
2,023
loserStar_Jfinal
xinxin321198
JavaScript
Code
620
2,832
/** * */ /** * 公共ajax函数 * @param url * @param data * @param callback * @returns {String} */ function ajaxFunc(url, data, callback){ var result = ""; $.ajax({ type : "post", url : encodeURI(encodeURI(cxt + url)), data : data, dataType : "html", contentType: "application/x-www-form-urlencoded; charse...
33,101
https://github.com/DTRW/CorrelationRecorder/blob/master/src/main/java/com/blazemeter/jmeter/correlation/gui/RuleConfiguration.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,020
CorrelationRecorder
DTRW
Java
Code
943
3,918
package com.blazemeter.jmeter.correlation.gui; import com.blazemeter.jmeter.correlation.core.CorrelationComponentsRegistry; import com.blazemeter.jmeter.correlation.core.CorrelationRule; import com.blazemeter.jmeter.correlation.core.CorrelationRulePartTestElement; import com.blazemeter.jmeter.correlation.core.extracto...
48,202
https://github.com/framos-gemini/giapi-glue-cc/blob/master/external/activemq-cpp-library-3.4.1/src/main/activemq/commands/Message.h
Github Open Source
Open Source
BSD-3-Clause
null
giapi-glue-cc
framos-gemini
C
Code
1,380
3,455
/* * 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 may ...
34,930
https://github.com/mParticle/mparticle-android-sdk/blob/master/testutils/src/androidTest/java/com/mparticle/LegacyStartupTest.java
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,023
mparticle-android-sdk
mParticle
Java
Code
108
405
package com.mparticle; import android.Manifest; import android.content.Context; import androidx.test.rule.GrantPermissionRule; import com.mparticle.internal.Logger; import org.junit.After; import org.junit.Assume; import org.junit.Before; import org.junit.Rule; import java.lang.reflect.Method; @LegacyOnly public ...
27,519
https://github.com/MaxHonggg/professional_boost/blob/master/iostream/traits.cpp
Github Open Source
Open Source
BSD-2-Clause
2,022
professional_boost
MaxHonggg
C++
Code
83
520
// Copyright (c) 2016 // Author: Chrono Law #include <std.hpp> using namespace std; //#include <boost/type_traits.hpp> #include <boost/iostreams/concepts.hpp> #include <boost/iostreams/device/array.hpp> #include <boost/iostreams/filter/counter.hpp> #include <boost/iostreams/traits.hpp> namespace io = boost::iostream...
22,972
https://github.com/chesedo/rust-design-patterns-macro/blob/master/despatma/src/abstract_factory.rs
Github Open Source
Open Source
MIT
null
rust-design-patterns-macro
chesedo
Rust
Code
308
1,010
use proc_macro2::TokenStream; use quote::quote; use syn::parse::{Parse, ParseStream, Result}; use syn::punctuated::Punctuated; use syn::{parse_quote, ItemTrait, Token, Type, TypeParamBound}; /// Holds the tokens for the attributes passed to an AbstractFactory attribute macro /// Expects input in the following format /...
38,319
https://github.com/tvarner/SimulationEngine/blob/master/src/app/components/modals/SpinnerModal/SpinnerModal.js
Github Open Source
Open Source
MIT
null
SimulationEngine
tvarner
JavaScript
Code
40
155
import React from 'react'; import Modal from './../../utilComponents/react-modal/lib/index'; import './styles.css'; export default class SpinnerModal extends React.Component { constructor () { super(); } render () { return ( <Modal className={'spinner'} overlayClassName={'spinner-overlay'} isOp...
53,347
https://github.com/renecutipa/aytana001/blob/master/app/Http/Controllers/FUAController.php
Github Open Source
Open Source
MIT
2,019
aytana001
renecutipa
PHP
Code
822
4,460
<?php namespace App\Http\Controllers; use App\FUA; use App\Dx; use App\Parametro; use Illuminate\Http\Request; use View; use App\Afiliado; use App\User; use App\Historia; use DB; use DateTime; class FUAController extends Controller { public function __construct() { //$this->middleware('auth'); ...
8,327
https://github.com/tcollinsworth/kafka-publisher/blob/master/lib/validate-key.js
Github Open Source
Open Source
MIT
null
kafka-publisher
tcollinsworth
JavaScript
Code
47
85
// discard message if bad key - (null, undefined, Boolean, Symbol) must be (string, number, object) export function validateKey(key) { if (typeof key === 'string' || typeof key === 'number') { return key } throw new Error(`key should be a number or string, was ${typeof key}`) }
11,003
https://github.com/GolosChain/golos.io/blob/master/src/components/advertisement/KunaSideAdvertisement/KunaSideAdvertisement.js
Github Open Source
Open Source
MIT
2,019
golos.io
GolosChain
JavaScript
Code
76
241
import React, { useState, useRef } from 'react'; import styled from 'styled-components'; const VARIANTS_COUNT = 3; const Wrapper = styled.a` display: block; margin-bottom: 20px; `; const Img = styled.img` display: block; width: 200px; height: 400px; `; export default function KunaSideAdvertisement() { c...
54,250
https://github.com/ZeeZed/Flappy-Bird-Clone/blob/master/src/main/java/zeezed/flappybird/util/Box.java
Github Open Source
Open Source
MIT
null
Flappy-Bird-Clone
ZeeZed
Java
Code
123
432
package zeezed.flappybird.util; import org.joml.AABBf; import org.joml.Vector2f; import org.joml.Vector3f; public class Box { private Vector2f size; private AABBf aabb; private Vector3f min; private Vector3f max; public Box(Vector2f position, Vector2f size) { this.size = size; this.min = new Vector3...
41,542
https://github.com/bmpieretti/splash-scripts/blob/master/src/exceptions/tests/ValidationException.spec.js
Github Open Source
Open Source
MIT
null
splash-scripts
bmpieretti
JavaScript
Code
71
265
import { chance } from '@splash-plus/jest-config'; import ValidationException from '../ValidationException'; import SplashScriptsException from '../SplashScriptsException'; test('ValidationException: Should init ValidationException with message and default type', () => { const message = chance.sentence(); const va...
46,290
https://github.com/LiveAlone/elasticsearch-jdbc-client/blob/master/search-demo/src/main/java/com/qingqing/search/demo/util/JsonUtil.java
Github Open Source
Open Source
Apache-2.0
null
elasticsearch-jdbc-client
LiveAlone
Java
Code
674
2,182
package com.qingqing.search.demo.util; import org.codehaus.jackson.*; import org.codehaus.jackson.map.*; import org.codehaus.jackson.map.annotate.JsonSerialize.Inclusion; import java.io.IOException; import java.io.InputStream; import java.text.SimpleDateFormat; import java.util.*; /** * 与xstream一样,反序列化时,遇到未知的field...
44,942
https://github.com/BrunoEberhard/minimal-j/blob/master/ext/lanterna/src/main/java/org/minimalj/frontend/impl/lanterna/toolkit/LanternaDialog.java
Github Open Source
Open Source
Apache-2.0
2,023
minimal-j
BrunoEberhard
Java
Code
58
251
package org.minimalj.frontend.impl.lanterna.toolkit; import org.minimalj.frontend.Frontend.IContent; import org.minimalj.frontend.action.Action; import org.minimalj.frontend.page.IDialog; import com.googlecode.lanterna.gui2.BasicWindow; import com.googlecode.lanterna.gui2.Component; import com.googlecode.lanterna.gui...
53,169
https://github.com/alamrachmatk/xpro-tradie-adminsystem/blob/master/app/Biddings.php
Github Open Source
Open Source
MIT
2,020
xpro-tradie-adminsystem
alamrachmatk
PHP
Code
22
71
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Biddings extends Model { protected $fillable = [ 'order_id', 'company_id', 'labor_time', 'price', 'status', 'description' ]; }
49,990
https://github.com/hlngo/openeis/blob/master/openeis/projects/urls.py
Github Open Source
Open Source
BSD-2-Clause-Views
2,015
openeis
hlngo
Python
Code
602
1,532
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright (c) 2014, Battelle Memorial Institute # 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. Redistrib...
30,907
https://github.com/KaitaoQiu/openlimits/blob/master/crates/openlimits-binance/src/model/exchange_filter.rs
Github Open Source
Open Source
BSD-2-Clause
2,021
openlimits
KaitaoQiu
Rust
Code
42
153
use serde::Deserialize; use serde::Serialize; /// This enum represents an openlimits-exchange filter #[derive(Debug, Serialize, Deserialize, Clone)] #[serde(tag = "filterType", rename_all = "SCREAMING_SNAKE_CASE")] pub enum ExchangeFilter { #[serde(rename_all = "camelCase")] ExchangeMaxNumOrders { max_num_orde...
35,481
https://github.com/jsdelivrbot/dockerfiles-1/blob/master/data/a/akosratku/drsp/Dockerfile
Github Open Source
Open Source
MIT
2,018
dockerfiles-1
jsdelivrbot
Dockerfile
Code
10
61
FROM nginx:alpine COPY nginx.conf /etc/nginx/nginx.conf COPY conf-generator.sh /usr/local/bin/ ENTRYPOINT ["conf-generator.sh"]
13,924
https://github.com/Rowantrek/A3-Antistasi/blob/master/A3-Antistasi/functions/Garrison/fn_countGarrison.sqf
Github Open Source
Open Source
MIT
2,022
A3-Antistasi
Rowantrek
SQF
Code
149
358
params ["_garrison", "_returnTogether"]; /* Counts a given garrison format * Params: * _garrison: ARRAY : A garrison in the correct format * _returnTogether: BOOLEAN : Chooses the output format * * Returns: * _result: NUMBER if _returnTogether == true : All units counted and put together * _result...
10,005
https://github.com/kaoZ57/ProjactBookingKurupan-API/blob/master/app/Models/items.php
Github Open Source
Open Source
MIT
null
ProjactBookingKurupan-API
kaoZ57
PHP
Code
52
201
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class items extends Model { use HasFactory; public $table = 'items'; public $timestamps = true; protected $fillable = [ 'id', 'name', 'item_type_id', ...
32,959
https://github.com/MineGame159/canvas/blob/master/src/main/java/grondag/canvas/terrain/occlusion/shadow/ShadowOccluder.java
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, Apache-2.0
2,021
canvas
MineGame159
Java
Code
864
2,786
/* * Copyright 2019, 2020 grondag * * 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 agr...
32,840
https://github.com/steakknife/pcgeos/blob/master/Library/Breadbox/Html4Par/asmtools/asmtoolsManager.asm
Github Open Source
Open Source
Apache-2.0
2,022
pcgeos
steakknife
Assembly
Code
756
2,490
include stdapp.def include hugearr.def SetGeosConvention ; set calling convention ASM_TEXT segment public 'CODE' if ERROR_CHECK global F_CHKSTK@:far ; Called with AX containing the number of bytes to be allocated on the stack. ; Must return with ...
42,126
https://github.com/yurivict/USD/blob/master/pxr/usdImaging/usdImaging/dataSourceAttribute.cpp
Github Open Source
Open Source
Apache-2.0
2,021
USD
yurivict
C++
Code
395
1,544
// // Copyright 2020 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
33,268
https://github.com/topouzid/miwok/blob/master/app/src/main/java/com/example/android/miwok/PhrasesFragment.java
Github Open Source
Open Source
Apache-2.0
null
miwok
topouzid
Java
Code
804
2,006
package com.example.android.miwok; import android.content.Context; import android.media.AudioManager; import android.media.MediaPlayer; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Ad...
53,022
https://github.com/eonx-com/easy-monorepo/blob/master/packages/EasyErrorHandler/src/Exceptions/BaseException.php
Github Open Source
Open Source
MIT
2,023
easy-monorepo
eonx-com
PHP
Code
42
317
<?php declare(strict_types=1); namespace EonX\EasyErrorHandler\Exceptions; use EonX\EasyErrorHandler\Exceptions\Traits\LogLevelAwareExceptionTrait; use EonX\EasyErrorHandler\Exceptions\Traits\StatusCodeAwareExceptionTrait; use EonX\EasyErrorHandler\Exceptions\Traits\SubCodeAwareExceptionTrait; use EonX\EasyErrorHandl...
4,661
https://github.com/cuplv/P2-Hackathon/blob/master/Android-InsecureBankv2-master/InsecureBankv2_moveLog/inst/decomp/smali/com/google/android/gms/games/internal/GamesClientImpl$LoadAppContentsResultImpl.smali
Github Open Source
Open Source
MIT
2,017
P2-Hackathon
cuplv
Smali
Code
127
714
.class final Lcom/google/android/gms/games/internal/GamesClientImpl$LoadAppContentsResultImpl; .super Lcom/google/android/gms/games/internal/GamesClientImpl$GamesDataHolderResult; .source "dalvik_source_app-debug.apk" # interfaces .implements Lcom/google/android/gms/games/appcontent/AppContents$LoadAppContentResult; ...
11,133
https://github.com/juseongkr/BOJ/blob/master/acmicpc/13250.cpp
Github Open Source
Open Source
Apache-2.0
2,021
BOJ
juseongkr
C++
Code
79
225
#include <iostream> #include <iomanip> using namespace std; #define MAX 1000001 int n; double dp[MAX]; double solve(int k) { if (k == 0) return 0; if (dp[k] != -1) return dp[k]; dp[k] = 0; for (int i=1; i<=6; ++i) { if (k-i >= 0) dp[k] += solve(k-i) + 1; else dp[k] += 1; } return dp[k] /= 6; } ...
20,692
https://github.com/openscihub/osh-async-series/blob/master/test/test.js
Github Open Source
Open Source
MIT
2,014
osh-async-series
openscihub
JavaScript
Code
55
193
var expect = require('expect.js'); var series = require('..'); describe('series', function() { it('should work', function(done) { var v = 0; series( [ function(done) { setTimeout(function() { expect(v).to.be(0); v = 1; done(null, 'first'); ...
54,291
https://github.com/nellsel/CS264-Lab/blob/master/Lab8/Lab9@lab9/Square.cpp
Github Open Source
Open Source
MIT
2,014
CS264-Lab
nellsel
C++
Code
81
305
/* * Square.cpp * * Created on: 30 Nov 2010 * Author: john */ #include "Square.h" void Square::draw(const Cairo::RefPtr<Cairo::Context> cr, const int width, const int height) const{ // draw a square cr->set_source_rgb(0.8, 0.0, 0.0); cr->move_to((x_ - width_/2.0)*width, (y_ - width_/2.0)*height); ...
36,002
https://github.com/marscore/hhvm/blob/master/hphp/test/slow/ext_misc/ext_misc.php
Github Open Source
Open Source
PHP-3.01, Zend-2.0
2,019
hhvm
marscore
PHP
Code
51
191
<?php function VS($x, $y) { var_dump($x === $y); if ($x !== $y) { echo "Failed: $y\n"; echo "Got: $x\n"; var_dump(debug_backtrace()); } } function VERIFY($x) { VS($x, true); } ////////////////////////////////////////////////////////////////////// VERIFY(connection_aborted() != true); VERIFY(c...
9,395
https://github.com/cauli/TamoJunto/blob/master/app/views/videos/show.html.slim
Github Open Source
Open Source
MIT
2,014
TamoJunto
cauli
null
Spoken
48
198
.single-content header.title .row .top .large-12.columns =image_tag ('video-icon.png'), class: 'icon-single-page' .title h4 small Video h2 = @video.title .row article .large-12.columns .embed iframe width="960"...
16,537
https://github.com/dionysus6/dashboard-umi-dva/blob/master/node_modules/umi/node_modules/umi-build-dev/src/getConfig/configPlugins/disableServiceWorker.js
Github Open Source
Open Source
MIT
null
dashboard-umi-dva
dionysus6
JavaScript
Code
19
56
export default function(api) { return { name: 'disableServiceWorker', onChange() { api.service.restart(/* why */ 'Config disableServiceWorker Changed'); }, }; }
4,226
https://github.com/KaSamViesselman/Tm2/blob/master/TerminalManagement2/AboutHelp.aspx
Github Open Source
Open Source
BSD-3-Clause, MIT
2,019
Tm2
KaSamViesselman
null
Spoken
80
290
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="AboutHelp.aspx.vb" Inherits="KahlerAutomation.TerminalManagement2.AboutHelp" %> <!DOCTYPE html> <html lang="en"> <head runat="server"> <title>Help : About</title> <link href="helpstyle.css" type="text/css" rel="stylesheet" /> </head> <body> <form id="About...
35,953
https://github.com/JetBrains/intellij-community/blob/master/python/helpers/typeshed/stubs/oauthlib/oauthlib/openid/connect/core/grant_types/__init__.pyi
Github Open Source
Open Source
Apache-2.0, MIT
2,023
intellij-community
JetBrains
Python
Code
38
111
from .authorization_code import AuthorizationCodeGrant as AuthorizationCodeGrant from .base import GrantTypeBase as GrantTypeBase from .dispatchers import ( AuthorizationCodeGrantDispatcher as AuthorizationCodeGrantDispatcher, AuthorizationTokenGrantDispatcher as AuthorizationTokenGrantDispatcher, ImplicitT...
20,877
https://github.com/SwissDataScienceCenter/renku-graph/blob/master/token-repository/src/test/scala/ch/datascience/tokenrepository/MicroserviceRoutesSpec.scala
Github Open Source
Open Source
Apache-2.0
2,022
renku-graph
SwissDataScienceCenter
Scala
Code
454
1,409
/* * Copyright 2021 Swiss Data Science Center (SDSC) * A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and * Eidgenössische Technische Hochschule Zürich (ETHZ). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licen...
51,338
https://github.com/EMattfolk/ba-rs/blob/master/src/lib.rs
Github Open Source
Open Source
MIT
2,020
ba-rs
EMattfolk
Rust
Code
1,994
5,358
//! This library contains the main functionality for creating a bar. extern crate chrono; use chrono::prelude::*; extern crate i3ipc; use i3ipc::reply::Node; use i3ipc::reply::NodeType; use i3ipc::I3Connection; use std::fs::read_to_string; // Some icons for programs, in order of priority const FIREFOX: &str = ""; ...
9,074
https://github.com/bmancini55/iOSExamples-DockedKeyboardView/blob/master/KeyboardInput/CustomView.h
Github Open Source
Open Source
MIT
2,018
iOSExamples-DockedKeyboardView
bmancini55
C
Code
36
112
// // CustomView.h // KeyboardInput // // Created by Brian Mancini on 10/4/14. // Copyright (c) 2014 iOSExamples. All rights reserved. // #import <UIKit/UIKit.h> #import "KeyboardBar.h" @interface CustomView : UIView @property (weak, nonatomic) id<KeyboardBarDelegate> keyboardBarDelegate; @end
22,223
https://github.com/dodona-edu/dodona/blob/master/app/policies/rights_request_policy.rb
Github Open Source
Open Source
MIT
2,023
dodona
dodona-edu
Ruby
Code
45
152
class RightsRequestPolicy < ApplicationPolicy class Scope < Scope def resolve scope end end def index? user&.zeus? end def new? user end def create? user&.student? && user.institution.present? && (user.rights_request.nil? || !user.rights_request.persisted?) end def approv...
39,604
https://github.com/mathcass/deconfounded_lexicon_induction/blob/master/text-performance-attribution/src/models/linear/confound_regression.py
Github Open Source
Open Source
MIT
2,022
deconfounded_lexicon_induction
mathcass
Python
Code
324
700
"""Regression model which only has confound variables as features. Given some text X, confounds C, and targets Y, this file handles the logic for training a linear model which uses C as features and predicts Y. """ from __future__ import absolute_import from __future__ import division from __future__ import print_fun...
23,225
https://github.com/snc2/tequila/blob/master/src/tequila/tools/qng.py
Github Open Source
Open Source
MIT
2,020
tequila
snc2
Python
Code
830
3,148
from tequila import TequilaException from tequila.hamiltonian import paulis from tequila.objective.objective import Objective, ExpectationValueImpl, Variable, ExpectationValue from tequila.circuit.circuit import QCircuit from tequila.simulators.simulator_api import compile_objective from tequila.circuit.gradient import...
31,199
https://github.com/praxisufmg/leitura-do-lugar/blob/master/app/views/admin/medias/_fields.slim
Github Open Source
Open Source
CC0-1.0
2,021
leitura-do-lugar
praxisufmg
null
Spoken
20
86
.media-inline-form.nested-fields = f.text_field :name, class: 'media-inline-form-name' .media-inline-form-file = f.file_field :file = link_to_remove_association icon_tag(:x, "Marcar para remoção"), f, class: 'button tertiary'
50,352
https://github.com/qiu-yongheng/Ship/blob/master/app/src/main/java/com/kc/shiptransport/util/SelectUtil.java
Github Open Source
Open Source
Apache-2.0
null
Ship
qiu-yongheng
Java
Code
198
844
package com.kc.shiptransport.util; import android.content.Context; import android.text.TextUtils; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com.bigkoo.pickerview.OptionsPickerView; import com.bigkoo.pickerview.listener.CustomListen...
25,182
https://github.com/qilongHe997/docs/blob/master/src/index.js
Github Open Source
Open Source
0BSD
2,021
docs
qilongHe997
JavaScript
Code
49
168
import Vue from 'vue' import ElementUI from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' import DocButton from './components/DocButton' const components = [DocButton] Vue.use(ElementUI) const DocComponent = { // 必须得有install方法 install(Vue, options) { Object.values(components).forEach(co...
39,383
https://github.com/ruthpeter2490/BE_Project_Final/blob/master/mlServer/app.py
Github Open Source
Open Source
MIT
2,020
BE_Project_Final
ruthpeter2490
Python
Code
283
1,048
from __future__ import print_function from PIL import Image # Notice the 'from PIL' at the start of the line from flask import request, Flask, jsonify from werkzeug.utils import secure_filename from flask_uploads import UploadSet, configure_uploads import config import time import os import shutil import sys from test...
52,383
https://github.com/GuilhermeP96/ATX2/blob/master/Web/indexAdmin.php
Github Open Source
Open Source
Apache-2.0
null
ATX2
GuilhermeP96
PHP
Code
376
1,707
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <?php /* esse bloco de código em php verifica se existe a sessão, pois o usuário pode simplesmente não fazer o login e digitar na barra de endereço do ...
7,059
https://github.com/keymind/Epi-Info-Community-Edition/blob/master/Epi.Windows/Controls/ComboBoxItem.cs
Github Open Source
Open Source
Apache-2.0
2,021
Epi-Info-Community-Edition
keymind
C#
Code
222
504
#region Namespaces using System; using System.Collections.Generic; using System.Text; #endregion //Namespaces namespace Epi.Windows.Controls { /// <summary> /// A combo box that holds a key, value, and text /// </summary> public class ComboBoxItem { #region Private Data Members pri...
51,874
https://github.com/ridecr/Ride.CR/blob/master/react-ui/src/scss/_messages.scss
Github Open Source
Open Source
MIT
null
Ride.CR
ridecr
SCSS
Code
298
1,115
// Source: https://codepen.io/AllThingsSmitty/pen/jommGQ .imessage span { background-color: $dark; display: flex; flex-direction: column; margin: 0 auto 0; max-width: 600px; } .imessage span p { border-radius: 1.15rem; line-height: 1.25; padding: 0.5rem 0.875rem; position: relative; word-wrap: bre...
25,915
https://github.com/ChaseSnapshot/smcity/blob/master/bin/test/test_global_data_janitor.py
Github Open Source
Open Source
Unlicense
2,014
smcity
ChaseSnapshot
Python
Code
336
1,075
''' Tests the global_data_janitor script ''' import datetime import logging import subprocess from boto.dynamodb2.table import Table from ConfigParser import ConfigParser from threading import Thread from smcity.models.aws.aws_data import AwsData, AwsDataFactory logger = logging.getLogger(__name__) class TestGloba...
23,411
https://github.com/roblox-ts/roblox-ts-org-invite/blob/master/src/index.ts
Github Open Source
Open Source
MIT
null
roblox-ts-org-invite
roblox-ts
TypeScript
Code
159
582
import { Request, Response } from 'express' import fetch from 'node-fetch' import org from 'libnpmorg' import team from 'libnpmteam' import { URLSearchParams } from 'url' require('dotenv').config() const CAPTCHA_VERIFY_URL = 'https://www.google.com/recaptcha/api/siteverify' const NPM_TOKEN = { token: process.env.NPM_...
41,792
https://github.com/wtnb75/whalebrewfile/blob/master/generate.py
Github Open Source
Open Source
MIT
null
whalebrewfile
wtnb75
Python
Code
252
943
import os import glob from jinja2 import Template import yaml import click from logging import getLogger import subprocess log = getLogger(__name__) @click.group(invoke_without_command=True) @click.pass_context def cli(ctx): from logging import basicConfig, DEBUG basicConfig(format="%(asctime)s %(levelname)s...
4,570
https://github.com/cburschka/phpregexp/blob/master/src/com/dryabov/phpStorm/phpregexp/package-info.java
Github Open Source
Open Source
MIT
2,015
phpregexp
cburschka
Java
Code
28
87
/** * PHP RegExp Support * * @author Denis Ryabov * License: MIT * (C) 2015 Denis Ryabov * * @see <a href="https://github.com/dryabov/phpregexp">PHP RegExp Support</a> */ package com.dryabov.phpStorm.phpregexp;
30,679
https://github.com/pvinis/Memex/blob/master/src/overview/onboarding/selectors.ts
Github Open Source
Open Source
MIT
2,020
Memex
pvinis
TypeScript
Code
128
331
import { createSelector } from 'reselect' import { RootState } from '../../options/types' export const onboarding = (state: RootState) => state.onboarding export const annotationStage = createSelector( onboarding, state => state.annotationStage, ) export const powerSearchStage = createSelector( onboarding...
46,947
https://github.com/jooby-project/jooby/blob/master/modules/jooby-openapi/src/test/java/issues/i3059/ControllerA3059.java
Github Open Source
Open Source
Apache-2.0
2,023
jooby
jooby-project
Java
Code
36
113
/* * Jooby https://jooby.io * Apache License Version 2.0 https://jooby.io/LICENSE.txt * Copyright 2014 Edgar Espina */ package issues.i3059; import io.jooby.annotation.GET; import io.jooby.annotation.Path; @Path("/mvc/a") public class ControllerA3059 { @GET public String pathA() { return "Hello!"; } }
41,985
https://github.com/bollwyvl/robotframework-tidy/blob/master/tests/atest/transformers/AlignTestCases/expected/test_fixed.robot
Github Open Source
Open Source
Apache-2.0
null
robotframework-tidy
bollwyvl
null
Spoken
36
85
*** Settings *** Test Template bar *** Test Cases *** baz qux # some comment test1 hi hello test2 long test name asdfasdf asdsdfgsdfg bar1 b...
41,651
https://github.com/shuaidd/qywx/blob/master/qywx-spring-boot-api/src/main/java/com/github/shuaidd/service/ElectronicInvoiceService.java
Github Open Source
Open Source
Apache-2.0
2,022
qywx
shuaidd
Java
Code
128
545
package com.github.shuaidd.service; import com.github.shuaidd.response.invoice.BatchInvoiceResponse; import com.github.shuaidd.response.invoice.GetInvoiceResponse; import com.github.shuaidd.resquest.invoice.BatchInvoiceRequest; import com.github.shuaidd.resquest.invoice.BatchUpdateInvoiceRequest; import com.github.shu...
53,010
https://github.com/1107186916/framework/blob/master/spring-cloud-framework/app/system/src/main/java/com/markyang/framework/app/system/controller/SystemOptionController.java
Github Open Source
Open Source
Apache-2.0
2,021
framework
1107186916
Java
Code
55
323
package com.markyang.framework.app.system.controller; import com.github.xiaoymin.knife4j.annotations.ApiSort; import com.markyang.framework.app.base.annotation.CacheName; import com.markyang.framework.app.system.form.search.SystemOptionSearchForm; import com.markyang.framework.app.system.form.update.SystemOptionUpdate...
42,066
https://github.com/wangchaohui/lib/blob/master/CG.cpp
Github Open Source
Open Source
MIT
2,014
lib
wangchaohui
C++
Code
51
310
#include <algorithm> using namespace std; struct Rectangle{ int x1,y1,x2,y2; Rectangle() {} Rectangle(int x1,int y1,int x2,int y2):x1(x1),y1(y1),x2(x2),y2(y2) { if(x1>x2)swap(x1,x2); if(y1>y2)swap(y1,y2); } bool isIntersect(Rectangle a,Rectangle b); Rectangle intersection(Rectangle a,Rectangle b); }; boo...
49,814
https://github.com/devbaze/prodaja-frontend/blob/master/src/client/store/others/ModalStore.ts
Github Open Source
Open Source
MIT
2,021
prodaja-frontend
devbaze
TypeScript
Code
120
396
import { observable, action, computed } from 'mobx'; import { stores } from '../context'; class ModalStore { // constructor() { // // this.isOpenModalLogin = false // this.isOpenModalRegistration = false; // this.openModalProduct = false; // } @observable isOpenModalLogin = false; @observable isO...
39,997
https://github.com/RohanGoyalDev/CoreAPI/blob/master/src/main/java/me/Abhigya/core/util/titles/TitleUtils.java
Github Open Source
Open Source
MIT
2,022
CoreAPI
RohanGoyalDev
Java
Code
811
2,152
package me.Abhigya.core.util.titles; import me.Abhigya.core.main.CoreAPI; import me.Abhigya.core.util.reflection.bukkit.BukkitReflection; import me.Abhigya.core.util.reflection.general.ClassReflection; import me.Abhigya.core.util.reflection.general.ConstructorReflection; import me.Abhigya.core.util.reflection.general....
26,440
https://github.com/supakiad/wro4j/blob/master/wro4j-extensions/src/test/resources/ro/isdc/wro/extensions/processor/google/expectedSimple/var.js
Github Open Source
Open Source
Apache-2.0
2,022
wro4j
supakiad
JavaScript
Code
3
14
'use strict';var a=1,b=2;
16,707