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/fuse-open/uno/blob/master/tests/src/BundleApp/Main.uno | Github Open Source | Open Source | MIT | 2,023 | uno | fuse-open | null | Spoken | 61 | 204 | using Uno;
using Uno.IO;
namespace BundleApp
{
public class Main : Uno.Application
{
public Main()
{
BundleLib.Test.Assert();
SubProject.Test.Assert();
Assert("BundleFile.pdf");
Assert("js/SubProjectBundleFile.js");
Assert("js/BundleLi... | 53,248 |
https://github.com/piecioshka/dragster/blob/master/module-generator.js | Github Open Source | Open Source | MIT | 2,020 | dragster | piecioshka | JavaScript | Code | 174 | 627 | /* global Promise */
var fs = require('fs');
var promises = [
new Promise(function (resolve, reject) {
fs.readFile('dragster-script.js', 'utf8', function (error, data) {
if (error) {
reject(error);
return;
}
resolve(data);
});
... | 17,799 |
https://github.com/rod41732/todo-list-backend/blob/master/src/list/dto/createList.dto.ts | Github Open Source | Open Source | MIT | null | todo-list-backend | rod41732 | TypeScript | Code | 32 | 84 | import { IsNotEmpty, IsEmpty } from "class-validator";
import { ApiProperty } from "@nestjs/swagger";
export class createListDto {
// user request shall not specify owner
@IsEmpty()
ownerId: String;
@ApiProperty()
@IsNotEmpty()
name: string;
}
| 26,816 |
https://github.com/mvlopri/seacas-docs/blob/master/html/structex____file__item.js | Github Open Source | Open Source | BSD-3-Clause | null | seacas-docs | mvlopri | JavaScript | Code | 110 | 890 | var structex____file__item =
[
[ "assembly_count", "structex____file__item.html#a850d6d5e1e13003da36e5d92ed1d9339", null ],
[ "blob_count", "structex____file__item.html#afa535ba6f5773c6d4652a40eb6746c08", null ],
[ "compression_algorithm", "structex____file__item.html#a23edbd530e63e89516827167988080ab", nul... | 44,586 |
https://github.com/riszkymf/pricefinder_full/blob/master/crawler/libs/app.py | Github Open Source | Open Source | MIT | 2,020 | pricefinder_full | riszkymf | Python | Code | 1,067 | 4,847 | import requests
import json
import copy
from crawler.settings import *
from crawler.libs.util import get_time
from crawler import logging
def post_requests(endpoint,data,headers=None):
endpoint = endpoint.lstrip("/")
headers = {"Content-Type": "application/json"}
url = "{}/{}".format(APP_URL,endpoint)
... | 15,855 |
https://github.com/JaylanEsquivel/Projeto-WMS/blob/master/resources/views/item_editar.blade.php | Github Open Source | Open Source | MIT | null | Projeto-WMS | JaylanEsquivel | PHP | Code | 77 | 419 | @extends('principal')
@section('view')
<div class="container-fluid font">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="{{url('/principal')}}">Painel de Controle</a>
</li>
<li class="breadcrumb-item active">Registro</li>
<li class="breadcru... | 6,202 |
https://github.com/sebastiandine/openNES-Snake/blob/master/gfx/game_over_nam.h | Github Open Source | Open Source | Zlib, LicenseRef-scancode-unknown-license-reference | 2,022 | openNES-Snake | sebastiandine | C | Code | 54 | 344 | /**
* @file game_over_nam.h
* @brief This header file contains the nametable (background) of the gameover screen.
* Created with NES Screen Tool 2.04 (Option Nametable -> Save nametable and attributes -> RLE packed as C header (.h).
*
* @author Sebastian Dine
*
*/
const unsigned char game_over_nam[59]={
0x01,0x0... | 41,892 |
https://github.com/Incapture/OG-Platform/blob/master/projects/OG-Analytics/src/test/java/com/opengamma/analytics/financial/credit/hazardratemodel/CalibrateHazardRateCurveTest.java | Github Open Source | Open Source | Apache-2.0 | null | OG-Platform | Incapture | Java | Code | 2,694 | 11,702 | /**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.credit.hazardratemodel;
import javax.time.calendar.TimeZone;
import javax.time.calendar.ZonedDateTime;
import org.testng.annotations.Test... | 40,279 |
https://github.com/uk-gov-mirror/ministryofjustice.staff-device-dns-dhcp-admin/blob/master/spec/use_cases/verify_bind_config_spec.rb | Github Open Source | Open Source | MIT | 2,021 | ministryofjustice.staff-device-dns-dhcp-admin | uk-gov-mirror | Ruby | Code | 81 | 329 | require "rails_helper"
RSpec.describe UseCases::VerifyBindConfig do
let(:bind_verifier_gateway) { instance_double(Gateways::BindVerifier) }
let(:config) { double(:config) }
subject(:use_case) do
described_class.new(bind_verifier_gateway: bind_verifier_gateway)
end
describe "#call" do
context "when ... | 12,871 |
https://github.com/popedub/Web-Ester-Villaescusa/blob/master/web/app/themes/villaescusatheme/resources/views/partials/modal-content.blade.php | Github Open Source | Open Source | MIT | null | Web-Ester-Villaescusa | popedub | PHP | Code | 53 | 259 | <div class="modal animated" id="info" tabindex="-1" role="dialog" aria-labelledby="infoTitle" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<div class="modal-title" id="infoTitle">{{ get_the_title() }}</div>
<div class="... | 52,503 |
https://github.com/benkroeger/phin/blob/master/types.d.ts | Github Open Source | Open Source | MIT | null | phin | benkroeger | TypeScript | Code | 267 | 808 | // Default Options feature is not supported because it's basically impossible to write strongly-typed definitions for it.
import * as http from 'http'
interface IOptionsBase {
url: string
method?: string
headers?: object
core?: http.ClientRequestArgs
followRedirects?: boolean
stream?: boolean
compressio... | 41,563 |
https://github.com/DSchau/gatsby-theme-utils/blob/master/themes/workshop/src/layouts/index.js | Github Open Source | Open Source | MIT | 2,019 | gatsby-theme-utils | DSchau | JavaScript | Code | 151 | 476 | import React from 'react';
import { StaticQuery, graphql } from 'gatsby';
import { css } from '@emotion/core';
import Sidebar from '@dschau/sidebar';
import { Navigation } from '../components/navigation';
function Layout({ children, location }) {
return (
<StaticQuery
query={graphql`
{
s... | 947 |
https://github.com/foosoftsrl/vmaf/blob/master/libvmaf/src/feature/integer_vif.c | Github Open Source | Open Source | BSD-2-Clause-Patent | null | vmaf | foosoftsrl | C | Code | 3,475 | 12,444 | /**
*
* Copyright 2016-2020 Netflix, Inc.
*
* Licensed under the BSD+Patent License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/BSDplusPatent
*
* Unless required by ap... | 15,050 |
https://github.com/lapolinarweb/coolwallet3-sdk/blob/master/packages/errors/src/SDKError.ts | Github Open Source | Open Source | Apache-2.0 | null | coolwallet3-sdk | lapolinarweb | TypeScript | Code | 24 | 78 | export default class SDKError extends Error {
public name:string
constructor(name:string, message: string) {
super(message);
Object.setPrototypeOf(this, new.target.prototype);
this.constructor = SDKError;
this.name = name;
}
}
| 10,727 |
https://github.com/united-manufacturing-hub/united-manufacturing-hub/blob/master/golang/internal/kafkaMessageTrace.go | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, AGPL-3.0-only, Apache-2.0, LicenseRef-scancode-unknown-license-reference, OpenSSL, EPL-2.0, MIT, BSD-3-Clause, ISC, EPL-1.0, BSL-1.0, LicenseRef-scancode-philippe-de-muyter, LicenseRef-scancode-public-domain, BSD-2-Clause, AGPL-3.0-or-later, FSFAP, NTP, MPL-2.0 | 2,023 | united-manufacturing-hub | united-manufacturing-hub | Go | Code | 475 | 1,249 | // Copyright 2023 UMH Systems GmbH
//
// 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 t... | 29,128 |
https://github.com/kernelshreyak/pdf.js/blob/master/test/unit/base_viewer_spec.js | Github Open Source | Open Source | Apache-2.0 | null | pdf.js | kernelshreyak | JavaScript | Code | 470 | 1,362 | /* Copyright 2021 Mozilla 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 law or agreed... | 6,830 |
https://github.com/kaitai-io/kaitai_struct_tests/blob/master/spec/perl/TestBitsEnum.t | Github Open Source | Open Source | MIT | 2,023 | kaitai_struct_tests | kaitai-io | Perl | Code | 46 | 182 | # Autogenerated from KST: please remove this line if doing any edits by hand!
package spec::perl::TestBitsEnum;
use strict;
use warnings;
use base qw(Test::Class);
use Test::More;
use BitsEnum;
sub test_bits_enum: Test(3) {
my $r = BitsEnum->from_file('src/fixed_struct.bin');
is($r->one(), $BitsEnum::ANIMAL... | 55,782 |
https://github.com/chRyNaN/klutter-engine/blob/master/platform-android/src/main/java/com/chrynan/klutter/platformandroid/embedding/engine/renderer/OnFirstFrameRenderedListener.kt | Github Open Source | Open Source | Apache-2.0 | null | klutter-engine | chRyNaN | Kotlin | Code | 78 | 154 | package com.chrynan.klutter.platformandroid.embedding.engine.renderer
/**
* Listener invoked after Flutter paints its first frame since being initialized.
*
* WARNING: THIS CLASS IS EXPERIMENTAL. DO NOT SHIP A DEPENDENCY ON THIS CODE.
* IF YOU USE IT, WE WILL BREAK YOU.
*/
interface OnFirstFrameRenderedListener {... | 47,552 |
https://github.com/paradise-fantasy/paradise-web/blob/master/app/Root.jsx | Github Open Source | Open Source | MIT | 2,017 | paradise-web | paradise-fantasy | JavaScript | Code | 130 | 384 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Grid, Row, Col } from 'react-bootstrap';
import PreProjectCountdown from './components/PreProjectCountdown';
import Logs from './components/Logs';
import Presence from './components/Presence';
import Watch from './components/Watch... | 37,132 |
https://github.com/OdinsHat/fastloansearch/blob/master/src/js/mortgage-calculator.js | Github Open Source | Open Source | MIT | 2,015 | fastloansearch | OdinsHat | JavaScript | Code | 8 | 18 | /**
* Created by doug on 21/03/2014.
*/
| 52,110 |
https://github.com/theeasylearn/laravel4/blob/master/resources/views/for.blade.php | Github Open Source | Open Source | MIT | null | laravel4 | theeasylearn | PHP | Code | 38 | 193 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Example of for loop in laravel blade</h1>
<table width="80%" border=2 align=center cellpadding=10>
@for($i=1;$i<=5;... | 35,048 |
https://github.com/mppadding/DiscordBot/blob/master/Commands/TTS.js | Github Open Source | Open Source | MIT | 2,016 | DiscordBot | mppadding | JavaScript | Code | 103 | 330 | "use strict";
var Command = require('./Command.js')
var Channels = require('../Constants/Channels.js')
class TTS extends Command {
constructor(Bot) {
super(Bot, 'tts')
}
execute(message, args) {
if(args.length < 3) {
message.reply(this.bot.config.language.command_invalid_a... | 29,992 |
https://github.com/csiro-crop-informatics/rsenaps/blob/master/man/get_platforms.Rd | Github Open Source | Open Source | MIT | 2,021 | rsenaps | csiro-crop-informatics | R | Code | 90 | 199 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/platforms.R
\name{get_platforms}
\alias{get_platforms}
\title{The all platforms in the Senaps}
\usage{
get_platforms(id = NULL, groupids = NULL, groups = NULL)
}
\arguments{
\item{id}{Only return platforms with this id or partial match using ... | 5,868 |
https://github.com/orlandocoelho/CodeCommerce/blob/master/resources/views/store/account-orders.blade.php | Github Open Source | Open Source | MIT | null | CodeCommerce | orlandocoelho | PHP | Code | 57 | 284 | @extends('store.store')
@section('categories')
@include('store.partial.account-menu')
@stop
@section('content')
<div class="col-md-12">
<table class="table">
<tbody>
<tr>
<th>#ID</th>
<th>Itens</th>
<th>Valor</th>
... | 56,073 |
https://github.com/zhangxiangliang/swbbx/blob/master/database/seeds/ProducesGemSeeder.php | Github Open Source | Open Source | MIT | null | swbbx | zhangxiangliang | PHP | Code | 39 | 145 | <?php
use App\Models\Item;
use App\Models\Produce;
use Illuminate\Database\Seeder;
class ProducesGemSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$items = Item::where('keywords', 'like', '%宝石%')->get()->pluck('id')->toArray();... | 40,979 |
https://github.com/tommyv1987/nym/blob/master/common/cosmwasm-smart-contracts/vesting-contract/src/lib.rs | Github Open Source | Open Source | Apache-2.0 | 2,022 | nym | tommyv1987 | Rust | Code | 30 | 91 | // Copyright 2022 - Nym Technologies SA <contact@nymtech.net>
// SPDX-License-Identifier: Apache-2.0
use config::defaults::DENOM;
use cosmwasm_std::Coin;
pub mod events;
pub mod messages;
pub fn one_ucoin() -> Coin {
Coin::new(1, DENOM)
}
| 31,248 |
https://github.com/turancaymaz/Java-Spring-Javascript-MySql-Web-Application-Pet-Clinic/blob/master/src/main/resources/static/js/lab_list.js | Github Open Source | Open Source | MIT | 2,021 | Java-Spring-Javascript-MySql-Web-Application-Pet-Clinic | turancaymaz | JavaScript | Code | 68 | 295 | function allCustomer(){
$.ajax({
url: './lab-list',
type: 'GET',
contentType: 'application/json; charset=utf-8',
success: function (data) {
console.log(data)
createRow(data)
},
error: function (err){
console.log(err)
}
}... | 13,161 |
https://github.com/ricardo-jrm/use-color-converter/blob/master/src/index.ts | Github Open Source | Open Source | MIT | null | use-color-converter | ricardo-jrm | TypeScript | Code | 7 | 18 | export { useHexRgb, useRgbHex } from './hook';
| 28,664 |
https://github.com/alexispeter/cm/blob/master/library/CM/Log/Handler/Factory.php | Github Open Source | Open Source | MIT | 2,016 | cm | alexispeter | PHP | Code | 211 | 628 | <?php
class CM_Log_Handler_Factory implements CM_Service_ManagerAwareInterface {
use CM_Service_ManagerAwareTrait;
/**
* @param string $streamClass
* @param array|null $streamArguments
* @param int|null $level
* @param string|null $formatMessage
* @param string|null $formatD... | 19,012 |
https://github.com/ThinkAlexandria/elm-html-in-elm/blob/master/src/ElmHtml/Constants.elm | Github Open Source | Open Source | BSD-3-Clause | 2,021 | elm-html-in-elm | ThinkAlexandria | null | Spoken | 106 | 242 | module ElmHtml.Constants exposing (styleKey, eventKey, attributeKey, attributeNamespaceKey, knownKeys)
{-| Constants for representing internal keys for Elm's vdom implementation
@docs styleKey, eventKey, attributeKey, attributeNamespaceKey, knownKeys
-}
{-| Internal key for style
-}
styleKey : String
styleKey =
... | 14,818 |
https://github.com/raymondlam/firebase-android-sdk/blob/master/firebase-firestore/src/main/java/com/google/firebase/firestore/bundle/BundleDocument.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | firebase-android-sdk | raymondlam | Java | Code | 194 | 402 | // Copyright 2021 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 33,034 |
https://github.com/Reyzeny/botproj/blob/master/app/SimbiReply.php | Github Open Source | Open Source | MIT | null | botproj | Reyzeny | PHP | Code | 70 | 349 | <?php
namespace App;
use App\UserConversation;
class SimbiReply
{
public static function reply($bot, $user_id, $reply, $additionalParameters=[]) {
$last_convo_id = UserConversation::where('user_id', $user_id)->latest()->value('id');
//echo gettype($reply);
//echo gettype($reply);
if (gettype($reply)==... | 11,013 |
https://github.com/FedeGens/BasicTableView/blob/master/BasicTableView/RootTableView.swift | Github Open Source | Open Source | MIT | 2,017 | BasicTableView | FedeGens | Swift | Code | 1,131 | 3,172 | //
// RootTableView.swift
// MyTableView
//
// Created by Federico Gentile on 21/12/16.
// Copyright © 2016 Federico Gentile. All rights reserved.
//
import UIKit
/// A RootTableView to manage rows and section in a better way
public class RootTableView: UITableView, UITableViewDelegate, UITableViewDataSource {
... | 31,346 |
https://github.com/mcountryman/geotab-rx/blob/master/src/models/message_content_type.ts | Github Open Source | Open Source | MIT | null | geotab-rx | mcountryman | TypeScript | Code | 278 | 569 | /* eslint-disable @typescript-eslint/no-empty-interface */
/** The type of {@link ITextMessage} content. */
export enum MessageContentType {
/** Basic text message. See {@link ITextContent}. */
Normal = "Normal",
/** Text message that also includes response options. See {@link ICannedResponseContent}. */
Canne... | 374 |
https://github.com/yodaos-project/yodaos/blob/master/openwrt/feeds/management/shtool/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,022 | yodaos | yodaos-project | Makefile | Code | 85 | 364 | #
# Copyright (C) 2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=shtool
PKG_VERSION:=2.0.8
PKG_RELEASE:=1
PKG_SOURCE:=${PKG_NAME}-${PKG_VERSION}.tar.gz
PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
PKG_MD5SU... | 31,339 |
https://github.com/JailbreakFox/LightWeightRepository/blob/master/ZeroMQ/filecode/examples/Haskell/peering3.hs | Github Open Source | Open Source | BSD-2-Clause | null | LightWeightRepository | JailbreakFox | Haskell | Code | 1,565 | 3,032 | {-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Concurrent (threadDelay)
import Control.Monad (forM_, forever, when)
import Control.Monad.IO.Class
import Data.Attoparsec.ByteString.Char8 hiding (take)
import qualified Data.B... | 9,541 |
https://github.com/Fernando-Fernandez/apexsharp/blob/master/ApexApiAnalyzerTests/SampleClasses/DemoTest.cls | Github Open Source | Open Source | MIT | 2,018 | apexsharp | Fernando-Fernandez | Apex | Code | 132 | 433 | @IsTest
public class DemoTest
{
@IsTest
public static void updatePhoneTestValidEmail()
{
Contact contact = new Contact();
contact.Email = randomWithLimit()+ '@jay.com';
contact.Phone = '111-111=1111';
contact.LastName = 'jay';
insert contact;
Demo.updatePhone(... | 39,290 |
https://github.com/mniak/stem/blob/master/native/type_primitive.go | Github Open Source | Open Source | MIT | null | stem | mniak | Go | Code | 41 | 97 | package native
type primitiveType struct {
name string
}
func (p primitiveType) IsPrimitive() bool {
return true
}
func (p primitiveType) Name() string {
return p.name
}
func TypeString() primitiveType {
return primitiveType{"String"}
}
func TypeInt32() primitiveType {
return primitiveType{"Int32"}
}
| 49,298 |
https://github.com/rashadg1030/trucker-timecards/blob/master/src/HTML/Page/NameList.hs | Github Open Source | Open Source | BSD-3-Clause | null | trucker-timecards | rashadg1030 | Haskell | Code | 129 | 448 | module HTML.Page.NameList where
import Lucid.Html5
import Lucid.Base (ToHtml)
import HTML.Partial.TruckerInputRow (TruckerInputRow(..))
import HTML.Partial.TruckerRow (TruckerRow)
-- import App.Data (Trucker(..))
import qualified App.Tailwind as Tailwind
import qualified HTML.Snippet as Snippet
import qualified Luci... | 426 |
https://github.com/dharmanshu24/4WD-Rover-using-NodeMCU-esp8266/blob/master/Rover Control ESP8266 NodeMCU.ino | Github Open Source | Open Source | MIT | 2,019 | 4WD-Rover-using-NodeMCU-esp8266 | dharmanshu24 | null | Spoken | 220 | 855 | #include<ESP8266WiFi.h>
#include<WiFiClient.h>
#include<ESP8266WebServer.h>
//SSID and password of 8266 wifi
const char* ssid = "ESP WiFi";
const char* password = "connecttooperate";
WiFiServer server(1337); //server on port 1337
//Pin Configrations
const int motor1Pin1 = D0;
const int motor1Pin2 = D1;
const int ena... | 45,212 |
https://github.com/mishrasunny174/Internet-Technologies/blob/master/jsp/example-codes-jsp/ora/ch9/calc2.jsp | Github Open Source | Open Source | MIT, LicenseRef-scancode-jdom, Apache-1.1, Apache-2.0, BSD-2-Clause, LicenseRef-scancode-oreilly-notice | 2,019 | Internet-Technologies | mishrasunny174 | null | Spoken | 215 | 940 | <%@ page contentType="text/html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page errorPage="errorpage.jsp?debug=log" %>
<html>
<head>
<title>Calculator</title>
</head>
<body bgcolor="white">
<jsp:useBean id="calc" class="com.ora.jsp.beans.calc.CalcBean">
<jsp:setProper... | 32,249 |
https://github.com/asafm-lb/aioswitcher/blob/master/src/aioswitcher/bridge/messages.py | Github Open Source | Open Source | MIT | 2,019 | aioswitcher | asafm-lb | Python | Code | 414 | 1,576 | """Switcher Bridge Response Messages."""
from asyncio import AbstractEventLoop, ensure_future, Future
from binascii import hexlify
from socket import inet_ntoa
from struct import pack
from typing import Optional, Union
from ..consts import (ENCODING_CODEC, STATE_OFF, STATE_ON,
STATE_RESPONSE_ON,... | 52,960 |
https://github.com/aryejfa/react-native/blob/master/Libraries/Renderer/src/renderers/shared/shared/getContextForSubtree.js | Github Open Source | Open Source | BSD-3-Clause, CC-BY-SA-4.0, LicenseRef-scancode-unknown, CC-BY-4.0, CC-BY-NC-SA-4.0 | 2,021 | react-native | aryejfa | JavaScript | Code | 129 | 316 | /**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModu... | 53,868 |
https://github.com/guoyu07/HGBTool/blob/master/Component/HGBControllerComponent/Web/code/WebController/Header/HGBWebController.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | HGBTool | guoyu07 | C | Code | 35 | 125 | //
// HGBWebController.h
// 测试
//
// Created by huangguangbao on 2017/7/13.
// Copyright © 2017年 agree.com.cn. All rights reserved.
//
#ifndef HGBWebController_h
#define HGBWebController_h
#import "HGBUIWebController.h"
#import "HGBWKWebController.h"
#import "HGBJSModel.h"
#endif /* HGBWebController_h */
| 41,389 |
https://github.com/rajanazirul/autopost/blob/master/app/vendor/mgp25/instagram-php/src/Media/Constraints/TvConstraints.php | Github Open Source | Open Source | MIT | 2,021 | autopost | rajanazirul | PHP | Code | 186 | 519 | <?php
namespace InstagramAPI\Media\Constraints;
/**
* Instagram's Tv media constraints.
*/
class TvConstraints extends StoryConstraints
{
/**
* Lowest allowed aspect ratio.
*
* It is controlled by ig_android_igtv_aspect_ratio_limits/min_aspect_ratio experiment.
*
* // TODO Use the exper... | 7,788 |
https://github.com/Talouchy/react_tutorial/blob/master/src/components/BooksComp/Books.jsx | Github Open Source | Open Source | MIT | null | react_tutorial | Talouchy | null | Spoken | 119 | 462 | import React, { useEffect, useState } from "react";
import { Content, Table} from "rsuite";
import "./Books.css";
const { Column, HeaderCell, Cell } = Table;
function BooksComp() {
const [bookList, setbookList] = useState([])
const url = "http://localhost:4000/books"
useEffect(() => {
fetch(url,{
met... | 48,916 |
https://github.com/xSofter/workflow_annotation/blob/master/workflow/src/include/workflow/WFTask.inl | Github Open Source | Open Source | MIT, Apache-2.0 | 2,021 | workflow_annotation | xSofter | C++ | Code | 1 | 9 | ../../factory/WFTask.inl | 22,347 |
https://github.com/kfconsultant/scale/blob/master/scale/scheduler/threads/task_handling.py | Github Open Source | Open Source | LicenseRef-scancode-free-unknown, Apache-2.0, LicenseRef-scancode-public-domain | 2,020 | scale | kfconsultant | Python | Code | 267 | 941 | """Defines the class that manages the task handling background thread"""
from __future__ import unicode_literals
import datetime
import logging
from django.utils.timezone import now
from job.execution.manager import job_exe_mgr
from job.execution.tasks.exe_task import JOB_TASK_ID_PREFIX
from job.tasks.manager import... | 38,818 |
https://github.com/kim-lindhard-dfds/terraform-reconciler/blob/master/upload-desired-state-to-s3.sh | Github Open Source | Open Source | MIT | 2,020 | terraform-reconciler | kim-lindhard-dfds | Shell | Code | 15 | 77 | #! /bin/bash
aws s3 mb s3://dfds-ecr-desired-state/
aws s3 mb s3://dfds-actual-state/
aws s3 cp desired_states/truck-configuration.json s3://dfds-ecr-desired-state/truck-configuration.json | 37,931 |
https://github.com/gavinhenderson/open-crime/blob/master/app/src/components/utils/to-title-case.js | Github Open Source | Open Source | Apache-2.0 | null | open-crime | gavinhenderson | JavaScript | Code | 27 | 83 | const toTitleCase = slugTitle => {
const titleArray = slugTitle.split('-');
const upperCasedArray = titleArray.map(
current => current[0].toUpperCase() + current.slice(1)
);
return upperCasedArray.join(' ');
};
export default toTitleCase;
| 33,911 |
https://github.com/ToJestKrzysio/EventMaster/blob/master/backend/event/tests/test_views.py | Github Open Source | Open Source | MIT | null | EventMaster | ToJestKrzysio | Python | Code | 827 | 3,619 | import pytest
from django.urls import reverse
class TestEventListView:
@pytest.mark.parametrize("url", [
"/event/",
reverse("event:event_list")
])
def test_status_code(self, client, db, url):
response = client.get(url)
assert response.status_code == 200
def test_resp... | 18,447 |
https://github.com/marco-c/gecko-dev-wordified-and-comments-removed/blob/master/third_party/rust/tokio/src/time/interval.rs | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | gecko-dev-wordified-and-comments-removed | marco-c | Rust | Code | 948 | 2,125 | use
crate
:
:
future
:
:
poll_fn
;
use
crate
:
:
time
:
:
{
sleep_until
Duration
Instant
Sleep
}
;
use
crate
:
:
util
:
:
trace
;
use
std
:
:
panic
:
:
Location
;
use
std
:
:
pin
:
:
Pin
;
use
std
:
:
task
:
:
{
Context
Poll
}
;
use
std
:
:
{
convert
:
:
TryInto
future
:
:
Future
}
;
#
[
track_caller
]
pub
fn
interval
... | 7,365 |
https://github.com/BaderEddineOuaich/xtd/blob/master/src/xtd.forms.native.wxwidgets/include/xtd/forms/native/wxwidgets/wx_up_down_button.h | Github Open Source | Open Source | MIT | 2,022 | xtd | BaderEddineOuaich | C | Code | 132 | 687 | #pragma once
/// @cond
#ifndef __XTD_FORMS_NATIVE_LIBRARY__
#error "Do not include this file: Internal use only"
#endif
/// @endcond
#include <codecvt>
#include <xtd/argument_exception.h>
#include <xtd/drawing/system_colors.h>
#include <xtd/forms/create_params.h>
#include <xtd/forms/native/up_down_styles.h>
#include <... | 19,508 |
https://github.com/rmathis/openEQUELLA/blob/master/Source/Plugins/Core/com.equella.core/src/com/tle/web/sections/equella/impl/ModalSessionExceptionHandler.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | openEQUELLA | rmathis | Java | Code | 164 | 362 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | 5,116 |
https://github.com/venkattgg/venkey/blob/master/oss_src/serialization/unsupported_serialize.hpp | Github Open Source | Open Source | BSD-3-Clause | 2,022 | venkey | venkattgg | C++ | Code | 356 | 774 | /**
* Copyright (C) 2016 Turi
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
/**
* Copyright (c) 2009 Carnegie Mellon University.
* All rights reserved.
*
* Licensed under the Apache License, Version ... | 7,963 |
https://github.com/CESARDELATORRE/github-labeler-mlnet-eshop/blob/master/src/GitHubLabeler/Predictor.cs | Github Open Source | Open Source | MIT | 2,018 | github-labeler-mlnet-eshop | CESARDELATORRE | C# | Code | 210 | 909 | using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.ML;
using Microsoft.ML.Data;
using Microsoft.ML.Models;
using Microsoft.ML.Trainers;
using Microsoft.ML.Transforms;
namespace GitHubLabeler
{
internal class Predictor
{
private static string AppPath => Path.GetDirectoryName(E... | 1,606 |
https://github.com/Alfraganus/craftsman/blob/master/backend/views/fields/brands/update.php | Github Open Source | Open Source | BSD-3-Clause | null | craftsman | Alfraganus | PHP | Code | 47 | 163 | <?php
$this->title = Yii::t('app', 'Edit Brand: {title}', [
'title' => $model->title,
]);
$this->page_title = Yii::t('app', 'Edit Brand: <span>{title}</span>', [
'title' => $model->title,
]);
$this->breadcrumb_title = 'Edit Brand';
$this->breadcrumbs[] = ['label' => 'Brands', 'url' => $main_url]; ?>
<div cla... | 23,819 |
https://github.com/clecat/httpaf/blob/master/Makefile | Github Open Source | Open Source | BSD-3-Clause | 2,021 | httpaf | clecat | Makefile | Code | 37 | 120 | .PHONY: all build clean test examples
build:
dune build @install
all: build
test:
dune runtest --no-buffer
examples:
dune build @examples
watch:
dune build {httpaf,httpaf-async,httpaf-lwt-unix}.install @runtest --watch
install:
dune install
uninstall:
dune uninstall
clean:
rm -rf _build *.install
| 54,525 |
https://github.com/daldoyle/tsds-services/blob/master/t/15metadata_query_fragment.t | Github Open Source | Open Source | Apache-2.0 | null | tsds-services | daldoyle | Perl | Code | 258 | 732 | use strict;
use warnings;
use Test::More tests => 6;
use GRNOC::Config;
use GRNOC::TSDS::DataService::MetaData;
use GRNOC::TSDS::DataService::Query;
use GRNOC::Log;
use JSON::XS;
use MongoDB;
use FindBin;
use Data::Dumper;
my $config_file = "$FindBin::Bin/conf/config.xml";
my $logging_file = "$FindBin::Bin/conf/lo... | 2,517 |
https://github.com/daringer/mmorecpp/blob/master/tests/Makefile | Github Open Source | Open Source | BSD-3-Clause | null | mmorecpp | daringer | Makefile | Code | 116 | 423 | include ../src/Makefile.inc
PARTS=fs xtime template_parser executor xregex xlogger xstring
SOURCES.cc = run_tests.cc
DEPSRC=$(addsuffix .cc, $(PARTS))
MAINSRC.cc = $(shell ls -1 ../src/*/*.h | xargs) \
$(shell ls -1 ../src/*/*.cc | xargs)
LIBOBJ = ../src/libtools.a
SOURCES = $(SOURCES.cc) $(LIBOBJ)
PROGRAM =... | 55,159 |
https://github.com/exKAZUu/AIChallenge2018AtCodeFestival/blob/master/Battle2048/src/main/java/net/exkazuu/battle2048/controller/RandomAIMainController.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | AIChallenge2018AtCodeFestival | exKAZUu | Java | Code | 212 | 720 | package net.exkazuu.battle2048.controller;
import net.exkazuu.battle2048.game.Board;
import net.exkazuu.battle2048.game.Game;
import net.exkazuu.battle2048.util.Logger;
import net.exkazuu.gameaiarena.api.Direction4;
import net.exkazuu.gameaiarena.api.Point2;
import java.util.ArrayList;
import java.util.Collections;
i... | 12,739 |
https://github.com/jmaloles/payme/blob/master/resources/views/backend/report/pos/daily/index.blade.php | Github Open Source | Open Source | MIT | null | payme | jmaloles | PHP | Code | 755 | 3,665 | @extends ('backend.layouts.app')
@section ('title', 'Daily Report')
@section('after-styles')
{{ Html::style("https://cdn.datatables.net/v/bs/dt-1.10.15/datatables.min.css") }}
{{ Html::style('https://cdn.datatables.net/buttons/1.4.0/css/buttons.dataTables.min.css') }}
{{ Html::style('https://code.jquery.c... | 37,744 |
https://github.com/zhugongyuan/RefreshDropAndUpPull/blob/master/Example/Podfile | Github Open Source | Open Source | MIT | 2,016 | RefreshDropAndUpPull | zhugongyuan | Ruby | Code | 10 | 35 | use_frameworks!
target 'refreshPull_Tests' do
pod 'refreshPull', :path => '../'
end
| 4,050 |
https://github.com/hyukjae87/robovm-ios-bindings/blob/master/openkit/libproj/Samples/OpenKit Sample App/OpenKit Sample App/OKAppDelegate.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | robovm-ios-bindings | hyukjae87 | C | Code | 42 | 129 | //
// OKAppDelegate.h
// SampleApp
//
// Created by Suneet Shah on 12/26/12.
// Copyright (c) 2013 OpenKit. All rights reserved.
//
#import <UIKit/UIKit.h>
@class OKViewController;
@interface OKAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (strong,... | 22,062 |
https://github.com/anpone/CodeIG/blob/master/application/language/chinese/admin_common_lang.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,016 | CodeIG | anpone | PHP | Code | 344 | 1,665 | <?php
/******************************************
后台语言
******************************************/
// header
$lang ['title'] = '系统管理后台';
$lang ['web_index'] = '网站首页';
$lang ['nopur'] = '无权限';
$lang ['logo'] = '有事吧';
$lang ['change_skin'] = '更换主题皮肤';
$lang ['skin_cerulean'] = '默认';
$lang ['skin_classic'] = '古典';
$lan... | 32,008 |
https://github.com/apache/spark/blob/master/mllib/src/test/scala/org/apache/spark/ml/feature/VectorIndexerSuite.scala | Github Open Source | Open Source | BSD-3-Clause, CC0-1.0, CDDL-1.1, Apache-2.0, LicenseRef-scancode-public-domain, BSD-2-Clause, LicenseRef-scancode-unknown-license-reference, EPL-2.0, CDDL-1.0, MIT, LGPL-2.0-or-later, Python-2.0, LicenseRef-scancode-generic-cla, LicenseRef-scancode-free-unknown, EPL-1.0, Classpath-exception-2.0, GCC-exception-3.1, CC-B... | 2,023 | spark | apache | Scala | Code | 1,346 | 4,566 | /*
* 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 ... | 26,083 |
https://github.com/cristhianbreunig/challenge-php/blob/master/resources/views/public_post.blade.php | Github Open Source | Open Source | MIT | null | challenge-php | cristhianbreunig | PHP | Code | 121 | 515 | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header" style="background-color: #e3eeff">{{ $post->titulo }}</div>
<div class="card-body">
... | 51,618 |
https://github.com/Mthandazo42/validating-binary-decompilation/blob/master/tests/single_instruction_translation_validation/mcsema/memory-variants/vtestps_ymm_m256/seed/vtestps_ymm_m256.s | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, NCSA | 2,020 | validating-binary-decompilation | Mthandazo42 | Unix Assembly | Code | 5 | 24 | .target:
vtestps -32(%rbp), %ymm1
retq
| 6,194 |
https://github.com/Orrequia/Spring-Factory/blob/master/src/main/java/com/jmb/springfactory/service/productionorder/ProductionOrderServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | Spring-Factory | Orrequia | Java | Code | 174 | 832 | package com.jmb.springfactory.service.productionorder;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jmb.springfactory.dao.GenericMySQLService;
import com.jmb.springfactory.dao.productionorder... | 36,426 |
https://github.com/eleuterio942/dart_aqueduct_backend/blob/master/lib/controllers/register/regiter_controller.dart | Github Open Source | Open Source | MIT | null | dart_aqueduct_backend | eleuterio942 | Dart | Code | 13 | 40 | import '../../dart_backend.dart';
class RegiterController extends ResourceController {
@Operation.post()
Future<Response> post() async {}
}
| 21,806 |
https://github.com/jeremynorris/rbenv/blob/master/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rspec-puppet-0.1.6/spec/classes/sysctl_common_spec.rb | Github Open Source | Open Source | MIT | 2,013 | rbenv | jeremynorris | Ruby | Code | 164 | 456 | require 'spec_helper'
describe 'sysctl::common' do
it { should contain_exec('sysctl/reload') \
.with_command('/sbin/sysctl -p /etc/sysctl.conf').with_returns([0, 2]) }
it { should_not create_augeas('foo') }
describe 'when using with to specify a hash of parameters' do
it 'should fail if the parameter is ... | 29,315 |
https://github.com/klarrimore/routengn/blob/master/script/console | Github Open Source | Open Source | Apache-2.0 | 2,010 | routengn | klarrimore | Ruby | Code | 22 | 104 | #!/usr/bin/env ruby
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
exec "#{irb} -I \"#{File.dirname(__FILE__)}/../lib\" -r \"routengn\" -I \"#{File.dirname(__FILE__)}/../lib/routengn\" -r \"console\" --simple-prompt"
| 1,159 |
https://github.com/cianixru/react-scroll-collapse/blob/master/src/selectors/collapserItem.js | Github Open Source | Open Source | MIT | 2,019 | react-scroll-collapse | cianixru | JavaScript | Code | 21 | 70 | import {
entitiesSelector,
createEntityTypeSelectors
} from './utils';
const item = createEntityTypeSelectors(
'items',
entitiesSelector,
['expanded', 'waitingForHeight', 'visible', 'queued']
);
export default item;
| 20,209 |
https://github.com/lucapette/deloominator/blob/master/ui/src/components/Chart.jsx | Github Open Source | Open Source | MIT | 2,019 | deloominator | lucapette | null | Spoken | 118 | 342 | //@flow
import {map, zipObject} from 'lodash';
import React, {Component} from 'react';
import {Segment} from 'semantic-ui-react';
import SimpleBar from './charts/SimpleBar';
import SimpleLine from './charts/SimpleLine';
import GroupedBar from './charts/GroupedBar';
import MultiLine from './charts/MultiLine';
import *... | 15,553 |
https://github.com/motiz88/webidl-to-flow/blob/master/src/emit/class.js | Github Open Source | Open Source | MIT | 2,017 | webidl-to-flow | motiz88 | JavaScript | Code | 160 | 511 | /* @flow */
import Rx from 'rx';
import assert from 'assert';
import emitMembers from './members';
import emitInheritance from './inheritance';
import concatIfAny from '../concatIfAny';
var literal = Rx.Observable.of;
import t from '../FormattingToken';
export
default
function emitClass(node: {
type: string,... | 27,985 |
https://github.com/pgnDataBase/pgnDB/blob/master/src/main/java/com/engwork/pgndb/chessengine/ChessEngineController.java | Github Open Source | Open Source | MIT | 2,022 | pgnDB | pgnDataBase | Java | Code | 142 | 721 | package com.engwork.pgndb.chessengine;
import com.engwork.pgndb.chessengine.engineinfo.EngineInfo;
import com.engwork.pgndb.chessengine.engineinfo.EngineInfoManagingBean;
import com.engwork.pgndb.security.JWTValidator;
import lombok.AllArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springf... | 44,429 |
https://github.com/msleprosy/cloud-pipeline/blob/master/elasticsearch-agent/src/main/resources/application.properties | Github Open Source | Open Source | Apache-2.0 | 2,019 | cloud-pipeline | msleprosy | null | Spoken | 128 | 1,132 | # Git Web Hook
server.port=8080
server.servlet.context-path=/elastic-agent
#ElasticSearch Client Configuration
elasticsearch.client.url=localhost
elasticsearch.client.port=9200
elasticsearch.client.scheme=http
#DB
database.url=
database.username=pipeline
database.password=pipeline
database.driverClass=org.postgresql.... | 5,978 |
https://github.com/thvlt/tinyemu/blob/master/buildroot-2021.05.3/package/kodi-pvr-wmc/kodi-pvr-wmc.mk | Github Open Source | Open Source | MIT | 2,022 | tinyemu | thvlt | Makefile | Code | 24 | 156 | ################################################################################
#
# kodi-pvr-wmc
#
################################################################################
KODI_PVR_WMC_VERSION = 6.1.1-Matrix
KODI_PVR_WMC_SITE = $(call github,kodi-pvr,pvr.wmc,$(KODI_PVR_WMC_VERSION))
KODI_PVR_WMC_LICENSE = GPL... | 33,088 |
https://github.com/is0060hf/meshi/blob/master/src/Template/Layout/sign_up.ctp | Github Open Source | Open Source | MIT | null | meshi | is0060hf | PHP | Code | 139 | 600 | <?php
/**
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the abov... | 24,726 |
https://github.com/gustavo867/playstation-store/blob/master/src/redux/ducks/rootReducer.ts | Github Open Source | Open Source | MIT | null | playstation-store | gustavo867 | TypeScript | Code | 52 | 150 | import { combineReducers } from 'redux';
import { persistReducer } from 'redux-persist';
import AsyncStorage from '@react-native-async-storage/async-storage';
const persistConfig = {
key: 'root',
storage: AsyncStorage,
whitelist: ['theme', 'cart'],
};
import products from './products';
import theme from './them... | 38,676 |
https://github.com/abdurrohman123/Post-Comment/blob/master/resources/views/profile/show.blade.php | Github Open Source | Open Source | MIT | 2,020 | Post-Comment | abdurrohman123 | Blade | Code | 237 | 1,032 | @extends('layouts.app')
@section('content')
<div class="container">
<div class="card mx-auto">
<!-- Profile widget -->
<div class="bg-white shadow rounded overflow-hidden">
<div class="px-4 pt-0 pb-4 cover">
<div class="media align-items-end profile-head">
... | 32,963 |
https://github.com/ssorj/qpid-site/blob/master/content/releases/qpid-proton-0.16.0/proton/c/api/url_8h.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | qpid-site | ssorj | JavaScript | Code | 95 | 783 | var url_8h =
[
[ "pn_url_t", "url_8h.html#gafbe4340c29b1abd7394767456ad3b8ea", null ],
[ "pn_url", "url_8h.html#ga8b19840fe7ff1166c6583a7445eed325", null ],
[ "pn_url_clear", "url_8h.html#ga2f7548b8247ebddc8be3f0f5ebce151b", null ],
[ "pn_url_free", "url_8h.html#gab65d8b2c49f5e3f720cea8a3c1a1e6d1", null... | 15,769 |
https://github.com/111Online/nhs111-ccg-service/blob/master/NHS111.CCG.Api.sln | Github Open Source | Open Source | Apache-2.0 | 2,020 | nhs111-ccg-service | 111Online | null | Spoken | 284 | 2,681 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29613.14
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NHS111.Business.CCG.Api", "NHS111.Business.CCG.Api\NHS111.Business.CCG.Api.csproj", "{878510CA-FDD2-... | 46,303 |
https://github.com/doytsujin/blast/blob/master/node/data/protobuf/util.go | Github Open Source | Open Source | Apache-2.0 | 2,019 | blast | doytsujin | Go | Code | 2,407 | 5,725 | // Copyright (c) 2018 Minoru Osuka
//
// 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... | 10,831 |
https://github.com/laijinhang/learn-go-implementation/blob/master/src/go/internal/work/action.go | Github Open Source | Open Source | Apache-2.0 | null | learn-go-implementation | laijinhang | Go | Code | 29 | 80 | package work
type Builder struct {
WorkDir string // 临时工作目录(以filepath.Separator结尾)
//actionCache map[cache]
}
type cacheKey struct {
mode string
}
type Action struct {
Mode string
Package *load.Pa
}
| 30,911 |
https://github.com/MrJohz/K-Eight/blob/master/plugins/games.py | Github Open Source | Open Source | BSD-2-Clause-Views | 2,014 | K-Eight | MrJohz | Python | Code | 311 | 868 | ## SETUP
import random
from operator import add, sub
import re
from tools import plugin
## ROLL (.roll)
DICE_REGEX = re.compile('^(\d+)?\s*d\s*(\d+)(?:\s*(\+|-)\s*(\d+))?$')
def do_roll(keight, event):
"""Rolls dice.
USAGE: .roll
==> Rolls one six-sided dice
USAGE: .roll [<m>=1]d<n>
==> Rolls <m> <n>-sided dic... | 51,937 |
https://github.com/ch8n/theBloom-Compose-ADC-3/blob/master/app/src/main/java/com/example/androiddevchallenge/ui/components/GardenItemColumn.kt | Github Open Source | Open Source | Apache-2.0 | null | theBloom-Compose-ADC-3 | ch8n | Kotlin | Code | 101 | 460 | package com.example.androiddevchallenge.ui.components
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.foundation.lazy.items
import androidx.comp... | 26,170 |
https://github.com/NandoKstroNet/ethanon/blob/master/toolkit/Utilites/source/TextFormatVerifier/AsciiVerifier.cpp | Github Open Source | Open Source | MIT | 2,013 | ethanon | NandoKstroNet | C++ | Code | 47 | 154 | #include "stdafx.h"
#include "AsciiVerifier.h"
namespace ascii
{
bool Verify(const unsigned char * fileByteContent, unsigned int fileByteSize, std::vector<int>& errorPositions)
{
errorPositions.clear();
for (unsigned int i = 0; i < fileByteSize; ++i)
{
if ( fileByteContent[i] > 0x7F )
{
errorPosition... | 56,670 |
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/mlir_generated/BUILD | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla, BSD-2-Clause | 2,023 | tensorflow | tensorflow | Starlark | Code | 3,562 | 16,604 | # Generates CUDA kernels using MLIR codegen.
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
load(
"//tensorflow/core/kernels/mlir_generated:build_defs.bzl",
"gpu_kernel_library",
"if_mlir_generated_experimental_kernels_enabled",
"if_mlir_generated_gpu_kernels_enabled",
)
load(
"//ten... | 27,128 |
https://github.com/mistler/Library/blob/master/project/build.properties | Github Open Source | Open Source | Apache-2.0 | 2,016 | Library | mistler | null | Spoken | 10 | 59 | #Activator-generated Properties
#Thu May 19 23:22:35 NOVT 2016
template.uuid=28ae6884-7b61-401c-834c-704789d1228a
sbt.version=0.13.11
| 43,404 |
https://github.com/Natata/georedis/blob/master/example/hash.go | Github Open Source | Open Source | MIT | 2,018 | georedis | Natata | Go | Code | 43 | 175 | package main
import (
"fmt"
"github.com/Natata/georedis"
)
func main() {
configFilePath := "config_example.json"
pool, _ := georedis.NewPool(configFilePath)
geo := georedis.NewGeo(pool)
key := "japan"
members := []*georedis.Member{
georedis.NewMember("tokyo", 35.688825, 139.700804),
}
geo.Add(key, members... | 26,000 |
https://github.com/Th-Os/Sheets/blob/master/server/src/routes/exercises.js | Github Open Source | Open Source | MIT | 2,018 | Sheets | Th-Os | JavaScript | Code | 509 | 1,536 | // TODO: document with ./node_modules/.bin/jsdoc -c jsdoc-conf.json
/**
* @module API/exercises
* @see @link https://stackoverflow.com/questions/31818538/jsdocs-documenting-node-js-express-routes
*/
/**
* @overview The routing of the exercises API.
* @author Thomas Oswald
*/
import express from 'express';
impo... | 46,633 |
https://github.com/WEBCON-BPS/BPSExt-Signing-DocuSign/blob/master/WebCon.BpsExt.Signing.DocuSign/CustomActions/Configuration/BaseConfigs/SendEnvelopeConfigurationBase.cs | Github Open Source | Open Source | MIT | null | BPSExt-Signing-DocuSign | WEBCON-BPS | C# | Code | 298 | 756 | using WebCon.WorkFlow.SDK.Common;
using WebCon.WorkFlow.SDK.ConfigAttributes;
namespace WebCon.BpsExt.Signing.DocuSign.CustomActions.Configuration
{
public class SendEnvelopeConfigurationBase : PluginConfiguration
{
[ConfigGroupBox(DisplayName = "DocuSign API Settings", Description = "More information... | 36,827 |
https://github.com/ashmcr/officelife/blob/master/app/Services/Company/Employee/ConsultantRate/SetConsultantRate.php | Github Open Source | Open Source | BSD-3-Clause | 2,020 | officelife | ashmcr | PHP | Code | 244 | 1,034 | <?php
namespace App\Services\Company\Employee\ConsultantRate;
use Carbon\Carbon;
use App\Jobs\LogAccountAudit;
use App\Services\BaseService;
use App\Jobs\LogEmployeeAudit;
use App\Models\Company\Employee;
use App\Models\Company\ConsultantRate;
use App\Models\Company\EmployeeStatus;
use App\Exceptions\NotConsultantExc... | 19,870 |
https://github.com/open-mpi/ompi-www/blob/master/community/lists/devel/2009/05/6025.php | Github Open Source | Open Source | BSD-3-Clause | 2,023 | ompi-www | open-mpi | PHP | Code | 952 | 3,585 | <?
$subject_val = "Re: [OMPI devel] Build failures on trunk? r21235";
include("../../include/msg-header.inc");
?>
<!-- received="Thu May 14 12:40:44 2009" -->
<!-- isoreceived="20090514164044" -->
<!-- sent="Thu, 14 May 2009 17:41:44 +0100" -->
<!-- isosent="20090514164144" -->
<!-- name="Ashley Pittman" -->
<!-- email... | 14,463 |
https://github.com/luizfbicalho/Camunda.NET/blob/master/camunda-bpm-platform-net/qa/performance-tests-engine/src/main/java/org/camunda/bpm/qa/performance/engine/framework/activitylog/ActivityCountAggregator.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | Camunda.NET | luizfbicalho | C# | Code | 782 | 2,696 | using System;
using System.Collections.Generic;
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file ... | 16,516 |
https://github.com/Slowbrofist/Abbymod-github/blob/master/theForeigner/src/main/java/AbbyMod/cards/ExposeNavel.java | Github Open Source | Open Source | MIT | 2,020 | Abbymod-github | Slowbrofist | Java | Code | 215 | 1,020 | package AbbyMod.cards;
import AbbyMod.AbbyMod;
import AbbyMod.characters.AbbyChar;
import static AbbyMod.AbbyMod.enableSFW;
import static AbbyMod.AbbyMod.makeCardPath;;
import basemod.abstracts.CustomCard;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.common.ApplyPowe... | 28,897 |
https://github.com/TiendaNube/json-schema-validation/blob/master/src/main/scala/jsonschemavalidation/JsValidationBuilder.scala | Github Open Source | Open Source | MIT | 2,020 | json-schema-validation | TiendaNube | Scala | Code | 17 | 89 | package jsonschemavalidation
import org.nulluncertainty.expression.ComposableAssertionExp
import play.api.libs.json.{JsObject, JsValue}
trait JsValidationBuilder {
def build(path: Path, propertyDefinition: JsObject): ComposableAssertionExp[JsValue,JsValue,JsValue]
}
| 41,812 |
https://github.com/baytek-team/starter-wordpress/blob/master/app/Theme/Registrar.php | Github Open Source | Open Source | MIT | 2,022 | starter-wordpress | baytek-team | PHP | Code | 174 | 525 | <?php
namespace Baytek\Wordpress\Theme;
/**
* Register menus, widget areas, etc.
*/
class Registrar extends Base
{
/**
* Set up all class hooks
* @see https://developer.wordpress.org/reference/hooks/widgets_init/
*/
public function addHooks() {
// Init widget areas - uncomment if you have sidebars
a... | 10,594 |
https://github.com/hhhhhaaaa/Week-5-Assessment/blob/master/database.js | Github Open Source | Open Source | MIT | 2,017 | Week-5-Assessment | hhhhhaaaa | JavaScript | Code | 89 | 262 | const pg = require('pg')
//Database Connection
const connectionString = process.env.DATABASE_URL || 'postgres://localhost:5432/contacts'
//Client Connection
const client = new pg.Client(connectionString)
client.connect()
const query = function(sql, variables, callback) {
client.query(sql, variables, function(error, ... | 22,364 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.