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/JinfeiChen/IMSForm/blob/master/IMSForm/Classes/Libraries/Custom/PopupTreeSelectListView/IMSPopupTreeTabCell.h | Github Open Source | Open Source | MIT | null | IMSForm | JinfeiChen | C | Code | 30 | 145 | //
// IMSPopupTreeTabCell.h
// IMSForm
//
// Created by IMS_Mac on 2021/1/13.
//
#import <UIKit/UIKit.h>
#import "IMSFormSelect.h"
#import <IMSForm/IMSFormMacros.h>
NS_ASSUME_NONNULL_BEGIN
@interface IMSPopupTreeTabCell : UITableViewCell
- (void)setupData:(IMSFormSelect *)model andIsLast:(BOOL)isLast;
@end
NS_AS... | 4,361 |
https://github.com/metacall/core/blob/master/source/log/source/log_record.c | Github Open Source | Open Source | Python-2.0, GPL-2.0-or-later, MPL-1.1, NCSA, LicenseRef-scancode-proprietary-license, GPL-1.0-or-later, BSD-3-Clause, MPL-2.0, Ruby, BSD-2-Clause, MIT, Apache-2.0 | 2,023 | core | metacall | C | Code | 255 | 858 | /*
* Logger Library by Parra Studios
* Copyright (C) 2016 - 2022 Vicente Eduardo Ferrer Garcia <vic798@gmail.com>
*
* A generic logger library providing application execution reports.
*
*/
#include <log/log_level.h>
#include <log/log_record.h>
/* -- Member Data -- */
struct log_record_type
{
time_t time;
uin... | 39,476 |
https://github.com/bbhunter/dexcalibur/blob/master/test/ws/owasp.mstg.uncrackable1/apk/smali/sg/vantagepoint/a/b.smali | Github Open Source | Open Source | Apache-2.0 | 2,022 | dexcalibur | bbhunter | Smali | Code | 48 | 227 | .class public Lsg/vantagepoint/a/b;
.super Ljava/lang/Object;
# direct methods
.method public static a(Landroid/content/Context;)Z
.locals 0
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p0
invoke-virtual {p0}, Landroid/content/C... | 22,374 |
https://github.com/BuckWang0509/codeforces-go/blob/master/main/1000-1099/1016E_test.go | Github Open Source | Open Source | MIT | 2,022 | codeforces-go | BuckWang0509 | Go | Code | 54 | 192 | package main
import (
"github.com/EndlessCheng/codeforces-go/main/testutil"
"testing"
)
// https://codeforces.com/contest/1016/problem/E
// https://codeforces.com/problemset/status/1016/problem/E
func TestCF1016E(t *testing.T) {
// just copy from website
rawText := `
inputCopy
-3 1 6
2
2 4
6 7
5
3 1
1 3
6 1
6 4
7... | 4,588 |
https://github.com/mesosphere/mesos-cli/blob/master/mesos/cli/util.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | mesos-cli | mesosphere | Python | Code | 308 | 721 | # 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 not u... | 46,627 |
https://github.com/ganeshgitrepo/incubator-brooklyn/blob/master/policy/src/main/java/brooklyn/policy/autoscaling/ResizeOperator.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,014 | incubator-brooklyn | ganeshgitrepo | Java | Code | 37 | 85 | package brooklyn.policy.autoscaling;
import brooklyn.entity.Entity;
public interface ResizeOperator {
/**
* Resizes the given entity to the desired size, if possible.
*
* @return the new size of the entity
*/
public Integer resize(Entity entity, Integer desiredSize);
}
| 52,089 |
https://github.com/williamwarnockBSU/cs401/blob/master/footer.php | Github Open Source | Open Source | MIT | 2,019 | cs401 | williamwarnockBSU | Hack | Code | 10 | 36 | <div id="footer">
©2018 William Warnock | <a href=\"mainPage.php\">Main Page</a>
</div> | 18,170 |
https://github.com/SyncServerII/ServerMain/blob/master/Sources/Server/Controllers/PushNotifications/PushNotificationsController+SendPushNotifications.swift | Github Open Source | Open Source | MIT | 2,021 | ServerMain | SyncServerII | Swift | Code | 378 | 1,091 | //
// PushNotificationsController+SendPushNotifications.swift
// Server
//
// Created by Christopher G Prince on 8/14/20.
//
import ServerShared
import LoggerAPI
extension PushNotificationsController {
func sendPushNotifications(params:RequestProcessingParameters) {
guard let request = params.request a... | 44,347 |
https://github.com/terotests/react-tween-time/blob/master/src/index.ts | Github Open Source | Open Source | MIT | null | react-tween-time | terotests | TypeScript | Code | 939 | 2,124 | import * as React from 'react'
export type TweenArguments = {
mode: 'autostart' | 'manualstart'
startAt?: number
duration?: number
easingFn?: TEasing
onEnd?: () => void
}
export interface TweenControl {
start: () => void
pause: () => void
resume: () => void
}
const animData: { listeners: Array<() => ... | 34,745 |
https://github.com/keitaro-oka/tenet/blob/master/src/pe_array.cpp | Github Open Source | Open Source | MIT | 2,022 | tenet | keitaro-oka | C++ | Code | 133 | 765 | #include "pe_array.h"
using namespace std;
using namespace TENET;
PEArray::PEArray(shared_ptr<ISL_Context> context):
_domain(nullptr),
_interconnect(nullptr),
_context(context)
{}
PEArray::PEArray(
shared_ptr<ISL_Context> context,
const char* pe_domain_str,
const char*interconnect_str,
unsigned l1size,
unsig... | 25,849 |
https://github.com/mredar/appstrap/blob/master/ec2/user-data/base_user_data.sh | Github Open Source | Open Source | Unlicense | 2,019 | appstrap | mredar | Shell | Code | 240 | 451 | #!/bin/bash
# cloudinit script
# https://help.ubuntu.com/community/CloudInit
# this gets run as root on the amazon machine when it boots up
set -o pipefail # trace ERR through pipes
set -o errtrace # trace ERR through 'time command' and other functions
set -o nounset ## set -u : exit the script if you try to use an... | 5,060 |
https://github.com/nicovicz/yii2-starter-pack/blob/master/views/site/login.php | Github Open Source | Open Source | BSD-3-Clause | null | yii2-starter-pack | nicovicz | PHP | Code | 77 | 430 | <?php
/* @var $this yii\web\View */
$this->title = 'Login';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-login">
<p class="text-center"><?=__('Please fill out the following fields to login');?></p>
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'username')->tex... | 43,756 |
https://github.com/tiliarou/Ryujinx/blob/master/Ryujinx.Graphics/Gal/GalBlendFactor.cs | Github Open Source | Open Source | Unlicense | 2,018 | Ryujinx | tiliarou | C# | Code | 66 | 263 | namespace Ryujinx.Graphics.Gal
{
public enum GalBlendFactor
{
Zero = 0x4000,
One = 0x4001,
SrcColor = 0x4300,
OneMinusSrcColor = 0x4301,
SrcAlpha = 0x4302,
OneMinusSrcAlpha = 0x4303,
Ds... | 6,873 |
https://github.com/esovetkin/hanoi/blob/master/Makefile | Github Open Source | Open Source | MIT | null | hanoi | esovetkin | Makefile | Code | 5 | 20 | all:
fpc hanoi.pas
.PHONY: all
| 55,601 |
https://github.com/fcracker79/java_tests/blob/master/src/main/java/io/mirko/service/HelloHoorayService.java | Github Open Source | Open Source | MIT | null | java_tests | fcracker79 | Java | Code | 16 | 47 | package io.mirko.service;
public class HelloHoorayService implements HoorayService {
public String hooray() {
return "Hello!";
}
}
| 30,430 |
https://github.com/cazure/rt-thread/blob/master/bsp/renesas/libraries/HAL_Drivers/drv_dac.c | Github Open Source | Open Source | Apache-2.0 | 2,020 | rt-thread | cazure | C | Code | 282 | 1,414 | /*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2021-08-19 Mr.Tiger first version
*/
#include <rtthread.h>
#include "drv_config.h"
#ifdef RT_USING_DAC
//#define DRV_DEBUG
#define DBG_TAG ... | 48,421 |
https://github.com/fktk/tour-maker/blob/master/components/NavigationCard.jsx | Github Open Source | Open Source | MIT | null | tour-maker | fktk | null | Spoken | 87 | 310 | import Card from '@mui/material/Card'
import CardMedia from '@mui/material/CardMedia'
import CardContent from '@mui/material/CardContent'
import Typography from '@mui/material/Typography'
import CardActions from '@mui/material/CardActions'
import Button from '@mui/material/Button'
import MuiNextLink from '@src/Link'
e... | 1,648 |
https://github.com/violas-core/violas-client/blob/master/violas_client/canoser/types.py | Github Open Source | Open Source | MIT | null | violas-client | violas-core | Python | Code | 204 | 674 | from violas_client.canoser.int_type import Uint8
from violas_client.canoser.tuple_t import TupleT
from violas_client.canoser.map_t import MapT
from violas_client.canoser.str_t import StrT
from violas_client.canoser.bytes_t import BytesT, ByteArrayT
from violas_client.canoser.bool_t import BoolT
from violas_client.canos... | 37,448 |
https://github.com/browserstack/winjs/blob/master/tests/ViewBox/viewBox.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | winjs | browserstack | JavaScript | Code | 999 | 3,899 | // Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
/// <reference path="ms-appx://$(TargetFramework)/js/base.js" />
/// <reference path="ms-appx://$(TargetFramework)/js/en-us/base.strings.j... | 30,738 |
https://github.com/spinnaker/deck/blob/master/packages/google/src/serverGroup/details/autoHealingPolicy/modal/upsertAutoHealingPolicy.modal.less | Github Open Source | Open Source | Apache-2.0 | 2,023 | deck | spinnaker | Less | Code | 20 | 78 | .gce-auto-healing-policy-modal {
.form-group {
width: 100%;
margin-top: 10px;
}
.input-group {
width: 100%;
.input-group-addon {
width: 20%;
}
}
}
| 21,434 |
https://github.com/jcooke92/Divekick/blob/master/Assets/Resources/UI/combo5.png.meta | Github Open Source | Open Source | Apache-2.0 | 2,021 | Divekick | jcooke92 | Unity3D Asset | Code | 1,259 | 3,907 | fileFormatVersion: 2
guid: 9e86ad2b60aa23b46a89d561f86bf7d9
timeCreated: 1480568085
licenseType: Free
TextureImporter:
fileIDToRecycleName:
21300000: combo5_0
21300002: combo5_1
21300004: combo5_2
21300006: combo5_3
21300008: combo5_4
21300010: combo5_5
21300012: combo5_6
21300014: com... | 24,422 |
https://github.com/cstom4994/SourceEngineRebuild/blob/master/src/hammer/viewersettings.h | Github Open Source | Open Source | MIT | 2,022 | SourceEngineRebuild | cstom4994 | C | Code | 235 | 656 | //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
//
// Half-Life Model Viewer (c) 1999 by Mete Ciragan
//
// file: ViewerSettings.... | 987 |
https://github.com/ghostlitao/pd-openweb/blob/master/src/pages/feed/components/post/postComponent/voteContent/voteList.jsx | Github Open Source | Open Source | Apache-2.0 | 2,022 | pd-openweb | ghostlitao | null | Spoken | 274 | 1,033 | import React from 'react';
import _ from 'lodash';
import postAjax from 'src/api/post';
import { getPostDetail } from '../../../../redux/postActions';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import VoteItem from './voteItem';
/**
* 投票项列表
*/
class VoteList extends React.Component {... | 11,527 |
https://github.com/dungtran18/django-rdf/blob/master/django-rdf/rdf/shortcuts.py | Github Open Source | Open Source | BSD-3-Clause | 2,015 | django-rdf | dungtran18 | Python | Code | 627 | 1,400 | from __future__ import with_statement
from urllib import quote
from random import random
__all__ = ('create', 'get', 'get_or_create', 'create_statements', 'import_class')
def create(*args, **kwargs):
"""
A shortcut for creating one or more model instances. If one instance is created
then that instance i... | 46,259 |
https://github.com/ProjectAnni/anni-embed-player/blob/master/player.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | anni-embed-player | ProjectAnni | JavaScript | Code | 274 | 878 | class AnnilPlaylistItem {
constructor({
name,
artist,
server,
token,
album_id,
disc,
track,
duration = 300,
}) {
// Music title
this.name = name;
// Artist
this.artist = artist;
// Annil server
this.server = server;
// Annil server token
this.token = t... | 23,133 |
https://github.com/returntotime/rubysite/blob/master/vendor/spree_import_products/lib/import_products.rb | Github Open Source | Open Source | BSD-3-Clause | 2,016 | rubysite | returntotime | Ruby | Code | 38 | 234 | require 'spree_core'
require 'import_products_hooks'
#require 'delayed_job'
#require 'delayed_job_active_record'
#require '/home/aswathi/.rvm/gems/ruby-2.1.5/gems/delayed_job-4.1.1/lib/delayed_job.rb'
module ImportProducts
class Engine < Rails::Engine
config.autoload_paths += %W(#{config.root}/lib)
def sel... | 44,524 |
https://github.com/GridProtectionAlliance/go2cs/blob/master/src/Utilities/CommandLine/Infrastructure/StringBuilderExtensions.cs | Github Open Source | Open Source | MIT, BSD-3-Clause, CC-BY-3.0 | 2,022 | go2cs | GridProtectionAlliance | C# | Code | 334 | 823 | // Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.
using System;
using System.Text;
namespace CommandLine.Infrastructure
{
static class StringBuilderExtensions
{
public static StringBuilder AppendWhen(this Str... | 31,665 |
https://github.com/janvde/Rome2RioAndroid/blob/master/library/src/main/java/com/getroadmap/r2rlib/models/Route.kt | Github Open Source | Open Source | Apache-2.0 | null | Rome2RioAndroid | janvde | Kotlin | Code | 216 | 751 | package com.getroadmap.r2rlib.models
import android.os.Parcel
import android.os.Parcelable
import java.util.ArrayList
/**
* https://www.rome2rio.com/documentation/search#Route
*/
/**
* name string Route display name
* depPlace integer Departure place (index in... | 6,549 |
https://github.com/fetus-hina/stat.ink/blob/master/components/widgets/v3/userMiniInfo/items/win-pct.php | Github Open Source | Open Source | MIT, BSD-3-Clause, CC-BY-4.0 | 2,023 | stat.ink | fetus-hina | PHP | Code | 54 | 229 | <?php
/**
* @copyright Copyright (C) 2015-2022 AIZAWA Hina
* @license https://github.com/fetus-hina/stat.ink/blob/master/LICENSE MIT
* @author AIZAWA Hina <hina@fetus.jp>
*/
declare(strict_types=1);
namespace app\components\widgets\v3\userMiniInfo\items;
use Yii;
use app\models\UserStat3;
use app\models\UserSta... | 25,158 |
https://github.com/bigstar18/prjs/blob/master/prj/otc/web-exchange/src/main/java/gnnt/MEBS/packaging/action/interceptor/ExportInterceptor.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | prjs | bigstar18 | Java | Code | 477 | 1,606 | package gnnt.MEBS.packaging.action.interceptor;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
import gnnt.MEBS.base.model.Clone;
import gnnt.MEBS.base.model.inner.ClassDiscription;
import gnnt.MEBS.base.model.util.AnnotationProperty;
import gnnt.MEBS.b... | 11,820 |
https://github.com/tellypresence/sqldelight/blob/master/drivers/ios-driver/src/nativeTest/kotlin/com/squareup/sqldelight/drivers/ios/IosDriverTest.kt | Github Open Source | Open Source | Apache-2.0 | null | sqldelight | tellypresence | Kotlin | Code | 141 | 502 | package com.squareup.sqldelight.drivers.ios
import co.touchlab.sqliter.createDatabaseManager
import co.touchlab.sqliter.deleteDatabase
import co.touchlab.sqliter.DatabaseConfiguration
import co.touchlab.sqliter.NativeDatabaseManager
import com.squareup.sqldelight.db.SqlDatabase
import com.squareup.sqldelight.db.SqlPre... | 3,817 |
https://github.com/ravdeep9530/Test/blob/master/my_students.php | Github Open Source | Open Source | MIT | null | Test | ravdeep9530 | PHP | Code | 69 | 322 | <?php
include('include/config.php');
include('include/header.php');
?>
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">My Students</h1>
</div>
<!-- /.col-lg-12 -->
</div>
<!... | 34,354 |
https://github.com/BookBub/freekiqs/blob/master/Vagrantfile | Github Open Source | Open Source | MIT | 2,022 | freekiqs | BookBub | Ruby | Code | 97 | 405 | Vagrant.configure(2) do |config|
config.vm.box = 'ubuntu/xenial64'
config.vm.network :private_network, ip: '192.168.33.69'
config.vm.network :forwarded_port, host: 2202, guest: 22, id: 'ssh', auto_correct: true
config.vm.synced_folder '.', '/vagrant', type: 'nfs'
config.vm.provider :virtualbox do |vb|
... | 51,359 |
https://github.com/aswdz/Duckchat/blob/master/lib/proto/Zaly/Proto/Core/PublicSiteConfig.php | Github Open Source | Open Source | MIT | 2,021 | Duckchat | aswdz | PHP | Code | 1,525 | 4,386 | <?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: core/site.proto
namespace Zaly\Proto\Core;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Publicly available configurations
*
* Generated from protobuf message ... | 2,751 |
https://github.com/zhouhaifeng/vpe/blob/master/src/frr/ripd/rip_offset.c | Github Open Source | Open Source | Apache-2.0 | null | vpe | zhouhaifeng | C | Code | 502 | 1,725 | /* RIP offset-list
* Copyright (C) 2000 Kunihiro Ishiguro <kunihiro@zebra.org>
*
* This file is part of GNU Zebra.
*
* GNU Zebra 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 ... | 33,706 |
https://github.com/Tinswing/taro-form/blob/master/src/components/button/index.jsx | Github Open Source | Open Source | MIT | 2,021 | taro-form | Tinswing | null | Spoken | 296 | 941 | import React, { Component } from 'react'
import Taro from '@tarojs/taro'
import { View, Text, Image } from '@tarojs/components'
// import FastImage from 'react-native-fast-image'
import Loading from '../loading'
import { getContrastYIQ } from '../../utils/color'
import './index.scss'
export default class Btn extends C... | 10,209 |
https://github.com/andrewufrank/SSG/blob/master/test/ShakeStartTests.hs | Github Open Source | Open Source | BSD-2-Clause | null | SSG | andrewufrank | Haskell | Code | 842 | 2,127 | -----------------------------------------------------------------------------
--
-- Module : a shake to produce the files for the debuging and testing
-----------------------------------------------------------------------------
{-# OPTIONS_GHC -F -pgmF htfpp #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUA... | 17,406 |
https://github.com/actions-on-google/actions-on-google-testing-nodejs/blob/master/examples/number-genie/test/number-genie.test.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,022 | actions-on-google-testing-nodejs | actions-on-google | JavaScript | Code | 374 | 1,082 | /**
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 9,687 |
https://github.com/phpfui/PHPFUIWebsite/blob/master/PHPFUI/ConstantContact/Definition/ABTestData.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | PHPFUIWebsite | phpfui | PHP | Code | 190 | 350 | <?php
// Generated file. Do not edit by hand. Use update.php in project root.
namespace PHPFUI\ConstantContact\Definition;
/**
* @property string $alternative_subject The alternate email subject line to use for A/B testing.
* @property int $test_size The percentage of contact recipients to participate in the A/B T... | 54,068 |
https://github.com/liudaomanbu/unt4j/blob/master/unit4j-support-jackson/src/test/java/org/caotc/unit4j/support/jackson/UnitSerializerTest.java | Github Open Source | Open Source | Apache-2.0 | null | unt4j | liudaomanbu | Java | Code | 60 | 352 | package org.caotc.unit4j.support.jackson;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule;
import lombok.extern.slf4j.Slf4j;
import org.caotc.unit4j.core.Alias.Type;
import org.caotc.unit4j.core.Configuration;
import org.caotc.unit4j.core.constant.UnitConst... | 14,758 |
https://github.com/mike-north/ember-cli-materialize/blob/master/tests/dummy/app/templates/snippets/tables-custom-cell.hbs | Github Open Source | Open Source | MIT | 2,023 | ember-cli-materialize | mike-north | null | Spoken | 22 | 112 | {{#md-table content=content as |row|}}
{{#md-table-col row=row key='id' header='Person Id'}}
{{row.id}}
{{/md-table-col}}
{{#md-table-col row=row key='name' header='Person Name'}}
{{md-btn class='teal white-text' text=row.name}}
{{/md-table-col}}
{{/md-table}} | 35,492 |
https://github.com/Bloodyaugust/ld42/blob/master/Assets/Core/Scripts/Behaviors/EnemyDeathShake.cs | Github Open Source | Open Source | MIT | null | ld42 | Bloodyaugust | C# | Code | 34 | 102 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyDeathShake : MonoBehaviour {
Toolbox _toolbox;
// Use this for initialization
void Start () {
_toolbox = Toolbox.Instance;
}
void Die () {
_toolbox.EnemyDied.Invoke();
}
}
| 9,800 |
https://github.com/joshje/smoke_tests/blob/master/config.ru | Github Open Source | Open Source | MIT | null | smoke_tests | joshje | Ruby | Code | 4 | 13 | require_relative 'chancellor'
run Chancellor
| 22,787 |
https://github.com/dasys-lab/cnc-turtlebots/blob/master/ar_track_alvar/src/SampleMarkerlessDetector.cpp | Github Open Source | Open Source | MIT | 2,021 | cnc-turtlebots | dasys-lab | C++ | Code | 716 | 2,091 | #include "CvTestbed.h"
#include "GlutViewer.h"
#include "Shared.h"
#include "FernImageDetector.h"
#include "FernPoseEstimator.h"
using namespace alvar;
using namespace std;
bool init = true;
std::stringstream calibrationFilename;
FernPoseEstimator fernEstimator;
FernImageDetector fernDetector(true);
Drawable d;
cv::M... | 908 |
https://github.com/kravitz/transims4/blob/master/ArcPlan/ArcPlan.cpp | Github Open Source | Open Source | NASA-1.3 | 2,020 | transims4 | kravitz | C++ | Code | 691 | 3,076 | //*********************************************************
// ArcPlan.cpp - Plan File Display Utility
//*********************************************************
#include "ArcPlan.hpp"
char * ArcPlan::PLAN_FILE = "PLAN_FILE";
char * ArcPlan::PLAN_FORMAT = "PLAN_FORMAT";
char * ArcPlan::PROBLEM_FILE = "... | 43,449 |
https://github.com/mbentancour/azure-powershell/blob/master/src/RecoveryServices/RecoveryServices.Backup.ServiceClientAdapter/BMSAPIs/ProtectableItemAPI.cs | Github Open Source | Open Source | MIT | 2,022 | azure-powershell | mbentancour | C# | Code | 199 | 601 | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | 2,642 |
https://github.com/saeedoraji/angular-page-router/blob/master/app/b2b/frontend/adesso/default/views/pages/route1/route1-3.js | Github Open Source | Open Source | MIT | 2,016 | angular-page-router | saeedoraji | JavaScript | Code | 4 | 14 | window.mtt = 'saeed oraji';
| 16,308 |
https://github.com/webdevhayes/laravel-theme-system/blob/master/src/LaravelThemeSystem.php | Github Open Source | Open Source | MIT | null | laravel-theme-system | webdevhayes | PHP | Code | 317 | 1,201 | <?php
namespace Webdevhayes\LaravelThemeSystem;
use Illuminate\Support\Collection;
use Webdevhayes\LaravelThemeSystem\Models\LaravelThemeSystem as ThemeSystemModel;
class LaravelThemeSystem
{
/**
* @var Collection
*/
protected Collection $themesList;
/**
* @var \Directory|false|null
... | 29,981 |
https://github.com/sunknudsen/yubikey-prov/blob/master/yubikey-prov.sh | Github Open Source | Open Source | MIT | 2,021 | yubikey-prov | sunknudsen | Shell | Code | 2,369 | 8,093 | #! /bin/bash
set -e
set -o pipefail
# Dismount VeraCrypt encrypted volume
function dismount()
{
if [ -d "$veracrypt_encrypted_volume" ]; then
"${veracrypt[@]}" --text --dismount "$veracrypt_encrypted_volume"
fi
}
# Dismount VeraCrypt encrypted volume if script errors out or is interrupted
trap dismount ERR E... | 53,183 |
https://github.com/datta-agni/python-codes/blob/master/Codes/Math/palindrome_number.py | Github Open Source | Open Source | MIT | null | python-codes | datta-agni | Python | Code | 106 | 209 | # palindrome numbers
def is_palindrome(number: int) -> bool:
# store a copy of this number
temp = number
# calculate reverse of this number
reverse_num = 0
while number > 0:
# extract last digit of this number
digit = number % 10
# append this digit in reversed number
... | 53,926 |
https://github.com/dlaehnemann/bankers2/blob/master/bankers2VennDiagram.c | Github Open Source | Open Source | MIT | null | bankers2 | dlaehnemann | C | Code | 2,445 | 6,128 |
#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <math.h>
#include <unistd.h>
#include <inttypes.h>
#include <error.h>
#include <errno.h>
typedef struct
{
char *prefix; /*! prefix of VennDiagram plotting file */
... | 4,963 |
https://github.com/Mthandazo42/validating-binary-decompilation/blob/master/tests/single_instruction_translation_validation/mcsema/register-variants-samereg/cmovncw_r16_r16/test.c | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, NCSA | 2,020 | validating-binary-decompilation | Mthandazo42 | C | Code | 7 | 23 | void main() {
__asm__("cmovncw %ax, %ax");
} | 54,384 |
https://github.com/bobergj/danger-swift/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,022 | danger-swift | bobergj | Makefile | Code | 39 | 178 | TOOL_NAME = danger-swift
# Get this from the Danger.swift someday
PREFIX = /usr/local
INSTALL_PATH = $(PREFIX)/bin/$(TOOL_NAME)
docs:
swift run swift-doc generate Sources/Danger --module-name Danger --output Documentation/reference
./Scripts/update_docs.rb
version:
Scripts/update_makefile.sh
Scripts/update_dang... | 10,223 |
https://github.com/pelagios/peripleo2/blob/master/app/services/Page.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | peripleo2 | pelagios | Scala | Code | 93 | 318 | package services
import play.api.libs.json._
import play.api.libs.json.Reads._
import play.api.libs.functional.syntax._
case class Page[A](took: Long, total: Long, offset: Int, limit: Long, items: Seq[A]) {
def map[B](f: (A) => B): Page[B] =
Page(took, total, offset, limit, items.map(f))
def zip[B](s: Seq[B... | 13,263 |
https://github.com/chongtianfeiyu/A--Pathfinding/blob/master/src/pathfinding/INode.as | Github Open Source | Open Source | MIT | 2,010 | A--Pathfinding | chongtianfeiyu | null | Spoken | 39 | 144 | package pathfinding
{
public interface INode
{
function set f(n:Number):void;
function get f():Number;
function set g(n:Number):void;
function get g():Number;
function set h(n:Number):void;
function get h():Number;
function set walkable(b:Boolean):void;
function get walkable():Boolean;
... | 9,915 |
https://github.com/liubiggun/koa2-skeleton/blob/master/server/config/env.js | Github Open Source | Open Source | MIT | null | koa2-skeleton | liubiggun | JavaScript | Code | 113 | 356 | "use strict";
const path = require("path")
const _ = require("lodash")
const root_dir = process.env.ROOT_DIR || path.join(__dirname, "/..")
const public_dir = process.env.PUBLIC_DIR || path.resolve(__dirname, '..', 'public')
const log_dir = process.env.LOG_DIR || path.resolve(__dirname, '..', '..', 'logs')
const node_... | 17,933 |
https://github.com/jarofghosts/http-params/blob/master/index.js | Github Open Source | Open Source | MIT | 2,014 | http-params | jarofghosts | JavaScript | Code | 79 | 235 | var url = require('url')
module.exports = parse
function parse(request, _callback) {
var method = request.method.toLowerCase()
, callback = _callback || Function()
, params = ''
if(method !== 'post' && method !== 'put') {
return callback(null, url.parse(request.url, true).query)
}
request.on('da... | 50,707 |
https://github.com/gracedigital/gmote-android/blob/master/PlugPlayer/src/com/plugplayer/plugplayer/upnp/PlugPlayerControlPoint.java | Github Open Source | Open Source | MIT | 2,020 | gmote-android | gracedigital | Java | Code | 3,235 | 9,839 | package com.plugplayer.plugplayer.upnp;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.net.SocketTimeoutException;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Timer... | 3,120 |
https://github.com/open-toontown/open-toontown/blob/master/otp/namepanel/NameCheck.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | open-toontown | open-toontown | Python | Code | 946 | 3,058 | import string
from otp.otpbase import OTPLocalizer
from direct.directnotify import DirectNotifyGlobal
from panda3d.core import NSError
from panda3d.core import TextEncoder, TextNode
notify = DirectNotifyGlobal.directNotify.newCategory('NameCheck')
def filterString(str, filter):
result = ''
for char in str:
... | 44,497 |
https://github.com/Diplomatiq/diplomatiq-backend/blob/master/src/main/java/org/diplomatiq/diplomatiqbackend/methods/entities/responses/GetMyConferencesV1Response.java | Github Open Source | Open Source | MIT | null | diplomatiq-backend | Diplomatiq | Java | Code | 405 | 1,168 | package org.diplomatiq.diplomatiqbackend.methods.entities.responses;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.NotBlank;
public class GetMyConferencesV1Response {
@Schema(
description = "The full name of the conference",
example = "Budapest Internation... | 15,009 |
https://github.com/JasonConger/addonfactory-ucc-generator/blob/master/splunk_add_on_ucc_framework/UCC-UI-lib/bower_components/SplunkWebCore/search_mrsparkle/exposed/js/pages/embed.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,021 | addonfactory-ucc-generator | JasonConger | JavaScript | Code | 12 | 54 | define(['routers/Embed', 'util/router_utils'], function(EmbedRouter, router_utils) {
var embedRouter = new EmbedRouter();
router_utils.start_backbone_history();
});
| 45,792 |
https://github.com/MeetWq/nonebot-plugin-ddcheck/blob/master/nonebot_plugin_ddcheck/config.py | Github Open Source | Open Source | MIT | 2,022 | nonebot-plugin-ddcheck | MeetWq | Python | Code | 12 | 37 | from pydantic import BaseModel, Extra
class Config(BaseModel, extra=Extra.ignore):
bilibili_cookie: str = ""
| 18,296 |
https://github.com/RodrigoCursino/flask-estudo/blob/master/app/controllers/__init__.py | Github Open Source | Open Source | MIT | null | flask-estudo | RodrigoCursino | Python | Code | 28 | 108 | from app.controllers.users_controller import UserController
from app.controllers.login_controller import LoginController
from app.controllers.register_controller import RegisterController
from app.controllers.posts_controller import PostController
from app.controllers.teams_controller ... | 6,681 |
https://github.com/stefaneng/scheme48/blob/master/test/Spec.hs | Github Open Source | Open Source | MIT | 2,020 | scheme48 | stefaneng | Haskell | Code | 583 | 1,089 | module Main where
import Test.Hspec
import Language.Scheme.Evaluator
import Language.Scheme.Parser
import Language.Scheme.Error
import Language.Scheme.Error.Types
import Language.Scheme.Types
import Control.Monad (liftM)
main :: IO ()
main = hspec $ do
describe "Primitive Functions" $ do
carSpec
cdrSpec
... | 33,561 |
https://github.com/jpanesar07/delius-oauth2-server/blob/master/src/test/java/uk/gov/justice/digital/hmpps/oauth2server/auth/model/ServiceTest.java | Github Open Source | Open Source | MIT | 2,019 | delius-oauth2-server | jpanesar07 | Java | Code | 50 | 208 | package uk.gov.justice.digital.hmpps.oauth2server.auth.model;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class ServiceTest {
@Test
public void getRoles() {
final var service = new Service("CODE", "NAME", "Description", "SOME_ROLE, SOME_OTHER_ROLE", "http:... | 40,547 |
https://github.com/kiyadotdev/http4k/blob/master/http4k-testing/strikt/src/test/kotlin/org/http4k/strikt/FormAssertionsTest.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | http4k | kiyadotdev | Kotlin | Code | 33 | 153 | package org.http4k.strikt
import org.http4k.lens.FormField
import org.http4k.lens.WebForm
import org.http4k.strikt.field
import org.junit.jupiter.api.Test
import strikt.api.expectThat
import strikt.assertions.isEqualTo
class FormAssertionsTest {
@Test
fun assertions() {
val form = WebForm(mapOf("foo"... | 10,541 |
https://github.com/sensationmm/get-ground/blob/master/src/pages/dashboard/company/CompanyOverview.test.js | Github Open Source | Open Source | MIT | null | get-ground | sensationmm | JavaScript | Code | 333 | 1,593 | import { RawComponent as CompanyOverview } from './index';
import { setup, findByTestAttr } from 'src/test-utils/test-utils';
import { navigate } from 'gatsby';
import functions from 'src/utils/functions';
import Button from 'src/components/_buttons/Button/Button';
export const companyMock = {
id: 1,
additional_... | 42,845 |
https://github.com/allegheny-college-cmpsc-481-spring-2020/moban/blob/master/moban/constants.py | Github Open Source | Open Source | MIT | null | moban | allegheny-college-cmpsc-481-spring-2020 | Python | Code | 470 | 1,712 | from moban.externals import file_system
# Template type
TEMPLATE_JINJA2 = "jinja2"
TEMPLATE_COPY = "copy"
# Configurations
PROGRAM_NAME = "moban"
PROGRAM_DESCRIPTION = (
"Static text generator using any template, any data and any location."
)
DEFAULT_YAML_SUFFIX = ".yml"
# .moban.yml, default moban configuration ... | 52,703 |
https://github.com/Medha08/My-PythonScripts/blob/master/lucky.py | Github Open Source | Open Source | MIT | null | My-PythonScripts | Medha08 | Python | Code | 49 | 162 | #! python3
# lucky.py - Opens several Google search results.
import requests, sys, webbrowser, bs4
print('Googling...') # display text while downloading the Google page
res = requests.get('http://google.com/search?q=' + ' '.join(sys.argv[1:]))
res.raise_for_status()
soup = bs4.BeautifulSoup(res.text)
linkElems = soup... | 54,495 |
https://github.com/telstra/open-kilda/blob/master/src-java/kilda-persistence-api/src/main/java/org/openkilda/persistence/context/PersistenceContextManager.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | open-kilda | telstra | Java | Code | 285 | 638 | /* Copyright 2020 Telstra Open Source
*
* 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 la... | 42,420 |
https://github.com/qq702834491/shop/blob/master/Admin/Controller/LoginController.class.php | Github Open Source | Open Source | Apache-2.0 | null | shop | qq702834491 | PHP | Code | 116 | 708 | <?php
/**
* Created by PhpStorm.
* User: LYJ
* Date: 2016/5/22
* Time: 11:05
*/
namespace Admin\Controller;
use Think\Controller;
class LoginController extends Controller{
//登录首页
public function index(){
if(session('login')!=1){
$this->display('login'); //未登录
}else{
... | 19,991 |
https://github.com/support-dot-com/express-authorization/blob/master/test/ensure.js | Github Open Source | Open Source | MIT | 2,019 | express-authorization | support-dot-com | JavaScript | Code | 519 | 1,760 | var assert = require('assert');
var authorization = require('../');
describe('ensureRequest', function() {
function httpContextMock(result, done) {
var self = this;
this.done = done;
this.result = result;
result.redirectedTo = undefined;
result.nextCalled = false;
this.req = {
session: ... | 18,175 |
https://github.com/sudoudaisuke/aws-sdk-net/blob/master/buildtools/CustomTasks/Endpoint/IEndpointOverrider.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | aws-sdk-net | sudoudaisuke | C# | Code | 73 | 177 | namespace CustomTasks.Endpoint
{
/// <summary>
/// Endpoint overrider: will override the endpoints.json file and remove/add endpoints
/// Based on a json input file for addition and removal
/// </summary>
interface IEndpointOverrider
{
/// <summary>
/// Applies overrides to an e... | 14,380 |
https://github.com/libeyondea/frontend-libeyondea-social-network/blob/master/src/modules/main/components/home/components/index.tsx | Github Open Source | Open Source | MIT | 2,021 | frontend-libeyondea-social-network | libeyondea | TypeScript | Code | 131 | 513 | import PostCardComponent from 'common/components/PostCard/components';
import PostCardLoading from 'common/components/PostCardLoading/components';
import useAppDispatch from 'hooks/useAppDispatch';
import useAppSelector from 'hooks/useAppSelector';
import useDidMountEffect from 'hooks/useDidMountEffect';
import { Post ... | 53,792 |
https://github.com/aalinaaw/daw-it-service/blob/master/DAWProject/Repositories/EmployeeRepository/EmployeeRepository.cs | Github Open Source | Open Source | MIT | null | daw-it-service | aalinaaw | C# | Code | 24 | 96 | using DAWProject.Data;
using DAWProject.Models;
using DAWProject.Repositories.GenericRepository;
namespace DAWProject.Repositories.EmployeeRepository
{
public class EmployeeRepository: GenericRepository<Employee>, IEmployeeRepository
{
public EmployeeRepository(DawAppContext dbContext) : base(dbContext... | 50,995 |
https://github.com/ashu098/pythoncode-tutorials/blob/master/general/Invisible_Cloak/invisible_cloak.py | Github Open Source | Open Source | MIT | 2,020 | pythoncode-tutorials | ashu098 | Python | Code | 157 | 560 | #import libraries
import numpy as np
import cv2
import time
cap = cv2.VideoCapture(0)
#time to adjust camera
time.sleep(5)
#background image display when cloak on myself
background = 0
#capturing the background
for i in range(50):
ret, background = cap.read()
#code is running until webcam is not off
while(cap.... | 54,753 |
https://github.com/tototoshi/scalaflavor4j/blob/master/src/test/java/com/m3/scalaflavor4j/NoneTest.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | scalaflavor4j | tototoshi | Java | Code | 371 | 1,105 | package com.m3.scalaflavor4j;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import java.util.List;
import org.junit.Test;
public class NoneTest {
@Test
public void type() throws Exception {
assertThat(None.class, notNullValue());
}
@Test
public void insta... | 30,789 |
https://github.com/DoctusHartwald/artaudCode/blob/master/ws-security-1-start/src/main/java/rewards/internal/restaurant/BenefitAvailabilityPolicy.java | Github Open Source | Open Source | Apache-2.0 | null | artaudCode | DoctusHartwald | Java | Code | 78 | 150 | package rewards.internal.restaurant;
import rewards.Dining;
import rewards.internal.account.Account;
/**
* Determines if benefit is available for an account for dining.
*
* A value object. A strategy. Scoped by the Resturant aggregate.
*/
public interface BenefitAvailabilityPolicy {
/**
* Calculates if an ac... | 47,089 |
https://github.com/morristech/ProviderOne/blob/master/ruby/ProviderOne/public/templates/columns/id_column/BaseTableMethods.java | Github Open Source | Open Source | MIT | 2,013 | ProviderOne | morristech | Java | Code | 24 | 98 | public {JavaType} get{CapCamelName}() {
return m{CapCamelName};
}
public void set{CapCamelName}({JavaType} {CamelName}) {
m{CapCamelName} = {CamelName};
m{CapCamelName}Set = true;
mIsNew = {CamelName} == null;
}
| 48,392 |
https://github.com/Gaztoof/SBox-TTT/blob/master/code/Player.Ammo.cs | Github Open Source | Open Source | MIT | 2,021 | SBox-TTT | Gaztoof | C# | Code | 202 | 481 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sandbox;
public partial class Player
{
[Net, Local]
public List<int> ammos { get; set; } = new();
public virtual void InitAmmo()
{
while ( ammos.Count <= Enum.GetNames( typeof( AmmoType ) )... | 49,974 |
https://github.com/lsds/CubicleOS/blob/master/unikraft/lib/uksglist/include/uk/sglist.h | Github Open Source | Open Source | MIT | 2,021 | CubicleOS | lsds | C | Code | 1,410 | 2,809 | /*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 2008 Yahoo!, Inc.
* All rights reserved.
* Written by: John Baldwin <jhb@FreeBSD.org>
* Sharan Santhanam <sharan.santhanam@neclab.eu>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided ... | 32,042 |
https://github.com/arirusso/contacts/blob/master/contacts.gemspec | Github Open Source | Open Source | BSD-3-Clause | null | contacts | arirusso | Ruby | Code | 84 | 297 | Gem::Specification.new do |s|
s.name = "contacts"
s.version = "1.5.9.paperlesspost"
s.date = "2013-01-10"
s.summary = "A universal interface to grab contact list information from various providers including Outlook, Address Book, Yahoo, AOL, Gmail, Hotmail, and Plaxo."
s.homepage = "http://github.com/paperles... | 16,593 |
https://github.com/Diffblue-benchmarks/Xiancloud-xian/blob/master/xian-core/src/main/java/info/xiancloud/core/distribution/service_discovery/ApplicationInstance.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | Xiancloud-xian | Diffblue-benchmarks | Java | Code | 59 | 175 | package info.xiancloud.core.distribution.service_discovery;
import info.xiancloud.core.distribution.NodeStatus;
import java.util.Objects;
/**
* For Service administration.
*
* @author happyyangyuan
*/
public class ApplicationInstance extends Instance<NodeStatus> {
@Override
public boolean equals(Object ... | 12,046 |
https://github.com/hmrc/trusts/blob/master/app/models/get_trust/SchemaModels.scala | Github Open Source | Open Source | Apache-2.0 | null | trusts | hmrc | Scala | Code | 1,493 | 5,889 | /*
* Copyright 2021 HM Revenue & Customs
*
* 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 a... | 49,643 |
https://github.com/QPC-database/fhir-codegen/blob/master/src/Microsoft.Health.Fhir.SpecManager/fhir/R4/ValueSets/RelatedpersonRelationshiptype.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla | 2,021 | fhir-codegen | QPC-database | C# | Code | 5,160 | 12,768 | // <auto-generated />
// Built from: hl7.fhir.r4.core version: 4.0.1
// Option: "NAMESPACE" = "fhirCsR4"
using fhirCsR4.Models;
namespace fhirCsR4.ValueSets
{
/// <summary>
/// A set of codes that can be used to indicate the relationship between a Patient and a Related Person.
/// </summary>
public static c... | 1,161 |
https://github.com/penngineering/terraform-aws-ecs-scheduled-task/blob/master/examples/complete/main.tf | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,020 | terraform-aws-ecs-scheduled-task | penngineering | HCL | Code | 297 | 1,321 | module "ecs_scheduled_task" {
source = "../../"
name = "example"
schedule_expression = "rate(3 minutes)"
cluster_arn = aws_ecs_cluster.example.arn
subnets = module.vpc.public_subnet_ids
container_definitions = jsonencode([
{
name = "alpine"
... | 55,899 |
https://github.com/priambudi19/MoviesAndTvShow/blob/master/app/src/main/java/com/priambudi19/moviestvshows/ui/adapter/ViewPagerAdapter.kt | Github Open Source | Open Source | Apache-2.0 | null | MoviesAndTvShow | priambudi19 | Kotlin | Code | 60 | 234 | package com.priambudi19.moviestvshows.ui.adapter
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.priambudi19.moviestvshows.ui.movie.MoviesFragment
import com.priambudi19.moviestvshows.ui.tvshow.TvShowFragment
class ... | 32,744 |
https://github.com/daxnet/forms-ui/blob/master/src/FormsUI.Windows/ToolStripMerge.cs | Github Open Source | Open Source | MIT | 2,019 | forms-ui | daxnet | C# | Code | 269 | 583 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace FormsUI.Windows
{
/// <summary>
/// Represents the tool strip merging strategy.
/// </summary>
public class ToolStripMerge
{
/// <summar... | 56,034 |
https://github.com/nickc01/WeaverCore/blob/master/WeaverCore/Implementations/HitEffects_I.cs | Github Open Source | Open Source | MIT | 2,022 | WeaverCore | nickc01 | C# | Code | 26 | 83 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using WeaverCore.Utilities;
using WeaverCore.Interfaces;
namespace WeaverCore.Implementations
{
public abstract class HitEffects_I : IImplementation
{
}
}
| 49,130 |
https://github.com/daryosi/BonDriverProxy_Linux/blob/master/BonDriverProxy.h | Github Open Source | Open Source | MIT | 2,018 | BonDriverProxy_Linux | daryosi | C++ | Code | 313 | 1,178 | #ifndef __BONDRIVERPROXY_H__
#define __BONDRIVERPROXY_H__
// Shut up warning
// warning: 'daemon' is deprecated: first deprecated in OS X 10.5
#if __APPLE__
#define daemon fake_daemon
#endif
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <errno.h>
#includ... | 4,982 |
https://github.com/glvnst/skeletons/blob/master/coffeescript-sass-jquery-bootstrap/Makefile | Github Open Source | Open Source | BSD-3-Clause | null | skeletons | glvnst | Makefile | Code | 60 | 159 | TARGETS=js/main.js css/main.css
.PHONY: all clean loop
all: $(TARGETS)
clean:
rm -f $(TARGETS)
loop:
# fixme: choose a real watcher program and use that
# facebook watchman is overkill
while true; do make -s; sleep 3; done
js/%.js: %.coffee
@echo "$$(date) - Rebuilding $@"
coffee -b -c -o js -m $<
css/%.css: %... | 54,061 |
https://github.com/EchoThreeLLC/echothree/blob/master/src/java/com/echothree/view/client/web/taglib/RelatedItemsTag.java | Github Open Source | Open Source | Apache-2.0 | null | echothree | EchoThreeLLC | Java | Code | 516 | 1,691 | // --------------------------------------------------------------------------------
// Copyright 2002-2022 Echo Three, LLC
// Copyright 1999-2004 The Apache Software Foundation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// Y... | 22,216 |
https://github.com/MohsenK/sipio-java/blob/master/src/main/java/com/fonoster/sipio/core/handlers/RequestProcessor.java | Github Open Source | Open Source | MIT | 2,020 | sipio-java | MohsenK | Java | Code | 1,268 | 4,578 | package com.fonoster.sipio.core.handlers;
import com.fonoster.sipio.core.*;
import com.fonoster.sipio.core.model.*;
import com.fonoster.sipio.location.SipClient;
import com.fonoster.sipio.registry.GatewayConnector;
import com.fonoster.sipio.repository.*;
import com.fonoster.sipio.location.Locator;
import com.fonoster.... | 15,698 |
https://github.com/FluiTec/FluiTec.AppFx.Data/blob/master/src/FluiTec.AppFx.Data.Ef/Repositories/EfDataRepository.cs | Github Open Source | Open Source | MIT, Apache-2.0 | 2,022 | FluiTec.AppFx.Data | FluiTec | C# | Code | 778 | 1,976 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading;
using System.Threading.Tasks;
using FluiTec.AppFx.Data.Ef.UnitsOfWork;
using FluiTec.AppFx.Data.Entities;
using FluiTec.AppFx.Data.Repositories;
using Microsoft.EntityFrameworkCore;
using Microsoft... | 31,865 |
https://github.com/LoseYourself/big-data-plugin-8.0/blob/master/api/mapreduce/src/main/java/org/pentaho/bigdata/api/mapreduce/TaskCompletionEvent.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,018 | big-data-plugin-8.0 | LoseYourself | Java | Code | 193 | 393 | /*******************************************************************************
*
* Pentaho Big Data
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the ... | 45,217 |
https://github.com/mayssa26/E-CommercePlatform/blob/master/test/app/controllers/Users.php | Github Open Source | Open Source | PHP-3.01 | null | E-CommercePlatform | mayssa26 | PHP | Code | 574 | 2,132 | <?php
class Users extends Controller {
public function __construct() {
$this->userModel = $this->model('User');
}
public function inscrit() {
$data = [
'last_name' => '',
'first_name' => '',
'pseudo' => '',
'email' => '',
... | 31,090 |
https://github.com/TheSledgeHammer/2.11BSD_X44/blob/master/sbin/savecore/Makefile | Github Open Source | Open Source | BSD-3-Clause, BSD-4-Clause-UC | 2,023 | 2.11BSD_X44 | TheSledgeHammer | Makefile | Code | 31 | 134 | # $NetBSD: Makefile,v 1.26 2016/12/23 10:19:57 mrg Exp $
# @(#)Makefile 8.2 (Berkeley) 4/17/94
PROG= savecore
SRCS= savecore.c zopen.c
MAN= savecore.8
LDADD= -lkvm -lutil -lz
DPADD= ${LIBKVM} ${LIBUTIL} ${LIBZ}
.include <bsd.prog.mk> | 54,329 |
https://github.com/Lrs121/reNXpack/blob/master/romfs.h | Github Open Source | Open Source | ISC | 2,019 | reNXpack | Lrs121 | C | Code | 168 | 750 | #ifndef RENXPACK_ROMFS_H
#define RENXPACK_ROMFS_H
#include <stdint.h>
#include "ivfc.h"
#include "filepath.h"
#include "nsp.h"
/* RomFS structs. */
#define ROMFS_HEADER_SIZE 0x00000050
#define ROMFS_ENTRY_EMPTY 0xFFFFFFFF
#pragma pack(push, 1)
typedef struct {
uint64_t header_size;
uint64_t dir_hash_table_off... | 11,459 |
https://github.com/sonianand11/rgsoc-teams/blob/master/app/views/application_drafts/new.html.slim | Github Open Source | Open Source | MIT | 2,016 | rgsoc-teams | sonianand11 | null | Spoken | 474 | 1,285 | h1 Student Application for Rails Girls Summer of Code #{Season.current.name}
p.attention
| Please read our
#{link_to "Student Application Guide", "http://railsgirlssummerofcode.org/students/application/"}
before you fill out this form. Applications must be submitted before <strong>#{l current_season.applicat... | 39,167 |
https://github.com/macrogoal/wwh.stock/blob/master/dev/zblog4java/src/main/java/com/javaear/koubeiblog/system/controller/AdminController.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | wwh.stock | macrogoal | Java | Code | 205 | 1,067 | package com.javaear.koubeiblog.system.controller;
import com.alibaba.fastjson.JSON;
import com.baomidou.kisso.SSOConfig;
import com.baomidou.kisso.SSOHelper;
import com.baomidou.kisso.SSOToken;
import com.baomidou.kisso.annotation.Action;
import com.baomidou.kisso.annotation.Login;
import com.javaear.koubeiblog.CacheC... | 42,078 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.