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/spot-dodge-shine/twitch-buddy/blob/master/server/db/models/index.js | Github Open Source | Open Source | MIT | null | twitch-buddy | spot-dodge-shine | JavaScript | Code | 189 | 595 |
const { User } = require('./user')
const { Spotify } = require('./spotify')
const { Votecycle } = require('./votecycle')
const { Votechoice } = require('./votechoice')
const { Vote } = require('./vote')
const { Module } = require('./module')
const { ModuleUser } = require('./module_user')
const { Paypal } = require('.... | 47,714 |
https://github.com/xlw1207/python_biologist/blob/master/06_data_vis_python/ggpy-master/docs/Gallery.ipynb | Github Open Source | Open Source | BSD-2-Clause | 2,021 | python_biologist | xlw1207 | Jupyter Notebook | Code | 1,154 | 4,818 | {
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from ggplot import *\n",
"import pandas as pd\n",
"import numpy as np"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
... | 49,710 |
https://github.com/aliyun/alibabacloud-java-sdk/blob/master/arms-20210519/src/main/java/com/aliyun/arms20210519/models/CreateRetcodeAppResponseBody.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | alibabacloud-java-sdk | aliyun | Java | Code | 152 | 577 | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.arms20210519.models;
import com.aliyun.tea.*;
public class CreateRetcodeAppResponseBody extends TeaModel {
@NameInMap("RequestId")
public String requestId;
@NameInMap("RetcodeAppDataBean")
public CreateRetcodeAppResponseBodyRet... | 49,970 |
https://github.com/S8msGITcode/Lightcord/blob/master/DiscordJS/src/util/modules/acknowledge.ts | Github Open Source | Open Source | MIT | 2,022 | Lightcord | S8msGITcode | TypeScript | Code | 33 | 101 | import { requireModule } from "../DiscordToModules"
import { Snowflake } from "../.."
let acknowledgeModuleInternal1:{
bulkAck(channels:{
channelId: Snowflake,
messageId: Snowflake
}[]):void
} = requireModule(e => e && e.bulkAck)
export = {
bulkAck: acknowledgeModuleInternal1.bulkAck
} | 23,513 |
https://github.com/risooonho/ue-grpc/blob/master/build/build_linux.py | Github Open Source | Open Source | MIT | 2,018 | ue-grpc | risooonho | Python | Code | 967 | 7,213 | import subprocess
import os
import sys
import shutil
import winreg
from common_vars import *
from source_file_paths import *
clang_linux_root = os.path.join(os.environ["LINUX_MULTIARCH_ROOT"], "x86_64-unknown-linux-gnu")
clang_exe = clang_linux_root + "/bin/clang.exe"
clang_ar_exe = clang_linux_roo... | 8,924 |
https://github.com/researchmm/PEN-Net-for-Inpainting/blob/master/test.py | Github Open Source | Open Source | MIT | 2,021 | PEN-Net-for-Inpainting | researchmm | Python | Code | 343 | 1,500 | # -*- coding: utf-8 -*-
import torch
from torch.autograd import Variable
import torch.nn as nn
import torch.nn.functional as F
import torch.nn.init as init
import torch.utils.model_zoo as model_zoo
from torchvision import models
import torch.multiprocessing as mp
from torchvision import transforms
from torch.utils.da... | 34,241 |
https://github.com/bonedaddy/clutch/blob/master/backend/api/config/service/audit/v1/audit.pb.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | clutch | bonedaddy | Go | Code | 1,310 | 4,636 | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: config/service/audit/v1/audit.proto
package auditv1
import (
fmt "fmt"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
... | 23,046 |
https://github.com/angelospillos/node-api-oauth-server-payment-gateway/blob/master/src/utils/errors.util.js | Github Open Source | Open Source | MIT | 2,019 | node-api-oauth-server-payment-gateway | angelospillos | JavaScript | Code | 135 | 351 | export class ApplicationError extends Error {
constructor(message, code, status) {
super();
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
this.code = code || 'ERR_INTERNAL_SERVER'
this.message = message || 'Something went wrong. Please tr... | 18,903 |
https://github.com/tied/securityTesting/blob/master/src/main/java/com/miniorange/oauth/bamboo/factory/IProtocolAction.java | Github Open Source | Open Source | Apache-2.0 | null | securityTesting | tied | Java | Code | 57 | 272 | package com.miniorange.oauth.bamboo.factory;
import com.miniorange.oauth.bamboo.MoOAuthSettings;
import com.miniorange.oauth.bamboo.dto.ProtocolType;
import com.miniorange.oauth.bamboo.dto.TokenResponse;
import com.miniorange.oauth.utils.MoOAuthUtils;
import com.google.gson.JsonParseException;
import com.google.gson.J... | 33,827 |
https://github.com/dybalabak/GECCO_2021_Competition/blob/master/starterkits/rust/src/rollingmill/mod.rs | Github Open Source | Open Source | MIT | 2,021 | GECCO_2021_Competition | dybalabak | Rust | Code | 52 | 169 | mod rollingmill_model;
mod heuristic;
pub fn plan_moves(world: &rollingmill_model::World) -> Option<rollingmill_model::PlannedCraneMoves> {
let mut planned_moves = heuristic::next_moves(world);
// set sequence number because the simulation only accepts Schedules with increasing sequence numbers.
le... | 45,215 |
https://github.com/DavidJones011/ezEngine/blob/master/Code/EditorPlugins/Assets/EditorPluginAssets/EditorPluginAssets.cpp | Github Open Source | Open Source | MIT | null | ezEngine | DavidJones011 | C++ | Code | 1,009 | 7,055 | #include <EditorPluginAssets/EditorPluginAssetsPCH.h>
#include <EditorFramework/Actions/AssetActions.h>
#include <EditorFramework/Actions/CommonAssetActions.h>
#include <EditorFramework/Actions/GameObjectContextActions.h>
#include <EditorFramework/Actions/GameObjectDocumentActions.h>
#include <EditorFramework/Actions/... | 49,741 |
https://github.com/w181496/OJ/blob/master/Zerojudge/a647.cpp | Github Open Source | Open Source | MIT | 2,021 | OJ | w181496 | C++ | Code | 123 | 252 | // >0: +eps, <0: -eps
#include <iostream>
#include <iomanip>
using namespace std;
const double EPS = 1e-5;
int main() {
ios_base::sync_with_stdio(0);
int n;
while(cin >> n) {
double a, b;
for(int i = 0; i < n; ++i) {
cin >> a >> b;
double r = (b - a) * 100 / a;
... | 14,129 |
https://github.com/xuedong/leet-code/blob/master/Problems/Algorithms/382. Linked List Random Node/LinkedListRandomNode2.java | Github Open Source | Open Source | MIT | 2,023 | leet-code | xuedong | Java | Code | 120 | 255 | /**
* Definition for singly-linked list.
* public class ListNode {
* int val;
* ListNode next;
* ListNode() {}
* ListNode(int val) { this.val = val; }
* ListNode(int val, ListNode next) { this.val = val; this.next = next; }
* }
*/
class Solution {
private ListNode head;
public Solu... | 30,574 |
https://github.com/fis2021/Moviefy/blob/master/src/main/java/org/loose/fis/mov/exceptions/EmailAddressAlreadyUsedException.java | Github Open Source | Open Source | Apache-2.0 | null | Moviefy | fis2021 | Java | Code | 36 | 101 | package org.loose.fis.mov.exceptions;
public class EmailAddressAlreadyUsedException extends Exception {
private final String email;
public EmailAddressAlreadyUsedException(String email) {
super(String.format("The e-mail address %s is already used!", email));
this.email = email;
}
publ... | 28,169 |
https://github.com/scommons/scommons/blob/master/ui/src/main/scala/scommons/client/app/AppBrowsePanel.scala | Github Open Source | Open Source | Apache-2.0 | 2,017 | scommons | scommons | Scala | Code | 62 | 282 | package scommons.client.app
import scommons.client.ui.tree.{BrowseTree, BrowseTreeProps}
import scommons.client.ui.{ButtonsPanel, ButtonsPanelProps}
import scommons.react._
case class AppBrowsePanelProps(buttonsProps: ButtonsPanelProps,
treeProps: BrowseTreeProps)
object AppBrowsePanel... | 17,088 |
https://github.com/sbaker/socks/blob/master/src/Socks.Core/ConnectionOptions.cs | Github Open Source | Open Source | Apache-2.0 | null | socks | sbaker | C# | Code | 29 | 73 | using System.Net.Sockets;
namespace Socks
{
public class ConnectionOptions
{
public SocketType SocketType { get; set; } = SocketType.Stream;
public ProtocolType ProtocolType { get; set; } = ProtocolType.IP;
}
} | 46,189 |
https://github.com/Hlacer/remax-wechat-cloudbase/blob/master/node_modules/@remax/one/esm/hostComponents/useWebTouch.d.ts | Github Open Source | Open Source | MIT | 2,021 | remax-wechat-cloudbase | Hlacer | TypeScript | Code | 73 | 221 | import * as React from 'react';
interface UseWebTouchParams {
hoverDelay?: number;
onLongTap?: (event: any) => void;
onTouchCancel?: (event: any) => void;
onTouchEnd?: (event: any) => void;
onTouchMove?: (event: any) => void;
onTouchStart?: (event: any) => void;
hoverDuration?: number;
}
dec... | 18,759 |
https://github.com/TomBebb/hxecs/blob/master/build/cpp_test/src/cpp/Lib.cpp | Github Open Source | Open Source | BSD-3-Clause | null | hxecs | TomBebb | C++ | Code | 166 | 846 | // Generated by Haxe 3.4.7
#include <hxcpp.h>
#ifndef INCLUDED_cpp_Lib
#include <cpp/Lib.h>
#endif
namespace cpp{
void Lib_obj::__construct() { }
Dynamic Lib_obj::__CreateEmpty() { return new Lib_obj; }
void *Lib_obj::_hx_vtable = 0;
Dynamic Lib_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Lib_obj > _... | 4,159 |
https://github.com/MikuSugar/LeetCode/blob/master/JavaCode/contest/weekly/n0_200/n126/N2.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | LeetCode | MikuSugar | Java | Code | 175 | 823 | package JavaCode.contest.weekly.n0_200.n126;
public class N2
{
public boolean isValid(String S) {
int a=0;
int b=0;
for(char c:S.toCharArray())
{
if(c=='a') a++;
else if(c=='b') b++;
else if(c=='c')
{
a--;
... | 17,758 |
https://github.com/rideg/jtext/blob/master/src/main/java/org/jtext/ui/event/ModelChangedEvent.java | Github Open Source | Open Source | MIT | 2,016 | jtext | rideg | Java | Code | 7 | 23 | package org.jtext.ui.event;
public class ModelChangedEvent {
}
| 47,840 |
https://github.com/goldsmith/soundfetch/blob/master/test/soundfetch/core_test.clj | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,014 | soundfetch | goldsmith | null | Spoken | 9 | 37 | (ns soundfetch.core-test
(:require [clojure.test :refer :all]
[soundfetch.core :refer :all]))
| 5,966 |
https://github.com/object-oriented-python/numpoly/blob/master/numpoly/array_function/equal.py | Github Open Source | Open Source | BSD-2-Clause | 2,020 | numpoly | object-oriented-python | Python | Code | 258 | 670 | """Return (x1 == x2) element-wise."""
import numpy
import numpoly
from ..dispatch import implements
@implements(numpy.equal)
def equal(x1, x2, out=None, where=True, **kwargs):
"""
Return (x1 == x2) element-wise.
Args:
x1, x2 (numpoly.ndpoly):
Input arrays. If ``x1.shape != x2.shape``... | 53,493 |
https://github.com/JackWalpole/seismo-fortran-fork/blob/master/spherical_splines/SHTOOLS/src/doc/shpowerdensityl.pod | Github Open Source | Open Source | MIT | 2,022 | seismo-fortran-fork | JackWalpole | null | Spoken | 163 | 461 | =head1 SHPowerDensityL
=over 18
=item SHPowerDensityL -
Compute the power spectral density of a real function for a single degree L.
=back
=head1 SYNOPSIS
=over 34
=item REAL*8 FUNCTION SHPowerDensityL (
C, L )
=back
=over 4
=over 10
=item REAL*8
C(2, L+1, L+1)
=item INTEGER
L
=back
=back
=head1 D... | 49,406 |
https://github.com/Anilople/javajvm/blob/master/src/test/java/com/github/anilople/javajvm/helper/JvmThreadFactory.java | Github Open Source | Open Source | MIT | 2,022 | javajvm | Anilople | Java | Code | 167 | 563 | package com.github.anilople.javajvm.helper;
import com.github.anilople.javajvm.heap.JvmClassLoader;
import com.github.anilople.javajvm.heap.JvmMethod;
import com.github.anilople.javajvm.runtimedataarea.Frame;
import com.github.anilople.javajvm.runtimedataarea.JvmThread;
import com.github.anilople.javajvm.utils.JvmMeth... | 51,752 |
https://github.com/BitSaber/incy-io-kiosk-frontend/blob/master/src/actions/flagActions.js | Github Open Source | Open Source | MIT | 2,019 | incy-io-kiosk-frontend | BitSaber | JavaScript | Code | 44 | 127 | import { SET_ALL_ANSWERED, SET_SHOW_ERROR, SET_ERROR_MSG } from "../constants/actions";
export const setAllAnsweredAction = value => ({
type: SET_ALL_ANSWERED,
payload: value,
});
export const setShowErrorAction = value => ({
type: SET_SHOW_ERROR,
payload: value,
});
export const setErrorMsgAction = ... | 20,971 |
https://github.com/huangynj/dawn/blob/master/dawn/src/dawn/AST/Offsets.cpp | Github Open Source | Open Source | MIT | 2,019 | dawn | huangynj | C++ | Code | 149 | 423 | //===--------------------------------------------------------------------------------*- C++ -*-===//
// _
// | |
// __| | __ ___ ___ ___
// / _` |/ _` \ \ /\ / / '_ |
// | (_| | (_| |\ V V /| | | |
// ... | 33,890 |
https://github.com/CodeIgniter-Chinese/CodeIgniter4/blob/master/user_guide_src/source/helpers/form_helper/006.php | Github Open Source | Open Source | MIT | 2,022 | CodeIgniter4 | CodeIgniter-Chinese | PHP | Code | 5 | 26 | <?php
echo form_open('email/send', 'class="email" id="myform"');
| 18,608 |
https://github.com/amirsalah/manageditk/blob/master/Source/Modules/ComposeFilters/managed_itkComposeRGBAImageFilter.cmake | Github Open Source | Open Source | MIT | null | manageditk | amirsalah | CMake | Code | 158 | 1,530 | WRAP_CLASS("itk::ComposeRGBAImageFilter")
IF(WRAP_rgba_unsigned_char AND WRAP_unsigned_char)
WRAP_IMAGE_FILTER_TYPES(UC RGBAUC)
ENDIF(WRAP_rgba_unsigned_char AND WRAP_unsigned_char)
IF(WRAP_rgba_unsigned_short AND WRAP_unsigned_short)
WRAP_IMAGE_FILTER_TYPES(US RGBAUS)
ENDIF(WRAP_rgba_unsigned_short A... | 8,812 |
https://github.com/zeitguy/raspberrypi_cookbook_ed3/blob/master/python/ch_16_thingspeak_data.py | Github Open Source | Open Source | MIT | 2,019 | raspberrypi_cookbook_ed3 | zeitguy | Python | Code | 57 | 192 | import time, os
import requests
PERIOD = 60 # seconds
BASE_URL = 'https://api.thingspeak.com/update.json'
KEY = 'your key goes here'
def send_data(temp):
data = {'api_key' : KEY, 'field1' : temp}
response = requests.post(BASE_URL, json=data)
def cpu_temp():
dev = os.popen('/opt/vc/bin/vcgencmd measure_... | 9,086 |
https://github.com/LukasSlouka/TF_XNN/blob/master/benchmarks/__init__.py | Github Open Source | Open Source | MIT | 2,019 | TF_XNN | LukasSlouka | Python | Code | 8 | 29 | from .gemm_benchmark import gemm_benchmark
from .mnist_benchmark import mnist_benchmark
| 36,303 |
https://github.com/Da-Krause/settlers-remake/blob/master/jsettlers.logic/src/main/java/jsettlers/logic/map/loading/newmap/MapFileHeader.java | Github Open Source | Open Source | MIT | 2,022 | settlers-remake | Da-Krause | Java | Code | 1,021 | 2,689 | /*******************************************************************************
* Copyright (c) 2015 - 2017
*
* 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... | 16,482 |
https://github.com/microg/GmsCore/blob/master/play-services-ads-lite/src/main/aidl/com/google/android/gms/ads/internal/rewarded/client/IRewardedAd.aidl | Github Open Source | Open Source | Apache-2.0 | 2,023 | GmsCore | microg | null | Spoken | 105 | 532 | package com.google.android.gms.ads.internal.rewarded.client;
import com.google.android.gms.ads.internal.AdRequestParcel;
import com.google.android.gms.ads.internal.ServerSideVerificationOptionsParcel;
import com.google.android.gms.ads.internal.client.IOnPaidEventListener;
import com.google.android.gms.ads.internal.cli... | 37,530 |
https://github.com/rmcloughlin/graphql-java/blob/master/src/main/java/graphql/analysis/QueryTraversal.java | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,018 | graphql-java | rmcloughlin | Java | Code | 506 | 1,786 | package graphql.analysis;
import graphql.Internal;
import graphql.execution.ConditionalNodes;
import graphql.execution.ValuesResolver;
import graphql.introspection.Introspection;
import graphql.language.Document;
import graphql.language.Field;
import graphql.language.FragmentDefinition;
import graphql.language.Fragmen... | 40,972 |
https://github.com/NeatNerdPrime/puppet-elasticsearch/blob/master/spec/templates/002_jvm.options.erb_spec.rb | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | puppet-elasticsearch | NeatNerdPrime | Ruby | Code | 62 | 272 | # frozen_string_literal: true
require 'spec_helper'
describe 'jvm.options.epp' do
let :harness do
TemplateHarness.new(
'templates/etc/elasticsearch/jvm.options.d/jvm.options.epp'
)
end
it 'render the same string each time' do
harness.set(
'@_sorted_jvm_options', [
'-Xms2g',
... | 21,276 |
https://github.com/arrowed/zenses/blob/master/zenses/src/main/java/org/zenses/utils/CustomThread.java | Github Open Source | Open Source | MIT | 2,009 | zenses | arrowed | Java | Code | 27 | 74 | package org.zenses.utils;
public class CustomThread<T> extends Thread {
private T _data;
public CustomThread(T data) {
this._data = data;
}
public T getData() {
return this._data;
}
}
| 28,831 |
https://github.com/aws/aws-sdk-net/blob/master/sdk/src/Services/CodeBuild/Generated/Model/S3LogsConfig.cs | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-proprietary-license, LicenseRef-scancode-public-domain, MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | aws-sdk-net | aws | C# | Code | 467 | 1,039 | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fi... | 29,640 |
https://github.com/wbail/tcc/blob/master/resources/views/instituicao/edit.blade.php | Github Open Source | Open Source | MIT | null | tcc | wbail | PHP | Code | 250 | 962 | @include('includes')
<!-- Header -->
@include('header')
<!-- Sidebar -->
@include('sidebar')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
... | 19,116 |
https://github.com/bappy3a/Amazon-Web-Services-useing/blob/master/app/Http/Controllers/HomeController.php | Github Open Source | Open Source | MIT | null | Amazon-Web-Services-useing | bappy3a | PHP | Code | 105 | 308 | <?php
namespace App\Http\Controllers;
use App\Post;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('aut... | 35,147 |
https://github.com/lg8294/LGKit/blob/master/LGKit/LGTheme/LGTheme.h | Github Open Source | Open Source | MIT | null | LGKit | lg8294 | C | Code | 91 | 341 | //
// LGTheme.h
// LGKit
//
// Created by lg on 2020/3/29.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
static inline UIColor* rgba(CGFloat R, CGFloat G, CGFloat B, CGFloat A) {
return [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:A];
}
/// 背景颜色
@interface LGTheme : NSObject
+ (UIColo... | 8,281 |
https://github.com/iimog/fennec/blob/master/util/update_iucn_traits.sh | Github Open Source | Open Source | MIT | 2,017 | fennec | iimog | Shell | Code | 106 | 376 | #!/bin/bash
set -o nounset
set -o errexit
FENNEC_PATH=/fennec
VERSION=$1
YEAR=${VERSION:0:4}
# create input table
perl -F"\t" -ane 'chomp $F[11]; print "$F[7]\t$F[11]\t\t\t\n";' IUCN-${VERSION}.tsv >iucn_import.tsv
# get iucn webuser id (create if not exists)
WEBUSER_ID=$($FENNEC_PATH/bin/console app:create-webuse... | 31,822 |
https://github.com/SuperMap/iClient-for-DotNet/blob/master/Connector/Utilities/Enum/GraphTextFormat.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | iClient-for-DotNet | SuperMap | C# | Code | 67 | 377 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace SuperMap.Connector.Utility
{
/// <summary>
/// <para>统计图专题标注文本格式。</para>
/// <para>在统计专题图中,可以设置各子项文本的显示形式,有百分数PERCENT、真实数值VALUE、标题CAPTION、标题+百分数
/... | 23,908 |
https://github.com/light-come/downkyiX/blob/master/src/DownKyi/ViewModels/Dialogs/ViewParsingSelectorViewModel.cs | Github Open Source | Open Source | Apache-2.0 | null | downkyiX | light-come | C# | Code | 234 | 905 | using DownKyi.Core.Settings;
using DownKyi.Utils;
using Prism.Commands;
using Prism.Services.Dialogs;
using System;
using System.Windows;
namespace DownKyi.ViewModels.Dialogs
{
public class ViewParsingSelectorViewModel : BaseDialogViewModel
{
public const string Tag = "DialogParsingSelector";
... | 31,137 |
https://github.com/jasonkhan99/Inner-Axiom/blob/master/Assets/Scripts/Model/SpeakerData.cs | Github Open Source | Open Source | MIT | null | Inner-Axiom | jasonkhan99 | C# | Code | 21 | 62 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
[System.Serializable]
public class SpeakerData
{
public List<string> messages;
public Sprite speaker;
public TextAnchor anchor;
}
| 50,603 |
https://github.com/akinnane/rust-clippy/blob/master/clippy_lints/src/map_identity.rs | Github Open Source | Open Source | MIT, Apache-2.0 | 2,021 | rust-clippy | akinnane | Rust | Code | 477 | 1,493 | use crate::utils::{
is_adjusted, is_trait_method, is_type_diagnostic_item, match_path, match_var, paths, remove_blocks,
span_lint_and_sugg,
};
use if_chain::if_chain;
use rustc_errors::Applicability;
use rustc_hir::{Body, Expr, ExprKind, Pat, PatKind, QPath, StmtKind};
use rustc_lint::{LateContext, LateLintPass... | 49,635 |
https://github.com/noice-com/benthos/blob/master/lib/processor/metadata.go | Github Open Source | Open Source | MIT | 2,022 | benthos | noice-com | Go | Code | 575 | 1,829 | package processor
import (
"fmt"
"strings"
"time"
"github.com/Jeffail/benthos/v3/internal/bloblang/field"
"github.com/Jeffail/benthos/v3/internal/docs"
"github.com/Jeffail/benthos/v3/internal/interop"
"github.com/Jeffail/benthos/v3/internal/tracing"
"github.com/Jeffail/benthos/v3/lib/log"
"github.com/Jeffail... | 15,119 |
https://github.com/AdrianNoble/Ed-Fi-ODS/blob/master/Application/EdFi.Ods.WebService.Tests/_Helpers/PersonHelper.cs | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,020 | Ed-Fi-ODS | AdrianNoble | C# | Code | 313 | 1,051 | // SPDX-License-Identifier: Apache-2.0
// Licensed to the Ed-Fi Alliance under one or more agreements.
// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
// See the LICENSE and NOTICES files in the project root for more information.
using System;
using System.Net.Http;
using Syste... | 26,969 |
https://github.com/bromso/jonasbroms-www/blob/master/packages/views/blocks/app-stats/simple.tsx | Github Open Source | Open Source | 2,023 | jonasbroms-www | bromso | TSX | Code | 22 | 52 | import React from "react";
import Simple from "blocks/appStats/AppStatsSimple";
const SimplePage = (): JSX.Element => {
return <Simple />;
};
export default SimplePage;
| 50,979 | |
https://github.com/janmyszkier/akeneo-pim-middleware-connector/blob/master/src/SprykerEco/Zed/AkeneoPimMiddlewareConnector/Dependency/Service/AkeneoPimMiddlewareConnectorToAkeneoPimServiceBridge.php | Github Open Source | Open Source | MIT | 2,019 | akeneo-pim-middleware-connector | janmyszkier | PHP | Code | 278 | 1,149 | <?php
/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace SprykerEco\Zed\AkeneoPimMiddlewareConnector\Dependency\Service;
use SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface;
class Ake... | 46,215 |
https://github.com/harvard-lil/stackview/blob/master/test/spec/stackview.navigation.spec.js | Github Open Source | Open Source | Unlicense, MIT | 2,021 | stackview | harvard-lil | JavaScript | Code | 125 | 496 | var opts = StackView.defaults;
describe('Stack View Navigation', function() {
var distance, $stack, $up, $down, $num, $items;
beforeEach(function() {
loadFixtures('default.html');
$stack = $('#stack').stackView({
data: inlineData
});
$up = $stack.find(opts.selectors.upstream);
$down = $stack.find(opts... | 33,120 |
https://github.com/thesyncim/exposed/blob/master/examples/echo/echoservice/generated.pb.go | Github Open Source | Open Source | MIT | 2,020 | exposed | thesyncim | Go | Code | 2,033 | 5,702 | /*
Copyright 2018 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | 39,651 |
https://github.com/koellingh/empirical-p53-simulator/blob/master/third-party/Empirical/include/emp/math/math.hpp | Github Open Source | Open Source | MIT | 2,021 | empirical-p53-simulator | koellingh | C++ | Code | 1,886 | 4,206 | /**
* @note This file is part of Empirical, https://github.com/devosoft/Empirical
* @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md
* @date 2016-2020.
*
* @file math.hpp
* @brief Useful mathematical functions (that are constexpr when possible.)
* @note Status: ... | 32,540 |
https://github.com/stefantds/go-epi-solutions/blob/master/epi/longest_nondecreasing_subsequence/solution.go | Github Open Source | Open Source | MIT | 2,022 | go-epi-solutions | stefantds | Go | Code | 71 | 222 | package longest_nondecreasing_subsequence
func LongestNondecreasingSubsequenceLength(a []int) int {
longestEndingAtPos := make([]int, len(a))
for i := range longestEndingAtPos {
longestEndingAtPos[i] = 1
}
longestSeq := 0
for i, v := range a {
for j := i - 1; j >= 0; j-- {
if v >= a[j] && longestEndingAtP... | 16,259 |
https://github.com/karttu/loda/blob/master/programs/oeis/309/A309945.asm | Github Open Source | Open Source | Apache-2.0 | null | loda | karttu | Assembly | Code | 32 | 603 | ; A309945: a(n) = floor(n - sqrt(2*n-1)).
; 0,0,0,1,2,2,3,4,4,5,6,7,8,8,9,10,11,12,12,13,14,15,16,17,18,18,19,20,21,22,23,24,24,25,26,27,28,29,30,31,32,32,33,34,35,36,37,38,39,40,40,41,42,43,44,45,46,47,48,49,50,50,51,52,53,54,55,56,57,58,59,60,60,61,62,63,64,65,66,67,68,69,70,71,72,72,73,74,75,76,77,78,79,80,81,82,83,... | 43,563 |
https://github.com/Autohome2/STM8_templates/blob/master/Library/Base/src/uart1_blocking.c | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,018 | STM8_templates | Autohome2 | C | Code | 419 | 1,224 | /**
\file uart1_blocking.c
\author G. Icking-Konert
\date 2013-11-22
\version 0.1
\brief implementation of blocking UART1 / USART functions & macros
implementation of UART1 / USART functions and macros for blocking send &
polling receive. This is the most primitive communication.
*/
/*-----... | 44,263 |
https://github.com/GalangRambuAnarqi/jf/blob/master/application/views/page/form/edit_form.php | Github Open Source | Open Source | MIT | null | jf | GalangRambuAnarqi | PHP | Code | 386 | 2,009 | <div class="modal fade bs-example-modal-lg editprofile" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="myMo... | 27,854 |
https://github.com/bizzard4/StlFileReader/blob/master/src/stlfilereader/model/StlObject.java | Github Open Source | Open Source | Unlicense | 2,021 | StlFileReader | bizzard4 | Java | Code | 120 | 297 | package stlfilereader.model;
import java.util.ArrayList;
import java.util.List;
/**
* Model class representing a STL object.
* @author Francois
*
*/
public class StlObject {
/**
* Object name.
*/
public String name;
/**
* Facet list.
*/
private List<StlFacet> facets;
/**
* Default constructor... | 6,382 |
https://github.com/BlockchainCommons/iOS-CBitcoin/blob/master/Sources/CBitcoin/Formats/Base16.cpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | iOS-CBitcoin | BlockchainCommons | C++ | Code | 242 | 639 | //
// Base16.cpp
// Bitcoin
//
// Created by Wolf McNally on 10/24/18.
//
// Copyright © 2018 Blockchain Commons.
//
// 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.... | 44,844 |
https://github.com/minerchow/cooking/blob/master/src/pages/static/main.js | Github Open Source | Open Source | ISC | 2,016 | cooking | minerchow | JavaScript | Code | 5 | 22 | let a = "这是静态文件"
console.log(a);
| 6,454 |
https://github.com/algesten/hreq/blob/master/tests/static_dir.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,021 | hreq | algesten | Rust | Code | 665 | 3,353 | use hreq::prelude::*;
mod common;
#[test]
fn static_dir_ctype() -> Result<(), hreq::Error> {
common::setup_logger();
let mut server = Server::new();
server
.at("/my/special/:file")
.get(hreq::server::Static::dir("tests/data"));
let (handle, addr) = server.listen(0).block()?;
{
... | 44,986 |
https://github.com/Lengchuan/algorithm-leetcode/blob/master/src/com/org/lengchuan/algorithm/leetcode/p111/Solution.java | Github Open Source | Open Source | MIT | null | algorithm-leetcode | Lengchuan | Java | Code | 237 | 812 | package com.org.lengchuan.algorithm.leetcode.p111;
//给定一个二叉树,找出其最小深度。
//
// 最小深度是从根节点到最近叶子节点的最短路径上的节点数量。
//
// 说明: 叶子节点是指没有子节点的节点。
//
// 示例:
//
// 给定二叉树 [3,9,20,null,null,15,7],
//
// 3
// / \
// 9 20
// / \
// 15 7
//
// 返回它的最小深度 2.
// Related Topics 树 深度优先搜索 广度优先搜索
//leetcode submit region begin(Pro... | 21,494 |
https://github.com/yifengyou/learn-pagure/blob/master/src/pagure/hooks/pagure_no_new_branches.py | Github Open Source | Open Source | Unlicense | null | learn-pagure | yifengyou | Python | Code | 255 | 809 | # -*- coding: utf-8 -*-
"""
(c) 2014-2018 - Copyright Red Hat Inc
Authors:
Slavek Kabrda <bkabrda@redhat.com>
"""
from __future__ import unicode_literals, absolute_import
import sqlalchemy as sa
import wtforms
try:
from flask_wtf import FlaskForm
except ImportError:
from flask_wtf import Form as Flas... | 9,882 |
https://github.com/vvring/python-hacker/blob/master/com/binghe/hacker/tools/script/attack/ftp/ftp_inject.py | Github Open Source | Open Source | Apache-2.0, GPL-1.0-or-later, LicenseRef-scancode-unknown-license-reference, GPL-2.0-only | 2,019 | python-hacker | vvring | Python | Code | 214 | 715 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- coding: gbk -*-
# Date: 2019/2/13
# Created by 冰河
# Description 感染FTP上的网页
# 流程为:
# 1.创建FTP连接
# 2.下载指定的网页
# 3.在网页中加入重定向的iframe字符串
# 4.上传被感染的网页
# 在Kali下配合 msfcli exploit/windows/browser/ms10... | 8,989 |
https://github.com/lancechung8888/device-info/blob/master/app/src/main/java/com/song/deviceinfo/ui/base/NormalFragment.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | device-info | lancechung8888 | Java | Code | 51 | 179 | package com.song.deviceinfo.ui.base;
import com.song.deviceinfo.utils.ThreadPoolUtils;
import java.util.List;
import androidx.core.util.Pair;
/**
* Created by chensongsong on 2020/5/27.
*/
public abstract class NormalFragment extends BaseFragment<Pair<String, String>> {
@Override
protected void refreshDa... | 22,412 |
https://github.com/EnvisionIot/enos-iot-java-sdk/blob/master/enos-sdk-sample/src/main/java/http/DeleteFileSample.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | enos-iot-java-sdk | EnvisionIot | Java | Code | 199 | 676 | package http;
import com.envisioniot.enos.iot_http_sdk.HttpConnection;
import com.envisioniot.enos.iot_http_sdk.SessionConfiguration;
import com.envisioniot.enos.iot_http_sdk.StaticDeviceCredential;
import com.envisioniot.enos.iot_http_sdk.file.FileDeleteResponse;
import com.envisioniot.enos.iot_mqtt_sdk.core.IRespons... | 38,190 |
https://github.com/objectpartners/PDKeychainBindingsController/blob/master/PDKeychainBindingsControlleriOSExample/PDKeychainBindingsControlleriOSExampleAppDelegate.h | Github Open Source | Open Source | MIT | 2,018 | PDKeychainBindingsController | objectpartners | C | Code | 43 | 171 | //
// PDKeychainBindingsControlleriOSExampleAppDelegate.h
// PDKeychainBindingsControlleriOSExample
//
// Created by Carl Brown on 7/10/11.
// Copyright 2011 PDAgent, LLC. Released under MIT License.
//
#import <UIKit/UIKit.h>
@class PDKeychainBindingsControlleriOSExampleViewController;
@interface PDKeychainBind... | 40,204 |
https://github.com/netconstructor/multi-tenant-app/blob/master/vendor/plugins/pg_active_schema/lib/tasks/migrate_tenants.rake | Github Open Source | Open Source | MIT | 2,011 | multi-tenant-app | netconstructor | Ruby | Code | 56 | 118 | # 21-Feb-2011 - Mark J. Lorenz - Dapple Before Dawn ltd.
#
# This rake task will run the migrations in vendor/plugins/pg_active_schema/db/migrate/ once for each existing schema
# This is how you would upgrade existing tenants. To create new tenants use PgActiveSchem::create_tenant, which will run the plugin's
# versi... | 43,994 |
https://github.com/vishalbelsare/Birch/blob/master/birch/src/generate/CppStructGenerator.hpp | Github Open Source | Open Source | Apache-2.0 | 2,023 | Birch | vishalbelsare | C++ | Code | 93 | 219 | /**
* @file
*/
#pragma once
#include "src/generate/CppGenerator.hpp"
namespace birch {
/**
* C++ code generator for structs.
*
* @ingroup io
*/
class CppStructGenerator: public CppGenerator {
public:
CppStructGenerator(std::ostream& base, const int level, const bool header,
const bool includeInline, con... | 48,032 |
https://github.com/poorneshwaran/mantisshrimp/blob/master/tests/core/test_keypoints.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | mantisshrimp | poorneshwaran | Python | Code | 53 | 232 | import pytest
from icevision.all import *
def test_keypoints_simple(keypoints_img_128372):
kps = KeyPoints.from_xyv(keypoints_img_128372, COCO_KEYPOINTS_LABELS)
assert (kps.human_conns[0] == np.array([15, 13])).all()
assert len(kps.keypoints) == 51
assert len(kps.labels) == 17
assert kps.labels[0... | 41,008 |
https://github.com/Sendiradid/island.is/blob/master/apps/web/components/Organization/Slice/BulletList/BulletList.tsx | Github Open Source | Open Source | MIT | 2,022 | island.is | Sendiradid | TypeScript | Code | 86 | 287 | import React from 'react'
import { BulletListSlice as BulletListProps } from '@island.is/web/graphql/schema'
import { Box } from '@island.is/island-ui/core'
import { BulletList } from '../../../BulletList/BulletList'
interface SliceProps {
slice: BulletListProps
}
export const BulletListSlice: React.FC<SliceProps> ... | 30,136 |
https://github.com/CAMI-challenge/CAMISIM-DATA/blob/master/coverage_sweep/ART/Ecoli_cov32/quast_99/contigs_reports/misassemblies_report.tsv | Github Open Source | Open Source | CC-BY-4.0 | 2,018 | CAMISIM-DATA | CAMI-challenge | TSV | Code | 43 | 100 | Assembly final.contigs
# misassemblies 0
# relocations 0
# translocations 0
# inversions 0
# misassembled contigs 0
Misassembled contigs length 0
# local misassemblies 2
# mismatches 333
# indels 3
# short indels 2
# long indels 1
Indels length 87
| 14,012 |
https://github.com/Octoberr/linuxdatacollect/blob/master/shelldic/startdhcp.sh | Github Open Source | Open Source | Apache-2.0 | 2,018 | linuxdatacollect | Octoberr | Shell | Code | 25 | 92 | ifconfig wlan0 10.0.0.1 netmask 255.255.255.0
ifconfig wlan0 mtu 1500
route add -net 10.0.0.0 netmask 255.255.255.0 gw 10.0.0.1
dhcpd -d -f -cf /etc/dhcp/dhcpd.conf wlan0 &> dhcp.log
| 31,554 |
https://github.com/ghall89/campus-connect/blob/master/client/src/pages/Chat/Chat.js | Github Open Source | Open Source | Unlicense, MIT | 2,021 | campus-connect | ghall89 | JavaScript | Code | 410 | 1,547 | import React, { useEffect } from 'react';
import './chat.css';
import UserList from '../../components/UserList/UserList';
import ChatBody from '../../components/ChatBody/ChatBody';
import { useSubscription } from '@apollo/client';
import { useAuthState } from '../../utils/auth';
import ChevronRightIcon from '@material-... | 47,666 |
https://github.com/Puppet-RampUpProgram/control-repo/blob/master/scripts/code_manager_config_version.rb | Github Open Source | Open Source | Apache-2.0 | 2,017 | control-repo | Puppet-RampUpProgram | Ruby | Code | 23 | 104 | #!/usr/bin/env ruby
require 'json'
environmentpath = ARGV[0]
environment = ARGV[1]
r10k_deploy_file_path = File.join(environmentpath, environment, '.r10k-deploy.json')
#output the sha1 from the control-repo
puts JSON.parse(File.read(r10k_deploy_file_path))['signature']
| 5,642 |
https://github.com/scottfavre/fhir-net-api/blob/master/src/Hl7.Fhir.Serialization.Tests/RoundtripTest.cs | Github Open Source | Open Source | BSD-3-Clause | null | fhir-net-api | scottfavre | C# | Code | 828 | 3,089 | /*
* Copyright (c) 2014, Firely (info@fire.ly) and contributors
* See the file CONTRIBUTORS for details.
*
* This file is licensed under the BSD 3-Clause license
* available at https://raw.githubusercontent.com/FirelyTeam/fhir-net-api/master/LICENSE
*/
using System.IO;
using Microsoft.VisualStudio.TestTools.U... | 10,783 |
https://github.com/alipay/alipay-sdk-java-all/blob/master/v2/src/main/java/com/alipay/api/domain/AntMerchantExpandBrandCreateModel.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | alipay-sdk-java-all | alipay | Java | Code | 132 | 559 | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 新增非标品牌
*
* @author auto create
* @since 1.0, 2023-06-01 11:40:58
*/
public class AntMerchantExpandBrandCreateModel extends AlipayObject {
private static final long serialVersionUID = 751629... | 14,068 |
https://github.com/ychab/mymoney/blob/master/mymoney/core/templatetags/core_tags.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | mymoney | ychab | Python | Code | 680 | 2,661 | from decimal import Decimal
from django import template
from django.templatetags.l10n import localize
from django.urls import resolve, reverse
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext as _
from mymoney.apps.banktransactions.models import BankTransaction
from mymoney.... | 31,395 |
https://github.com/allaudin/coconut-input-validator-android/blob/master/coconutvalidator/src/main/java/io/github/allaudin/coconut/widget/CoconutTextWatcher.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | coconut-input-validator-android | allaudin | Java | Code | 118 | 320 | package io.github.allaudin.coconut.widget;
import android.support.annotation.NonNull;
import android.text.Editable;
import android.text.TextWatcher;
/**
* Text watcher for removing errors form {@link CoconutView} after
* text is changed.
*
* @author Muhammad allaudin
* Created on 2018-03-24.
*/
public ... | 31,403 |
https://github.com/sanmai-NL/open-wc/blob/master/packages/building-utils/to-file-path.js | Github Open Source | Open Source | MIT | 2,020 | open-wc | sanmai-NL | JavaScript | Code | 48 | 93 | const path = require('path');
/**
* Transforms a file system path to a browser URL. For example windows uses `\` on the file system,
* but it should use `/` in the browser.
*/
function toFilePath(browserPath) {
return browserPath.replace(new RegExp('/', 'g'), path.sep);
}
module.exports = { toFilePath };
| 51,186 |
https://github.com/KhagayN/bamdb/blob/master/src/bam_sqlite.c | Github Open Source | Open Source | BSD-2-Clause | 2,017 | bamdb | KhagayN | C | Code | 576 | 1,941 | #include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bam_sqlite.h"
#include "htslib/bgzf.h"
#include "htslib/hts.h"
#define TABLE "CREATE TABLE IF NOT EXISTS seq (qname TEXT, bx STRING, pos INTEGER PRIMARY KEY)"
#define WORK_BUFFER_SIZE 65536
#define SQL_BUFFER_SIZE 1024
stati... | 51,418 |
https://github.com/Patrickberzins/Tweagle_Final/blob/master/registration/migrations/0003_report.py | Github Open Source | Open Source | MIT | 2,021 | Tweagle_Final | Patrickberzins | Python | Code | 44 | 213 | # Generated by Django 3.2.4 on 2021-06-10 01:59
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('registration', '0002_rename_description_user_bio'),
]
operations = [
migrations.CreateModel(
na... | 23,477 |
https://github.com/coachy-software/coachy-frontend/blob/master/src/util/toastr.utils.js | Github Open Source | Open Source | MIT | 2,019 | coachy-frontend | coachy-software | JavaScript | Code | 65 | 222 | import toastr from "toastr/toastr";
export const notification = {
error,
success,
warning,
info
};
function error(message) {
printNotification(message, "error");
}
function success(message) {
printNotification(message, "success");
}
function warning(message) {
printNotification(message, "warning");
}
... | 40,893 |
https://github.com/whuang8/minions/blob/master/src/go/minions/vulners/testing.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | minions | whuang8 | Go | Code | 255 | 613 | // Copyright 2018 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
// https://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in... | 47,916 |
https://github.com/tsiemens/acb/blob/master/py/ensure_in_venv.py | Github Open Source | Open Source | MIT, LicenseRef-scancode-warranty-disclaimer | 2,023 | acb | tsiemens | Python | Code | 109 | 241 | """
Checks if the script is running in a virtualenv.
If it is not, activates the venv and restarts the script.
Simply import this module before any third-party pip packages in an
executable script, and it should automatically run under the venv.
This replaces the need for additional shell script wrappers or manually
... | 12,175 |
https://github.com/Tactics/sulu-old/blob/master/src/Sulu/Bundle/ContentBundle/Teaser/TeaserContentType.php | Github Open Source | Open Source | MIT | null | sulu-old | Tactics | PHP | Code | 293 | 956 | <?php
/*
* This file is part of Sulu.
*
* (c) MASSIVE ART WebServices GmbH
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Sulu\Bundle\ContentBundle\Teaser;
use PHPCR\NodeInterface;
use Sulu\Bundle\ContentBundle\Teaser\Provider\Tease... | 52,960 |
https://github.com/chef/supermarket/blob/master/src/supermarket/spec/tasks/update_spdx_license_spec.rb | Github Open Source | Open Source | Apache-2.0 | 2,023 | supermarket | chef | Ruby | Code | 16 | 49 | require "spec_helper"
Rails.application.load_tasks
describe "run_all_cookbooks" do
context "execute task for all the cookbooks" do
end
end | 14,814 |
https://github.com/walterfan/pims4php/blob/master/include/unicode.cls | Github Open Source | Open Source | Apache-2.0 | 2,014 | pims4php | walterfan | null | Spoken | 479 | 2,475 | <?
class Unicode
{
var $filepath;
var $charset;
function str2utf8($str,$LanguageID)
{
if(!isset($LanguageID)||"".$LanguageID=="")
$LanguageID=1;
if(!isset($str)||"".$str=="")
return;
else
$string=$str;
$filepath=GetHomePath()."/site/";
if ($LanguageID==3) //------gb2312
... | 12,128 |
https://github.com/jono-booth/xeroizer/blob/master/lib/xeroizer/models/payroll/home_address.rb | Github Open Source | Open Source | ISC, MIT | 2,019 | xeroizer | jono-booth | Ruby | Code | 35 | 123 | module Xeroizer
module Record
module Payroll
class HomeAddressModel < PayrollBaseModel
end
class HomeAddress < PayrollBase
string :address_line_1
string :address_line_2
string :address_line_3
string :address_line... | 26,064 |
https://github.com/IBM-Swift/Kitura-Builder-iOS/blob/master/Scripts/set_deployment_version.rb | Github Open Source | Open Source | Apache-2.0 | 2,018 | Kitura-Builder-iOS | IBM-Swift | Ruby | Code | 128 | 280 | # Copyright IBM Corporation 2017
#
# 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, ... | 18,264 |
https://github.com/jubalfh/cog/blob/master/cog/config/settings.py | Github Open Source | Open Source | BSD-3-Clause | null | cog | jubalfh | Python | Code | 246 | 1,060 | # -*- coding: utf-8 -*-
# Copyright (c) 2013, Activision Publishing, Inc.
# Copyright (c) 2014, 2015 Miroslaw Baran <miroslaw+p+cog@makabra.org>
# the cog project is free software under 3-clause BSD licence
# see the LICENCE file in the project root for copying terms
# process configuration files
import os
import s... | 10,894 |
https://github.com/nrk/lamestnews/blob/master/template/user_comments.html.twig | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,013 | lamestnews | nrk | Twig | Code | 68 | 179 | {% extends 'layout.html.twig' %}
{% from 'shared.html.twig' import render_comment %}
{% block content %}
<h2>{{ title }}</h2>
<div id="comments">
{% for comment in comments %}
{{ render_comment(comment) }}
{% endfor %}
{% if pagination is defined %}
{% set nextpage = pagination.start + p... | 466 |
https://github.com/kelemen/netbeans-gradle-project/blob/master/netbeans-gradle-plugin/src/main/java/org/netbeans/gradle/project/properties/standard/ProjectDisplayNameProperty.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | netbeans-gradle-project | kelemen | Java | Code | 62 | 295 | package org.netbeans.gradle.project.properties.standard;
import org.netbeans.gradle.project.api.config.ConfigPath;
import org.netbeans.gradle.project.api.config.PropertyDef;
import org.netbeans.gradle.project.view.DisplayableTaskVariable;
public final class ProjectDisplayNameProperty {
public static final String ... | 20,673 |
https://github.com/martram/BabyRun-1/blob/master/Assets/Scripts/ButtonMenu.cs | Github Open Source | Open Source | MIT | 2,014 | BabyRun-1 | martram | C# | Code | 167 | 707 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class ButtonMenu : MonoBehaviour{
public ButtonMenu () {
}
void Start(){
this.gameObject.transform.localScale = new Vector3 (100f, 50f, 1f);
}
void OnHover(){
this.gameObject.transform.localScale = new Vector3... | 29,599 |
https://github.com/taikai/taikai-design-system/blob/master/src/molecules/table/stories/table.stories.tsx | Github Open Source | Open Source | MIT | 2,022 | taikai-design-system | taikai | TypeScript | Code | 279 | 872 | import React from 'react';
import Table from '..';
import { AvatarImage } from '../../..';
import { ActionMenu } from '../../actions-menu/types';
export interface TableProps {
border?: boolean;
}
interface Transaction {
id: string;
transactionName: string;
amount: string;
type: string;
createdAt: string;
... | 44,208 |
https://github.com/JhonCT/copaiglesias/blob/master/resources/views/mail.blade.php | Github Open Source | Open Source | MIT | null | copaiglesias | JhonCT | PHP | Code | 44 | 172 | <!doctype html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
<title>Mensaje copa centenario</title>
</head>
<body>
<p>Gracias por inscribirte a la copa centenario {{ $datos->delgado}} .</p>
<p>Te esperamos el ... | 19,546 |
https://github.com/playcanvas/FasTC/blob/master/PVRTCEncoder/test/DecompressorTest.cpp | Github Open Source | Open Source | Apache-2.0, Zlib, LicenseRef-scancode-public-domain | 2,021 | FasTC | playcanvas | C++ | Code | 316 | 838 | // Copyright 2016 The University of North Carolina at Chapel Hill
//
// 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... | 14,777 |
https://github.com/Alabuta/RayTracingNextWeek/blob/master/.gitmodules | Github Open Source | Open Source | MIT | 2,023 | RayTracingNextWeek | Alabuta | Git Config | Code | 32 | 141 | [submodule "external/fmt"]
path = external/fmt
url = https://github.com/fmtlib/fmt.git
[submodule "external/glfw"]
path = external/glfw
url = https://github.com/glfw/glfw.git
[submodule "external/glm"]
path = external/glm
url = https://github.com/g-truc/glm.git
[submodule "external/stb"]
path = external/st... | 44,250 |
https://github.com/geometrybase/goctp6316/blob/master/libgoctp.go | Github Open Source | Open Source | MIT | null | goctp6316 | geometrybase | Go | Code | 53 | 179 | // +build linux,cgo
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package goctp
/*
#cgo linux LDFLAGS: -fPIC -L${SRCDIR}/20190305_tradeapi_linux64 -Wl,-rpath,${SRCDIR}/api/v6.3.16_20190305_tradeapi_linux... | 11,460 |
https://github.com/lockss/lockss-core/blob/master/src/main/java/org/lockss/metadata/MetadataDbManager.java | Github Open Source | Open Source | BSD-3-Clause | 2,023 | lockss-core | lockss | Java | Code | 3,951 | 9,996 | /*
Copyright (c) 2016-2019 Board of Trustees of Leland Stanford Jr. University,
all rights reserved.
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 li... | 38,651 |
https://github.com/postmannen/go-learning/blob/master/io/reader/03-os.stdin-testing/main.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | go-learning | postmannen | Go | Code | 80 | 237 | package main
import (
"fmt"
"io"
"os"
"os/exec"
)
func main() {
readBytes := []byte{}
reader := os.Stdin
p := make([]byte, 1)
for {
n, err := reader.Read(p)
if err == io.EOF || p[0] == '\n' {
break
}
readBytes = append(readBytes, p[:n]...)
fmt.Println("chunc of bytes read = ", string(p[:n]))
}... | 21,124 |
https://github.com/ocroquette/git-commit-hook/blob/master/src/test/groovy/com/github/ocroquette/commithook/TestHelper.groovy | Github Open Source | Open Source | Apache-2.0 | null | git-commit-hook | ocroquette | Groovy | Code | 68 | 183 | package com.github.ocroquette.commithook
class TestHelper {
static void compareLines(List<String> realLines, String expectedLinesRaw) {
// Replace Windows CRLF by LF (if any), and split on LF
List<String> expectedLines = expectedLinesRaw.replaceAll("\r\n", "\n").split("\n")
int max = Math.m... | 21,864 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.