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/Exsloth01/MMMMUH21/blob/master/02 Stukturerad programmering C, C plusplus/16_ATM/run_macOS.sh | Github Open Source | Open Source | MIT | 2,022 | MMMMUH21 | Exsloth01 | Shell | Code | 2 | 34 |
#./compile_macOS.sh
./_BUILD/16_ATM/Build/Products/Debug/16_ATM
| 5,166 |
https://github.com/dombrant/random/blob/master/index.js | Github Open Source | Open Source | MIT | null | random | dombrant | JavaScript | Code | 72 | 173 | let max;
let min;
if (process.argv.length == 2) {
max = 10;
min = 0;
}
if (process.argv.length == 3) {
max = parseInt(process.argv[2]);
min = 0;
}
if (process.argv.length == 4) {
max = parseInt(process.argv[2]);
min = parseInt(process.argv[3]);
} else if (process.argv.length > 4) {
console.log("ERROR: ... | 10,420 |
https://github.com/martji/emberCore/blob/master/rmemcached_monitor/src/main/java/com/sdp/messageBody/CtsMsg.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | emberCore | martji | Java | Code | 14,892 | 57,100 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: CtsMsg.proto
package com.sdp.messageBody;
public final class CtsMsg {
private CtsMsg() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface nr_connected_memOrBuilder
... | 40,071 |
https://github.com/xp-framework/xp-framework/blob/master/core/src/main/php/util/log/ConsoleAppender.class.php | Github Open Source | Open Source | BSD-3-Clause | 2,016 | xp-framework | xp-framework | PHP | Code | 110 | 290 | <?php
/* This class is part of the XP framework
*
* $Id$
*/
uses('util.log.Appender', 'util.cmd.Console');
/**
* Appender which appends data to console. The data goes to STDERR.
*
* Note: STDERR will not be defined in a web server's environment,
* so using this class will have no effect - have a lo... | 10,969 |
https://github.com/DavidAlphaFox/cl-bunny/blob/master/t/integration/amqp/exchange.bind.lisp | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla, BSD-2-Clause | 2,019 | cl-bunny | DavidAlphaFox | Common Lisp | Code | 60 | 224 | (in-package :cl-bunny.test)
(plan 1)
(subtest "Exchange.bind tests"
(with-connection ()
(with-channel ()
(let ((source) ;; TODO: maybe it's time for with-exchange?
(destination))
(unwind-protect
(let ((queue (queue.declare-temp)))
(setf source (exchange.fano... | 28,633 |
https://github.com/xianlubird/web-simulator/blob/master/test/unit/phonegap/accelerometer.js | Github Open Source | Open Source | Apache-2.0 | 2,017 | web-simulator | xianlubird | JavaScript | Code | 331 | 1,012 | /*
* Copyright 2011 Research In Motion Limited.
*
* 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 ... | 8,207 |
https://github.com/kstatz12/platypus/blob/master/Platypus/EventStore/IEventStoreModelHelpers.cs | Github Open Source | Open Source | Apache-2.0 | null | platypus | kstatz12 | C# | Code | 12 | 44 | namespace Platypus.EventStore
{
public interface IEventStoreModelHelpers
{
IEventStoreModel ToEventStoreModel(EventDescriptor input);
}
} | 36,375 |
https://github.com/yetimnew/operation_maintenace/blob/master/app/Notifications/PerformanceCreated.php | Github Open Source | Open Source | MIT | null | operation_maintenace | yetimnew | PHP | Code | 62 | 228 | <?php
namespace App\Notifications;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
class PerformanceCreated extends Notification
{
use Queueable;
public function __cons... | 31,923 |
https://github.com/uxder/yano-js/blob/master/src/string/stringf.ts | Github Open Source | Open Source | MIT | 2,021 | yano-js | uxder | TypeScript | Code | 168 | 723 |
export class stringf {
/**
* Slugifies a string.
* https://gist.github.com/hagemann/382adfc57adbd5af078dc93feef01fe1
*/
static slugify(str:string) {
const a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;'
const b = 'aaaaaaaaaacccddeeeeeeeeggh... | 22,067 |
https://github.com/Frantz103/clubartizan-Rails/blob/master/vendor/bundle/ruby/2.2.0/gems/stripe-1.43.0/lib/stripe/version.rb | Github Open Source | Open Source | MIT | 2,016 | clubartizan-Rails | Frantz103 | Ruby | Code | 6 | 20 | module Stripe
VERSION = '1.43.0'
end
| 14,764 |
https://github.com/bellotapps/webapps-commons/blob/master/webapps-commons-modules/webapps-commons-web-authentication/src/main/java/com/bellotapps/webapps_commons/security/authentication/TokenAuthenticationConfigurer.java | Github Open Source | Open Source | Apache-2.0 | null | webapps-commons | bellotapps | Java | Code | 389 | 1,128 | /*
* Copyright 2018-2019 BellotApps
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 48,937 |
https://github.com/quxiaoda/3d-graphics-demo/blob/master/src/router/route.js | Github Open Source | Open Source | MIT | 2,017 | 3d-graphics-demo | quxiaoda | JavaScript | Code | 64 | 247 | const routes = [{
'title': 'canvas demo',
'base': 'canvas',
'list': [{
'path': '/demo1',
'name': 'Demo1'
}]
},
{
'title': 'webgl demo',
'base': 'webgl',
'list': [{
'path': '/getContext',
'name': 'getContext'
},{
'path': '/helloPoint',
'name': 'helloPoint'
},{
'path': '/colo... | 5,118 |
https://github.com/ssjda-ddi/EDO/blob/master/EDO/Core/Model/Organization.cs | Github Open Source | Open Source | Apache-2.0 | null | EDO | ssjda-ddi | C# | Code | 157 | 441 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EDO.Core.Util;
namespace EDO.Core.Model
{
public class Organization :ICloneable, IIDPropertiesProvider
{
public static Organization GetOrganization(List<Organization> organizations, string id)
{
... | 53,111 |
https://github.com/thanosa/mps-linear-programming-converter/blob/master/src/mpsconverter/MpsRangesRecord.java | Github Open Source | Open Source | MIT | null | mps-linear-programming-converter | thanosa | Java | Code | 40 | 117 | package mpsconverter;
public class MpsRangesRecord
{
public final String rowId;
public final float value1;
public float value2;
public MpsRangesRecord(String rowId, float value1)
{
this.rowId = rowId;
this.value1 = value1;
}
public void setValue2(float value2)
{
... | 19,415 |
https://github.com/LawPath/winterfell-form-builder/blob/master/dist/components/layouts/QuestionsPanel.js | Github Open Source | Open Source | MIT | null | winterfell-form-builder | LawPath | JavaScript | Code | 65 | 263 | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _FieldSelector = _interopRequireDefault(require("../FieldSelect... | 18,856 |
https://github.com/sqalong/numberone-springboot-master/blob/master/src/main/java/com/numberone/project/system/tactics/domain/Tactics.java | Github Open Source | Open Source | MIT | 2,021 | numberone-springboot-master | sqalong | Java | Code | 98 | 338 | package com.numberone.project.system.tactics.domain;
import com.numberone.framework.aspectj.lang.annotation.Excel;
import com.numberone.framework.web.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
/**
* tactics对象 tactics
*
* @author... | 37,482 |
https://github.com/Fliros228/StreamCraft/blob/master/pro/gravit/repackage/io/netty/channel/ChannelMetadata.java | Github Open Source | Open Source | MIT | 2,020 | StreamCraft | Fliros228 | Java | Code | 218 | 612 | /* */ package pro.gravit.repackage.io.netty.channel;
/* */
/* */ import pro.gravit.repackage.io.netty.util.internal.ObjectUtil;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/*... | 49,186 |
https://github.com/Tsinghua-NSLab/PacketScheduler/blob/master/sp-pifo/java-code/html/dir_f7d9ed1ea1e1a3d9ab0eebf889048c79.js | Github Open Source | Open Source | BSD-2-Clause, MIT | 2,020 | PacketScheduler | Tsinghua-NSLab | JavaScript | Code | 10 | 69 | var dir_f7d9ed1ea1e1a3d9ab0eebf889048c79 =
[
[ "FIFO", "dir_3599b5b4eff80fce9274bfdd3ae51c50.html", null ]
]; | 21,706 |
https://github.com/EkremBayar/bayar/blob/master/venv/Lib/site-packages/palettable/cubehelix/__init__.py | Github Open Source | Open Source | MIT | null | bayar | EkremBayar | Python | Code | 13 | 54 | from __future__ import absolute_import
from .cubehelix import __doc__, Cubehelix, print_maps, get_map, _get_all_maps
globals().update(_get_all_maps())
| 23,369 |
https://github.com/intelequia/BotFramework-WebChat/blob/master/samples/06.recomposing-ui/e.intelequia/src/MinimizableWebChat.js | Github Open Source | Open Source | MIT | null | BotFramework-WebChat | intelequia | JavaScript | Code | 778 | 2,579 | import classNames from 'classnames';
import React, { useCallback, useMemo, useState } from 'react';
import { createStore, createCognitiveServicesSpeechServicesPonyfillFactory } from 'botframework-webchat';
import WebChat from './WebChat';
import Header from './Header'
import MaximizeButton from './MaximizeButton'
impor... | 45,023 |
https://github.com/schaechinger/internetmarke/blob/master/src/1c4a/countryCode.ts | Github Open Source | Open Source | MIT | 2,022 | internetmarke | schaechinger | TypeScript | Code | 1,397 | 3,077 | enum CountryCode {
ABW = 'ABW', // Aruba
AFG = 'AFG', // Afghanistan
AGO = 'AGO', // Angola
AIA = 'AIA', // Anguilla
ALA = 'ALA', // Åland Islands
ALB = 'ALB', // Albania
AND = 'AND', // Andorra
ANT = 'ANT', // Netherlands Antilles
ARE = 'ARE', // United Arab Emirates
ARG = 'ARG', // Argentina
ARM... | 8,155 |
https://github.com/cndipowa/www/blob/master/laravel/app/database/migrations/2014_08_02_023256_populate_products_table.php | Github Open Source | Open Source | MIT | 2,014 | www | cndipowa | PHP | Code | 177 | 840 | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class PopulateProductsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::table('products')->insert(array(
'product_code'=>'PD1001',
'product_name'=>'Andro... | 2,026 |
https://github.com/coreytegeler/the-revealer/blob/master/assets/sass/rows.scss | Github Open Source | Open Source | MIT | 2,019 | the-revealer | coreytegeler | SCSS | Code | 149 | 530 | .columns {
.sections {
padding: 0 0 2em 0;
section {
a {
text-decoration: none;
}
.text {
h1 {
@include serifText;
@include xLargeText;
font-weight: $regular;
}
h2 {
color: $medium;
font-weight: $regular;
z-index: 100;
@include serifText;
font-style:... | 23,985 |
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/conll/P145078.conll | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,022 | mtaac_cdli_ur3_corpus | cdli-gh | null | Spoken | 643 | 4,383 | #new_text=P145078
# ID FORM SEGM XPOSTAG HEAD DEPREL MISC
o.col1.1.1 5(disz)
o.col1.1.2 udu
o.col1.1.3 u4
o.col1.1.4 5(disz)-kam
o.col1.2.1 1(u)
o.col1.2.2 1(disz)
o.col1.2.3 udu
o.col1.2.4 u4
o.col1.2.5 6(disz)-kam
o.col1.3.1 1(u)
o.col1.3.2 2(disz)
o.col1.3.3 udu
o.col1.3.4 u4
o.col1.3.5 7(disz)-kam
o.col1.4.1 5(disz... | 9,896 |
https://github.com/Bositkhon/PreUniversity/blob/master/common/models/Group.php | Github Open Source | Open Source | BSD-3-Clause | null | PreUniversity | Bositkhon | PHP | Code | 323 | 1,050 | <?php
namespace common\models;
use Yii;
use yii\behaviors\TimestampBehavior;
/**
* This is the model class for table "tb_group".
*
* @property int $id
* @property int $user_id
* @property int $subject_id
* @property string $name
* @property int $created_at
* @property int $updated_at
*
* @property Assignme... | 28,631 |
https://github.com/K9Wolf-k9/CS50/blob/master/credit.c | Github Open Source | Open Source | MIT | null | CS50 | K9Wolf-k9 | C | Code | 320 | 787 | /* All credit for the code goes to mitrnsplt (Github profile)
* Excelent code, i learn a lot from it
*
* This code was the only one that got stuck, so i turned
* to people who managed
*/
#include <cs50.h>
#include <math.h>
#include <stdio.h>
int main(void)
{
long long cardnumber = 0;
do
{
ca... | 45,360 |
https://github.com/ppartarr/azure-sdk-for-java/blob/master/sdk/edgegateway/mgmt-v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/NetworkAdapterDHCPStatus.java | Github Open Source | Open Source | MIT | 2,021 | azure-sdk-for-java | ppartarr | Java | Code | 138 | 373 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.edgegateway.v2019_03_01;
import java.util.Collec... | 12,077 |
https://github.com/ishansharma1320/Sentiment-Classification/blob/master/sentiment-classification/Stacking Ensemble/Stacking_trial.ipynb | Github Open Source | Open Source | MIT | 2,021 | Sentiment-Classification | ishansharma1320 | Jupyter Notebook | Code | 4,697 | 21,682 | {
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "Stacking trial.ipynb",
"provenance": [],
"collapsed_sections": [],
"machine_shape": "hm"
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"nam... | 12,223 |
https://github.com/pubsajib/laravel.blog/blob/master/resources/views/messages/show.blade.php | Github Open Source | Open Source | MIT | null | laravel.blog | pubsajib | PHP | Code | 49 | 192 | @extends('main')
@section('title', 'Comment')
@section('content')
<div class="row">
<div class="col-md-8 col-sm-offset-2 well">
<h1>{{ $comment->title }}</h1>
<span class="label label-default"> Posted In : {{ $comment->post->title }} </span>
<span class="label label-default"> Posted By : {{ $... | 48,364 |
https://github.com/apache/arrow/blob/master/go/parquet/internal/encoding/byte_array_decoder.go | Github Open Source | Open Source | Apache-2.0, MIT, BSD-3-Clause, BSD-2-Clause, ZPL-2.1, BSL-1.0, LicenseRef-scancode-public-domain, NTP, OpenSSL, CC-BY-4.0, LLVM-exception, Python-2.0, CC0-1.0, LicenseRef-scancode-protobuf, JSON, Zlib, CC-BY-3.0, LicenseRef-scancode-unknown-license-reference, NCSA | 2,023 | arrow | apache | Go | Code | 546 | 1,457 | // 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... | 20,570 |
https://github.com/Lemmur/react-smart-scroller/blob/master/babel.config.js | Github Open Source | Open Source | MIT | null | react-smart-scroller | Lemmur | JavaScript | Code | 32 | 179 | module.exports = {
"env": {
"production": {
"plugins": ["transform-remove-console"],
},
},
"plugins": [
["module-resolver", {
"extensions": [".ts", ".tsx"],
"root": ["./src"],
}],
"@babel/plugin-transform-runtime",
"@babel/p... | 28,710 |
https://github.com/steenvinkel/PurchasesApi/blob/master/Business/Models/Ledger.cs | Github Open Source | Open Source | MIT | null | PurchasesApi | steenvinkel | C# | Code | 108 | 198 | namespace Business.Models
{
public class Ledger
{
public double Income { get; set; } = 0;
public double IncomeWithoutTaxAndPension { get; set; } = 0;
public double Expenses { get; set; } = 0;
public double ExpensesWithoutTax { get; set; } = 0;
public double VariableExpen... | 4,987 |
https://github.com/KeenMate/phoenix-websocket-auction/blob/master/bidding-poc-client/src/App.svelte | Github Open Source | Open Source | MIT | 2,021 | phoenix-websocket-auction | KeenMate | null | Spoken | 262 | 1,010 | <script>
import {get} from "svelte/store"
import Router, {push} from "svelte-spa-router"
import {stringify} from "qs"
import toastr from "./helpers/toastr-helpers"
import routes, {Urls} from "./routes"
import {authTokenStore, userStore} from "./providers/auth"
import {auctionsChannel, initAuctionsChannel} from "... | 44,641 |
https://github.com/thoughtworks/lcm-sayu/blob/master/pages/api/validate-email.ts | Github Open Source | Open Source | Apache-2.0 | null | lcm-sayu | thoughtworks | TypeScript | Code | 68 | 179 | import { NextApiHandler } from 'next'
import { withSessionServer } from 'src/high-order-function/WithSession'
import { Role } from 'src/model/Role'
import { UserService } from 'src/services/UserService'
const handler: NextApiHandler = async (req, res) => {
const userService = new UserService()
const { email } = re... | 12,202 |
https://github.com/Cperbony/code-education-editora/blob/master/Modules/CodeEduBook/Repositories/CategoryRepository.php | Github Open Source | Open Source | MIT | 2,021 | code-education-editora | Cperbony | PHP | Code | 29 | 106 | <?php
namespace CodeEduBook\Repositories;
use CodePub\Criteria\CriteriaTrashedInterface;
use Prettus\Repository\Contracts\RepositoryInterface;
/**
* Interface CategoryRepository
* @package namespace CodePub\Repositories;
*/
interface CategoryRepository extends
RepositoryInterface,
CriteriaTrashedInterface... | 16,083 |
https://github.com/bgssuseto/Lapor-Pak-Kades/blob/master/application/controllers/Report.php | Github Open Source | Open Source | MIT | null | Lapor-Pak-Kades | bgssuseto | PHP | Code | 256 | 1,278 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Report extends CI_Controller {
public function __construct()
{
parent::__construct();
// load model
$this->load->model('Report_model');
}
// index view report
public function index()
{
... | 52,389 |
https://github.com/Cornutum/tcases/blob/master/tcases-rest-assured/src/main/java/org/cornutum/tcases/openapi/restassured/RestAssuredTestCaseWriter.java | Github Open Source | Open Source | MIT | 2,023 | tcases | Cornutum | Java | Code | 1,604 | 5,253 | //////////////////////////////////////////////////////////////////////////////
//
// Copyright 2020, Cornutum Project
// www.cornutum.org
//
//////////////////////////////////////////////////////////////////////////////
package org.cornutum.tcases.openapi.restassured;
i... | 19,566 |
https://github.com/PartTimeHuman/LeetCode-NOTES/blob/master/Algorithms/14.Longest-Common-Prefix/solution.cpp | Github Open Source | Open Source | MIT | 2,021 | LeetCode-NOTES | PartTimeHuman | C++ | Code | 50 | 158 | class Solution
{
public:
string longestCommonPrefix(vector<string> &strs)
{
if( strs.size() == 0)
return "";
string prefix = strs[0];
for(int i = 0;i<strs.size();i++)
{
if(prefix.size() == 0 || strs[i].size() == 0)
return "";
... | 8,428 |
https://github.com/tewentong/JavaHub/blob/master/CommonClassLibrary2/RedBlackTreeDemo.java | Github Open Source | Open Source | MIT | null | JavaHub | tewentong | Java | Code | 74 | 1,444 | /*
红黑树结构分析:
二叉树的主要特点:数据查询的时候可以提供更好的查询性能,但是这中原始的二叉树的性能是有明显缺陷的
例如:当二叉树结构改变的时候(增加或删除)就有可能出现不平衡的问题
之前所谓的解决二叉树性能问题的方式最终没有作用
也就是说,如果想要达到最好的二叉树,那么它首先应该是一个平衡二叉树,同时所有的节点的层次深度应该相同
如果二叉树按照以上的结构进行保存,那么二叉树检索操作的执行效率一定是最高的
可是,你的树需要忍受住这些频繁的增加或者... | 17,344 |
https://github.com/hogemomen/sunaba/blob/master/build.js | Github Open Source | Open Source | MIT | null | sunaba | hogemomen | JavaScript | Code | 71 | 261 | const packager = require('electron-packager');
const config = require('./package.json');
packager({
dir: './', // 対象
out: './dist', // 出力先
name: config.name, // 名前
platform: 'win32', // win32, darwin
arch: 'x64', // 64bit
version: '0.35.2', // electron のバージョン
icon: './app.icns'... | 30,505 |
https://github.com/dusan01/sf-cnr/blob/master/gamemodes/irresistible/config/migrations/_migrations.pwn | Github Open Source | Open Source | MIT | 2,022 | sf-cnr | dusan01 | null | Spoken | 675 | 1,678 | /*
* Irresistible Gaming (c) 2018
* Developed by Lorenc
* Module: irresistible\config\migrations\_migrations.pwn
* Purpose: checks (and executes if you want) migration files for a server
*/
/* ** Disable Checker If Disabled By Operator / Production Mode ** */
#if !defined SERVER_MIGRATIONS_FOLDER || !defined DEBU... | 36,987 |
https://github.com/indiest/channeld-unity-mirror/blob/master/Assets/Scripts/BuildScript.cs | Github Open Source | Open Source | Apache-2.0 | null | channeld-unity-mirror | indiest | C# | Code | 475 | 1,567 | #if UNITY_EDITOR
using System;
using System.IO;
using System.Text;
using UnityEditor;
using UnityEngine;
public class BuildScript
{
public const string LINUX_SERVER_BINARY = "server.x86_64";
public const string WINDOWS_BINARY = "MirrorTest.exe";
static void BuildPlayer(string folderName, string binaryName... | 23,961 |
https://github.com/mizmoz/react-material-design-icons/blob/master/src/hardware/KeyboardArrowDown.jsx | Github Open Source | Open Source | MIT | null | react-material-design-icons | mizmoz | null | Spoken | 52 | 196 |
import React, { PropTypes } from 'react';
const KeyboardArrowDown = props => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 48 48"
style={props.style}
className={props.className}
>
<path d="M14.83 16.42L24 25.59l9.17-9.17L36 19.25l-12 12-12-12z"/>
</svg>
... | 302 |
https://github.com/dbgate/datadmin/blob/master/DatAdmin.Core/DataSources/Jobs/BulkCopyJob.cs | Github Open Source | Open Source | MIT | null | datadmin | dbgate | C# | Code | 393 | 1,648 | using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.ComponentModel;
namespace DatAdmin
{
[JobCommand(Name = "bulkcopy")]
public class BulkCopyJobCommand : JobCommand
{
ITabularDataStore m_source;
ITabularDataStore m_target;
IRowTransfor... | 43,077 |
https://github.com/amenoyoya/SeleneTalk/blob/master/v3.0.0/src/LuaJIT-2.0.4-custom/src/_parse.h | Github Open Source | Open Source | MIT, CC-PDDC | 2,019 | SeleneTalk | amenoyoya | C | Code | 63 | 260 | #ifndef _LJ_PARSE_WRAP_H
#define _LJ_PARSE_WRAP_H
/*** Parser for Lua ***/
LJ_FUNC GCproto *lj_parse_lua(LexState *ls);
LJ_FUNC GCstr *lj_parse_keepstr_lua(LexState *ls, const char *str, size_t l);
#if LJ_HASFFI
LJ_FUNC void lj_parse_keepcdata_lua(LexState *ls, TValue *tv, GCcdata *cd);
#endif
/*** Parser for SeleneT... | 38,425 |
https://github.com/jrf0110/phoenix/blob/master/src/auth.js | Github Open Source | Open Source | MIT | 2,015 | phoenix | jrf0110 | JavaScript | Code | 355 | 1,115 | 'use strict'
var querystr = require('querystring')
var util = require('./lib/util')
var permDescs = {
identRead: { title: 'Verify your Identity', methods: ['whoami'] },
feedRead: { title: 'Read Messages from the Feeds', methods: ['get', 'getPublicKey', 'createFeedStream', 'createHistoryStream', 'createLogStream', ... | 2,984 |
https://github.com/Ranafugaz/mapbox-navigation-android/blob/master/libnavigation-core/src/main/java/com/mapbox/navigation/core/telemetry/events/NavigationRerouteEvent.kt | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0, BSD-2-Clause | 2,021 | mapbox-navigation-android | Ranafugaz | Kotlin | Code | 92 | 272 | package com.mapbox.navigation.core.telemetry.events
import android.annotation.SuppressLint
import com.mapbox.navigation.base.metrics.NavigationMetrics
@SuppressLint("ParcelCreator")
internal class NavigationRerouteEvent(
phoneState: PhoneState,
metricsRouteProgress: MetricsRouteProgress
) : NavigationEvent(ph... | 50,249 |
https://github.com/optoro-devops/optoro_consul/blob/master/metadata.rb | Github Open Source | Open Source | MIT | null | optoro_consul | optoro-devops | Ruby | Code | 58 | 290 | name 'optoro_consul'
maintainer 'Optoro'
maintainer_email 'devops@optoro.com'
license 'MIT'
description 'Installs Consul'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
issues_url 'https://optoro.atlassian.net/secure/Dashboard.jspa'
source_url 'https://github.com/optoro-devops/optoro_consul'
v... | 17,969 |
https://github.com/XitizVerma/Data-Structures-and-Algorithms-Advanced/blob/master/A2OJ/A/019. I Wanna Be the Guy.cpp | Github Open Source | Open Source | MIT | 2,020 | Data-Structures-and-Algorithms-Advanced | XitizVerma | C++ | Code | 48 | 180 | #include <bits/stdc++.h>
#define lli long long int
#define endl "\n"
using namespace std;
int main()
{
set <int> s1;
int n,p,data;
cin>>n;
cin>>p;
while(p--)
{
cin>>data;
s1.insert(data);
}
cin>>p;
while(p--)
{
cin>>data;
s1.insert(data);
}
if(s1.size() == n)
cout<<"I become the guy.";
else
c... | 15,782 |
https://github.com/miketrumpis/ecoglib/blob/master/ecoglib/__init__.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | ecoglib | miketrumpis | Python | Code | 19 | 37 | from . import estimation
from . import graph
from . import signal_testing
from . import vis
__version__ = '0.1.0'
| 14,639 |
https://github.com/wanglong11/1810a_shop/blob/master/resources/views/admin/WX/award.blade.php | Github Open Source | Open Source | MIT | 2,019 | 1810a_shop | wanglong11 | Blade | Code | 36 | 331 | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>抽奖页面</title>
</head>
<body>
亲爱的用户:
欢迎来到XXX公众号抽奖活动--优惠劵抽奖活动
参加抽奖活动限制
1.每个关注公众号得人一天只能抽一次
2.用户不需要登录即可抽奖
3.点击按钮参加抽奖,每个用户中奖概率有十分之一
4.中奖的用户可以再我的用户页面查询到我的中奖劵
<h6>惠战假期,只有7天,抢购ing!</h6>
<form action="awardAdd" method="get">
<button type="submit... | 16,158 |
https://github.com/ligangty/indy/blob/master/deployments/cache-migrator/src/main/java/org/commonjava/indy/tools/cache/Main.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | indy | ligangty | Java | Code | 1,446 | 3,833 | /**
* Copyright (C) 2011-2022 Red Hat, Inc. (https://github.com/Commonjava/indy)
*
* 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
... | 13,976 |
https://github.com/moto2002/mobahero_src/blob/master/ExitGames.Client.Photon/PeerBase.cs | Github Open Source | Open Source | MIT | 2,021 | mobahero_src | moto2002 | C# | Code | 2,664 | 10,727 | using Photon.SocketServer.Security;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
namespace ExitGames.Client.Photon
{
public abstract class PeerBase
{
internal delegate void MyAction();
public enum ConnectionStateValue : byte
{
Disconnected,
... | 32,381 |
https://github.com/PandaWood/NetCode-Template/blob/master/src/Tests/TypeHelperTests.cs | Github Open Source | Open Source | BSD-3-Clause | 2,018 | NetCode-Template | PandaWood | C# | Code | 136 | 607 | using System;
using System.Collections.Generic;
using NetCodeT;
using NUnit.Framework;
namespace Tests.NetCodeT
{
[TestFixture]
public class TypeHelperTests
{
// ReSharper disable once MemberCanBePrivate.Global
public class InnerClass
{
}
// ReSharper disable once MemberCanBePrivate.Global
public stati... | 7,210 |
https://github.com/nodeca/nodeca.forum/blob/master/server/admin/core/rebuild/forum_posts/stop.js | Github Open Source | Open Source | MIT | 2,021 | nodeca.forum | nodeca | JavaScript | Code | 24 | 86 | // Stop post rebuild
//
'use strict';
module.exports = function (N, apiPath) {
N.validate(apiPath, {});
N.wire.on(apiPath, async function forum_posts_rebuild_stop() {
await N.queue.cancel('forum_posts_rebuild');
});
};
| 48,526 |
https://github.com/jbcdnr/colabtemplate/blob/master/loop.py | Github Open Source | Open Source | MIT | 2,020 | colabtemplate | jbcdnr | Python | Code | 16 | 55 | from tqdm import tqdm
import time
with tqdm(total=100) as pbar:
for i in range(10):
time.sleep(0.5)
pbar.update(10) | 52,693 |
https://github.com/yiorgosdi/ProductManager/blob/master/src/main/java/net/codejava/MvcConfig.java | Github Open Source | Open Source | Apache-2.0 | null | ProductManager | yiorgosdi | Java | Code | 54 | 326 | package net.codejava;
import java.nio.file.Path;
import java.nio.file.Paths;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.spring... | 48,514 |
https://github.com/Siteimprove/CsQuery/blob/master/source/CsQuery.Tests/jQuery/Data.cs | Github Open Source | Open Source | MIT | 2,022 | CsQuery | Siteimprove | C# | Code | 3,106 | 8,542 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NUnit.Framework;
using Assert = NUnit.Framework.Assert;
using TestContext = Microsoft.VisualStudio.TestTools.UnitTesting.TestContext;
namespace CsQuery.Tests.jQuery.Data
{
... | 44,012 |
https://github.com/PlanitarInc/gofakes3/blob/master/internal/s3assumer/config.go | Github Open Source | Open Source | MIT | 2,022 | gofakes3 | PlanitarInc | Go | Code | 37 | 109 | package main
type Config struct {
S3Endpoint string
S3Region string
S3PathStyle bool
S3TestBucketPrefix string
Verbose bool
}
func (c Config) BucketStandard() string {
return c.S3TestBucketPrefix
}
func (c Config) BucketUnversioned() string {
return c.S3TestBucketPrefix + "... | 45,927 |
https://github.com/3rd-Eden/eson/blob/master/test/ms.js | Github Open Source | Open Source | Unlicense, MIT | 2,022 | eson | 3rd-Eden | JavaScript | Code | 53 | 216 |
var Parser = require('../')
, ms = Parser.ms;
describe('ms', function(){
it('should parse string ms representations', function(){
ms('', '1000ms').should.equal(1000);
ms('', '1s').should.equal(1000);
ms('', '4 seconds').should.equal(4000);
ms('', '4 seconds').should.equal(4000);
ms('', '2 minu... | 2,411 |
https://github.com/mickpik/taxi-sam/blob/master/resources/clear_cache_dev.sh | Github Open Source | Open Source | MIT | null | taxi-sam | mickpik | Shell | Code | 16 | 57 | #!/usr/bin/env bash
php bin/console cache:clear --env=dev --no-warmup
php bin/console assets:install --symlink
php bin/console assetic:dump --env=dev --no-debug
| 12,882 |
https://github.com/davidhay25/clinFHIR/blob/master/node_modules/gofsh/node_modules/fsh-sushi/dist/import/FSHErrorListener.d.ts | Github Open Source | Open Source | Apache-2.0 | 2,023 | clinFHIR | davidhay25 | TypeScript | Code | 59 | 149 | import { TextLocation } from '../fshtypes';
import { Recognizer, Token } from 'antlr4';
import { ErrorListener } from 'antlr4/error';
export declare class FSHErrorListener extends ErrorListener {
readonly file: string;
constructor(file: string);
syntaxError(recognizer: Recognizer, offendingSymbol: Token, li... | 45,273 |
https://github.com/avanzu/audiorama/blob/master/web/assets/js/app.js | Github Open Source | Open Source | MIT | null | audiorama | avanzu | JavaScript | Code | 171 | 776 | /**
* Created by avanzu on 13.05.17.
*/
(function ($) {
var primary = $('[data-role="primary"]'),
aside = $('[data-role="aside"]'),
parent = primary.closest('[data-role="collapse-container"]'),
loader = $('#loader').html();
var switchToPrimay = function () {
primary.collap... | 34,404 |
https://github.com/remp2020/remp/blob/master/Mailer/extensions/mailer-module/src/migrations/20200226123805_fix_attachment_size_type_in_mail_logs.php | Github Open Source | Open Source | MIT | 2,023 | remp | remp2020 | PHP | Code | 24 | 92 | <?php
use Phinx\Migration\AbstractMigration;
class FixAttachmentSizeTypeInMailLogs extends AbstractMigration
{
public function change()
{
$this->table('mail_logs')
->changeColumn('attachment_size', 'integer', ['null' => true, 'default' => null])
->update();
}
}
| 703 |
https://github.com/mfazail/Blog/blob/master/app/Http/Controllers/PostController.php | Github Open Source | Open Source | MIT | null | Blog | mfazail | PHP | Code | 327 | 991 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Post;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Str;
class PostController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public funct... | 36,183 |
https://github.com/anil-oommen/HiveCentral/blob/master/hivecontroller-svc/src/main/java/com/oom/hive/central/controller/SensorChartController.java | Github Open Source | Open Source | Apache-2.0 | null | HiveCentral | anil-oommen | Java | Code | 103 | 413 | package com.oom.hive.central.controller;
import com.oom.hive.central.model.ChartJSData;
import com.oom.hive.central.service.ChartingService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.Resp... | 42,759 |
https://github.com/ezat90s/gdk-for-unity/blob/master/workers/unity/Packages/io.improbable.gdk.transformsynchronization/Components/GetTransformFromGameObjectTag.cs | Github Open Source | Open Source | MIT | 2,022 | gdk-for-unity | ezat90s | C# | Code | 13 | 45 | using Unity.Entities;
namespace Improbable.Gdk.TransformSynchronization
{
public struct GetTransformFromGameObjectTag : IComponentData
{
}
}
| 32,307 |
https://github.com/hyeonsoo-kim/2019_CortexM3_Electronic_Piano/blob/master/FS/src/buzzer.c | Github Open Source | Open Source | MIT | null | 2019_CortexM3_Electronic_Piano | hyeonsoo-kim | C | Code | 45 | 279 |
#include "hw_config.h"
#include "buzzer.h"
#include "stm32f10x_gpio.h"
void bsp_buzzer_gpio_init(void)
{
GPIO_InitTypeDef GPIO_InitStructure;
GPIO_InitStructure.GPIO_Pin = BUZZER_OUT_PIN;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GP... | 21,938 |
https://github.com/NikolaiMishev/Telerik-Academy/blob/master/Module-1/03.CSharp OOP/OOP Principles - Part 1/02. Students and workers/Worker.cs | Github Open Source | Open Source | MIT | null | Telerik-Academy | NikolaiMishev | C# | Code | 129 | 379 |
namespace _02.Students_and_workers
{
using System;
using System.Text;
public class Worker : Human
{
private decimal workHoursPerDay;
public Worker(string firstName, string lastName, decimal weekSalary, decimal workHoursPerDay)
: base(firstName, lastName)... | 49,691 |
https://github.com/Goldiserv/chess-game/blob/master/nextjs/libs/contextLib.tsx | Github Open Source | Open Source | MIT | null | chess-game | Goldiserv | TypeScript | Code | 21 | 47 | import { useContext, createContext } from "react";
export const AppContext = createContext(null as any);
export function useAppContext() {
return useContext(AppContext);
} | 8,740 |
https://github.com/cesandoval/PaintingWData/blob/master/lib/awsFs.js | Github Open Source | Open Source | MIT | 2,020 | PaintingWData | cesandoval | JavaScript | Code | 476 | 1,770 | var AWS = require('aws-sdk');
var fs = require('fs');
var path = require('path');
// var uuidv1 = require('uuid/v1');
var s3 = new AWS.S3({apiVersion: '2006-03-01'});
module.exports.uploadToBucket = upload
function upload(filePath, bucket, callback){
var uploadParams = {Bucket: bucket, Key: '', Body: ''};
va... | 8,997 |
https://github.com/bcgov/cas-ciip-portal/blob/master/schema/data/prod/form_json.sql | Github Open Source | Open Source | Apache-2.0 | 2,020 | cas-ciip-portal | bcgov | SQL | Code | 223 | 808 |
begin;
create temporary table administration (json_data jsonb);
\copy administration(json_data) from program 'sed ''s/\\/\\\\/g'' < prod/form_json/administration.json | tr -d ''\n''';
create temporary table emission (json_data jsonb);
\copy emission(json_data) from program 'sed ''s/\\/\\\\/g'' < prod/form_json/emiss... | 35,915 |
https://github.com/PissedCapslock/methanol/blob/master/methanol-brotli/src/main/java/com/github/mizosoft/methanol/brotli/internal/BrotliBodyDecoderFactory.java | Github Open Source | Open Source | MIT | 2,022 | methanol | PissedCapslock | Java | Code | 307 | 646 | /*
* Copyright (c) 2019, 2020 Moataz Abdelnasser
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 48,523 |
https://github.com/sdinulescu/ANLGen/blob/master/N_Butterworth/NOrderButterworth.js | Github Open Source | Open Source | CC0-1.0 | 2,020 | ANLGen | sdinulescu | JavaScript | Code | 344 | 729 | // This .js file computes the poles for a n order lowpass Butterworth
// user-specified parameters (inlets):
// N (order), ripple (E), stopband attenuation parameter (Op)
inlets = 3;
var N;
var signal;
var cutoff;
// s(k) = sigma(k) + jw(k) -> function for calculating the poles
var poles;
// outlets: pole values (... | 38,877 |
https://github.com/pdebruic/JQueryWidgetBox/blob/master/repository/JQWidgetBox-FullCalendar-Core.package/JQFullCalendarEvent.class/instance/timespan.st | Github Open Source | Open Source | MIT | null | JQueryWidgetBox | pdebruic | null | Spoken | 6 | 22 | accessing
timespan
^timespan ifNil: [timespan:=Timespan new.] | 7,824 |
https://github.com/milliorn/NWN.Framework.Lite/blob/master/NWN.Framework.Lite/Enum/CombatModeType.cs | Github Open Source | Open Source | MIT | 2,021 | NWN.Framework.Lite | milliorn | C# | Code | 102 | 272 | namespace NWN.Framework.Lite.Enum
{
public class CombatModeType: NWEnumBase<int>
{
public static readonly CombatModeType Invalid = new(0);
public static readonly CombatModeType Parry = new(1);
public static readonly CombatModeType PowerAttack = new(2);
public static readonly Comb... | 38,515 |
https://github.com/jacine/reflex/blob/master/packages/gatsby-theme-profile/gatsby-node.js | Github Open Source | Open Source | MIT | 2,020 | reflex | jacine | JavaScript | Code | 220 | 662 | const withDefaults = require("./theme-options")
const {
ensureContentPath,
generateNodeFromMdx,
mdxResolverPassthrough,
} = require("@reflexjs/gatsby-helpers")
exports.onPreBootstrap = ({ reporter }, themeOptions) => {
const { contentPath } = withDefaults(themeOptions)
ensureContentPath(contentPath, reporte... | 53,175 |
https://github.com/VProfirov/Telerik-Academy-BetaRun/blob/master/Team Projects - old/TeamLime/TeamLime/YuGiOh/Interfaces/ISpell.cs | Github Open Source | Open Source | MIT | null | Telerik-Academy-BetaRun | VProfirov | C# | Code | 15 | 40 | namespace YuGiOh.Interfaces
{
public interface ISpell
{
SpellTypes SpellType { get; set; }
}
}
| 20,856 |
https://github.com/igiu1988/iOS13.4.1-Runtime-Headers/blob/master/protocols/WFContentPropertyContainer.h | Github Open Source | Open Source | MIT | 2,020 | iOS13.4.1-Runtime-Headers | igiu1988 | Objective-C | Code | 12 | 42 | /* Generated by EzioChiu.
*/
@protocol WFContentPropertyContainer
@required
- (NSSet *)containedProperties;
@end
| 2,816 |
https://github.com/SummerBatch/SummerBatch/blob/master/Summer.Batch.Infrastructure/Item/UnexpectedInputException.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | SummerBatch | SummerBatch | C# | Code | 323 | 571 | //
// Copyright 2015 Blu Age Corporation - Plano, Texas
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | 21,450 |
https://github.com/lqsong/lqsblog-frontend-uniapp/blob/master/components/back-top/back-top.vue | Github Open Source | Open Source | MIT | 2,021 | lqsblog-frontend-uniapp | lqsong | Vue | Code | 140 | 602 | <template>
<view v-if="scrollTop>400" class="backTop" :class="{'mescroll-fade-in':isShowToTop}" @click="toTopClick">
<image :src="src" mode="widthFix" />
</view>
</template>
<script>
export default {
name: "backTop",
props: {
src: {
type: String,
default: '/static/images/icons/top.png'
},
id:... | 28,440 |
https://github.com/dicechick373/statistics-hyogo/blob/master/components/index/index/HyogoKenminKyokuCard.vue | Github Open Source | Open Source | MIT | null | statistics-hyogo | dicechick373 | Vue | Code | 222 | 980 | <template>
<v-col cols="12" md="6" class="DataCard">
<client-only>
<template>
<v-card>
<data-view
:title="cardConfig.graphTitle"
:title-id="cardConfig.titleId"
>
<client-only>
<div id="map-wrap">
<l-map :zoom="zoom... | 23,375 |
https://github.com/ijinfeng/PrudishCamera/blob/master/PrudishCamera/Pods/AlertMaker/AlertMaker/AlertMaker/Classes/XCCustomAlertView.h | Github Open Source | Open Source | MIT | null | PrudishCamera | ijinfeng | C | Code | 31 | 165 | //
// XCCustomAlertView.h
// lib-ui
//
// Created by jinfeng on 2021/1/29.
//
#import <UIKit/UIKit.h>
#import "XCAlertMaker.h"
#import "XCCustomAlertMaker.h"
NS_ASSUME_NONNULL_BEGIN
@interface XCCustomAlertView : UIView<XCAlertContentProtocol>
- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithStyle:(X... | 47,344 |
https://github.com/ljh131/simplemodel/blob/master/src/main/java/me/zerosquare/simplemodel/ModelData.java | Github Open Source | Open Source | MIT | 2,020 | simplemodel | ljh131 | Java | Code | 876 | 2,652 | package me.zerosquare.simplemodel;
import me.zerosquare.simplemodel.Model.QueryType;
import me.zerosquare.simplemodel.annotations.Column;
import me.zerosquare.simplemodel.internals.Logger;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.tuple.MutablePair;
import org.apache.commons.lang3.tu... | 7,649 |
https://github.com/subhankar-panda/SpotifyCompare/blob/master/views/compare.jade | Github Open Source | Open Source | Unlicense | null | SpotifyCompare | subhankar-panda | null | Spoken | 19 | 60 | block content
if(firstName === '' || secondName === '')
include index
div.container-fluid
div.row.error-padding
p.text-center.error-class Please enter both artist names!
| 42,105 |
https://github.com/visallo/vertexium/blob/master/accumulo/iterators/src/main/java/org/vertexium/accumulo/iterator/model/EdgesWithEdgeInfo.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | vertexium | visallo | Java | Code | 267 | 739 | package org.vertexium.accumulo.iterator.model;
import org.apache.hadoop.io.Text;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
public abstract class EdgesWithEdgeInfo<T> extends Edges {
// We used to use a HashMap here but that was too slow. Replaced with a L... | 43,967 |
https://github.com/jambo-framework/jambo/blob/master/jambo/jambo.core/src/main/java/com/jambo/jop/ui/filter/PermissionChecker.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | jambo | jambo-framework | Java | Code | 41 | 137 | /**
*
*/
package com.jambo.jop.ui.filter;
import com.jambo.jop.infrastructure.db.DBAccessUser;
/**
* @author He Kun
*
*/
public interface PermissionChecker {
boolean checkURIPermission(String oprcode, String currentURI, DBAccessUser user) throws Exception;
/**
* 判断是否是受保护资源
*/
boolean checkPermission(S... | 1,544 |
https://github.com/chromium/chromium/blob/master/extensions/renderer/bindings/api_event_listeners.h | Github Open Source | Open Source | BSD-3-Clause | 2,023 | chromium | chromium | C++ | Code | 987 | 2,707 | // Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef EXTENSIONS_RENDERER_BINDINGS_API_EVENT_LISTENERS_H_
#define EXTENSIONS_RENDERER_BINDINGS_API_EVENT_LISTENERS_H_
#include <string>
#include <vector>
#include "base/fun... | 31,403 |
https://github.com/elifesciences-publications/CandN/blob/master/Dynamic_Stability_L2/evolution_sun_mod.c | Github Open Source | Open Source | MIT | 2,021 | CandN | elifesciences-publications | C | Code | 1,212 | 3,981 | //-------- includes for CVODE
#include <cvode/cvode.h>
#include <nvector/nvector_serial.h> // serial N_Vector types, fcts., macros
#include <cvode/cvode_dense.h> // prototype for CVDense
#include <sundials/sundials_dense.h> // definitions DlsMat DENSE_ELEM
#include <sundials/sundials_types.h> // definition... | 4,166 |
https://github.com/CookiesCo/elide/blob/master/java/gust/backend/BaseController.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | elide | CookiesCo | Java | Code | 294 | 430 | /*
* Copyright © 2020, The Gust Framework Authors. All rights reserved.
*
* The Gust/Elide framework and tools, and all associated source or object computer code, except where otherwise noted,
* are licensed under the Zero Prosperity license, which is enclosed in this repository, in the file LICENSE.txt. Use of
* ... | 22,101 |
https://github.com/ugorji/java-common/blob/master/src/main/java/net/ugorji/oxygen/util/OxygenRevision.java | Github Open Source | Open Source | MIT | null | java-common | ugorji | Java | Code | 674 | 2,176 | /* <<< COPYRIGHT START >>>
* Copyright 2006-Present OxygenSoftwareLibrary.com
* Licensed under the GNU Lesser General Public License.
* http://www.gnu.org/licenses/lgpl.html
*
* @author: Ugorji Nwoke
* <<< COPYRIGHT END >>>
*/
package net.ugorji.oxygen.util;
import java.io.Serializable;
import java.io.StringWr... | 31,173 |
https://github.com/guomoumou123/php5.5.10/blob/master/tests/lang/foreachLoop.006.phpt | Github Open Source | Open Source | PHP-3.01 | 2,020 | php5.5.10 | guomoumou123 | PHP | Code | 38 | 85 | --TEST--
Foreach loop tests - error case: key is a reference.
--FILE--
<?php
$a = array("a","b","c");
foreach ($a as &$k=>$v) {
var_dump($v);
}
?>
--EXPECTF--
Fatal error: Key element cannot be a reference in %s on line 3 | 35,491 |
https://github.com/ruiming0114/communication-platform/blob/master/项目源代码/plat/src/main/java/com/rm/plat/service/TopicCommentReplyServiceImpl.java | Github Open Source | Open Source | MIT | 2,020 | communication-platform | ruiming0114 | Java | Code | 86 | 397 | package com.rm.plat.service;
import com.rm.plat.mapper.TopicCommentReplyMapper;
import com.rm.plat.pojo.TopicCommentReply;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class TopicCommentReplyServiceImpl implements... | 3,323 |
https://github.com/edwardZhang/CocoStudioSamples/blob/master/DemoGameScene/Resources/building/ani/gongjianshou/gongjianshou0.plist | Github Open Source | Open Source | MIT | 2,013 | CocoStudioSamples | edwardZhang | XML Property List | Code | 114 | 1,082 | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>archer_running_br_001 .png</key>
<dict>
<key>width</key>
<integer>107</integer>
<key>h... | 21,571 |
https://github.com/adriculous/javascript-arithmetic-lab-bootcamp-prep-000/blob/master/index.js | Github Open Source | Open Source | LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,018 | javascript-arithmetic-lab-bootcamp-prep-000 | adriculous | JavaScript | Code | 16 | 38 | function add() {
}
function subtract() {
}
function multiply() {
}
function divide() {
}
| 1,460 |
https://github.com/LiveSupportApp/LiveSupport/blob/master/API/Twitch.js | Github Open Source | Open Source | MIT | 2,018 | LiveSupport | LiveSupportApp | JavaScript | Code | 254 | 918 | const {EventEmitter} = require('events')
const request = require('request')
const tmi = require('tmi.js')
const OAuth = require('./Twitch/OAuth')
const Util = require('../Util')
let client
class Twitch extends EventEmitter {
authorize() {
const oauth = new OAuth(Util.settings.twitch.oauth)
oauth.authorize((... | 23,168 |
https://github.com/LineGames/Leggiero/blob/master/Engine/Modules/Sound/OboeBackend/_OboeInternal.cpp | Github Open Source | Open Source | MIT | 2,021 | Leggiero | LineGames | C++ | Code | 41 | 154 | ////////////////////////////////////////////////////////////////////////////////
// OboeBackend/_OboeInternal.h (Leggiero/Modules - Sound)
//
// Oboe internal implementation
////////////////////////////////////////////////////////////////////////////////
// My Header
#include "_OboeInternal.h"
namespace Leggiero
{
... | 23,304 |
https://github.com/jwgibanez/hotpotcoin/blob/master/app/src/App.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | hotpotcoin | jwgibanez | JavaScript | Code | 595 | 2,038 | import logo from './logo.svg';
import './App.css';
import $ from 'jquery';
import React, { useState } from 'react';
import ReactDOM from 'react-dom';
import detectEthereumProvider from '@metamask/detect-provider';
import WalletConnect from "@walletconnect/client";
import QRCodeModal from "@walletconnect/qrcode-modal";
... | 22,700 |
https://github.com/swordev/suid/blob/master/packages/icons-material/lib/RequestPage.jsx | Github Open Source | Open Source | MIT | 2,023 | suid | swordev | JavaScript | Code | 25 | 249 | import $ from "./utils/createSvgIcon";
export default $(
() => (
<>
<rect fill="none" height="24" width="24" />
<path d="M14,2H6C4.9,2,4,2.9,4,4v16c0,1.1,0.9,2,2,2h12c1.1,0,2-0.9,2-2V8L14,2z M15,11h-4v1h3c0.55,0,1,0.45,1,1v3 c0,0.55-0.45,1-1,1h-1v1h-2v-1H9v-2h4v-1h-3c-0.55,0-1-0.45-1-1v-3c0-0.55,0.45... | 19,802 |
https://github.com/samlet/stack/blob/master/sagas/misc/singleton.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | stack | samlet | Python | Code | 20 | 73 | class Singleton(object):
def __new__(cls, *args, **kwargs):
if not hasattr(cls, '_the_instance'):
print("* create one.")
cls._the_instance = object.__new__(cls, *args, **kwargs)
return cls._the_instance
| 8,379 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.