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/jmix-framework/jmix/blob/master/jmix-core/core/src/main/java/io/jmix/core/pessimisticlocking/LockInfo.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | jmix | jmix-framework | Java | Code | 310 | 756 | /*
* Copyright 2020 Haulmont.
*
* 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... | 47,925 |
https://github.com/antfu/vitesse/blob/master/.npmrc | Github Open Source | Open Source | MIT | 2,023 | vitesse | antfu | null | Spoken | 2 | 19 | shamefully-hoist=true
strict-peer-dependencies=false
| 19,122 |
https://github.com/geniusgeek/Carbon/blob/master/carbon/src/main/java/carbon/widget/ImageView.java | Github Open Source | Open Source | Apache-2.0 | null | Carbon | geniusgeek | Java | Code | 2,489 | 8,757 | package carbon.widget;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PorterDuff;
import android.g... | 31,611 |
https://github.com/sjchmiela/OTOKonfa/blob/master/db/schema.rb | Github Open Source | Open Source | Apache-2.0 | 2,016 | OTOKonfa | sjchmiela | Ruby | Code | 641 | 2,180 | # encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative sou... | 51,195 |
https://github.com/kjthegod/chromium/blob/master/chrome/browser/ui/startup/startup_browser_creator_interactive_uitest.cc | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,019 | chromium | kjthegod | C++ | Code | 269 | 1,455 | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <vector>
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/message_loop/message_loop.h"
#include "chrome/brows... | 50,727 |
https://github.com/tomatopunk/Natasha/blob/master/test/NatashaUT/BuilderUT/InterfaceBuilderTest.cs | Github Open Source | Open Source | MIT | 2,022 | Natasha | tomatopunk | C# | Code | 51 | 299 | using Natasha.CSharp;
using System;
using Xunit;
namespace NatashaUT.BuilderUT
{
[Trait("接口构建与编译", "接口")]
public class InterfaceBuilderTest : PrepareTest
{
[Fact(DisplayName = "接口构建与编译1")]
public void TestInterface()
{
var builder = NInterface.RandomDomain();
... | 18,944 |
https://github.com/chfoo/pyramid/blob/master/public/src/scss/chatview.scss | Github Open Source | Open Source | MIT | 2,017 | pyramid | chfoo | SCSS | Code | 812 | 3,015 | .channeluserlist {
/* TODO: Get rid of magic numbers... */
position: fixed;
top: 41px;
right: 0;
bottom: 72px;
width: 280px;
background-color: #fff;
overflow: auto;
z-index: 3;
margin: 0;
&:after {
content: "";
position: fixed;
top: 41px;
right: 279px;
bottom: 72px;
z-index: 11;
width: 1px;
... | 51,660 |
https://github.com/sj-griffin/neatnodes/blob/master/src/main/java/com/neatnodes/genome/Genome.java | Github Open Source | Open Source | MIT | null | neatnodes | sj-griffin | Java | Code | 2,098 | 4,769 | package com.neatnodes.genome;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import com.neatnodes.algorithm.InnovationManager;
import com.neatnodes.utils.Configuration;
/**
* A Genome consists of Nodes and Connections and implements a function.
*
* @author Sa... | 44,103 |
https://github.com/ishanbhavsar3/icseJava/blob/master/ArmstrongNumber.java | Github Open Source | Open Source | MIT | 2,021 | icseJava | ishanbhavsar3 | Java | Code | 75 | 171 | import java.util.Scanner;
public class ArmstrongNumber
{
public static void main() {
int remainder , sum = 0;
System.out.println("Enter the number");
Scanner sc = new Scanner(System.in);
int number = sc.nextInt();
int check= number;
while(check != 0) {
remainder = check ... | 11,153 |
https://github.com/LightosLimited/RailML/blob/master/v3.1/Database/dbo/Tables/TOcpTTType.sql | Github Open Source | Open Source | Apache-2.0 | null | RailML | LightosLimited | SQL | Code | 26 | 109 | CREATE TABLE [dbo].[TOcpTTType]
(
--From MergedXSDs XSD
--From 'genericRailML' Namespace
[TOcpTTTypeId] TINYINT NOT NULL,
[Value] NVARCHAR(5) NOT NULL,
CONSTRAINT [PK_TOcpTTTypeId] PRIMARY KEY CLUSTERED ([TOcpTTTypeId] ASC)
);
| 37,300 |
https://github.com/open-mpi/ompi-www/blob/master/community/lists/users/2005/03/0040.php | Github Open Source | Open Source | BSD-3-Clause | 2,023 | ompi-www | open-mpi | PHP | Code | 383 | 1,288 | <? include("../../include/msg-header.inc"); ?>
<!-- received="Fri Mar 25 18:53:07 2005" -->
<!-- isoreceived="20050325235307" -->
<!-- sent="Fri, 25 Mar 2005 18:53:02 -0500" -->
<!-- isosent="20050325235302" -->
<!-- name="Patrick Geoffray" -->
<!-- email="patrick_at_[hidden]" -->
<!-- subject="Re: [O-MPI users] Re: [B... | 19,079 |
https://github.com/patriknw/kubernetes-client/blob/master/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/informers/EventType.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | kubernetes-client | patriknw | Java | Code | 142 | 282 | /**
* Copyright (C) 2015 Red Hat, 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
*
* Unless required by applicable law or... | 78 |
https://github.com/rvantonderp/adjust-go-wrk/blob/master/slave_node.go | Github Open Source | Open Source | MIT, Unlicense | 2,022 | adjust-go-wrk | rvantonderp | Go | Code | 75 | 313 | package main
import (
"fmt"
"net/http"
"net/url"
"strconv"
)
func SlaveNode() {
http.HandleFunc("/", rootHandler)
err := http.ListenAndServe(
fmt.Sprintf(":%s", config.Port),
nil,
)
if err != nil {
fmt.Println(err)
}
select {}
}
func rootHandler(w http.ResponseWriter, req *http.Request) {
values, er... | 1,949 |
https://github.com/chromium/chromium/blob/master/chrome/android/junit/src/org/chromium/chrome/browser/bookmarks/SharedBookmarkModelMocks.java | Github Open Source | Open Source | BSD-3-Clause | 2,023 | chromium | chromium | Java | Code | 521 | 2,895 | // Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.bookmarks;
import static org.mockito.Mockito.doReturn;
import org.chromium.components.bookmarks.BookmarkId;
import org.chromium.components... | 51,925 |
https://github.com/ppy/osu/blob/master/osu.Game/Storyboards/IStoryboardElementWithDuration.cs | Github Open Source | Open Source | MIT | 2,023 | osu | ppy | C# | Code | 144 | 282 | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Storyboards
{
/// <summary>
/// A <see cref="IStoryboardElement"/> that ends at a different time than its start time.
/// </summary>
p... | 6,977 |
https://github.com/AmmarKust/school/blob/master/resources/views/admin/widgets/inc/form.blade.php | Github Open Source | Open Source | MIT | 2,021 | school | AmmarKust | Blade | Code | 1,124 | 5,092 |
<div class="row">
<div class="col-md-12">
<div class="form-group">
{!! Form::label('title', 'Widget Title', ['class' => 'font-weight-bold']) !!}
{!! Form::text('title', null, array('class'=>'form-control', 'id'=>'title', 'placeholder'=>'Widget Title')) !!}
</div>
... | 14,308 |
https://github.com/JabRef/jabref/blob/master/src/main/java/org/jabref/logic/pdf/AnnotationImporter.java | Github Open Source | Open Source | MIT | 2,023 | jabref | JabRef | Java | Code | 17 | 73 | package org.jabref.logic.pdf;
import java.nio.file.Path;
import java.util.List;
import org.jabref.model.pdf.FileAnnotation;
public interface AnnotationImporter {
List<FileAnnotation> importAnnotations(final Path path);
}
| 52,246 |
https://github.com/emedernach/irods/blob/master/lib/api/include/fileChksum.h | Github Open Source | Open Source | BSD-3-Clause | 2,020 | irods | emedernach | C | Code | 83 | 324 | #ifndef FILE_CHKSUM_H__
#define FILE_CHKSUM_H__
#include "rcConnect.h"
#include "rodsDef.h"
typedef struct FileChksumInp {
rodsHostAddr_t addr;
char fileName[MAX_NAME_LEN];
char rescHier[MAX_NAME_LEN];
char objPath[MAX_NAME_LEN];
int flag; // not used for now
char in_pdmo[MAX_NAME_LEN]; // F... | 44,325 |
https://github.com/dp9u0/mhxy/blob/master/src/mhxy-cs/Environment.cs | Github Open Source | Open Source | MIT | 2,022 | mhxy | dp9u0 | C# | Code | 168 | 531 | #define Develop
using System.IO;
namespace mhxy {
/// <summary>
///
/// </summary>
public static class Environment {
static Environment() {
#if Develop
Encrypt = true;
Profile = false;
CurrentDirectory = @"C:\Users\guodp\Source\mhxy";
#else
En... | 1,331 |
https://github.com/jeffkl/MSBuildArgs/blob/master/src/Microsoft.Build.CommandLine.Arguments.UnitTests/PreProcessTest.cs | Github Open Source | Open Source | MIT | 2,018 | MSBuildArgs | jeffkl | C# | Code | 72 | 313 | using Shouldly;
using System;
using Xunit;
namespace Microsoft.Build.CommandLine.Arguments.UnitTests
{
public class PreProcessTest : TestBase
{
[Theory]
[InlineData(true)]
[InlineData(false)]
public void PreProcessCustom(bool useShortSwitchNames)
{
MSBuildCom... | 12,165 |
https://github.com/kunnisser/CelebrateSpring/blob/master/gui/title.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | CelebrateSpring | kunnisser | JavaScript | Code | 212 | 1,061 | import SimpleButton from './SimpleButton';
class title extends Phaser.Group {
constructor (game, parent) {
super(game, parent);
this.init();
}
init () {
this.generateCoverFu();
this.addLogo();
this.addTitleLine();
this.generateStartGroup();
}
generat... | 14,023 |
https://github.com/scriptlabs/phalcon-hint-generator/blob/master/phalcon-ide/2.0.5.4/Phalcon/Cli/Router.php | Github Open Source | Open Source | MIT | 2,015 | phalcon-hint-generator | scriptlabs | PHP | Code | 465 | 1,108 | <?php
namespace Phalcon\Cli;
use Phalcon\DiInterface;
use Phalcon\Cli\Router\Route;
use Phalcon\CLi\Router\Exception;
class Router implements \Phalcon\Di\InjectionAwareInterface
{
protected $_dependencyInjector;
protected $_module;
protected $_task;
protected $_action;
protected $_params;
protected $_de... | 47,375 |
https://github.com/IP-CAM/small-opencart/blob/master/opencart/admin/view/template/payment/amazon_checkout.tpl | Github Open Source | Open Source | Apache-2.0 | 2,021 | small-opencart | IP-CAM | null | Spoken | 1,017 | 4,389 | <?php echo $header; ?>
<div id="content">
<div class="breadcrumb">
<?php foreach ($breadcrumbs as $breadcrumb): ?>
<?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
<?php endforeach;; ?>
</div>
<?php foreach($errors as $error): ?... | 20,757 |
https://github.com/RGLab/LabKeyModules/blob/master/ImmuneSignatures/queries/study/hai.sql | Github Open Source | Open Source | Artistic-2.0 | 2,023 | LabKeyModules | RGLab | SQL | Code | 21 | 85 | SELECT *,
DataSets.demographics.age_reported AS age_reported,
CASE WHEN DataSets.demographics.age_reported<=35 THEN 'Young'
WHEN DataSets.demographics.age_reported>=60 THEN 'Older'
ELSE 'Neither'
END AS Cohort
FROM hai
| 28,578 |
https://github.com/jenhjlim/CRUD-app/blob/master/assets/scss/_variables.scss | Github Open Source | Open Source | Apache-2.0 | 2,021 | CRUD-app | jenhjlim | SCSS | Code | 10 | 50 | $white: #ffffff;
$black: #000000;
$gray: #595959;
$brand-color: #b3d7f1;
$secondary-color: #ffac33;
| 21,988 |
https://github.com/hugobgranja/AlgorithmsExercises/blob/master/AlgorithmsExercisesTests/Mergesort/CountingInversionsTests.swift | Github Open Source | Open Source | MIT | null | AlgorithmsExercises | hugobgranja | Swift | Code | 154 | 642 | //
// CountingInversions.swift
// AlgorithmsExercisesTests
//
// Created by hg on 31/10/2020.
//
import XCTest
final class CountingInversionsTests: XCTestCase {
var countingInversions: CountingInversions!
override func setUp() {
countingInversions = CountingInversions()
}
override fu... | 38,087 |
https://github.com/atooq/expenses-list/blob/master/src/models/expenseModel.js | Github Open Source | Open Source | MIT | 2,012 | expenses-list | atooq | JavaScript | Code | 88 | 251 | /**
* Created by Igor Zalutsky on 10.08.12 at 6:01
*/
(function() {
"use strict";
// publishing namespace
if (!window.elist) {
window.elist = {};
}
var elist = window.elist;
/**
* Model of Expense entity with observable properties
* @param properties Object with initial pro... | 41,770 |
https://github.com/silexlabs/responsize/blob/master/src/rsz/stage/stage.jade | Github Open Source | Open Source | MIT | 2,021 | responsize | silexlabs | null | Spoken | 5 | 23 | #stage.stage
.loader
p Loading...
iframe#iframe
| 19,801 |
https://github.com/mohsinalimat/TinyERP/blob/master/Pods/ObjectiveDropboxOfficial/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/Users/DBUSERSTeam.m | Github Open Source | Open Source | MIT | 2,018 | TinyERP | mohsinalimat | Objective-C | Code | 142 | 449 | ///
/// Copyright (c) 2016 Dropbox, Inc. All rights reserved.
///
/// Auto-generated by Stone, do not modify.
///
#import "DBStoneSerializers.h"
#import "DBStoneValidators.h"
#import "DBUSERSTeam.h"
#pragma mark - API Object
@implementation DBUSERSTeam
#pragma mark - Constructors
- (instancetype)initWithId_:(NSStr... | 38,328 |
https://github.com/mitchelldavis/dremio-oss/blob/master/dac/backend/src/main/java/com/dremio/dac/homefiles/HomeFileSystemStoragePlugin.java | Github Open Source | Open Source | Apache-2.0 | null | dremio-oss | mitchelldavis | Java | Code | 706 | 2,554 | /*
* Copyright (C) 2017-2018 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 18,224 |
https://github.com/zrj-rimwis/DeltaPorts/blob/master/ports/biology/ncbi-entrez-direct/diffs/Makefile.diff | Github Open Source | Open Source | BSD-2-Clause-FreeBSD | null | DeltaPorts | zrj-rimwis | null | Spoken | 19 | 96 | --- Makefile.orig 2021-12-13 10:52:02 UTC
+++ Makefile
@@ -81 +81 @@
- ${INSTALL_PROGRAM} ${WRKSRC}/cmd/*.FreeBSD ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/cmd/*.DragonFly ${STAGEDIR}${PREFIX}/bin
| 52,288 |
https://github.com/microsoft/fhir-codegen/blob/master/src/fhirCsR2/Models/AllergyIntolerance.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla | 2,023 | fhir-codegen | microsoft | C# | Code | 2,191 | 6,493 | // <auto-generated />
// Built from: hl7.fhir.r2.core version: 1.0.2
// Option: "NAMESPACE" = "fhirCsR2"
using System;
using System.Collections.Generic;
using System.Text.Json;
using System.Text.Json.Serialization;
using fhirCsR2.Serialization;
namespace fhirCsR2.Models
{
/// <summary>
/// Details about each ad... | 42,070 |
https://github.com/ZanichelliEditore/health-check/blob/master/src/resources/lang/it/messages.php | Github Open Source | Open Source | MIT | 2,020 | health-check | ZanichelliEditore | PHP | Code | 41 | 114 | <?php
return [
'DatabaseConnectionNotAvailable' => 'La connessione con il database non è disponibile',
'DiskNotAvailable' => 'Filesystem non disponibile',
'ErrorConnectionS3' => 'Impossibile connettersi a S3',
'filesystem' => [
'WritingError' => 'Errore durante la scrittura',
'NoDiskSpa... | 3,848 |
https://github.com/dualspiral/Charge/blob/master/src/main/java/io/github/nucleuspowered/charge/service/ChargeUniqueAccount.java | Github Open Source | Open Source | MIT | null | Charge | dualspiral | Java | Code | 89 | 407 | package io.github.nucleuspowered.charge.service;
import io.github.nucleuspowered.charge.persistence.IPersistence;
import org.spongepowered.api.Sponge;
import org.spongepowered.api.service.economy.Currency;
import org.spongepowered.api.service.economy.account.UniqueAccount;
import org.spongepowered.api.service.user.Use... | 9,357 |
https://github.com/glor/horn/blob/master/libhorns.c | Github Open Source | Open Source | BSD-3-Clause | null | horn | glor | C | Code | 2,533 | 11,061 | #include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <unistd.h>
#include "libhorns.h"
extern int NOTHING_TO_DO;
extern char **environ;
void horns_init() {
node_init();
node_set(node_sym("\'nil"), node_nil());
node_set(node_sym("\'true"), node_true());
node_set(node_sym("\'pi"), no... | 20,493 |
https://github.com/stauntonknight/algorithm/blob/master/gcj/4284486/a/a.cc | Github Open Source | Open Source | CNRI-Python | null | algorithm | stauntonknight | C++ | Code | 126 | 246 | #include <iostream>
using namespace std;
int getNum(long long i, int target) {
if (i <= 1) return 0;
long long numDig = (1ll << target) - 1;
if (i == numDig / 2 + 1) {
return 0;
} else if (i <= numDig / 2) {
return getNum(i, target - 1);
} else {
return 1 - (getNum(numDig ... | 28,226 |
https://github.com/Tabima/tabima_lab/blob/master/static/files/citations/2013-01-01_arrieta2013genomic.bib | Github Open Source | Open Source | MIT | 2,020 | tabima_lab | Tabima | null | Spoken | 87 | 203 | @Article{arrieta2013genomic,
title = {Genomic survey of pathogenicity determinants and VNTR markers in the cassava bacterial pathogen Xanthomonas axonopodis pv. manihotis strain CIO151},
author = {Mario L Arrieta-Ortiz and Luis M Rodr{\a'\i}guez-R and Alvaro L Perez-Quintero and Lucie Poulin and Ana C D{\a'\i}az an... | 43,558 |
https://github.com/radut/Podcast-Server/blob/master/src/main/resources/static/app/js/modules/common/authorize-notification.es6.js | Github Open Source | Open Source | Apache-2.0 | 2,015 | Podcast-Server | radut | JavaScript | Code | 73 | 262 |
class authorizeNotificationDirective {
constructor() {
this.replace = true;
this.restrict = 'E';
this.scope = true;
this.templateUrl = 'html/authorize-notification.html';
this.controllerAs = 'an';
this.controller = 'authorizeNotificationController';
}
}
class au... | 28,936 |
https://github.com/shenxiangxiong/Girvs/blob/master/Girvs.Driven/Events/Message.cs | Github Open Source | Open Source | Apache-2.0 | null | Girvs | shenxiangxiong | C# | Code | 76 | 263 | using System;
using Girvs.Extensions;
using Girvs.Infrastructure;
using MediatR;
namespace Girvs.Driven.Events
{
public abstract class Message : IRequest<bool>
{
public string MessageType { get; protected set; }
public Guid AggregateId { get; protected set; }
public MessageSource Messa... | 404 |
https://github.com/NotHawthorne/godot-game/blob/master/.import/headset_sample_status_standby.png-fdb0435ad2e1df02fad8cab2b8721210.md5 | Github Open Source | Open Source | MIT | 2,020 | godot-game | NotHawthorne | null | Spoken | 2 | 57 | source_md5="f1a3130ffbe30de184a5d4a5a19afc41"
dest_md5="b44d4c51f936c8901d582bf77fa9000e"
| 28,264 |
https://github.com/ugnelis/ros_cameras_controller/blob/master/commander/src/commander/executors/CameraExecutor.py | Github Open Source | Open Source | BSD-3-Clause | 2,019 | ros_cameras_controller | ugnelis | Python | Code | 142 | 467 | import rospy
import rospkg
import time
from commander.executors.Executor import Executor
from commander.utils.Process import Process
class CameraExecutor(Executor):
"""
Executor class for adding and removing camera.
"""
def __init__(self):
Executor.__init__(self)
def execute(self, **kwar... | 8,691 |
https://github.com/blukai/gqlgenc/blob/master/introspection/parser_test.go | Github Open Source | Open Source | MIT | 2,022 | gqlgenc | blukai | Go | Code | 110 | 412 | package introspection
import (
"encoding/json"
"io/ioutil"
"testing"
"github.com/stretchr/testify/require"
)
func TestParseIntrospectionQuery_Parse(t *testing.T) {
t.Parallel()
tests := []struct {
name string
filename string
expectedErr error
}{
{"no mutation in schema", "testdata/introspec... | 28,569 |
https://github.com/DataDog/istio/blob/master/vendor/go.opencensus.io/stats/view/aggtype_string.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | istio | DataDog | Go | Code | 53 | 171 | // Code generated by "stringer -type AggType"; DO NOT EDIT.
package view
import "strconv"
const _AggType_name = "AggTypeNoneAggTypeCountAggTypeSumAggTypeMeanAggTypeDistribution"
var _AggType_index = [...]uint8{0, 11, 23, 33, 44, 63}
func (i AggType) String() string {
if i < 0 || i >= AggType(len(_AggType_index)-1... | 41,711 |
https://github.com/zeek-han/kaldi/blob/master/egs/voxceleb/v2.voxceleb1/prepare.sh | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-public-domain | 2,020 | kaldi | zeek-han | Shell | Code | 33 | 220 | #!/usr/bin/env bash
sudo nvidia-smi -c 3
## stage1까지만 수행
#./run_zeek_voxceleb1.sh
mv ./mfcc ./mfcc.original
mv ./mfcc.aws ./mfcc
from_mfcc_dir="./mfcc"
mfcc_npy_root_dir="/media/sangjik/hdd2/dataset/speech/English/VoxCeleb1/npy_mfcc"
mfcc_output_dir="./mfcc.output"
mkdir -p $mfcc_output_dir
./rewrite_mfcc_fro... | 28,073 |
https://github.com/liuyang233/NativeGPUImage/blob/master/library/src/main/java/com/ben/android/library/filter/GPUImageContrastFilter.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | NativeGPUImage | liuyang233 | Java | Code | 54 | 191 | package com.ben.android.library.filter;
import com.ben.android.library.util.FilterType;
/**
* @author @zhangchuan622@gmail.com
* @version 1.0
* @create 2019/10/8
*/
public class GPUImageContrastFilter extends NativeFilter{
private float contrast;
public GPUImageContrastFilter() {
this(1.2f);
... | 5,623 |
https://github.com/Fabs97/PlaDat/blob/master/backend/DB/migrations/20201219140015_employer_user_id.js | Github Open Source | Open Source | MIT | 2,021 | PlaDat | Fabs97 | JavaScript | Code | 41 | 172 | exports.up = async function(knex) {
let hasTable = await knex.schema.hasTable('employer')
let hasColumn = await knex.schema.hasColumn('employer', 'user_id');
return hasTable && !hasColumn ? knex.schema.table('employer', (table) => {
table.integer('user_id').unsigned().notNullable();
table.fo... | 6,904 |
https://github.com/jylama99/aws-lc/blob/master/crypto/evp/p_rsa.c | Github Open Source | Open Source | MIT | null | aws-lc | jylama99 | C | Code | 2,465 | 9,929 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2006.
*/
/* ====================================================================
* Copyright (c) 2006 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, ar... | 35,089 |
https://github.com/scm-spain/boros-tcf/blob/master/src/main/application/services/event/RemoveEventListenerUseCase.js | Github Open Source | Open Source | MIT | 2,021 | boros-tcf | scm-spain | JavaScript | Code | 39 | 146 | import {inject} from '../../../core/ioc/ioc'
import {EventStatusService} from '../../../domain/service/EventStatusService'
import {SyncUseCase} from '../SyncUseCase'
export class RemoveEventListenerUseCase extends SyncUseCase {
constructor({eventStatusService = inject(EventStatusService)} = {}) {
super()
thi... | 21,593 |
https://github.com/PixelOfDeath/glCompact/blob/master/src/glCompact/Debug.cpp | Github Open Source | Open Source | MIT | null | glCompact | PixelOfDeath | C++ | Code | 497 | 1,642 | #include "glCompact/Debug.hpp"
#include "glCompact/ContextGroup_.hpp"
#include "glCompact/threadContextGroup_.hpp"
#include <iostream>
using namespace std;
using namespace glCompact::gl;
namespace glCompact {
std::string Debug::sourceToString(
GLenum source
) {
switch (source) {
ca... | 5,559 |
https://github.com/brandsExclusive/Marshal/blob/master/Marshal.podspec | Github Open Source | Open Source | MIT | null | Marshal | brandsExclusive | Ruby | Code | 127 | 380 | Pod::Spec.new do |s|
s.name = "Marshal"
s.version = "1.2.4"
s.summary = "Marshal is a simple, lightweight framework for safely extracting values from [String: AnyObject]"
s.description = <<-DESC
In Swift, we all deal with JSON, plists, and various forms of [String: Any... | 26,551 |
https://github.com/liji15865292551/dce/blob/master/include/fsl_dpmng.h | Github Open Source | Open Source | BSD-3-Clause | 2,019 | dce | liji15865292551 | C | Code | 275 | 658 | /*
* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2013 Freescale Semiconductor, Inc.
* All rights reserved.
*/
#ifndef __FSL_DPMNG_H
#define __FSL_DPMNG_H
/* Management Complex General API
* Contains general API for the Management Complex firmware
*/
struct fsl_mc_io;
/**
* Management Complex firmwar... | 52,085 |
https://github.com/sweetPoppy/jigsaw/blob/master/src/jigsaw/mobile-components/tabs/tab-pane.ts | Github Open Source | Open Source | MIT | null | jigsaw | sweetPoppy | TypeScript | Code | 96 | 377 | import {Component, ContentChild, Input, TemplateRef, Type, ViewChild} from '@angular/core';
import {IDynamicInstantiatable} from "../../common/common";
@Component({
selector: 'jigsaw-mobile-tab-pane, jm-tab-pane',
template: `
<ng-template #label>
{{title}}
<ng-content select="[j... | 12,551 |
https://github.com/yinggangli/resume-parse/blob/master/dest/start.sh | Github Open Source | Open Source | MIT | 2,016 | resume-parse | yinggangli | Shell | Code | 40 | 388 | #!/bin/sh
############# 简单参数设置说明 #############
##
## RESUME_DIR: 表示原始未处理的简历所在目录;
## EXCEL_DIR: 表示解析结果Excel文件存放的目录;
## OUTPUT_DIR: 表示已成功处理的简历被转移到的目录;
## OUTPUT: 表示是否将成功处理的简历进行转移,默认为:TRUE;
## SHOW_DETAIL:表示是否在终端显示更详细的处理日志,默认为:FALSE;
##
## 注意:如果目录路径中包含空格,请在参数设置时用双引号包裹参数值,如 "C:/Program Files/Res... | 51,818 |
https://github.com/GeorgeYan/emberjs_rails4/blob/master/config/initializers/session_store.rb | Github Open Source | Open Source | MIT | 2,013 | emberjs_rails4 | GeorgeYan | Ruby | Code | 16 | 49 | # Be sure to restart your server when you modify this file.
EmberjsRails4::Application.config.session_store :cookie_store, key: '_emberjs_rails4_session'
| 52,292 |
https://github.com/enrobyn/lookit-api/blob/master/studies/migrations/0038_auto_20171109_1749.py | Github Open Source | Open Source | MIT | null | lookit-api | enrobyn | Python | Code | 172 | 506 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-11-09 22:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('studies', '0037_response_date_created'),
]
operations = [
migrations.AddFie... | 47,751 |
https://github.com/mshavliuk/mshavliuk-signal-events-bundle/blob/master/src/DependencyInjection/Configuration.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,019 | mshavliuk-signal-events-bundle | mshavliuk | PHP | Code | 106 | 483 | <?php
declare(strict_types=1);
namespace Mshavliuk\MshavliukSignalEventsBundle\DependencyInjection;
use Mshavliuk\MshavliukSignalEventsBundle\Service\SignalConstants;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Componen... | 44,600 |
https://github.com/parthkhatri1998/sitegeist/blob/master/sitegeist/data/locations/loading.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | sitegeist | parthkhatri1998 | Python | Code | 367 | 1,639 | import csv
import datetime
import os
import zipfile
from django.conf import settings
from django.core.management import setup_environ
import boundaries
import census
import requests
import us
from sitegeist.data.conf import settings
from sitegeist import settings as django_settings
setup_environ(django_settings)
d... | 12,943 |
https://github.com/romainreignier/control-toolbox/blob/master/ct_models/include/ct/models/DoubleInvertedPendulum/generated/link_data_map.h | Github Open Source | Open Source | BSD-2-Clause | 2,022 | control-toolbox | romainreignier | C | Code | 216 | 806 | #ifndef IIT_CT_DOUBLEINVERTEDPENDULUM_LINK_DATA_MAP_H_
#define IIT_CT_DOUBLEINVERTEDPENDULUM_LINK_DATA_MAP_H_
#include "declarations.h"
namespace iit {
namespace ct_DoubleInvertedPendulum {
/**
* A very simple container to associate a generic data item to each link
*/
template<typename T> class LinkDataMap {
priva... | 30,616 |
https://github.com/sychaichangkun/Spyndra-ROS-Simulation/blob/master/spyndra_ros_simulation/include/spyndra/csv_gait_generator.cpp | Github Open Source | Open Source | MIT | 2,017 | Spyndra-ROS-Simulation | sychaichangkun | C++ | Code | 16 | 75 | /* csv_gait_generator.cpp
*
* Implemenatation of csv_gait_generator.h.
*/
#include "spyndra/csv_gait_generator.h"
namespace spyndra
{
void CsvGaitGenerator::foo(){}
}
| 33,508 |
https://github.com/cecepsprd/gokit-skeleton/blob/master/internal/handler/handler.go | Github Open Source | Open Source | Apache-2.0 | null | gokit-skeleton | cecepsprd | Go | Code | 35 | 263 | package handler
import (
"context"
"net/http"
httptransport "github.com/go-kit/kit/transport/http"
"github.com/cecepsprd/gokit-skeleton/commons/helpers"
"github.com/cecepsprd/gokit-skeleton/internal/endpoint"
"github.com/gorilla/mux"
)
func NewPersonHandler(ctx context.Context, ep endpoint.PersonEndpoint) htt... | 25,238 |
https://github.com/Sun-Joong/aifh/blob/master/vol2/vol2-java-examples/src/main/java/com/heatonresearch/aifh/examples/capstone/model/TitanicConfig.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | aifh | Sun-Joong | Java | Code | 386 | 714 | /*
* Artificial Intelligence for Humans
* Volume 2: Nature Inspired Algorithms
* Java Version
* http://www.aifh.org
* http://www.jeffheaton.com
*
* Code repository:
* https://github.com/jeffheaton/aifh
*
* Copyright 2014 by Jeff Heaton
*
* Licensed under the Apache License, Version 2.0 (the "License");
* y... | 8,571 |
https://github.com/pztrick/cFE/blob/master/fsw/cfe-core/src/inc/private/cfe_resourceid_internal.h | Github Open Source | Open Source | Apache-2.0 | null | cFE | pztrick | C | Code | 897 | 1,899 | /*
** GSC-18128-1, "Core Flight Executive Version 6.7"
**
** Copyright (c) 2006-2019 United States Government as represented by
** the Administrator of the National Aeronautics and Space Administration.
** All Rights Reserved.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not us... | 16,062 |
https://github.com/prince1456/resume/blob/master/pages/index.js | Github Open Source | Open Source | MIT | 2,019 | resume | prince1456 | JavaScript | Code | 58 | 196 | import withLayout from '../components/layout';
import Link from 'next/link'
const PostLink = props => (
<li>
<Link as={`/p/${props.id}`} href={`/post?title=${props.title}`}>
<a>{props.title}</a>
</Link>
</li>
)
const Home = () => {
return (
<div>
<ul>
<PostL... | 50,562 |
https://github.com/bitangxxx/igdb_api/blob/master/lib/igdb/representers/platform_representer.rb | Github Open Source | Open Source | MIT | 2,017 | igdb_api | bitangxxx | Ruby | Code | 35 | 113 | module Igdb::PlatformRepresenter
include Igdb::BaseRepresenter
property :id
property :name
property :slug
property :url
property :created_at
property :updated_at
property :logo, extend: Igdb::ImageRepresenter, class: OpenStruct
property :website
property :summary
property :alternative_name
pro... | 38,921 |
https://github.com/Nar000/fhir-net-api/blob/master/src/Hl7.Fhir.Specification/Validation/Slicing/PatternDiscriminator.cs | Github Open Source | Open Source | BSD-3-Clause | 2,022 | fhir-net-api | Nar000 | C# | Code | 88 | 247 | /*
* Copyright (c) 2019, Firely (info@fire.ly) and contributors
* See the file CONTRIBUTORS for details.
*
* This file is licensed under the BSD 3-Clause license
* available at https://raw.githubusercontent.com/FirelyTeam/firely-net-sdk/master/LICENSE
*/
using Hl7.Fhir.ElementModel;
using Hl7.Fhir.Model;
nam... | 7,536 |
https://github.com/getother/LeagueTrollBuild/blob/master/frontend/projects/admin/src/app/home/dashboard/global-error.service.spec.ts | Github Open Source | Open Source | MIT | 2,019 | LeagueTrollBuild | getother | TypeScript | Code | 138 | 493 | import { inject, TestBed } from '@angular/core/testing';
import { HttpClientTestingModule, HttpTestingController, RequestMatch } from '@angular/common/http/testing';
import { GlobalErrorService } from './global-error.service';
import { ActuatorResponse } from './actuator-response';
describe('GlobalErrorService', () =... | 35,526 |
https://github.com/microsoft/fhir-server/blob/master/test/Microsoft.Health.Fhir.Shared.Tests.E2E.Common/TestFhirClient.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla | 2,023 | fhir-server | microsoft | C# | Code | 134 | 482 | // -------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
// -----------------------------------------------------------... | 39,140 |
https://github.com/aviratna/vamp/blob/master/model/src/main/scala/io/vamp/model/parser/AstNode.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | vamp | aviratna | Scala | Code | 125 | 288 | package io.vamp.model.parser
sealed trait AstNode
trait Operand extends AstNode
sealed trait Constant extends AstNode
sealed trait Operation extends AstNode
case class Or(operand1: AstNode, operand2: AstNode) extends Operation {
override def equals(that: Any): Boolean = that match {
case Or(op1, op2) ⇒ (op1 ... | 18,353 |
https://github.com/gottsch/gottsch-minecraft-dungeonsengine/blob/master/DungeonsEngine-1.12.2/src/com/someguyssoftware/dungeonsengine/chest/ChestContainer.java | Github Open Source | Open Source | MIT | null | gottsch-minecraft-dungeonsengine | gottsch | Java | Code | 319 | 868 | /**
*
*/
package com.someguyssoftware.dungeonsengine.chest;
import java.util.ArrayList;
import java.util.List;
import com.google.gson.annotations.Since;
import com.someguyssoftware.gottschcore.random.IRandomProbabilityItem;
/**
* @author Mark Gottschling on Jul 4, 2016
*
*/
public class ChestContainer implemen... | 12,918 |
https://github.com/subhash841/crowdwisdom.co.in/blob/master/application/core/Base_Exceptions.php | Github Open Source | Open Source | MIT | null | crowdwisdom.co.in | subhash841 | PHP | Code | 58 | 116 | <?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
class Base_Exceptions extends CI_Exceptions {
function __construct() {
parent::__construct();
... | 24,714 |
https://github.com/blnz/palomar/blob/master/src/main/java/com/blnz/xsl/expr/ArrayNodeIterator.java | Github Open Source | Open Source | MIT | null | palomar | blnz | Java | Code | 65 | 185 | // $Id: ArrayNodeIterator.java 122 2005-04-05 01:22:51Z blindsey $
package com.blnz.xsl.expr;
import com.blnz.xsl.om.*;
/**
*
*/
class ArrayNodeIterator implements NodeIterator
{
private int i;
private int len;
private Node[] nodes;
/**
*
*/
ArrayNodeIterator(Node[] nodes, int start... | 34 |
https://github.com/hardog/tinymonit/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,016 | tinymonit | hardog | Ignore List | Code | 32 | 78 | # Logs
logs
*.log
npm-debug.log*
# Runtime data
cache/
pids
*.pid
*.seed
.DS_Store
# Coverage directory used by tools like istanbul
coverage/
# Dependency directories
node_modules
# Optional npm cache directory
.npm
| 19,360 |
https://github.com/gusbmurphy/Personal-Site/blob/master/src/pages/images.js | Github Open Source | Open Source | MIT | null | Personal-Site | gusbmurphy | JavaScript | Code | 72 | 207 | import React from "react"
// import Text from "../components/text"
import { useStaticQuery } from "gatsby"
import { graphql } from "gatsby"
const Images = () => {
const data = useStaticQuery(graphql`
query CloudinaryImages {
allCloudinaryMedia {
edges {
node {
secure_url
... | 24,413 |
https://github.com/SalZaki/AlphaTravels/blob/master/Alpha.Travel.Application/Destinations/CommandHandlers/UpdateDestinationHandler.cs | Github Open Source | Open Source | MIT | 2,021 | AlphaTravels | SalZaki | C# | Code | 85 | 296 | namespace Alpha.Travel.Application.Destinations.CommandHandlers
{
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Commands;
using Exceptions;
using Persistence;
using MediatR;
public class UpdateDestinationHandler : IRequestHandler<UpdateDestination, Unit... | 24,848 |
https://github.com/liyi1234/node-fur/blob/master/lib/mixins/hash_attr_mix.js | Github Open Source | Open Source | MIT | 2,015 | node-fur | liyi1234 | JavaScript | Code | 89 | 220 | /**
* Mixin for hash attr.
* @memberof module:fur/lib/mixins
* @inner
* @mixin hashAttrMix
*/
"use strict";
module.exports = Object.freeze(
/** @lends hashAttrMix */
{
/** Value of hash */
_hash: undefined,
/**
* Get hash value.
* @function module:~NameStruct.pro... | 49,237 |
https://github.com/mdedetrich/quill-pg/blob/master/quill-pg-async/src/main/scala/quill/pg/async/JsonbExtensions.scala | Github Open Source | Open Source | Apache-2.0 | 2,020 | quill-pg | mdedetrich | Scala | Code | 57 | 206 | package quill.pg.async
import io.getquill.PostgresDialect
import io.getquill.context.async.AsyncContext
import quill.pg.PostgresTypeConverter
trait JsonbExtensions extends JsonExtensions { this: AsyncContext[PostgresDialect, _, _] =>
def jsonbSet = quote { (json: JsValue, path: Traversable[String], newValue: JsVal... | 9,071 |
https://github.com/rich-iannone/DiagrammeR/blob/master/R/add_nodes_from_df_cols.R | Github Open Source | Open Source | MIT | 2,023 | DiagrammeR | rich-iannone | R | Code | 930 | 2,041 | #' Add nodes from distinct values in data frame columns
#'
#' @description
#'
#' Add new nodes to a graph object of class `dgr_graph` using distinct values
#' from one or more columns in a data frame. The values will serve as node
#' labels and the number of nodes added depends on the number of distinct values
#' found... | 48,805 |
https://github.com/GSGBen/pstemplate/blob/master/Tests/PSTemplate.Tests.ps1 | Github Open Source | Open Source | MIT | 2,020 | pstemplate | GSGBen | PowerShell | Code | 625 | 1,681 | Import-Module "$PSScriptRoot\..\PSTemplate" -Force -DisableNameChecking
#region----------TEST DATA
$MultilineStringTemplate = @"
line 1: {{Token1}}
line 2: {{Token2}}
"@
$MultilineStringWithBlanksTemplate = @"
line 1: {{Token1}}
line 2: {{Token2}}
"@
$HashTableWithAllKeys = @{
Token1 = "Value1"... | 14,716 |
https://github.com/xvela/code-vault/blob/master/source/vtypes/_unix/vtypes_platform.cpp | Github Open Source | Open Source | MIT | 2,019 | code-vault | xvela | C++ | Code | 268 | 818 | /*
Copyright c1997-2014 Trygve Isaacson. All rights reserved.
This file is part of the Code Vault version 4.1
http://www.bombaydigital.com/
License: MIT. See LICENSE.md in the Vault top level directory.
*/
/** @file */
#include "vtypes.h"
#include "vstring.h"
#include "vtypes_internal_platform.h"
#include <errno.h>... | 44,269 |
https://github.com/uedercosta/sysaggro-vacinacao/blob/master/src/main/java/br/com/sysagro/controllers/FazendaController.java | Github Open Source | Open Source | MIT | null | sysaggro-vacinacao | uedercosta | Java | Code | 232 | 1,232 | package br.com.sysagro.controllers;
import java.io.IOException;
import java.sql.SQLException;
import java.util.List;
import java.util.Optional;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.lang.... | 10,109 |
https://github.com/lobrien/TideMonkey/blob/master/Xtide/xtide-2.14/xxReconfigurable.hh | Github Open Source | Open Source | MIT | 2,019 | TideMonkey | lobrien | C++ | Code | 153 | 318 | // $Id: xxReconfigurable.hh 3960 2011-07-31 20:16:24Z flaterco $
/* xxReconfigurable That which implements reconfigure(), the callback used
by xxMultiChoice.
Copyright (C) 2011 David Flater.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General ... | 34,024 |
https://github.com/i-kitchen/KingsCorner/blob/master/js/objects/card.js | Github Open Source | Open Source | MIT | null | KingsCorner | i-kitchen | JavaScript | Code | 239 | 619 | function Card(type) {
var types = type.split("_");
this.id = type;
this.number = types[0];
this.suit = types[1];
this.svgId = "templates/svg-cards-indented.svg#"+type;
this.svgEle;
this.oppositeSuits = [];
// Determine opposite suits
if(this.suit == 'heart' || this.suit == 'diamond'... | 49,409 |
https://github.com/AhmedSaladin/IBM-node.js-learning-path/blob/master/Unit-6/controllers/solution/items-handler.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | IBM-node.js-learning-path | AhmedSaladin | JavaScript | Code | 297 | 702 | /*
Copyright 2018 Makoto Consulting Group, 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
Unless required by applicable law o... | 52,859 |
https://github.com/StruggleDreamLin/GankGirl/blob/master/app/src/main/java/com/practice/dreamlin/base/BaseActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | GankGirl | StruggleDreamLin | Java | Code | 54 | 196 | package com.practice.dreamlin.base;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import butterknife.ButterKnife;
/**
* Created by dreamlin on 2017/12/19.
*/
public abstract class BaseActivity<P extends BasePresenter... | 24,304 |
https://github.com/qwe321q3/jvm/blob/master/jvm-introduction/src/main/java/com/jvm/heap/ReferenceCountingTest.java | Github Open Source | Open Source | MIT | null | jvm | qwe321q3 | Java | Code | 98 | 510 | package com.jvm.heap;
/**
* 增加jvm判断的对象是否是垃圾对象的方法
*
* 测试GC,判断对象是否可用时,是否使用的引用计数法
*
* 结果:对象循环依赖,但是还会被GC给回收了,说明jvm并未使用引用计数法来的判断哪些对象是垃圾对象
*
* JVM的如何判断对象是否可用?
* 使用的了根可达性算法。
* 通过GC Roots根 ,来向下找对象是否可用
*
* GC Roots根是什么?
* 1、可以是局部变量表中的对象引用
* 2、可以是方法区静态对象引用
* 3、可以是方法区常量对象引用
*
* 如何判断对象是否是垃圾对象?
* 1、对象的不可触及(通过GC R... | 33,933 |
https://github.com/bymi15/SaveYoutube/blob/master/routes/index.js | Github Open Source | Open Source | MIT | null | SaveYoutube | bymi15 | JavaScript | Code | 446 | 1,418 | var express = require('express');
var fs = require('fs');
var ytdl = require('ytdl-core');
var ffmpeg = require('fluent-ffmpeg');
var os = require('os');
const ytlist = require('youtube-playlist');
var url = require('url');
var sanitize = require('sanitize-filename');
const path = require('path');
var pathToFfmpeg = re... | 15,601 |
https://github.com/OpenRIAServices/OpenRiaServices/blob/master/src/OpenRiaServices.Client/Framework/ComplexObject.INotifyDataErrorInfo.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | OpenRiaServices | OpenRIAServices | C# | Code | 281 | 717 | using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
using System.Runtime.Serialization;
namespace OpenRiaServices.Client
{
public abstract partia... | 22,161 |
https://github.com/JaineDoerzbacher/orange-talents-05-template-casa-do-codigo/blob/master/src/main/java/casadocodigo/casadocodigo/util/validators/AutorValidator.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | orange-talents-05-template-casa-do-codigo | JaineDoerzbacher | Java | Code | 90 | 352 | package casadocodigo.casadocodigo.util.validators;
import casadocodigo.casadocodigo.dtos.AutorDTO;
import casadocodigo.casadocodigo.gateway.repositories.AutorRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.Errors;
import org.springframework.validation.Va... | 19,524 |
https://github.com/ag-sbogd/mono-changelog/blob/master/core/core/src/features/chip/components/Chip.tsx | Github Open Source | Open Source | MIT | null | mono-changelog | ag-sbogd | TypeScript | Code | 220 | 587 | import React, { SVGProps } from 'react';
import cn from 'classnames';
import { formatChipValue, getChipColor } from '../chip.util';
import { ChipImage, TChipImageProps } from './ChipImage';
import './Chip.scss';
export type TChipProps = {
value?: number;
chips?: Array<number>;
formattedValue?: string;
disab... | 16,237 |
https://github.com/MaribelHearn/maribelhearn.com/blob/master/assets/tools/tools_code.php | Github Open Source | Open Source | MIT | 2,022 | maribelhearn.com | MaribelHearn | PHP | Code | 297 | 826 | <?php
function tl_term(string $term, string $lang) {
if ($lang == 'Japanese') {
$term = trim($term);
switch ($term) {
case 'Flag of the United Kingdom': return 'イギリスの国旗';
case 'Flag of the United States': return 'アメリカ合衆国の国旗';
case 'Flag of Japan': return '日本の国旗';
... | 48,354 |
https://github.com/urbantumbleweed/food-truck-locator/blob/master/src/client/test/actions/user-location.spec.js | Github Open Source | Open Source | MIT | 2,016 | food-truck-locator | urbantumbleweed | JavaScript | Code | 356 | 920 | 'use strict';
import expect, { createSpy, spyOn } from 'expect' //The assertion library
const geolocate = require('mock-geolocation'); //mock out the geolocation api
import configureMockStore from 'redux-mock-store' //needed because dispatch is property of a store
import thunk from 'redux-thunk' //the middleware that ... | 25,167 |
https://github.com/tesonep/Ring2/blob/master/src/Ring2-Core.package/RG2ReadOnlyBackend.class/instance/cleanClassVariablesFor..st | Github Open Source | Open Source | MIT | 2,018 | Ring2 | tesonep | null | Spoken | 5 | 20 | class
cleanClassVariablesFor: aRG2Behavior
self readOnlyError. | 20,502 |
https://github.com/mail-ru-im/im-desktop/blob/master/gui/main_window/history_control/complex_message/QuoteBlock.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | im-desktop | mail-ru-im | C | Code | 360 | 1,238 | #pragma once
#include "GenericBlock.h"
#include "QuoteBlockLayout.h"
#include "../../../types/message.h"
#include "../../../controls/TextUnit.h"
UI_NS_BEGIN
class LabelEx;
class PictureWidget;
class ContactAvatarWidget;
UI_NS_END
UI_COMPLEX_MESSAGE_NS_BEGIN
enum class BlockSelectionType;
class QuoteBlock final ... | 41,451 |
https://github.com/raihan-muhammad/simple-absensi-app/blob/master/index.php | Github Open Source | Open Source | MIT | 2,021 | simple-absensi-app | raihan-muhammad | PHP | Code | 436 | 2,665 | <?php include 'koneksi.php';?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" name="viewport">
<meta name="author" content="Toko Zizah">
<meta name="description" content="Toko Zizah adalah aplikasi pemesanan baju"... | 41,132 |
https://github.com/csharplus/CarND-Kidnapped-Vehicle-Project/blob/master/src/particle_filter.cpp | Github Open Source | Open Source | MIT | 2,019 | CarND-Kidnapped-Vehicle-Project | csharplus | C++ | Code | 1,059 | 2,935 | /**
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: Tiffany Huang
*/
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include "helper_functions.h"
using namespace st... | 48,092 |
https://github.com/famile/YXBaseVCTool/blob/master/YXBaseProject/YXBaseProject/ViewController.h | Github Open Source | Open Source | Apache-2.0 | 2,019 | YXBaseVCTool | famile | C | Code | 28 | 84 | //
// ViewController.h
// YXBaseProject
//
// Created by 李涛 on 2019/5/15.
// Copyright © 2019 Tao_Lee. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
| 6,795 |
https://github.com/mathieurodic/hamsterdb/blob/master/src/3btree/btree_records_inline.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | hamsterdb | mathieurodic | C | Code | 869 | 2,352 | /*
* Copyright (C) 2005-2015 Christoph Rupp (chris@crupp.de).
*
* 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 b... | 44,389 |
https://github.com/harumidiv/toio-controller/blob/master/ToioController/Domain/Bluetooth/Cube.swift | Github Open Source | Open Source | MIT | 2,021 | toio-controller | harumidiv | Swift | Code | 461 | 1,542 | //
// Cube.swift
// ToioController
//
// Created by 佐川晴海 on 2019/06/15.
// Copyright © 2019 佐川晴海. All rights reserved.
//
import CoreBluetooth
import RxBluetoothKit
import RxSwift
class Cube: ToioPeripheral {
private let disposeBag = DisposeBag()
private var connection: Disposable?
var peripheral: Pe... | 27,916 |
https://github.com/rvs101/Curso_de_Programacion_Java/blob/master/T5ProyectoPiedraPapelTijera/src/programa/T5JugadorMaquina.java | Github Open Source | Open Source | MIT | null | Curso_de_Programacion_Java | rvs101 | Java | Code | 283 | 853 | package programa;
/**
* Jugador Maquina
*
* @author RVS
*
*/
public class T5JugadorMaquina {
private static String maquinaArma = "";
private static final String maquinaNombre = "Jugador-Maquina";
private static int maquinaGanadas = 0;
private static int maquinaPerdidas = 0;
private static int maquinaEmpat... | 53,054 |
https://github.com/yisany/codeGenerator/blob/master/generator-web/src/main/java/com/yis/generator/entity/template/DataTypeMap.java | Github Open Source | Open Source | MIT | null | codeGenerator | yisany | Java | Code | 102 | 447 | package com.yis.generator.entity.template;
import java.util.HashMap;
import java.util.Map;
/**
* @author by yisany on 2020/05/19
*/
public class DataTypeMap {
public static final Map<String, String> MYSQL_TYPE_MAP = new HashMap<String, String>() {{
put("CHAR", "String");
put("VARCHAR", "String"... | 13,268 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.