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/cvrebeatsaber/QuestQualifications/blob/master/shared/protobuf/Models/Packets/submit_score.pb.h | Github Open Source | Open Source | MIT | 2,020 | QuestQualifications | cvrebeatsaber | C | Code | 856 | 3,891 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: protobuf/Models/Packets/submit_score.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_protobuf_2fModels_2fPackets_2fsubmit_5fscore_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_protobuf_2fModels_2fPackets_2fsubmit_5fscore_2eproto
#include <limits>
#include <stri... | 43,995 |
https://github.com/0xBlockchainx0/finscale-frontend/blob/master/src/components/footer/footer.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | finscale-frontend | 0xBlockchainx0 | JavaScript | Code | 87 | 353 | import React from 'react'
import './footer.scss'
export default function Footer() {
return (
<section className="footer">
<div className="footer__top">
<ul className="footer__top--about">
<li className="footer__top--headers">About</li>
<li>Finscale</li>
<li>Contact</l... | 39,584 |
https://github.com/hebaihe/daemon/blob/master/baiduNetdisk_2_beifen/client_quick/check_dir.c | Github Open Source | Open Source | Apache-2.0 | null | daemon | hebaihe | C | Code | 113 | 899 | #include "client.h"
#define _XOPEN_SOURCE
int check_dir(int socketFd,char* buf)//检查当前目录是否有待上传的file,有则直接trans_file
{
printf("wojin checkdir\n");
train_t taskTrain;
printf("buf=%s\n",buf);
char *file=(char*)malloc(128);
memset(file,0,128);
sscanf(buf,"%*s%s",file);//dir取空格后的字符串
printf("file=%s\n",file);
/... | 37,169 |
https://github.com/TimothyEBaldwin/RO_cvs2git2/blob/master/cvs2svn/cvs2svn_lib/symbol.py | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | null | RO_cvs2git2 | TimothyEBaldwin | Python | Code | 981 | 2,232 | # (Be in -*- python -*- mode.)
#
# ====================================================================
# Copyright (c) 2000-2008 CollabNet. All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also availabl... | 3,537 |
https://github.com/ederdoski/intercorpTest/blob/master/app/src/main/java/com/adrenastudies/intercorptest/utils/Dialogs.java | Github Open Source | Open Source | MIT | null | intercorpTest | ederdoski | Java | Code | 155 | 910 | package com.adrenastudies.intercorptest.utils;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.TextView;
import androidx.appcompat.app.AlertDialog;
import... | 44,798 |
https://github.com/mlyszczek/embedlog/blob/master/src/el-decode-number.c | Github Open Source | Open Source | BSD-2-Clause | 2,020 | embedlog | mlyszczek | C | Code | 349 | 772 | /* ==========================================================================
Licensed under BSD 2clause license See LICENSE file for more information
Author: Michał Łyszczek <michal.lyszczek@bofc.pl>
==========================================================================
_ __ ... | 11,189 |
https://github.com/knewter/imagine/blob/master/lib/imagine.rb | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,013 | imagine | knewter | Ruby | Code | 54 | 181 | %w( config engine plugins plugin model_extensions/album model_extensions/image ).each do |lib|
require "imagine/#{lib}"
end
module Imagine
class << self
def configure(options={}, &block)
@config ||= Imagine::Config.new(options, &block)
end
def config
@config ||= Imagine::Config.new
end... | 30,845 |
https://github.com/osxm/splm/blob/master/splm-front/ext/modern/theme-neptune/sass/var/menu/Separator.scss | Github Open Source | Open Source | Apache-2.0, MIT, BSD-3-Clause, CC-BY-2.5, OFL-1.1, LicenseRef-scancode-commercial-license, LicenseRef-scancode-public-domain | 2,019 | splm | osxm | SCSS | Code | 222 | 662 | /**
* @class Ext.menu.Separator
*/
/**
* @var {color}
* Menu Separator size
*/
$menuseparator-size: dynamic($menu-separator-width);
/**
* @var {number}
* Menu Separator border-width
*/
$menuseparator-border-width: dynamic(rotate90($menu-separator-border-width));
/**
* @var {number}
* Menu Separator border-... | 19,314 |
https://github.com/brentd/xray-rails/blob/master/app/assets/javascripts/xray.js | Github Open Source | Open Source | MIT | 2,022 | xray-rails | brentd | JavaScript | Code | 1,231 | 4,306 | // Generated by CoffeeScript 1.9.2
(function() {
var $, MAX_ZINDEX, util,
hasProp = {}.hasOwnProperty,
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } f... | 51,084 |
https://github.com/ScalablyTyped/Distribution/blob/master/k/kahoot_dot_js-updated/src/main/scala/typings/kahootJsUpdated/mod/TimeOver.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 63 | 213 | package typings.kahootJsUpdated.mod
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
trait TimeOver extends StObject {
var questionNumber: Double
}
object TimeOver {
inline def apply(questionNumb... | 55,503 |
https://github.com/casparant/bpftrace/blob/master/tests/codegen/intcast_retval.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | bpftrace | casparant | C++ | Code | 39 | 95 | #include "common.h"
namespace bpftrace {
namespace test {
namespace codegen {
TEST(codegen, intcast_call)
{
// Casting should work inside a call
test("kretprobe:f { @=sum((int32)retval) }", NAME);
}
} // namespace codegen
} // namespace test
} // namespace bpftrace
| 54,274 |
https://github.com/meggsimum/masterportal-mirror/blob/master/test/end2end/tests/modules/tools/PopulationRequest_HH.js | Github Open Source | Open Source | MIT | 2,022 | masterportal-mirror | meggsimum | JavaScript | Code | 1,259 | 4,261 | const webdriver = require("selenium-webdriver"),
{initDriver, getDriver, quitDriver} = require("../../../library/driver"),
{logTestingCloudUrlToTest} = require("../../../library/utils"),
{isMaster} = require("../../../settings"),
{By, until} = webdriver;
/**
* Tests regarding resident counter tool.
*... | 52,897 |
https://github.com/morrilet/Puttsy/blob/master/Assets/Scenes/Credits.unity | Github Open Source | Open Source | MIT | 2,018 | Puttsy | morrilet | Unity3D Asset | Code | 6,572 | 28,379 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!... | 6,666 |
https://github.com/taysea/grommet/blob/master/src/js/components/Tabs/stories/CustomTheme.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | grommet | taysea | JavaScript | Code | 240 | 771 | import React from 'react';
import { storiesOf } from '@storybook/react';
import { css } from 'styled-components';
import { CircleInformation, Currency } from 'grommet-icons';
import { Grommet, FormField, Tab, Tabs, TextInput } from 'grommet';
import { grommet } from 'grommet/themes';
import { deepMerge } from 'gromme... | 26,645 |
https://github.com/connected-space/material-ui-pickers/blob/master/lib/__tests__/TimePicker/TimePickerWrapper.usage.tsx | Github Open Source | Open Source | MIT | null | material-ui-pickers | connected-space | TypeScript | Code | 91 | 240 | import * as React from 'react'
import { Fragment, Component } from 'react';
import TimePickerWrapper from '../../src/TimePicker/TimePickerWrapper';
import { Moment } from 'moment'
// initially from the docs site
export default class BasicUsage extends Component<{}, {selectedDate: Date}> {
state = {
selectedDate... | 56,905 |
https://github.com/libundo/libundo/blob/master/bindings/python/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,021 | libundo | libundo | Makefile | Code | 42 | 140 | default: build
FILES=libundo.cc setup.py MANIFEST.in README.md
lib: libundo.pyx ctree.pxd
cython --cplus libundo.pyx -o libundo.cc
build: ${FILES}
python setup.py build_ext -i
sdist: ${FILES}
python setup.py sdist
publish: clean sdist
twine upload dist/*
clean:
rm -rf libundo dist libundo.egg-info build
rm ... | 46,960 |
https://github.com/mishin/eldhelm-platform/blob/master/lib/Eldhelm/Util/FileSystem.pm | Github Open Source | Open Source | MIT | 2,016 | eldhelm-platform | mishin | Perl | Code | 354 | 779 | package Eldhelm::Util::FileSystem;
=pod
=head1 NAME
Eldhelm::Util::FileSystem - A utility class for file system interaction.
=head1 SYNOPSIS
This is a static class.
=head1 METHODS
=over
=cut
use strict;
use Carp;
=item readFoldersList($path)
Returns the list of folders from the folder specified.
C<$path> St... | 10,343 |
https://github.com/hari047/Ionic-Application/blob/master/sources/com/facebook/login/DeviceAuthMethodHandler.java | Github Open Source | Open Source | MIT | null | Ionic-Application | hari047 | Java | Code | 207 | 755 | package com.facebook.login;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.facebook.AccessToken;
import com.facebook.AccessTokenSource;
import com.facebook.login.LoginClient.Request;
import com.facebook.login.LoginClient.Result;
import java.util.Collection;
import java.util.Date;
import jav... | 31,320 |
https://github.com/dusk-rs/server-old/blob/master/network/src/main/kotlin/rs/dusk/network/rs/codec/game/decode/message/FriendChatJoinMessage.kt | Github Open Source | Open Source | CC-BY-3.0 | 2,022 | server-old | dusk-rs | Kotlin | Code | 34 | 81 | package rs.dusk.network.rs.codec.game.decode.message
import rs.dusk.core.network.model.message.Message
/**
* Player wants to join a friends chat
* @param name The display name of the friend who's chat to join
*/
data class FriendChatJoinMessage(val name: String) : Message | 9,090 |
https://github.com/square/square-php-sdk/blob/master/src/Models/CatalogItemVariation.php | Github Open Source | Open Source | Apache-2.0 | 2,023 | square-php-sdk | square | PHP | Code | 3,674 | 8,105 | <?php
declare(strict_types=1);
namespace Square\Models;
use stdClass;
/**
* An item variation, representing a product for sale, in the Catalog object model. Each
* [item]($m/CatalogItem) must have at least one
* item variation and can have at most 250 item variations.
*
* An item variation can be sellable, sto... | 54,007 |
https://github.com/calico/basenji/blob/master/bin/archive/basenji_norm_h5.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | basenji | calico | Python | Code | 579 | 2,095 | #!/usr/bin/env python
# Copyright 2017 Calico LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 41,511 |
https://github.com/vishalbelsare/torchsde/blob/master/tests/test_sdeint.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | torchsde | vishalbelsare | Python | Code | 915 | 3,322 | # Copyright 2020 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 writing, ... | 26,387 |
https://github.com/BlitzModder/dava.engine/blob/master/Sources/Internal/UI/AbstractUIPackageBuilder.cpp | Github Open Source | Open Source | 2,018 | dava.engine | BlitzModder | C++ | Code | 21 | 111 | #include "AbstractUIPackageBuilder.h"
namespace DAVA
{
AbstractUIPackageLoader::~AbstractUIPackageLoader()
{
}
AbstractUIPackageBuilder::AbstractUIPackageBuilder()
{
}
AbstractUIPackageBuilder::~AbstractUIPackageBuilder()
{
}
void AbstractUIPackageBuilder::ProcessCustomData(const YamlNode* customDataNode)
{
}
}
| 53,926 | |
https://github.com/aburnett88/HSat/blob/master/tests-src/Test/Writer/CNF.hs | Github Open Source | Open Source | MIT | null | HSat | aburnett88 | Haskell | Code | 658 | 1,737 | module Test.Writer.CNF (
tests
) where
import HSat.Writer.CNF
import HSat.Writer.CNF.Internal
import TestUtils
import HSat.Problem.BSP.CNF.Internal
import qualified Data.Vector as V
import HSat.Problem.BSP.Common
import Control.Monad (liftM,replicateM,foldM)
import Data.Attoparsec.Text
import HSat.Parser.CNF
impor... | 38,977 |
https://github.com/aminspicse/myspeec/blob/master/school/management/five-madrasah/passed.php | Github Open Source | Open Source | MIT | 2,020 | myspeec | aminspicse | PHP | Code | 280 | 1,143 | <?php
include '../elements/simpleheader.php';
$semester = $setting['semester'];
$year = $setting['year'];
$sesid = $ses['id'];
//echo $sesid;
$sql2 = "SELECT * FROM five_madrasah WHERE admin_id = '$sesid' and semester = '$semester' and status = 'Passed' and year = '$year' and classs = 'Five' and delete_statu... | 3,198 |
https://github.com/DBeath/python-snippets/blob/master/unixtime.py | Github Open Source | Open Source | MIT | null | python-snippets | DBeath | Python | Code | 40 | 184 | from datetime import datetime
import time
dt = datetime.utcnow()
print(dt)
unix_dt = dt.strftime('%s')
print(unix_dt)
print(type(unix_dt))
unix_dt_2 = time.mktime(dt.timetuple())
print unix_dt_2
f = datetime.utcfromtimestamp(float(unix_dt))
print(f)
f_unix = time.mktime(f.timetuple())
print(f_unix)
print
first = ... | 33,291 |
https://github.com/MichellleHu/imodeljs/blob/master/core/frontend-devtools/src/widgets/KeyinField.ts | Github Open Source | Open Source | MIT | 2,019 | imodeljs | MichellleHu | TypeScript | Code | 633 | 1,673 | /*---------------------------------------------------------------------------------------------
* Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------... | 19,547 |
https://github.com/haomingzhi/Model/blob/master/UniversalFramework/UniversalFramework/Common/CommonUtil/CommonUtil.h | Github Open Source | Open Source | MIT | 2,018 | Model | haomingzhi | Objective-C | Code | 50 | 244 | //
// CommonUtil.h
// SCWCYClient
//
// Created by apple on 14-5-23.
// Copyright (c) 2014年 SunnadaSoft. All rights reserved.
// 通用的工具目录,本目录中的内容跟应用没有任何关系,属于基础提供工具
//
#ifndef SCWCYClient_CommonUtil_h
#define SCWCYClient_CommonUtil_h
#import "BSWeakObject.h"
#import "BSSqlite.h"
#import "BSSecurity.h"
#import "BSC... | 53,073 |
https://github.com/balao7/MobX/blob/master/library/src/main/kotlin/mobx/core/Changeable.kt | Github Open Source | Open Source | MIT | 2,020 | MobX | balao7 | Kotlin | Code | 9 | 21 | package mobx.core
interface Changeable {
val change: Int
}
| 9,233 |
https://github.com/couldedhusso/menahouse.ru/blob/master/database/seeds/CitiesTableSeeder.php | Github Open Source | Open Source | MIT | null | menahouse.ru | couldedhusso | PHP | Code | 99 | 377 | <?php
use Illuminate\Database\Seeder;
use App\City;
use App\District;
class CitiesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
City::truncate();
District::truncate();
$cities = ['1', '2', '3'];
... | 40,218 |
https://github.com/martinamps/plugin-alerttask/blob/master/src/AlertTaskPlugin.js | Github Open Source | Open Source | Apache-2.0 | null | plugin-alerttask | martinamps | JavaScript | Code | 70 | 230 | import { FlexPlugin } from 'flex-plugin';
export default class AlertTask extends FlexPlugin {
name = 'AlertTaskPlugin';
init(flex, manager) {
const audio = new Audio('https://api.twilio.com/cowbell.mp3#asdfsd');
manager.workerClient.on('reservationCreated', reservation => {
const isVoiceQueue = res... | 8,144 |
https://github.com/kotoko/templates/blob/master/react_frontend/src/redux/actions/setEndpoint1.js | Github Open Source | Open Source | BSD-3-Clause | null | templates | kotoko | JavaScript | Code | 19 | 61 | import {SET_ENDPOINT1} from '../actionTypes';
const setEndpoint1 = (data) => ({
type: SET_ENDPOINT1,
endpoint1: data,
});
export {setEndpoint1 as setEndpoint1Action};
| 27,773 |
https://github.com/martinlarsalbert/rolldecay/blob/master/notebooks/rolldecay/studies/matlab/Faust/GMvsOmega.m | Github Open Source | Open Source | MIT | 2,021 | rolldecay | martinlarsalbert | MATLAB | Code | 20 | 96 | T=27.6*sqrt(ScaleF); wE = 2*pi*1/T; % circular frequency
T=24*sqrt(ScaleF); wE = 2*pi*1/T; % circular frequency
ra=1025;
g=9.81;
B=32.26;
GM = wE^2*(0.45*B)^2/(g)
| 54,701 |
https://github.com/ip2location/ip2location-ruby/blob/master/example.rb | Github Open Source | Open Source | MIT | 2,022 | ip2location-ruby | ip2location | Ruby | Code | 201 | 552 | require 'ip2location_ruby'
# BIN Database
i2l = Ip2location.new.open("./data/IP2LOCATION-LITE-DB1.IPV6.BIN")
record = i2l.get_all('8.8.8.8')
print 'Country Code: ' + record['country_short'] + "\n"
print 'Country Name: ' + record['country_long'] + "\n"
print 'Region Name: ' + record['region'] + "\n"
print 'City Name: ... | 53,907 |
https://github.com/KTharmi/Construction/blob/master/resources/views/estimator/labourer/update.blade.php | Github Open Source | Open Source | MIT | 2,019 | Construction | KTharmi | Blade | Code | 53 | 228 | @extends('estimator/app')
@section('main-contend')
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content">
<h3>Edit Material details</h3>
<div class="card">
<div class="card-body pad">
{!! Form::open() ->route('est... | 42,097 |
https://github.com/EazeFang/RasterizationTraining/blob/master/lesson6_shader/CRender.cpp | Github Open Source | Open Source | MIT | 2,021 | RasterizationTraining | EazeFang | C++ | Code | 1,249 | 4,832 | #include "CRender.h"
#include <algorithm>
CRender::CRender()
{
}
CRender::~CRender()
{
if (model)
{
delete model;
model = NULL;
}
if (zbuffer)
{
delete[] zbuffer;
zbuffer = NULL;
}
}
bool CRender::init()
{
width_ = 800;
height_ = 800;
frameImage_ = CImage(width_, height_, CImage::RGB);
zbuffer_... | 9,627 |
https://github.com/redisson/redisson/blob/master/redisson/src/main/java/org/redisson/client/protocol/decoder/ListFirstObjectDecoder.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-dco-1.1 | 2,023 | redisson | redisson | Java | Code | 214 | 565 | /**
* Copyright (c) 2013-2022 Nikita Koksharov
*
* 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... | 11,832 |
https://github.com/zeab/quire/blob/master/src/main/scala/zeab/quireagent/queue/QueueMessages.scala | Github Open Source | Open Source | Apache-2.0 | 2,018 | quire | zeab | Scala | Code | 23 | 62 | package zeab.quireagent.queue
object QueueMessages {
case class Add(message:String)
case class GetNext(senderId: String = "")
case class Next(msg: String, senderId: String = "")
}
| 11,868 |
https://github.com/jinkunaier/bdp-platform/blob/master/bdp-schedule/bdp-schedule-server/src/main/java/com/bdp/schedule/handler/JobHandler.java | Github Open Source | Open Source | MIT | null | bdp-platform | jinkunaier | Java | Code | 59 | 230 | package com.bdp.schedule.handler;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import com.bdp.schedule.dto.JobInfo;
import com.bdp.schedule.dto.ScheduleInfo;
/**
* 根据isSupport来确定是否为JOB的具体执行类
*
* @author JACK
*
*/
public interface JobHandler {
/**
* 当前JOB是否支持可以处理传入的jobInfo.... | 49,830 |
https://github.com/rickdg/vivi/blob/master/core/src/zeit/cms/repository/browser/file.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | vivi | rickdg | Python | Code | 217 | 946 | from zeit.cms.i18n import MessageFactory as _
import gocept.form.grouped
import os.path
import zeit.cms.browser.interfaces
import zeit.cms.browser.listing
import zeit.cms.browser.view
import zeit.cms.repository.file
import zeit.cms.repository.interfaces
import zope.app.pagetemplate
import zope.component
import zope.for... | 41,361 |
https://github.com/AbdulSamad123/Admin-Dashboard/blob/master/includes/sidebar.php | Github Open Source | Open Source | MIT | 2,021 | Admin-Dashboard | AbdulSamad123 | Hack | Code | 182 | 995 | <!-- MENU SIDEBAR-->
<aside class="menu-sidebar d-none d-lg-block">
<div class="logo">
<a href="#">
<img src="images/icon/logo.png" alt="Cool Admin" />
</a>
</div>
<div class="menu-sidebar__content js-scrollbar1">
... | 35,741 |
https://github.com/ProyectoL4/Recurso/blob/master/RRHHPlanilla/RRHHPlanilla/Transacciones/MBTI/Personalidades/ISFJ.Designer.cs | Github Open Source | Open Source | MIT | 2,020 | Recurso | ProyectoL4 | C# | Code | 236 | 895 | namespace WindowsFormsApplication1
{
partial class ISFJ
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | 42,060 |
https://github.com/gilbertovera/SistemaYiga2/blob/master/resources/views/cashcategories/delete.blade.php | Github Open Source | Open Source | MIT | null | SistemaYiga2 | gilbertovera | PHP | Code | 45 | 178 | {{-- !-- Delete Warning Modal --> --}}
<form action="{{ route('cashcategories.destroy', $cashcategory->idcashcategories) }}" method="POST">
<div class="modal-body">
@csrf
@method('DELETE')
<h5 class="text-center">¿Está seguro que desea eliminar la categoría: "{{ $cashcategory->name }}" ?</h... | 55,556 |
https://github.com/ValentinChirikov/components/blob/master/microservices/src/main/java/by/ese/components/microservices/RegistrationStatus.java | Github Open Source | Open Source | MIT | null | components | ValentinChirikov | Java | Code | 15 | 44 | package by.ese.components.microservices;
/**
* Service registration status.
*/
public enum RegistrationStatus {
SUCCESS,
FAILURE;
}
| 3,875 |
https://github.com/flavioesposito/catena/blob/master/src/rina/dns/DNSHandler.java | Github Open Source | Open Source | MIT | 2,017 | catena | flavioesposito | Java | Code | 407 | 1,361 | package rina.dns;
/**
* @copyright 2012 Computer Science Department, Recursive InterNetworking Architecture (RINA) laboratory, Boston University.
* All rights reserved. Permission to use, copy, modify, and distribute this software and its documentation
* for any purpose and without fee is hereby granted, provided ... | 30,699 |
https://github.com/rtaverna/swipe-it-forward/blob/master/client/store/stations.js | Github Open Source | Open Source | MIT | null | swipe-it-forward | rtaverna | JavaScript | Code | 114 | 311 | import axios from 'axios'
const GOT_STATIONS = 'GOT_STATIONS'
const GOT_LOCATION = 'GOT_LOCATION'
const initialState = {
stations: [],
ride: {},
location: {}
}
const gotStations = stations => ({type: GOT_STATIONS, stations})
const gotLocation = location => ({type: GOT_LOCATION, location})
export const getStat... | 28,435 |
https://github.com/alexsmelyakov/vue-ads-table-tree/blob/master/tests/unit/services/Paginate.test.js | Github Open Source | Open Source | MIT | 2,018 | vue-ads-table-tree | alexsmelyakov | JavaScript | Code | 81 | 285 | import Paginate from '../../../src/services/Paginate';
import RowCollection from '../../../src/collections/RowCollection';
describe('Paginate service', () => {
let paginate;
let rowCollection;
beforeEach(() => {
paginate = new Paginate();
rowCollection = new RowCollection([
{
... | 49,586 |
https://github.com/moonad/Formality-Benchmarks/blob/master/cases/C/googol.c | Github Open Source | Open Source | MIT | null | Formality-Benchmarks | moonad | C | Code | 108 | 265 | #include <stdint.h>
#include <math.h>
#include <stdio.h>
typedef uint32_t u32;
u32 exp_mod(double a, double x, u32 mod) {
// Create an array from `0` til `N`
u32 arr[mod];
for (u32 i = 0; i < mod; i++) {
arr[i] = i;
}
// Compute `a ^ x`
double ax = pow(a, x);
// Rotate left the array `ax` times
... | 22,030 |
https://github.com/cansirin/bantjs-build/blob/master/test/globals-default/y.js | Github Open Source | Open Source | MIT | 2,015 | bantjs-build | cansirin | JavaScript | Code | 6 | 24 | var globals = require('globals');
t.equal(globals.bar, 'baz'); | 15,910 |
https://github.com/axcheron/grinder/blob/master/node/lib/metasm/metasm/gui/dasm_graph.rb | Github Open Source | Open Source | BSD-3-Clause | 2,021 | grinder | axcheron | Ruby | Code | 6,458 | 20,655 | # This file is part of Metasm, the Ruby assembly manipulation suite
# Copyright (C) 2006-2009 Yoann GUILLOT
#
# Licence is LGPL, see LICENCE in the top-level directory
module Metasm
module Gui
class Graph
# one box, has a text, an id, and a list of other boxes to/from
class Box
attr_accessor :id, :x, :y, ... | 40,396 |
https://github.com/pderakhshanfar/EMSE-BBC-experiment/blob/master/tests-without-trycatch/Cli-31/org.apache.commons.cli.HelpFormatter/BBC-F0-opt-20/29/org/apache/commons/cli/HelpFormatter_ESTest.java | Github Open Source | Open Source | CC-BY-4.0, MIT | 2,022 | EMSE-BBC-experiment | pderakhshanfar | Java | Code | 20,000 | 99,213 | /* * This file was automatically generated by EvoSuite * Sat Oct 23 11:51:04 GMT 2021 */ package org.apache.commons.cli; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.shaded.org.mockito.Mockito.*; import static org.evosuite.runtime.EvoAssertions.*; import java.io.BufferedOutputStre... | 22,150 |
https://github.com/chillpert/renderer/blob/master/docs/html/matrix__clip__space_8inl.js | Github Open Source | Open Source | Zlib | 2,020 | renderer | chillpert | JavaScript | Code | 215 | 1,892 | var matrix__clip__space_8inl =
[
[ "frustum", "matrix__clip__space_8inl.html#ga0bcd4542e0affc63a0b8c08fcb839ea9", null ],
[ "frustumLH", "matrix__clip__space_8inl.html#gae4277c37f61d81da01bc9db14ea90296", null ],
[ "frustumLH_NO", "matrix__clip__space_8inl.html#ga259520cad03b3f8bca9417920035ed01", null ],
... | 50,158 |
https://github.com/michaelniedermayr/libraries/blob/master/Hardware_timer/Hardware_timer_ardu.h | Github Open Source | Open Source | MIT | null | libraries | michaelniedermayr | C | Code | 45 | 178 | #ifndef Hardware_timer_ardu_H
#define Hardware_timer_ardu_H
#include <Arduino.h>
#include <Hardware_timer.h>
class Hardware_timer_ardu: public Hardware_timer {
public:
uint32_t getMillis() override {
return millis();
}
uint32_t getMicros() override {
return micros();
}
void de... | 11,535 |
https://github.com/Krillsson/sys-api/blob/master/server/src/main/java/com/krillsson/sysapi/docker/DockerClient.kt | Github Open Source | Open Source | Apache-2.0 | 2,018 | sys-api | Krillsson | Kotlin | Code | 479 | 1,877 | package com.krillsson.sysapi.docker
import com.fasterxml.jackson.databind.ObjectMapper
import com.github.dockerjava.api.async.ResultCallback
import com.github.dockerjava.api.model.Frame
import com.github.dockerjava.core.DefaultDockerClientConfig
import com.github.dockerjava.core.DockerClientConfig
import com.github.do... | 40,941 |
https://github.com/alchemy315/NoPFS/blob/master/torch-test/mpich-3.4.3/src/pmi/include/pmi.h | Github Open Source | Open Source | BSD-3-Clause | null | NoPFS | alchemy315 | C | Code | 1,874 | 3,794 | /*
* Copyright (C) by Argonne National Laboratory
* See COPYRIGHT in top-level directory
*/
#ifndef PMI_H_INCLUDED
#define PMI_H_INCLUDED
#ifdef USE_PMI2_API
#error This header file defines the PMI v1 API, but PMI2 was selected
#endif
/* prototypes for the PMI interface in MPICH */
#if defined(__cplusplus)
e... | 14,130 |
https://github.com/theghostyced/Ecommerce-website-with-heroku/blob/master/system/storage/modification/catalog/controller/common/header.php | Github Open Source | Open Source | MIT | 2,017 | Ecommerce-website-with-heroku | theghostyced | PHP | Code | 1,160 | 6,540 | <?php
class ControllerCommonHeader extends Controller {
public function index() {
// Analytics
$this->load->model('extension/extension');
$data['analytics'] = array();
$analytics = $this->model_extension_extension->getExtensions('analytics');
foreach ($analytics as $analytic) {
if ($this->config->get($... | 50,202 |
https://github.com/mcallisto/ScalablyTyped/blob/master/w/winrt/src/main/scala/typings/winrtLib/WindowsNs/UINs/TextNs/ParagraphStyle.scala | Github Open Source | Open Source | Apache-2.0 | 2,019 | ScalablyTyped | mcallisto | Scala | Code | 225 | 769 | package typings
package winrtLib.WindowsNs.UINs.TextNs
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
@js.native
sealed trait ParagraphStyle extends js.Object
@JSGlobal("Windows.UI.Text.ParagraphStyle")
@js.native
object ParagraphStyle extends js.Object {
@js.native
seal... | 22,036 |
https://github.com/wikimedia/wikipedia-kaios/blob/master/scripts/zip.sh | Github Open Source | Open Source | MIT | 2,023 | wikipedia-kaios | wikimedia | Shell | Code | 41 | 152 | #!/bin/bash
TARGET=$1
FILENAME=WikipediaKaiOS$TARGET
rm -rf Wikipedia
rm -rf dist
rm $FILENAME.zip
mkdir -p Wikipedia/dist
TARGET_STORE=$TARGET node scripts/manifest.js > Wikipedia/manifest.webapp
TARGET_STORE=$TARGET INSTRUMENTATION=1 MANIFEST_FILE=./Wikipedia/manifest.webapp npm run build
cp dist/main.js Wikipedi... | 25,920 |
https://github.com/AvanzaBank/Astrix/blob/master/astrix-core/src/main/java/com/avanza/astrix/core/AstrixFaultToleranceProxy.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | Astrix | AvanzaBank | Java | Code | 220 | 447 | /*
* Copyright 2014 Avanza Bank AB
*
* 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... | 17,969 |
https://github.com/vmahuli/tempest/blob/master/tools/config/generate_sample.sh | Github Open Source | Open Source | Apache-2.0 | null | tempest | vmahuli | Shell | Code | 361 | 1,204 | #!/usr/bin/env bash
print_hint() {
echo "Try \`${0##*/} --help' for more information." >&2
}
PARSED_OPTIONS=$(getopt -n "${0##*/}" -o hb:p:m:l:o: \
--long help,base-dir:,package-name:,output-dir:,module:,library: -- "$@")
if [ $? != 0 ] ; then print_hint ; exit 1 ; fi
eval set -- "$PARSED_OPTIO... | 37,973 |
https://github.com/chaos-mesh/chaos-mesh/blob/master/pkg/ctrl/client/iptables.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | chaos-mesh | chaos-mesh | Go | Code | 182 | 455 | // Copyright 2022 Chaos Mesh Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | 50,611 |
https://github.com/akashkj/commcare-hq/blob/master/custom/cowin/repeater_generators.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | commcare-hq | akashkj | Python | Code | 91 | 774 | import json
from django.core.serializers.json import DjangoJSONEncoder
from dateutil.parser import parse
from corehq.motech.repeaters.repeater_generators import (
CaseRepeaterJsonPayloadGenerator,
)
class BeneficiaryRegistrationPayloadGenerator(CaseRepeaterJsonPayloadGenerator):
def get_payload(self, repea... | 54,545 |
https://github.com/StevenLangbroek/verdaccio-gitlab/blob/master/test/functional/publish/index.js | Github Open Source | Open Source | MIT | null | verdaccio-gitlab | StevenLangbroek | JavaScript | Code | 155 | 691 | // @flow
import { CREDENTIALS, PACKAGE, WRONG_CREDENTIALS } from '../config.functional';
import { HTTP_STATUS } from "../../lib/constants";
export default (server: any, gitlab: any) => { // eslint-disable-line no-unused-vars
describe('package publish tests', () => {
beforeEach(() => {
return server.auth... | 41,847 |
https://github.com/gusdn6763/The-shelter/blob/master/Assets/Prefabs/Player.prefab | Github Open Source | Open Source | Apache-2.0 | 2,021 | The-shelter | gusdn6763 | Unity3D Asset | Code | 1,014 | 4,540 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1000318655301445193
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1000318655301445192}
m_Layer: 8
m_Name: Fire... | 25,320 |
https://github.com/caliburn1994/Spring-Data-REST-Demo/blob/master/demo-bad-1/src/main/java/icu/kyakya/rest/jpa/JPARestApplication.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Spring-Data-REST-Demo | caliburn1994 | Java | Code | 64 | 312 | package icu.kyakya.rest.jpa;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.env.YamlPropertySourceLoader;
import org.springframework.core.io.ClassPathResource;
import java.io.File... | 23,020 |
https://github.com/zeroae/zeroae-rocksdb/blob/master/zeroae/rocksdb/c/c.i | Github Open Source | Open Source | Apache-2.0 | 2,020 | zeroae-rocksdb | zeroae | null | Spoken | 432 | 1,563 | %{
#define SWIG_FILE_WITH_INIT
#include <rocksdb/c.h>
// TODO: This makes the interface non-reentrant
char* ERRMSG = NULL;
%}
%include "typemaps.i"
%include "stdint.i"
%include "cstring.i"
%include "exception.i"
/*
* Convert errptr to an exception
*/
%typemap(in,noblock=1,numinputs=0) char** errptr {
$1 = &ERRMS... | 1,976 |
https://github.com/Chexet48/money-mod-1.12.2/blob/master/src/main/java/sk/dipo/money/register/OreDicts.java | Github Open Source | Open Source | MIT | null | money-mod-1.12.2 | Chexet48 | Java | Code | 47 | 383 | package sk.dipo.money.register;
import net.minecraftforge.oredict.OreDictionary;
import sk.dipo.money.item.MoneyItems;
public class OreDicts {
public static void registerOreDicts() {
OreDictionary.registerOre("moneyDipo", MoneyItems.cent1);
OreDictionary.registerOre("moneyDipo", MoneyItems.cent2);
OreDictiona... | 56,961 |
https://github.com/SkillsFundingAgency/das-recruit/blob/master/src/Provider/Provider.Web/Exceptions/MissingPermissionsException.cs | Github Open Source | Open Source | MIT | 2,023 | das-recruit | SkillsFundingAgency | C# | Code | 20 | 80 | using Esfa.Recruit.Vacancies.Client.Domain.Exceptions;
namespace Esfa.Recruit.Provider.Web.Exceptions
{
public class MissingPermissionsException : RecruitException
{
public MissingPermissionsException(string message) : base(message)
{
}
}
} | 53,307 |
https://github.com/618lf/swak/blob/master/swak-wechat/src/main/java/com/swak/wechat/message/MenuEventMsgPicWeuxin.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | swak | 618lf | Java | Code | 68 | 232 | package com.swak.wechat.message;
import javax.xml.bind.annotation.XmlElement;
import org.w3c.dom.Element;
import com.swak.utils.XmlParse;
/**
* 弹出微信相册发图器的事件推送 pic_photo_or_album 或 pic_weixin 或 pic_sysphoto
*
* @author lifeng
*/
public class MenuEventMsgPicWeuxin extends MenuEventMsg {
private static final ... | 8,608 |
https://github.com/SmileyAG/bspsrc/blob/master/src/main/java/info/ata4/bsplib/struct/DOverlayFade.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | bspsrc | SmileyAG | Java | Code | 121 | 306 | /*
** 2011 September 25
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
*/
package info.a... | 5,514 |
https://github.com/taamneh/SubjectBook_Test/blob/master/app/controllers/ScanVideosForStudy.scala | Github Open Source | Open Source | Apache-2.0 | null | SubjectBook_Test | taamneh | Scala | Code | 866 | 2,917 | package controllers
import java.io.PrintWriter
import java.util.UUID
import akka.actor.{Actor, ActorRef, ActorSystem, Kill, PoisonPill, Props}
import akka.routing.RoundRobinPool
import anorm._
import com.google.api.services.drive.model.{File, Permission}
import play.api.db.DB
import play.api.Play.current
import com.g... | 38,949 |
https://github.com/schubergphilis/supermarket/blob/master/db/migrate/20140630175717_rename_signed_cla_to_authorized_to_contribute.rb | Github Open Source | Open Source | Apache-2.0 | 2,019 | supermarket | schubergphilis | Ruby | Code | 12 | 55 | class RenameSignedClaToAuthorizedToContribute < ActiveRecord::Migration
def change
rename_column :curry_commit_authors, :signed_cla, :authorized_to_contribute
end
end
| 26,516 |
https://github.com/sr95-dnj/icumonitor-assignment/blob/master/src/app/list-page/patient-state-history-list-page/patient-state-history-list-page.component.ts | Github Open Source | Open Source | MIT | null | icumonitor-assignment | sr95-dnj | TypeScript | Code | 100 | 414 | import {Component, OnInit, ViewChild} from '@angular/core';
import {MatPaginator} from '@angular/material/paginator';
import {MatSort} from '@angular/material/sort';
import {MatTable, MatTableDataSource} from '@angular/material/table';
import {ActivePatient} from '../../model/active-patient.model';
import {PatientServi... | 5,931 |
https://github.com/EvaBr/LVRCOQ/blob/master/InsertionSort.v | Github Open Source | Open Source | BSD-2-Clause | 2,014 | LVRCOQ | EvaBr | null | Spoken | 696 | 1,626 | Require Import List.
Require Import Bool.
Require Import ZArith.
Local Open Scope list_scope.
Local Open Scope Z_scope.
(* Lets get this partey started! *)
Fixpoint urejen (l : list Z) :=
match l with
| nil => True
| _ :: nil => True
| x :: ((y :: _) as l') => x <= y /\ urejen l'
end.
Lemma urejen_t... | 40,765 |
https://github.com/bartoval/skupper-console/blob/master/src/core/utils/formatTime.ts | Github Open Source | Open Source | Apache-2.0 | null | skupper-console | bartoval | TypeScript | Code | 121 | 323 | /**
* Converts input time in the most appropriate format
*/
interface FormatTimeOptions {
decimals?: number;
startSize?: 'µs' | 'ms' | 'sec';
}
export function formatTime(time: number, options?: FormatTimeOptions) {
const startSize = options?.startSize || 'µs';
const decimals = options?.decimals ||... | 18,929 |
https://github.com/ivanbiljan/darwin/blob/master/src/Darwin/Evaluator.cs | Github Open Source | Open Source | MIT | null | darwin | ivanbiljan | C# | Code | 143 | 465 | using System;
using Darwin.Syntax;
using Darwin.Syntax.Expressions;
namespace Darwin
{
internal sealed class Evaluator
{
private static object? EvaluateLiteralExpression(LiteralExpression expression) => expression.SyntaxToken.Value;
public object? Evaluate(SyntaxNode expression)
{
... | 55,653 |
https://github.com/antoine-dbr/pixviewer-android/blob/master/app/src/main/java/dbr/antoine/pixviewer/reducers/search/SearchState.java | Github Open Source | Open Source | Apache-2.0 | null | pixviewer-android | antoine-dbr | Java | Code | 84 | 252 | package dbr.antoine.pixviewer.reducers.search;
import android.support.annotation.Nullable;
import com.google.auto.value.AutoValue;
import java.util.List;
import dbr.antoine.pixviewer.core.models.PicturePost;
/**
* Created by antoine on 7/7/17.
*/
@AutoValue
public abstract class SearchState {
public abstra... | 8,812 |
https://github.com/PabloVallecillos/CongrePHP/blob/master/resources/views/emails/reset.blade.php | Github Open Source | Open Source | MIT | null | CongrePHP | PabloVallecillos | PHP | Code | 6 | 34 | <h1>
Hola {{$user->name}}
<a href="{{$url}}">reset</a>
</h1> | 41,740 |
https://github.com/chubbysingh/interview/blob/master/src/com/interview/number/PermutationBiggerThanNumber.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | interview | chubbysingh | Java | Code | 282 | 652 | package com.interview.number;
import com.interview.sort.QuickSort;
/**
* Date 02/17/2016
* @author Tushar Roy
* Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.
* If such arrangement is not possible, it must rearrange it as the lowest possible or... | 48,023 |
https://github.com/oracleloyall/CommonLib/blob/master/udpclient/udpserver/epoll/time_wheel.c | Github Open Source | Open Source | Apache-2.0 | 2,019 | CommonLib | oracleloyall | C | Code | 558 | 1,769 | /*
*
*/
#include "time_wheel.h"
#include "log.h"
#include <stdlib.h>
#include <string.h>
#include <assert.h>
struct wheel_bucket
{
onexpire_f callback;
void *userdata;
unsigned index;
unsigned steps;
struct wheel_bucket *prev;
struct wheel_bucket *next;
};
struct time_wheel
{
unsigned ... | 25,004 |
https://github.com/quoclm/aos-ansible/blob/master/library/aos_device_approve.py | Github Open Source | Open Source | Apache-2.0 | 2,016 | aos-ansible | quoclm | Python | Code | 235 | 747 | #!/usr/bin/env python
# Copyright 2014-present, Apstra, Inc. All rights reserved.
#
# This source code is licensed under End User License Agreement found in the
# LICENSE file at http://www.apstra.com/community/eula
DOCUMENTATION = '''
---
module: aos_device_approve
author: jeremy@apstra.com (@jeremyschulman)
version_... | 20,881 |
https://github.com/patcarrasco/js-object-oriented-class-relations-lab-dumbo-web-111918/blob/master/index.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,019 | js-object-oriented-class-relations-lab-dumbo-web-111918 | patcarrasco | JavaScript | Code | 165 | 484 | // start ID counters
let driverId = 0
let passengerId = 0
let tripId = 0
const store = {drivers: [], passengers:[], trips:[]}
// create Driver class
class Driver {
constructor(name) {
this.name = name
this.id = driverId++
store.drivers.push(this)
}
trips() {
return store.trips.filter(t => t.d... | 3,049 |
https://github.com/chenjidong/b2c-mall/blob/master/admin-vue/src/views/account/list.vue | Github Open Source | Open Source | Apache-2.0 | 2,020 | b2c-mall | chenjidong | Vue | Code | 805 | 3,466 | <template>
<div class="app-container">
<!-- 查询和其他操作 -->
<div class="filter-container">
<el-select
v-model="listQuery.status"
style="width: 200px"
class="filter-item"
placeholder="请选择用户状态"
>
<el-option v-for="(key,index) in statusDic" :key="index" :label="key... | 40,484 |
https://github.com/prisnormando/ember-osf-web/blob/master/lib/registries/addon/components/registries-registration-type-facet/template.hbs | Github Open Source | Open Source | Apache-2.0 | 2,019 | ember-osf-web | prisnormando | null | Spoken | 43 | 251 | {{#registries-search-facet-container title=title}}
<div local-class="{{if onlyOSF 'RegistrationType' 'RegistrationType--Disabled'}}">
{{#unless onlyOSF}}
<i local-class="RegistrationType__Warning">
{{t 'registries.facets.registration_type.only_available_with_osf'}}
</... | 35,251 |
https://github.com/farsightsec/pynmsg/blob/master/examples/nmsg_file_dump.py | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | null | pynmsg | farsightsec | Python | Code | 203 | 603 | #!/usr/bin/env python
# Copyright (c) 2009-2014, 2018-2019 by Farsight Security, Inc.
#
# 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
#
# Un... | 41,228 |
https://github.com/X-Sharp/XSharpPublic/blob/master/src/CompilerTests/Applications/C086/Prg/C086.prg | Github Open Source | Open Source | Apache-2.0 | 2,023 | XSharpPublic | X-Sharp | null | Spoken | 14 | 28 | // 86. compiler crash with #pragma options
#pragma options ("lb",on)
FUNCTION Start() AS VOID
| 14,737 |
https://github.com/youluna/react-materials/blob/master/scaffolds/ice-pro/src/pages/Dashboard/components/TabChart/SeriesLine.jsx | Github Open Source | Open Source | MIT | 2,019 | react-materials | youluna | null | Spoken | 228 | 679 | import React from 'react';
import { Chart, Axis, Geom, Tooltip } from 'bizcharts';
import { DataSet } from '@antv/data-set';
export default function SeriesLine() {
// 参考:https://alibaba.github.io/BizCharts/
// 数据源
const data = [
{ month: 'Jan', Tokyo: 7.0, London: 20 },
{ month: 'Feb', Tokyo: 6.9, London... | 1,518 |
https://github.com/playgamelxh/lxh/blob/master/QB/QBao/hongbao.php | Github Open Source | Open Source | BSD-3-Clause | 2,018 | lxh | playgamelxh | PHP | Code | 301 | 1,359 | <?php
include 'adbconsole.php';
include 'func.php';
$adbinfo = array(
'host' => '192.168.3.9',
'port' => '5555'
);
$yaoqingCode = 'BCF4';
$adb = new adbconsole($adbinfo);
$filePath = "./qbao-1-1.txt"; //
$startLine = 856; //起始处理行数
$endLine = 10000; //截止处理行数
$handle = @fopen($filePath, "r");
... | 50,840 |
https://github.com/nrlozdemir/react-trello/blob/master/tests/__snapshots__/Storyshots.test.js.snap | Github Open Source | Open Source | MIT | 2,021 | react-trello | nrlozdemir | null | Spoken | 20,000 | 59,230 | // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Storyshots Advanced Features Async Load data 1`] = ` Array [ .c0 { background-color: #3179ba; overflow-y: hidden; padding: 5px; color: #393939; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex-direction: row; -ms-flex-dire... | 27,295 |
https://github.com/adisreyaj/compito/blob/master/apps/api/src/app/boards/boards.module.ts | Github Open Source | Open Source | MIT | 2,022 | compito | adisreyaj | TypeScript | Code | 43 | 119 | import { Module } from '@nestjs/common';
import { CompitoLoggerModule } from '../core/utils/logger.service';
import { PrismaModule } from '../prisma.module';
import { BoardsController } from './boards.controller';
import { BoardsService } from './boards.service';
@Module({
controllers: [BoardsController],
provider... | 10,870 |
https://github.com/dsherret/swc/blob/master/tests/tsc-references/es6/destructuring/destructuringTypeAssertionsES5_4/input.ts/es2015.1.normal/output.js | Github Open Source | Open Source | MIT, Apache-2.0 | 2,021 | swc | dsherret | JavaScript | Code | 8 | 17 | //@target: ES5
var { x } = foo();
| 3,377 |
https://github.com/lor6/tutorials/blob/master/spring-boot-rest/src/main/java/com/baeldung/web/controller/RootController.java | Github Open Source | Open Source | MIT | 2,023 | tutorials | lor6 | Java | Code | 65 | 293 | package com.baeldung.web.controller;
import java.net.URI;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.sp... | 48,503 |
https://github.com/OSGeo/homebrew-osgeo4mac/blob/master/travis/before_deploy.sh | Github Open Source | Open Source | BSD-3-Clause | 2,021 | homebrew-osgeo4mac | OSGeo | Shell | Code | 554 | 1,429 | #!/usr/bin/env bash
###########################################################################
# homebrew-osgeo4mac travis ci - before_deploy.sh
# ---------------------
# Date : Dec 2016
# Copyright : (C) 2016 by Boundless Spatial, Inc.
# Author : Larry Shaffer
#... | 49,207 |
https://github.com/klesteb/XAS-Darkpan/blob/master/trunk/test/test-parse-authors.pl | Github Open Source | Open Source | Artistic-2.0 | null | XAS-Darkpan | klesteb | Perl | Code | 33 | 159 | use lib '../lib';
use lib '/home/kevin/dev/XAS/trunk/lib';
use strict;
use warnings;
use XAS::Darkpan::Parse::Authors;
my $authors = XAS::Darkpan::Parse::Authors->new();
$authors->load();
$authors->parse(sub {
my $author = shift;
printf("name: %s\n", $author->{'name'});
printf("cpanid: %s\n", $author... | 44,193 |
https://github.com/sjmsjmdsg/grafinsight/blob/master/pkg/services/sqlstore/migrations/short_url_mig.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | grafinsight | sjmsjmdsg | Go | Code | 87 | 369 | package migrations
import (
. "github.com/openinsight-project/grafinsight/pkg/services/sqlstore/migrator"
)
func addShortURLMigrations(mg *Migrator) {
shortURLV1 := Table{
Name: "short_url",
Columns: []*Column{
{Name: "id", Type: DB_BigInt, Nullable: false, IsPrimaryKey: true, IsAutoIncrement: true},
{Nam... | 52,594 |
https://github.com/fourndo/ScriptsBank/blob/master/FUNC_LIB/Image_recognition/AutomGranuRecog.m | Github Open Source | Open Source | BSD-2-Clause | 2,019 | ScriptsBank | fourndo | MATLAB | Code | 835 | 4,049 | % Image recognition test
clear all
close all
photo = imread('C:\Users\dominiquef.MIRAGEOSCIENCE\Dropbox\Master\FUNC_LIB\Image_recognition\gravel.jpg');
dphoto = double(photo);
% photo_bw = ind2grey(photo);
set(figure, 'Position', [10 250 1000 500]);
imagesc(photo)
axis equal
nX = size(photo,2);
nY = size(photo,1)... | 4,804 |
https://github.com/mjacobse/spral/blob/master/include/spral_random.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | spral | mjacobse | C | Code | 81 | 234 | #ifndef SPRAL_RANDOM_H
#define SPRAL_RANDOM_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
#define SPRAL_RANDOM_INITIAL_SEED 486502
/* Generate a sample from Unif(-1,1) or Unif(0,1) */
double spral_random_real(int *state, bool positive);
/* Generate a sample from discrete Unif(1,...,n) */
int spral_r... | 28,415 |
https://github.com/bnzone/react-use-timer-hook/blob/master/example/src/App.js | Github Open Source | Open Source | MIT | null | react-use-timer-hook | bnzone | JavaScript | Code | 49 | 114 | import React, { useState } from "react";
import { useInterval } from "react-use-interval-hook";
const ExampleCounter = () => {
const [count, setCount] = useState(0);
useInterval(() => {
setCount(count + 1);
}, 1000);
return <div>Count is: {count}</div>;
};
const App = () => {
return ExampleCounter;
};... | 18,432 |
https://github.com/IST402/pj2temp/blob/master/.history/src/app_20211101223418.js | Github Open Source | Open Source | MIT | null | pj2temp | IST402 | JavaScript | Code | 38 | 131 | import {DldBtn} from '@ist402/dld-btn-1';
import { LearningCard } from './LearningCard.js';
customElements.define('dld-btn-1', DldBtn );
customElements.define(LearningCard.tag, LearningCard);
function toggle() {
var x = document.getElementById("mathDIV");
if (x.style.display === "none") {
x.style.displ... | 23,452 |
https://github.com/freestyle076/MyOpenMS/blob/master/src/openms/include/OpenMS/SIMULATION/RTSimulation.h | Github Open Source | Open Source | Zlib, Apache-2.0 | 2,018 | MyOpenMS | freestyle076 | C | Code | 649 | 1,539 | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... | 38,118 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.