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/Apodini/CollectorAnalystPresenterExample/blob/master/Processing/Sources/ProcessingWebService/DatabaseService/RemoteDatabaseService.swift | Github Open Source | Open Source | MIT | null | CollectorAnalystPresenterExample | Apodini | Swift | Code | 254 | 749 | //
// This source file is part of the Collector-Analyst-Presenter Example open source project
//
// SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <paul.schmiedmayer@tum.de>
//
// SPDX-License-Identifier: MIT
//
import Apodini
import ApodiniAsyncHTTPClient
import ApodiniCo... | 53,720 |
https://github.com/BuildmLearnOrg/BuildmLearn-Store/blob/master/Android/doc/Doxygen/search/classes_7.js | Github Open Source | Open Source | BSD-3-Clause | 2,016 | BuildmLearn-Store | BuildmLearnOrg | JavaScript | Code | 5 | 75 | var searchData=
[
['navigationactivity',['NavigationActivity',['../d0/d60/classorg_1_1buildmlearn_1_1appstore_1_1activities_1_1_navigation_activity.html',1,'org::buildmlearn::appstore::activities']]]
];
| 41,740 |
https://github.com/sylvainbaronnet/grid-styletr/blob/master/src/Flex.js | Github Open Source | Open Source | MIT | 2,017 | grid-styletr | sylvainbaronnet | JavaScript | Code | 81 | 159 | import React from 'react'
import Box from './Box'
import styled from './styled'
const align = ({align}) => align ? {alignItems: align} : null
const justify = ({justify}) => justify ? {justifyContent: justify} : null
const order = ({order}) => order ? {order} : null
const wrap = ({wrap}) => wrap ? {flexWrap: 'wrap'} : ... | 40,487 |
https://github.com/levinhax/vue-admin-template/blob/master/src/store/mutation-types.js | Github Open Source | Open Source | MIT | null | vue-admin-template | levinhax | JavaScript | Code | 17 | 62 | // app
export const TOGGLE_SIDEBAR = 'TOGGLE_SIDEBAR'
export const CLOSE_SIDEBAR = 'CLOSE_SIDEBAR'
export const TOGGLE_DEVICE = 'TOGGLE_DEVICE'
| 34,200 |
https://github.com/amazinjoey/My-M365Blog/blob/master/src/components/layout.js | Github Open Source | Open Source | MIT | null | My-M365Blog | amazinjoey | JavaScript | Code | 52 | 192 | import React from "react"
import NavigationBar from "./navigation/navigationBar"
import Footer from "./footer/footer"
import {ThemeProvider} from './navigation/themeContext'
const Layout = ({children}) => {
return (
<ThemeProvider>
<div
class="flex flex-col bg-white dark:bg-gray... | 14,051 |
https://github.com/chenna1199/Data-Structures-Algorithms-Handbook/blob/master/Tries/Word-Search-2-212.cpp | Github Open Source | Open Source | MIT | 2,021 | Data-Structures-Algorithms-Handbook | chenna1199 | C++ | Code | 382 | 967 | // Given an m x n board of characters and a list of strings words,
// return all words on the board.
// Each word must be constructed from letters of sequentially adjacent
// cells, where adjacent cells are horizontally or vertically neighboring.
// The same letter cell may not be used more than once in a word.
//... | 34,595 |
https://github.com/CristiRO/Monalisa/blob/master/src/lia/Monitor/monitor/MonitorFilter.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Monalisa | CristiRO | Java | Code | 55 | 119 | package lia.Monitor.monitor;
import lia.Monitor.DataCache.Cache;
public interface MonitorFilter extends java.io.Serializable {
public String getName();
public void initdb (dbStore datastore, MFarm farm);
public void initCache(Cache cache);
public void addClient ( MonitorClient client );
public void removeClient ( M... | 43,203 |
https://github.com/creativekinetix/vscode-azurelogicapps/blob/master/src/utils/commandUtils.ts | Github Open Source | Open Source | MIT | null | vscode-azurelogicapps | creativekinetix | TypeScript | Code | 85 | 250 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*-------------------------------------------------------------------... | 20,212 |
https://github.com/achyut3598/Web-VR/blob/master/inc/camera.php | Github Open Source | Open Source | MIT | null | Web-VR | achyut3598 | PHP | Code | 60 | 244 | <!-- Cursor / Camera -->
<a-entity camera position="0 1.6 0" camera="userHeight: 1.6" look-controls>
<a-entity cursor="fuse: true; fuseTimeout: 2000"
position="0 0 -1"
geometry="primitive: ring; radiusInner: 0.02; radiusOuter: 0.03"
material="color... | 34,944 |
https://github.com/lcomstive/Graphics-Assessment/blob/master/Project/Applications/ModelViewer/Source/ModelViewer.cpp | Github Open Source | Open Source | MIT-0 | null | Graphics-Assessment | lcomstive | C++ | Code | 606 | 2,565 | #include "Inspector.hpp"
#include "ModelViewer.hpp"
#include <misc/cpp/imgui_stdlib.h>
#include <Engine/Graphics/Mesh.hpp>
#include <Engine/Graphics/Model.hpp>
#include <Engine/Graphics/Gizmos.hpp>
#include <Engine/Graphics/Renderer.hpp>
#include <Engine/Services/SceneService.hpp>
#include <Engine/Graphics/Passes/Skybo... | 46,419 |
https://github.com/Grobobobo/HeliosHighlander/blob/master/XComGame/Classes/X2Effect_NeuralNetwork.uc | Github Open Source | Open Source | MIT | null | HeliosHighlander | Grobobobo | null | Spoken | 470 | 2,047 | class X2Effect_NeuralNetwork extends X2Effect_PersistentStatChange config(GameCore);
var name NeuralNetworkReactAnim;
var localized string NeuralNetworkEffectAcquiredString;
// HELIOS Issue #23 Variables
var name NeuralNetworkRemovedTriggerName;
simulated protected function OnEffectAdded(const out EffectAppliedData ... | 31,948 |
https://github.com/jsdelivrbot/dockerfiles-1/blob/master/data/m/msokk/postgres-s3-backup/Dockerfile | Github Open Source | Open Source | MIT | 2,018 | dockerfiles-1 | jsdelivrbot | Dockerfile | Code | 105 | 443 | FROM alpine:3.4
# Run every night by default
ENV SCHEDULE="@daily" \
PGUSER="postgres" \
COMPRESSION_LEVEL=9 \
NAME_PREFIX='database-archive' \
AWS_ENDPOINT='s3.amazonaws.com'
RUN apk --no-cache add --virtual build-dependencies tar postgresql ca-
certificates && \
apk --no-cache add libpq && \
... | 24,609 |
https://github.com/Tsinghua-OpenICV/OpenICV/blob/master/Branch/Deprecated/SickLDMRS/datatypes/Line2D.cpp | Github Open Source | Open Source | MIT | 2,021 | OpenICV | Tsinghua-OpenICV | C++ | Code | 1,312 | 3,417 | //
// Line2D.cpp
//
#include <cmath>
#include "Line2D.hpp"
#include "Point2D.hpp"
#include "Polygon2D.hpp"
namespace datatypes
{
Polygon2D Line2D::toPolygon2D() const
{
return Polygon2D(first, second);
}
Polygon2D Line2D::toPolygon2D(unsigned samplePoints) const
{
assert(samplePoints > 1);
if (samplePoints ... | 35,784 |
https://github.com/timsawyer/web-prototyping-tool/blob/master/src/app/routes/project/components/properties/actions-panel/position.utils.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | web-prototyping-tool | timsawyer | TypeScript | Code | 432 | 1,334 | /*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 35,602 |
https://github.com/mtosity/mern-ecom/blob/master/client/src/App.tsx | Github Open Source | Open Source | MIT | 2,020 | mern-ecom | mtosity | TypeScript | Code | 379 | 1,146 | import React, { useEffect } from "react";
import { Provider, useDispatch, useSelector } from "react-redux";
import { BrowserRouter, Switch, Route } from "react-router-dom";
import "./index.css";
import { Nav } from "./components/Nav";
import { Home } from "./screen/Home";
import Store from "./Store";
import { FOF } ... | 35,177 |
https://github.com/deliriouser/monira/blob/master/public/assets/js/grid/transpiled-esm-npm/esm/ui/scheduler/workspaces/ui.scheduler.timeline_day.js | Github Open Source | Open Source | MIT | null | monira | deliriouser | JavaScript | Code | 40 | 179 | import registerComponent from '../../../core/component_registrator';
import SchedulerTimeline from './ui.scheduler.timeline';
var TIMELINE_CLASS = 'dx-scheduler-timeline-day';
class SchedulerTimelineDay extends SchedulerTimeline {
_getElementClass() {
return TIMELINE_CLASS;
}
_setFirstViewDate() {
this.... | 34,199 |
https://github.com/Snarpix/gluon/blob/master/check/tests/fail.rs | Github Open Source | Open Source | MIT | 2,021 | gluon | Snarpix | Rust | Code | 2,180 | 5,811 | #[macro_use]
extern crate pretty_assertions;
extern crate gluon_base as base;
extern crate gluon_check as check;
extern crate gluon_parser as parser;
use crate::base::{
ast::KindedIdent,
symbol::Symbol,
types::{ArcType, Type},
};
use crate::check::typecheck::TypeError;
#[macro_use]
mod support;
#[test]... | 45,565 |
https://github.com/rpatil524/COPO/blob/master/static/copo/js/dtol_functions.js | Github Open Source | Open Source | MIT | null | COPO | rpatil524 | JavaScript | Code | 229 | 909 | $(document).ready(function () {
$(document).on("change", "#dtol_type_select", function (e) {
$.ajax({
url: "/copo/get_subsample_stages",
method: "GET",
data: {
"stage": $(e.currentTarget).val()
},
dataType: "json"
}).done(f... | 41,304 |
https://github.com/hbcbh1999/cl4l/blob/master/crypt.lisp | Github Open Source | Open Source | MIT | 2,019 | cl4l | hbcbh1999 | Common Lisp | Code | 77 | 330 | (defpackage cl4l-crypt
(:export decrypt encrypt make-crypt make-iv sha256)
(:shadowing-import-from ironclad block-length
decrypt-in-place
digest-sequence
encrypt-in-place
make-cipher
mak... | 18,183 |
https://github.com/puppetlabs/pcore-java/blob/master/src/main/java/com/puppet/pcore/pspec/Test.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | pcore-java | puppetlabs | Java | Code | 20 | 52 | package com.puppet.pcore.pspec;
public abstract class Test {
public final String name;
protected Test(String name) {
this.name = name;
}
}
| 41,029 |
https://github.com/mmbase/natmm/blob/master/src/nl/leocms/builders/ContentElementBuilder.java | Github Open Source | Open Source | DOC, Unlicense | null | natmm | mmbase | Java | Code | 335 | 952 | /*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
* Software distributed under th... | 28,673 |
https://github.com/umi/FC2LiveCommentViewer/blob/master/src/renderer/components/Comment.vue | Github Open Source | Open Source | MIT | 2,020 | FC2LiveCommentViewer | umi | Vue | Code | 1,059 | 4,477 | <template>
<div id="comment">
<input ref="slider" type="range" v-model="nameWidth" min="0" :max="sliderWidth">
<ul @scroll="onScroll" ref="comment" class="comments" v-bind:style="configStyle.comment_box">
<li v-for="comment in comments">
<div v-if="comment.type.indexOf('tip') !== -1 || comment.type.indexOf(... | 21,422 |
https://github.com/gchudnov/swearwolf/blob/master/woods/src/main/scala/com/github/gchudnov/swearwolf/woods/GraphStyle.scala | Github Open Source | Open Source | MIT | 2,020 | swearwolf | gchudnov | Scala | Code | 24 | 59 | package com.github.gchudnov.swearwolf.woods
sealed trait GraphStyle
object GraphStyle {
case object Dot extends GraphStyle
case object Step extends GraphStyle
case object Quad extends GraphStyle
}
| 23,534 |
https://github.com/upovod/fl-ru-damp/blob/master/classes/WMXI/examples/x16.php | Github Open Source | Open Source | BSD-3-Clause | 2,015 | fl-ru-damp | upovod | PHP | Code | 24 | 194 | <?php
include('_header.php');
# http://wiki.webmoney.ru/wiki/show/Interfeys_X16
$res = $wmxi->X16(
PRIMARY_WMID, # WMID кошелька
'Z', # тип кошелька
'Ещё один WMZ' # название кошелька
);
print_r($res->toObject());
?> | 35,669 |
https://github.com/asrani27/banjir/blob/master/resources/views/call.blade.php | Github Open Source | Open Source | MIT | null | banjir | asrani27 | PHP | Code | 74 | 413 |
<table class="table table-striped table-sm">
<thead>
<tr class="bg-gradient-purple">
<th class="text-center">No</th>
<th class="text-center">Keterangan</th>
<th class="text-center">No Telepon</th>
</thead>
... | 10,470 |
https://github.com/wilsonrc/JobsScrapper/blob/master/server.ts | Github Open Source | Open Source | Apache-2.0 | 2,018 | JobsScrapper | wilsonrc | TypeScript | Code | 97 | 242 | 'use strict';
import * as bodyParser from 'body-parser';
import * as cookieParser from 'cookie-parser';
import * as express from 'express';
import db from './db';
import { assignRoutes } from './routes';
const app = express();
const router = express.Router();
const PORT = process.env.PORT || 5000;
app.use(bodyParse... | 11,187 |
https://github.com/terriko/crosswalk-test-suite/blob/master/misc/wrt-stabrecovery-android-tests/resources/Makefile.am | Github Open Source | Open Source | BSD-3-Clause | 2,014 | crosswalk-test-suite | terriko | Makefile | Code | 9 | 52 | w3cresources_SCRIPTS = *
w3cresourcesdir = /opt/wrt-stabrecovery-android-tests/resources
EXTRA_DIST = $(w3cresources_SCRIPTS)
| 22,045 |
https://github.com/akbarahmadshah/EbayScraper/blob/master/ProductScraper/intro.py | Github Open Source | Open Source | MIT | 2,020 | EbayScraper | akbarahmadshah | Python | Code | 254 | 1,120 | import requests
from bs4 import BeautifulSoup
class EbayWrapper:
headers = {
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)"
" Chrome/77.0.3865.90 Safari/537.36"
}
def __init__(self):
self.BASE_URL = "https://www.ebay.com/n/all-... | 51,601 |
https://github.com/grayfallstown-cryptodoge/cryptodoge/blob/master/cryptodoge-gui/src/components/core/components/FormatConnectionStatus/FormatConnectionStatus.tsx | Github Open Source | Open Source | Apache-2.0 | 2,022 | cryptodoge | grayfallstown-cryptodoge | TypeScript | Code | 162 | 486 | import React, { ReactNode } from 'react';
import styled from 'styled-components';
import { Trans } from '@lingui/macro';
import { Typography, TypographyProps } from '@material-ui/core';
import { FiberManualRecord as FiberManualRecordIcon } from '@material-ui/icons';
import { Flex } from '@cryptodoge/core';
function ge... | 51,264 |
https://github.com/PacoReinaCampo/MPSoC-DBG/blob/master/rtl/pu/riscv/verilog/ahb3/ahb3/mpsoc_dbg_ahb3_module.sv | Github Open Source | Open Source | MIT | 2,021 | MPSoC-DBG | PacoReinaCampo | null | Spoken | 698 | 1,946 | ////////////////////////////////////////////////////////////////////////////////
// __ _ _ _ //
// / _(_) | | | | //
// __ _ _ _ ___ ___ _ __ | |_ _ ___| | __| | ... | 16,123 |
https://github.com/hamlim/react-android-emoji/blob/master/src/RotatingLight.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | react-android-emoji | hamlim | JavaScript | Code | 289 | 1,443 | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require("react");
var _react2 = _interopRequireDefault(_react);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}
function _extends() {
_extends =
Object.assign ||
f... | 18,309 |
https://github.com/ShiWeiCN/Berry/blob/master/Berry/Core/Classes/Protocol/BerryItemForm.swift | Github Open Source | Open Source | MIT | 2,017 | Berry | ShiWeiCN | Swift | Code | 48 | 101 | //
// BerryItemForm.swift
// Berry
//
// Created by shiwei on 2019/1/30.
//
import Foundation
public protocol BerryItemForm {
/// Menu item's series identifier, it's non-null
var seriesIdentifier: String { get }
/// Menu item's subseries identifier, it's an optional value.
var subseriesIdentifier: ... | 33,696 |
https://github.com/martinschulze/epuck-vagrant-vm/blob/master/.gitmodules | Github Open Source | Open Source | Apache-2.0 | 2,014 | epuck-vagrant-vm | martinschulze | Git Config | Code | 48 | 240 | [submodule "modules/xfce"]
path = modules/xfce
url = https://github.com/martinschulze/puppet-xfce.git
[submodule "modules/eclipse"]
path = modules/eclipse
url = https://github.com/martinschulze/puppet-eclipse.git
[submodule "modules/locale"]
path = modules/locale
url = https://github.com/martinschulze/puppet-loca... | 5,615 |
https://github.com/casept/impacto/blob/master/profiles/cclcc/hud/systemmenu.js | Github Open Source | Open Source | 0BSD | 2,021 | impacto | casept | JavaScript | Code | 344 | 1,099 | root.SystemMenu = {
Type: SystemMenuType.RNE,
Background: {
DurationIn: 0.75,
DurationOut: 1.0,
Sprite: "SystemMenuBackground",
Seed: 0,
Rows: 7,
Columns: 12,
CenterY: 0.7,
VanishingPointX: 0.66,
Depth: 2,
MaxAngle: Math.PI / 2
... | 46,190 |
https://github.com/famichu/MagLev_Switch_MX/blob/master/Sample_Numeric_Keypad/Code/XIAO_key_matrix_controller/include/fet.cpp | Github Open Source | Open Source | MIT | 2,022 | MagLev_Switch_MX | famichu | C++ | Code | 67 | 172 | #include <fet.h>
// set the output pin number and the fet is p-ch or n-ch
FET::FET(u_int8_t rec_pin, bool rec_is_pch){
pin = rec_pin;
is_pch = rec_is_pch;
pinMode(pin, OUTPUT);
}
// the case which use to make only instance
FET::FET(){
}
// set the output state of the line connected to the fet
void FET::o... | 13,154 |
https://github.com/GChaviraJr/bamazon/blob/master/bamazonManager.js | Github Open Source | Open Source | BSD-2-Clause | 2,019 | bamazon | GChaviraJr | JavaScript | Code | 391 | 1,199 | const mysql = require("mysql")
const inquirer = require("inquirer")
const connection = mysql.createConnection({
host: "localhost",
port: 3306,
user: "root",
password: "Sb1598951",
database: "bamazon"
})
// connection.connect(function (err) {
// if (err) throw err
// console.log("Connection... | 37,831 |
https://github.com/CamdenFoucht/ask-cli/blob/master/test/unit/controller/code-builder-test.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | ask-cli | CamdenFoucht | JavaScript | Code | 229 | 954 | const { expect } = require('chai');
const sinon = require('sinon');
const fs = require('fs-extra');
const path = require('path');
const ZipOnlyBuildFlow = require('@src/builtins/build-flows/zip-only');
const NodeJsNpmBuildFlow = require('@src/builtins/build-flows/nodejs-npm');
const CodeBuilder = require('@src/controll... | 5,207 |
https://github.com/sobrien-banyan/persevere-lms/blob/master/clientTwo/src/components/code-editors/CodeEditor.jsx | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,021 | persevere-lms | sobrien-banyan | JavaScript | Code | 837 | 3,626 | import React, { useState } from "react";
import { Inspector } from "react-inspector";
import { toast } from "react-toastify";
import { Controlled as CodeMirror } from "react-codemirror2";
import { useHistory } from "react-router-dom";
let esprima = require("esprima/dist/esprima");
let escodegen = require("escodegen/es... | 23,548 |
https://github.com/dibyanshushekhardey/Java_beginning/blob/master/Practice/MathRandomRound.java | Github Open Source | Open Source | MIT | null | Java_beginning | dibyanshushekhardey | Java | Code | 39 | 96 |
public class MathRandomRound {
public static void main(String args[]) {
for (int i = 0; i < 10; i++) {
double num = Math.random() * 100;
System.out.print("The number " + num);
System.out.println("rounds to " + Math.round(num));
}
}
}
| 34,050 |
https://github.com/2bite/ARK-SDK/blob/master/SDK/ARKSurvivalEvolved_SpaceDolphin_AIController_BP_classes.hpp | Github Open Source | Open Source | MIT | 2,021 | ARK-SDK | 2bite | C++ | Code | 69 | 331 | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_SpaceDolphin_AIController_BP_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//--------------------------------------------... | 32,066 |
https://github.com/stevelyall/mongol-db/blob/master/src/mongo/scripting/mozjs/cursor_handle.cpp | Github Open Source | Open Source | Apache-2.0 | 2,018 | mongol-db | stevelyall | C++ | Code | 414 | 934 | /**
* Copyright (C) 2015 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITH... | 50,880 |
https://github.com/microsoft/VerifiableCredentials-Verification-SDK-Typescript/blob/master/lib/api_oidc_request/IRequestorPresentationExchange.ts | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla | 2,021 | VerifiableCredentials-Verification-SDK-Typescript | microsoft | TypeScript | Code | 35 | 71 | import { IRequestor, PresentationDefinitionModel } from '../index';
/**
* Interface to initialize the Requestor
*/
export default interface IRequestorPresentationExchange extends IRequestor {
/**
* definition of the claims being asked for
*/
presentationDefinition: PresentationDefinitionModel
} | 23,729 |
https://github.com/zyddnys/fast_io/blob/master/examples/0045.blizzard_authenticator/restore.cc | Github Open Source | Open Source | MIT | null | fast_io | zyddnys | C++ | Code | 164 | 1,467 | #include"../../include/fast_io.h"
#include"../../include/fast_io_device.h"
#include"../../include/fast_io_network.h"
#include"../../include/fast_io_hash.h"
#include"domain.h"
#include<random>
#include"key_info.h"
int main(int argc, char** argv)
try
{
if(argc!=3)
{
println(fast_io::err,"Usage: ",*argv," <serial> <r... | 32,850 |
https://github.com/johnmbaughman/Metrolib/blob/master/Metrolib/Controls/Buttons/PreviousButton.cs | Github Open Source | Open Source | MIT | null | Metrolib | johnmbaughman | C# | Code | 66 | 165 | using System.Windows;
// ReSharper disable CheckNamespace
namespace Metrolib.Controls
// ReSharper restore CheckNamespace
{
/// <summary>
/// A button used to jump to the previous something, for example
/// the previous occurence of a search term in a document.
/// </summary>
/// <remarks>
/// Disp... | 22,886 |
https://github.com/Cristoph23/hotel/blob/master/app/Models/Product.php | Github Open Source | Open Source | MIT | null | hotel | Cristoph23 | PHP | Code | 43 | 191 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class Product extends Model
{
use HasFactory;
protected $fillable = [
'name_p',
'marca_p',
'price_p',
... | 18,403 |
https://github.com/openstack/openstacksdk/blob/master/openstack/image/v1/image.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | openstacksdk | openstack | Python | Code | 704 | 1,528 | # 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 under t... | 51,753 |
https://github.com/SolarGeeks/solargeeks.github.io/blob/master/js/controllers/ReportController.js | Github Open Source | Open Source | MIT | 2,019 | solargeeks.github.io | SolarGeeks | JavaScript | Code | 11 | 53 | app.controller('ReportController', ['$scope', function ($scope, productService) {
$scope.products = productService.getProducts();
console.log($scope.products);
}]);
| 37,419 |
https://github.com/jaswinder9051998/zoofs/blob/master/zoofs/harrishawkoptimization.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | zoofs | jaswinder9051998 | Python | Code | 981 | 4,737 | from zoofs.baseoptimizationalgorithm import BaseOptimizationAlgorithm
import numpy as np
import time
import warnings
import math
class HarrisHawkOptimization(BaseOptimizationAlgorithm):
def __init__(
self,
objective_function,
n_iteration: int = 1000,
timeout: int = None,
po... | 49,331 |
https://github.com/NBTSolutions/enyo-extras/blob/master/src/util/prefs.js | Github Open Source | Open Source | Unlicense | null | enyo-extras | NBTSolutions | JavaScript | Code | 208 | 717 | /**
* Depends on util/singleton.js
*/
var _AutoPref = {
name : "extras.AutoPreferencesService",
kind : "Component",
components : [{
kind : "SystemService",
name : "getPreferences",
method : "getPreferences",
onResponse : "getPrefs"
}, {
kind : "SystemService",
name : "setPreferences",
method : "setP... | 41,639 |
https://github.com/aidalgol/nixpkgs/blob/master/pkgs/development/python-modules/python-snappy/default.nix | Github Open Source | Open Source | MIT | 2,021 | nixpkgs | aidalgol | null | Spoken | 91 | 276 | { lib
, buildPythonPackage
, fetchPypi
, isPyPy
, snappy
, cffi
, python
}:
buildPythonPackage rec {
pname = "python-snappy";
version = "0.6.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-tqEHqwYgasxTWdTFYyvZsi1EhwKnmzFpsMYuD7gIuyo=";
};
buildInputs = [ snapp... | 2,927 |
https://github.com/xfsnowind/reversi/blob/master/src/scss/__flip.scss | Github Open Source | Open Source | MIT | null | reversi | xfsnowind | SCSS | Code | 76 | 285 | .flipper {
width: 96%;
height: 96%;
left: 2.5%;
top: 2.5%;
position: absolute;
float: left;
transform-style: preserve-3d;
perspective: 1000px;
.flipper__piece {
width: 100%;
height: 100%;
position: absolute;
border-radius: 50%;
backface-visibi... | 53,524 |
https://github.com/DaniloLima122/repos-github-ReactJS/blob/master/src/componentes/Lista_Repos/Repositorios.js | Github Open Source | Open Source | MIT | null | repos-github-ReactJS | DaniloLima122 | JavaScript | Code | 143 | 533 | import React, { Fragment } from "react";
import { Repo, Semdados, DetalhesResult } from "./style";
import { Icon } from '@iconify/react';
import starFilled from '@iconify/icons-ant-design/star-filled';
import gitFork from '@iconify/icons-gg/git-fork';
const Repositorios = (props) => {
let result = props.dad... | 11,404 |
https://github.com/alexandergall/bf-sde-nixpkgs/blob/master/bf-sde/support/default.nix | Github Open Source | Open Source | Intel | 2,022 | bf-sde-nixpkgs | alexandergall | null | Spoken | 28 | 85 | pkgs:
import ./release.nix { inherit pkgs; } // {
mkOnieInstaller = import ./installers/onie { inherit pkgs; };
mkStandaloneInstaller = pkgs.callPackage ./installers/standalone {};
mkReleaseManager = pkgs.callPackage ./release-manager {};
}
| 13,155 |
https://github.com/cpmech/gosl/blob/master/chk/recover.go | Github Open Source | Open Source | BSD-3-Clause | 2,023 | gosl | cpmech | Go | Code | 123 | 297 | // Copyright 2016 The Gosl 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 chk
import (
"fmt"
"os"
"testing"
)
// Recover catches panics and call os.Exit(1) on 'panic'
func Recover() {
if err := recover(); err != nil {
... | 51,286 |
https://github.com/SteveSmith16384/SplitScreen3DChaos/blob/master/src/com/scs/splitscreenchaos/GameMechanics.java | Github Open Source | Open Source | MIT | 2,019 | SplitScreen3DChaos | SteveSmith16384 | Java | Code | 63 | 173 | package com.scs.splitscreenchaos;
import ssmith.lang.NumberFunctions;
public class GameMechanics {
public GameMechanics() {
}
/**
* Returns how much damage the defender incurs
* @param att
* @param def
* @return
*/
public static float combat(float att, float def) {
att += NumberFunctions.rndFloat(... | 10,474 |
https://github.com/mijho/gobcrypt/blob/master/cmd/utils.go | Github Open Source | Open Source | Unlicense | 2,018 | gobcrypt | mijho | Go | Code | 456 | 1,047 | package main
import (
"bufio"
"fmt"
"math/rand"
"os"
"strings"
"time"
"golang.org/x/crypto/bcrypt"
)
var r *rand.Rand // Rand for this package.
func init() {
r = rand.New(rand.NewSource(time.Now().UnixNano()))
}
// This function will generate a random string based on the random value
// set from the init ... | 36,701 |
https://github.com/davidmak2709/dashvend/blob/master/bin/dashvend/dash_zmq.py | Github Open Source | Open Source | MIT | null | dashvend | davidmak2709 | Python | Code | 112 | 510 | import zmq
import binascii
import struct
from bitcoinrpc.authproxy import JSONRPCException
class DashZMQ(object):
def __init__(self, dashrpc, mainnet=False, host="tcp://127.0.0.1", port=10001):
self.host = host
self.port = port
self.dashrpc = dashrpc
def connect(self):
self.z... | 14,178 |
https://github.com/majidzeno/majidzeno.github.io/blob/master/src/components/header.tsx | Github Open Source | Open Source | RSA-MD | null | majidzeno.github.io | majidzeno | TypeScript | Code | 193 | 622 | import { Link } from "gatsby"
import React from "react"
import styled from "styled-components/macro"
import Image from "./image"
import colors from "./colors"
const Header = ({ location }: { location: string }) => {
return (
<HeaderWrapper>
<HeaderLeft>
<Link to="/">
<StyledImage>
... | 54,008 |
https://github.com/likedeke/Netty-Rpc-Demo/blob/master/rpc-server/src/main/java/cn/like/netty/rpc/server/handler/NettyServerHandler.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Netty-Rpc-Demo | likedeke | Java | Code | 96 | 397 | package cn.like.netty.rpc.server.handler;
import cn.like.netty.common.channel.NettyChannelManager;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Au... | 22,001 |
https://github.com/glottologist/bitte/blob/master/overlay.nix | Github Open Source | Open Source | Apache-2.0 | 2,021 | bitte | glottologist | null | Spoken | 932 | 3,640 | inputs:
let
inherit (inputs) nixpkgs ops-lib nixpkgs-terraform;
inherit (builtins) attrValues fromJSON toJSON trace mapAttrs genList foldl';
inherit (nixpkgs) lib;
in final: prev: {
nix = inputs.nix.packages.x86_64-linux.nix;
nixFlakes = final.nix;
nixUnstable = final.nix;
hydra-unstable = prev.hydra-uns... | 52,412 |
https://github.com/ManuchehrM/page-changes.dev/blob/master/models/Page.php | Github Open Source | Open Source | BSD-3-Clause | null | page-changes.dev | ManuchehrM | PHP | Code | 292 | 984 | <?php
namespace app\models;
use Yii;
use yii\behaviors\TimestampBehavior;
use yii\db\Expression;
/**
* This is the model class for table "page".
*
* @property int $id
* @property string $name
* @property string|null $description
* @property string|null $preview
* @property string|null $content
* @property st... | 10,616 |
https://github.com/ElManuGit/GestionLibros/blob/master/resources/views/admin/clientes/formularios/update.blade.php | Github Open Source | Open Source | MIT | null | GestionLibros | ElManuGit | PHP | Code | 111 | 581 | <div class="modal fade" id="modal-update">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span></button>
... | 37,123 |
https://github.com/adaex/coa-redis/blob/master/src/cron/CronTime.ts | Github Open Source | Open Source | MIT | 2,021 | coa-redis | adaex | TypeScript | Code | 282 | 1,027 | import { CoaError } from 'coa-error'
import { CoaRedis } from '../typings'
const name_map = ['second', 'minute', 'hour', 'date', 'month', 'day']
const range_map = [
[0, 59],
[0, 59],
[0, 23],
[1, 31],
[0, 11],
[0, 6],
]
interface CronTimeFiedlds {
second: CoaRedis.Dic<boolean>
minute: CoaRedis.Dic<boo... | 16,293 |
https://github.com/fahiq/mabsdevelopment/blob/master/js/custom.js | Github Open Source | Open Source | MIT | 2,017 | mabsdevelopment | fahiq | JavaScript | Code | 8 | 44 | $(document).ready(function(){
$('#viewMenu').on('click', function() {
$('.navbar').slideToggle(1000, 'swing');
});
}); | 34,148 |
https://github.com/theLongLab/mkTWAS/blob/master/src/mixedmodel/RootSearchEmmadeltaMLdLLwoZ.java | Github Open Source | Open Source | Unlicense, MIT | null | mkTWAS | theLongLab | Java | Code | 198 | 645 | package mixedmodel;
import flanagan.roots.RealRootDerivFunction;
import flanagan.roots.RealRootFunction;
public class RootSearchEmmadeltaMLdLLwoZ implements RealRootFunction {
// private double a = 1.0D; // sample code from flanagan
// private double b = 2.0D; // sample code from flanagan
privat... | 47,130 |
https://github.com/wahbaio/full-immersion/blob/master/Javascript/RGB/rgb.js | Github Open Source | Open Source | MIT | null | full-immersion | wahbaio | JavaScript | Code | 10 | 39 | var events = document.querySelectorAll("code a");
var tables = document.querySelectorAll("table");
console.log(events.length-tables.length);
| 8,350 |
https://github.com/janbernloehr/2008-04-18-CampusLaunchTour/blob/master/CampusLaunch.Ajax/services/eBooksService.asmx | Github Open Source | Open Source | MIT | 2,017 | 2008-04-18-CampusLaunchTour | janbernloehr | null | Spoken | 6 | 41 | <%@ WebService Language="VB" Class="eBooksService" CodeBehind="~/App_Code/eBooksService.vb %>
| 47,520 |
https://github.com/stas-vilchik/bdd-ml/blob/master/data/10643.js | Github Open Source | Open Source | MIT | null | bdd-ml | stas-vilchik | JavaScript | Code | 45 | 167 | {
var e = this;
(e._uid = to++),
(e._isVue = !0),
t && t._isComponent
? ye(e, t)
: (e.$options = z(_e(e.constructor), t || {}, e)),
(e._renderProxy = e),
(e._self = e),
Ct(e),
vt(e),
me(e),
Ot(e, "beforeCreate"),
Gt(e),
Nt(e),
Kt(e),
Ot(e, "created"),
... | 54,526 |
https://github.com/unwashed-and-dazed/visallo/blob/master/core/plugins/model-simpleorm/src/main/java/org/visallo/core/model/thumbnails/SimpleOrmThumbnailRepository.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | visallo | unwashed-and-dazed | Java | Code | 122 | 527 | package org.visallo.core.model.thumbnails;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.v5analytics.simpleorm.SimpleOrmSession;
import org.vertexium.Vertex;
import org.visallo.core.model.ontology.OntologyRepository;
import org.visallo.core.simpleorm.SimpleOrmContextProvider;
import o... | 9,673 |
https://github.com/karthikchary/pure/blob/master/Gruntfile.js | Github Open Source | Open Source | MIT | 2,021 | pure | karthikchary | JavaScript | Code | 293 | 1,272 | 'use strict';
module.exports = function (grunt) {
var chalk = require('chalk');
var pkg = {
'grunt': null,
msg: function (msg) {
console.log(chalk.bgWhite(chalk.red('## ') + chalk.black('Pure Angular Advanced Searchbox') +
chalk.red(' ## ') + chalk.black(msg)));
return this;
... | 11,660 |
https://github.com/younggeeks/twentyKitonga/blob/master/public/assets/css/beyond-less/validator.less | Github Open Source | Open Source | MIT | 2,021 | twentyKitonga | younggeeks | Less | Code | 28 | 91 | /*#region Bootstrap Validator*/
.bv-form .help-block {
margin-bottom: 0;
}
.nav-tabs li.bv-tab-success > a {
color: @success;
}
.nav-tabs li.bv-tab-error > a {
color: @danger;
}
/*#endregion Bootstrap Validator*/ | 53,035 |
https://github.com/ADN-DevTech/3dsMax-Python-HowTos/blob/master/src/packages/mxs2py/mxsshim.py | Github Open Source | Open Source | MIT | 2,023 | 3dsMax-Python-HowTos | ADN-DevTech | Python | Code | 517 | 1,670 | """
This file provides a python implementation for maxscript syntactic elements.
Note: maxscript has many syntactic elements that have not python equivalent,
the workarounds provided here build a maxscript string from a python construct
and then evaluate the maxscript.
Remark: this is very incomplete and buggy (the tr... | 13,684 |
https://github.com/suniacamp/sunia-backend/blob/master/.gitattributes | Github Open Source | Open Source | MIT | 2,020 | sunia-backend | suniacamp | null | Spoken | 18 | 31 | # Auto detect text files and perform LF normalization
* text=auto
# Don't attempt to merge
package-lock.json -diff | 36,300 |
https://github.com/ivitan/LearnPython/blob/master/Crawl/Code/Sklearn/Sklearn_Image.py | Github Open Source | Open Source | MIT | 2,020 | LearnPython | ivitan | Python | Code | 36 | 141 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 18-11-12 09:10
# @Author : Vitan
from sklearn.datasets import load_sample_image
from matplotlib import pyplot as plt
ChinaImage = load_sample_image('china.jpg')
print(ChinaImage)
plt.imshow(ChinaImage)
plt.show()
plt.imshow(ChinaImage[:,:,1])
plt.show()
p... | 43,631 |
https://github.com/JhonnyJason/prepare-machine-thingy-deployment-sources/blob/master/source/utilmodule/utilmodule.coffee | Github Open Source | Open Source | Unlicense | null | prepare-machine-thingy-deployment-sources | JhonnyJason | CoffeeScript | Code | 209 | 581 | utilmodule = {name: "utilmodule"}
#region noode_modules
execFile = require('child_process').execFile
exec = require("child_process").exec
keygen = require("ssh-keygen")
#endregion
#log Switch
log = (arg) ->
if allModules.debugmodule.modulesToDebug["utilmodule"]? then console.log "[utilmodule]: " + arg
retur... | 4,632 |
https://github.com/selvaraj-kuppusamy/Docker/blob/master/Data Structures and Algorithms/Sorting Algorithms/Selection Sort/Selection_Sort.cpp | Github Open Source | Open Source | MIT | null | Docker | selvaraj-kuppusamy | C++ | Code | 74 | 340 | /*
Algorithm:Selection Sort
Time:O(n²)
Space:O(1)
Author:Selvaraj Kuppusamy, github/selvaraj-kuppusamy
*/
#include<iostream>
using namespace std;
void swap(int &a,int &b)
{
int temp;
temp=a;
a=b;
b=temp;
}
void display(int *array,int size)
{
for(int i=0;i<size;i++)
{
cout<<array[i]<<" ";
}
cout<<endl;
}
void... | 27,998 |
https://github.com/rt20/jagadinas/blob/master/app/Http/Controllers/DashboardController.php | Github Open Source | Open Source | MIT | null | jagadinas | rt20 | PHP | Code | 30 | 104 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Borrow;
use App\Models\Schedule;
class DashboardController extends Controller
{
public function index()
{
$schedule = Schedule::count();
return view ('dashboard',[
'schedule' =>... | 2,059 |
https://github.com/rossabaker/http4s/blob/master/blaze-client/src/test/scala/org/http4s/blaze/client/BlazeClientSuite.scala | Github Open Source | Open Source | Apache-2.0, MIT-0, MIT, CC-BY-3.0, BSD-3-Clause | null | http4s | rossabaker | Scala | Code | 967 | 3,048 | /*
* Copyright 2014 http4s.org
*
* 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 i... | 13,054 |
https://github.com/whaler/whaler/blob/master/modules/list/cmd.js | Github Open Source | Open Source | MIT | 2,021 | whaler | whaler | JavaScript | Code | 140 | 396 | 'use strict';
const chalk = require('chalk');
const pkg = require('./package.json');
module.exports = cmd;
async function cmd (whaler) {
(await whaler.fetch('cli')).default
.command(pkg.name)
.description(pkg.description)
.option('-f, --format <FORMAT>', 'The output format (txt or json)... | 34,797 |
https://github.com/branimirv/ourdogs/blob/master/wordpress/wp-content/themes/ourdogs/assets/scripts/select/index.js | Github Open Source | Open Source | MIT | null | ourdogs | branimirv | JavaScript | Code | 14 | 45 | import $ from "jquery";
import selectric from "selectric";
$("select").selectric({
disableOnMobile: false,
nativeOnMobile: false,
});
| 46,449 |
https://github.com/AndrewPHunter/readable/blob/master/frontend/src/components/controls/ReadPostPage/PostCommentPage.js | Github Open Source | Open Source | MIT | null | readable | AndrewPHunter | JavaScript | Code | 159 | 850 | import React from 'react';
import PropTypes from 'prop-types';
import {ExpansionList, ExpansionPanel} from 'react-md/lib/ExpansionPanels';
import {FontIcon} from 'react-md/lib/FontIcons';
import {Button} from 'react-md/lib/Buttons';
import './postCommentPage.css';
const Footer = ({onAddComment})=>(
<div className=... | 502 |
https://github.com/jbester/franklin/blob/master/franklin/__init__.py | Github Open Source | Open Source | BSD-2-Clause | 2,011 | franklin | jbester | Python | Code | 4 | 14 | from SMTPDispatcher import SMTPDispatcher
| 19,756 |
https://github.com/zhangxhbeta/express-admin/blob/master/test/fixtures/samples/db/schema-1.sql | Github Open Source | Open Source | MIT | null | express-admin | zhangxhbeta | SQL | Code | 1,618 | 5,722 | SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Table `notes`
-- ---------------------------------------... | 14,600 |
https://github.com/krixsoft/krix-resource-store/blob/master/src/shared/index.ts | Github Open Source | Open Source | MIT | null | krix-resource-store | krixsoft | TypeScript | Code | 18 | 33 | export * as Enums from './enums';
export * as Interfaces from './interfaces';
export { Helper } from './helper';
| 15,415 |
https://github.com/luelher/exproaqua/blob/master/exproaqua/lib/model/doctrine/sfPremiumPlugin/PlanpagoTable.class.php | Github Open Source | Open Source | MIT | 2,010 | exproaqua | luelher | PHP | Code | 7 | 22 | <?php
class PlanpagoTable extends PluginPlanpagoTable
{
}
| 1,281 |
https://github.com/domoticz/domoticz-xamarin/blob/master/NL.HNOGames.Domoticz/NL.HNOGames.Domoticz/ViewModels/CameraViewModel.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | domoticz-xamarin | domoticz | C# | Code | 183 | 615 | using NL.HNOGames.Domoticz.Helpers;
using NL.HNOGames.Domoticz.Models;
using NL.HNOGames.Domoticz.Resources;
using NL.HNOGames.Domoticz.Views;
using System;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace NL.HNOGames.Domoticz.ViewModels
{
/// <summary>
/// Defines the <see cref="CameraViewModel" ... | 14,678 |
https://github.com/opang01/Sistem-Manajemen-PKL-Siswa/blob/master/modul/profil.php | Github Open Source | Open Source | MIT | null | Sistem-Manajemen-PKL-Siswa | opang01 | PHP | Code | 56 | 256 | <div class="content-wrapper">
<!-- Content Header (Page header) -->
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="?module=home">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">Profil Sistem</li>
... | 25,507 |
https://github.com/toeb/cpp.core/blob/master/core/includes/core/preprocessor/Namespace.h | Github Open Source | Open Source | MIT | 2,017 | cpp.core | toeb | C | Code | 42 | 276 | #pragma once
#include <core/preprocessor/Reduce.h>
#define DS_NAMESPACE_PREPEND_NAMESPACE(X) namespace X {
#define DS_NAMESPACE_APPEND_NAMESPACE(X) }
#define DS_NAMESPACE_BEGIN(...) DS_REDUCE(DS_NAMESPACE_PREPEND_NAMESPACE, , __VA_ARGS__)
#define DS_NAMESPACE_END(...) DS_REDUCE(DS_NAMESPACE_APPEND_NAMESPACE, ,__VA_ARG... | 23,657 |
https://github.com/SimonAndro/usac-website/blob/master/assets/less/themeinfo.less | Github Open Source | Open Source | MIT | null | usac-website | SimonAndro | Less | Code | 21 | 71 | /*------------------------------------------------------------------
[Master Stylesheet]
Project Name: UniAlumni - University Alumni Html Template
Version: 1.0.0
Author: Codeboxr
Website: http://codeboxr.com
Last Update: 03.06.2018
-------------------------------------------------------------------*/
| 53,180 |
https://github.com/nzeh/syzygy/blob/master/syzygy/agent/asan/heap_checker.cc | Github Open Source | Open Source | Apache-2.0 | 2,021 | syzygy | nzeh | C++ | Code | 395 | 1,182 | // Copyright 2014 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 28,722 |
https://github.com/AmdRyZen/drogon-http/blob/master/CrossCompile.cmake | Github Open Source | Open Source | MIT | 2,022 | drogon-http | AmdRyZen | CMake | Code | 4 | 29 | set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR x86) | 35,282 |
https://github.com/MrLiuFang/pepper/blob/master/pepper-core/src/main/java/com/pepper/core/dubbo/TraceContext.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | pepper | MrLiuFang | Java | Code | 77 | 252 | package com.pepper.core.dubbo;
/**
* 调用链上下文,用户追踪dubbo server调用追踪
*
* @author mrliu
*
*/
public class TraceContext {
private static ThreadLocal<String> _traceId = new InheritableThreadLocal<String>();
private static ThreadLocal<String> _domain = new InheritableThreadLocal<String>();
public static String... | 53,553 |
https://github.com/larilampen/set-mifs/blob/master/src/probs.m | Github Open Source | Open Source | CC0-1.0 | 2,015 | set-mifs | larilampen | MATLAB | Code | 34 | 113 | function [prob] = probs(feat)
% Compute probability density of binned feature vector.
% Returns vector of probabilities, for bins 0,1,...
bins=max(feat)+1;
prob=zeros(1,bins);
for k=1:length(feat)
f_cur=feat(k)+1;
prob(f_cur) = prob(f_cur)+1;
end
prob = prob ./ sum(prob);
| 39,381 |
https://github.com/abysmalocean/opencv/blob/master/modules/contrib/CMakeFiles/opencv_test_contrib_pch_dephelp.dir/cmake_clean.cmake | Github Open Source | Open Source | BSD-3-Clause | null | opencv | abysmalocean | CMake | Code | 18 | 182 | file(REMOVE_RECURSE
"opencv_test_contrib_pch_dephelp.cxx"
"CMakeFiles/opencv_test_contrib_pch_dephelp.dir/opencv_test_contrib_pch_dephelp.cxx.o"
"../../lib/libopencv_test_contrib_pch_dephelp.pdb"
"../../lib/libopencv_test_contrib_pch_dephelp.a"
)
# Per-language clean rules from dependency scanning.
foreach(lan... | 3,320 |
https://github.com/srisankethu/opengift.io/blob/master/tests/bugs/__init__.robot | Github Open Source | Open Source | Apache-2.0 | 2,020 | opengift.io | srisankethu | null | Spoken | 19 | 46 | *** Settings ***
Library Selenium2Library
Library Process
Resource ../gl_resource.robot
Suite Setup Authorized user has project
Suite Teardown Logout user
| 24,611 |
https://github.com/cdnjs/cdnjs/blob/master/ajax/libs/tsparticles/1.12.7/Classes/Utils/Presets.js | Github Open Source | Open Source | MIT | 2,023 | cdnjs | cdnjs | JavaScript | Code | 26 | 90 | export class Presets {
static getPreset(preset) {
return this.presets[preset];
}
static addPreset(presetKey, options) {
if (!this.presets[presetKey]) {
this.presets[presetKey] = options;
}
}
}
Presets.presets = {};
| 3,531 |
https://github.com/vgomonets/agriculture/blob/master/resources/views/contractor/family.blade.php | Github Open Source | Open Source | MIT | null | agriculture | vgomonets | PHP | Code | 112 | 613 | <h1>Семья</h1>
<section class="box-typical">
<div id="contractorFamilyToolbar">
<a href="#" class="btn btn-rounded btn-inline btn-primary js-contractor-family-add">Добавить <span class="glyphicon glyphicon-plus"></span></a>
</div>
<table id="contractorFamilyTable"
class="table table-strip... | 50,869 |
https://github.com/crspybits/WhatDidILike/blob/master/Code/Features/Main List/MainListVC.swift | Github Open Source | Open Source | MIT | null | WhatDidILike | crspybits | Swift | Code | 999 | 3,011 | //
// MainListVC.swift
// WhatDidILike
//
// Created by Christopher G Prince on 8/21/17.
// Copyright © 2017 Spastic Muffin, LLC. All rights reserved.
//
import UIKit
import SMCoreLib
import M13ProgressSuite
import Presentr
class MainListVC: UIViewController {
private static let converted = SMPersistItemBool(... | 7,915 |
https://github.com/ng-abq/ng-abq/blob/master/app/classes/profile.ts | Github Open Source | Open Source | Apache-2.0 | 2,016 | ng-abq | ng-abq | TypeScript | Code | 33 | 74 | export class Profile {
constructor(public profileId: number, public profileAdmin: number, public profileNameFirst: string, public profileNameLast: string, public profileEmail: string, public profileUserName: string, public profileSalt: string, public profileHash: string, public profileActivationToken: string) {}
}
| 30,278 |
https://github.com/Ushaka/tac-toe-glow/blob/master/Assets/Standard Assets/Terrain Assets/Terrain Grass/Materials/Grass.mat.meta | Github Open Source | Open Source | MIT | 2,014 | tac-toe-glow | Ushaka | Unity3D Asset | Code | 6 | 40 | fileFormatVersion: 2
guid: 975fdd5c39f2963449d0b49158767911
NativeFormatImporter:
userData:
| 6,272 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.