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/BlockerSL/saz/blob/master/_redirects | Github Open Source | Open Source | MIT | 2,021 | saz | BlockerSL | null | Spoken | 3 | 12 | */ /app/public/index.html 200
| 38,637 |
https://github.com/shijun18/Spine_Seg/blob/master/converter/prepare_data.py | Github Open Source | Open Source | MIT | 2,021 | Spine_Seg | shijun18 | Python | Code | 238 | 1,010 | import sys
sys.path.append('..')
import os
import numpy as np
from tqdm import tqdm
import time
import shutil
import h5py
from skimage.transform import resize
import json
from converter.utils import hdf5_reader
def store_images_labels(save_path, patient_id, images, labels, mode):
if mode == '2d':
for i ... | 10,385 |
https://github.com/rbalamohan/aws-sdk-java/blob/master/aws-java-sdk-lexmodelbuilding/src/main/java/com/amazonaws/services/lexmodelbuilding/model/ConversationLogsRequest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | aws-sdk-java | rbalamohan | Java | Code | 1,237 | 2,892 | /*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | 9,404 |
https://github.com/Exceptionsk/Talent-Management/blob/master/app/Repositories/Result/ResultRepoServiceProvider.php | Github Open Source | Open Source | MIT | null | Talent-Management | Exceptionsk | PHP | Code | 29 | 131 | <?php
namespace App\Repositories\Result;
use Illuminate\Support\ServiceProvider;
use App\Repositories\Result\ResultRepositoryInterface;
use App\Repositories\Result\ResultRepository;
class ResultRepoServiceProvider extends ServiceProvider
{
public function boot()
{
// code...
}
public function register(... | 47,894 |
https://github.com/nciefeiniu/tvsearch/blob/master/application/models/Search_model.php | Github Open Source | Open Source | Apache-2.0 | null | tvsearch | nciefeiniu | PHP | Code | 97 | 402 | <?php
class Search_model extends CI_Model{
public function __construct()
{
try{
// require_once APPPATH.'/php/lib/XS.php';
require_once '/usr/local/xunsearch/sdk/php/lib/XS.php';
}catch(Exception $e){
echo '出错了:'.$e->getMessage();
}
}
public ... | 23,504 |
https://github.com/Sraavan/ChatRoom/blob/master/public/src/app/Models/Enums/ApireturnEnum.ts | Github Open Source | Open Source | MIT | null | ChatRoom | Sraavan | TypeScript | Code | 14 | 33 | export enum ApiReturnEnum {
Successful = 0,
SuccessfulNoContent = 1,
ErrorOccurred = -1
} | 34,924 |
https://github.com/dupontz/libcloud/blob/master/docs/examples/compute/cloudstack/ssh_keypairs_management_exoscale.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | libcloud | dupontz | Python | Code | 108 | 325 | import os
from pprint import pprint
from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
cls = get_driver(Provider.EXOSCALE)
driver = cls('api key', 'api secret key')
# Create a new key pair. Most providers will return generated private key in
# the response which can be acce... | 20,578 |
https://github.com/eYSIP-2016/hello_intel_galileo/blob/master/turn_servo_with_pot.py | Github Open Source | Open Source | BSD-2-Clause | 2,014 | hello_intel_galileo | eYSIP-2016 | Python | Code | 301 | 822 | ################################################################################
#
# Copyright 2014, Jack Pien
# All rights reserved.
# http://www.jackpien.com
#
# Author: Jack Pien <jack.pien@af386.com>
#
# See license in LICENSE.txt file.
#
# This sample script turns a servo via PWM via pin 9
# depending on a voltage... | 26,207 |
https://github.com/JamesSkemp/phaser3-rex-notes/blob/master/examples/board-pathfinder/chinese-checkers.js | Github Open Source | Open Source | MIT | null | phaser3-rex-notes | JamesSkemp | JavaScript | Code | 560 | 1,822 | import phaser from 'phaser/src/phaser.js';
import BoardPlugin from '../../plugins/board-plugin.js';
class Demo extends Phaser.Scene {
constructor() {
super({
key: 'examples'
})
}
preload() { }
create() {
// Create board
var config = {
grid: this... | 4,214 |
https://github.com/Najaf/moo.rb/blob/master/lib/moo/core_ext/string.rb | Github Open Source | Open Source | MIT | 2,016 | moo.rb | Najaf | Ruby | Code | 14 | 39 | class String
def uncapitalize
return '' if empty?
self[0, 1].downcase + self[1..-1]
end
end
| 31,183 |
https://github.com/S-YOU/aqcc/blob/master/Makefile | Github Open Source | Open Source | MIT | null | aqcc | S-YOU | Makefile | Code | 181 | 827 | TARGET=aqcc
TARGET_SELF=aqcc_self
TARGET_SELFSELF=aqcc_selfself
SRC=main.c vector.c utility.c map.c lex.c parse.c gen.c type.c env.c ast.c analyze.c string_builder.c cpp.c token.c optimize.c
SELF_OBJS=$(SRC:.c=.self.o)
SELFSELF_OBJS=$(SRC:.c=.selfself.o)
SELF_ASSEMBLES=$(SRC:.c=.self.s)
SELFSELF_ASSEMBLES=$(SRC:.c=.sel... | 20,894 |
https://github.com/juniorsanca/Ose-resto/blob/master/resources/views/emails/reservation.blade.php | Github Open Source | Open Source | MIT | 2,021 | Ose-resto | juniorsanca | Blade | Code | 66 | 288 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<p>Reservation confirmé 🤝 </p>
<p>
Cher(e) client(e) nous vous confi... | 21,696 |
https://github.com/Andreas237/AndroidPolicyAutomation/blob/master/ExtractedJars/Ibotta_com.ibotta.android/smali_classes3/com/ibotta/android/mvp/ui/activity/personalize/PersonalStoresTracking.smali | Github Open Source | Open Source | MIT | 2,019 | AndroidPolicyAutomation | Andreas237 | Smali | Code | 464 | 3,623 | .class public Lcom/ibotta/android/mvp/ui/activity/personalize/PersonalStoresTracking;
.super Ljava/lang/Object;
.source "PersonalStoresTracking.java"
# interfaces
.implements Lcom/ibotta/android/tracking/scrolltracking/VisibilityTrackingListener;
# instance fields
.field private final adapter:Lcom/ibotta/android/mvp... | 51,390 |
https://github.com/wilspi/realm/blob/master/frontend/Realm.elm | Github Open Source | Open Source | MIT | 2,020 | realm | wilspi | null | Spoken | 2,800 | 6,109 | module Realm exposing (App, In, Msg(..), Notch(..), TestFlags, TestResult(..), app, cmdMap, controller, document, getHash, init0, isPass, message, pushHash, result, sub0, submit, test, test0, testResult, tuple, tupleE, update0)
import Browser as B
import Browser.Events as BE
import Browser.Navigation as BN
import Dict... | 46,305 |
https://github.com/GuaxinimRadical/SQLClient/blob/master/client/script.js | Github Open Source | Open Source | MIT | null | SQLClient | GuaxinimRadical | JavaScript | Code | 116 | 452 | const text = document.querySelector('[name=script-area]')
const output = document.querySelector('.output')
const errorArea = document.querySelector('.error-area ')
const errorsMessages = document.querySelector('.error-area > .errors')
const buttonCloseErrorLog = document.querySelector('.error-area svg')
toggleDisplay... | 5,369 |
https://github.com/gitpan/Data-Sah/blob/master/t/perl-type-float.t | Github Open Source | Open Source | Artistic-1.0 | null | Data-Sah | gitpan | Perl | Code | 125 | 438 | #!perl
use 5.010;
use strict;
use warnings;
use Test::Data::Sah qw(test_sah_cases);
use Test::More 0.96;
my @tests = (
{schema=>[float => is_nan => 1], input=>1, valid=>0},
{schema=>[float => is_nan => 1], input=>"Inf", valid=>0},
{schema=>[float => is_nan => 1], input=>"NaN", valid=>1},
{schema=>[f... | 51,227 |
https://github.com/noant/Lazurite/blob/master/Lazurite/LazuriteMobile.App/LazuriteMobile.App.Android/SingletonPreparator.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | Lazurite | noant | C# | Code | 94 | 511 | using Lazurite.Data;
using Lazurite.IOC;
using Lazurite.Logging;
using Lazurite.MainDomain;
using LazuriteMobile.MainDomain;
namespace LazuriteMobile.App.Droid
{
public static class SingletonPreparator
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2140:TransparentMethodsM... | 55,452 |
https://github.com/PutuMiyantara/SIKepegawaian-with-CodeIgniter-4-and-AngularJS/blob/master/public/assets/angular/mutasi.js | Github Open Source | Open Source | MIT | null | SIKepegawaian-with-CodeIgniter-4-and-AngularJS | PutuMiyantara | JavaScript | Code | 2,123 | 8,451 | sikepegawaian.controller("mutasi", function ($window, $scope, $http, $timeout) {
$scope.getSKMutasi = function () {
$http.get("/mutasi/getSKMutasi").then(function (data) {
$scope.skmutasi = data.data;
console.log(data);
});
};
$scope.toMutasi = function (id) {
$window.location.href = "/mu... | 19,218 |
https://github.com/aidanblack/Fitbit-Template/blob/master/app/clock.ts | Github Open Source | Open Source | MIT | null | Fitbit-Template | aidanblack | TypeScript | Code | 205 | 588 | import clock from "clock";
class Clock {
dateBox;
hourHand;
minuteHand;
secondsHand;
updateDisplay = function() {};
updateBattery = function() {};
updateGoals = function() {};
weather;
constructor(dateBox, hourHand, minuteHand, secondsHand) {
try {
this.dateBox... | 31,578 |
https://github.com/bitcraze/libdw1000/blob/master/test/TestLibdw1000.c | Github Open Source | Open Source | Apache-2.0 | 2,022 | libdw1000 | bitcraze | C | Code | 919 | 3,932 | #include <string.h>
#include "unity.h"
#include "libdw1000.h"
#include "mock_libdw1000Spi.h"
#include "mock_dwTestOps.h"
// Set up opertions with mocks
static dwOps_t ops = {
.spiRead = spiRead,
.spiWrite = spiWrite,
.spiSetSpeed = spiSetSpeed,
.delayms = delayms,
.reset = reset
};
static dwDevice_t dev = ... | 33,049 |
https://github.com/CBIIT/NBIA-TCIA/blob/master/software/nbia-search/src/app/common/pipes/shorten-right.pipe.ts | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-3-Clause | 2,023 | NBIA-TCIA | CBIIT | TypeScript | Code | 54 | 113 | import { Pipe, PipeTransform } from '@angular/core';
@Pipe( {
name: 'shortenRight'
} )
/**
* Returns <len> number of left most characters.
*
* @param len Optional length, default is 8.
*/
export class ShortenRightPipe implements PipeTransform{
transform( value: string, len = 8 ): any {
return val... | 6,663 |
https://github.com/strogo/pyobjc/blob/master/pyobjc-framework-GameController/PyObjCTest/test_gcinputnames.py | Github Open Source | Open Source | MIT | 2,021 | pyobjc | strogo | Python | Code | 63 | 565 | from PyObjCTools.TestSupport import TestCase, min_os_level
import GameController
class TestGCInputNames(TestCase):
@min_os_level("11.0")
def test_constants11_0(self):
self.assertIsInstance(GameController.GCInputButtonA, str)
self.assertIsInstance(GameController.GCInputButtonB, str)
sel... | 19,774 |
https://github.com/Sp1kesy111/tbtc/blob/master/solidity/test/StateTests.js | Github Open Source | Open Source | MIT | 2,021 | tbtc | Sp1kesy111 | JavaScript | Code | 256 | 1,015 | const states = require("./states/deposit.js")
const { deployAndLinkAll } = require("./helpers/fullDeployer.js")
const { runStatePath } = require("./states/run.js")
describe("tBTC states", () => {
describe("when running a redemption", () => {
runStatePath(
states,
deployAndLinkAll(),
"start",
... | 24,881 |
https://github.com/xpnteam/xpnet/blob/master/XPNetPluginTestHost/Makefile | Github Open Source | Open Source | MIT | 2,022 | xpnet | xpnteam | Makefile | Code | 456 | 1,540 |
# TODO: As soon as we can use C++17 std::filesystem on macOS with the compilers that come with Xcode,
# remove the boost dependency here. I didn't want to depend on boost for this, and we only need it
# for its filesystem implementation.
#
BOOSTLIB =/usr/local/opt/boost/lib
UNAME :=$(shell uname)
CXX ... | 43,541 |
https://github.com/HackBeanpot/website-2022/blob/master/cypress/integration/sample_spec.js | Github Open Source | Open Source | MIT | null | website-2022 | HackBeanpot | JavaScript | Code | 50 | 112 | describe('Integration test with visual testing', function() {
it('Loads the main page', function() {
cy.visit('/')
// load all the images by scrolling to the bottom of the page
cy.get('.footer').scrollIntoView({ duration: 5000 })
// extra time, just to be sure
cy.wait(5000);
// Take a snapsh... | 13,632 |
https://github.com/dma-ais/AisWeb/blob/master/src/main/webapp/dashboard/app/bower_components/openlayers/examples/bind-input.js | Github Open Source | Open Source | MIT, Apache-2.0 | 2,019 | AisWeb | dma-ais | JavaScript | Code | 151 | 591 | function checkWebGL(evt) {
document.getElementById('no-webgl').style.display =
ol.has.WEBGL ? 'none' : '';
document.getElementById('has-webgl').style.display =
ol.has.WEBGL && !evt.glContext ? '' : 'none';
document.getElementById('webgl').style.display =
evt.glContext ? '' : 'none';
}
var layer... | 39,949 |
https://github.com/starkandwayne/buildkite-agent-boshrelease/blob/master/tests/scripts/combine-pipelines.sh | Github Open Source | Open Source | Apache-2.0 | 2,020 | buildkite-agent-boshrelease | starkandwayne | Shell | Code | 24 | 74 | #!/bin/bash
TESTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
cd $TESTS_DIR
find pipelines -maxdepth 1 -name '*.yml' | xargs -L1 buildkite-agent pipeline upload | 52,146 |
https://github.com/codemonstur/letsencrypt/blob/master/src/test/java/tests/TestListTxtRecords.java | Github Open Source | Open Source | MIT | null | letsencrypt | codemonstur | Java | Code | 56 | 204 | package tests;
import org.xbill.DNS.TextParseException;
import java.net.UnknownHostException;
import static letsencrypt.core.GoDaddy.listTxtRecords;
import static letsencrypt.core.GoDaddy.nameservers;
import static tests.TestShortName.toAcmeChallengeName;
import static tests.util.Secrets.secret;
public class TestLi... | 44,620 |
https://github.com/MrHikari/uiw/blob/master/src/tree-checked/style/index.less | Github Open Source | Open Source | MIT | 2,020 | uiw | MrHikari | Less | Code | 10 | 50 | @tree-checked-prefix: ~"w-treechecked";
.@{tree-checked-prefix} {
&-checked {
margin-right: 5px;
}
}
| 40,810 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/美团-吃喝玩乐,尽在美团-9.0.0(越狱应用)_headers/HTLPrepayPopoverCell.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 92 | 325 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <UIKit/UIControl.h>
@class UILabel;
@interface HTLPrepayPopoverCell : UIControl
{
UILabel *_contentLabel;
UILabel *_t... | 6,917 |
https://github.com/tencentmusic/fab/blob/master/myapp/models/__init__.py | Github Open Source | Open Source | MIT | 2,022 | fab | tencentmusic | Python | Code | 14 | 24 |
from . import log
from . import model1
from . import user_attributes # noqa
| 19,505 |
https://github.com/ZeroTrezeInnovationSpace/seeduc/blob/master/app/Event.php | Github Open Source | Open Source | MIT | null | seeduc | ZeroTrezeInnovationSpace | PHP | Code | 36 | 134 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Event extends Model
{
public function user(){
return $this->belongsTo('App\User');
}
public function enventType(){
return $this->belongsTo('App\User');
}
public function schedules(){
return $this->hasMany('App\Sch... | 25,089 |
https://github.com/quanhua92/AudioVideoRecorder/blob/master/buffertobuffermediacodec/src/main/java/com/quan404/buffertobuffermediacodec/MainActivity.java | Github Open Source | Open Source | MIT | 2,021 | AudioVideoRecorder | quanhua92 | Java | Code | 2,615 | 6,991 | package com.quan404.buffertobuffermediacodec;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.MediaCodec;
import android.media.MediaCodecInfo;
import android.media.MediaCodecList;
import android.media.MediaFormat;
... | 8,828 |
https://github.com/milismsft/azure-sdk-for-java/blob/master/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneVersion.java | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla, LicenseRef-scancode-warranty-disclaimer, BSD-3-Clause, CC0-1.0, Apache-2.0, LicenseRef-scancode-public-domain, BSD-2-Clause, LicenseRef-scancode-unknown-license-reference, LGPL-2.1-or-later | 2,022 | azure-sdk-for-java | milismsft | Java | Code | 226 | 532 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.mobilenetwork.models;
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.mobilenetwork.fluent.models.... | 18,715 |
https://github.com/ag-sbogd/mono-changelog/blob/master/games/baccarat/src/definitions/analytics.ts | Github Open Source | Open Source | MIT | null | mono-changelog | ag-sbogd | TypeScript | Code | 158 | 366 | export enum EGAEvent {
sideBetsPanel = 'Side Bets Panel',
footerBalance = 'Footer - Balance',
footerBet = 'Footer - Bet',
betType = 'Bet Type -',
helpAndRules = 'Help and Rules',
mediaPanel = 'Media Panel',
mediaPanelRoads = 'Media Panel - Roads',
mediaPanelVideoStream = 'Media Panel - Video Stream',
... | 22,649 |
https://github.com/sho25/cxf/blob/master/integration/tracing/tracing-opentracing/src/test/java/org/apache/cxf/tracing/opentracing/OpenTracingContextTest.java | Github Open Source | Open Source | Apache-2.0 | null | cxf | sho25 | Java | Code | 304 | 968 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * 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 ... | 40,052 |
https://github.com/DheCastro/fullcontact-java-client/blob/master/java-common-artifacts/src/main/java/com/fullcontact/apilib/auth/StaticApiKeyCredentialProvider.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | fullcontact-java-client | DheCastro | Java | Code | 78 | 192 | package com.fullcontact.apilib.auth;
import com.fullcontact.apilib.FullContactException;
import lombok.Getter;
/** Static way of providing authentication */
@Getter
public class StaticApiKeyCredentialProvider implements CredentialsProvider {
private final String apiKey;
/**
* Hardcoded key can be passed in th... | 30,307 |
https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/netapp/arm-netapp/src/models/mappers.ts | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, MIT | 2,023 | azure-sdk-for-js | Azure | TypeScript | Code | 8,612 | 31,889 | /*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import * as coreClient from "@azure/core-client";
export const OperationListResult: core... | 50,077 |
https://github.com/hdeiner/DotNetTesting_Unit_Integration_SpecFlow_with_coverage/blob/master/HotelBooking_Clean/HotelBookingStartupProject/Controllers/CustomersController.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-free-unknown | 2,022 | DotNetTesting_Unit_Integration_SpecFlow_with_coverage | hdeiner | C# | Code | 273 | 890 | using System.Linq;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using HotelBooking.Models;
namespace HotelBooking.Controllers
{
public class CustomersController : Controller
{
private IRepository<Customer> repository;
public CustomersController(IRepository<Customer> re... | 55,158 |
https://github.com/fortytw0/vizwiz/blob/master/src/models/image_models/CNN.py | Github Open Source | Open Source | MIT | null | vizwiz | fortytw0 | Python | Code | 88 | 405 | from tensorflow.keras import layers, Input, Model
from tensorflow.keras import losses, optimizers
class CNN(object) :
def __init__(self, image_shape, mode=None) :
self.image_shape = image_shape
self.mode = mode
self.output_dim = 512
self.input = Input(shape=self.image_shape)
... | 11,018 |
https://github.com/ww20081120/framework/blob/master/framework-message/framework-message-redis/src/main/java/com/framework/message/redis/MessageHandler.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | framework | ww20081120 | Java | Code | 467 | 1,382 | /****************************************************************************************
Copyright © 2003-2012 hbasesoft Corporation. All rights reserved. Reproduction or <br>
transmission in whole or in part, in any form or by any means, electronic, mechanical <br>
or otherwise, is prohibited without the pr... | 5,877 |
https://github.com/deklungel/iRulez/blob/master/website/irulez/src/components/SideBar.js | Github Open Source | Open Source | MIT | 2,018 | iRulez | deklungel | JavaScript | Code | 621 | 2,571 | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core/styles';
import Drawer from '@material-ui/core/Drawer';
import CssBaseline from '@material-ui/core/CssBaseline';
import AppBar from '@material-ui/core/AppBar';
import Toolbar... | 46,715 |
https://github.com/abuzzany/cfdi-sat-parser/blob/master/spec/cfdi_sat/v33/line_items/tax_detail_xml_spec.rb | Github Open Source | Open Source | MIT | 2,018 | cfdi-sat-parser | abuzzany | Ruby | Code | 48 | 259 | # frozen_string_literal: true
RSpec.describe CfdiSat::V33::LineIntems::TaxDetailXml do
def tax_detail
sat_xml = File.read('spec/fixtures/documents/invoices/invoice_v33.xml')
CfdiSat::V33::LineIntems::TaxDetailXml.new(
Nokogiri::XML(sat_xml).at_xpath(
"//*[local-name()='Comprobante']"
).a... | 20,269 |
https://github.com/jarupxx/lhaforge-shellext/blob/master/MenuEditor/resource.h | Github Open Source | Open Source | MIT | null | lhaforge-shellext | jarupxx | C | Code | 258 | 1,525 | //{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by Script.rc
//
#define IDS_MENU_CAPTION_EXTRACT_NORMAL 16
#define IDS_MENU_CAPTION_EXTRACT_DESKTOP 17
#define IDS_MENU_CAPTION_EXTRACT_SAME 18
#define IDS_MENU_CAPTION_EXTRACT_TARGET 19
#define IDS_MENU_ITEM_CAPTION_LZH 21
#define ID... | 26,729 |
https://github.com/unixish/xxx/blob/master/Makefile | Github Open Source | Open Source | MIT | null | xxx | unixish | Makefile | Code | 89 | 266 | include config.mk
BIN = 3xinfo 3xbuild
all: $(BIN)
3xbuild:
echo '#!/bin/rc' > 3xbuild
echo >> 3xbuild
echo repo = '$(REPODIR)' >> 3xbuild
echo >> 3xbuild
cat 3xbuild.rc >> 3xbuild
chmod 0755 3xbuild
3xinfo:
echo '#!/bin/rc' > 3xinfo
echo >> 3xinfo
echo repo = '$(REPODIR)' >> 3xinfo
echo >> 3xinfo
cat 3x... | 15,193 |
https://github.com/KoheiYatabe/DGTtool/blob/master/DGTtool.m | Github Open Source | Open Source | MIT | 2,021 | DGTtool | KoheiYatabe | MATLAB | Code | 4,832 | 18,573 | classdef DGTtool < handle
%DGTtool: A simple and user-friendly tool for computing STFT/DGT.
% (MATLAB 2020b or later and Signal Processing Toolbox are required.)
%
%
% --- Quick start ---
%
% DGTtool provides an easy way to compute STFT/DGT.
% - 1st step: Construct a DGTtool ob... | 20,227 |
https://github.com/yunionio/sdnagent/blob/master/vendor/yunion.io/x/jsonutils/yamlutils.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | sdnagent | yunionio | Go | Code | 195 | 459 | // Copyright 2019 Yunion
//
// 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 writi... | 11,151 |
https://github.com/UtkarshAgrawalDTU/My-Fridge-API/blob/master/recipe/migrations/0005_auto_20200525_1158.py | Github Open Source | Open Source | MIT | null | My-Fridge-API | UtkarshAgrawalDTU | Python | Code | 31 | 121 | # Generated by Django 3.0.6 on 2020-05-25 11:58
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('recipe', '0004_ingredient_recipe'),
]
operations = [
migrations.RemoveField(
model_name='recipe',
name='ingredients',
... | 32,391 |
https://github.com/andbi-redpill/datasonnet-mapper/blob/master/src/main/scala/com/datasonnet/plugins/BaseJacksonDataFormatPlugin.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | datasonnet-mapper | andbi-redpill | Scala | Code | 181 | 456 | package com.datasonnet.plugins
/*-
* Copyright 2019-2020 the original author or 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... | 29,041 |
https://github.com/tegar76/Wiyata/blob/master/application/controllers/Admin/DataGuru.php | Github Open Source | Open Source | MIT | null | Wiyata | tegar76 | PHP | Code | 1,055 | 4,282 | <?php
class DataGuru extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->model('AdminModel', 'admin', true);
is_admin_login();
}
// Data guru admin
public function index(){
is_admin();
$ParseData = [
'title' => 'Admin Wiyata ... | 16,765 |
https://github.com/ChineseFish/PuTuoXing/blob/master/src/components/recommend/payment-recommend.vue | Github Open Source | Open Source | Apache-2.0 | null | PuTuoXing | ChineseFish | Vue | Code | 145 | 603 | <template>
<div class="payment-recommend-wrapper">
<div class="title">更多推荐</div>
<div class="commend-list">
<div v-for="(item, index) of commendList" :key="index" class="commend-item" @click="onItem(item)">
<i class="iconfont" :class="item.icon" v-if="item.icon"></i>
<div>{{ item.title }... | 38,344 |
https://github.com/jasonw-sl/waltz/blob/master/waltz-ng/client/extensions/components/change-initiative/change-initiative-section/db-change-initiative-section.js | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, Apache-2.0, LicenseRef-scancode-unknown, LicenseRef-scancode-unknown-license-reference | 2,022 | waltz | jasonw-sl | JavaScript | Code | 237 | 668 | /*
* Waltz - Enterprise Architecture
* Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project
* See README.md for more information
*
* 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 ... | 1,063 |
https://github.com/ambientconflict/jokul/blob/master/packages/toggle-switch-react/src/index.ts | Github Open Source | Open Source | MIT | 2,019 | jokul | ambientconflict | TypeScript | Code | 10 | 22 | import { ToggleSwitch } from "./ToggleSwitch";
export { ToggleSwitch };
| 18,012 |
https://github.com/memoryruins/vanadinite/blob/master/src/mem/paging.rs | Github Open Source | Open Source | MIT, Apache-2.0 | 2,020 | vanadinite | memoryruins | Rust | Code | 827 | 2,521 | use core::marker::PhantomData;
#[repr(align(4096), C)]
pub struct Sv39PageTable {
page_table_entries: [Sv39PageTableEntry<Unvalidated>; 512],
}
impl Sv39PageTable {
pub fn new() -> Self {
Self {
page_table_entries: [Sv39PageTableEntry::default(); 512],
}
}
}
impl core::ops::In... | 9,338 |
https://github.com/rsmusllp/king-phisher/blob/master/data/msf/sms.rb | Github Open Source | Open Source | BSD-3-Clause | 2,022 | king-phisher | rsmusllp | Ruby | Code | 765 | 2,247 | # Copyright (c) 2015, Brandan [coldfusion]
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the followin... | 22,496 |
https://github.com/department-of-veterans-affairs/vets-website/blob/master/src/applications/hca/sass/_dependentList.scss | Github Open Source | Open Source | CC0-1.0 | 2,023 | vets-website | department-of-veterans-affairs | SCSS | Code | 31 | 100 | .hca-dependent-list { list-style: none !important; margin: 0; max-width: 26em; padding: 0; }
.hca-dependent-list--card { margin-bottom: 1em; padding: 1em; }
.hca-dependent-list--card .fas { font-size: .875em; }
legend.schemaform-block-title:focus { outline: none !important; } | 22,446 |
https://github.com/zhontai/Admin.Core/blob/master/src/platform/ZhonTai.Admin/Services/LoginLog/ILoginLogService.cs | Github Open Source | Open Source | MIT | 2,023 | Admin.Core | zhontai | C# | Code | 27 | 138 | using ZhonTai.Admin.Core.Dto;
using System.Threading.Tasks;
using ZhonTai.Admin.Services.LoginLog.Dto;
using ZhonTai.Admin.Domain;
namespace ZhonTai.Admin.Services.LoginLog;
/// <summary>
/// 登录日志接口
/// </summary>
public interface ILoginLogService
{
Task<PageOutput<LoginLogListOutput>> GetPageAsync(PageInput<Log... | 54,017 |
https://github.com/HariSekhon/spark-cassandra-connector/blob/master/spark-cassandra-connector/src/test/scala/com/datastax/spark/connector/testkit/package.scala | Github Open Source | Open Source | Apache-2.0 | 2,015 | spark-cassandra-connector | HariSekhon | Scala | Code | 36 | 113 | package com.datastax.spark.connector
import scala.collection.immutable
import scala.concurrent.duration._
import akka.util.Timeout
package object testkit {
final val DefaultHost = "127.0.0.1"
implicit val DefaultTimeout = Timeout(5.seconds)
val data = immutable.Set("words ", "may ", "count ")
val actorNam... | 14,023 |
https://github.com/nullpointer2017/mod_uploader/blob/master/include/All.h | Github Open Source | Open Source | Zlib | 2,022 | mod_uploader | nullpointer2017 | C++ | Code | 339 | 1,032 | /******************************************************************************
* Copyright (C) 2007 Tetsuya Kimata <kimata@acapulco.dyndns.org>
*
* All rights reserved.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any
* damage... | 35,640 |
https://github.com/jyllandteodosio/laravel-carpool-app/blob/master/app/Models/UserCar.php | Github Open Source | Open Source | MIT | null | laravel-carpool-app | jyllandteodosio | PHP | Code | 38 | 131 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class UserCar extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'vehicle_model',
... | 12,409 |
https://github.com/VictorRodriguez/stx-packaging/blob/master/configs/docker-ubuntu-img/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,019 | stx-packaging | VictorRodriguez | Makefile | Code | 122 | 502 | PKG ?="x.stx-fault/fm-common"
DOCKER_BUILD_ARGS := --build-arg http_proxy --build-arg https_proxy --build-arg no_proxy \
--build-arg HTTP_PROXY --build-arg HTTPS_PROXY --build-arg NO_PROXY
DOCKER_RUN_ARGS := --privileged -v $(PWD)/results:/usr/local/mydebs
DOCKER_RUN_ARGS += -v $(PWD)/../../:/stx-packaging
ifeq ($(... | 26,610 |
https://github.com/srinjoym/classroom-desktop/blob/master/app/modules/assignment/actions/__tests__/assignment-set-type-test.js | Github Open Source | Open Source | MIT | 2,022 | classroom-desktop | srinjoym | JavaScript | Code | 51 | 163 | import { expect } from "chai"
import { setAssignmentType } from "../assignment-set-type"
import { ASSIGNMENT_SET_TYPE } from "../../constants"
describe("assignmentSetType", () => {
it("sets type to individual", () => {
expect(setAssignmentType("individual")).eql({
type: ASSIGNMENT_SET_TYPE,
payload: ... | 33,144 |
https://github.com/commenthol/bandwidth-limiter-http-proxy/blob/master/test/genkey.sh | Github Open Source | Open Source | MIT | 2,022 | bandwidth-limiter-http-proxy | commenthol | Shell | Code | 34 | 101 | openssl genrsa -out key.pem 1024
openssl req -new -key key.pem -out csr.pem
openssl x509 -req -in csr.pem -signkey key.pem -out cert.pem
#openssl pkcs12 -export -in cert.pem -inkey key.pem \
# -certfile ca-cert.pem -out agent5.pfx | 8,052 |
https://github.com/pubfood/pubfood/blob/master/examples/provider/bid/audience-network/src/audience-network-bid-delegate.js | Github Open Source | Open Source | MIT | 2,021 | pubfood | pubfood | JavaScript | Code | 425 | 1,175 | /**
* @file Audience Network BidDelegate.
*/
import 'whatwg-fetch';
const name = 'audience-network';
/**
* Does this slot contain valid parameters?
* @param {Object} slot
* @returns {Boolean}
*/
const validateSlot = slot =>
typeof slot === 'object' &&
typeof slot.name === 'string' &&
typeof slot.elementId... | 30,221 |
https://github.com/Gikabu/rethinkdb-java/blob/master/templates/TopLevel.java | Github Open Source | Open Source | Apache-2.0 | null | rethinkdb-java | Gikabu | Java | Code | 256 | 855 | <%page args="all_terms" />
package com.rethinkdb.gen.model;
import com.rethinkdb.ast.ReqlAst;
import com.rethinkdb.model.Arguments;
import com.rethinkdb.model.MapObject;
import com.rethinkdb.gen.ast.Error;
import com.rethinkdb.gen.ast.*;
import com.rethinkdb.ast.Util;
import com.rethinkdb.gen.exc.ReqlDriverError;
imp... | 21,532 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/c/carbon-components/src/main/scala/typingsSlinky/carbonComponents/fileUploaderMod.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 177 | 663 | package typingsSlinky.carbonComponents
import typingsSlinky.std.WeakMap
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object fileUploaderMod {
@JSImport("carbon-componen... | 43,978 |
https://github.com/Klabanow/Systemize/blob/master/components/Main/Home/Tasks/index.js | Github Open Source | Open Source | MIT | null | Systemize | Klabanow | JavaScript | Code | 37 | 99 | import React, {useState} from 'react'
import {StyleSheet, View, Text} from 'react-native'
import EmptyTasks from './EmptyTasks'
const Tasks = (props) => {
return (
<View style={props.style}>
<EmptyTasks/>
</View>
)
}
const styles = StyleSheet.create({
})
export default Tasks | 9,287 |
https://github.com/ElliotTheRobot/mimic/blob/master/windows/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,022 | mimic | ElliotTheRobot | Makefile | Code | 422 | 984 | ###########################################################################
## ##
## Language Technologies Institute ##
## Carnegie Mellon University ##
## ... | 32,556 |
https://github.com/pdrittenhouse/dream/blob/master/src/patternlab/source/_patterns/00-protons/non-printing/_custom-functions.scss | Github Open Source | Open Source | MIT | 2,021 | dream | pdrittenhouse | SCSS | Code | 62 | 145 | // * A function to reliably retrieve the value of a Bootstrap $spacers list.
// *
// * @param $key
// * The key in the Bootstrap spacers list you wish to access.
// *
// * @example spacers(1);
// *
// */
@function spacers($key) {
@if map-has-key($spacers, $key) {
@return map-get($spacers, $key);
}
@war... | 16,164 |
https://github.com/g-yonchev/TelerikAcademy/blob/master/Homeworks/C# 1/ExamesPractice/Examples/Lines - pobitovo/Program.cs | Github Open Source | Open Source | MIT | 2,015 | TelerikAcademy | g-yonchev | C# | Code | 202 | 482 | using System;
class Program
{
static void Main()
{
int n = 8;
int[,] matrix = new int[n, n];
for (int i = 0; i < n; i++)
{
int number = int.Parse(Console.ReadLine());
for (int j = 0; j < n; j++)
{
int bit = (number >> j) & 1... | 11,582 |
https://github.com/wuchunfu/sealos/blob/master/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_batch_reset_servers_password_request_body.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | sealos | wuchunfu | Go | Code | 83 | 612 | package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
"strings"
)
// This is a auto create Body Object
type BatchResetServersPasswordRequestBody struct {
// 新密码。 当dry_run字段为true时,该字段为非必填字段,否则为必填字段。 新密码的校验规则: - 允许输入的字符包括:!@%-_=+[]:./? - 禁止输入的字符包括:汉字及【】:;“”‘’、,。《》?¥…()—— ·!~`#&^,{}*();... | 31,996 |
https://github.com/feueraustreter/YAPI/blob/master/src/main/java/yapi/quick/Brainfuck.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | YAPI | feueraustreter | Java | Code | 1,063 | 2,893 | // SPDX-License-Identifier: Apache-2.0
// YAPI
// Copyright (C) 2019,2020 yoyosource
package yapi.quick;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Brainfuck {
private List<Long> tape = new ArrayList<>();
private int pointer = 0;
private c... | 31,567 |
https://github.com/msrLi/portingSources/blob/master/ACE/ACE_wrappers/TAO/tao/Dynamic_TP/DTP_POA_Strategy.h | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-proprietary-license, LicenseRef-scancode-sun-iiop | 2,019 | portingSources | msrLi | C++ | Code | 824 | 2,306 | // -*- C++ -*-
//=============================================================================
/**
* @file DTP_POA_Strategy.h
*
* @author Marc Neeley <neeleym@ociweb.com>
*/
//=============================================================================
#ifndef TAO_DYNAMIC_TP_POA_STRATEGY_H
#define TAO_DYNA... | 375 |
https://github.com/alexshavelev44/music-share-bot/blob/master/core/__init__.py | Github Open Source | Open Source | MIT | 2,019 | music-share-bot | alexshavelev44 | Python | Code | 87 | 371 | from core.providers import ALL_PROVIDERS
from core.urls import UrlsExtractor
BOT_RESPONSE = '{music_urls}'
MUSIC_FROMAT = '{name}:\n{urls}'
def process_message(message):
msg_urls = UrlsExtractor.get_music_urls(message)
if not msg_urls:
return None
musics = {}
for url in msg_urls:
nam... | 48,360 |
https://github.com/sesam-community/dsb-proxy/blob/master/service.py | Github Open Source | Open Source | Apache-2.0 | null | dsb-proxy | sesam-community | Python | Code | 79 | 310 | from requests import Session
from sesamutils import sesam_logger
from sesamutils.flask import serve
from flask import Flask, abort, Response
import time
app = Flask(__name__)
logger = sesam_logger("dsb-proxy", app=app)
now = time.time()
URL = f"https://innmelding.dsb.no/elvirksomhetsregisteret/virksomhetssok?0-1.0-... | 15,054 |
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/restify-errors/index.d.ts | Github Open Source | Open Source | MIT | 2,023 | DefinitelyTyped | DefinitelyTyped | TypeScript | Code | 644 | 1,628 | // Type definitions for restify-errors 4.3
// Project: http://www.restify.com
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
import { VError, Options as vErrorOptions } from "verror";
export interfac... | 37,510 |
https://github.com/treeder/functions/blob/master/api/runner/runner.go | Github Open Source | Open Source | Apache-2.0 | 2,017 | functions | treeder | Go | Code | 1,004 | 2,989 | package runner
import (
"bufio"
"context"
"errors"
"fmt"
"io/ioutil"
"os"
"runtime"
"strconv"
"strings"
"sync"
"time"
"github.com/Sirupsen/logrus"
"github.com/treeder/functions/api/runner/common"
"github.com/treeder/functions/api/runner/drivers"
driverscommon "github.com/treeder/functions/api/runner/dr... | 8,993 |
https://github.com/bdew/bdlib/blob/master/src/main/scala/net/bdew/lib/multiblock/block/BlockModule.scala | Github Open Source | Open Source | MIT | 2,019 | bdlib | bdew | Scala | Code | 235 | 861 | package net.bdew.lib.multiblock.block
import net.bdew.lib.PimpVanilla._
import net.bdew.lib.Text
import net.bdew.lib.block.{HasTE, StatefulBlock}
import net.bdew.lib.multiblock.tile.{TileController, TileModule}
import net.bdew.lib.multiblock.{ModuleType, Tools}
import net.bdew.lib.render.connected.ConnectedTextureBloc... | 13,804 |
https://github.com/Orest-Divintari/insomnia/blob/master/resources/js/components/base/Highlight.vue | Github Open Source | Open Source | MIT | null | insomnia | Orest-Divintari | Vue | Code | 54 | 215 | <template>
<div>
<div v-html="content" ref="content"></div>
</div>
</template>
<script>
import Highlighter from "highlight.js";
import "highlight.js/styles/default.css";
export default {
props: ["content"],
mounted() {
this.highlight(this.$refs.content);
},
methods: {
highlight(block) {
i... | 14,167 |
https://github.com/gtoken001/Gtoken/blob/master/app/src/main/java/vdsMain/transaction/VTransactionSignatureCreator.java | Github Open Source | Open Source | MIT | 2,020 | Gtoken | gtoken001 | Java | Code | 170 | 649 | package vdsMain.transaction;
import bitcoin.CKeyStore;
import bitcoin.UInt256;
import bitcoin.script.BaseSignatureChecker;
import bitcoin.script.CScript;
import vcash.script.VInterpreter;
import vcash.script.VTransactionSignatureChecker;
import vdsMain.*;
//bpt
public class VTransactionSignatureCreator extends VBaseS... | 22,136 |
https://github.com/mjibson/moggio/blob/master/node_modules/reactify/node_modules/react-tools/src/browser/eventPlugins/__tests__/FallbackCompositionState-test.js | Github Open Source | Open Source | ISC, MIT | 2,022 | moggio | mjibson | JavaScript | Code | 252 | 770 | /**
* Copyright 2013-2015, 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.
*
* @emails react-co... | 53,701 |
https://github.com/Apicurio/apicurio-operators/blob/master/apicurito/pkg/apis/apicur/v1alpha1/doc.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | apicurio-operators | Apicurio | Go | Code | 19 | 53 | // Package v1alpha1 contains API Schema definitions for the apicur v1alpha1 API group
// +k8s:deepcopy-gen=package,register
// +groupName=apicur.io
package v1alpha1
| 50,878 |
https://github.com/Phygon/bmxlib-bmx/blob/master/test/wave/Makefile.am | Github Open Source | Open Source | BSD-3-Clause | 2,022 | bmxlib-bmx | Phygon | Makefile | Code | 41 | 177 | TESTS = wave_write.test wave_read.test
EXTRA_DIST = \
wave_write.test \
wave_read.test \
wave_write.md5 \
wave_read.md5 \
check_write.sh \
check_read.sh \
create_write.sh \
create_read.sh \
samples.sh
.PHONY: create-data
create-data:
${srcdir}/create_write.sh ${srcdir} 25 wave_write
${srcdir}/create_rea... | 16,409 |
https://github.com/renuka2009/crusher/blob/master/packages/crusher-server/src/server/controllers/PaymentController.ts | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | crusher | renuka2009 | TypeScript | Code | 599 | 1,716 | import { Body, CurrentUser, Get, InternalServerError, JsonController, Post } from "routing-controllers";
import { Inject, Service } from "typedi";
import UserService from "../../core/services/UserService";
import GoogleAPIService from "../../core/services/GoogleAPIService";
import { USER_NOT_REGISTERED } from "../../co... | 20,513 |
https://github.com/microsoft/PowerToys/blob/master/src/modules/launcher/PowerLauncher/CustomSearchBox.cs | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, MIT, BSL-1.0, Unlicense | 2,023 | PowerToys | microsoft | C# | Code | 104 | 313 | // Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Windows;
using System.Windows.Automation.Peers;
using System.Windows.Controls;
namespac... | 40,368 |
https://github.com/microsoft/CCF/blob/master/src/apps/tpcc/app/tpcc_setup.h | Github Open Source | Open Source | Apache-2.0 | 2,023 | CCF | microsoft | C++ | Code | 1,243 | 5,188 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache 2.0 License.
#pragma once
#include "tpcc_common.h"
#include "tpcc_tables.h"
#include <exception>
#include <set>
#include <stdint.h>
namespace tpcc
{
class SetupDb
{
private:
ccf::endpoints::EndpointContext& args;
... | 23,771 |
https://github.com/box-software/SlinkyTyped/blob/master/a/ant-design-pro/src/main/scala/typingsSlinky/antDashDesignDashPro/libAvatarListAvatarItemMod/package.scala | Github Open Source | Open Source | MIT | 2,020 | SlinkyTyped | box-software | Scala | Code | 43 | 203 | package typingsSlinky.antDashDesignDashPro
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
package object libAvatarListAvatarItemMod {
import slinky.core.ReactComponentClass
type AvatarItem = ReactComponentClass[AvatarItemProps]
/* Rewritten from type alias, can be one ... | 31,491 |
https://github.com/WanDerWalls/simple-gravity-simulator/blob/master/src/app.js | Github Open Source | Open Source | MIT | 2,019 | simple-gravity-simulator | WanDerWalls | JavaScript | Code | 1,139 | 3,019 | /*
* Gravitational n-body algorithm
*/
class nBodyProblem {
constructor(params) {
this.g = params.g;
this.dt = params.dt;
this.softeningConstant = params.softeningConstant;
this.masses = params.masses;
}
updatePositionVectors() {
const massesLen = this.masses.leng... | 22,805 |
https://github.com/alexgladd/bm-hotgroups-www/blob/master/src/components/Layout.jsx | Github Open Source | Open Source | MIT | null | bm-hotgroups-www | alexgladd | null | Spoken | 150 | 470 | import React from 'react';
import PropTypes from 'prop-types';
import { Global } from '@emotion/react';
import styled from '@emotion/styled';
import SiteMetadata from './SiteMetadata';
import Header from './Header';
import useSiteFonts from '../hooks/siteFonts';
import { sizes, getFontStyles, globalStyles } from './the... | 53,455 |
https://github.com/benhc123/frostwire-jlibtorrent/blob/master/src/com/frostwire/jlibtorrent/swig/rss_item_alert.java | Github Open Source | Open Source | MIT | 2,015 | frostwire-jlibtorrent | benhc123 | Java | Code | 226 | 847 | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ------------------------------... | 6,009 |
https://github.com/shubhamdipt/passbolt-python-api/blob/master/setup.py | Github Open Source | Open Source | MIT | 2,023 | passbolt-python-api | shubhamdipt | Python | Code | 185 | 517 | # Release process setup see:
# https://github.com/pypa/twine
#
# Upgrade twine
# python3 -m pip install --user --upgrade twine
#
# Run this to build the `dist/PACKAGE_NAME-xxx.tar.gz` file
# rm -rf ./dist && python3 setup.py sdist
#
# Check dist/*
# python3 -m twine check dist/*
#
# Run this to build & uplo... | 18,170 |
https://github.com/gunthercox/chatterbot-weather/blob/master/chatterbot_weather/__init__.py | Github Open Source | Open Source | MIT | 2,022 | chatterbot-weather | gunthercox | Python | Code | 34 | 101 | # -*- coding: utf-8 -*-
"""
A ChatterBot logic adapter that returns information about the weather.
"""
from .weather_adapter import WeatherLogicAdapter
__author__ = 'Gunther Cox'
__email__ = 'gunthercx@gmail.com'
__version__ = '0.1.1'
__url__ = 'https://github.com/gunthercox/chatterbot-weather'
| 17,084 |
https://github.com/andrazznidar/ostanizdrav-android-dekompilacija/blob/master/decode/smali/com/google/android/gms/tasks/zzw.smali | Github Open Source | Open Source | Apache-2.0 | null | ostanizdrav-android-dekompilacija | andrazznidar | Smali | Code | 9 | 55 | .class public interface abstract Lcom/google/android/gms/tasks/zzw;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-tasks@@17.2.0"
| 44,676 |
https://github.com/nathankitchen/azunit/blob/master/src/azunit-client/IAzuValue.ts | Github Open Source | Open Source | MIT | 2,021 | azunit | nathankitchen | TypeScript | Code | 15 | 43 | export interface IAzuValue {
disabled(): void;
enabled(): void;
equals(value: any): void;
as(name: string): IAzuValue;
} | 5,578 |
https://github.com/betajs/betajs-scoped/blob/master/Gruntfile.js | Github Open Source | Open Source | Apache-2.0 | 2,017 | betajs-scoped | betajs | JavaScript | Code | 122 | 575 | module.exports = function(grunt) {
var pkg = grunt.file.readJSON('package.json');
var gruntHelper = require('betajs-compile');
var dist = 'scoped';
gruntHelper.init(pkg, grunt)
/* Compilation */
.concatTask('concat-raw', [
'src/fragments/begin.js-fragment',
'src/main/globals.js',
'src/... | 15,701 |
https://github.com/statik/roaring/blob/master/roaring.go | Github Open Source | Open Source | Apache-2.0 | null | roaring | statik | Go | Code | 1,823 | 5,302 | // Package roaring is an implementation of Roaring Bitmaps in Go.
// They provide fast compressed bitmap data structures (also called bitset).
// They are ideally suited to represent sets of integers over
// relatively small ranges.
// See http://roaringbitmap.org for details.
package roaring
import (
"bytes"
"io"
... | 51,784 |
https://github.com/saaish/aws-o11y-recipes/blob/master/sandbox/CWMetricStreamExporter/Makefile | Github Open Source | Open Source | MIT-0 | 2,022 | aws-o11y-recipes | saaish | Makefile | Code | 49 | 112 | .DEFAULT_GOAL := go_build
go_build:
cd lambda && go build -o main main.go
go_test:
cd lambda && go test -v -race -count=1 ./...
npm_build:
cd cdk && npm install && npm run build
npm_test:
cd cdk && npm run build && npm test
npm_lint:
cd cdk && npm run lint | 28,766 |
https://github.com/EmiyaXzero/study/blob/master/java/src/main/java/com/my/method/ParentStatic.java | Github Open Source | Open Source | Apache-2.0 | null | study | EmiyaXzero | Java | Code | 48 | 197 | package com.my.method;
import lombok.extern.log4j.Log4j;
import lombok.extern.slf4j.Slf4j;
import java.util.HashMap;
/**
* @author shang
* @title: ParentStatic
* @projectName study
* @description: TODO
* @date 2020/3/11-21:36
*/
@Slf4j
public class ParentStatic {
public static HashMap map = new HashMap(){
... | 30,013 |
https://github.com/jbrustle/dipy/blob/master/WatsonSignal/funcTime.py | Github Open Source | Open Source | BSD-3-Clause | 2,014 | dipy | jbrustle | Python | Code | 459 | 4,059 | #!//anaconda/bin/python
from time import clock
from WatsonSHStickTortIsoV_BO import WatsonSHStickTortIsoV_BO
import numpy as np
grad_dirs=[ 1.000000000000000, 0, 0,
0.132723066185094, -0.739879368956107, 0.659517328881918,
-0.918278273681402, 0.379929113233140, -0.111440033213314,... | 46,941 |
https://github.com/mortezakarimi/quera-devops-challenges/blob/master/26287/04 - 87502/server_status.sh | Github Open Source | Open Source | Apache-2.0 | null | quera-devops-challenges | mortezakarimi | Shell | Code | 112 | 214 | #!/bin/bash
# NOTE:
# * Your script MUST read the input from a given file as follows:
# $ ./count_names.sh input.txt
# * Your script MUST print the result to the stdout.
# * Your script MUST conform to the output format provided in the question.
#
# ATTENTION: DON'T change this file name!
file="$1"
#check if path i... | 13,883 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.