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/qiudongwei/nodeSchool/blob/master/stream-adventure/write_to_me.js | Github Open Source | Open Source | MIT | null | nodeSchool | qiudongwei | JavaScript | Code | 38 | 120 | /*
* @Author: Wilton.Qiu
* @Date: 2021-03-19 19:38:10
* @Description: writable
*/
const { Writable } = require('stream')
class MyWritable extends Writable {
_write(chunk, encoding='utf8', callback) {
console.log(`writing: ${chunk.toString()}`)
callback()
}
}
const writable = new MyWritable()
process.... | 26,121 |
https://github.com/bihell/Dice/blob/master/dice-server/src/test/java/com/bihell/dice/redis/RedisApplicationTests.java | Github Open Source | Open Source | MIT | 2,023 | Dice | bihell | Java | Code | 85 | 342 | package com.bihell.dice.redis;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
impo... | 30,926 |
https://github.com/OneKeyHQ/app-monorepo/blob/master/packages/components/src/Icon/react/solid/Signal.tsx | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-proprietary-license | 2,023 | app-monorepo | OneKeyHQ | TSX | Code | 202 | 580 | import Svg, { SvgProps, Path } from 'react-native-svg';
const SvgSignal = (props: SvgProps) => (
<Svg
viewBox="0 0 24 24"
fill="currentColor"
accessibilityRole="image"
{...props}
>
<Path
fillRule="evenodd"
d="M5.636 4.575a.75.75 0 0 1 0 1.06 9 9 0 0 0 0 12.729.75.75 0 0 1-1.06 1.06c-... | 23,079 |
https://github.com/jimbarnesrtp/pf2/blob/master/buildItems.py | Github Open Source | Open Source | MIT | 2,022 | pf2 | jimbarnesrtp | Python | Code | 654 | 2,677 | # -*- coding: utf-8 -*-
from bs4 import BeautifulSoup
import json
import datetime
from pf2helpers import Pf2Helpers
import os
import re
data_holder = {}
data_holder['name'] = 'Pathfinder 2.0 ItemList v2'
data_holder['date'] = datetime.date.today().strftime("%B %d, %Y")
class ItemBuilder():
item_keywords = ['name... | 1,646 |
https://github.com/rayment/sticky/blob/master/include/video/video.h | Github Open Source | Open Source | BSD-3-Clause | null | sticky | rayment | C | Code | 158 | 715 | /*
* video.h
* SDL video header.
*
* Author : Finn Rayment <finn@rayment.fr>
* Date created : 11/04/2021
*/
#ifndef _FR_RAYMENT_STICKY_VIDEO_H
#define _FR_RAYMENT_STICKY_VIDEO_H 1
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#include "common/macros.h"
#include "common/types.h"
#define S_WIND... | 24,782 |
https://github.com/taegyunkim/front-end/blob/master/ast/src/test/scala/org/opencypher/v9_0/ast/prettifier/PatternStringifierTest.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | front-end | taegyunkim | Scala | Code | 332 | 1,172 | /*
* Copyright (c) Neo4j Sweden AB (http://neo4j.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 License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 17,158 |
https://github.com/andrejfilkinq/PHP-project/blob/master/diplom_v1/app/Article.php | Github Open Source | Open Source | MIT | 2,018 | PHP-project | andrejfilkinq | PHP | Code | 24 | 112 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Article extends Model
{
// protected $fillabe = ['user_id','number', 'amount','performance1','performance2','performance3','performance4','cost_price1','cost_price2','cost_price3','cost_price4','price'];
public function user() {
... | 50,172 |
https://github.com/sukun-2017/-/blob/master/simplewind/Core/Library/Think/Upload/Driver/Aliyun/libs/guzzle/plugin/Guzzle/Plugin/Cache/DefaultCacheStorage.php | Github Open Source | Open Source | Apache-2.0 | null | - | sukun-2017 | PHP | Code | 773 | 2,209 | <?php
namespace Guzzle\Plugin\Cache;
use Guzzle\Cache\CacheAdapterFactory;
use Guzzle\Cache\CacheAdapterInterface;
use Guzzle\Http\EntityBodyInterface;
use Guzzle\Http\Message\MessageInterface;
use Guzzle\Http\Message\Request;
use Guzzle\Http\Message\RequestInterface;
use Guzzle\Http\Message\Response;
/**
* Default... | 42,788 |
https://github.com/ds-wizard/engine-backend/blob/master/wizard-server/test/Wizard/Specs/API/Branch/Detail_PUT.hs | Github Open Source | Open Source | Apache-2.0 | 2,023 | engine-backend | ds-wizard | Haskell | Code | 418 | 1,403 | module Wizard.Specs.API.Branch.Detail_PUT (
detail_PUT,
) where
import Data.Aeson (encode)
import qualified Data.Map.Strict as M
import Data.Maybe (fromJust)
import Network.HTTP.Types
import Network.Wai (Application)
import Test.Hspec
import Test.Hspec.Wai hiding (shouldRespondWith)
import Test.Hspec.Wai.Matcher
im... | 14,692 |
https://github.com/taverasmisael/taverasmisael/blob/master/config-gatsby/style.js | Github Open Source | Open Source | MIT | 2,023 | taverasmisael | taverasmisael | JavaScript | Code | 36 | 141 | module.exports = [
'gatsby-plugin-material-ui',
{
resolve: 'gatsby-plugin-nprogress',
options: { color: '#ed1250', showSpinner: false },
},
{
resolve: 'gatsby-plugin-web-font-loader',
options: {
google: {
families: [
'Overpass Mono:400,700', // Titles
'Roboto:30... | 12,921 |
https://github.com/almeida-matheus/webapp-brazilian-artists/blob/master/webpack.config.babel.js | Github Open Source | Open Source | MIT | null | webapp-brazilian-artists | almeida-matheus | JavaScript | Code | 159 | 722 | import path from 'path';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import CopyWebpackPlugin from 'copy-webpack-plugin';
const built = path.resolve('./built/');
const client = path.resolve('./app/');
const HTMLWebpackPluginConfig = new HtmlWebpackPlugin({
template: `${client}/index.pug`,
filename: 'index.h... | 35,159 |
https://github.com/andrewpedia/LQRWeChat/blob/master/app/src/main/java/com/lqr/wechat/ui/view/INewFriendAtView.java | Github Open Source | Open Source | MIT | null | LQRWeChat | andrewpedia | Java | Code | 17 | 98 | package com.lqr.wechat.ui.view;
import android.widget.LinearLayout;
import com.lqr.recyclerview.LQRRecyclerView;
public interface INewFriendAtView {
LinearLayout getLlNoNewFriend();
LinearLayout getLlHasNewFriend();
LQRRecyclerView getRvNewFriend();
}
| 44,808 |
https://github.com/GerdHolz/TOVAL/blob/master/src/de/invation/code/toval/misc/soabase/SOABaseProperties.java | Github Open Source | Open Source | BSD-3-Clause | 2,019 | TOVAL | GerdHolz | Java | Code | 530 | 1,985 | package de.invation.code.toval.misc.soabase;
import java.io.File;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.HashSet;
import java.util.Set;
import java.util.StringTokenizer;
import de.invation.code.toval.misc.ArrayUtils;
import de.invation.code.toval.mis... | 44,777 |
https://github.com/neulab/neural-lpcfg/blob/master/models.py | Github Open Source | Open Source | MIT | 2,021 | neural-lpcfg | neulab | Python | Code | 1,282 | 5,957 | import torch
from torch import nn
import torch.nn.functional as F
import numpy as np
from PCFG import PCFG
from lexicalizedPCFG import LexicalizedPCFG
from random import shuffle
from flow import FlowWordEmission
import pdb
class ResidualLayer(nn.Module):
def __init__(self, in_dim = 100,
out_dim = 100)... | 29,348 |
https://github.com/max-codeware/XOPTIMA-mrb/blob/master/examples/BangBang/BangBangF.rb | Github Open Source | Open Source | BSD-2-Clause | null | XOPTIMA-mrb | max-codeware | Ruby | Code | 158 | 410 | require "SymDesc"
require_relative "../../lib/XOPTIMA-mrb.rb"
include XOPTIMA
# Set to `:local' for customized behaviour
SymDesc::SYM_CONFIG[:var_scope] = :global
# Symbolic variables used
x, v, t, f, t_f = var :x, :v, :t, :F, :t_f
problem = OCProblem.new("BangBangF")
# Set to `true' to display the states of the ... | 39,474 |
https://github.com/rabedik/hifi/blob/master/interface/resources/qml/styles/HifiPalette.qml | Github Open Source | Open Source | Apache-2.0 | 2,015 | hifi | rabedik | null | Spoken | 23 | 61 | import QtQuick 2.4
Item {
property string hifiBlue: "#0e7077"
property alias colors: colorsObj
Item {
id: colorsObj
property string hifiRed: "red"
}
}
| 304 |
https://github.com/wangbj/gdbstub/blob/master/src/gdbstub_impl/mod.rs | Github Open Source | Open Source | MIT | 2,021 | gdbstub | wangbj | Rust | Code | 3,028 | 10,840 | use core::marker::PhantomData;
#[cfg(feature = "alloc")]
use alloc::collections::BTreeMap;
use managed::ManagedSlice;
use crate::common::*;
use crate::{
arch::{Arch, RegId, Registers},
connection::Connection,
internal::*,
protocol::{
commands::{ext, Command},
ConsoleOutput, IdKind, Pa... | 17,316 |
https://github.com/fholm/UnsafeCollections/blob/master/UnsafeCollections/Assets/UnsafeCollections/Collections/UnsafeHashSet.cs.meta | Github Open Source | Open Source | MIT | 2,021 | UnsafeCollections | fholm | Unity3D Asset | Code | 6 | 41 | fileFormatVersion: 2
guid: b46c6b06dd3a40a0b8a77e462044186c
timeCreated: 1561013434 | 4,199 |
https://github.com/dsx52220/blog/blob/master/application/admin/controller/Comment.php | Github Open Source | Open Source | Apache-2.0 | 2,018 | blog | dsx52220 | PHP | Code | 29 | 83 | <?php
/**
* @date: 2018/7/12 21:31
* @author: daishunxin <admin@shunxin66.com>
*/
namespace app\admin\controller;
class Comment extends AdminBase {
public function comList($page = 1, $list_row = 10) {
}
} | 984 |
https://github.com/BaronWolfenstein/mindbody-api/blob/master/lib/mindbody-api/models/relationship.rb | Github Open Source | Open Source | MIT | 2,013 | mindbody-api | BaronWolfenstein | Ruby | Code | 20 | 51 | module MindBody
module Models
class Relationship < Base
attribute :id, Integer
attribute :relationship_name1, String
attribute :relationship_name2, String
end
end
end
| 41,513 |
https://github.com/googleads/googleads-php-lib/blob/master/src/Google/AdsApi/AdManager/v202211/NegotiationStatus.php | Github Open Source | Open Source | Apache-2.0 | 2,023 | googleads-php-lib | googleads | PHP | Code | 51 | 206 | <?php
namespace Google\AdsApi\AdManager\v202211;
/**
* This file was generated from WSDL. DO NOT EDIT.
*/
class NegotiationStatus
{
const SELLER_INITIATED = 'SELLER_INITIATED';
const BUYER_INITIATED = 'BUYER_INITIATED';
const AWAITING_SELLER_REVIEW = 'AWAITING_SELLER_REVIEW';
const AWAITING_BUYER_R... | 44,857 |
https://github.com/jccarrillo/XCoLab/blob/master/taglibs/colabIceFacelets/src/main/java/org/climatecollaboratorium/facelets/discussions/permissions/DefaultDiscussionsPermissionsImpl.java | Github Open Source | Open Source | MIT | 2,016 | XCoLab | jccarrillo | Java | Code | 325 | 1,343 | package org.climatecollaboratorium.facelets.discussions.permissions;
import java.io.Serializable;
import com.ext.portlet.service.SpamReportLocalServiceUtil;
import org.climatecollaboratorium.facelets.discussions.DiscussionBean;
import org.climatecollaboratorium.facelets.discussions.support.MessageWrapper;
import org.... | 7,189 |
https://github.com/digimix/rickswp/blob/master/site/web/app/themes/tips/lib/metabox.php | Github Open Source | Open Source | MIT | 2,016 | rickswp | digimix | PHP | Code | 1,917 | 5,137 | <?php
/**
* Include and setup custom metaboxes and fields. (make sure you copy this file to outside the CMB2 directory)
*
* Be sure to replace all instances of 'mix_' with your project's prefix.
* http://nacin.com/2010/05/11/in-wordpress-prefix-everything/
*
* @category YourThemeOrPlugin
* @package Demo_CMB2
*... | 38,174 |
https://github.com/NayrPro/Client-Side-Basketball-Website/blob/master/src/components/Pages/Courses/CourseModal/Course.js | Github Open Source | Open Source | MIT | null | Client-Side-Basketball-Website | NayrPro | JavaScript | Code | 28 | 90 | import React from 'react'
import "./css/coursemodal.css"
import VideoContainer from './components/VideoContainer'
import VideoPlaylist from './components/VideoPlaylist'
export default function Course() {
return (
<div className="course-videos">
<VideoContainer/>
<VideoPlaylist/>
... | 8,429 |
https://github.com/wxbacy/cwf/blob/master/global/db/BaseDB.php | Github Open Source | Open Source | MIT | 2,020 | cwf | wxbacy | PHP | Code | 204 | 759 | <?php
namespace db;
use Medoo\Medoo;
use Exception;
use Yaf_Registry;
use PDO;
/**
* 模型基类,初始化medoo实例并实现单例
*
* @author chenwei
*/
class BaseDB extends Medoo
{
/**
* 默认连接名称
*
* @var string
*/
const DEFAULT_LINKNAME = 'default';
/**
* 初始化medoo实例并实现单例
*
* @throws Excep... | 31,791 |
https://github.com/dkhamsing/awesome_bot/blob/master/spec/cli_spec.rb | Github Open Source | Open Source | MIT | 2,023 | awesome_bot | dkhamsing | Ruby | Code | 272 | 767 | require 'awesome_bot'
describe AwesomeBot do
describe "cli" do
options = {}
file = 'bin/assets/test-redirect'
content = File.read file
`rm *.json`
context "given --skip-save-results option true" do
options['allow_redirect'] = true
options['no_results'] = true
AwesomeBot.cli_pro... | 6,350 |
https://github.com/shgriffi/openshift-ansible/blob/master/utils/src/ooinstall/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | openshift-ansible | shgriffi | Python | Code | 3 | 12 | # pylint: disable=missing-docstring
| 43,743 |
https://github.com/jonallured/force/blob/master/src/v2/__generated__/UserActiveBids_me.graphql.ts | Github Open Source | Open Source | MIT | 2,022 | force | jonallured | TypeScript | Code | 482 | 1,679 | /* tslint:disable */
/* eslint-disable */
import { ReaderFragment } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type UserActiveBids_me = {
readonly lotStandings: ReadonlyArray<{
readonly isLeadingBidder: boolean | null;
readonly activeBid: {
readonly id: s... | 10,486 |
https://github.com/FullMetalUpdate/meta-fullmetalupdate-extra/blob/master/dynamic-layers/freescale-layer/recipes-bsp/u-boot/imx6qdlsabresd/Center-splash-screen-UBOOT.patch | Github Open Source | Open Source | MIT | 2,020 | meta-fullmetalupdate-extra | FullMetalUpdate | null | Spoken | 28 | 176 | diff --git a/include/configs/mx6sabre_common.h b/include/configs/mx6sabre_common.h
index 53c9f05..8a7a654 100644
--- a/include/configs/mx6sabre_common.h
+++ b/include/configs/mx6sabre_common.h
@@ -71,6 +71,7 @@
"fi;"
#define CONFIG_EXTRA_ENV_SETTINGS \
+ "splashpos=m,m\0" \
"script=boot.scr\0" \
"image=zImage\... | 34,126 |
https://github.com/eric-wei1990/browser-sdk/blob/master/performances/src/profiling.ts | Github Open Source | Open Source | Apache-2.0 | null | browser-sdk | eric-wei1990 | TypeScript | Code | 501 | 1,552 | import { CDPSession, Page, Protocol } from 'puppeteer'
import { ProfilingResults, ProfilingOptions } from './types'
export async function startProfiling(options: ProfilingOptions, page: Page) {
const client = await page.target().createCDPSession()
const stopCPUProfiling = await startCPUProfiling(options, client)
... | 52,303 |
https://github.com/bohbra/TouchEffect/blob/master/TouchEffect/EventArgs/TouchStateChangedEventArgs.cs | Github Open Source | Open Source | MIT | null | TouchEffect | bohbra | C# | Code | 27 | 73 | using TouchEffect.Enums;
namespace TouchEffect.EventArgs
{
public class TouchStateChangedEventArgs : System.EventArgs
{
public TouchStateChangedEventArgs(TouchState state)
{
State = state;
}
public TouchState State { get; }
}
}
| 40,852 |
https://github.com/mbrtargeting/mesa/blob/master/test/active-record.js | Github Open Source | Open Source | MIT | null | mesa | mbrtargeting | JavaScript | Code | 68 | 204 | /*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* DS207: Consider shorter variations of null checks
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const {setup, mesa} = require('./src/common');
const {Person} = requi... | 34,269 |
https://github.com/epfl-sti/OverSIP/blob/master/ext/websocket_http_parser/grammar_ws_http_core.rl | Github Open Source | Open Source | MIT | 2,017 | OverSIP | epfl-sti | null | Spoken | 704 | 1,765 | %%{
machine grammar_ws_http_core;
CRLF = "\r\n";
CTL = (cntrl | 127);
DIGIT = "0".."9";
ALPHA = "a".."z" | "A".."Z";
HEXDIG = DIGIT | "A"i | "B"i | "C"i | "D"i | "E"i | "F"i;
DQUOTE = "\"";
SP ... | 51,798 |
https://github.com/wgnet/wds_qt/blob/master/qtbase/tests/manual/network_remote_stresstest/network_remote_stresstest.pro | Github Open Source | Open Source | LicenseRef-scancode-proprietary-license, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-commercial-license, LGPL-2.0-or-later, LGPL-2.1-only, GFDL-1.3-only, LicenseRef-scancode-qt-commercial-1.1, LGPL-3.0-only, LicenseRef-scancode-qt-company-exception-lgpl-2.1, GPL-1.0-or-later, GPL-3.0-only, BSD-3-... | 2,020 | wds_qt | wgnet | null | Spoken | 22 | 98 | TARGET = tst_network_remote_stresstest
QT = core core-private network network-private testlib
SOURCES += tst_network_remote_stresstest.cpp
RESOURCES += url-list.qrc
LIBS += $$QMAKE_LIBS_NETWORK
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
| 51,169 |
https://github.com/enibeniraba/hopjs/blob/master/js/components/dialog.js | Github Open Source | Open Source | MIT | 2,016 | hopjs | enibeniraba | JavaScript | Code | 242 | 960 | /*!
* hopjs.dialog
*
* This file is a part of hopjs v@VERSION
*
* (c) @AUTHOR
* Released under the MIT license
*
* Date: @DATE
*/
(function($, hopjs)
{
var cp = "hopjs-dialog-",
_cp = "."+cp;
hopjs.types["dialog"] = "hopjs.dialog";
hopjs.dialog = function(params)
{
hopjs.window.apply(this, arguments);
};... | 51,231 |
https://github.com/c4rl0sFr3it4s/Python_Analise_De_Dados/blob/master/_estudoPython_solid/filme-pesquisa/lista-dicionario.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | Python_Analise_De_Dados | c4rl0sFr3it4s | Python | Code | 155 | 428 | galera = list()
pessoas = dict()
soma = media = 0
while True:
pessoas.clear()
pessoas['nome'] = str(input('Digite o nome: '))
pessoas['idade'] = int(input('Digite a idade: '))
soma += pessoas['idade']
while True:
pessoas['sexo'] = str(input('Digite o sexo [M|F]: ')).upper()[0]
if pes... | 13,729 |
https://github.com/fedevelatec/asic-core/blob/master/src/main/java/com/fedevela/core/asic/pojos/HnTestEmp.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | asic-core | fedevelatec | Java | Code | 405 | 1,460 | package com.fedevela.core.asic.pojos;
/**
* Created by fvelazquez on 27/03/14.
*/
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persiste... | 5,799 |
https://github.com/TitouanNarbey/Projet-web-CESI-2019/blob/master/resources/views/layouts/app.blade.php | Github Open Source | Open Source | MIT | 2,019 | Projet-web-CESI-2019 | TitouanNarbey | PHP | Code | 480 | 2,281 | <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>@yield('title', 'BDE CESI Lyon')</title>
<meta name="description" content="@yield('meta-description', 'une page du si... | 25,682 |
https://github.com/SocialGouv/ecollecte/blob/master/parametres/__init__.py | Github Open Source | Open Source | MIT | null | ecollecte | SocialGouv | Python | Code | 3 | 19 | default_app_config = 'parametres.apps.ParametresConfig' | 22,696 |
https://github.com/yjhuang1909/AthenaServing/blob/master/cynosure/cynosure/src/main/java/com/iflytek/ccr/polaris/cynosure/dbcondition/IServiceDiscoveryPushHistoryCondition.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | AthenaServing | yjhuang1909 | Java | Code | 124 | 498 | package com.iflytek.ccr.polaris.cynosure.dbcondition;
import com.iflytek.ccr.polaris.cynosure.companionservice.domain.PushResult;
import com.iflytek.ccr.polaris.cynosure.domain.ServiceDiscoveryPushHistory;
import java.util.HashMap;
import java.util.List;
/**
* 服务发现推送历史条件接口
*
* @author sctang2
* @create 2017-12-1... | 35,614 |
https://github.com/petrblahos/pyramid_locmako/blob/master/setup.py | Github Open Source | Open Source | MIT | 2,013 | pyramid_locmako | petrblahos | Python | Code | 101 | 436 | """pyramid_mongodb installation script.
"""
import os
from setuptools import setup
from setuptools import find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, "README.md")).read()
README = README.split("\n\n", 1)[0] + "\n"
requires = [
"pyramid",
"mako",
"Babel... | 8,128 |
https://github.com/ssoft-hub/model-kit/blob/master/src/Featuring/Access/ValueGuard.h | Github Open Source | Open Source | MIT | null | model-kit | ssoft-hub | C | Code | 704 | 1,955 | #pragma once
#ifndef SCL_FEATURING_ACCESS_VALUE_GUARD_H
#define SCL_FEATURING_ACCESS_VALUE_GUARD_H
#include <ModelKit/Featuring/Access/InstanceGuard.h>
#include <ModelKit/Featuring/Traits.h>
namespace SclPrivate { template < typename _Value, typename _Tool > class Instance; }
namespace SclPrivate { template < typenam... | 1,998 |
https://github.com/rathann/flite/blob/master/lang/cmu_time_awb/voxdefs.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | flite | rathann | C | Code | 18 | 82 | #define VOXNAME cmu_time_awb
#define REGISTER_VOX register_cmu_time_awb
#define UNREGISTER_VOX unregister_cmu_time_awb
#define VOXHUMAN "awb"
#define VOXGENDER "male"
#define VOXVERSION 1.1
| 4,197 |
https://github.com/JamesVZD/K22-OperatingSystems/blob/master/OS_Project1/coordinator.c | Github Open Source | Open Source | MIT | null | K22-OperatingSystems | JamesVZD | C | Code | 645 | 2,242 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <sys/shm.h>
#include <errno.h>
#include "functions.h"
int main(int argc, char *argv[])... | 31,496 |
https://github.com/ckamtsikis/cmssw/blob/master/JetMETCorrections/Algorithms/interface/L1FastjetCorrectorImpl.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | cmssw | ckamtsikis | C | Code | 143 | 606 | //
// L1FastjetCorrector
// ------------------
//
// 08/09/2009 Philipp Schieferdecker <philipp.schieferdecker@cern.ch>
//
#ifndef JetMETCorrections_JetCorrector_L1FastjetCorrectorImpl_h
#define JetMETCorrections_JetCorrector_L1FastjetCorrectorImpl_h 1
#include "JetMETCorrections/JetCorrector/interface/JetCorrectorImp... | 49,357 |
https://github.com/malbx/willOS/blob/master/test/fs/proc.c | Github Open Source | Open Source | MIT | 2,021 | willOS | malbx | C | Code | 482 | 1,585 | #include <fs/proc.h>
#include <fs/vfs.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <test.h>
#define BUF_SIZE 20
// This is a fake implementation.
uint64_t timer_uptime()
{
return 123;
}
// This is a fake implementation.
uint64_t frame_get_used_count()
{
return 1;
}
// This is a fake i... | 4,345 |
https://github.com/radoslavBachurov/SoftUni/blob/master/C#/OOP/Polymorphism Exercise/WildFarm/Animals/AnimalTypes/Birds/BirdTypes/Owl.cs | Github Open Source | Open Source | MIT | 2,020 | SoftUni | radoslavBachurov | C# | Code | 65 | 205 | using System;
namespace WildFarm.Animals.AnimalTypes.Birds.BirdTypes
{
public class Owl : Bird
{
public Owl(string name, double weight, double wingSize)
: base(name, weight, wingSize)
{
}
public override void Eat(string food, int quantity)
{
if... | 50,478 |
https://github.com/marvinrosa/PetCare-1/blob/master/petcare/application/views/vistas/home/empleado.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,017 | PetCare-1 | marvinrosa | Hack | Code | 7 | 33 | <h1>Index del empleado</h1>
<a href="empleado/logout">Cerrar Sesión </a> | 1,016 |
https://github.com/JonQuxBurton/HateoasSirenSample/blob/master/HateoasSample/Representations/Broadband.cs | Github Open Source | Open Source | MIT | null | HateoasSirenSample | JonQuxBurton | C# | Code | 25 | 57 | using System;
namespace HateoasSirenSample.Representations
{
public class Broadband
{
public Guid Id { get; set; }
public int Speed { get; set; }
}
}
| 29,995 |
https://github.com/zhyee/djbbs/blob/master/myadmin2/test/classes/PMA_List_Database_test.php | Github Open Source | Open Source | Apache-2.0 | null | djbbs | zhyee | PHP | Code | 213 | 766 | <?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* tests for PMA_List_Database class
*
* @package PhpMyAdmin-test
*/
/*
* Include to test.
*/
require_once 'libraries/Util.class.php';
require_once 'libraries/List_Database.class.php';
require_once 'libraries/relation.lib.php';
class PMA_List_Database_test exte... | 27,863 |
https://github.com/fruitfly1026/FillEstimation/blob/master/oski-1.0.1h/src/BCSR/getset.c | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,017 | FillEstimation | fruitfly1026 | C | Code | 950 | 2,738 | /**
* \file src/BCSR/getset.c
* \ingroup MATTYPE_BCSR
* \brief BCSR get/set value routines.
*/
#include <assert.h>
#include <stdio.h>
#include <oski/config.h>
#include <oski/common.h>
#include <oski/matrix.h>
#include <oski/getset.h>
#include <oski/CSR/format.h>
#include <oski/CSR/module.h>
#include <oski/BCSR... | 12,583 |
https://github.com/FutureGateway/APIServer/blob/master/src/main/java/it/infn/ct/futuregateway/apiserver/inframanager/Submitter.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | APIServer | FutureGateway | Java | Code | 404 | 1,183 | /***********************************************************************
* Copyright (c) 2015:
* Istituto Nazionale di Fisica Nucleare (INFN), Italy
* Consorzio COMETA (COMETA), Italy
*
* See http://www.infn.it and and http://www.consorzio-cometa.it for details on
* the copyright holders.
*
* Licensed under the... | 25,889 |
https://github.com/RattanyiXu/abp-vnext-vue-admin/blob/master/src/utils/auth.js | Github Open Source | Open Source | MIT | 2,020 | abp-vnext-vue-admin | RattanyiXu | JavaScript | Code | 25 | 83 | export function getToken() {
var access_token = sessionStorage.getItem('access_token')
return access_token;
}
export function setToken(token) {
sessionStorage.setItem("access_token", token);
}
export function removeToken() {
return sessionStorage.removeItem("access_token")
}
| 4,490 |
https://github.com/PatriceDargenton/JMovies.IMDb/blob/master/docs/html/d4/df7/class_j_movies_1_1_i_m_db_1_1_entities_1_1_movies_1_1_t_v_character.js | Github Open Source | Open Source | MIT | 2,022 | JMovies.IMDb | PatriceDargenton | JavaScript | Code | 25 | 356 | var class_j_movies_1_1_i_m_db_1_1_entities_1_1_movies_1_1_t_v_character =
[
[ "CharacterType", "d4/df7/class_j_movies_1_1_i_m_db_1_1_entities_1_1_movies_1_1_t_v_character.html#aabc36915485da92dcf1e665fa92df347", null ],
[ "EndYear", "d4/df7/class_j_movies_1_1_i_m_db_1_1_entities_1_1_movies_1_1_t_v_character.htm... | 19,280 |
https://github.com/navikt/arbeidssokerregistrering/blob/master/src/sider/registrert/avsjekk-bilde/avsjekk-bilde.tsx | Github Open Source | Open Source | MIT | 2,022 | arbeidssokerregistrering | navikt | TSX | Code | 75 | 350 | import * as React from "react";
import { erIE } from "../../../utils/ie-test";
import "./avsjekk-bilde.less";
export default class AvsjekkBilde extends React.Component {
render() {
return (
<svg
role="img"
className={`avsjekk__bilde ${erIE() && "erIE"}`}
aria-label="Laster innhold"... | 14,499 |
https://github.com/MarkUsProject/Markus/blob/master/config/initializers/jsroutes.rb | Github Open Source | Open Source | MIT, CC-BY-4.0 | 2,023 | Markus | MarkUsProject | Ruby | Code | 24 | 73 | # Configuration for the 'js-routes' gem
# Automatically update routes.js file
# when routes.rb is changed
Rails.application.config.middleware.use(JsRoutes::Middleware)
JsRoutes.setup do |config|
config.url_links = true
end
| 1,335 |
https://github.com/bingo-open-source/bingo-odata/blob/master/odata-consumer/src/test/java/bingo/odata/consumer/test/mock/DemoModelAndData.java | Github Open Source | Open Source | Apache-2.0 | null | bingo-odata | bingo-open-source | Java | Code | 92 | 708 | package bingo.odata.consumer.test.mock;
import static bingo.meta.edm.EdmUtils.fullQualifiedName;
import java.util.ArrayList;
import java.util.List;
import bingo.meta.edm.EdmBuilders;
import bingo.meta.edm.EdmComplexType;
import bingo.meta.edm.EdmEntityTypeBuilder;
import bingo.meta.edm.EdmSchemaBuilder;
import bingo... | 16,326 |
https://github.com/sebastian-alfers/akka-http/blob/master/akka-http2-support/src/test/scala/akka/http/impl/engine/http2/Http2FrameHpackSupport.scala | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | null | akka-http | sebastian-alfers | Scala | Code | 281 | 958 | /*
* Copyright (C) 2020-2022 Lightbend Inc. <https://www.lightbend.com>
*/
package akka.http.impl.engine.http2
import akka.http.scaladsl.model.headers.RawHeader
import akka.http.scaladsl.model._
import akka.http.shaded.com.twitter.hpack._
import akka.stream.Materializer
import akka.stream.scaladsl.Source
import akk... | 37,780 |
https://github.com/benniao1996/1996/blob/master/ops_doc-master/Service/git/git清理历史版本.sh | Github Open Source | Open Source | MIT | 2,021 | 1996 | benniao1996 | Shell | Code | 28 | 65 | git清理历史版本
git clone $project_url
cp .git/config .
rm -rf .git
git init
mv config .git/
git add .
git commit -m "clean history"
git push -f origin master
| 17,735 |
https://github.com/paullewallencom/alfresco-978-1-8495-1334-0/blob/master/_/3340_14_Code/bestmoney/alf_clients/portal/source/java/com/bestmoney/cms/web/ui/portlet/rad/gwt/client/RecentlyAddedDocumentsApp.java | Github Open Source | Open Source | Apache-2.0 | null | alfresco-978-1-8495-1334-0 | paullewallencom | Java | Code | 552 | 2,453 | package com.bestmoney.cms.web.ui.portlet.rad.gwt.client;
import com.bestmoney.cms.web.ui.portlet.rad.gwt.client.icons.AppIcons;
import com.extjs.gxt.ui.client.Style;
import com.extjs.gxt.ui.client.data.*;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.GridEvent;
import com.extjs.gxt.... | 6,444 |
https://github.com/fuadajip/kafka-cluster-go/blob/master/shared/util/presigned.go | Github Open Source | Open Source | MIT | 2,021 | kafka-cluster-go | fuadajip | Go | Code | 388 | 1,485 | package util
import (
"bytes"
"encoding/base64"
"fmt"
"io/ioutil"
"mime"
"path/filepath"
"strings"
"time"
"github.com/fuadajip/kafka-cluster-go/models"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/s3"
"github.com/labstack/echo"
)
// CreateUserUploadPresigned return S3 presigned URL... | 27,353 |
https://github.com/goszowski/cmf-inline/blob/master/resources/views/sections/show.blade.php | Github Open Source | Open Source | MIT | null | cmf-inline | goszowski | PHP | Code | 171 | 802 | @extends('layouts.app')
@section('content')
<div data-aos="fade" class="aos title-block clearfix text-xs-md-center">
<div class="inner-block pl-172">
<p class="title-block_small-title">{{ $section->sub_title }}</p>
<h1 class="title-block_big-title">
<span class="element" data-loop="true" data-backdelay="3000"... | 19,010 |
https://github.com/csoroiu/untwist/blob/master/src/test/java/ro/derbederos/untwist/ReverseBitsStreamGeneratorAbstractTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | untwist | csoroiu | Java | Code | 344 | 1,171 | /*
* Copyright (c) 2017-2018 Claudiu Soroiu
*
* 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 ag... | 35,950 |
https://github.com/daniel-shuy/Mayastor/blob/master/csi/moac/workq.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | Mayastor | daniel-shuy | JavaScript | Code | 259 | 514 | 'use strict';
const assert = require('assert');
// Implementation of a simple work queue which takes a task, puts it to the
// queue and processes the task when all other tasks that were queued before
// have completed. This is useful if the task consists of async steps and one
// wants to be sure that at any given t... | 1,296 |
https://github.com/AoEiuV020/w6s_lite_android/blob/master/dependencies/video-compress/src/main/java/org/telegram/messenger/FileLog.java | Github Open Source | Open Source | MIT | 2,021 | w6s_lite_android | AoEiuV020 | Java | Code | 92 | 212 | /*
* This is the source code of Telegram for Android v. 3.x.x.
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Nikolai Kudashov, 2013-2016.
*/
package org.telegram.messenger;
import android.util.Log;
public class FileLo... | 37,161 |
https://github.com/LooWooTech/Kaopu/blob/master/Ztop.Todo.Web/Controllers/ProjectTypeController.cs | Github Open Source | Open Source | MIT | null | Kaopu | LooWooTech | C# | Code | 56 | 191 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Ztop.Todo.Web.Controllers
{
[UserAuthorize]
public class ProjectTypeController : ControllerBase
{
public ActionResult Index()
{
return View();
}
... | 4,700 |
https://github.com/pandasvr/EC-VR/blob/master/Assets/1_Scripts/UI/UIMainMenuSettings.cs | Github Open Source | Open Source | 0BSD | 2,019 | EC-VR | pandasvr | C# | Code | 181 | 714 | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UIMainMenuSettings : MonoBehaviour
{
private Animator anim;
private String currentMenu = "salon";
private String menuToSwitch;
private bool isMenuChange;
private void Start()
{
an... | 12,765 |
https://github.com/junxu/senlin/blob/master/senlin/engine/webhook.py | Github Open Source | Open Source | Apache-2.0 | 2,015 | senlin | junxu | Python | Code | 690 | 2,145 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed unde... | 6,712 |
https://github.com/bahrienis/mips1/blob/master/src/vhdl/instruction_decode_tb.vhd | Github Open Source | Open Source | MIT | 2,015 | mips1 | bahrienis | VHDL | Code | 1,469 | 3,913 | -- Testbench for the instruction decode stage
-- 2015-08-04 Lukas Jäger created
-- 2015-08-04 Lukas Jäger added test cases for forwarding
-- 2015-08-05 Lukas Jaeger adjusted dut to new interface
-- 2015-08-05 Lukas Jaeger added expected data for ip_out
-- 2015-08-06 Lukas, Carlos added test cases for Jum... | 19,977 |
https://github.com/spenguin/thedistributionengine/blob/master/app/models/Answer.php | Github Open Source | Open Source | MIT | 2,014 | thedistributionengine | spenguin | PHP | Code | 19 | 47 | <?php
class Answer extends Eloquent
{
protected $table = 'answers';
protected $fillable = array( 'collection', 'entry', 'answer' );
} | 33,279 |
https://github.com/alfangr/pmb-usa/blob/master/resources/views/academic/sistem-informasi/keunggulan.blade.php | Github Open Source | Open Source | MIT | 2,020 | pmb-usa | alfangr | Blade | Code | 219 | 980 | @extends('layouts.main-page')
@section('contentBox')
<!-- Page Heading Box ==== -->
<div class="page-banner ovbl-dark" style="background-image:url(/homepages/images/banner/banner2.jpg);">
<div class="container">
<div class="page-banner-entry">
<h1 class="text-white text-uppercase">Keunggulan Si... | 51,716 |
https://github.com/PetePrattis/a-programming-tutorial-web-app-with-JDBC-client/blob/master/sql_queries.sql | Github Open Source | Open Source | MIT | 2,020 | a-programming-tutorial-web-app-with-JDBC-client | PetePrattis | SQL | Code | 12,817 | 42,042 | CREATE TABLE exam(
exercise TEXT NOT NULL,
answer1 TEXT NOT NULL,
answer2 TEXT NOT NULL,
answer3 TEXT NOT NULL,
answer4 TEXT NOT NULL,
answer5 TEXT NOT NULL,
answer6 TEXT NOT NULL,
answer7 TEXT NOT NULL,
answer8 TEXT NOT NULL,
answer9 TEXT NOT NULL,
answer10 TEXT NOT NULL
);
insert into exam (exercise,answe... | 35,476 |
https://github.com/fangjinuo/langx-java/blob/master/langx-java/src/main/java/com/jn/langx/util/os/hardware/cpu/CPUs.java | Github Open Source | Open Source | MIT | 2,022 | langx-java | fangjinuo | Java | Code | 130 | 436 | package com.jn.langx.util.os.hardware.cpu;
import com.jn.langx.commandline.CommandLine;
import com.jn.langx.commandline.DefaultCommandLineExecutor;
import com.jn.langx.util.os.OS;
import com.jn.langx.util.struct.Holder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class CPUs {
private static f... | 16,623 |
https://github.com/enio95/Block-game-in-c/blob/master/map.c | Github Open Source | Open Source | MIT | null | Block-game-in-c | enio95 | C | Code | 176 | 637 | #include "map.h"
Map *newMap(int h, int w)
{
Map *map = (Map *)calloc(1, sizeof(Map));
if ( map==NULL )
errorMessageMem("newMap");
map->height = h;
map->width = w;
map->board = newBoard(h, w);
map->num = 7;
map->arrPiece = newPieceArray(map->num);
return map;
}
char **newBoard(int h, int w)
{... | 48,509 |
https://github.com/storres8/react-events-in-detail-lab-dumbo-web-062518/blob/master/src/components/CoordinatesButton.js | Github Open Source | Open Source | LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,018 | react-events-in-detail-lab-dumbo-web-062518 | storres8 | JavaScript | Code | 36 | 119 | // Code CoordinatesButton Component Here
import React, {Component} from 'react';
export default class CoordinatesButton extends Component{
handleButton= (event) => {
const array =[event.clientX, event.clientY]
this.props.onReceiveCoordinates(array)
}
render(){
return(
<div>
<button o... | 29,942 |
https://github.com/ahansb/End-to-end-NodeJS-exam/blob/master/server/views/shared/layout.jade | Github Open Source | Open Source | MIT | 2,016 | End-to-end-NodeJS-exam | ahansb | null | Spoken | 89 | 471 | doctype
html
head
title Minion System
link(rel="stylesheet" href="/lib/bootstrap-3.2.0/css/bootstrap.min.css")
link(rel="stylesheet" href="/css/site.css")
link(href="../favicon.ico" rel="icon" type="image/x-icon")
link(rel="stylesheet" href="/lib/jquery-ui/themes/smoothness/j... | 19,725 |
https://github.com/Shopify/goluago/blob/master/pkg/fmt/fmt.go | Github Open Source | Open Source | MIT | 2,023 | goluago | Shopify | Go | Code | 168 | 595 | package fmt
import (
"fmt"
"github.com/Shopify/go-lua"
)
func Open(l *lua.State) {
fmtOpen := func(l *lua.State) int {
lua.NewLibrary(l, fmtLibrary)
return 1
}
lua.Require(l, "goluago/fmt", fmtOpen, false)
l.Pop(1)
}
var fmtLibrary = []lua.RegistryFunction{
{"print", pFamily(fmt.Print)},
{"println", pFam... | 34,563 |
https://github.com/viknash/texy-backend/blob/master/tasks/grunt/nodemon.js | Github Open Source | Open Source | MIT | null | texy-backend | viknash | JavaScript | Code | 43 | 147 | var path = require('path');
module.exports = {
cluster: {
script : 'cluster.js',
options: {
cwd : path.resolve(path.join(__dirname, '..', '..')),
file : 'cluster.js',
delayTime : 1,
ignoredFiles: [
'README.md',
'node_modules/**'
],
watchedFolders... | 23,020 |
https://github.com/Gourishanakr/user-management/blob/master/InstantDelivery.Common/Enums/PackageEventType.cs | Github Open Source | Open Source | MIT | 2,022 | user-management | Gourishanakr | C# | Code | 78 | 331 | using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace InstantDelivery.Common.Enums
{
/// <summary>
/// Rodzaj zdarzenia w procesie dostarczenia paczki
/// </summary>
public enum PackageEventType
{
[Display(Name = "Paczka zarejestrowana")]
[Description(... | 47,775 |
https://github.com/gnseo/ui5-webcomponents-react/blob/master/packages/main/src/webComponents/TabSeparator/index.tsx | Github Open Source | Open Source | Apache-2.0 | 2,021 | ui5-webcomponents-react | gnseo | TypeScript | Code | 50 | 189 | import { withWebComponent } from '@ui5/webcomponents-react/lib/withWebComponent';
import UI5TabSeparator from '@ui5/webcomponents/dist/TabSeparator';
import React, { FC } from 'react';
import { WithWebComponentPropTypes } from '../../internal/withWebComponent';
export interface TabSeparatorPropTypes extends WithWebCom... | 27,915 |
https://github.com/duckfez/SplunkModularInputsPythonFramework/blob/master/implementations/bugsense/bin/authhandlers.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | SplunkModularInputsPythonFramework | duckfez | Python | Code | 47 | 129 | from requests.auth import AuthBase
#add your custom auth handler class to this module
class MyCustomAuth(AuthBase):
def __init__(self,**args):
# setup any auth-related data here
#self.username = args['username']
#self.password = args['password']
pass
def __call__(self,... | 3,763 |
https://github.com/yivo/eskimo/blob/master/gulpfile.coffee | Github Open Source | Open Source | MIT | null | eskimo | yivo | CoffeeScript | Code | 77 | 308 | gulp = require 'gulp'
concat = require 'gulp-concat'
plumber = require 'gulp-plumber'
sass = require 'gulp-sass'
jade = require 'gulp-jade'
_ = require 'underscore'
faker = require 'faker'
gulp.task 'default', ['build', 'watch'], ->
gulp.task 'build', ['css', 'html'], ->
gulp.task 'css', ->
gulp.... | 43,090 |
https://github.com/shangxiaohe/MyTestCocoapods/blob/master/TwoTest/class/LFVideoEditingController/utils/LFVideoPlayer.h | Github Open Source | Open Source | MIT | 2,021 | MyTestCocoapods | shangxiaohe | C | Code | 223 | 853 | //
// LFVideoPlayer.h
// VideoPlayDemo
//
// Created by LamTsanFeng on 2016/11/17.
// Copyright © 2016年 GZMiracle. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@class LFVideoPlayer;
@protocol LFVideoPlayerDelegate <NSObject>
/** 画面回调 */
- (void)LFVideoPlayerLayerDisplay:... | 25,948 |
https://github.com/starlingx/config/blob/master/sysinv/sysinv/sysinv/sysinv/tests/conductor/test_rpcapi.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | config | starlingx | Python | Code | 319 | 1,219 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# coding=utf-8
# Copyright 2013 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the Lic... | 44,695 |
https://github.com/waltheri/tesuji/blob/master/src/utils/Type.js | Github Open Source | Open Source | MIT | null | tesuji | waltheri | JavaScript | Code | 190 | 505 | /** Variables with reuired type */
require("./functionNamePolyfill");
var ConditionVariable = require("./ConditionVariable");
var Type = function(type, initialValue) {
ConditionVariable.call(this, initialValue == null ? new type() : initialValue);
this.type = type;
this.typeName = type.name;
}
Type.prototype = O... | 22,781 |
https://github.com/zipated/src/blob/master/headless/lib/browser/headless_clipboard.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | src | zipated | C | Code | 282 | 1,046 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef HEADLESS_LIB_BROWSER_HEADLESS_CLIPBOARD_H_
#define HEADLESS_LIB_BROWSER_HEADLESS_CLIPBOARD_H_
#include <stddef.h>
#include <stdint.h>
#include <... | 30,599 |
https://github.com/brilliant-almazov/control-center/blob/master/src/app/shared/components/timeline/timeline-item/timeline-item.component.scss | Github Open Source | Open Source | Apache-2.0 | 2,020 | control-center | brilliant-almazov | SCSS | Code | 13 | 51 | @import './timeline-item.scss';
.cc-timeline-item {
padding-bottom: 20px;
padding-left: $size + $content-padding;
position: relative;
} | 7,646 |
https://github.com/andyli/pyextern/blob/master/out/pytorch/torch/nn/modules/adaptive/Linear.hx | Github Open Source | Open Source | BSD-3-Clause | 2,022 | pyextern | andyli | Haxe | Code | 15 | 37 | /* This file is generated, do not edit! */
package torch.nn.modules.adaptive;
typedef Linear = torch.nn.modules.linear.Linear; | 36,336 |
https://github.com/zSaaiq/FTumblrAds/blob/master/Headers/GADAdAppGMSGHandler.h | Github Open Source | Open Source | MIT | 2,020 | FTumblrAds | zSaaiq | Objective-C | Code | 43 | 171 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Aug 29 2020 16:17:50).
//
// Copyright (C) 1997-2019 Steve Nygard.
//
#import "GADGMSGHandler.h"
@interface GADAdAppGMSGHandler : GADGMSGHandler
{
}
+ (id)actionBlockDictionary;
- (_Bool)shouldBufferNotification:(id)arg1 adView:(id)arg2;
- (void... | 46,798 |
https://github.com/jagDanJu/hafas-client/blob/master/format/date.js | Github Open Source | Open Source | ISC | 2,018 | hafas-client | jagDanJu | JavaScript | Code | 25 | 83 | 'use strict'
const {DateTime} = require('luxon')
const formatDate = (profile, when) => {
return DateTime.fromMillis(+when, {
locale: profile.locale,
zone: profile.timezone
}).toFormat('yyyyMMdd')
}
module.exports = formatDate
| 45,602 |
https://github.com/Chinuon/Catharsis-in-apocalypse/blob/master/CIA/.import/generic-rpg-fence-raw09.png-c68d56fce8aeedee22a21f8e595bdf9d.md5 | Github Open Source | Open Source | Apache-2.0 | 2,020 | Catharsis-in-apocalypse | Chinuon | null | Spoken | 2 | 51 | source_md5="af56abeb00a47a75bae48c7c9cf5bc05"
dest_md5="ddb2474851eeea22739d447132cb702d"
| 35,100 |
https://github.com/seaneshbaugh/rosetta-euler/blob/master/ruby/049/049.rb | Github Open Source | Open Source | MIT | 2,021 | rosetta-euler | seaneshbaugh | Ruby | Code | 228 | 601 | def sieve_of_atkin(limit)
primes = []
sieve = Array.new(limit + 1) { false }
square_root_of_limit = Math.sqrt(limit).to_i
(1..square_root_of_limit).each do |x|
(1..square_root_of_limit).each do |y|
n = (4 * x * x) + (y * y)
sieve[n] = !sieve[n] if n <= limit && (n % 12 == 1 || n % 12 == 5)
... | 24,570 |
https://github.com/tkf/BenchPerf.jl/blob/master/src/execution.jl | Github Open Source | Open Source | MIT | 2,021 | BenchPerf.jl | tkf | Julia | Code | 107 | 383 | struct TrialResult
benchmark::BenchmarkTools.Trial
perf::TrialPerf
end
struct GroupResult
benchmark::BenchmarkGroup
perf::GroupPerf
end
as_result(b::BenchmarkTools.Trial, p::TrialPerf) = TrialResult(b, p)
as_result(b::BenchmarkGroup, p::GroupPerf) = GroupResult(b, p)
function BenchPerf.run(bench_or_g... | 11,967 |
https://github.com/sjsjsj1246/Jandy_Web_Back/blob/master/src/controllers/ArchiveController.js | Github Open Source | Open Source | MIT | null | Jandy_Web_Back | sjsjsj1246 | JavaScript | Code | 77 | 402 | import express from "express";
import * as ArchiveServices from "../services/ArchiveServices";
import * as AuthHandler from "../middlewares/AuthHandler";
import * as ArchiveValidation from "../validations/ArchiveValidation";
const Router = express.Router();
Router.post(
"/",
AuthHandler.isLoggedIn,
Archiv... | 23,226 |
https://github.com/wiltaylor/CommandLineParser/blob/master/CommandLineParser.UnitTests/Helper/TestHelper.cs | Github Open Source | Open Source | MIT | 2,018 | CommandLineParser | wiltaylor | C# | Code | 25 | 97 | using Ploeh.AutoFixture;
using Ploeh.AutoFixture.AutoFakeItEasy;
namespace CommandLineParser.UnitTests.Helper
{
public static class TestHelper
{
public static IFixture NewFixture()
{
return new Fixture()
.Customize(new AutoFakeItEasyCustomization());
}
}... | 46,842 |
https://github.com/tarfin-labs/event-machine/blob/master/tests/StateDefinitionTest.php | Github Open Source | Open Source | MIT | 2,023 | event-machine | tarfin-labs | PHP | Code | 947 | 4,281 | <?php
declare(strict_types=1);
use Tarfinlabs\EventMachine\Definition\StateDefinition;
use Tarfinlabs\EventMachine\Definition\MachineDefinition;
use Tarfinlabs\EventMachine\Definition\TransitionDefinition;
test('state definition is an instance of StateDefinition', function (): void {
$machineWithStates = Machine... | 31,478 |
https://github.com/KolijnWolfaardt/BlockDrop/blob/master/gen/com/seven/segment/roadsign/blockdrop/R.java | Github Open Source | Open Source | MIT | 2,013 | BlockDrop | KolijnWolfaardt | Java | Code | 497 | 1,385 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.seven.segment.roadsign.blockdrop;
public final class R {
public static final class attr {
/** <p>Must be a string... | 14,406 |
https://github.com/thomsmits/oftp2-client/blob/master/internal/liboftp2/wire/cd.go | Github Open Source | Open Source | BSD-3-Clause | 2,021 | oftp2-client | thomsmits | Go | Code | 189 | 446 | package wire
/*
5.3.12. CD - Change Direction
o-------------------------------------------------------------------o
| CD Change Direction |
| |
| Start File Phase Speaker ----> ... | 38,620 |
https://github.com/immnk/StudentCollab/blob/master/js/controllers/menu-controller.js | Github Open Source | Open Source | MIT | null | StudentCollab | immnk | JavaScript | Code | 27 | 121 | // angular.module('studentcollab.controllers')
app.components.controller('MenuCtrl', ['$scope', '$rootScope',
function($scope, rootScope){
init();
function init(){
console.log('Menu is initializing...');
rootScope.menuClick = false;
}
$scope.pushMenu = function(){
console.log('menu ... | 42,713 |
https://github.com/Pietroski/quero2-backend-technical-test/blob/master/scripts/entrypoints/entrypoint.sh | Github Open Source | Open Source | MIT | null | quero2-backend-technical-test | Pietroski | Shell | Code | 69 | 186 | #!/bin/sh
set -e
if [ -z "${DB_DATA_SOURCE_NAME}" ]; then
echo "Missed PostgreSQL connection variables. Exiting ..."
exit 1
fi
if [ -z "${MIGRATIONS_PATH}" ]; then
echo "Missed migration path variable. Exiting ..."
exit 1
fi
until psql "${DB_DATA_SOURCE_NAME}" -c "select 1" /dev/null 2>&1; do
echo... | 50,331 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.