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/saleebm/hds-backend/blob/master/src/components/Layout/nav-drawer.tsx | Github Open Source | Open Source | 0BSD | 2,020 | hds-backend | saleebm | TypeScript | Code | 810 | 3,102 | import Link, { LinkProps } from 'next/link'
import React, { forwardRef, Fragment, useCallback, useState } from 'react'
import { bindActionCreators, Dispatch } from 'redux'
import { useRouter } from 'next/router'
import { connect } from 'react-redux'
import clsx from 'clsx'
import debounce from 'lodash.debounce'
import... | 19,818 |
https://github.com/prymskiwen/freeports-trading-platform-backend/blob/master/src/module/api-v1/user/dto/public-key/get-user-public-key-response.dto.ts | Github Open Source | Open Source | MIT | 2,022 | freeports-trading-platform-backend | prymskiwen | TypeScript | Code | 17 | 63 | import { UserPublicKeyStatus } from 'src/schema/user/embedded/user-public-key.embedded';
export class GetUserPublicKeyResponseDto {
id: string;
key: string;
status: UserPublicKeyStatus;
}
| 1,763 |
https://github.com/manashmandal/OthersProject/blob/master/Shanto1203031/shaanto_fixed/shaanto_fixed.ino | Github Open Source | Open Source | MIT | 2,016 | OthersProject | manashmandal | C++ | Code | 367 | 1,006 | //#include <Keypad.h>
//#include "SevenSegment.h"
//
//SevenSeg disp(11, 7, 3, 5, 6, 10, 2);
//
//const int numOfDigits = 4;
//
//int digitPins[numOfDigits] = {13, 8, 9, 12};
//
//const byte ROWS = 4;
//const byte COLS = 4;
//
//char inputs[] = {
// '0', '0', '0', '0'
//};
//
//
//char keys[ROWS][COLS] = {
// {'1', '... | 34,168 |
https://github.com/avr-aics-riken/HIVE/blob/master/tools/devops/build.sh | Github Open Source | Open Source | MIT | 2,018 | HIVE | avr-aics-riken | Shell | Code | 6 | 21 | #!/bin/sh
docker build -t hive-linux-dev .
| 27,501 |
https://github.com/GooG2e/Ass-Loader/blob/master/Demo/Subtitle Editor/Subtitle Editor/ViewModel/EditorViewModelBase.cs | Github Open Source | Open Source | Apache-2.0 | 2,017 | Ass-Loader | GooG2e | C# | Code | 91 | 292 | using GalaSoft.MvvmLight;
using SubtitleEditor.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SubtitleEditor.ViewModel
{
abstract class EditorViewModelBase : ViewModelBase
{
public Editor... | 17,335 |
https://github.com/vvydier/ClaimAcademy/blob/master/web1/WebContent/error.jsp | Github Open Source | Open Source | MIT | null | ClaimAcademy | vvydier | null | Spoken | 33 | 116 | <%@ page isErrorPage = "true"
import = "java.io.*"
contentType = "text/plain" %>
Message:
<%= exception.getMessage() %>
StackTrace:
<%
StringWriter stringWriter = new StringWriter();
PrintWriter printWriter = new PrintWriter(stringWriter);
exception.printStackTrace(printWriter);
out.println(stringWriter);
... | 33,037 |
https://github.com/galileo/Typer/blob/master/src/Galileo/SimpleBet/MainBundle/Service/Provider/PlayerPointsProviderInterface.php | Github Open Source | Open Source | MIT | null | Typer | galileo | PHP | Code | 22 | 79 | <?php
namespace Galileo\SimpleBet\MainBundle\Service\Provider;
use Galileo\SimpleBet\ModelBundle\Entity\Player;
interface PlayerPointsProviderInterface
{
/**
* @param Player $player
* @return mixed
*/
public function playerPoints(Player $player);
}
| 22,466 |
https://github.com/vendure-ecommerce/gatsby-storefront/blob/master/src/pages/index.tsx | Github Open Source | Open Source | MIT | 2,021 | gatsby-storefront | vendure-ecommerce | TypeScript | Code | 102 | 292 | import { graphql, Link } from 'gatsby';
import React from 'react';
import Layout from '../components/layout';
import { ProductCard } from '../components/ProductCard/ProductCard';
import SEO from '../components/seo';
import styles from './home.module.scss';
const IndexPage = ({ data }) => (
<Layout>
<SEO title=... | 50,347 |
https://github.com/suluner/tencentcloud-sdk-cpp/blob/master/tdmq/include/tencentcloud/tdmq/v20200217/model/RocketMQTopic.h | Github Open Source | Open Source | Apache-2.0 | null | tencentcloud-sdk-cpp | suluner | C | Code | 399 | 1,607 | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 29,342 |
https://github.com/mawosoft/Mawosoft.Extensions.BenchmarkDotNet/blob/master/src/Mawosoft.Extensions.BenchmarkDotNet/ApiCompat/GenerateResultWrapper.cs | Github Open Source | Open Source | MIT | null | Mawosoft.Extensions.BenchmarkDotNet | mawosoft | C# | Code | 133 | 519 | // Copyright (c) 2021-2022 Matthias Wolf, Mawosoft.
using System;
using System.Collections.Generic;
using System.Reflection;
using BenchmarkDotNet.Toolchains;
using BenchmarkDotNet.Toolchains.Results;
namespace Mawosoft.Extensions.BenchmarkDotNet.ApiCompat
{
internal static class GenerateResultWrapper
{
... | 18,667 |
https://github.com/stefanofabi/drops-lims/blob/master/database/seeders/SocialWorkSeeder.php | Github Open Source | Open Source | MIT | 2,020 | drops-lims | stefanofabi | PHP | Code | 48 | 139 | <?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\SocialWork;
class SocialWorkSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
SocialWork::insert([
['name' => 'Social work #... | 40,488 |
https://github.com/RareAMV/WeebIRC/blob/master/OLD/Source/WeebIRC/Form1.cs | Github Open Source | Open Source | MIT | 2,021 | WeebIRC | RareAMV | C# | Code | 2,286 | 7,915 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Threading;
using System.Net;
using System.Diagnostics;
using SimpleIRCLib;
... | 24,937 |
https://github.com/PetarMetodiev/Telerik-Homeworks/blob/master/OOP/02.Defining-Classes-Part-2/DefiningClasses-Part 2/01.Points/PathStorage.cs | Github Open Source | Open Source | MIT | null | Telerik-Homeworks | PetarMetodiev | C# | Code | 125 | 379 | namespace Points
{
using System;
using System.IO;
public static class PathStorage
{
public static void SaveToFile(Path inputPath, string fileName)
{
StreamWriter writer = new StreamWriter(fileName + ".txt");
using (writer)
{
foreach (... | 26,934 |
https://github.com/OLIMEX/DIY-LAPTOP/blob/master/SOFTWARE/A64-TERES/linux-a64/drivers/net/ethernet/adi/Makefile | Github Open Source | Open Source | Linux-syscall-note, GPL-2.0-only, GPL-1.0-or-later, LicenseRef-scancode-free-unknown, Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,023 | DIY-LAPTOP | OLIMEX | Makefile | Code | 12 | 36 | #
# Makefile for the Blackfin device drivers.
#
obj-$(CONFIG_BFIN_MAC) += bfin_mac.o
| 47 |
https://github.com/maitoo/laravel1/blob/master/resources/views/jissyu/jissyu3_2/input.blade.php | Github Open Source | Open Source | MIT | null | laravel1 | maitoo | PHP | Code | 52 | 297 | <html>
<head>
<title>Jissyu/Index</title>
<style>
body {font-size:16pt; color:#000; }
h1 {font-size:50pt; text-align:right; color:#000;
margin:-20px 0px -30px 0px; letter-spacing:-4pt;}
</style>
</head>
<body>
<h1>Blade/Index</h1>
<p>{{$msg}}</p>
<form method="POST" action="/jissyu... | 7,429 |
https://github.com/alilakda/Eva/blob/master/test/models/test_frame_batch.py | Github Open Source | Open Source | Apache-2.0 | null | Eva | alilakda | Python | Code | 310 | 1,558 | import unittest
import numpy as np
from src.models.storage.batch import FrameBatch
from src.models.storage.frame import Frame
NUM_FRAMES = 10
class FrameBatchTest(unittest.TestCase):
def test_set_outcomes_method_should_set_the_predictions_with_udf_name(
self):
batch = FrameBatch(frames=[Fr... | 6,971 |
https://github.com/helloextend/extaws/blob/master/src/lib/extaws.ts | Github Open Source | Open Source | MIT | 2,020 | extaws | helloextend | TypeScript | Code | 2,345 | 6,407 | import axios, {AxiosError, AxiosInstance, AxiosResponse} from 'axios'
import {CookieJar} from 'tough-cookie'
import axiosCookieJarSupport from 'axios-cookiejar-support'
import * as htmlparser from 'htmlparser2'
import {STS} from 'aws-sdk'
import * as et from 'elementtree'
import * as soup from './soup'
import {sleep, w... | 21,440 |
https://github.com/bionikspoon/sumo-survey/blob/master/client/app/services/Stats/Stats.factory.spec.js | Github Open Source | Open Source | MIT | null | sumo-survey | bionikspoon | JavaScript | Code | 439 | 1,291 | /* eslint-env angular/mocks, mocha */
/* eslint no-unused-expressions:0 */
import angular from 'angular';
import { expect } from 'chai';
import StatsFactory from './Stats.factory';
import mockSummaryResponse from './__mock/summaryResponse.json';
import mockQuestionResponse from './__mock/questionResponse.json';
const {... | 36,278 |
https://github.com/ethanqtle/C_4_Everyone_Fund/blob/master/ABC4/ch13/01_improved.c | Github Open Source | Open Source | BSD-2-Clause | null | C_4_Everyone_Fund | ethanqtle | C | Code | 29 | 61 | // A first C++ program illustrating output.
//
// Title: Improved
// Author: Richmond Q. Programmer
#include <iostream.h>
int main()
{
cout << "C++ is an improved C.\n";
}
| 52,359 |
https://github.com/Raha2071/pamasa/blob/master/app/Models/BrancheModel.php | Github Open Source | Open Source | MIT | null | pamasa | Raha2071 | PHP | Code | 22 | 69 | <?php namespace App\Models;
use CodeIgniter\Model;
class BrancheModel extends Model{
protected $table = "branche";
protected $allowedFields = ["names","employeeId","location","created_at","status"];
protected $useTimestamps = true;
} | 15,763 |
https://github.com/GabrielGobbiF/landsolucoes/blob/master/app/Models/VehicleActivities.php | Github Open Source | Open Source | MIT | null | landsolucoes | GabrielGobbiF | PHP | Code | 81 | 385 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Spatie\Activitylog\Traits\LogsActivity;
class VehicleActivities extends Model
{
use HasFactory, LogsActivity;
protected $fillable = [
'title',
'description',
... | 14,269 |
https://github.com/niwey2010/nacos-coredns-plugin/blob/master/nacos/dns_cache_test.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | nacos-coredns-plugin | niwey2010 | Go | Code | 134 | 302 | /*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
* 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... | 17,063 |
https://github.com/dev-project-info/e-grocery/blob/master/routes/api/bazarlist.php | Github Open Source | Open Source | MIT | null | e-grocery | dev-project-info | PHP | Code | 10 | 225 | <?php
Route::get('bazar_list','ApiController@bazarList');
Route::get('modify_bazar_list/{token}','ApiController@modifyBazarList');
Route::get('user_bazar_list/{token}','ApiController@modifiedBazarlist');
Route::post('add_bazarlist_product/{token}','ApiController@addBazarList');
Route::delete('single_product_clear/{tok... | 54,290 |
https://github.com/mtaghiza/tinyos-main-1/blob/master/tos/platforms/ucprotonb/chips/rf212/HplRF212C.nc | Github Open Source | Open Source | BSD-3-Clause | null | tinyos-main-1 | mtaghiza | null | Spoken | 263 | 678 | /*
* Copyright (c) 2007, Vanderbilt University
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyright notice, the following
* two paragraphs... | 15,910 |
https://github.com/roland1993/MA/blob/master/Image Registration Experiments/test_registration.m | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,020 | MA | roland1993 | MATLAB | Code | 428 | 1,290 | %--------------------------------------------------------------------------
% This file is part of my master's thesis entitled
% 'Low rank- and sparsity-based image registration'
% For the whole project see
% https://github.com/roland1993/MA
% If you have questions contact me at
% roland.h... | 27,940 |
https://github.com/buzzingnat/wikipedia-book-generator/blob/master/src/client/features/books/booksAPI.ts | Github Open Source | Open Source | MIT | null | wikipedia-book-generator | buzzingnat | TypeScript | Code | 102 | 367 | /*
fetch('/api/books/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: 'New Book',
contents: 'The contents of the book.'
})
});
*/
const SERVER_URL = 'http://localhost:8080';
export async function sendSavedBook(title: string, contents: string) {
return ... | 1,219 |
https://github.com/iris-contrib/pongo2/blob/master/template_tests/variables.tpl | Github Open Source | Open Source | MIT | 2,019 | pongo2 | iris-contrib | null | Spoken | 45 | 105 | {{ 1 }}
{{ -5 }}
{{ "hallo" }}
{{ true }}
{{ false }}
{{ simple.uint }}
{{ simple.nil }}
{{ simple.str }}
{{ simple.bool_false }}
{{ simple.bool_true }}
{{ simple.uint }}
{{ simple.uint|integer }}
{{ simple.uint|float }}
{{ simple.multiple_item_list.10 }}
{{ simple.multiple_item_list.4 }}
| 43,608 |
https://github.com/loic5/abaplint/blob/master/packages/core/src/abap/2_statements/statements/data_end.ts | Github Open Source | Open Source | MIT | 2,021 | abaplint | loic5 | TypeScript | Code | 56 | 166 | import {IStatement} from "./_statement";
import {seq, alt, optPrio} from "../combi";
import {DefinitionName, ComponentName} from "../expressions";
import {IStatementRunnable} from "../statement_runnable";
export class DataEnd implements IStatement {
public getMatcher(): IStatementRunnable {
const common = seq("... | 48,486 |
https://github.com/SCECcode/CFM_web/blob/master/schema/CFM6/obj/1000m/OCBA-NIRC-DANA-Newport_Inglewood_fault-CFM5_1000m.ts | Github Open Source | Open Source | BSD-3-Clause | 2,023 | CFM_web | SCECcode | TypeScript | Code | 8,266 | 25,043 | GOCAD TSurf 1
HEADER {
name:OCBA-NIRC-DANA-Newport_Inglewood_fault-CFM5_1000m
*visible:true
*solid*color:0.596738 0.945778 0.029311 1
}
GOCAD_ORIGINAL_COORDINATE_SYSTEM
NAME Default
AXIS_NAME "X" "Y" "Z"
AXIS_UNIT "m" "m" "m"
ZPOSITIVE Elevation
END_ORIGINAL_COORDINATE_SYSTEM
TFACE
VRTX 1 417705.1796875 3718205.25 -10... | 21,409 |
https://github.com/LykkeCity/Lykke.Service.LiquidityEngine/blob/master/src/Lykke.Service.LiquidityEngine.Domain/Repositories/IInternalTradeRepository.cs | Github Open Source | Open Source | MIT | 2,023 | Lykke.Service.LiquidityEngine | LykkeCity | C# | Code | 27 | 112 | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Lykke.Service.LiquidityEngine.Domain.Repositories
{
public interface IInternalTradeRepository
{
Task<IReadOnlyCollection<InternalTrade>>GetAsync(DateTime startDate, DateTime endDate, int limit);
Tas... | 48,330 |
https://github.com/shiryel/nixpkgs/blob/master/pkgs/tools/admin/google-cloud-sdk/data.nix | Github Open Source | Open Source | MIT | 2,021 | nixpkgs | shiryel | null | Spoken | 72 | 579 | # DO NOT EDIT! This file is generated automatically by update.sh
{ }:
{
version = "370.0.0";
googleCloudSdkPkgs = {
x86_64-linux =
{
url = "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-370.0.0-linux-x86_64.tar.gz";
sha256 = "0qkgny15k8bni5zwkqqcn9h7nzy9g71ykb... | 28,762 |
https://github.com/achavan51/googleads-java-lib-master/blob/master/modules/adwords_axis/src/main/java/com/google/api/ads/adwords/axis/v201702/cm/AttributionModelType.java | Github Open Source | Open Source | Apache-2.0 | null | googleads-java-lib-master | achavan51 | Java | Code | 389 | 1,158 | // Copyright 2017 Google Inc. 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.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... | 9,272 |
https://github.com/elmuerte/UT2004-Firebug/blob/master/Classes/fbSmallSmoke.uc | Github Open Source | Open Source | MIT | null | UT2004-Firebug | elmuerte | null | Spoken | 36 | 124 | /*******************************************************************************
fbSmallSmoke
Creation date: 07/10/2005 10:55
Copyright (c) 2005, elmuerte
<!-- $Id: fbSmallSmoke.uc,v 1.1 2005/10/07 09:58:14 elmuerte Exp $ -->
*****************************************************************************... | 11,601 |
https://github.com/ArturoRosales113/FDS/blob/master/database/seeds/DishesTableSeeder.php | Github Open Source | Open Source | MIT | null | FDS | ArturoRosales113 | PHP | Code | 121 | 443 | <?php
use Illuminate\Database\Seeder;
use App\Models\Category;
use Carbon\Carbon;
class DishesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
// If Default category doesn't exists
if (Category::where('name', '=', 'Defaul... | 49,249 |
https://github.com/jam830/GreenPassValidator/blob/master/GreenPass.sln | Github Open Source | Open Source | MIT | 2,021 | GreenPassValidator | jam830 | null | Spoken | 121 | 796 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31402.337
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GreenPass", "GreenPass\GreenPass.csproj", "{8948FD6E-D54A-42FA-9C16-C8B0057D55E8}"
EndProject
Proje... | 53,245 |
https://github.com/usemarkup/chef-config-driven-helper/blob/master/libraries/util.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,016 | chef-config-driven-helper | usemarkup | Ruby | Code | 41 | 134 | module ConfigDrivenHelper
module Util
extend self
# though this is used in this cookbook, it may also be used externally as well
def immutablemash_to_hash(immutable_mash)
result = immutable_mash.to_hash.dup
result.each_pair do |key, value|
if value.is_a?(Chef::Node::ImmutableMash)
... | 5,796 |
https://github.com/rhyskeepence/reprobate/blob/master/src/main/scala/app/server/RimServerActor.scala | Github Open Source | Open Source | Apache-2.0 | 2,018 | reprobate | rhyskeepence | Scala | Code | 98 | 319 | package app.server
import app.restlike.rim.Model
import im.mange.jetpac.Bangable
import im.mange.jetpac.comet.{MessageCapturingLiftActor, MulticastLiftActor, PushToAllSubscribers, Subscriber}
import net.liftweb.actor.LiftActor
import server.tea
class RimServerActor extends MessageCapturingLiftActor with MulticastLift... | 24,504 |
https://github.com/noironetworks/group-based-policy/blob/master/gbpservice/neutron/db/migration/alembic_migrations/versions/ef5a69e5bcc5_nfd_cluster_mapping_info.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | group-based-policy | noironetworks | Python | Code | 161 | 554 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | 39,221 |
https://github.com/Sunflower-Reality-Labs/aframe-srl-utils/blob/master/src/components/edit-geometry.js | Github Open Source | Open Source | BSD-2-Clause | null | aframe-srl-utils | Sunflower-Reality-Labs | JavaScript | Code | 141 | 458 | /**
* SRL components for geometry we can edit
*/
AFRAME.registerGeometry('srl-edit-box', {
schema: {
},
init: function (data) {
this.geometry = new THREE.Geometry();
this.geometry.vertices.push(
new THREE.Vector3(-1, -1, 1), // 0
new THREE.Vector3( 1, -1, 1), // 1
new THREE.Vect... | 12,443 |
https://github.com/leolb-aphp/harbor/blob/master/src/portal/src/lib/components/push-image/push-image.component.spec.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | harbor | leolb-aphp | TypeScript | Code | 148 | 599 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { PushImageButtonComponent } from './push-image.component';
import { CopyInputComponent } from './copy-input.component';
import { InlineAlertComponent } from '../inline-alert/inline-alert.component';
import { SERVICE_CONFIG, IServiceConf... | 53,512 |
https://github.com/figmentdragon/MYTHEME/blob/master/inc/wp-toolkit/gutenberg-gallery-carousel.php | Github Open Source | Open Source | MIT | null | MYTHEME | figmentdragon | PHP | Code | 176 | 608 | <?php
/**
* Outputs Gutenberg's built-in gallery block as a Bootstrap 4 carousel
* Added: 06.04.2021
*/
add_filter('render_block', function ($block_content, $block) {
if ('core/gallery' !== $block['blockName']) {
return $block_content;
}
$block_id = 'block-gallery-' . uniqid();
$block_con... | 34,915 |
https://github.com/rkoesters/xkcd/blob/master/comic_test.go | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,023 | xkcd | rkoesters | Go | Code | 490 | 1,746 | package xkcd_test
import (
"encoding/json"
"github.com/rkoesters/xkcd"
"io"
"reflect"
"testing"
"unicode/utf8"
)
func TestNew(t *testing.T) {
comic1, err := xkcd.GetCurrent()
if err != nil {
t.Error(err)
}
if comic1 == nil {
t.Fatal("comic1 == nil")
}
r, w := io.Pipe()
errs := make(chan error, 1)
... | 15,862 |
https://github.com/sayanh/kyma/blob/master/components/eventing-controller/pkg/handlers/eventtype/parse.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | kyma | sayanh | Go | Code | 149 | 385 | package eventtype
import (
"errors"
"fmt"
"strings"
)
// parse parses the event-type given the prefix then returns the application name, event and version
// or returns an error if the event-type format is invalid
// a valid even-type format should be: prefix.applicationName.businessObject.operation.version
func p... | 1,440 |
https://github.com/Shivkumar13/go-langserver/blob/master/langserver/cancel.go | Github Open Source | Open Source | MIT | 2,022 | go-langserver | Shivkumar13 | Go | Code | 139 | 388 | package langserver
import (
"context"
"sync"
"github.com/sourcegraph/jsonrpc2"
)
// cancel manages $/cancelRequest by keeping track of running commands
type cancel struct {
mu sync.Mutex
m map[jsonrpc2.ID]func()
}
// WithCancel is like context.WithCancel, except you can also cancel via
// calling c.Cancel wit... | 7,259 |
https://github.com/givorra/TFGacel/blob/master/projects/morfo_miguel/build/cmakefiles/main.dir/DependInfo.cmake | Github Open Source | Open Source | CC0-1.0 | null | TFGacel | givorra | CMake | Code | 79 | 539 | # The set of languages for which implicit dependencies are needed:
set(CMAKE_DEPENDS_LANGUAGES
"CXX"
)
# The set of files for implicit dependencies of each language:
set(CMAKE_DEPENDS_CHECK_CXX
"/home/miguel/Datos/Dropbox/Investigacion/Desarrollo/portatil/morfo/main.cpp" "/home/miguel/Datos/Dropbox/Investigacion/... | 52,254 |
https://github.com/fpapon/blog-tutorial/blob/master/fusion/src/main/java/fr/openobject/blog/tutorial/fusion/persistence/InitDatabase.java | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | blog-tutorial | fpapon | Java | Code | 116 | 473 | package fr.openobject.blog.tutorial.fusion.persistence;
import io.yupiik.fusion.framework.api.lifecycle.Start;
import io.yupiik.fusion.framework.api.scope.DefaultScoped;
import io.yupiik.fusion.framework.build.api.event.OnEvent;
import io.yupiik.fusion.framework.build.api.order.Order;
import io.yupiik.fusion.persisten... | 45,712 |
https://github.com/JointFaaS/Client-go/blob/master/client/fc_invoke.go | Github Open Source | Open Source | MIT | null | Client-go | JointFaaS | Go | Code | 157 | 467 | package client
import (
"bytes"
"errors"
"io/ioutil"
"net/http"
"encoding/json"
"encoding/base64"
)
type FcInvokeInput struct {
FuncName string
Args []byte
EnableNative string
}
type FcInvokeOutput struct {
StatusCode int
RespBody []byte
}
type invokeBody struct {
FuncName string `json:"funcName"`
... | 34,038 |
https://github.com/daniel-beck-bot/vs-code-metrics-plugin/blob/master/src/main/java/org/jenkinsci/plugins/vs_code_metrics/util/CodeMetricsUtil.java | Github Open Source | Open Source | MIT | 2,020 | vs-code-metrics-plugin | daniel-beck-bot | Java | Code | 568 | 1,950 | package org.jenkinsci.plugins.vs_code_metrics.util;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map.Entry;
import hudson.FilePath;
import hudson.model.AbstractBuild;
import org.apache.commons.digester.Digester;
imp... | 9,180 |
https://github.com/devnix/psl-sentry-integration/blob/master/tests/Context/TypeTraceContextTest.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | psl-sentry-integration | devnix | PHP | Code | 95 | 372 | <?php
declare(strict_types=1);
namespace Psl\Sentry\Tests\Context;
use PHPUnit\Framework\TestCase;
use Psl\Sentry\Context\TypeTraceContextualizer;
use Psl\Type\Exception\CoercionException;
use Psl\Type\Exception\TypeTrace;
use Sentry\Event;
use Sentry\EventHint;
class TypeTraceContextTest extends TestCase
{
pub... | 17,385 |
https://github.com/litentry/LitentryWebDemo/blob/master/src/styles/colors.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | LitentryWebDemo | litentry | TypeScript | Code | 40 | 167 | export default {
background: {
alert: '#242424',
app: '#424242',
button: 'C0C0C0',
card: '#262626',
os: '#000000'
},
border: {
dark: '#000000',
light: '#666666',
signal: '#8E1F40'
},
signal: {
error: '#D73400',
main: '#FF4077'
},
text: {
faded: '#9A9A9A',
main: '#C0C0C0'
}
};
| 48,135 |
https://github.com/OrgForLL/Pohs/blob/master/guns-admin/src/main/webapp/static/modular/goods/goods/priceTag_assign.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | Pohs | OrgForLL | JavaScript | Code | 424 | 2,396 | /**
* 价格标签初始化
*/
var PriceTagInfo = {
id: "priceTagTable", //表格id
table: null,
products:null,
priceTags:null,
layerIndex: -1,
priceTagData:[],
currentFieldName:"" //当前填值的input框对应的列的field的名称
};
PriceTagInfo.toHtml = function(data){
for(var i =0;i<data.items.length;i++){
$("#tab... | 31,036 |
https://github.com/hezhubo/HPlayer/blob/master/app/src/main/java/com/hezb/hplayer/util/Utility.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | HPlayer | hezhubo | Java | Code | 539 | 2,196 | package com.hezb.hplayer.util;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Environment;
import android.util.Pair;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.animation.Animat... | 48,407 |
https://github.com/edloidas/generator-zen/blob/master/app/test-frameworks.js | Github Open Source | Open Source | MIT | 2,021 | generator-zen | edloidas | JavaScript | Code | 88 | 377 | var testFrameworksHash = {
mocha: {
test: 'mocha --require babel-register',
tdd: 'npm test -- --watch',
deps: ['assert@^1.3.0', 'mocha@^2.4.5'],
eslint: {
extends: 'airbnb-base',
plugins: ['require-path-exists', 'import'] }
},
tape: {
test: 'tape test.js --require babel-register | ... | 26,988 |
https://github.com/bluaxe/TNN/blob/master/tools/onnx2tnn/src/core/onnx_fuse/onnx2tnn_transfer_input_name.cc | Github Open Source | Open Source | BSD-3-Clause | 2,021 | TNN | bluaxe | C++ | Code | 263 | 720 |
// Tencent is pleased to support the open source community by making TNN available.
//
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy ... | 51,587 |
https://github.com/joaom182/blue-tomato/blob/master/bower_components/jslinq/src/except.js | Github Open Source | Open Source | MIT | 2,015 | blue-tomato | joaom182 | JavaScript | Code | 68 | 158 | Array.prototype.except = function (arr, comparer) {
if (!(arr instanceof Array)) arr = [arr];
comparer = comparer || EqualityComparer;
var l = this.length;
var res = [];
for (var i = 0; i < l; i++) {
var k = arr.length;
var t = false;
while (k-- > 0) {
if (compare... | 48,181 |
https://github.com/minhd/mdr-registry/blob/master/app/Jobs/SyncRecord.php | Github Open Source | Open Source | MIT | null | mdr-registry | minhd | PHP | Code | 82 | 256 | <?php
namespace App\Jobs;
use App\Registry\Models\Record;
use App\Registry\SchemaManager;
use Exception;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
class SyncReco... | 39,569 |
https://github.com/didi/daedalus/blob/master/daedalus-server/src/main/java/com/didichuxing/daedalus/util/OkHttpUtil.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | daedalus | didi | Java | Code | 536 | 2,004 | package com.didichuxing.daedalus.util;
import com.didichuxing.daedalus.common.dto.Pair;
import com.didichuxing.daedalus.common.enums.http.BodyType;
import com.didichuxing.daedalus.entity.log.StepResponseEntity;
import com.didichuxing.daedalus.pojo.ExecuteException;
import com.google.common.collect.Maps;
import lombok.... | 10,314 |
https://github.com/Xu-158/Blog/blob/master/admin/src/api/qiniuUpload.js | Github Open Source | Open Source | MIT | 2,021 | Blog | Xu-158 | JavaScript | Code | 326 | 1,191 | import { qiniuUploadToken, uploads } from "@/api/qiniu";
import httpUtil from "@/utils/httpUtil";
import { Message } from "element-ui";
async function uploadToQiniu(file) {
// 获取七牛云 Token
const { data, status } = await qiniuUploadToken()
if (status === 1) return
const uploadUrl = "http://upload-z2.qiniup.com"... | 27,897 |
https://github.com/ChathamRobotics/ftc_app_2018/blob/master/Team11248/src/main/java/org/firstinspires/ftc/team11248/Hardware/Relic_Arm.java | Github Open Source | Open Source | BSD-3-Clause | 2,019 | ftc_app_2018 | ChathamRobotics | Java | Code | 259 | 1,011 | package org.firstinspires.ftc.team11248.Hardware;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
import com.qualcomm.robotcore.hardware.HardwareMap;
import com.qualcomm.robotcore.hardware.Servo;
import org.firstinspires.ftc.robotcore.external.Telemetry;
public c... | 43,006 |
https://github.com/BaderLab/netDx/blob/master/man/cnv_netScores.Rd | Github Open Source | Open Source | MIT | 2,021 | netDx | BaderLab | R | Code | 27 | 100 | \name{cnv_netPass}
\alias{cnv_netPass}
\docType{data}
\title{
Vector of pathways that pass class enrichment
}
\description{
Vector of pathways that pass class enrichment
}
\usage{data(cnv_netPass)}
\examples{
data(cnv_netPass)
head(cnv_netPass)
}
\keyword{datasets}
| 17,685 |
https://github.com/lijun401338/proxygen-document/blob/master/structfolly_1_1pushmi_1_1invoke__fn.js | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, Apache-2.0, BSD-3-Clause | 2,018 | proxygen-document | lijun401338 | JavaScript | Code | 20 | 179 | var structfolly_1_1pushmi_1_1invoke__fn =
[
[ "mem_fn_t", "structfolly_1_1pushmi_1_1invoke__fn.html#a0290160cc686494719facc97233ec218", null ],
[ "operator()", "structfolly_1_1pushmi_1_1invoke__fn.html#a6ea80f18fbbbe10be834e3f2cc65d6d9", null ],
[ "operator()", "structfolly_1_1pushmi_1_1invoke__fn.html#a4f4... | 11,098 |
https://github.com/doc22940/website-4/blob/master/src/assets/user.scss | Github Open Source | Open Source | MIT | null | website-4 | doc22940 | SCSS | Code | 182 | 611 | //
//
// user.scss
//
// Place your own custom CSS or SCSS rules below this line, these rules will override any Bootstrap and theme variables.
.video-preview {
border-radius: 5px;
width: 100%;
}
.navbar-links-container {
padding: 1rem 1.5rem;
}
html {
scroll-behavior: smooth;
}
.contentWithBG {
z-index: 2... | 33,966 |
https://github.com/pankona/gomobile_gamelib_test/blob/master/simra/storage/storage_mock.go | Github Open Source | Open Source | MIT | 2,020 | gomobile_gamelib_test | pankona | Go | Code | 38 | 95 | // +build !linux
// +build !darwin
// +build !windows
// +build !android
package storage
import "path/filepath"
type storageMock struct{}
func NewStorage() Storager {
return &storageMock{}
}
func (s *storageAndroid) DirectoryPath() string {
// not implemented
return filepath.Join(".")
}
| 53,072 |
https://github.com/justking14/FOTZ/blob/master/FallOfTheTzar/Assets/Scenes/Demos/BasicDemo.unity | Github Open Source | Open Source | MIT | 2,014 | FOTZ | justking14 | Unity3D Asset | Code | 20,000 | 79,356 | %YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!29 &1 SceneSettings: m_ObjectHideFlags: 0 m_PVSData: m_PVSObjectsArray: [] m_PVSPortalsArray: [] m_OcclusionBakeSettings: smallestOccluder: 5 smallestHole: .25 backfaceThreshold: 100 --- !u!104 &2 RenderSettings: m_Fog: 0 m_FogColor: {r: .5, g: .5, b: .5, a: 1} m_FogMode:... | 24,677 |
https://github.com/mohammadkolahdouzan/lwes-java/blob/master/src/main/java/org/lwes/util/EncodedString.java | Github Open Source | Open Source | BSD-3-Clause | 2,016 | lwes-java | mohammadkolahdouzan | Java | Code | 659 | 1,452 | /*======================================================================*
* Copyright (c) 2008, Yahoo! Inc. All rights reserved. *
* *
* Licensed under the New BSD License (the "License"); you may not use *
* this file except in c... | 33,239 |
https://github.com/nopsys/SmalltalkNOS/blob/master/STNos-Filesystems.package/FAT32Cluster.class/instance/lastIndex.st | Github Open Source | Open Source | MIT | 2,018 | SmalltalkNOS | nopsys | null | Spoken | 7 | 14 | private
lastIndex
^self size // self recordSize | 22,233 |
https://github.com/biodunch/guest-writer/blob/master/src/index.js | Github Open Source | Open Source | MIT | 2,020 | guest-writer | biodunch | JavaScript | Code | 200 | 641 | const fs = require('fs');
const {promisify} = require('util');
const readline = require('readline');
const writeFile = promisify(fs.writeFile);
let writer;
const writerDetailsPath = `${__dirname}/../.writer.json`;
if (fs.existsSync(writerDetailsPath)) {
writer = JSON.parse(fs.readFileSync(writerDetailsPath, 'utf8'... | 22,108 |
https://github.com/hansnok/theme_escribiendo/blob/master/layout/columns2.php | Github Open Source | Open Source | MIT | 2,017 | theme_escribiendo | hansnok | PHP | Code | 380 | 1,559 | <?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle ... | 23,467 |
https://github.com/luni64/EncSim/blob/master/examples/IndexPulse/IndexPulse.ino | Github Open Source | Open Source | MIT | 2,022 | EncSim | luni64 | null | Spoken | 54 | 170 | #include "EncSim.h"
EncSim encSim(0, 1, 2); // A=0, B=1, Z=2
void setup()
{
encSim
.begin()
.setFrequency(10'000) // 10 kCounts per second
.setPeriod(4096) // Index pulse every 4096 counts
.setPhase(40) // 40° phase signal
.setTotalBounceDurat... | 39,916 |
https://github.com/zeit-ui/themes/blob/master/scripts/util.js | Github Open Source | Open Source | MIT | 2,020 | themes | zeit-ui | JavaScript | Code | 80 | 228 | const fs = require('fs')
const path = require('path')
const src = path.resolve(__dirname, '../src')
const ensureIndex = name => {
if (!fs.existsSync(path.resolve(src, name, 'index.styl'))) {
throw new Error(`Missing entry in dir: ${name}. create "${name}/index.styl" to resolved.`)
}
}
module.exports.getEntry... | 15,068 |
https://github.com/bazaarvoice/cloudbreak/blob/master/integration-test/src/main/java/com/sequenceiq/it/cloudbreak/newway/ProxyConfigAction.java | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, ANTLR-PD, CDDL-1.0, bzip2-1.0.6, Zlib, BSD-3-Clause, MIT, EPL-1.0, LicenseRef-scancode-proprietary-license, LicenseRef-scancode-jdbm-1.00, Apache-2.0 | 2,023 | cloudbreak | bazaarvoice | Java | Code | 166 | 685 | package com.sequenceiq.it.cloudbreak.newway;
import static com.sequenceiq.it.cloudbreak.newway.log.Log.logJSON;
import java.io.IOException;
import com.sequenceiq.it.IntegrationTestContext;
public class ProxyConfigAction {
private ProxyConfigAction() {
}
static void post(IntegrationTestContext integrati... | 7,354 |
https://github.com/lhurt51/Cpp-OpenGLGameEngine/blob/master/cmake/FindSDL2.cmake | Github Open Source | Open Source | MIT | null | Cpp-OpenGLGameEngine | lhurt51 | CMake | Code | 330 | 841 | # MIT License
#
# Copyright (c) 2019 Liam Daniel Hurt
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, m... | 23,199 |
https://github.com/unionframework/union/blob/master/Union/Utils/Extensions/ListExtensions.cs | Github Open Source | Open Source | MIT | null | union | unionframework | C# | Code | 183 | 526 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Union.Utils.Extensions
{
public static class ListExtensions
{
public static T RandomItem<T>(this List<T> list, params T[] exclude)
{
return list.RandomItem(exclude.ToList());
}
public stat... | 5,286 |
https://github.com/DSDP/seguimiento-electoral/blob/master/front/app/templates/team.hbs | Github Open Source | Open Source | MIT | null | seguimiento-electoral | DSDP | null | Spoken | 11 | 51 | {{model.name}}
{{#each model.configs as |config|}}
{{#link-to 'config' config.id}} {{config.name}} {{/link-to}}
{{/each}}
| 9,036 |
https://github.com/hashbrowncipher/diesel-locomotive/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,016 | diesel-locomotive | hashbrowncipher | Ignore List | Code | 2 | 11 | diesel-locomotive
vendor/
| 51,602 |
https://github.com/joaquimserafim/timespan-overlap/blob/master/test.js | Github Open Source | Open Source | 0BSD | 2,017 | timespan-overlap | joaquimserafim | JavaScript | Code | 405 | 1,247 | /*
eslint
no-multi-spaces: ["error", {exceptions: {"VariableDeclarator": true}}]
padded-blocks: ["error", {"classes": "always"}]
max-len: ["error", 80]
*/
'use strict'
const mocha = require('mocha')
const expect = require('chai').expect
const it = mocha.it
const describe = mocha.describe
const overlap = r... | 41,180 |
https://github.com/LeydiGiFra/ptuq-web/blob/master/application/views/principal_view.php | Github Open Source | Open Source | MIT | null | ptuq-web | LeydiGiFra | PHP | Code | 183 | 790 | <?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Inicio de Sesión - PTUQ</title>
<... | 43,368 |
https://github.com/H-Core/H.Core/blob/master/src/libs/H.Core/Players/IPlayer.cs | Github Open Source | Open Source | MIT | 2,021 | H.Core | H-Core | C# | Code | 65 | 203 | using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace H.Core.Players
{
/// <summary>
///
/// </summary>
public interface IPlayer : IModule
{
#region Properties
/// <summary>
///
/// </summary>
ICollection<AudioS... | 47,748 |
https://github.com/neyma2379294/IGC.GameServer.SX/blob/master/DataServer/CrashDump.h | Github Open Source | Open Source | MIT | 2,017 | IGC.GameServer.SX | neyma2379294 | C++ | Code | 77 | 435 | // CrashDump.h: interface for the CCrashDump class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CRASHDUMP_H__4B7112C7_4DEF_415D_8A62_9E167CBD5662__INCLUDED_)
#define AFX_CRASHDUMP_H__4B7112C7_4DEF_415D_8A62_9E167CBD5662__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif ... | 36,155 |
https://github.com/svalgaard/macports-ports/blob/master/sysutils/beanstalkd/files/patch-configure.diff | Github Open Source | Open Source | BSD-3-Clause | 2,021 | macports-ports | svalgaard | null | Spoken | 90 | 407 | --- a/configure 2010-05-22 17:24:01.000000000 -0400
+++ b/configure 2011-08-02 14:09:41.000000000 -0400
@@ -4426,13 +4426,13 @@
if test "x$with_event" = "xyes"; then
for i in `echo "$STANDARD_PREFIXES"`; do
- if test -f "$i/include/event.h"; then
+ if test -f "$i/include/libevent1/event.h"; then
... | 9,071 |
https://github.com/scalableminds/wknml/blob/master/tests/refresh_snapshots.py | Github Open Source | Open Source | MIT | null | wknml | scalableminds | Python | Code | 38 | 182 | import wknml
from tests.test_snapshot_readandwrite import INPUT_FILES, OUTPUT_FILES, SNAPSHOT_FILES
def save_snapshot_nml_read_and_write():
for i in range(0, len(INPUT_FILES)):
input_file = INPUT_FILES[i]
output_file = OUTPUT_FILES[i]
parsed = wknml.parse_nml(input_file)
with open(... | 30,378 |
https://github.com/cdnjs/cdnjs/blob/master/ajax/libs/xsound/3.2.0/types/MML/Tree.d.ts | Github Open Source | Open Source | MIT | 2,023 | cdnjs | cdnjs | TypeScript | Code | 249 | 483 | import { Token } from '../../src/MML/Token';
/**
* This class is entity for MML syntax tree.
* @constructor
*/
export declare class Tree {
private static indent;
private _id;
private _operator;
private _left;
private _right;
/**
* @param {string} id This argument is string that identifie... | 50,047 |
https://github.com/thomas4g/incubator-heron/blob/master/scripts/applatix/ci.sh | Github Open Source | Open Source | Apache-2.0 | 2,018 | incubator-heron | thomas4g | Shell | Code | 20 | 65 | #!/bin/bash
export PATH=$PATH:/root/bin
which gcc
gcc --version
which g++
g++ --version
which python
python --version
cd /heron && USER=abc scripts/travis/ci.sh
| 22,819 |
https://github.com/GSIL-Monitor/hotel-1/blob/master/apollo_mq/apollo-core/src/main/java/com/fangcang/common/util/ExcelHelper.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | hotel-1 | GSIL-Monitor | Java | Code | 209 | 892 | package com.fangcang.common.util;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Map;
impo... | 49,337 |
https://github.com/Giri8056/Core-PHP-Functions/blob/master/scan_dir.php | Github Open Source | Open Source | MIT | 2,019 | Core-PHP-Functions | Giri8056 | PHP | Code | 99 | 315 | <?php
function scan_dir($path, $opts = null, &$list = array() ){
$files = scandir($path, stripos($opts, 'desc') !== false ? 1 : 0);
$files = array_diff( $files, array('.', '..') );
foreach($files as $file){
$fullpath = rtrim($path, '/') . "/$file";
if( is_dir($fullpath) ){
stripos($opts, 'skipDirs' ) === fal... | 40,769 |
https://github.com/shrek2000/SlackWear_fuse/blob/master/slackapi/src/main/java/com/ullink/slack/simpleslackapi/impl/AbstractSlackSessionImpl.java | Github Open Source | Open Source | Apache-2.0 | null | SlackWear_fuse | shrek2000 | Java | Code | 640 | 2,984 | package com.ullink.slack.simpleslackapi.impl;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.ullink.slack.simpleslackapi.SlackAttachment;
import com.ullink.slack.simpleslackapi.SlackBot;
import com.ullink.slack.simpleslackapi.S... | 18,834 |
https://github.com/ilham513/olshop18/blob/master/db-test.php | Github Open Source | Open Source | MIT | null | olshop18 | ilham513 | PHP | Code | 107 | 504 | <<<<<<< HEAD
<?php
$db = parse_url(getenv("postgres://eizcjebjpfpcit:03fe251d1c9bda2cdbb6b39833de6508d8c75ec6cc18b3f2e4bab39214c5e14b@ec2-23-21-229-200.compute-1.amazonaws.com:5432/dbs95ig0jfd9t9"));
$pdo = new PDO("pgsql:" . sprintf(
"host=%s;port=%s;user=%s;password=%s;dbname=%s",
$db["host"],
$db["port"... | 2,768 |
https://github.com/mariusfeteanu/file-processing-pipeline/blob/master/setup.py | Github Open Source | Open Source | MIT | null | file-processing-pipeline | mariusfeteanu | Python | Code | 26 | 176 | from setuptools import setup, find_packages
setup(
name='file_processing_pipeline',
version='1.0.0',
packages=find_packages(),
test_suite='pytest',
url='https://github.com/mariusfeteanu/file-processing-pipeline.git',
author='Marius Feteanu',
author_email='marius.feteanu@gmail.com',
desc... | 39,065 |
https://github.com/hohowin/fabric-es-reference/blob/master/packages/gw-org3/src/__tests__/queries.ts | Github Open Source | Open Source | BSD-3-Clause-Clear | 2,021 | fabric-es-reference | hohowin | TypeScript | Code | 393 | 1,198 | export const OAUTH_REGISTER = `
mutation Register(
$email: String!
$username: String!
$password: String!
) {
register(
email: $email
username: $username
password: $password
)
}`;
export const OAUTH_LOGIN = `
mutation Login(
$email: String!
$password: String!
) {
login(
email: $email
... | 26,095 |
https://github.com/aabsharpasha/foodine/blob/master/application/ws/controllers/test.php | Github Open Source | Open Source | CC-BY-3.0 | null | foodine | aabsharpasha | PHP | Code | 54 | 291 | <?php
if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
require(APPPATH . '/libraries/REST_Controller.php');
/**
* Description of login
* @author OpenXcell Technolabs
*/
class Test extends REST_Controller {
function __construct() {
parent::__construct();
}
function in... | 38,530 |
https://github.com/nikisKuchbhi/Project-Tradewell/blob/master/alternative/driver/driver/lib/Themes/colors.dart | Github Open Source | Open Source | MIT | null | Project-Tradewell | nikisKuchbhi | Dart | Code | 50 | 181 | import 'package:flutter/material.dart';
Color kMainColor = Color(0xFFEB1344);
Color kRed = Color(0xffff3939);
Color kGreen = Color(0xff008000);
Color kDisabledColor = Color(0xff616161);
Color kWhiteColor = Colors.white;
Color kLightTextColor = Colors.grey;
Color kCardBackgroundColor = Color(0xfff8f9fd);
Color kTranspa... | 24,156 |
https://github.com/TorbenHaug/swagger-compare/blob/master/swagger-compare/swagger-compare-core/src/main/java/de/haug_dev/swagger_compare/swagger_compare_core/servers/ServersCompareHolder.java | Github Open Source | Open Source | MIT | null | swagger-compare | TorbenHaug | Java | Code | 95 | 428 | package de.haug_dev.swagger_compare.swagger_compare_core.servers;
import de.haug_dev.swagger_compare.swagger_compare_core.AbstractCompareHolder;
import de.haug_dev.swagger_compare.swagger_compare_core.CompareHolderFactory;
import de.haug_dev.swagger_compare.swagger_compare_datatypes.CompareCriticalType;
import de.haug... | 52,195 |
https://github.com/BenLubar/SwarmDirector2/blob/master/src/game/shared/precache_register.cpp | Github Open Source | Open Source | Apache-2.0 | 2,015 | SwarmDirector2 | BenLubar | C++ | Code | 993 | 3,388 | //===== Copyright © 1996-2005, Valve Corporation, All rights reserved. ======//
//
// Purpose:
//
// $NoKeywords: $
//===========================================================================//
#include "cbase.h"
#include "precache_register.h"
#include "tier1/KeyValues.h"
#include "tier2/tier2.h"
#include "datacache... | 45,185 |
https://github.com/Tgjmjgj/bashkir/blob/master/includes/global.h | Github Open Source | Open Source | Apache-2.0 | null | bashkir | Tgjmjgj | C | Code | 142 | 426 | #pragma once
#include "deps.h"
// #include <memory>
// #include <termios.h>
// #include <sys/wait.h>
#include "logger/interface/BaseLogger.h"
#include "logger/SpdFileLogger.h"
#include "io/StreamIO.h"
namespace bashkir
{
inline StreamIO io;
namespace log
{
inline uint8_t log_level = 2;
inline std::unique_ptr<BaseLo... | 53,627 |
https://github.com/majimenezp/ControlActividades/blob/master/Dominio/Mappings/ActividadMapping.cs | Github Open Source | Open Source | MIT | 2,014 | ControlActividades | majimenezp | C# | Code | 46 | 232 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Entidades;
using FluentNHibernate.Mapping;
namespace Dominio.Mappings
{
public class ActividadMapping:ClassMap<Actividad>
{
public ActividadMapping()
{
Table("A... | 15,498 |
https://github.com/k06a/peace-relay/blob/master/contracts/ETHToken.sol | Github Open Source | Open Source | MIT | 2,022 | peace-relay | k06a | Solidity | Code | 716 | 2,033 | pragma solidity ^0.4.21;
import "./SafeMath.sol";
import "./ERC20.sol";
import "./PeaceRelay.sol";
import "./RLP.sol";
import "./Ownable.sol";
contract ETHToken is ERC20, Ownable {
using SafeMath for uint256;
using RLP for RLP.RLPItem;
using RLP for RLP.Iterator;
using RLP for bytes;
struct ... | 14,978 |
https://github.com/mrchar/seedpod/blob/master/server/server.go | Github Open Source | Open Source | MIT | null | seedpod | mrchar | Go | Code | 82 | 239 | package server
import (
"fmt"
"github.com/sirupsen/logrus"
"net/http"
)
type Server struct {
server *http.Server
router *http.Handler
}
func Default() *Server {
router := newRouter()
server, err := New(router)
if err != nil {
logrus.Fatal(err)
}
return server
}
func New(router http.Handler) (*Server, e... | 11,623 |
https://github.com/isabella232/Microsoft-SharePoint-Connector/blob/master/src/Telligent.Evolution.Extensions.OpenSearch/PropertyControls/ResultsConfigurationControl.cs | Github Open Source | Open Source | MIT | 2,016 | Microsoft-SharePoint-Connector | isabella232 | C# | Code | 254 | 938 | using System;
using System.Globalization;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telligent.DynamicConfiguration.Components;
namespace Telligent.Evolution.Extensions.OpenSearch
{
public class ResultsConfigurationControl : ConfigureProviderControl, IPropertyControl
{
... | 53,602 |
https://github.com/Frenzyritz13/mentorship-flutter/blob/master/lib/remote/repositories/user_repository.dart | Github Open Source | Open Source | MIT | 2,022 | mentorship-flutter | Frenzyritz13 | Dart | Code | 217 | 656 | import 'package:mentorship_client/remote/api_manager.dart';
import 'package:mentorship_client/remote/models/home_stats.dart';
import 'package:mentorship_client/remote/models/user.dart';
import 'package:mentorship_client/remote/requests/change_password.dart';
import 'package:mentorship_client/remote/responses/custom_res... | 11,460 |
https://github.com/stellenberger/bowling-challenge/blob/master/bowling_challenge_solution/src/game.js | Github Open Source | Open Source | MIT | 2,020 | bowling-challenge | stellenberger | JavaScript | Code | 153 | 497 | function bowlingGame() {
this.frames = []
}
bowlingGame.prototype.gameTotal = function() {
let total = 0;
let game = this;
calculateFrames(game);
total = calculateTotal(game, total);
calculateLastFrame(game)
total += this.frames[this.frames.length - 1].frameTotal;
return total;
}
bowlingGame.prototy... | 38,462 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.