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/Ashleshk/Competition-Beyond-Academics/blob/master/Scientia 2018/Blind Coding/Scientia/Scientia/Beeramid.cpp | Github Open Source | Open Source | MIT | 2,020 | Competition-Beyond-Academics | Ashleshk | C++ | Code | 235 | 555 |
/****************************************************************************************************************************************************/
/* Beeramid */
/* Developed By: Ashlesh Khajbage */
/* Created on: 07/09/2018 ... | 33,964 |
https://github.com/chunhsin/ua-cmd/blob/master/test.js | Github Open Source | Open Source | MIT | 2,017 | ua-cmd | chunhsin | JavaScript | Code | 65 | 223 | 'use strict';
const expect = require('chai').expect;
const uaCmd = require('./');
const TEST_UA = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/' +
'537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36';
describe('uaCmd', () => {
describe('prettyParse', () => {
it('should parse browser'... | 24,478 |
https://github.com/carlos-granados/google-cloud-php/blob/master/AutoMl/metadata/V1/Geometry.php | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,020 | google-cloud-php | carlos-granados | PHP | Code | 73 | 681 | <?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/automl/v1/geometry.proto
namespace GPBMetadata\Google\Cloud\Automl\V1;
class Geometry
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::... | 4,251 |
https://github.com/Intiligent/dashboard/blob/master/src/resources/script/entry/dashboard.js | Github Open Source | Open Source | MIT | 2,021 | dashboard | Intiligent | JavaScript | Code | 643 | 2,362 | import Vue from 'vue';
import api from '@dashboard/core/api/index.js';
import {
ButtonGroup,
Breadcrumb,
BreadcrumbItem,
DatePicker,
Empty,
Loading,
Table,
TableColumn,
Tag,
Tooltip,
Avatar,
} from 'element-ui';
import {
ArcElement,
Chart,
BarController,
BarEl... | 36,980 |
https://github.com/cxk1998/BlockchainFinalwork/blob/master/contracts/Summon.sol | Github Open Source | Open Source | MIT | null | BlockchainFinalwork | cxk1998 | Solidity | Code | 160 | 544 | pragma solidity ^0.4.17;
contract Hero {
uint hp;
uint atk;
uint def;
uint ID;
//获取属性
function getHp() public view returns(uint) {
return hp;
}
function getAtk() public view returns(uint) {
return atk;
}
function getDef() public view returns(uint) {
return def;
}
//增加属性
function addHp() public ... | 46,042 |
https://github.com/fcofdez/alcaudon/blob/master/src/main/scala/org/alcaudon/api/DataflowBuilder.scala | Github Open Source | Open Source | Apache-2.0 | null | alcaudon | fcofdez | Scala | Code | 298 | 1,119 | package org.alcaudon.api
import java.util.UUID
import cats.Semigroup
import cats.implicits._
import org.alcaudon.api.DataflowBuilder._
import org.alcaudon.api.DataflowNodeRepresentation.{
ComputationRepresentation,
SinkRepresentation,
SourceRepresentation,
StreamRepresentation
}
import org.alcaudon.core.sourc... | 20,480 |
https://github.com/restlesscode/PhobosSwift/blob/master/PhobosSwift/Core/Classes/PBSImageFilter.swift | Github Open Source | Open Source | MIT | 2,021 | PhobosSwift | restlesscode | Swift | Code | 853 | 1,883 | //
//
// PBSImageFilter.swift
// PhobosSwiftCore
//
// Copyright (c) 2021 Restless Codes Team (https://github.com/restlesscode/)
//
// 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 wi... | 32,878 |
https://github.com/janakhpon/react-socket-todo/blob/master/src/App.js | Github Open Source | Open Source | MIT | null | react-socket-todo | janakhpon | JavaScript | Code | 24 | 59 | import React from 'react';
import PageContainer from './Components/Home'
import './App.css';
function App() {
return (
<>
<PageContainer />
</>
);
}
export default App;
| 32,882 |
https://github.com/acresende/data-mining-puc-final-task/blob/master/Data-Mining-Horse-Final.py | Github Open Source | Open Source | MIT | null | data-mining-puc-final-task | acresende | Python | Code | 1,514 | 6,574 |
# coding: utf-8
# # --------------------------- Bibliotecas Utilizadas ---------------------------
# In[1]:
get_ipython().run_line_magic('matplotlib', 'inline')
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifier
from sklearn.feature_selection import RFE
from skl... | 24,052 |
https://github.com/guoxiaowhu/lenstronomy/blob/master/test/test_PointSource/test_point_source.py | Github Open Source | Open Source | MIT | 2,018 | lenstronomy | guoxiaowhu | Python | Code | 394 | 2,410 | import pytest
import numpy as np
import numpy.testing as npt
from lenstronomy.PointSource.point_source import PointSource
from lenstronomy.LensModel.lens_model import LensModel
from lenstronomy.LensModel.Solver.lens_equation_solver import LensEquationSolver
import lenstronomy.Util.param_util as param_util
class Test... | 37,073 |
https://github.com/devonfw/ide/blob/master/ide/src/main/java/com/devonfw/tools/ide/url/updater/androidstudio/AndroidJsonContent.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | ide | devonfw | Java | Code | 59 | 162 | package com.devonfw.tools.ide.url.updater.androidstudio;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* JSON data object for a content of Android. We map only properties that we are interested in and let jackson ignore
* all others.
*/
public class AndroidJsonContent {
@Json... | 49,831 |
https://github.com/saifad303/digital-library-of-bengali-language/blob/master/application/views/change_pass.php | Github Open Source | Open Source | MIT | null | digital-library-of-bengali-language | saifad303 | PHP | Code | 8 | 27 | <div class="container">
<?php
echo 'change_pass paice';
?>
</div> | 48,277 |
https://github.com/UWRealityLab/vrcapstone20sp-team5/blob/master/Assets/MagicLeap-Tools/Examples/Playspace/Code/Logic/PlayspaceExample.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | vrcapstone20sp-team5 | UWRealityLab | C# | Code | 176 | 915 | // ---------------------------------------------------------------------
//
// Copyright (c) 2018-present, Magic Leap, Inc. All Rights Reserved.
// Use of this file is governed by the Creator Agreement, located
// here: https://id.magicleap.com/terms/developer
//
// ----------------------------------------------------... | 622 |
https://github.com/chrisying/pulsr/blob/master/js/landing.js | Github Open Source | Open Source | MIT | 2,014 | pulsr | chrisying | JavaScript | Code | 112 | 339 |
var fire = new Firebase('https://pulsr-data.firebaseio.com/');
function createNewGraph(s) {
// Check that it hasn't been made already
var shortName = document.getElementById(s).value;
var idRef = fire.child('map/' + shortName + '/uid');
idRef.once('value', function(data) {
if (data.val() === null) {
... | 30,671 |
https://github.com/jverkoey/liteqr/blob/master/qrui/Classes/QRDecoder.mm | Github Open Source | Open Source | Apache-2.0 | 2,021 | liteqr | jverkoey | Objective-C++ | Code | 533 | 1,931 | //
// Decoder.m
// ZXing
//
// Created by Christian Brunschen on 31/03/2008.
//
/*
* Copyright 2008 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www... | 43,951 |
https://github.com/m-maillot/code-du-travail-numerique/blob/master/packages/code-du-travail-api/tests/create_indexes.js | Github Open Source | Open Source | Apache-2.0 | null | code-du-travail-numerique | m-maillot | JavaScript | Code | 95 | 358 | import { documentMapping } from "@cdt/data/indexing/document.mapping";
import {
createIndex,
indexDocumentsBatched,
version,
} from "@cdt/data/indexing/esClientUtils";
import { DOCUMENTS, SUGGESTIONS } from "@cdt/data/indexing/esIndexName";
import { suggestionMapping } from "@cdt/data/indexing/suggestion.mapping"... | 30,168 |
https://github.com/fossabot/alphaflow_dev/blob/master/sys-src/alphamodel/src/main/java/alpha/model/apa/FundamentalSemanticType.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | alphaflow_dev | fossabot | Java | Code | 299 | 730 | /**************************************************************************
* alpha-Flow: distributed case files in form of active documents
* (supporting knowledge-driven ad-hoc processes in healthcare)
* ==============================================
* Copyright (C) 2009-2012 by
* - Christoph P. Neumann (http... | 9,824 |
https://github.com/noear/Water/blob/master/water.protocol/src/main/java/org/noear/water/protocol/LogSource.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | Water | noear | Java | Code | 68 | 215 | package org.noear.water.protocol;
import org.noear.water.model.LogM;
import org.noear.water.model.TagCountsM;
import org.noear.water.protocol.model.log.LogModel;
import java.io.Closeable;
import java.util.List;
public interface LogSource extends Closeable {
List<LogModel> query(String logger, Integer level, int ... | 42,256 |
https://github.com/ghiloufibelgacem/jornaldev/blob/master/CoreJavaProjects/JavaMailExample/src/com/journaldev/mail/SSLEmail.java | Github Open Source | Open Source | MIT | 2,022 | jornaldev | ghiloufibelgacem | Java | Code | 142 | 517 | package com.journaldev.mail;
import java.util.Properties;
import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
public class SSLEmail {
/**
Outgoing Mail (SMTP) Server
requires TLS or SSL: smtp.gmail.com (use authentication)
Use Authentication: Yes
Po... | 21,200 |
https://github.com/akr/mphash/blob/master/mphash.c | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-public-domain | 2,017 | mphash | akr | C | Code | 474 | 1,195 | /*
* mphash.c - mphash extension for hash function implementation.
*
* Copyright (C) 2008 Tanaka Akira <akr@fsij.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code mus... | 1,691 |
https://github.com/ziuxlab/travelongocolombia/blob/master/app/Http/Controllers/FeaturesController.php | Github Open Source | Open Source | MIT | 2,017 | travelongocolombia | ziuxlab | PHP | Code | 243 | 687 | <?php
namespace App\Http\Controllers;
use App\Feature;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
class FeaturesController extends Controller {
//
public function __construct() {
$this->middleware( 'auth' );
}
/**
* Display a listing of the resource.
*
* @retu... | 31,991 |
https://github.com/isorsa/rails-template/blob/master/app/controllers/users/users_controller.rb | Github Open Source | Open Source | MIT | null | rails-template | isorsa | Ruby | Code | 82 | 390 | class Users::UsersController < ApplicationController
skip_before_action :require_confirmed_email
before_action :require_authentication
before_action :load_sessions
def edit
@user = Current.user
end
def update
@user = Current.user
if @user.update_with_password(user_params)
handle_changed... | 50,271 |
https://github.com/manyids2/mkd_pytorch/blob/master/mkd_pytorch/mkd.py | Github Open Source | Open Source | MIT | 2,022 | mkd_pytorch | manyids2 | Python | Code | 473 | 1,738 | import os
import numpy as np
import torch
import torch.nn as nn
from .layers import Gradients, EmbedGradients, ExplicitSpacialEncoding, L2Norm, Whitening
class MKD(nn.Module):
"""
Module, which computes Multiple kernel local descriptors of given patches.
Args:
dtype: (str) Parametrization of kern... | 35,739 |
https://github.com/xen22/omnisharp-node-client/blob/master/publish.sh | Github Open Source | Open Source | MIT | 2,019 | omnisharp-node-client | xen22 | Shell | Code | 228 | 737 | VERSION_COMMIT=$(git log -1 --format="%h %s %b" | grep -a "release bump");
if [ -n "$VERSION_COMMIT" ]; then TAG_COMMIT="patch"; fi;
VERSION_COMMIT=$(git log -1 --format="%h %s %b" | grep -a "release patch");
if [ -n "$VERSION_COMMIT" ]; then TAG_COMMIT="patch"; fi;
VERSION_COMMIT=$(git log -1 --format="%h %s %b" | gre... | 23,999 |
https://github.com/creativesuraj/ember-redux/blob/master/tests/zlast/combine-reducers-test.js | Github Open Source | Open Source | MIT | 2,017 | ember-redux | creativesuraj | JavaScript | Code | 88 | 339 | import { run } from '@ember/runloop';
import { test, module } from 'qunit';
import { applyPatch, revertPatch } from '../helpers/patch-reducer';
import startApp from '../helpers/start-app';
var application;
module('Acceptance | combine reducers test', {
beforeEach() {
applyPatch();
application = startApp();
... | 9,766 |
https://github.com/usdot-fhwa-stol/carma-messenger/blob/master/carma-messenger-core/lib_asn1c/CMakeLists.txt | Github Open Source | Open Source | Apache-2.0 | 2,023 | carma-messenger | usdot-fhwa-stol | CMake | Code | 167 | 585 |
# Copyright (C) 2020-2021 LEIDOS.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 21,869 |
https://github.com/andris9/scoreboard/blob/master/static/js/client.js | Github Open Source | Open Source | MIT | 2,013 | scoreboard | andris9 | JavaScript | Code | 72 | 347 |
require([], function(){
window.addEventListener("storage", function (e){
var data;
if(e.key == "_scoreboard"){
checkUpdate();
}
}, false);
function checkUpdate(){
try{
data = JSON.parse(localStorage._scoreboard);
}catch(E){
c... | 31,843 |
https://github.com/wondernect/wondernect-elements/blob/master/redis/src/main/java/com/wondernect/elements/redis/config/RedisConfig.java | Github Open Source | Open Source | MIT | null | wondernect-elements | wondernect | Java | Code | 172 | 980 | package com.wondernect.elements.redis.config;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.prop... | 25,977 |
https://github.com/AlasdairKing/react-native-windows/blob/master/vnext/Microsoft.ReactNative/Modules/Animated/DiffClampAnimatedNode.cpp | Github Open Source | Open Source | MIT | 2,021 | react-native-windows | AlasdairKing | C++ | Code | 104 | 445 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "pch.h"
#include "DiffClampAnimatedNode.h"
#include "NativeAnimatedNodeManager.h"
namespace react::uwp {
DiffClampAnimatedNode::DiffClampAnimatedNode(
int64_t tag,
const folly::dynamic &config,
const std::shared_ptr<Nativ... | 16,485 |
https://github.com/jpartogi/django-simple-blog/blob/master/simple_blog/admin.py | Github Open Source | Open Source | BSD-3-Clause | 2,009 | django-simple-blog | jpartogi | Python | Code | 85 | 311 | from django.contrib import admin
from django.contrib.auth.models import User
from simple_blog.models import *
class BlogAdmin(admin.ModelAdmin):
list_display = ('name', 'timezone')
class CategoryAdmin(admin.ModelAdmin):
search_fields = ('name',)
prepopulated_fields = {"slug": ("name",)}
list_display ... | 23,427 |
https://github.com/AndyLuke/mireka/blob/master/test/mireka/smtp/address/parser/PathParserTest.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,021 | mireka | AndyLuke | Java | Code | 73 | 416 | package mireka.smtp.address.parser;
import static org.junit.Assert.*;
import mireka.smtp.address.parser.PathParser;
import mireka.smtp.address.parser.ast.PathAST;
import org.junit.Test;
public class PathParserTest {
@Test
public void testSimplePath() throws Exception {
PathAST pathAST = new PathParse... | 37,723 |
https://github.com/fernandocode/database-builder/blob/master/src/crud/where-compiled.ts | Github Open Source | Open Source | MIT | 2,023 | database-builder | fernandocode | TypeScript | Code | 15 | 37 | import { ParamType } from "../core/utils";
export interface WhereCompiled {
where: string;
params: ParamType[];
}
| 19,106 |
https://github.com/sudopark/Clean-Mooyaho/blob/master/MooyahoApp/MooyahoApp/dependencyInjector/DependencyInjector+ViewerScenes.swift | Github Open Source | Open Source | MIT | null | Clean-Mooyaho | sudopark | Swift | Code | 178 | 705 | //
// DependencyInjector+ViewerScenes.swift
// MooyahoApp
//
// Created by sudo.park on 2021/12/11.
// Copyright © 2021 ParkHyunsoo. All rights reserved.
//
import UIKit
import Domain
import CommonPresenting
import ViewerScene
// MARK: - ViewerScenes
extension DependencyInjector: InnerWebViewSceneBuilable {
... | 24,875 |
https://github.com/Vladislav-Zolotaryov/L2J_Levelless_Custom/blob/master/L2J_Server/java/com/l2jserver/gameserver/model/actor/instance/L2BoatInstance.java | Github Open Source | Open Source | MIT | null | L2J_Levelless_Custom | Vladislav-Zolotaryov | Java | Code | 246 | 825 | /*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be us... | 26,306 |
https://github.com/IThawk/rust-project/blob/master/rust-master/src/test/ui/nll/polonius/assignment-kills-loans.rs | Github Open Source | Open Source | Apache-2.0, MIT, LicenseRef-scancode-other-permissive, BSD-3-Clause, BSD-2-Clause, NCSA | 2,023 | rust-project | IThawk | Rust | Code | 333 | 886 | #![allow(dead_code)]
// This tests the various kinds of assignments there are. Polonius used to generate `killed`
// facts only on simple assigments, but not projections, incorrectly causing errors to be emitted
// for code accepted by NLL. They are all variations from example code in the NLL RFC.
// check-pass
// co... | 38,429 |
https://github.com/channainfo/data-aggregation/blob/master/data-aggregation/protected/tests/unit/DaFixtureTestCase.php | Github Open Source | Open Source | BSD-3-Clause | 2,012 | data-aggregation | channainfo | PHP | Code | 133 | 497 | <?php
class DaFixtureTestCase {
private $table;
private $cols;
private $fixtures;
private $records ;
/**
* @param String $table
*/
public function __construct($table, $cols, $fixtures) {
$this->table = $table;
$this->cols = $cols;
$this->fixtures = $fixtures... | 3,912 |
https://github.com/cntanglijun/node-log/blob/master/example/node-log.js | Github Open Source | Open Source | MIT | null | node-log | cntanglijun | JavaScript | Code | 89 | 467 | 'use strict';
var _nodeLog = require('../lib/node-log');
var _nodeLog2 = _interopRequireDefault(_nodeLog);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var testString = 'hello world!';
var localDate = new Date().toLocaleString();
// Default
_nodeLog2.default.norma... | 18,999 |
https://github.com/IvoVG/MyLibrary/blob/master/Services/Reader/IReaderService.cs | Github Open Source | Open Source | MIT | 2,021 | MyLibrary | IvoVG | C# | Code | 25 | 79 | using MyLibrary.Models.Readers;
namespace MyLibrary.Services.Reader
{
public interface IReaderService
{
public bool IsReader(string userId);
public bool IsWorker(string userId);
public ReaderMineRoomModel GetReaderModel(string userId, string bookId);
}
} | 41,482 |
https://github.com/jankotek/kotlin/blob/master/idea/testData/quickfix/typeAddition/beforePublicFunWithoutBody.kt | Github Open Source | Open Source | Apache-2.0 | null | kotlin | jankotek | Kotlin | Code | 25 | 47 | // "Specify return type explicitly" "false"
// ERROR: Function 'foo' without a body must be abstract
package a
class A() {
public fun <caret>foo()
} | 13,433 |
https://github.com/SBTrebhuvan/jantick-discord-bot/blob/master/src/commands/mod/NicknameCommand.js | Github Open Source | Open Source | MIT | 2,020 | jantick-discord-bot | SBTrebhuvan | JavaScript | Code | 78 | 281 | const BaseCommand = require('../../utils/structures/BaseCommand');
const { MessageEmbed } = require('discord.js')
module.exports = class NickanmeCommand extends BaseCommand {
constructor() {
super('nick', 'mod', []);
}
async run(client, message, args) {//
if(!message.member.hasPermission("MANAGE_NICK... | 19,963 |
https://github.com/hotgen/tooling-for-how-old-is-this-house/blob/master/src/commands/2-sources/wikivoyage/8-reportGeocodes.ts | Github Open Source | Open Source | BSD-3-Clause | 2,021 | tooling-for-how-old-is-this-house | hotgen | TypeScript | Code | 30 | 123 | import { autoStartCommandIfNeeded } from "@kachkaev/commands";
import { generateReportGeocodes } from "../../../shared/helpersForCommands";
import { generateWikivoyageOutputLayer } from "../../../shared/sources/wikivoyage";
export const reportGeocodes = generateReportGeocodes({
source: "wikivoyage",
generateOutpu... | 27,514 |
https://github.com/taikio/dotnetcore-webapi-and-ravendb/blob/master/Models/Dtos/SalesDtos/InputCustomerShortnameDto.cs | Github Open Source | Open Source | MIT | null | dotnetcore-webapi-and-ravendb | taikio | C# | Code | 23 | 65 | namespace dotnetcore_webapi_and_ravendb.Models.Dtos.SalesDtos
{
public class InputCustomerShortnameDto
{
public string Id { get; set; }
public string ShortName { get; set; }
}
} | 21,639 |
https://github.com/ddossot/servicetalk/blob/master/servicetalk-concurrent-api/src/test/java/io/servicetalk/concurrent/api/publisher/AwaitTest.java | Github Open Source | Open Source | Apache-2.0 | null | servicetalk | ddossot | Java | Code | 343 | 1,187 | /*
* Copyright © 2018 Apple Inc. and the ServiceTalk project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 1,342 |
https://github.com/jaosn60810/learn_java/blob/master/Cmoney_java_part/week1_all/hw/week1/week1_polymorphism_shape/src/com/company/Rectangle.java | Github Open Source | Open Source | MIT | null | learn_java | jaosn60810 | Java | Code | 83 | 218 | package com.company;
public class Rectangle implements Shape {
private double width;
private double height;
private String name = "長方形";
public Rectangle(double width, double height) {
this.width = width;
this.height = height;
}
@Override
public double area() {
r... | 42,641 |
https://github.com/sudo-dog/Keeper/blob/master/src/util/external/s3.ts | Github Open Source | Open Source | MIT | 2,018 | Keeper | sudo-dog | TypeScript | Code | 66 | 176 | /**
* @author WMXPY
* @deprecated External Utils
* @fileoverview Amazon S3
*/
import { error, ERROR_CODE } from "../error/error";
export const s3ExternalFilePathBuilder = (folder: string, filename: string) => {
if (!global.Markus.Config.S3) {
throw error(ERROR_CODE.AMAZON_S3_CONFIG_NOT_FOUND);
}
... | 45,718 |
https://github.com/dterletskiy/carpc/blob/master/hooks/imp/hooks/MemoryMap.cpp | Github Open Source | Open Source | MIT | 2,022 | carpc | dterletskiy | C++ | Code | 641 | 1,954 | #include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <dlfcn.h>
#include <cstddef>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>
#include "api/sys/helpers/functions/print.hpp"
#include "api/sys/oswrappers/linux/backtrace.hpp"
#include "api/sys/oswrappers/linux/time.hpp"
#include "imp/ho... | 38,567 |
https://github.com/leo0123456/JSP_Mall/blob/master/src/com/lmonkey/servlet/order/orderadd.java | Github Open Source | Open Source | MIT | 2,020 | JSP_Mall | leo0123456 | Java | Code | 104 | 577 | package com.lmonkey.servlet.order;
import com.lmonkey.entity.LMONKEY_ORDER;
import com.lmonkey.entity.LMONKEY_PRODUCT;
import com.lmonkey.entity.LMONKEY_USER;
import com.lmonkey.service.LMONKEY_ORDERDao;
import com.lmonkey.service.LMONKEY_PRODUCTDao;
import javax.servlet.ServletException;
import javax.servlet.annotat... | 28,094 |
https://github.com/BulkSecurityGeneratorProject3/testapp/blob/master/src/main/webapp/app/admin/user-management/user-management.vue | Github Open Source | Open Source | MIT | null | testapp | BulkSecurityGeneratorProject3 | Vue | Code | 270 | 1,740 | <template>
<div>
<h2>
<span id="user-management-page-heading" v-text="$t('userManagement.home.title')">Users</span>
<router-link tag="button" class="btn btn-primary float-right jh-create-entity" :to="{name: 'LxmUserCreate'}">
<font-awesome-icon icon="plus"></font-awes... | 15,604 |
https://github.com/dquist/SabreCore/blob/master/src/main/java/com/civfactions/SabreCore/cmd/CmdBan.java | Github Open Source | Open Source | MIT | 2,016 | SabreCore | dquist | Java | Code | 91 | 414 | package com.civfactions.SabreCore.cmd;
import com.civfactions.SabreApi.CommandVisibility;
import com.civfactions.SabreApi.util.Permission;
import com.civfactions.SabreCore.CorePlayer;
import com.civfactions.SabreCore.Lang;
import com.civfactions.SabreCore.SabreCorePlugin;
public class CmdBan extends CoreCommand {
p... | 36,684 |
https://github.com/css-modules/postcss-modules-extract-imports/blob/master/test/test.js | Github Open Source | Open Source | 0BSD | 2,021 | postcss-modules-extract-imports | css-modules | JavaScript | Code | 73 | 276 | const fs = require("fs");
const path = require("path");
const postcss = require("postcss");
const processor = require("../src");
function normalize(str) {
return str.replace(/\r\n?/g, "\n").replace(/\n$/, "");
}
describe("test-cases", function () {
const testDir = path.join(__dirname, "test-cases");
fs.readdirS... | 7,446 |
https://github.com/israelfaria/BerryBots/blob/master/filemanager.h | Github Open Source | Open Source | CC-BY-3.0 | 2,022 | BerryBots | israelfaria | C | Code | 688 | 1,935 | /*
Copyright (C) 2013 - Voidious
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applic... | 41,796 |
https://github.com/siliconsheep/haproxyadmin/blob/master/haproxyadmin/internal/haproxy.py | Github Open Source | Open Source | Apache-2.0 | null | haproxyadmin | siliconsheep | Python | Code | 964 | 2,507 | # -*- coding: utf-8 -*-
#
# pylint: disable=superfluous-parens
#
"""
haproxyadmin.internal.haproxy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module provides the main class that is used within haproxyadmin for creating
object to work with a single HAProxy process. All other internal classes use
this class to send commands to ... | 28,325 |
https://github.com/fxcebx/stemcell/blob/master/spec/lib/stemcell/launcher_spec.rb | Github Open Source | Open Source | MIT | 2,016 | stemcell | fxcebx | Ruby | Code | 221 | 805 | require 'spec_helper'
class MockInstance
def initialize(id)
@id = id
end
def id
@id
end
def status
:running
end
end
class MockException < StandardError
end
describe Stemcell::Launcher do
let(:launcher) {
opts = {'region' => 'region'}
launcher = Stemcell::Launcher.new(opts)
lau... | 49,587 |
https://github.com/asimashfaq/dcrdata/blob/master/db/cache/charts.go | Github Open Source | Open Source | ISC | null | dcrdata | asimashfaq | Go | Code | 5,471 | 15,362 | // Copyright (c) 2019, The Decred developers
// See LICENSE for details.
package cache
import (
"context"
"database/sql"
"encoding/gob"
"encoding/json"
"fmt"
"os"
"sync"
"time"
"github.com/decred/dcrd/chaincfg/v2"
"github.com/decred/dcrdata/semver"
"github.com/decred/dcrdata/txhelpers/v3"
)
// Keys for s... | 37,547 |
https://github.com/hikizan/Alossa-Capstone/blob/master/app/src/main/java/com/alossa/alossacapstone/data/AlossaDataSource.kt | Github Open Source | Open Source | Apache-2.0 | null | Alossa-Capstone | hikizan | Kotlin | Code | 132 | 606 | package com.alossa.alossacapstone.data
import androidx.lifecycle.LiveData
import com.alossa.alossacapstone.data.model.*
interface AlossaDataSource {
//Auth
fun login(email: String, password: String): LiveData<ResponseServe>
fun register(email: String, name: String, password: String, c_password: String)... | 17,939 |
https://github.com/LuckyBoyDE/rocSOLVER/blob/master/rocsolver/clients/include/testing_bdsqr.hpp | Github Open Source | Open Source | BSD-2-Clause | null | rocSOLVER | LuckyBoyDE | C++ | Code | 2,204 | 7,747 | /* ************************************************************************
* Copyright (c) 2020 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "cblas_interface.h"
#include "clientcommon.hpp"
#include "norm.hpp"
#include "rocsolver.hpp"
#include "r... | 18,956 |
https://github.com/quyse/inanity/blob/master/platform/Game.hpp | Github Open Source | Open Source | MIT | 2,020 | inanity | quyse | C++ | Code | 118 | 493 | #ifndef ___INANITY_PLATFORM_GAME_HPP___
#define ___INANITY_PLATFORM_GAME_HPP___
#include "platform.hpp"
#include "../graphics/graphics.hpp"
#include "../audio/audio.hpp"
#include "../input/input.hpp"
BEGIN_INANITY_GRAPHICS
class System;
class Device;
class Presenter;
END_INANITY_GRAPHICS
BEGIN_INANITY_AUDIO
class... | 2,178 |
https://github.com/IrushiL/carbon-commons-public/blob/master/components/logging/org.wso2.carbon.logging.summarizer/src/main/java/org/wso2/carbon/logging/summarizer/utils/LoggingConfigManager.java | Github Open Source | Open Source | Apache-2.0 | null | carbon-commons-public | IrushiL | Java | Code | 880 | 3,129 | /*
* Copyright 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 433 |
https://github.com/WPringle/SeismicMesh/blob/master/tests/test_2d_domain_ext.py | Github Open Source | Open Source | BSD-2-Clause | null | SeismicMesh | WPringle | Python | Code | 177 | 713 | import pytest
import os
import numpy as np
import SeismicMesh
@pytest.mark.serial
def test_2d_domain_ext():
fname = os.path.join(os.path.dirname(__file__), "testing.segy")
wl = 5
freq = 10
hmin = 100
hmax = 1000
grade = 0.005
domain_ext = 1e3
ef = SeismicMesh.MeshSizeFunction(
... | 43,053 |
https://github.com/lechium/tvOS124Headers/blob/master/System/Library/PrivateFrameworks/UIKitCore.framework/_UIAlertControllerShimPresenter.h | Github Open Source | Open Source | MIT | 2,020 | tvOS124Headers | lechium | Objective-C | Code | 182 | 818 | /*
* This header is generated by classdump-dyld 1.0
* on Saturday, August 24, 2019 at 9:50:28 PM Mountain Standard Time
* Operating System: Version 12.4 (Build 16M568)
* Image Source: /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias... | 32,609 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/a/amcharts/src/main/scala/typingsSlinky/amcharts/anon.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 1,544 | 5,783 | package typingsSlinky.amcharts
import typingsSlinky.amcharts.amChartMod.default
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object anon {
@js.native
trait Chart exte... | 3,019 |
https://github.com/hunchen/initialization/blob/master/.build/template/vue-comp.js | Github Open Source | Open Source | MIT | 2,022 | initialization | hunchen | JavaScript | Code | 60 | 184 | /**
* @author GuangHui
* @description vue组件模板
*/
module.exports = `<template>
<div class="c-{{viewName}}"></div>
</template>
<script>
/**
* * {{viewName}}
* * {{desc}}
*/
export default {
name: '{{viewName}}',
components: {},
mixins: [],
props: {},
data() {
return {}
},
computed: {},
watc... | 12,741 |
https://github.com/jiayisheji/simple-ui/blob/master/libs/simple-ui/paginator/paginator.module.ts | Github Open Source | Open Source | MIT | 2,020 | simple-ui | jiayisheji | TypeScript | Code | 52 | 184 | import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { SimOutletModule } from '@ngx-simple/core/outlet';
import { SimSelectModule } from '@ngx-simple/simple-ui/select';
import { SIM_PAGINATOR_INTL_PROVIDER } from './paginator-intl';
import { SimPaginatorComponent } from './pa... | 491 |
https://github.com/open-mpi/ompi-www/blob/master/community/lists/users/2010/07/13739.php | Github Open Source | Open Source | BSD-3-Clause | 2,023 | ompi-www | open-mpi | PHP | Code | 601 | 1,991 | <?
$subject_val = "Re: [OMPI users] Thank you very much - How to launch mpirun 1.4.2 with --no-daemonize argument in order to run pvserver, is there an equivalent flag??"";
include("../../include/msg-header.inc");
?>
<!-- received="Wed Jul 21 19:15:46 2010" -->
<!-- isoreceived="20100721231546" -->
<!-- sent="Wed... | 43,573 |
https://github.com/tazjel/SecureChat/blob/master/client/secureChatIonic/app/pages/all-conversations/all-conversations.ts | Github Open Source | Open Source | Apache-2.0 | 2,016 | SecureChat | tazjel | TypeScript | Code | 483 | 1,403 | import { Component, ChangeDetectorRef } from '@angular/core';
import { NavController } from 'ionic-angular';
//Import views to navigate to
import { NewConversationPage } from '../../pages/new-conversation/new-conversation';
import { ConversationPage } from '../../pages/conversation/conversation';
//Import our provide... | 37,965 |
https://github.com/MikeMather/ToDoer/blob/master/static/tasks.js | Github Open Source | Open Source | MIT | 2,018 | ToDoer | MikeMather | JavaScript | Code | 152 | 492 |
var itemhtml = "";
$(document).ready(function(){
$('#modal-form').click(function(event) {
$("#form").modal({
fadeDuration: 1000,
fadeDelay: 0.50
});
$('input').attr('autocomplete','off');
});
var groups = []
$.ajax({url: "/groups",
success: function(result){
... | 29,245 |
https://github.com/weedkiller/AAXDataEntityPerfTest/blob/master/Projects/AAXDataEntityPerfTest/ODataUtility/Connected Services/D365/EngineeringChangePriority.cs | Github Open Source | Open Source | MIT | 2,021 | AAXDataEntityPerfTest | weedkiller | C# | Code | 570 | 2,606 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | 49,248 |
https://github.com/hanihusam/aksara-ui/blob/master/packages/react/src/components/breadcrumb/Breadcrumb.test.tsx | Github Open Source | Open Source | Apache-2.0 | 2,022 | aksara-ui | hanihusam | TypeScript | Code | 62 | 229 | import * as React from 'react';
import { render } from '@testing-library/react';
import Breadcrumb from './Breadcrumb';
import BreadcrumbItem from './BreadcrumbItem';
describe('components/Breadcrumb', () => {
test('renders correctly', () => {
const { getByText } = render(
<Breadcrumb
items={[
... | 13,881 |
https://github.com/nokok/Karaffe-old/blob/master/base/src/main/java/org/karaffe/compiler/base/pos/Range.java | Github Open Source | Open Source | MIT | null | Karaffe-old | nokok | Java | Code | 429 | 1,245 | package org.karaffe.compiler.base.pos;
import java.util.Objects;
import java.util.Optional;
public class Range implements Position {
private final String sourceName;
private final Position begin;
private final Position end;
public Range(final String sourceName, final Position begin, final Position e... | 19,312 |
https://github.com/JKrystalMH/NYN/blob/master/NetFarmCommune/Classes/Me/Setting/Controller/NYNKeFuViewController.h | Github Open Source | Open Source | Apache-2.0 | 2,018 | NYN | JKrystalMH | C | Code | 28 | 86 | //
// NYNKeFuViewController.h
// NetFarmCommune
//
// Created by 123 on 2017/6/5.
// Copyright © 2017年 NongYiNong. All rights reserved.
//
#import "BaseViewController.h"
@interface NYNKeFuViewController : BaseViewController
@end
| 4,369 |
https://github.com/geajack/buttbot/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,019 | buttbot | geajack | Ignore List | Code | 4 | 22 | config.yaml
**/*.pyc
__pycache__
.vscode | 1,039 |
https://github.com/ProjetoIntegrador2018/pi2Eletronica/blob/master/motor/motor.c | Github Open Source | Open Source | MIT | null | pi2Eletronica | ProjetoIntegrador2018 | C | Code | 56 | 201 |
#include<stdio.h>
#include<time.h>
#include<wiringPi.h>
#define DIR 28
#define STEP 29
#define CW 1
#define CCW 0
#define SPR 200
int main(void){
wiringPiSetup();
pinMode(DIR, OUTPUT);
pinMode(STEP, OUTPUT);
int step_count = SPR;
double atraso = 1;
int i = 0;
digitalWrite(DIR, CCW);
for(i = 0; i < 201; i... | 22,970 |
https://github.com/EnixCoda/Gitako/blob/master/src/components/settings/KeyboardShortcutSetting.tsx | Github Open Source | Open Source | MIT | 2,023 | Gitako | EnixCoda | TSX | Code | 185 | 571 | import { Box, Button, FormControl, TextInput } from '@primer/react'
import * as React from 'react'
import { useUpdateEffect } from 'react-use'
import { cancelEvent } from 'utils/DOMHelper'
import { friendlyFormatShortcut, noop } from 'utils/general'
import { useStateIO } from 'utils/hooks/useStateIO'
import * as keyHel... | 47,695 |
https://github.com/Cyber-MC/Barrels2/blob/master/src/main/java/me/john000708/barrels/items/BarrelModule.java | Github Open Source | Open Source | MIT | null | Barrels2 | Cyber-MC | Java | Code | 87 | 465 | package me.john000708.barrels.items;
import org.bukkit.ChatColor;
import org.bukkit.block.Block;
import org.bukkit.inventory.ItemStack;
import me.john000708.barrels.block.Barrel;
import me.mrCookieSlime.Slimefun.Lists.RecipeType;
import me.mrCookieSlime.Slimefun.Objects.Category;
import me.mrCookieSlime.Slimefun.Obje... | 42,409 |
https://github.com/gone63/application-development-kit/blob/master/Dashboard/src/components/loaders/Loader.vue | Github Open Source | Open Source | Apache-2.0 | 2,020 | application-development-kit | gone63 | Vue | Code | 15 | 57 | <template>
<div class="loader-container">
<projects></projects>
</div>
</template>
<script>
import Loader from './index'
export default Loader
</script>
| 19,167 |
https://github.com/chandum2/Emby.Theater/blob/master/MediaBrowser.Theater.DirectShow/LavInterfaces.cs | Github Open Source | Open Source | MIT | 2,015 | Emby.Theater | chandum2 | C# | Code | 3,062 | 7,912 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
namespace MediaBrowser.Theater.DirectShow
{
#region Video
public enum LAVVideoCodec
{
H264,
VC1,
MPEG1,
... | 25,689 |
https://github.com/markryall/basketcase/blob/master/spec/basketcase_spec.rb | Github Open Source | Open Source | MIT | 2,009 | basketcase | markryall | Ruby | Code | 104 | 428 | require File.dirname(__FILE__) + '/spec_helper'
describe Basketcase do
before do
@io = stub('io')
@io.stub!(:each_line)
IO.stub!(:popen).and_return(@io)
@basketcase = Basketcase.new
@basketcase.stub!(:exit)
$stderr.stub!(:puts, :sync)
$stdout.stub!(:puts, :sync)
end
it 'should sync... | 11,863 |
https://github.com/javadoffuad/InvoiceApp/blob/master/src/components/Invoices/InvoicesPage.js | Github Open Source | Open Source | MIT | 2,017 | InvoiceApp | javadoffuad | JavaScript | Code | 80 | 272 | import React from 'react';
import { connect } from 'react-redux';
import {
Grid, Row, Col, Button
} from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
import InvoiceList from './InvoiceList';
class InvoicesPage extends React.Component {
componentDidMount() {
document.title = "Inv... | 30,023 |
https://github.com/Rohit484/Distribution/blob/master/x/xregexp/src/main/scala/typings/xregexp/mod/addToken.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | Rohit484 | Scala | Code | 300 | 704 | package typings.xregexp.mod
import typings.std.RegExp
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@JSImport("xregexp", "addToken")
@js.native
object addToken extends js.Object {
//#endregion
//#region method... | 21,938 |
https://github.com/hyperledger/fabric/blob/master/vendor/github.com/bits-and-blooms/bitset/popcnt_19.go | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0, CC-BY-4.0 | 2,023 | fabric | hyperledger | Go | Code | 125 | 340 | // +build go1.9
package bitset
import "math/bits"
func popcntSlice(s []uint64) uint64 {
var cnt int
for _, x := range s {
cnt += bits.OnesCount64(x)
}
return uint64(cnt)
}
func popcntMaskSlice(s, m []uint64) uint64 {
var cnt int
for i := range s {
cnt += bits.OnesCount64(s[i] &^ m[i])
}
return uint64(cn... | 11,662 |
https://github.com/Dibify/DiBify/blob/master/src/Exceptions/InvalidArgumentException.php | Github Open Source | Open Source | BSD-3-Clause | 2,020 | DiBify | Dibify | PHP | Code | 25 | 76 | <?php
/**
* @author Timur Kasumov (aka XAKEPEHOK)
* Datetime: 27.09.2017 19:44
*/
namespace DiBify\DiBify\Exceptions;
use Exception;
class InvalidArgumentException extends Exception implements DiBifyExceptionInterface
{
} | 38,347 |
https://github.com/astalwick/fuz.io/blob/master/data.fuz.io/models/mongodb/WorkspaceDocument.js | Github Open Source | Open Source | MIT | 2,015 | fuz.io | astalwick | JavaScript | Code | 321 | 910 | var mongoose = require('mongoose')
, async = require('async')
, _ = require('underscore')
, lastMod = require('./Plugin_LastMod.js')
, broadcast = require('./Plugin_Broadcast.js')
, helpers = require('../../libs/Helpers.js')
... | 31,430 |
https://github.com/phax/ph-math/blob/master/ph-math/src/test/java/com/helger/numbercruncher/program5_5/NewtonsPanel.java | Github Open Source | Open Source | Apache-2.0 | null | ph-math | phax | Java | Code | 1,366 | 3,591 | /*
* Copyright (C) 2014-2021 Philip Helger (www.helger.com)
* philip[at]helger[dot]com
*
* 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/LICEN... | 18,470 |
https://github.com/JamesLinus/jbuilder-universe/blob/master/packages/base.v0.9.3/test/test_set.ml | Github Open Source | Open Source | Apache-2.0 | 2,017 | jbuilder-universe | JamesLinus | OCaml | Code | 13 | 47 | open! Import
open! Set
let%test _ =
invariants
(of_increasing_iterator_unchecked (module Int) ~len:20 ~f:Fn.id)
| 29,285 |
https://github.com/agroniseni88/osoc19-open-recognition-starter/blob/master/routes.js | Github Open Source | Open Source | MIT | 2,019 | osoc19-open-recognition-starter | agroniseni88 | JavaScript | Code | 120 | 368 | const express = require("express")
const router = express.Router()
const controller = require("./controller")
// routes =>
/* ------------------- INDEX -------------------*/
// GET "/" => greetings
router.get("", controller.welcome);
/* ------------------- INDEX -------------------*/
// GET "... | 5,460 |
https://github.com/Wessonlu/lu-DemoVue/blob/master/src/App.vue | Github Open Source | Open Source | MIT | null | lu-DemoVue | Wessonlu | Vue | Code | 77 | 383 | <template>
<div id="app">
<v-header></v-header>
<div class="tab border-1px">
<div class="tab-item"><router-link to="/goods">商品</router-link></div>
<div class="tab-item"><router-link to="/ratings">详情</router-link></div>
<div class="tab-item"><router-link to="/seller">商家</router-link></div>
... | 8,816 |
https://github.com/DataDog/dd-trace-java/blob/master/dd-java-agent/instrumentation/servlet/request-3/src/test/groovy/AbstractServlet3Test.groovy | Github Open Source | Open Source | Apache-2.0, UPL-1.0, MIT, BSD-3-Clause | 2,023 | dd-trace-java | DataDog | Groovy | Code | 673 | 2,392 | import datadog.trace.agent.test.asserts.TraceAssert
import datadog.trace.agent.test.base.HttpServerTest
import datadog.trace.agent.test.naming.TestingGenericHttpNamingConventions
import datadog.trace.api.DDSpanTypes
import datadog.trace.api.DDTags
import datadog.trace.bootstrap.instrumentation.api.Tags
import okhttp3.R... | 48,641 |
https://github.com/jamesmtuck/ncstate_ece309_fall2020/blob/master/week2/cstr/Makefile | Github Open Source | Open Source | MIT | 2,020 | ncstate_ece309_fall2020 | jamesmtuck | Makefile | Code | 7 | 21 | all:
g++ -o cstr cstr.cpp -Wall -Werror
| 14,845 |
https://github.com/dennis-tmeinc/dvr/blob/master/dvr602/smartupload/curl-7.19.5/src/.deps/curlutil.Po | Github Open Source | Open Source | curl | 2,018 | dvr | dennis-tmeinc | Gettext Catalog | Code | 142 | 2,471 | curlutil.o curlutil.o: curlutil.c setup.h config.h \
/home/harry/hik_toolchain/arm-linux/include/stdio.h \
/home/harry/hik_toolchain/arm-linux/include/features.h \
/home/harry/hik_toolchain/arm-linux/include/bits/uClibc_config.h \
/home/harry/hik_toolchain/arm-linux/include/sys/cdefs.h \
/home/harry/hik_toolc... | 39,285 |
https://github.com/JiLiZART/cube-ui-kit/blob/master/src/components/actions/Button/Submit.tsx | Github Open Source | Open Source | MIT | 2,022 | cube-ui-kit | JiLiZART | TypeScript | Code | 76 | 223 | import { forwardRef } from 'react';
import { Button } from './Button';
import { useProviderProps } from '../../../provider';
import { useFormProps } from '../../forms/Form/Form';
function Submit(props, ref) {
props = useProviderProps(props);
props = useFormProps(props);
const { form, ...otherProps } = props;
... | 42,392 |
https://github.com/Hulkaveli/atsy-cast/blob/master/ets2mm/src/main/java/com/kyawhut/atsycast/ets2mm/ui/cache/CacheViewModel.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | atsy-cast | Hulkaveli | Kotlin | Code | 93 | 404 | package com.kyawhut.atsycast.ets2mm.ui.cache
import android.app.Application
import androidx.lifecycle.LiveData
import androidx.lifecycle.SavedStateHandle
import com.kyawhut.atsycast.ets2mm.data.network.response.VideoResponse
import com.kyawhut.atsycast.ets2mm.utils.Constants
import com.kyawhut.atsycast.share.base.Base... | 28,315 |
https://github.com/sclabs/treeshaker/blob/master/examples/otherpkg/setup.py | Github Open Source | Open Source | MIT | 2,022 | treeshaker | sclabs | Python | Code | 18 | 105 | from setuptools import setup
setup(
name='otherpkg',
version='0.0.1',
author='Thomas Gilgenast',
author_email='thomasgilgenast@gmai.com',
description='Example package for testing treeshaker',
url='https://github.com/sclabs/treeshaker/tree/master/examples/otherpkg',
packages=['otherpkg'],
)... | 26,547 |
https://github.com/panosru/CleanDDDArchitecture/blob/master/Domains/Todo/SubDomains/TodoItem/Application/UseCases/Delete/ITodoItemDeleteOutput.cs | Github Open Source | Open Source | MIT | 2,022 | CleanDDDArchitecture | panosru | C# | Code | 17 | 80 | namespace CleanDDDArchitecture.Domains.Todo.SubDomains.TodoItem.Application.UseCases.Delete
{
using Aviant.DDD.Application.UseCases;
public interface ITodoItemDeleteOutput : IUseCaseOutput
{
public void Invalid(string message);
}
}
| 43,371 |
https://github.com/younger-1/yasb/blob/master/src/core/validation/widgets/example.py | Github Open Source | Open Source | MIT | 2,022 | yasb | younger-1 | Python | Code | 70 | 269 | EXAMPLE_VALIDATION_SCHEMA = {
'label': {
'type': 'string',
'default': 'Example Label'
},
'label_alt': {
'type': 'string',
'default': 'Example Label Alt'
},
'update_interval': {
'type': 'integer',
'default': 1000,
'min': 0,
'max': 60000
... | 13,864 |
https://github.com/marcusitalo/rick-and-morty-reactjs/blob/master/src/components/Pagination.js | Github Open Source | Open Source | MIT | null | rick-and-morty-reactjs | marcusitalo | JavaScript | Code | 91 | 239 | import React from "react";
import { CaretRight, CaretLeft } from "react-bootstrap-icons";
const Pagination = ({ prev, next, onPrevious, onNext }) => {
const handlePrevious = () => {
onPrevious();
};
const handleNext = () => {
onNext();
};
const nextStyle = {
top: "50%",
position: "fixed",
... | 615 |
https://github.com/shiftonelabs/laravel-db-events/blob/master/src/Traits/ConnectorConnectTrait.php | Github Open Source | Open Source | MIT | 2,020 | laravel-db-events | shiftonelabs | PHP | Code | 91 | 323 | <?php
namespace ShiftOneLabs\LaravelDbEvents\Traits;
use ShiftOneLabs\LaravelDbEvents\Exceptions\ConnectingException;
use ShiftOneLabs\LaravelDbEvents\Extension\Database\Events\DatabaseConnected;
use ShiftOneLabs\LaravelDbEvents\Extension\Database\Events\DatabaseConnecting;
trait ConnectorConnectTrait
{
use Suppo... | 30,127 |
https://github.com/miguelvazq/HPCC-Platform/blob/master/ecl/regress/realformat1.ecl | Github Open Source | Open Source | Apache-2.0 | 2,022 | HPCC-Platform | miguelvazq | ECL | Code | 114 | 252 | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... | 45,418 |
https://github.com/cordis/pycloudia/blob/master/pycloudia/activities/facades/interfaces.py | Github Open Source | Open Source | MIT | 2,014 | pycloudia | cordis | Python | Code | 169 | 737 | from abc import ABCMeta, abstractmethod
class IService(object):
__metaclass__ = ABCMeta
@abstractmethod
def process_outgoing_package(self, session, package):
"""
:type session: L{pycloudia.activities.facades.interfaces.ISession}
:type package: L{pycloudia.packages.interfaces.IPack... | 27,119 |
https://github.com/dnnru/DNN_Platform_9.3.1.2/blob/master/Website/DesktopModules/Admin/ViewProfile/Settings.ascx.cs | Github Open Source | Open Source | MIT | 2,022 | DNN_Platform_9.3.1.2 | dnnru | C# | Code | 320 | 831 | #region Copyright
//
// DotNetNuke® - http://www.dotnetnuke.com
// Copyright (c) 2002-2018
// by DotNetNuke Corporation
//
// 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 restrict... | 8,172 |
https://github.com/webdevhub42/Lambda/blob/master/WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/sys/package_dir_b/__init__.py | Github Open Source | Open Source | MIT | null | Lambda | webdevhub42 | Python | Code | 22 | 50 | # Copyright (c) 2014 Doug Hellmann. All rights reserved.
#
#
# All Rights Reserved
#
#
#
"""
"""
# end_pymotw_header
| 34,775 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.