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/bradjtrammell/namecheap-php-sdk/blob/master/src/Namecheap/Command/Domains/GetTldList.php | Github Open Source | Open Source | Apache-2.0 | 2,021 | namecheap-php-sdk | bradjtrammell | PHP | Code | 123 | 377 | <?php
/**
* @author Maksym Karazieiev <mkarazeev@gmail.com>
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache 2.0
*/
namespace Namecheap\Command\Domains\GetTldList
{
class Exception extends \Exception {}
}
namespace Namecheap\Command\Domains
{
/**
* Implementation of Namecheaps domains.gett... | 22,558 |
https://github.com/super9du/vhr-vue/blob/master/src/utils/api.js | Github Open Source | Open Source | Apache-2.0 | null | vhr-vue | super9du | JavaScript | Code | 232 | 731 | import axios from 'axios';
import {Message} from 'element-ui';
import router from '../router/index';
//拦截器:对状态码进行响应
axios.interceptors.response.use(resp => {
if (resp.status && resp.status === 200 && resp.data.status === 500) {
Message.error({showClose: true, message: resp.data.msg});
return;
... | 12,504 |
https://github.com/galderz/camel-quarkus/blob/master/integration-tests/influxdb/src/test/java/org/apache/camel/quarkus/component/influxdb/it/InfluxdbTest.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | camel-quarkus | galderz | Java | Code | 326 | 1,210 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 43,000 |
https://github.com/phonicmouse/SharpPaste/blob/master/PageNotFoundHandler.cs | Github Open Source | Open Source | MIT | 2,022 | SharpPaste | phonicmouse | C# | Code | 62 | 189 | using System;
using System.Collections.Generic;
using System.Linq;
using Nancy;
using Nancy.ErrorHandling;
using Nancy.ViewEngines;
namespace SharpPaste
{
public class PageNotFoundHandler : DefaultViewRenderer, IStatusCodeHandler
{
public PageNotFoundHandler(IViewFactory factory) : base(factory)
... | 13,795 |
https://github.com/huytuchim789/jobfair-support-in-Sun-Japan/blob/master/web/src/pages/template-tasks/style.scss | Github Open Source | Open Source | LicenseRef-scancode-public-domain | 2,021 | jobfair-support-in-Sun-Japan | huytuchim789 | SCSS | Code | 16 | 64 | .TemplateTaskList {
thead[class*="ant-table-thead"] th {
background-color: #bae8e8 !important;
}
.anticon {
font-size: 12px !important;
}
}
| 3,124 |
https://github.com/dongce/testsc/blob/master/network_track_data_bash_hash/t-68.scm | Github Open Source | Open Source | BSD-3-Clause | 2,017 | testsc | dongce | Scheme | Code | 21 | 85 |
;; (testsc-require l11const)
(testsc-require system_types)
;; (testsc-require dlplink11types)
(case (testsc-get-testnum)
((3)
(define testsc 1 )
(tnset 1 'general.link_state enum-none)
)
)
| 18,138 |
https://github.com/Highlander37/Hangfire.Dashboard.Management/blob/master/Hangfire.Dashboard.Management/Pages/RetriesPage.cs | Github Open Source | Open Source | MIT | 2,019 | Hangfire.Dashboard.Management | Highlander37 | C# | Code | 16 | 53 | using System;
using System.Collections.Generic;
using Hangfire.Dashboard;
namespace Hangfire.Dashboard.Management.Pages
{
internal partial class RetriesPage
{
}
} | 41,262 |
https://github.com/iantal/AndroidPermissions/blob/master/apks/comparison_qark/com_db_pwcc_dbmobile/classes_dex2jar/uuuuuu/ososss.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | AndroidPermissions | iantal | Java | Code | 452 | 2,481 | package uuuuuu;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.db.pwcc.dbmobile.postbox.R.id;
import com.db.pwcc.dbmobi... | 9,520 |
https://github.com/ushenkodmitry/ReactiveUI/blob/master/src/ReactiveUI.Tests/Platforms/wpf/Mocks/CommandBindingView.cs | Github Open Source | Open Source | MIT | 2,020 | ReactiveUI | ushenkodmitry | C# | Code | 120 | 268 | // Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.
using System;
using System.Col... | 12,964 |
https://github.com/billbushe/QmlExplorer/blob/master/QmlExplorer/Qml/Controls/Views/CollapsablePanel/TestCollapsablePanel.qml | Github Open Source | Open Source | MIT | 2,018 | QmlExplorer | billbushe | null | Spoken | 63 | 237 | import QtQuick 2.0
Grid {
x: 20; y:20
width: 800
height: 600
spacing: 10
columns: 2
CollapsablePanel{
title: 'panel1'
content: Rectangle{
anchors.fill: parent
color: 'lightyellow'
}
}
CollapsablePanel{
title: 'panel2'
hea... | 19,144 |
https://github.com/ThieJan/ogs/blob/master/NumLib/Fem/CoordinatesMapping/NaturalNodeCoordinates.cpp | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,018 | ogs | ThieJan | C++ | Code | 111 | 602 | /**
* \copyright
* Copyright (c) 2012-2018, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "NaturalNodeCoordinates.h"
namespace Num... | 7,450 |
https://github.com/tiff2766/DK/blob/master/DK/DKFramework/DKWindow.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,015 | DK | tiff2766 | C++ | Code | 1,566 | 6,790 | //
// File: DKWindow.cpp
// Author: Hongtae Kim (tiff2766@gmail.com)
//
// Copyright (c) 2004-2017 Hongtae Kim. All rights reserved.
//
#include <memory.h>
#include "DKWindow.h"
#include "Interface/DKWindowInterface.h"
namespace DKFramework::Private
{
static inline bool _GetUCArrayBit(const unsigned char* byte... | 15,193 |
https://github.com/mhd999/ts-proto/blob/master/build/visit.js | Github Open Source | Open Source | Apache-2.0 | null | ts-proto | mhd999 | JavaScript | Code | 209 | 655 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.visitServices = exports.visit = void 0;
const sourceInfo_1 = require("./sourceInfo");
const case_1 = require("./case");
function visit(proto, sourceInfo, messageFn, options, enumFn = () => { }, tsPrefix = '', protoPrefix = '') {
co... | 12,119 |
https://github.com/MyoMyatMin/res/blob/master/resources/views/order_form.blade.php | Github Open Source | Open Source | MIT | null | res | MyoMyatMin | PHP | Code | 250 | 1,401 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Orders Form</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:... | 18,068 |
https://github.com/hercules-ci/hercules-ci-agent/blob/master/hercules-ci-api/src/Hercules/API/GitLab.hs | Github Open Source | Open Source | Apache-2.0 | 2,023 | hercules-ci-agent | hercules-ci | Haskell | Code | 162 | 565 | {-# LANGUAGE DataKinds #-}
module Hercules.API.GitLab where
import Hercules.API.Accounts.Account (Account)
import Hercules.API.GitLab.CreateInstallationBuilderRequest (CreateInstallationBuilderRequest)
import Hercules.API.GitLab.InstallationBuilder (InstallationBuilder, InstallationBuilders)
import Hercules.API.GitLa... | 17,992 |
https://github.com/niranjan2m/test/blob/master/Daniel15.Web/Controllers/BlogController.cs | Github Open Source | Open Source | Unlicense, MIT | null | test | niranjan2m | C# | Code | 1,007 | 3,139 | using System;
using System.Collections.Generic;
using System.Linq;
using Daniel15.BusinessLayer.Services;
using Daniel15.BusinessLayer.Services.Social;
using Daniel15.Data;
using Daniel15.Data.Entities.Blog;
using Daniel15.Data.Repositories;
using Daniel15.Web.Extensions;
using Daniel15.Web.Models.Blog;
using Daniel15... | 40,026 |
https://github.com/larskanis/MINGW-packages/blob/master/mingw-w64-recode/mingw.patch | Github Open Source | Open Source | BSD-3-Clause | 2,021 | MINGW-packages | larskanis | null | Spoken | 203 | 789 | diff -ru pinard-Recode-2127b34/src/common.h patched/src/common.h
--- pinard-Recode-2127b34/src/common.h 2008-02-19 05:13:35.000000000 +0100
+++ patched/src/common.h 2014-01-01 01:31:11.144541519 +0100
@@ -106,7 +106,7 @@
# endif
#endif
-#include <argmatch.h>
+#include "argmatch.h"
#include <errno.h>
#ifndef err... | 51,377 |
https://github.com/Hefaistos68/AnalyzerSamples/blob/master/AnalyzerSamples/AnalyzerSamples/FileName/FileNameMustStartWithACapitalLetter.cs | Github Open Source | Open Source | MIT | 2,015 | AnalyzerSamples | Hefaistos68 | C# | Code | 115 | 422 | using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Text;
nam... | 16,094 |
https://github.com/jasl/ess/blob/master/tests/regression/222294.rb | Github Open Source | Open Source | MIT | 2,022 | ess | jasl | Ruby | Code | 124 | 154 | g=0.times.p{}
a %w{0 0 0 0 0 0 0 0 0 0
0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 { 0 0 0 0 0 0 0 0 0 0
0 { 0 }
0 0 0
0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 } 0}.(&:e)
| 10,707 |
https://github.com/codeforsapporo/papamama/blob/master/js/v3.0.0/ol/ol/transformfunction.js | Github Open Source | Open Source | MIT | 2,020 | papamama | codeforsapporo | JavaScript | Code | 56 | 111 | goog.provide('ol.TransformFunction');
/**
* A transform function accepts an array of input coordinate values, an optional
* output array, and an optional dimension (default should be 2). The function
* transforms the input coordinate values, populates the output array, and
* returns the output array.
*
* @type... | 42,593 |
https://github.com/pebble-dev/libpebble2/blob/master/libpebble2/protocol/apps.py | Github Open Source | Open Source | MIT | 2,021 | libpebble2 | pebble-dev | Python | Code | 168 | 576 | from __future__ import absolute_import
__author__ = 'katharine'
from enum import IntEnum
from .base import PebblePacket
from .base.types import *
__all__ = ["AppRunState", "AppRunStateStart", "AppRunStateStop", "AppRunStateRequest", "AppMetadata"]
# App run state
class AppRunStateStart(PebblePacket):
uuid = U... | 12,197 |
https://github.com/straylight77/data-sci-learning/blob/master/dat201/assignment1.R | Github Open Source | Open Source | MIT | 2,023 | data-sci-learning | straylight77 | R | Code | 315 | 777 |
df = read.csv("assignment1.csv")
# ------------ DATA CLEANING AND PREP ------------
#convert the date fields from char to Date mode
df$hospDis = as.Date(df$hospDis, format="%m/%d/%Y")
df$hospAd = as.Date(df$hospAd, format="%m/%d/%Y")
df$DOB = as.Date(df$DOB, format="%m/%d/%Y")
# replace all NA values to 0
df[is.na... | 20,623 |
https://github.com/ravichalla/wallbreaker/blob/master/sri/combinatorial_gen.py | Github Open Source | Open Source | MIT | null | wallbreaker | ravichalla | Python | Code | 26 | 75 | def strings(A, n):
if n == 0:
return [""]
for s in strings(A, n - 1):
for c in A:
return [s + c]
print(strings(["a","b","c"],2))
print(''+''+'a')
| 49,316 |
https://github.com/Emmanuelamanga/starterpack/blob/master/resources/views/packages/subcategories/index.blade.php | Github Open Source | Open Source | MIT | null | starterpack | Emmanuelamanga | PHP | Code | 152 | 850 | @extends('layouts.app')
@section('content')
<div class="card">
<div class="card-header">AVAILABLE SUB-CATEGORIES <a href="{{route('subcategory.create')}}" class="btn btn-sm btn-primary pull-right"><i class="fa fa-plus"> </i> Create Sub-Category</a></div>
<div class="card-body">
<table id="myTable" clas... | 16,161 |
https://github.com/tobias-inc/tobias-bot/blob/master/src/commands/music/volume.js | Github Open Source | Open Source | ISC | 2,020 | tobias-bot | tobias-inc | JavaScript | Code | 106 | 353 | const { Command, ClientEmbed } = require('../../')
const MAX_VOLUME = 150
module.exports = class Volume extends Command {
constructor (client, path) {
super(client, path, {
name: 'volume',
category: 'music',
utils: {
requirements: {
guildOnly: true,
sameVoiceChannel... | 33,260 |
https://github.com/tiagomarciano/gooddata-jdbc/blob/master/src/main/java/com/gooddata/jdbc/metadata/AfmResultSetMetaData.java | Github Open Source | Open Source | MIT | 2,021 | gooddata-jdbc | tiagomarciano | Java | Code | 386 | 1,238 | package com.gooddata.jdbc.metadata;
import com.gooddata.jdbc.catalog.CatalogEntry;
import com.gooddata.jdbc.parser.SQLParser;
import com.gooddata.jdbc.util.TextUtil;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.List;
import java.util.logging.Logger;
/**
* AFM ResultSet JDBC meta... | 44,023 |
https://github.com/annadeja/cookie-rune/blob/master/Unity_Project/CookieRune/Assets/Scripts/Player/Character.cs | Github Open Source | Open Source | CC0-1.0 | null | cookie-rune | annadeja | C# | Code | 696 | 1,752 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Character : System.IComparable
{
public string unitName;
public int level;
public int curHP;
public int CurHP { get => curHP; }
public int maxHP;
public int atk;
public int Atk { get => atk; }
... | 30,824 |
https://github.com/rbaklanov/Grossbuch-4/blob/master/app/Http/Controllers/UserController.php | Github Open Source | Open Source | MIT | null | Grossbuch-4 | rbaklanov | PHP | Code | 751 | 2,863 | <?php
namespace App\Http\Controllers;
use App\User;
use App\Position;
use App\Department;
use App\AccessPermission;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Lang;
use Illuminate\Support\Fa... | 24,970 |
https://github.com/mlqsgw/ysjr8/blob/master/application/User/Model/TransferViewModel.class.php | Github Open Source | Open Source | Apache-2.0 | null | ysjr8 | mlqsgw | PHP | Code | 29 | 233 | <?php
/**
* 用户的视图模型
*/
namespace User\Model;
use Think\Model\ViewModel;
class TransferViewModel extends ViewModel
{
public $viewFields = array(
'Loan_load'=>array('money'=>'loan_load_money', 'id'=>'dlid','create_time'=>'loan_load_create_time','user_id'=>'loan_load_uid','_type'=>'LEFT'),
'Loan'=... | 26,936 |
https://github.com/mediabuff/Lumino/blob/master/Source/LuminoEngine/Test/UnitTest/Graphics/TestData/PosUV.glsl | Github Open Source | Open Source | MIT | 2,017 | Lumino | mediabuff | GLSL | Code | 43 | 143 | #ifdef LN_GLSL_VERTEX
attribute vec4 ln_Vertex;
attribute vec2 ln_MultiTexCoord;
varying vec2 vTexUV;
void main() {
vTexUV = ln_MultiTexCoord;
gl_Position = ln_Vertex;
}
#endif
#ifdef LN_GLSL_FRAGMENT
uniform sampler2D g_Texture;
varying vec2 vTexUV;
void main()
{
vec4 color = texture2D(g_Texture, vTexUV);
gl_Frag... | 7,258 |
https://github.com/ajturner/swiftriver/blob/master/vendor/plugins/spatial_adapter/test/migration_postgis_test.rb | Github Open Source | Open Source | MIT | 2,010 | swiftriver | ajturner | Ruby | Code | 392 | 1,679 | $:.unshift(File.dirname(__FILE__))
require 'test/unit'
require 'common/common_postgis'
class Park < ActiveRecord::Base
end
class MigrationPostgisTest < Test::Unit::TestCase
def test_creation_modification
#creation
#add column
#remove column
#add index
#remove index
connection = Act... | 21,916 |
https://github.com/jiadaizhao/LeetCode/blob/master/0401-0500/0437-Path Sum III/0437-Path Sum III.py | Github Open Source | Open Source | MIT | 2,022 | LeetCode | jiadaizhao | Python | Code | 125 | 317 | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def pathSum(self, root: TreeNode, sum: int) -> int:
if root is None:
return 0
def dfs(root, sum):
... | 23,416 |
https://github.com/jckling/only-python/blob/master/ACM/计蒜客 - 南昌网络赛/Coloring Game.cpp | Github Open Source | Open Source | MIT | 2,019 | only-python | jckling | C++ | Code | 82 | 210 | #include<cstdio>
using namespace std;
typedef long long LL;
#define MAXN 1000000000
#define MOD 1000000007
LL n, ans;
LL quickPow(LL a, LL N) {
LL r = 1, aa = a;
while(N) {
if (N & 1 == 1) r = (r * aa) % MOD;
N >>= 1;
aa = (aa * aa) % MOD;
}
return r % MOD;
}
int main(){
s... | 31,429 |
https://github.com/oVirt/ovirt-dwh/blob/master/etl_export/src/main/java/ovirt_engine_dwh/hostconfigcheck_4_5/HostConfigCheck.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | ovirt-dwh | oVirt | Java | Code | 16,156 | 70,655 | // ============================================================================
//
// Copyright (c) 2006-2015, Talend Inc.
//
// This source code has been automatically generated by_Talend Open Studio for Data Integration
// / Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file ... | 8,236 |
https://github.com/mrcoco/presensi-siswa/blob/master/modules/addons/presensi/views/laporan/cetak_footer.volt | Github Open Source | Open Source | BSD-3-Clause | null | presensi-siswa | mrcoco | null | Spoken | 89 | 356 | <table class="table-bordered table-condensed">
<tr><td colspan="2">Keterangan</td></tr>
<tr><td>S</td><td>Sakit</td></tr>
<tr><td>I</td><td>Izin</td></tr>
<tr><td>A</td><td>Alpa</td></tr>
</table>
<br>
{% set ll = 0 %}
{% set lp = 0 %}
{% for pres in arr %}
{% if ... | 45,724 |
https://github.com/aziem/crab/blob/master/include/crab/analysis/bwd_analyzer.hpp | Github Open Source | Open Source | Apache-2.0 | null | crab | aziem | C++ | Code | 1,200 | 4,227 | #pragma once
#include <crab/cfg/cfg.hpp>
#include <crab/cfg/var_factory.hpp>
#include <crab/iterators/fwd_fixpoint_iterators.hpp>
#include <crab/analysis/fwd_analyzer.hpp>
#include <crab/analysis/abs_transformer.hpp>
#include <crab/analysis/dataflow/liveness.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/unord... | 25,119 |
https://github.com/joaocarias/project-18/blob/master/resources/views/produto/index.blade.php | Github Open Source | Open Source | MIT | null | project-18 | joaocarias | PHP | Code | 261 | 1,361 | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row text-center">
<div class="col-md-12">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ route('home') }}"><i class="fas fa-home"></... | 5,921 |
https://github.com/AIESEC-no-Brasil/impact-brazil/blob/master/frontend/src/views/Contact.vue | Github Open Source | Open Source | Apache-2.0 | 2,019 | impact-brazil | AIESEC-no-Brasil | Vue | Code | 80 | 324 | <template>
<div class="section">
<i class="material-icons">contact_support</i>
<div class="title">Contact Us</div>
<div class="iframe">
<iframe src="https://podio.com/webforms/21986117/1538640"></iframe>
</div>
</div>
</template>
<script>
export default {
name: "C... | 44,290 |
https://github.com/jupyter/nbgrader/blob/master/nbgrader/apps/generatesolutionapp.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | nbgrader | jupyter | Python | Code | 312 | 823 | # coding: utf-8
import sys
from traitlets import default
from .baseapp import NbGrader, nbgrader_aliases, nbgrader_flags
from ..converters import BaseConverter, GenerateSolution, NbGraderException
from traitlets.traitlets import MetaHasTraits
from typing import List, Any
from traitlets.config.loader import Config
a... | 9,303 |
https://github.com/miguelpeire/proyectoGodot/blob/master/.import/frame0002.png-7efb2b266c80a99de9eb1dfe104aba0e.md5 | Github Open Source | Open Source | CC0-1.0 | 2,019 | proyectoGodot | miguelpeire | null | Spoken | 2 | 53 | source_md5="88d5607595643bd7a0b48053c200ead1"
dest_md5="a7b86b727389e042c57a89b32e614312"
| 52,031 |
https://github.com/Lambda-Labs-Weedmanps-1/Labs-Weedmaps1-FE/blob/master/supp2u/src/config/Axios.js | Github Open Source | Open Source | MIT | 2,020 | Labs-Weedmaps1-FE | Lambda-Labs-Weedmanps-1 | JavaScript | Code | 30 | 100 | import axios from "axios";
const api = axios.create({
//! change to whatever port you're running front end from //
baseURL: process.env.REACT_APP_BACKEND_URL,
});
if(localStorage.getItem("id_token")){
api.defaults.headers.common["Authorization"] = localStorage.id_token;
}
export default api; | 41,140 |
https://github.com/yzh92/graduation-wechat-mall/blob/master/shop-bean/src/main/java/com/shop/bean/app/dto/ShopCartOrderDto.java | Github Open Source | Open Source | MIT | null | graduation-wechat-mall | yzh92 | Java | Code | 163 | 616 | /*
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
*
* https://www.gz-yami.com/
*
* 未经允许,不可做商业用途!
*
* 版权所有,侵权必究!
*/
package com.shop.bean.app.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 单个店铺的订单信息
*/
@Data
pu... | 51,995 |
https://github.com/ArduSat/codebender.cc/blob/master/Symfony/src/Ace/BlogBundle/Resources/views/Default/viewpost.html.twig | Github Open Source | Open Source | MIT | 2,013 | codebender.cc | ArduSat | Twig | Code | 38 | 130 | {% extends '::container.html.twig' %}
{% block title %}
{{ site_name }} blog
{% endblock %}
{% block mainspan %}
<div class="page-header">
<h1>{{post.title}}</h1>
</div>
<div id="post">
<div class="row-fluid">
<div class="span12">
{{ post.text|raw }}
</div>
</div>
</div>
{% endblock %}
| 25,355 |
https://github.com/syedhali/AudioStreamer/blob/master/AudioStreamerTests/ReaderTests.swift | Github Open Source | Open Source | Apache-2.0 | 2,023 | AudioStreamer | syedhali | Swift | Code | 564 | 1,788 | //
// ReaderTests.swift
// AudioStreamerTests
//
// Created by Syed Haris Ali on 1/6/18.
// Copyright © 2018 Ausome Apps LLC. All rights reserved.
//
import XCTest
import AVFoundation
import os.log
@testable import AudioStreamer
class ReaderTests: XCTestCase {
func testReadDownloadedMP3() {
let expec... | 35,350 |
https://github.com/MarioHsiao/NuPattern/blob/master/Src/Authoring/Source/Authoring.WorkflowDesign/Diagram/Shapes/ProducedAssetShape.cs | Github Open Source | Open Source | Apache-2.0 | 2,017 | NuPattern | MarioHsiao | C# | Code | 299 | 830 | using System;
using System.Drawing;
using Microsoft.VisualStudio.Modeling.Diagrams;
namespace NuPattern.Authoring.WorkflowDesign
{
/// <summary>
/// Customized shape for a Produced Asset.
/// </summary>
partial class ProducedAssetShape : ProducedAssetShapeBase, IDisposable
{
private LeftSi... | 18,914 |
https://github.com/kospiotr/spring-classes/blob/master/04-Configuration/src/main/java/com/github/kospiotr/spring/JavaConfigurationWay.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | spring-classes | kospiotr | Java | Code | 52 | 158 | package com.github.kospiotr.spring;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class JavaConfigurationWay {
public static void main(String[] args) {
//create Inversion of Control container
//creat... | 41,758 |
https://github.com/peterlietz/PermLib/blob/master/test/test-abstract-groups.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,021 | PermLib | peterlietz | C++ | Code | 887 | 3,386 | // ---------------------------------------------------------------------------
//
// This file is part of PermLib.
//
// Copyright (c) 2009-2011 Thomas Rehn <thomas@carmen76.de>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided tha... | 25,254 |
https://github.com/felixroeser/teller/blob/master/db/migrate/20130821063756_strip_metadata_of_videofiles.rb | Github Open Source | Open Source | MIT | 2,013 | teller | felixroeser | Ruby | Code | 42 | 180 | class StripMetadataOfVideofiles < ActiveRecord::Migration
def up
VideoFile.all.each do |video_file|
%w(webm mp4).each do |format|
files = Dir["public/v/#{video_file.id}/*.#{format}"].select { |s| s.split('/').last.split('.').first.to_i != 0 }
files.each do |file|
FileUtils.mv Fil... | 21,654 |
https://github.com/jmkolawole/e-commerce-web-app-with-laravel/blob/master/resources/views/errors/404.blade.php | Github Open Source | Open Source | MIT | 2,021 | e-commerce-web-app-with-laravel | jmkolawole | PHP | Code | 101 | 403 |
@extends('frontend.layouts.master')
@section('content')
<div class="breadcrumb-area">
<div class="container">
<ol class="breadcrumb breadcrumb-list">
<li class="breadcrumb-item"><a href="{{route('home')}}">Home</a></li>
<li class="breadcrumb-item active">404</li>
</ol>
... | 3,393 |
https://github.com/sahana/eden/blob/master/static/themes/historic/DRMP/js/newsfeed.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | eden | sahana | JavaScript | Code | 84 | 263 | /**
* Used by the 'News Feed' page (templates/DRMP/controllers.py)
* This script is in Static to allow caching
* Dynamic constants (e.g. Internationalised strings) are set in server-generated script
*/
$(document).ready(function(){
// Style the Search TextFilter widget
$('#post-cms_post_body-text-filter__... | 15,240 |
https://github.com/wooyen/WebLedger/blob/master/common/models/User.php | Github Open Source | Open Source | BSD-3-Clause | null | WebLedger | wooyen | PHP | Code | 480 | 1,604 | <?php
namespace common\models;
use Yii;
use yii\base\NotSupportedException;
use yii\behaviors\TimestampBehavior;
use yii\db\ActiveRecord;
use yii\web\IdentityInterface;
/**
* User model
*
* @property int $id
* @property string $username
* @property string $auth_key
* @property string $password_hash
* @propert... | 11,085 |
https://github.com/sebtomba/rchain/blob/master/roscala/src/main/scala/coop/rchain/rosette/Actor.scala | Github Open Source | Open Source | Apache-2.0 | null | rchain | sebtomba | Scala | Code | 26 | 90 | package coop.rchain.rosette
import cats.data.State._
import coop.rchain.rosette.Ctxt.{Continuation, CtxtTransition}
abstract class Actor extends Ob {
val extension: StdExtension
// TODO:
override def lookupAndInvoke: CtxtTransition[(Result, Option[Continuation])] = ???
}
| 40,056 |
https://github.com/gaolhjy/wanAndroid/blob/master/sdk/src/main/java/com/doyo/sdk/activity/BaseListActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | wanAndroid | gaolhjy | Java | Code | 288 | 1,246 | package com.doyo.sdk.activity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.doyo.sdk.R;
import com.doyo.sdk.adapter.BaseCompatAdapter;
import com.doyo.sdk.mvp.BaseSimpleP... | 8,761 |
https://github.com/adam-nhccit/hmdm-server/blob/master/common/src/main/java/com/hmdm/persistence/ConfigurationReferenceExistsException.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | hmdm-server | adam-nhccit | Java | Code | 183 | 342 | /*
*
* Headwind MDM: Open Source Android MDM Software
* https://h-mdm.com
*
* Copyright (C) 2019 Headwind Solutions LLC (http://h-sms.com)
*
* 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 Licens... | 25,462 |
https://github.com/Aloz1/ciyam/blob/master/src/Meta_Relationship.cpp | Github Open Source | Open Source | MIT | null | ciyam | Aloz1 | C++ | Code | 15,411 | 55,298 | // Copyright (c) 2008-2012 CIYAM Pty. Ltd. ACN 093 704 539
// Copyright (c) 2012-2018 CIYAM Developers
//
// Distributed under the MIT/X11 software license, please refer to the file license.txt
// in the root project directory or http://www.opensource.org/licenses/mit-license.php.
#ifdef PRECOMPILE_H
# include "preco... | 551 |
https://github.com/PacktPublishing/OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition/blob/master/Chapter04/imageComparator.h | Github Open Source | Open Source | MIT | 2,023 | OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition | PacktPublishing | C++ | Code | 243 | 560 | /*------------------------------------------------------------------------------------------*\
This file contains material supporting chapter 4 of the book:
OpenCV3 Computer Vision Application Programming Cookbook
Third Edition
by Robert Laganiere, Packt Publishing, 2016.
This program is free software; permission is h... | 35,933 |
https://github.com/pythonzm/blog/blob/master/backend/migrations/20190925144032_create_table_soup.sql | Github Open Source | Open Source | Apache-2.0 | 2,022 | blog | pythonzm | SQL | Code | 45 | 123 | -- +goose Up
-- +goose StatementBegin
CREATE TABLE `blog_soup` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`content` tinytext NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE IF EXISTS blog_soup;
-- ... | 18,194 |
https://github.com/followWinter/ioc/blob/master/rollup.config.js | Github Open Source | Open Source | MIT | null | ioc | followWinter | JavaScript | Code | 63 | 175 | import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import typescript from 'rollup-plugin-typescript';
export default [
// browser-friendly UMD build
{
input: 'lib/Ioc.ts',
output: {
name: 'Ioc',
file: 'dist/ioc.bundle.js',
... | 36,917 |
https://github.com/actarian/webrtc/blob/master/src/js/app.module.js | Github Open Source | Open Source | MIT | null | webrtc | actarian | JavaScript | Code | 41 | 128 | import { CoreModule, Module } from 'rxcomp';
import AppComponent from './app.component';
import FlagPipe from './flag/flag.pipe';
import WebRTCStreamComponent from './webrtc/webrtc-stream.component';
export class AppModule extends Module { }
AppModule.meta = {
imports: [
CoreModule,
],
declarations: [
FlagPipe... | 50,567 |
https://github.com/Erick-Mendez/Pangolin/blob/master/components/pango_video/src/drivers/shift.cpp | Github Open Source | Open Source | MIT | 2,022 | Pangolin | Erick-Mendez | C++ | Code | 720 | 2,556 | /* This file is part of the Pangolin Project.
* http://github.com/stevenlovegrove/Pangolin
*
* Copyright (c) 2014 Steven Lovegrove
*
* 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 wit... | 20,934 |
https://github.com/jhartquist/rtma/blob/master/rtma/harmonic_model.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | rtma | jhartquist | Python | Code | 37 | 77 | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/06_harmonic_model.ipynb (unless otherwise specified).
__all__ = []
# Cell
from .imports import *
from .core import *
from .signal import *
from .fft import *
from .stft import * | 4,574 |
https://github.com/DigitEgal/jigasi/blob/master/src/main/java/org/jitsi/jigasi/transcription/Transcript.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | jigasi | DigitEgal | Java | Code | 1,144 | 2,472 | /*
* Jigasi, the JItsi GAteway to SIP.
*
* Copyright @ 2017 Atlassian Pty 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
*
*... | 1,148 |
https://github.com/dmfs/ContentPal/blob/master/contentpal/src/main/java/org/dmfs/android/contentpal/views/BaseView.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | ContentPal | dmfs | Java | Code | 263 | 757 | /*
* Copyright 2017 dmfs GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 50,450 |
https://github.com/lagden/stock-quote/blob/master/bin/node/prod.js | Github Open Source | Open Source | MIT | 2,021 | stock-quote | lagden | JavaScript | Code | 103 | 360 | #!/usr/bin/env node
import path from 'node:path'
import {promises, createWriteStream} from 'node:fs'
async function read(file, options = {}) {
let filehandle
let content
try {
filehandle = await promises.open(file, 'r')
content = await filehandle.readFile(options)
} finally {
if (filehandle) {
await file... | 20,516 |
https://github.com/vangthao95/llvm/blob/master/test/Bindings/llvm-c/debug_info.ll | Github Open Source | Open Source | Apache-2.0 | 2,022 | llvm | vangthao95 | LLVM | Code | 50 | 164 | ; RUN: llvm-c-test --test-dibuilder | FileCheck %s
; CHECK: ; ModuleID = 'debuginfo.c'
; CHECK-NEXT: source_filename = "debuginfo.c"
; CHECK: !llvm.dbg.cu = !{!0}
; CHECK: !0 = distinct !DICompileUnit(language: DW_LANG_C, file: !1, producer: "llvm-c-test", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebu... | 41,477 |
https://github.com/LiquidAnalytics/ld-api-examples/blob/master/ios/LPKTutorialThree/Build/Intermediates/Pods.build/Debug-iphonesimulator/DTCoreText.build/Objects-normal/x86_64/DTCoreText_vers.d | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,018 | ld-api-examples | LiquidAnalytics | Makefile | Code | 3 | 71 | dependencies: \
/Users/carsonli/LiquidDev/ld-api-examples/ios/LPKTutorialThree/Build/Intermediates/Pods.build/Debug-iphonesimulator/DTCoreText.build/DerivedSources/DTCoreText_vers.c
| 48,631 |
https://github.com/localsite/website/blob/master/server/webdriver_tests/scatter_test.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | website | localsite | Python | Code | 426 | 1,697 | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 46,169 |
https://github.com/XuCpeng/pta/blob/master/JavaCodeSpace/src/cn/medemede/leecode/ValidateStackSequences.java | Github Open Source | Open Source | MIT | null | pta | XuCpeng | Java | Code | 69 | 203 | package cn.medemede.leecode;
import java.util.LinkedList;
/**
* 剑指 Offer 31. 栈的压入、弹出序列
*/
public class ValidateStackSequences {
public boolean validateStackSequences(int[] pushed, int[] popped) {
LinkedList<Integer> stack = new LinkedList<>();
int p = 0;
int q = 0;
int n = pushed... | 37,570 |
https://github.com/fabdavid/asap2_web/blob/master/test/system/std_methods_test.rb | Github Open Source | Open Source | CC-BY-4.0 | 2,023 | asap2_web | fabdavid | Ruby | Code | 98 | 281 | require "application_system_test_case"
class StdMethodsTest < ApplicationSystemTestCase
setup do
@std_method = std_methods(:one)
end
test "visiting the index" do
visit std_methods_url
assert_selector "h1", text: "Std Methods"
end
test "creating a Std method" do
visit std_methods_url
cli... | 51,950 |
https://github.com/xiaobengou01/gnes/blob/master/gnes/proto/__init__.py | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, MIT, BSD-2-Clause | 2,019 | gnes | xiaobengou01 | Python | Code | 624 | 1,989 | # Tencent is pleased to support the open source community by making GNES available.
#
# Copyright (C) 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... | 8,136 |
https://github.com/myangeline/rorobot/blob/master/app/urls.py | Github Open Source | Open Source | Apache-2.0 | null | rorobot | myangeline | Python | Code | 29 | 124 | # _*_ coding:utf-8 _*_
"""
Created on 2015-05-24
@author: lujin
"""
from django.conf.urls import url, include
urlpatterns = [
url(r'article/', include('app.article.urls', namespace='article')),
url(r'login/', include('app.login.urls', namespace='login')),
url(r'setup/', include('app.setup.urls', namespace... | 25,474 |
https://github.com/josejonathan7/Jobs-Calc-Rocketseat/blob/master/dist/controllers/JobController.js | Github Open Source | Open Source | MIT | null | Jobs-Calc-Rocketseat | josejonathan7 | JavaScript | Code | 243 | 718 | "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _Job = require('../model/Job');
var _jobUtils = require('../Utils/jobUtils');
var _Profile = require('../model/Profile');
function createJobController(req, res) {
return res.render("job");
} exports.createJobController = createJobController... | 1 |
https://github.com/younglight7/WanAndroid/blob/master/app/src/main/java/com/chejdj/wanandroid/db/tablemanager/HomeBannerTableManager.java | Github Open Source | Open Source | MIT | 2,019 | WanAndroid | younglight7 | Java | Code | 121 | 531 | package com.chejdj.wanandroid.db.tablemanager;
import com.chejdj.wanandroid.db.ObjectBox;
import com.chejdj.wanandroid.db.entity.HomeBannerDB;
import com.chejdj.wanandroid.util.SharedPreferenceUtils;
import java.util.List;
import io.objectbox.Box;
import io.reactivex.Observable;
public class HomeBannerTableManager ... | 28,498 |
https://github.com/mohanadatef/sharwaonline/blob/master/resources/views/includes/frontend/master_frontend.blade.php | Github Open Source | Open Source | MIT | null | sharwaonline | mohanadatef | PHP | Code | 14 | 93 | <!DOCTYPE html>
<html lang="en">
@include('includes.frontend.head')
<body>
@include('includes.frontend.header')
@yield('content')
@include('includes.frontend.footer')
</body>
@include('includes.frontend.script')
@yield('script-2')
@yield('script-1')
</html> | 50,974 |
https://github.com/thwang1231/autokeras/blob/master/shell/lint.sh | Github Open Source | Open Source | MIT | 2,021 | autokeras | thwang1231 | Shell | Code | 5 | 14 | isort -rc -sl -c
flake8
| 21,987 |
https://github.com/dvadhwana/azuretestapp/blob/master/azuretestapp/Model/APOD.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | azuretestapp | dvadhwana | C# | Code | 97 | 258 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Runtime.Serialization;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;
namespace azuretestapp.Model
{
[DataContract]
public class APOD
{
[BsonId]
[DataMember]
... | 34,288 |
https://github.com/nachom12/Interfacultades-API/blob/master/routes/champions.js | Github Open Source | Open Source | MIT | 2,021 | Interfacultades-API | nachom12 | JavaScript | Code | 205 | 594 | const express = require('express');
const ChampionsService = require('../services/champions');
function champions(app) {
const router = express.Router();
app.use("/api/champions", router);
const championsService = new ChampionsService();
router.get("/", async function (req, res, next) {
try {
const... | 1,223 |
https://github.com/loyin/go-spring/blob/master/spring/spring-boot/spring-boot-message.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | go-spring | loyin | Go | Code | 373 | 1,174 | /*
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 13,437 |
https://github.com/tuyenxuan/fitness/blob/master/database/seeds/CategorySeeder.php | Github Open Source | Open Source | MIT | 2,017 | fitness | tuyenxuan | PHP | Code | 1,504 | 4,081 | <?php
use Illuminate\Database\Seeder;
use Carbon\Carbon;
class CategorySeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('categories')->insert([
[
'parent_category_id' => 0,
't... | 44,287 |
https://github.com/adams85/aspnetskeleton2/blob/master/src/UI.AspNetCore/Areas/Dashboard/Models/DashboardPageModel.cs | Github Open Source | Open Source | MIT | 2,021 | aspnetskeleton2 | adams85 | C# | Code | 43 | 162 | using WebApp.UI.Areas.Dashboard.Models.Layout;
using WebApp.UI.Models;
using WebApp.UI.Models.Layout;
namespace WebApp.UI.Areas.Dashboard.Models
{
public abstract class DashboardPageModel<TPageDescriptor> : BasePageModel<TPageDescriptor>, ILayoutModelProvider<DashboardPageLayoutModel>
where TPageDescripto... | 28,653 |
https://github.com/williamantony/SQL.php/blob/master/src/Update.php | Github Open Source | Open Source | MIT | 2,021 | SQL.php | williamantony | PHP | Code | 128 | 369 | <?php
namespace WA\SQL;
use WA\SQL\Traits\{CommonTrait, Where};
class Update
{
private $query;
private $tablename;
private $values;
use Where;
use CommonTrait;
public function __construct(string $tablename = null)
{
$this->table($tablename);
}
public function table(stri... | 43,270 |
https://github.com/WhyWolfie/source2007/blob/master/CSCommon/Source/MGridMap.cpp | Github Open Source | Open Source | FSFAP | null | source2007 | WhyWolfie | C++ | Code | 35 | 129 | #include "stdafx.h"
#include "MGridMap.h"
void compile_test(void)
{
MGridMap<int> m;
m.Create(0, 0, 100, 100, 10, 10);
MGridMap<int>::HREF hPos = m.Add(0, 0, 0, 1);
m.Move(10, 10, 10, 1, hPos);
list<int> nearest;
m.Get(&nearest, 0, 0, 0, 10);
} | 21,269 |
https://github.com/gurdiga/repetitor.tsx/blob/master/backend/src/ScenarioHandlers/Logout.ts | Github Open Source | Open Source | Unlicense | 2,021 | repetitor.tsx | gurdiga | TypeScript | Code | 29 | 108 | import {ScenarioRegistry} from "shared/src/ScenarioRegistry";
import {UserSession, clearUserSession} from "shared/src/Model/UserSession";
type Scenario = ScenarioRegistry["Logout"];
export async function Logout(_input: Scenario["Input"], session: UserSession): Promise<Scenario["Result"]> {
clearUserSession(session)... | 43,718 |
https://github.com/TheLOGOGuy/instantsearch.js/blob/master/src/widgets/range-input/range-input.js | Github Open Source | Open Source | MIT | 2,018 | instantsearch.js | TheLOGOGuy | JavaScript | Code | 765 | 1,981 | import React, { render } from 'preact-compat';
import cx from 'classnames';
import RangeInput from '../../components/RangeInput/RangeInput.js';
import connectRange from '../../connectors/range/connectRange.js';
import {
bemHelper,
prepareTemplateProps,
getContainerNode,
} from '../../lib/utils.js';
import default... | 4,496 |
https://github.com/BlackGlory/iterable-operator/blob/master/src/drop-until.ts | Github Open Source | Open Source | MIT | 2,023 | iterable-operator | BlackGlory | TypeScript | Code | 68 | 169 | export function* dropUntil<T>(
iterable: Iterable<T>
, predicate: (element: T, index: number) => unknown
): IterableIterator<T> {
const iterator = iterable[Symbol.iterator]()
let done: boolean | undefined
try {
let index = 0
let value: T
while ({ value, done } = iterator.next(), !done) {
if (... | 50,616 |
https://github.com/jacob-israel-turner/mux-node-sdk/blob/master/types/interfaces/RealTimeHistogramResponse.ts | Github Open Source | Open Source | MIT | 2,020 | mux-node-sdk | jacob-israel-turner | TypeScript | Code | 29 | 94 | import { RealTimeHistogramValue } from './RealTimeHistogramValue';
export interface RealTimeHistogramResponse {
total_row_count: null;
timeframe: Array<number>;
meta: {
buckets: Array<{ start: number; end: number }>;
bucket_unit: string;
};
data: Array<RealTimeHistogramValue>;
}
| 20,396 |
https://github.com/jxmlegend/JT809/blob/master/src/JT809.Protocol.Test/MessagePack/JT809MessagePackReaderTest.cs | Github Open Source | Open Source | MIT | 2,022 | JT809 | jxmlegend | C# | Code | 142 | 989 | using JT809.Protocol.MessagePack;
using JT809.Protocol.Extensions;
using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
namespace JT809.Protocol.Test.MessagePack
{
public class JT808MessagePackReaderTest
{
[Fact]
public void WriteCRC16Test()
{
var... | 44,827 |
https://github.com/CKEdiriweera/UoCLBSP-WebServer/blob/master/legacy/UoCMaps/resources/views/admin/addpolygon.blade.php | Github Open Source | Open Source | MIT | 2,018 | UoCLBSP-WebServer | CKEdiriweera | PHP | Code | 376 | 1,199 | <!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Complex Polylines</title>
<style>
/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
#map {
... | 2,132 |
https://github.com/RockefellerArchiveCenter/library_data/blob/master/_sass/rac/components/_tile.scss | Github Open Source | Open Source | MIT | null | library_data | RockefellerArchiveCenter | SCSS | Code | 199 | 689 | @import "../styles";
.tile-list {
display: inline-block;
padding: 0;
margin-left: -$gutters-default;
margin-right: -$gutters-default;
}
.tile {
@include grid-column(12);
display: inline-block;
box-sizing: border-box;
background: $off-white;
border: 1px solid $orange-gray;
box-shadow: 0 0 4px 0 $li... | 34,535 |
https://github.com/santtu/dj-database-url/blob/master/.gitignore | Github Open Source | Open Source | BSD-2-Clause | 2,013 | dj-database-url | santtu | Ignore List | Code | 2 | 15 | *.pyc
dj_database_url.egg-info/ | 15,351 |
https://github.com/dwango-js/private-npm-publish/blob/master/test/npm-run-test.js | Github Open Source | Open Source | MIT | 2,015 | private-npm-publish | dwango-js | JavaScript | Code | 43 | 130 | // LICENSE : MIT
"use strict";
var assert = require("power-assert");
var npmRun = require("../").npmRun;
describe("npm-run-test", function () {
describe("npmRunAsync", function () {
it("should run 'npm version' command", function (done) {
return npmRun.npmRunAsync("version").then(function(data){... | 29,084 |
https://github.com/chinieer/react-vant/blob/master/packages/react-vant-icons/src/icons/AppsO.tsx | Github Open Source | Open Source | MIT | null | react-vant | chinieer | TypeScript | Code | 124 | 705 | import * as React from 'react';
import IconBase, { IconBaseProps } from './IconBase';
const SvgIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg
width="1em"
height="1em"
viewBox="0 0 1024 1024"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
{...props}
>
<path
d="M708... | 15,335 |
https://github.com/Zac-Zajdel/Venture-Code/blob/master/resources/lang/en/blog.php | Github Open Source | Open Source | MIT | null | Venture-Code | Zac-Zajdel | PHP | Code | 18 | 58 | <?php
return [
'created' => 'Blog created',
'updated' => 'Blog <strong>:name</strong> updated',
'deleted' => 'Blog <strong>:name</strong> deleted',
];
| 41,264 |
https://github.com/marcosecchi/techio-fungus-3d-tutorial/blob/master/Assets/Fungus/Thirdparty/FungusLua/Thirdparty/MoonSharp/Interpreter/CodeAnalysis/AstNode.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | techio-fungus-3d-tutorial | marcosecchi | C# | Code | 9 | 29 |
namespace MoonSharp.Interpreter.CodeAnalysis
{
class AstNode
{
}
}
| 49,374 |
https://github.com/LDAP/sublime_debugger/blob/master/modules/adapters/go.py | Github Open Source | Open Source | MIT | null | sublime_debugger | LDAP | Python | Code | 114 | 475 | from ..typecheck import *
from ..settings import Settings
from .import adapter
import shutil
class Go(adapter.AdapterConfiguration):
@property
def type(self):
return "go"
async def start(self, log, configuration):
node = await adapter.get_and_warn_require_node(self.type, log)
install_path = adapter.vscode.... | 24,106 |
https://github.com/rueyaa332266/testcafe/blob/master/test/server/data/test-suites/coffeescript-basic/dep1.coffee | Github Open Source | Open Source | MIT | 2,022 | testcafe | rueyaa332266 | CoffeeScript | Code | 6 | 13 | export default ->
'Hey from dep1'
| 15,481 |
https://github.com/LordNerevar/android_vendor_intel_google-diffs/blob/master/android_4.4/patches/dalvik/0177-Dalvik-Backend-Options.patch | Github Open Source | Open Source | Apache-2.0 | 2,014 | android_vendor_intel_google-diffs | LordNerevar | null | Spoken | 1,280 | 3,124 | From 9a3cfeee15c1fff248ab45a78020ee136771e884 Mon Sep 17 00:00:00 2001
From: Jean Christophe Beyler <jean.christophe.beyler@intel.com>
Date: Wed, 10 Apr 2013 08:01:43 -0700
Subject: Dalvik: Backend Options
BZ: 99468
The following patch enables option passing to the Dalvik back-end. It uses a
-Xjitbackendoption:key=v... | 49,440 |
https://github.com/Tannybuoy/covreact-frontend/blob/master/src/pages/reviewForm/reducer.js | Github Open Source | Open Source | MIT | null | covreact-frontend | Tannybuoy | JavaScript | Code | 100 | 309 | import { toTitle } from "../../helper/functions"
const updateState = (obj, key, value) =>({ ...obj, [`${key}`]: value })
export const reviewReducer = (state, action) =>{
switch (action.type)
{
case "_id": return updateState(state, "_id", action.payload)
case "age": return updateState(state, "a... | 52,490 |
https://github.com/celer/pboltev/blob/master/obdii/utils.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | pboltev | celer | Python | Code | 13 | 47 |
def bytes_to_int_signed(b):
"""Convert big-endian signed integer bytearray to int."""
return int.from_bytes(b, 'big', signed=True)
| 132 |
https://github.com/STAR-RG/shipwright/blob/master/data/broken-dockerfiles/df54dcdfbb2f115a6ef5d02192cfd6822b57c0fd.Dockerfile | Github Open Source | Open Source | MIT | 2,021 | shipwright | STAR-RG | Dockerfile | Code | 190 | 959 | FROM java:8-jdk-alpine
# PYTHON 3
ENV PYTHON_VERSION 3.4.3-r2
ENV ALPINE_OLD_VERSION 3.2
# Hack: using older alpine version to install specific python version
RUN sed -n \
's|^http://dl-cdn\.alpinelinux.org/alpine/v\([0-9]\+\.[0-9]\+\)/main$|\1|p' \
/etc/apk/repositories > curr_version.tmp && \
sed -i 's|... | 29,238 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.