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/zealoussnow/chromium/blob/master/chrome/browser/enterprise/connectors/device_trust/key_management/browser/key_rotation_launcher.h | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,021 | chromium | zealoussnow | C | Code | 108 | 390 | // Copyright 2021 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.
#ifndef CHROME_BROWSER_ENTERPRISE_CONNECTORS_DEVICE_TRUST_KEY_MANAGEMENT_BROWSER_KEY_ROTATION_LAUNCHER_H_
#define CHROME_BROWSER_ENTERPRISE_CONNECTORS_DEV... | 45,515 |
https://github.com/WheelhouseStudios/DefinitelyTyped/blob/master/types/svgo/svgo-tests.ts | Github Open Source | Open Source | MIT | 2,021 | DefinitelyTyped | WheelhouseStudios | TypeScript | Code | 105 | 265 | import SVGO from "svgo";
// Various constructor options.
let svgo = new SVGO();
svgo = new SVGO({});
svgo = new SVGO({ plugins: [] });
svgo = new SVGO({ plugins: [{ cleanupAttrs: {} }] });
svgo = new SVGO({ datauri: "base64" });
svgo = new SVGO({ floatPrecision: 2 });
svgo = new SVGO({ full: true });
// SVGO options
... | 45,788 |
https://github.com/mountstudio/nintex/blob/master/resources/views/admin/partials/sidebar.blade.php | Github Open Source | Open Source | MIT | null | nintex | mountstudio | PHP | Code | 85 | 364 | <div class="list-group">
<a href="{{ route('admin.dashboard') }}" class="list-group-item list-group-item-action {{ request()->is('admin/dashboard*') ? 'active' : '' }}">{{ __('Dashboard') }}</a>
<a href="{{ route('admin.category.datatable') }}" class="list-group-item list-group-item-action {{ request()->is('adm... | 54,879 |
https://github.com/OTCdLink/Chiron-framework/blob/master/modules/chiron/twilio/src/test/java/io/github/caillette/shoemaker/upend/twilio/AbstractTwilioSecondaryAuthenticatorTest.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,018 | Chiron-framework | OTCdLink | Java | Code | 688 | 2,714 | package io.github.caillette.shoemaker.upend.twilio;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMultimap;
import com.otcdlink.chiron.command.Stamp;
import com.otcdlink.chiron.fixture.http.TinyHttpServer;
import com.otcdlink.chiron.fixture.http.VerifyingResponder;
import co... | 18,553 |
https://github.com/ealuna/SGTR/blob/master/server.js | Github Open Source | Open Source | MIT | 2,017 | SGTR | ealuna | JavaScript | Code | 319 | 1,128 | var express = require('express');
var app = express();
var server = require('http').Server(app);
var io = require('socket.io')(server);
var scraper = require('./apps/scraper/main');
var pass = require('./socket');
var conn = require('./connection');
var conn2 = require('./models/connection');
var compression = require(... | 47,579 |
https://github.com/Nightloewe/CommandFramework/blob/master/src/main/java/dev/teamnight/command/FrameworkBuilder.java | Github Open Source | Open Source | Apache-2.0 | null | CommandFramework | Nightloewe | Java | Code | 645 | 2,171 | /**
* Copyright 2019-2020 Jonas Müller, Jannik Müller
*
* 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... | 25,603 |
https://github.com/Chanceshine/drs/blob/master/admin/js/repairmanpage.js | Github Open Source | Open Source | MIT | 2,017 | drs | Chanceshine | JavaScript | Code | 87 | 485 | $(function () {
$.extend($.fn.pagination.defaults, {
pageSize: 5
})
function createDemo(name){
var container = $('#pagination-' + name);
var sources = function(done){
$.ajax({
type: 'GET',
url: '../control/distributeRep.php',
success: function(msg){
var json = eval('('+msg+')');
... | 5,230 |
https://github.com/logginghub/core/blob/master/logginghub-utils/src/main/java/com/logginghub/utils/LoggerExceptionHandler.java | Github Open Source | Open Source | Apache-2.0 | null | core | logginghub | Java | Code | 33 | 98 | package com.logginghub.utils;
import com.logginghub.utils.logging.Logger;
public class LoggerExceptionHandler implements ExceptionHandler {
private static final Logger logger = Logger.getLoggerFor(LoggerExceptionHandler.class);
public void handleException(String action, Throwable t) {
logger.warn(t,... | 4,114 |
https://github.com/bburdette/windowkeys/blob/master/src/WindowKeys.elm | Github Open Source | Open Source | BSD-3-Clause | 2,021 | windowkeys | bburdette | null | Spoken | 407 | 871 | module WindowKeys exposing (Key, WindowKeyCmd(..), receive, send, encodeKey, decodeKey)
{-| This WindowKeys Elm module lets you encode and decode messages to pass to javascript,
where the actual key event listening will take place. See the README for more.
@docs Key
@docs WindowKeyCmd
@docs decodeKey
@docs encodeKey
... | 50,484 |
https://github.com/westurner/nhs-social-web/blob/master/nebhs/api/handlers.py | Github Open Source | Open Source | BSD-3-Clause | null | nhs-social-web | westurner | Python | Code | 183 | 849 | from piston.handler import BaseHandler, AnonymousBaseHandler
from piston.utils import rc, require_mime, require_extended
from google.appengine.ext import db
from nebhs.models import Animal, AnimalPhoto
from django.core.urlresolvers import reverse
from nebhs import settings
from gae_memoize.memoize import memoize,defaul... | 48,260 |
https://github.com/GlenKPeterson/TestUtils/blob/master/src/main/java/org/organicdesign/testUtils/http/FakeServletOutputStream.kt | Github Open Source | Open Source | Apache-2.0 | 2,015 | TestUtils | GlenKPeterson | Kotlin | Code | 59 | 220 | package org.organicdesign.testUtils.http
import jakarta.servlet.ServletOutputStream
import jakarta.servlet.WriteListener
import org.organicdesign.indented.IndentedStringable
import org.organicdesign.indented.StringUtils.stringify
import java.io.StringWriter
class FakeServletOutputStream: ServletOutputStream(), Indent... | 56,705 |
https://github.com/pibebtol/java-lessons/blob/master/exercises/solutions/XXChristmasSpecial/GiftFactory.java | Github Open Source | Open Source | MIT | 2,020 | java-lessons | pibebtol | Java | Code | 70 | 361 | public class GiftFactory {
private String[] gifts = new String[11];
GiftFactory() {
gifts[0] = "Ejf!Svuf";
gifts[1] = "Fjof!Lpimf";
gifts[2] = "Fjof!Tdifjcf!Cspu";
gifts[3] = "Fjof!Tpdlf";
gifts[4] = "[xfj!Tpdlfo";
gifts[5] = "Csbubqgfm!)nju!Sptjofo!)Hfjm\"**";
gifts[6] = "Gvttcbmm";
gifts[7] = "Ijh... | 13,877 |
https://github.com/malakhite/advent-of-code-2021/blob/master/src/day-04/__tests__/part-2.spec.ts | Github Open Source | Open Source | Apache-2.0 | null | advent-of-code-2021 | malakhite | TypeScript | Code | 152 | 350 | import { expect } from 'chai';
import { day4part2 } from '../part-2';
const testBoards = [
[
22, 13, 17, 11, 0, 8, 2, 23, 4, 24, 21, 9, 14, 16, 7, 6, 10, 3, 18, 5, 1,
12, 20, 15, 19,
],
[
3, 15, 0, 2, 22, 9, 18, 13, 17, 5, 19, 8, 7, 25, 23, 20, 11, 10, 24, 4, 14,
21, 16, 12, 6,
],
[
14, 21, 17, 24, 4, 1... | 32,717 |
https://github.com/ninabina921/CTEligible/blob/master/uinterface/wordsuggest.php | Github Open Source | Open Source | MIT | 2,018 | CTEligible | ninabina921 | PHP | Code | 316 | 865 | <?php
/*function conn() {
$mysqli = new mysqli('localhost', 'user', 'pass', 'cteligible');
$mysqli->set_charset('utf8');
return $mysqli;
}
*/
function conn() {
$mysqli = new mysqli('localhost', 'user', 'pass', 'cteligible');
$mysqli->set_charset('utf8');
return $mysqli;
}
function wordFuncti... | 37,018 |
https://github.com/Deleetdk/kirkegaard/blob/master/man/which_max2.Rd | Github Open Source | Open Source | MIT | 2,023 | kirkegaard | Deleetdk | R | Code | 63 | 165 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simple_math.R
\name{which_max2}
\alias{which_max2}
\title{Generalized which.max(). Returns the index of the cell or number with the highest value.}
\usage{
which_max2(x)
}
\arguments{
\item{x}{a numeric vector, matrix or data.frame.}
}
\descr... | 11,656 |
https://github.com/msgpo/coin-map-android/blob/master/app/src/test/java/com/bubelov/coins/repository/ExchangeRatesRepositoryTest.kt | Github Open Source | Open Source | MIT | 2,020 | coin-map-android | msgpo | Kotlin | Code | 90 | 518 | package com.bubelov.coins.repository
import com.bubelov.coins.model.CurrencyPair
import com.bubelov.coins.repository.rate.Bitstamp
import com.bubelov.coins.repository.rate.Coinbase
import com.bubelov.coins.repository.rate.ExchangeRatesRepository
import com.nhaarman.mockitokotlin2.verify
import com.nhaarman.mockitokotl... | 10,633 |
https://github.com/markyangchangliang/framework/blob/master/spring-cloud-framework/common-service/src/main/java/com/markyang/framework/service/message/MessageChannelTemplateService.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | framework | markyangchangliang | Java | Code | 92 | 367 | package com.markyang.framework.service.message;
import com.markyang.framework.pojo.message.MessageTemplateDetails;
import com.markyang.framework.pojo.message.MessageTemplateParameterDetails;
import java.util.List;
/**
* 消息通道模板服务接口
*
* @author yangchangliang
* @version 1
*/
public interface MessageChannelTemplat... | 55,884 |
https://github.com/Pure75/tp7csharp/blob/master/HideAndSeek/Bits.cs | Github Open Source | Open Source | MIT | 2,021 | tp7csharp | Pure75 | C# | Code | 262 | 580 | using System;
using System.Collections.Generic;
using System.Text;
namespace HideAndSeek
{
public class Bits
{
/// <summary>
/// Get the maximum value obtainaible by n bits (n ones)
/// if n = 5 for expemple we will have 11111 and thus 31
/// </summary>
/// <param name=... | 38,587 |
https://github.com/Bia10/Edelstein/blob/master/src/protocol/Edelstein.Protocol.Gameplay.Stages.Game/Objects/NPC/Contracts/Pipelines/INPCMove.cs | Github Open Source | Open Source | MIT | 2,022 | Edelstein | Bia10 | C# | Code | 16 | 83 | using Edelstein.Protocol.Gameplay.Stages.Game.Objects.NPC.Movements;
namespace Edelstein.Protocol.Gameplay.Stages.Game.Objects.NPC.Contracts.Pipelines;
public interface INPCMove : IFieldNPCContract
{
INPCMovePath Path { get; }
}
| 6,527 |
https://github.com/lshowbiz/agnt_ht/blob/master/src/web/com/joymain/jecs/bd/webapp/action/JbdSellCalcSubDetailHistController.java | Github Open Source | Open Source | Apache-2.0 | null | agnt_ht | lshowbiz | Java | Code | 103 | 690 | package com.joymain.jecs.bd.webapp.action;
import java.util.List;
import java.math.BigDecimal;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.beanutils.BeanUtils... | 22,111 |
https://github.com/React-Monitor-2-0/ReactMonitor/blob/master/package/deleteParent.test.js | Github Open Source | Open Source | MIT | 2,020 | ReactMonitor | React-Monitor-2-0 | JavaScript | Code | 39 | 291 | const treeGraph = require('../mockData/treeGraph');
const deleteParent = require('./deleteParent');
describe('test deleteParent', () => {
xit('test deleteParent deletes Parents', () => {
const prunedTreeGraph = deleteParent(treeGraph);
console.log("prunedTreeGraph -", prunedTreeGraph);
expect(pruned... | 42,064 |
https://github.com/penberg/stirling/blob/master/core/src/test/scala/stirling/fix/messages/MessageTagSpec.scala | Github Open Source | Open Source | Apache-2.0 | 2,015 | stirling | penberg | Scala | Code | 146 | 300 | /*
* Copyright 2010 the original author or authors.
*
* 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 applica... | 2,821 |
https://github.com/di-effe/Castle-Run/blob/master/src/en/Item.hx | Github Open Source | Open Source | MIT | 2,020 | Castle-Run | di-effe | Haxe | Code | 205 | 820 | package en;
class Item extends Entity {
public static var ALL : Array<Item> = [];
public var type : Enum_ItemType;
public var origin : Null<CPoint>;
// public var inVault = false;
public var shineColor = new h3d.Vector();
public function new(x,y, t:Enum_ItemType) {
super(x, y);
ALL.push(this);
gravityMul*... | 55,487 |
https://github.com/modstart/ModStartCMS_Laravel9/blob/master/module/Nav/Admin/routes.php | Github Open Source | Open Source | Apache-2.0 | 2,023 | ModStartCMS_Laravel9 | modstart | PHP | Code | 27 | 142 | <?php
/* @var \Illuminate\Routing\Router $router */
$router->match(['get', 'post'], 'nav', 'NavController@index');
$router->match(['get', 'post'], 'nav/add', 'NavController@add');
$router->match(['get', 'post'], 'nav/edit', 'NavController@edit');
$router->match(['post'], 'nav/delete', 'NavController@delete');
$router... | 49,245 |
https://github.com/saulobejo/knetminer/blob/master/species/maize/ws/neo4j/state-machine-queries/state-machine.dot | Github Open Source | Open Source | MIT | 2,022 | knetminer | saulobejo | Graphviz (DOT) | Code | 3,189 | 11,689 | digraph {
graph [_draw_="c 9 -#fffffe00 C 7 -#ffffff P 4 0 0 0 926 1030.67 926 1030.67 0 ",
bb="0,0,1030.7,926",
dpi=96,
rankdir=LR,
xdotversion=1.7
];
node [label="\N"];
"EC(15)" [_draw_="c 7 -#006400 p 8 485.69 565.54 485.69 580.46 462.71 591 430.21 591 407.24 580.46 407.24 565.54 430.21 555 462.71 555 c ... | 17,985 |
https://github.com/henk52/OPSbst/blob/master/bin/XmlDistroConfigFile.pm | Github Open Source | Open Source | Apache-2.0 | null | OPSbst | henk52 | Perl | Code | 675 | 2,488 | package XmlDistroConfigFile;
use strict; # Be strict on the syntax and semantics, var must be defined prior to use.
use vars qw(@ISA @EXPORT $VERSION);
use Exporter;
use Carp;
use Data::Dumper;
use BstShortcuts;
use XmlIf;
$VERSION = 0.3.0;
@ISA = ('Exporter');
# List the functions and var's that must be avai... | 53,208 |
https://github.com/jupiter881212/alpha-book/blob/master/application/views/manage/staff/staff_regist_confirm.php | Github Open Source | Open Source | MIT | null | alpha-book | jupiter881212 | PHP | Code | 168 | 718 | <div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">スタッフ登録確認</h1>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<span class="brv-ph2">スタッフ登録確認</span>
</div>
<div class="panel-body">
<div class="row">
... | 32,493 |
https://github.com/JChiyah/crwiz/blob/master/app/static/js/plugins.js | Github Open Source | Open Source | BSD-3-Clause | 2,021 | crwiz | JChiyah | JavaScript | Code | 629 | 1,798 | function _append(text) {
$('#chat-area').append(text);
_scrollChat();
}
function _scrollChat() {
let content = $('#content');
content.animate({ scrollTop: content.prop("scrollHeight") }, 0);
}
function _getTime(timestamp) {
if (typeof timestamp === "undefined")
return new Date().getHours() + ... | 26,048 |
https://github.com/pearlfish/pearlfish-java/blob/master/src/test/info/pearlfish/internal/MarkdownEscapingTest.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | pearlfish-java | pearlfish | Java | Code | 71 | 302 | package info.pearlfish.internal;
import com.google.common.base.Joiner;
import info.pearlfish.adaptor.junit.ApprovalRule;
import org.junit.Rule;
import org.junit.Test;
import java.io.IOException;
import java.util.LinkedHashMap;
import static info.pearlfish.formats.Formats.STRING;
public class MarkdownEscapingTest {
... | 18,987 |
https://github.com/git4wht/cloudbreak/blob/master/common/src/main/java/com/sequenceiq/cloudbreak/telemetry/metering/MeteringConfigService.java | Github Open Source | Open Source | Apache-2.0 | null | cloudbreak | git4wht | Java | Code | 79 | 404 | package com.sequenceiq.cloudbreak.telemetry.metering;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import com.sequenceiq.cloudbreak.telemetry.TelemetryUpgradeConfiguration;
@Service
public class MeteringConfigService {
private final MeteringConfiguration meteringCo... | 25,264 |
https://github.com/FireRipper/nonSls/blob/master/resources/views/admin/adminreport.blade.php | Github Open Source | Open Source | MIT | null | nonSls | FireRipper | PHP | Code | 183 | 995 | @extends('layouts/admin')
@section('admin_report')
<main role="main" class="col-lg-12 px-4 bg-light">
<div
class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h2 class="content-admin__h2">Отчёты</h2>
</div>
<div class="row">
... | 36,484 |
https://github.com/qilinsaishi/querylist/blob/master/app/Collect/team/dota2/cpseo.php | Github Open Source | Open Source | MIT | null | querylist | qilinsaishi | PHP | Code | 431 | 2,410 | <?php
namespace App\Collect\team\dota2;
use QL\QueryList;
class cpseo
{
protected $data_map =
[
"team_name"=>['path'=>"baseInfo.name",'default'=>''],
"en_name"=>['path'=>"baseInfo.ename",'default'=>''],
"aka"=>['path'=>"baseInfo.subname","default"=>""],
"lo... | 49,699 |
https://github.com/hiaux0/coding-3/blob/master/client/src/pages/uilib/uilib-welcome/uilib-welcome.less | Github Open Source | Open Source | MIT | null | coding-3 | hiaux0 | Less | Code | 35 | 97 | // Some quick styling for navigation button
.btn.navigationButton {
font-size: 11px;
height: 28px;
line-height: 28px;
padding: 0 8px;
}
.uilibWelcome__compose {
compose {
display: block; // to make <compose> styleable
margin: 25px 20px;
}
}
| 52,906 |
https://github.com/niegaotao/Architecture/blob/master/iOSApp-Objective-C/Workspace/Image/foundation/ui/subclasses/LEYButton.h | Github Open Source | Open Source | MIT | 2,019 | Architecture | niegaotao | C | Code | 33 | 96 | //
// LEYButton.h
// App
//
// Created by niegaotao on 2017/11/9.
// Copyright © 2017年 niegaotao. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface LEYButton : UIButton
@property (nonatomic, strong) NSDictionary *dicValue;
@end
| 46,174 |
https://github.com/dloa/react-alexandria-ux/blob/master/src/components/Alexandria/components/FormatSelector.js | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,016 | react-alexandria-ux | dloa | JavaScript | Code | 69 | 196 | import React from 'react';
import styles from './css/format-selector.module.css';
export default class FormatSelector extends React.Component {
static defaultProps = {
options: ['mp3', 'flac', 'WARNING YOU ARE USING DEFAULT PROPS'],
}
render() {
let {options, selected, actions} = this.prop... | 27,442 |
https://github.com/augustye/muniverse/blob/master/games/injections/Multisquare-v0.js | Github Open Source | Open Source | BSD-2-Clause | 2,022 | muniverse | augustye | JavaScript | Code | 135 | 424 | (function() {
var LOAD_TIMEOUT = 60000;
var PLAY_BUTTON = [0, 0, 0, 4];
function componentAtPath(path) {
var obj = (window.globalMain || {}).stage;
path.forEach((idx) => obj = ((obj || {}).__children || [])[idx]);
return obj;
}
var gameOver = false;
var endgameScore = 0;
window.muniverse ... | 28,201 |
https://github.com/trashhalo/whalebird-desktop/blob/master/src/renderer/store/Login.js | Github Open Source | Open Source | MIT | 2,018 | whalebird-desktop | trashhalo | JavaScript | Code | 237 | 820 | import { ipcRenderer } from 'electron'
import axios from 'axios'
const Login = {
namespaced: true,
state: {
instances: [],
domainName: '',
selectedInstance: null,
page: 2,
searching: false
},
mutations: {
updateInstances (state, instances) {
state.instances = instances
},
... | 41,756 |
https://github.com/dunmengjun/sqldsl/blob/master/src/main/java/com/dmj/sqldsl/builder/config/CamelToUnderlineTranslator.java | Github Open Source | Open Source | MIT | 2,021 | sqldsl | dunmengjun | Java | Code | 20 | 86 | package com.dmj.sqldsl.builder.config;
import com.dmj.sqldsl.utils.StringUtils;
public class CamelToUnderlineTranslator implements NameTranslator {
@Override
public String translate(String camelCase) {
return StringUtils.toUnderlineCase(camelCase);
}
}
| 4,481 |
https://github.com/KoerberDigitalDevTeam/grafana-irondb-check-datasource/blob/master/dist/datasource.js | Github Open Source | Open Source | MIT | 2,018 | grafana-irondb-check-datasource | KoerberDigitalDevTeam | JavaScript | Code | 1,297 | 3,732 | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.IronDbCheckDatasource = void 0;
var _lodash = _interopRequireDefault(require("lodash"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _classCallCheck(instance, Constru... | 27,271 |
https://github.com/fedegarba71/invox/blob/master/src/AppBundle/Tests/Entity/Repository/DocumentRepositoryTest.php | Github Open Source | Open Source | MIT | 2,017 | invox | fedegarba71 | PHP | Code | 510 | 1,728 | <?php
/**
* This file is part of Invox.
* (c) Di-SiDE s.r.l.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/
//
//namespace AppBundle\Tests\Entity\Repository;
//
//use AppBundle\Entity\Customer;
//use AppBundle\Entity\Document;
... | 10,352 |
https://github.com/naimulcsx/online-judge-solutions/blob/master/Codeforces/265A - Colorful Stones (Simplified Edition).cpp | Github Open Source | Open Source | MIT | null | online-judge-solutions | naimulcsx | C++ | Code | 59 | 128 | #include <iostream>
#include <string>
using namespace std;
int main() {
string str, instructions;
cin >> str >> instructions;
int current_pos = 0;
// if the instruction matches the charecter at current_pos of str, go to the next position
for (char ch: instructions) {
if (str.at(current_po... | 52,706 |
https://github.com/moacirsouza/nadas/blob/master/01-DesenvolvimentoDeSistemas/02-LinguagensDeProgramacao/01-Python/01-ListaDeExercicios/02-Aluno/Roberto/exc0050.py | Github Open Source | Open Source | MIT | 2,020 | nadas | moacirsouza | Python | Code | 57 | 132 | print("""
050) Desenvolva um programa que leia seis números inteiros e mostre a soma apenas
daqueles que forem pares. Se o valor digitado for ímpar, desconsidere-o
""")
somadospares = 0
for contador in range (1, 7):
numero = int(input('Digite o número: '))
if numero % 2 == 0:
somadospares += numero
pr... | 4,406 |
https://github.com/chrisvltn/music-db/blob/master/src/typings/requests.d.ts | Github Open Source | Open Source | MIT | null | music-db | chrisvltn | TypeScript | Code | 356 | 1,499 |
type ArtistRequest = {
artists: {
idArtist: string
strArtist: string
strArtistStripped: string
strArtistAlternate: string
strLabel: string
idLabel: string
intFormedYear: string
intBornYear: string
intDiedYear: string
strDisbanded: string
strStyle: string
strGenre: string
strMood: string
st... | 25,415 |
https://github.com/helmielix/imdev-elixer/blob/master/settings/views/inbound-wh-transfer/indexdetail_sn_outbound.php | Github Open Source | Open Source | BSD-3-Clause | 2,018 | imdev-elixer | helmielix | PHP | Code | 264 | 1,157 | <?php
use yii\helpers\Html;
use kartik\grid\GridView;
use yii\helpers\Url;
use yii\widgets\Pjax;
$this->registerJsFile('@commonpath/js/btn_modal.js',['depends' => [\yii\web\JqueryAsset::className()]]);
$this->registerJs(
"
", \yii\web\View::POS_END);
?>
<div class="instruction-wh-transfer-detail-index">
<?php ... | 55,955 |
https://github.com/icl/cove_old/blob/master/app/controllers/place_holder_controller.rb | Github Open Source | Open Source | Unlicense | 2,016 | cove_old | icl | Ruby | Code | 13 | 40 | class PlaceHolderController < ApplicationController
before_filter :authenticate_user!, :require_nda
def index
render "index"
end
end
| 38,800 |
https://github.com/UAMS-DBMI/PosdaTools/blob/master/posda/posdatools/Posda/bin/Anonymize.pl | Github Open Source | Open Source | Apache-2.0 | 2,022 | PosdaTools | UAMS-DBMI | Perl | Code | 269 | 1,016 | #!/usr/bin/perl -w
#
#Copyright 2008, Bill Bennett
# Part of the Posda package
# Posda may be copied only under the terms of either the Artistic License or the
# GNU General Public License, which may be found in the Posda Distribution,
# or at http://posda.com/License.html
#
use strict;
use Posda::Anonymizer;
use Posd... | 41,245 |
https://github.com/npocmaka/Windows-Server-2003/blob/master/printscan/print/spooler/spoolss/server/kmspool.c | Github Open Source | Open Source | Unlicense | 2,021 | Windows-Server-2003 | npocmaka | C | Code | 2,216 | 8,361 | /*++
Copyright (c) 1990-1996 Microsoft Corporation
All rights reserved
Module Name:
kmspool.c
Abstract:
Spooler API entry points for Kernel Clients.
Author:
Steve Wilson (NT) (swilson) 1-Jun-95 (Ported from client\winspool.c)
Environment:
User Mode -Win32
Revision History:
Matthew Felton (... | 50,201 |
https://github.com/JackStunning/tap-room/blob/master/src/components/KegControl/KegList.js | Github Open Source | Open Source | Unlicense | null | tap-room | JackStunning | JavaScript | Code | 48 | 199 | import React from 'react';
import PropTypes from 'prop-types';
import Keg from './Keg';
function KegList(props) {
console.log("Keg List props ",props)
return (
<React.Fragment>
<h2>Keg List</h2>
{props.masterKegList.map((keg, i) =>
<Keg
masterKegList={props.masterKegList[i]}
... | 7,994 |
https://github.com/badnotes/MicroCommunity/blob/master/Api/src/main/java/com/java110/api/listener/advert/UpdateAdvertListener.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | MicroCommunity | badnotes | Java | Code | 741 | 4,447 | package com.java110.api.listener.advert;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.java110.api.listener.AbstractServiceApiListener;
import com.java110.core.annotation.Java110Listener;
import com.java110.core.context.DataFlowContext;
import com.java110.core.factory.Genera... | 34,613 |
https://github.com/XuanYuan1122/momole/blob/master/app/src/main/java/com/moemoe/lalala/model/entity/ThirdLoginEntity.java | Github Open Source | Open Source | Apache-2.0 | null | momole | XuanYuan1122 | Java | Code | 50 | 136 | package com.moemoe.lalala.model.entity;
/**
* Created by yi on 2016/11/10.
*/
public class ThirdLoginEntity {
public String nickname;
public String openId;
public String platform;
public String deviceId;
public ThirdLoginEntity(String nickname, String openId, String platform, String deviceId) ... | 25,944 |
https://github.com/consulo/consulo-python/blob/master/plugin/src/test/java_/com/jetbrains/python/PyCommenterTest.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | consulo-python | consulo | Java | Code | 58 | 262 | package com.jetbrains.python;
import consulo.language.editor.action.CodeInsightAction;
import consulo.ui.ex.action.ActionManager;
import consulo.ui.ex.action.IdeActions;
import com.jetbrains.python.fixtures.PyTestCase;
/**
* @author yole
*/
public abstract class PyCommenterTest extends PyTestCase {
public void te... | 11,755 |
https://github.com/shinshin86/ft-js/blob/master/main.js | Github Open Source | Open Source | MIT | null | ft-js | shinshin86 | JavaScript | Code | 183 | 501 | #! /usr/bin/env node
const serve = require('./serve');
const list = require('./list');
const download = require('./download');
const { parse } = require('./cmd-parser');
const DEFAULT_ADDRESS = '0.0.0.0:11111';
const usageText = () => {
console.log(`NAME:
ft-js File Transfer JS
DESCRIPTION:
This tool is an ... | 46,164 |
https://github.com/btcsuite/btcwallet/blob/master/rpc/api.proto | Github Open Source | Open Source | ISC | 2,023 | btcwallet | btcsuite | null | Spoken | 1,202 | 2,650 | syntax = "proto3";
package walletrpc;
service VersionService {
rpc Version (VersionRequest) returns (VersionResponse);
}
message VersionRequest {}
message VersionResponse {
string version_string = 1;
uint32 major = 2;
uint32 minor = 3;
uint32 patch = 4;
string prerelease = 5;
string build_metadata = 6;
}
ser... | 51,373 |
https://github.com/MarkBauer5/cusp/blob/master/test/qa_channelizer.cu | Github Open Source | Open Source | Apache-2.0 | 2,021 | cusp | MarkBauer5 | null | Spoken | 296 | 1,121 | #include <cmath>
#include <complex>
#include <cusp/channelizer.cuh>
#include <gtest/gtest.h>
#include <math.h>
#include <cusp/helper_cuda.h>
using namespace cusp;
#include <chrono>
#include <iostream>
#include <string>
template <typename T>
void run_test(const std::vector<T> &data, const std::vector<T> &taps, cons... | 19,960 |
https://github.com/cpd-info/spreng/blob/master/src/system/collections/ClassList.php | Github Open Source | Open Source | MIT | null | spreng | cpd-info | PHP | Code | 67 | 209 | <?php
declare(strict_types=1);
namespace Spreng\system\collections;
use Spreng\system\collections\iClassList;
use Spreng\system\loader\iSpreng;
use TypeError;
/**
* ClassList
*/
class ClassList implements iClassList
{
private $list = [];
private $class;
public function __construct(string $class)
... | 16,958 |
https://github.com/aichiko0225/flutter_ssikit/blob/master/lib/src/theme/ssi_initializer.dart | Github Open Source | Open Source | MIT | null | flutter_ssikit | aichiko0225 | Dart | Code | 42 | 278 | import 'package:flutter_ssikit/src/theme/ssi_theme_configurator.dart';
import 'package:flutter_ssikit/src/theme/configs/ssi_all_config.dart';
import 'package:flutter_ssikit/src/theme/img/ssi_theme_img_utils.dart';
///flutter_ssikit初始化
class SsiInitializer {
/// 手动注册时,默认注册渠道是 GLOBAL_CONFIG_ID
static register(
... | 11,458 |
https://github.com/KristopherGBaker/TouchDraw/blob/master/Sources/Stroke.swift | Github Open Source | Open Source | MIT | 2,016 | TouchDraw | KristopherGBaker | Swift | Code | 140 | 359 | //
// Stroke.swift
// TouchDraw
//
// Created by Christian Paul Dehli on 9/4/16.
//
/// a drawing stroke
open class Stroke: NSObject, NSCoding {
/// the points that make up the stroke
internal var points: [String]!
/// the properties of the stroke
internal var settings: StrokeSettings!
/// d... | 30,140 |
https://github.com/gomezjdaniel/virtual-vulcano/blob/master/web/app/index.js | Github Open Source | Open Source | BSD-2-Clause | 2,015 | virtual-vulcano | gomezjdaniel | JavaScript | Code | 107 | 376 | // Copyright (c) 2015 The Virtual Vulcano authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE.md file.
'use strict';
var express = require('express'),
dashboard = require('./handlers/dashboard'),
path = require('path'),
promised =... | 38,221 |
https://github.com/h4ck3rm1k3/federal-election-commission-aggregation-json-2011/blob/master/index/PAYEE/STATE/GA/ZIP/301321485/CITY/Dallas/STREET_1/29_Ponderosa_Trail/ORGANIZATION_NAME/Discount_Book_Distributors/2011/20110411/721745.fec_1/6668aff2573f18b143d1e07855bbfd6c99a5a5a0.js | Github Open Source | Open Source | Unlicense | 2,013 | federal-election-commission-aggregation-json-2011 | h4ck3rm1k3 | JavaScript | Code | 1 | 39 | ../../../../../../../../../../../../../../../objects/66/68aff2573f18b143d1e07855bbfd6c99a5a5a0.js | 10,501 |
https://github.com/Sup3r-Us3r/pokedex/blob/master/pages/index.tsx | Github Open Source | Open Source | MIT | 2,021 | pokedex | Sup3r-Us3r | TypeScript | Code | 169 | 579 | import {GetStaticProps} from 'next/types'
import Link from 'next/link';
import axios from 'axios';
import Layout from '../components/Layout';
interface IHomeProps {
pokemonData: {
name: string;
image: string;
url: string;
}[];
};
const Home = ({ pokemonData }: IHomeProps) => {
return (
<Layout ... | 48,308 |
https://github.com/aytchell/validator/blob/master/src/main/java/com/github/aytchell/validator/BooleanValidator.java | Github Open Source | Open Source | Apache-2.0 | null | validator | aytchell | Java | Code | 262 | 484 | package com.github.aytchell.validator;
// Copyright (c) 2020 Hannes Lerchl <hannes.lerchl@aytchell.de>
// SPDX-License-Identifier: Apache-2.0
import com.github.aytchell.validator.exceptions.ValidationException;
/**
* Specialized validator for {@link Boolean}
* <p>
* Each method of this class will check the value ... | 47,297 |
https://github.com/Kahsolt/OJ-Notes/blob/master/Solutions/浙大考研上机真题/2.奥运排序问题.c | Github Open Source | Open Source | WTFPL | 2,020 | OJ-Notes | Kahsolt | C | Code | 277 | 905 | #include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#define forr(i, a, b) for(int i=a;i<b;i++)
#define N 100000
typedef struct record {
int id; // filter use
int golds, silvers, population;
double golds_rate, silvers_rate;
int rank, rank_type;
} Record;
Record *records[N], rec[N];
int cmpid(const void* ... | 30,358 |
https://github.com/chr15m/bugout/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,023 | bugout | chr15m | Makefile | Code | 35 | 110 | docs/bugout.min.js: bugout.js
npm run minify
bugout.js: index.js $(shell find ./node_modules -type f -name '*.js' | sed 's/ /\\ /g') node_modules
npm run compile
node_modules:
npm install
test: test.log
test.log: bugout.js test.js
node test.js > test.log
| 38,801 |
https://github.com/Marcel-Jansen/open-smart-grid-platform/blob/master/osgp/protocol-adapter-dlms/osgp-protocol-adapter-dlms/src/test/java/org/opensmartgridplatform/adapter/protocol/dlms/domain/commands/periodicmeterreads/GetPeriodicMeterReadsGasCommandExecutorTest.java | Github Open Source | Open Source | Apache-2.0 | null | open-smart-grid-platform | Marcel-Jansen | Java | Code | 796 | 3,993 | /**
* Copyright 2019 Smart Society Services B.V.
*
* 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
*/
package org.opensmartgridplatform.adap... | 30,409 |
https://github.com/dk307/HSPI_WUWeather/blob/master/ConfigPage.cs | Github Open Source | Open Source | MIT, CC-BY-3.0 | 2,018 | HSPI_WUWeather | dk307 | C# | Code | 1,069 | 4,324 | using HomeSeerAPI;
using NullGuard;
using Scheduler;
using System;
using System.Collections.Specialized;
using System.Text;
using System.Web;
using System.Globalization;
namespace Hspi
{
using static System.FormattableString;
/// <summary>
/// Helper class to generate configuration page for plugin
//... | 45,265 |
https://github.com/Andrei-Straut/statkins/blob/master/src/main/webapp/src/app/jenkins-data-retriever/services/jenkins-user.service.spec.ts | Github Open Source | Open Source | MIT | 2,018 | statkins | Andrei-Straut | TypeScript | Code | 864 | 3,969 | import {TestBed} from '@angular/core/testing';
import {JenkinsUserService} from './jenkins-user.service';
import {JenkinsUserListService} from './jenkins-user-list.service';
import {IJenkinsUser} from 'jenkins-api-ts-typings';
import {Logger} from '../../../../node_modules/angular2-logger/core';
import {TestMockModul... | 20,980 |
https://github.com/SergeySerg/pizza-party/blob/master/app/Http/Controllers/Backend/AdminCategoriesController.php | Github Open Source | Open Source | MIT | 2,018 | pizza-party | SergeySerg | PHP | Code | 1,094 | 4,392 | <?php namespace App\Http\Controllers\Backend;
use Redirect;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Http\Controllers\Backend;
//use Illuminate\Contracts\Routing\ResponseFactory;
use Illuminate\Http\Request;
//use Illuminate\Routing\Controller;
//use Illuminate\Support\Facades\Redirect;
use I... | 30,797 |
https://github.com/trurl-master/jsdom-testing-mocks/blob/master/example/App.tsx | Github Open Source | Open Source | MIT | 2,022 | jsdom-testing-mocks | trurl-master | TypeScript | Code | 56 | 176 | import * as React from 'react';
import { BrowserRouter as Router, Switch, Route, Link } from 'react-router-dom';
import Nav from './Nav';
import GlobalObserver from './intersection-observer/global-observer/GlobalObserver';
import CustomUseMedia from './viewport/custom-use-media/CustomUseMedia';
export default functi... | 28,549 |
https://github.com/weTeams/Popup-my-Bookmarks/blob/master/src/core/utils/queryClient.tsx | Github Open Source | Open Source | MIT | 2,022 | Popup-my-Bookmarks | weTeams | TypeScript | Code | 48 | 131 | import type * as React from 'react'
import { QueryClient, QueryClientProvider } from 'react-query'
export const queryClient = new QueryClient({
defaultOptions: {
queries: {
refetchOnWindowFocus: false,
retry: false,
},
},
})
type Props = Omit<React.ComponentProps<typeof QueryClientProvider>, '... | 29,719 |
https://github.com/Dynamical-Systems-Laboratory/ABM-COVID-DSL/blob/master/tests/agent/agent_states_test.cpp | Github Open Source | Open Source | MIT | 2,021 | ABM-COVID-DSL | Dynamical-Systems-Laboratory | C++ | Code | 213 | 904 | #include "agent_tests.h"
/*****************************************************
*
* Test suite for additional agent states
* in the Agent class
*
*****************************************************/
// Aliases for pointers to member functions used in these
// tests
using setter = void (Agent::*)(const bool);... | 33,739 |
https://github.com/togetherPeter/Sailfish-G3Firmware3/blob/master/firmware/src/shared/Pin.cc | Github Open Source | Open Source | AAL | null | Sailfish-G3Firmware3 | togetherPeter | C++ | Code | 2 | 10 | #include "Pin.hh"
| 52,205 |
https://github.com/imabug/raddb/blob/master/database/migrations/2018_01_26_131224_create_mamsurveydata_table.php | Github Open Source | Open Source | MIT | 2,016 | raddb | imabug | PHP | Code | 74 | 361 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateMamsurveydataTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('mamsurvey... | 40,291 |
https://github.com/carroll1118/PrevisionProject/blob/master/项目/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Mystore3/footer.jsp | Github Open Source | Open Source | Apache-2.0 | 2,020 | PrevisionProject | carroll1118 | null | Spoken | 34 | 220 | <%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!--尾部-->
<div id="footer">
<div class="link">
<a href="#">关于我们</a>
|
<a href="#">联系我们</a>
|
<a href="#">人才招聘</a>
|
<a href="#">友情链接</a>
|
<a href="#">科大... | 37,303 |
https://github.com/himanshugoel2797/Cardinal/blob/master/libs/liblist/Makefile | Github Open Source | Open Source | MIT | 2,022 | Cardinal | himanshugoel2797 | Makefile | Code | 45 | 219 | TARGET=liblist.a
CC=x86_64-elf-cardinal-gcc
AR=x86_64-elf-cardinal-ar
HEADER_INSTALL_DIR=list
OBJS=list.o
CFLAGS=-std=c11 -Iinclude -I.
all:$(OBJS)
$(AR) rcs $(TARGET) $(OBJS)
clean:
rm -rf $(OBJS) $(TARGET)
install:
cp $(TARGET) $(shell cctool --lib)
mkdir -p $(shell cctool --inc)/$(HEADER_INSTALL_DIR)
cp ... | 40,203 |
https://github.com/SchapplM/robsynth-serroblib/blob/master/mdl_6dof/S6RRPPRP5/hd/S6RRPPRP5_energypot_fixb_regmin_slag_vp.m | Github Open Source | Open Source | MIT | 2,022 | robsynth-serroblib | SchapplM | MATLAB | Code | 599 | 1,624 | % Calculate minimal parameter regressor of potential energy for
% S6RRPPRP5
% Use Code from Maple symbolic Code Generation
%
% Input:
% qJ [6x1]
% Generalized joint coordinates (joint angles)
% g [3x1]
% gravitation vector in mdh base frame [m/s^2]
% pkin [9x1]
% kinematic parameters (e.g. lengths of the links)
... | 31,848 |
https://github.com/jorgedsilva/snipe-it-master/blob/master/resources/lang/tr/admin/consumables/table.php | Github Open Source | Open Source | Apache-2.0 | null | snipe-it-master | jorgedsilva | PHP | Code | 9 | 29 | <?php
return array(
'title' => 'Sarf Malzemesi Adı',
);
| 28,550 |
https://github.com/jgarnier/platform-salt/blob/master/salt/deployment-manager/init.sls | Github Open Source | Open Source | Apache-2.0 | 2,017 | platform-salt | jgarnier | null | Spoken | 405 | 1,511 | {% set packages_server = pillar['packages_server']['base_uri'] %}
{% set deployment_manager_version = salt['pillar.get']('deployment_manager:release_version', '1.0.0') %}
{% set deployment_manager_directory_name = 'deployment-manager-' + deployment_manager_version %}
{% set deployment_manager_package = 'deployment-mana... | 43,674 |
https://github.com/zjutjh/JingHongBBS-Server/blob/master/app/Api/Controller/Users/WechatMiniProgramLoginController.php | Github Open Source | Open Source | Apache-2.0 | 2,021 | JingHongBBS-Server | zjutjh | PHP | Code | 417 | 1,560 | <?php
/**
* Copyright (C) 2020 Tencent Cloud.
*
* 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 ... | 36,311 |
https://github.com/micheleangioni/phalcon-validators/blob/master/src/PhalconValidators/AlphaNamesValidator.php | Github Open Source | Open Source | MIT | 2,018 | phalcon-validators | micheleangioni | PHP | Code | 221 | 624 | <?php
namespace MicheleAngioni\PhalconValidators;
use Phalcon\Validation;
use Phalcon\Validation\Message;
use Phalcon\Validation\Validator;
use Phalcon\Validation\ValidatorInterface;
class AlphaNamesValidator extends Validator implements ValidatorInterface
{
/**
* Executes the validation. Allowed options:
... | 22,433 |
https://github.com/ShuffleZZZ/ITMO/blob/master/ParallelProgramming/linked-list-set/src/main/java/linked_list_set/SetImpl.java | Github Open Source | Open Source | MIT | 2,022 | ITMO | ShuffleZZZ | Java | Code | 279 | 810 | package linked_list_set;
import kotlinx.atomicfu.AtomicRef;
public class SetImpl implements Set {
private class Node {
AtomicRef<Node> next;
int x;
Node() {
// empty.
}
Node(int x, Node next) {
this.next = new AtomicRef<>(next);
this.x ... | 54,228 |
https://github.com/srijandas98/EmployeeTransportationService/blob/master/application/models/Login_model.php | Github Open Source | Open Source | MIT | 2,021 | EmployeeTransportationService | srijandas98 | PHP | Code | 301 | 1,177 | <?php
class Login_model extends CI_Model
{
function can_login($email, $password)
{
$this->db->where('email', $email);
$query = $this->db->get('registration');
if($query->num_rows() > 0)
{
foreach($query->result() as $row)
{
if($row->is_email_verified == 'yes') //here we check ... | 11,293 |
https://github.com/mfkiwl/mrisc32-simulator/blob/master/sim/cpu_simple.hpp | Github Open Source | Open Source | Zlib | 2,021 | mrisc32-simulator | mfkiwl | C++ | Code | 236 | 450 | //--------------------------------------------------------------------------------------------------
// Copyright (c) 2018 Marcus Geelnard
//
// This software is provided 'as-is', without any express or implied warranty. In no event will the
// authors be held liable for any damages arising from the use of this softwar... | 31,692 |
https://github.com/liangtongdev/LTxMsg/blob/master/LTxMsgDemo/LTxMsg/ViewController.h | Github Open Source | Open Source | MIT | 2,018 | LTxMsg | liangtongdev | Objective-C | Code | 28 | 81 | //
// ViewController.h
// LTxMsg
//
// Created by liangtong on 2018/7/23.
// Copyright © 2018年 LTx. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
| 4,755 |
https://github.com/l29ah/vk4xmpp/blob/master/library/xmpp/roster.py | Github Open Source | Open Source | MIT | 2,022 | vk4xmpp | l29ah | Python | Code | 992 | 3,060 | ## roster.py
##
## Copyright (C) 2003-2005 Alexey "Snake" Nezhdanov
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
... | 34,662 |
https://github.com/tcdng/jacklyn-codebase/blob/master/jacklyn-shared/src/main/java/com/tcdng/jacklyn/shared/xml/config/workflow/WfMessageConfig.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | jacklyn-codebase | tcdng | Java | Code | 316 | 884 | /*
* Copyright 2018-2020 The Code Department.
*
* 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 ... | 45,141 |
https://github.com/NN---/Theraot/blob/master/Core.Core/Security.Permissions/SecurityPermissionAttribute.cs | Github Open Source | Open Source | MIT | 2,018 | Theraot | NN--- | C# | Code | 70 | 217 | #if NETCOREAPP1_0 || NETCOREAPP1_1 || NETSTANDARD1_0 || NETSTANDARD1_1 || NETSTANDARD1_2 || NETSTANDARD1_3 || NETSTANDARD1_4 || NETSTANDARD1_5 || NETSTANDARD1_6
using System.Diagnostics;
namespace System.Security.Permissions
{
[Conditional("DEBUG")]
[AttributeUsage(AttributeTargets.Assembly | AttributeTarget... | 34,908 |
https://github.com/Igor-Nosatov/laravel-animals/blob/master/.eslintrc.js | Github Open Source | Open Source | MIT | 2,019 | laravel-animals | Igor-Nosatov | JavaScript | Code | 55 | 257 | module.exports = {
extends: ['plugin:vue/recommended', 'plugin:prettier/recommended', 'prettier/vue'],
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['vue', 'sort-imports-es6-autofix'],
rules: {
'vue/camelcase': 1,
'vue/component-name-in-temp... | 42,939 |
https://github.com/AY2122S1-CS2103T-W17-1/tp/blob/master/src/test/java/seedu/address/logic/commands/EditApplicationDescriptorTest.java | Github Open Source | Open Source | MIT | 2,021 | tp | AY2122S1-CS2103T-W17-1 | Java | Code | 160 | 884 | package seedu.address.logic.commands;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.logic.commands.CommandTestUtil.DESC_AMAZON;
import static seedu.address.logic.commands.CommandTestUtil.DESC_BYTEDANCE;
import static s... | 16,269 |
https://github.com/nmur/planning_poker/blob/master/lib/poker_card.dart | Github Open Source | Open Source | MIT | 2,020 | planning_poker | nmur | Dart | Code | 101 | 418 | import 'package:flutter/material.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
class PokerCard extends StatelessWidget {
const PokerCard({
Key key,
@required this.document,
}) : super(key: key);
final DocumentSnapshot document;
@override
Widget build(BuildContext context) {
retu... | 40,136 |
https://github.com/angr/angr/blob/master/angr/concretization_strategies/nonzero.py | Github Open Source | Open Source | BSD-2-Clause | 2,023 | angr | angr | Python | Code | 42 | 148 | from . import SimConcretizationStrategy
class SimConcretizationStrategyNonzero(SimConcretizationStrategy):
"""
Concretization strategy that returns any non-zero solution.
"""
def _concretize(self, memory, addr, **kwargs):
child_constraints = (addr != 0,)
extra_constraints = kwargs.pop... | 45,447 |
https://github.com/vuongtrannguyenkhoi/mypro/blob/master/app/controllers/admin/ProfilesController.php | Github Open Source | Open Source | MIT | null | mypro | vuongtrannguyenkhoi | PHP | Code | 300 | 1,107 | <?php
use Intervention\Image\Image;
use Qdesign\Repositories\Profile\ProfileInterface;
use Qdesign\Services\Form\Profile\ProfileForm;
use App\Libraries\BackendController;
class ProfilesController extends BackendController {
/**
* @var Qdesign\Repositories\Profile\ProfileInterface
*/
private $profile;... | 53,373 |
https://github.com/Andreas237/AndroidPolicyAutomation/blob/master/ExtractedJars/Ibotta_com.ibotta.android/smali_classes2/com/ibotta/android/mvp/ui/activity/cantfind/retailer/CantFindItRetailerPresenter.smali | Github Open Source | Open Source | MIT | 2,019 | AndroidPolicyAutomation | Andreas237 | Smali | Code | 67 | 369 | .class public interface abstract Lcom/ibotta/android/mvp/ui/activity/cantfind/retailer/CantFindItRetailerPresenter;
.super Ljava/lang/Object;
.source "CantFindItRetailerPresenter.java"
# interfaces
.implements Lcom/ibotta/android/mvp/base/loading/LoadingMvpPresenter;
# annotations
.annotation system Ldalvik/annotati... | 49,709 |
https://github.com/mnajdova/react-native-web/blob/master/scripts/jest/setupFramework.js | Github Open Source | Open Source | MIT | 2,020 | react-native-web | mnajdova | JavaScript | Code | 5 | 13 | /* eslint-env jasmine, jest */
| 45,215 |
https://github.com/InDieTasten/b0tnet/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,022 | b0tnet | InDieTasten | Ignore List | Code | 3 | 14 | /node_modules
/.vs
bundle.js
| 42,747 |
https://github.com/aliostad/deep-learning-lang-detection/blob/master/data/test/sql/f360d463b924c5953d535a318c78322fdc278e60dim_legacy.sql | Github Open Source | Open Source | MIT | 2,021 | deep-learning-lang-detection | aliostad | SQL | Code | 66 | 289 | -- ******************************************************
-- $Id: dim_legacy.sql,v 1.8 2014/02/12 14:40:41 skempins Exp $
-- Creates the legacy permit numbers.
-- ******************************************************
EXECUTE build_util.drop_table('NEW_DIM_LEGACY');
CREATE TABLE NEW_DIM_LEGACY
( PERMIT_KEY ... | 51,461 |
https://github.com/usbader/book/blob/master/src/apps/resume/react/components/city-list.js | Github Open Source | Open Source | MIT | 2,016 | book | usbader | JavaScript | Code | 133 | 605 | MyComponents.City = React.createClass({
render: function() {
var date = new Date(this.props.city.currently.time*1000);
// Hours part from the timestamp
var hours = date.getHours();
// Minutes part from the timestamp
var minutes = "0" + date.getMinutes();
// Seconds part from the timestamp
var seconds = "0" + ... | 23,688 |
https://github.com/jinsub1999/LinuxSystemProgramming/blob/master/assignment6/nonreent.c | Github Open Source | Open Source | MIT | null | LinuxSystemProgramming | jinsub1999 | C | Code | 110 | 428 | #include <pwd.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
void MyAlarmHandler(int signo) {
struct passwd *rootptr;
signal(SIGALRM, MyAlarmHandler); // 1초마다 반복하게 됨
alarm(1);
printf("in signal handler\n");
if ((rootptr = getpwnam("root")) ==
N... | 42,870 |
https://github.com/SandyMaull/HokuseiNew/blob/master/resources/views/admin_old/lay/index.blade.php | Github Open Source | Open Source | MIT | null | HokuseiNew | SandyMaull | PHP | Code | 316 | 1,578 | @extends('admin.layouts.app')
@section('title_header')
Hokusei - Layouts
@endsection
@section('breadcrumb')
<h1 class="mt-4">Pages</h1>
<ol class="breadcrumb mb-4">
<li class="breadcrumb-item">Layouts</li>
<li class="breadcrumb-item active">Pages</li>
</ol>
@endsection
@section('content')
<div class="car... | 56,355 |
https://github.com/pgm-thabisadingani/developer-quiz/blob/master/js/app.js | Github Open Source | Open Source | Apache-2.0 | null | developer-quiz | pgm-thabisadingani | JavaScript | Code | 498 | 2,392 | import * as CS from "./constants.js";
import { readFromStorage, writeToStorage } from "./storage.js";
// const QUIZ_API = 'https://quizapi.io/api/v1/questions';
// const QUIZ_TOKEN = '5iZAglL7GIgvDk9OncHf3psRa0H6rKOJFWyLvnIp';
// const QUIZ_API = 'https://quizapi.io/api/v1/questions';
// const QUIZ_TOKEN = 'FhM3bp5OFL... | 31,327 |
https://github.com/lanl/CoARCT/blob/master/lib/callsite_lister.h | Github Open Source | Open Source | BSD-3-Clause | 2,020 | CoARCT | lanl | C++ | Code | 475 | 1,554 | // callsite_lister.h
// Jan 25, 2018
#pragma once
#include "callsite_common.h"
#include "dump_things.h"
#include "types.h"
#include "utilities.h"
namespace corct {
// helper
void
print_call_details(clang::FunctionDecl const * callee,
clang::FunctionDecl const * caller,
clang::C... | 54,264 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.