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/jonakmex/agaveazul/blob/master/resources/views/_include/nav.blade.php | Github Open Source | Open Source | MIT | 2,023 | agaveazul | jonakmex | Blade | Code | 78 | 409 | <nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="{{route('home')}}">{{ Auth::user()->name }}</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-... | 14,431 |
https://github.com/jmmk/ConnectFour/blob/master/src/ConnectFour/Engine.fs | Github Open Source | Open Source | MIT | 2,016 | ConnectFour | jmmk | null | Spoken | 824 | 1,677 | namespace ConnectFour
module Engine =
open ConnectFour.Result
open Fable.Import.long
open Fable.Import.mori
type Color =
| Black
| Red
| Empty
/// Single column of the board
/// Pieces can be "dropped" into the column, filling it from the "bottom" up
type... | 19,973 |
https://github.com/scrileyy/django-taiwan-einvoice/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,021 | django-taiwan-einvoice | scrileyy | Ignore List | Code | 4 | 22 | .vscode/
docs/_build
.py3env/
*.pyc
| 40,417 |
https://github.com/1024pix/steampipe-plugin-github/blob/master/github/table_github_stargazer.go | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-free-unknown, LicenseRef-scancode-proprietary-license | 2,021 | steampipe-plugin-github | 1024pix | Go | Code | 284 | 1,008 | package github
import (
"context"
"github.com/google/go-github/v33/github"
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/plugin"
"github.com/turbot/steampipe-plugin-sdk/plugin/transform"
)
//// TABLE DEFINITION
func tableGitHubStargazer(ctx context.Context) *plugi... | 24,619 |
https://github.com/nickgra/VFSForGit/blob/master/GVFS/GVFS.Platform.Windows/ETWTelemetryEventListener.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,018 | VFSForGit | nickgra | C# | Code | 445 | 1,228 | using GVFS.Common;
using GVFS.Common.Git;
using GVFS.Common.Tracing;
using Microsoft.Diagnostics.Tracing;
using System;
using EventLevel = GVFS.Common.Tracing.EventLevel;
using EventOpcode = GVFS.Common.Tracing.EventOpcode;
namespace GVFS.Platform.Windows
{
/// <summary>
/// This class implements optional log... | 43,057 |
https://github.com/Zeshar/surgeactivity.com/blob/master/app/cache/de_/twig/eb/eb75c4d1637452741c3c87d220e390291e65597e5ca023559acf2bd94d32f425.php | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,018 | surgeactivity.com | Zeshar | PHP | Code | 658 | 3,024 | <?php
/* ZesharCRMCoreBundle:CRUD/DisplayPartial:lead_opportunity_show_entity_details.html.twig */
class __TwigTemplate_a771e75e674c962dd64b8fb1fb27e6d2d6bcc111359a69288966c7b1ba1b1b7a extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this... | 27,513 |
https://github.com/ly774508966/xrtc/blob/master/XRTCDemo_iOS/XrtcDemo/XrtcViewController.h | Github Open Source | Open Source | MIT | 2,021 | xrtc | ly774508966 | Objective-C | Code | 100 | 389 | //
// LoginViewController.h
// xrtc
//
// Created by xrtc on 21-07-10.
// Copyright 2021 xrtc. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <XrtcSDK/XRTCEngine.h>
@interface XrtcViewController : UIViewController <XRTCEngineDelegate>
@property (nonatomic, strong) IBOutlet UIView *_viewOperate;
@proper... | 33,738 |
https://github.com/BuildingBridge/biznet/blob/master/bitrix/modules/fileman/install/version.php | Github Open Source | Open Source | Unlicense | null | biznet | BuildingBridge | PHP | Code | 13 | 47 | <?
$arModuleVersion = array(
"VERSION" => "18.5.500",
"VERSION_DATE" => "2019-09-17 12:00:00"
);
?> | 26,433 |
https://github.com/hofstadter-io/hof/blob/master/docs/code/first-example/web-client/content/gen/resource-web.cue | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause | 2,023 | hof | hofstadter-io | null | Spoken | 61 | 209 | // Generator definition
#Generator: gen.#Generator & {
// Define the resource Files
ResourceFiles: [...gen.#File] & [
// REST handlers, as before
// HTML content
for _, R in In.Resources {
In: {
RESOURCE: R
}
TemplatePath: "resource.html"
Filepath: "\(Outdir)/client/\(strings.ToLower(In.R... | 17,142 |
https://github.com/GalyaIT/Dental-Studio/blob/master/Web/DentalStudio.Web.ViewModels/Patients/PatientAppointmentCreateModel.cs | Github Open Source | Open Source | MIT | null | Dental-Studio | GalyaIT | C# | Code | 88 | 302 | namespace DentalStudio.Web.ViewModels.Patients
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using DentalStudio.Services.Mapping;
using DentalStudio.Services.Models;
using DentalStudio.Web.ViewModels.Medicine.Procedures;
public class Patien... | 16,010 |
https://github.com/vhraa/RBLX-Catalog-Bot/blob/master/main.py | Github Open Source | Open Source | MIT | 2,021 | RBLX-Catalog-Bot | vhraa | Python | Code | 531 | 1,413 | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from bs4 import BeautifulSoup as bs
from tqdm import tqdm
from urllib.parse import urljoin
import urllib.request
import time
import requests
import json
import re
import urllib3
## declare libraries
## Made by Calastrophe#5752 // gith... | 23,822 |
https://github.com/known/Known/blob/master/WebSite/Docus/Nav/Tabses/Tabs3.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | Known | known | C# | Code | 67 | 203 | namespace WebSite.Docus.Nav.Tabses;
class Tabs3 : BaseComponent
{
private readonly List<MenuItem> tabItems = new()
{
new MenuItem { Icon = "fa fa-file-o", Name = "Tab1" },
new MenuItem { Icon = "fa fa-file-o", Name = "Tab2" }
};
protected override void BuildRenderTree(RenderTreeBuilde... | 27,132 |
https://github.com/psfund/fund/blob/master/lib/middleware/index.js | Github Open Source | Open Source | MIT | 2,021 | fund | psfund | JavaScript | Code | 20 | 58 | import nextConnect from 'next-connect'
import db from './dbMiddleware'
import cors from './corsMiddleware'
const middleware = nextConnect()
middleware.use(cors).use(db)
export default middleware | 8,947 |
https://github.com/Aginix/mui-react-table/blob/master/.storybook/config.js | Github Open Source | Open Source | MIT | 2,021 | mui-react-table | Aginix | JavaScript | Code | 63 | 206 | import React from 'react';
import { addDecorator } from '@storybook/react';
import { CssBaseline } from '@material-ui/core';
import { useDarkMode } from 'storybook-dark-mode';
import { createMuiTheme, ThemeProvider } from '@material-ui/core/styles';
addDecorator((story) => {
const prefersDarkMode = useDarkMode();
... | 9,416 |
https://github.com/nbrys/aws-doc-sdk-examples/blob/master/javav2/example_code/athena/src/main/java/aws/example/athena/CreateNamedQueryExample.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | aws-doc-sdk-examples | nbrys | Java | Code | 105 | 456 | //snippet-sourcedescription:[CreateNamedQueryExample.java demonstrates how to create a named query]
//snippet-keyword:[Java]
//snippet-keyword:[Code Sample]
//snippet-keyword:[Amazon Athena]
//snippet-service:[athena]
//snippet-sourcetype:[full-example]
//snippet-sourcedate:[2019-04-15]
//snippet-sourceauthor:[jschwarz... | 21,614 |
https://github.com/xrysanthopoulos/HOme/blob/master/app.py | Github Open Source | Open Source | MIT | 2,019 | HOme | xrysanthopoulos | Python | Code | 194 | 670 | from flask import Flask
from flask import jsonify
from flask import request
from bson.json_util import dumps
import pymongo
from flask_cors import CORS
app = Flask(__name__)
cors = CORS(app, resources={r"/*": {"origins": "*"}})
myclient = pymongo.MongoClient("mongodb://localhost:27017/")
mydb = myclient["lampdb"]
pl... | 8,786 |
https://github.com/ScottoMotto/SchopCraft/blob/master/src/main/java/schoperation/schopcraft/cap/ghost/Ghost.java | Github Open Source | Open Source | MIT | 2,018 | SchopCraft | ScottoMotto | Java | Code | 167 | 538 | package schoperation.schopcraft.cap.ghost;
public class Ghost implements IGhost {
// Create ghost variables.
private boolean isGhost = false;
private float ghostEnergy = 0.00f;
private float maxGhostEnergy = 100.00f;
private float minGhostEnergy = 0.00f;
// Methods for messing with ghost status or getting it... | 2,259 |
https://github.com/andriitishchenko/UIAlertControlleriOS7/blob/master/Source/UIAlertViewController.h | Github Open Source | Open Source | MIT | null | UIAlertControlleriOS7 | andriitishchenko | C | Code | 210 | 942 | //
// UIAlertViewController.h
//
//
// Created by Andrii Tishchenko on 13.08.15.
// Copyright (c) 2015 ignite. All rights reserved.
/*
UIAlertViewControllerStyleActionSheet NOT WORKS!!
TEXTFIELDS NOT WORKS!!
NOTHING WORKS!!
How to use:
========================
1 register class:
====================... | 46,267 |
https://github.com/ComputerSocietyVITC/Paradox-2021/blob/master/client/src/Reducers/ActionTypes.js | Github Open Source | Open Source | MIT | 2,021 | Paradox-2021 | ComputerSocietyVITC | JavaScript | Code | 26 | 68 | const SETUSER = 'SETUSER'
const REMOVEUSER = 'REMOVEUSER'
const SETADMIN = 'SETADMIN'
const REMOVEADMIN = 'REMOVEADMIN'
export default {}
export { SETUSER, REMOVEUSER, SETADMIN, REMOVEADMIN } | 43,528 |
https://github.com/gibatronic/nostalgia/blob/master/tasks/scripts | Github Open Source | Open Source | MIT | 2,018 | nostalgia | gibatronic | Shell | Code | 20 | 113 | #!/usr/bin/env bash
main() {
local input='client/scripts/main.js'
local output='public/scripts/main.js'
local options=(
"--devtool=source-map"
"--entry=./$input"
"--mode=production"
"--output=./$output"
)
npx webpack "${options[@]}"
}
main
| 16,522 |
https://github.com/jnthn/intellij-community/blob/master/platform/util/src/com/intellij/util/keyFMap/MapBackedFMap.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | intellij-community | jnthn | Java | Code | 480 | 1,327 | /*
* Copyright 2000-2012 JetBrains s.r.o.
*
* 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 agre... | 23,755 |
https://github.com/tiny-pilot/tinypilot/blob/master/app/db_connection.py | Github Open Source | Open Source | BSD-3-Clause, Python-2.0, MIT | 2,023 | tinypilot | tiny-pilot | Python | Code | 79 | 251 | import flask
import db.store
import env
_DB_PATH = env.abs_path_in_home_dir('tinypilot.db')
def get():
"""Returns a database connection. (sqlite3.dbapi2.connection)"""
# Keep in mind that Flask only caches the connection object on a per-request
# basis, and not throughout the entire runtime of the serve... | 41,146 |
https://github.com/SolomonRosemite/Unity-FutureCube/blob/master/FutureCube/Assets/Scene/Modes/Adventure Mode/LVLs/Reverse/Level05.unity | Github Open Source | Open Source | MIT | 2,021 | Unity-FutureCube | SolomonRosemite | Unity3D Asset | Code | 20,000 | 84,944 | %YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!29 &1 OcclusionCullingSettings: m_ObjectHideFlags: 0 serializedVersion: 2 m_OcclusionBakeSettings: smallestOccluder: 5 smallestHole: 0.25 backfaceThreshold: 100 m_SceneGUID: 00000000000000000000000000000000 m_OcclusionCullingData: {fileID: 0} --- !u!104 &2 RenderSettings:... | 12,143 |
https://github.com/prboyer/psvault/blob/master/Utilities/Disable-VPN.ps1 | Github Open Source | Open Source | MIT | 2,021 | psvault | prboyer | PowerShell | Code | 263 | 668 | function Disable-VPN {
<#
.SYNOPSIS
Disables a VPN connection given the appropriate environmental criteria is met.
.DESCRIPTION
Checks if the PC is connected to Ethernet, and if the IP address is on the right LAN. If both conditions are met, the VPN is disabled (optionally Wi-Fi turned off ... | 18,910 |
https://github.com/sealuzh/termite-replication/blob/master/tests/generations/qmosa/tests/s1019/110_firebird/evosuite-tests/org/firebirdsql/jdbc/FBProcedureCall_ESTest.java | Github Open Source | Open Source | MIT | null | termite-replication | sealuzh | Java | Code | 4,497 | 19,916 | /*
* This file was automatically generated by EvoSuite
* Wed Nov 11 14:38:02 GMT 2020
*/
package org.firebirdsql.jdbc;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.util.List;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runti... | 4,293 |
https://github.com/monocodus-demonstrations/flowbetween/blob/master/animation/src/editor/stream_layer_cache.rs | Github Open Source | Open Source | Apache-2.0 | null | flowbetween | monocodus-demonstrations | Rust | Code | 543 | 1,566 | use super::stream_animation_core::*;
use crate::storage::storage_api::*;
use crate::traits::*;
use flo_canvas::*;
use flo_stream::*;
use ::desync::*;
use futures::prelude::*;
use futures::future::{BoxFuture};
use std::sync::*;
use std::time::{Duration};
///
/// Layer cache for the stream animation
///
pub struct St... | 33,390 |
https://github.com/yangbingqi155/Nagrace/blob/master/src/Orchard.Web/Modules/Magelia.WebStore/Controllers/ContextController.cs | Github Open Source | Open Source | BSD-3-Clause | null | Nagrace | yangbingqi155 | C# | Code | 170 | 761 | using Magelia.WebStore.Contracts;
using Magelia.WebStore.Extensions;
using Magelia.WebStore.MVC;
using Magelia.WebStore.Services.Contract.Parameters.Store;
using Orchard;
using Orchard.ContentManagement;
using Orchard.Mvc;
using System;
using System.Globalization;
using System.Linq;
using System.Web.Mvc;
namespace Ma... | 33,917 |
https://github.com/TestBigOrg/mapbox-gl-native/blob/master/src/mbgl/style/layers/symbol_layer_impl.cpp | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, IJG, Zlib, NCSA, LicenseRef-scancode-unknown-license-reference, blessing, BSD-3-Clause, ISC, Libpng, BSL-1.0, Apache-2.0, BSD-2-Clause, LicenseRef-scancode-openssl, LicenseRef-scancode-ssleay-windows, JSON, curl, OpenSSL, MIT | 2,017 | mapbox-gl-native | TestBigOrg | C++ | Code | 220 | 1,209 | #include <mbgl/style/layers/symbol_layer_impl.hpp>
#include <mbgl/style/property_evaluation_parameters.hpp>
#include <mbgl/layout/symbol_layout.hpp>
#include <mbgl/renderer/bucket.hpp>
namespace mbgl {
namespace style {
void SymbolLayer::Impl::cascade(const CascadeParameters& parameters) {
paint.cascade(parameter... | 9,989 |
https://github.com/slavaykt/stopzaim/blob/master/resources/js/components/views/ContractIndex.js | Github Open Source | Open Source | MIT | null | stopzaim | slavaykt | JavaScript | Code | 537 | 1,744 | import React, { useContext, useEffect } from 'react';
import { useDateFormat } from '../../hooks/date.format.hook';
import { TabContext } from '../context';
import VirtualIndexTable from './VirtualIndexTable';
import { useDispatch, useSelector } from 'react-redux';
import { addTab, deleteRow, loadData } from '../../red... | 14,775 |
https://github.com/eju1/components-theme/blob/master/setup/Scripts.php | Github Open Source | Open Source | MIT | null | components-theme | eju1 | PHP | Code | 120 | 568 | <?php
namespace Setup;
class Scripts
{
/**
* Initialization
* This method should be run from functions.php
*/
public static function init()
{
add_action( 'wp_enqueue_scripts', array(__CLASS__, 'enqueue') );
}
public static function enqueue(){
// Deregister WP jQuery
... | 32,292 |
https://github.com/sadewoeko/pahalakita/blob/master/app/Modules/Dashboard/Views/create_buying.blade.php | Github Open Source | Open Source | MIT | null | pahalakita | sadewoeko | PHP | Code | 474 | 2,183 | @extends('dashboard')
@section('content')
<style>
.login-section input {
border: 1px solid #e0d2a2;
margin-bottom: 26px;
}
.login-section select {
background: #fff;
border: 1px solid #e0d2a2;
border-radius: 0;
box-shadow: none;
color: #545454;
font-family: 'Poppins';
font-size: 13px;
font-weight: 600;
h... | 33,913 |
https://github.com/TEITEII/kitties-frontend/blob/master/node_modules/@polkadot/hw-ledger/detectPackage.js | Github Open Source | Open Source | Apache-2.0, Unlicense | 2,021 | kitties-frontend | TEITEII | JavaScript | Code | 42 | 117 | // Copyright 2017-2021 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { packageInfo as transportInfo } from '@polkadot/hw-ledger-transports/packageInfo';
import { detectPackage, packageInfo as utilInfo } from '@polkadot/util';
import { packageInfo } from "./packageInfo.js";
det... | 29,364 |
https://github.com/alejofernandez/unreact/blob/master/test/fixtures/compile/inlining-files/Container.js | Github Open Source | Open Source | MIT | 2,021 | unreact | alejofernandez | JavaScript | Code | 15 | 30 | import React from 'react';
const Container = ({ children }) => <div>{children}</div>;
export default Container;
| 19,788 |
https://github.com/OluSure/Hacktoberfest2021-1/blob/master/Dsa/Recursion/advanceRecursion3.java | Github Open Source | Open Source | MIT | 2,022 | Hacktoberfest2021-1 | OluSure | Java | Code | 40 | 204 | package Ds.Recursion;
public class advanceRecursion3 {
public static void main(String[] args) {
int a[]= {1,5,7,3,2,4};
System.out.println(coinMax(a,0,a.length-1));
}
static int coinMax(int a[],int l,int r) {
if(l+1==r) {
return Math.max(a[l], a[r]);
}
return Math.max(a[l]+ Math.min(coinMax(a,l+2,... | 32,332 |
https://github.com/madiraju/xv6-soln/blob/master/sys/keyboard.c | Github Open Source | Open Source | MIT | 2,017 | xv6-soln | madiraju | C | Code | 928 | 2,502 | #include <sys/sbunix.h>
#include <sys/utility.h>
#include<sys/process.h>
//scan codes for shift key
#define LEFTSHIFTDOWN 0x2a
#define RIGHTSHIFTDOWN 0x36
#define LEFTSHIFTUP 0xaa
#define RIGHTSHIFTUP 0xb6
#define CONTROLDOWN 0x1d
#define CONTROLUP 0x9d
#define ENTERDOWN 0x1c
#define BACKSPACEDOWN 0x0e
#define TABDOWN ... | 30,423 |
https://github.com/06needhamt/intellij-community/blob/master/platform/execution-impl/src/com/intellij/execution/impl/ConsoleBuffer.java | Github Open Source | Open Source | Apache-2.0 | null | intellij-community | 06needhamt | Java | Code | 80 | 266 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.execution.impl;
import com.intellij.ide.ui.UISettings;
import com.intellij.util.SystemProperties;
public final class ConsoleBuffer {
public static boolean... | 10,960 |
https://github.com/danielfarrell/career_builder/blob/master/lib/career_builder/client/request.rb | Github Open Source | Open Source | MIT | null | career_builder | danielfarrell | Ruby | Code | 164 | 640 | module CareerBuilder
class Client
module Request
RESUME_SERVICE_ENDPOINT_URL = 'http://ws.careerbuilder.com/resumes/resumes.asmx'
def auth_request(meth, options = {})
if !authenticated? && !authenticate
raise InvalidCredentials
end
options.merge!(:session_token => ... | 42,364 |
https://github.com/phuongvh/java-design-patterns/blob/master/abstract-factory/src/main/java/com/iluwatar/abstractfactory/Castle.java | Github Open Source | Open Source | MIT | 2,022 | java-design-patterns | phuongvh | Java | Code | 7 | 21 | package com.iluwatar.abstractfactory;
public interface Castle {
}
| 44,096 |
https://github.com/strawhat19/Tutoring-Packages/blob/master/src/components/FullStackDeveloperCourse/fullStackDeveloperProjects.ts | Github Open Source | Open Source | MIT | null | Tutoring-Packages | strawhat19 | TypeScript | Code | 876 | 3,328 | export const fullStackDeveloperProjects = {
level: `Full Stack Developer`,
hourlyRate: 30,
approximateHours: 50,
description: `I record every lesson for you to keep forever, and You can quit whenever. By the end of the last project you will be able to apply to Full Stack or Front End Developer Positions... | 11,487 |
https://github.com/scheinerman/SemiIsomorphism.jl/blob/master/src/tree_iterator.jl | Github Open Source | Open Source | MIT | null | SemiIsomorphism.jl | scheinerman | Julia | Code | 201 | 597 | using SimpleGraphs, ProgressMeter, SemiIsomorphism
struct Trees
n::Int
end
function Base.iterate(T::Trees, state = 0)
N = T.n
NN = Int128(N)^(N - 2)
if state == NN
return nothing
end
code = Int.(digits(state, base = N, pad = N - 2) .+ 1)
G = prufer_restore(code)
name(G, "Tree"... | 30,158 |
https://github.com/GregB76/EU4toVic2/blob/master/EU4toV2/Source/V2World/Output/ModFile.h | Github Open Source | Open Source | MIT | 2,019 | EU4toVic2 | GregB76 | C | Code | 25 | 81 | #ifndef MOD_FILE_H
#define MOD_FILE_H
#include <ostream>
namespace V2
{
class ModFile
{
public:
friend std::ostream& operator<<(std::ostream& output, const ModFile& modFile);
};
}
#endif // MOD_FILE_H
| 50,573 |
https://github.com/back-zone/storage.mongodb/blob/master/Storage.MongoDB/Storage.MongoDB/Service/Interfaces/IMongoDBService.cs | Github Open Source | Open Source | MIT | null | storage.mongodb | back-zone | C# | Code | 15 | 61 | using MongoDB.Driver;
namespace Back.Zone.Storage.MongoDB.Service.Interfaces
{
public interface IMongoDbService
{
public IMongoCollection<TA> GetCollection<TA>(string collectionName);
}
} | 3,943 |
https://github.com/silkimen/browser-polyfill/blob/master/polyfills/matchMedia/detect.js | Github Open Source | Open Source | MIT | 2,019 | browser-polyfill | silkimen | JavaScript | Code | 3 | 8 | 'matchMedia' in this
| 14,207 |
https://github.com/parnic/sqlboiler/blob/master/templates/main/singleton/boil_types.go.tpl | Github Open Source | Open Source | BSD-3-Clause | 2,016 | sqlboiler | parnic | null | Spoken | 1,077 | 2,812 | // M type is for providing columns and column values to UpdateAll.
type M map[string]interface{}
// ErrSyncFail occurs during insert when the record could not be retrieved in
// order to populate default value information. This usually happens when LastInsertId
// fails or there was a primary key configuration that wa... | 19,521 |
https://github.com/sarastokes/SBFSEM-tools/blob/master/util/plots/toggleAxes.m | Github Open Source | Open Source | MIT | 2,023 | SBFSEM-tools | sarastokes | MATLAB | Code | 186 | 508 | function toggleAxes(gObj)
% TOGGLEAXES
%
% Description:
% Toggle axes visibility without removing completely
%
% Syntax:
% toggleAxes(gObj);
%
% Inputs:
% gObj Figure or axes handle
%
% See also:
% HIDEAXES
%
% History:
% 6Jan2018 - SSP
... | 40,702 |
https://github.com/jakefleming/jui/blob/master/scss/modules/_index.scss | Github Open Source | Open Source | MIT, Apache-2.0 | 2,014 | jui | jakefleming | SCSS | Code | 37 | 170 | // ==========================================================================
// Modules Directory
// ==========================================================================
@import
"extends",
"alerts",
"buttons",
"button-action",
"button-groups",
"button-dropdowns",
"button-split",
"cards",
"daterangepicker",
"date... | 16,434 |
https://github.com/overremorto/OverlyComplicatedDataTools/blob/master/OverlyComplicatedDataTools.Tests/Helper/TestOCDTOptions.cs | Github Open Source | Open Source | MIT | null | OverlyComplicatedDataTools | overremorto | C# | Code | 57 | 185 | using OverlyComplicatedDataTools.Core;
using System;
using System.Collections.Generic;
using System.Text;
namespace OverlyComplicatedDataTools.Tests.Helper
{
class TestOCDTOptions : IOCDTOptions
{
private string _connectionString;
public string ConnectionString
{
get
... | 27,369 |
https://github.com/wonderful666/marx-10.1.0/blob/master/kernel/drivers/mfd/hisi_pmic_sim_hpd.h | Github Open Source | Open Source | MIT | null | marx-10.1.0 | wonderful666 | C | Code | 226 | 1,633 | /*
* Copyright (c) Huawei Technologies Co., Ltd. 2019. All rights reserved.
* Description: pmic sim hpd irq process
* Author: Hisilicon
* Create: 2019-11-18
*/
#ifndef _HISI_PMIC_SIM_HPD_H_
#define _HISI_PMIC_SIM_HPD_H_
#include <linux/bitops.h>
#define LDO_DISABLE 0x00
#define LDO_ONOFF_MASK 0x01
#define SIM_E... | 48,129 |
https://github.com/DaniGuardiola/use-slate-with-extensions/blob/master/src/core/types/InsertNode.ts | Github Open Source | Open Source | MIT | 2,021 | use-slate-with-extensions | DaniGuardiola | TypeScript | Code | 48 | 87 | import { Editor, Node } from 'slate';
import { Next } from '../typeHelpers';
/**
* Function called whenever insert node occurs in the editor.
* Use next to call the next insertNode handler.
*/
export type InsertNode = (
node: Node,
editor: Editor,
next: Next<InsertNode>
) => void;
| 18,634 |
https://github.com/FoRTExperiment/ed4forte/blob/master/man/umbs_coords.Rd | Github Open Source | Open Source | MIT | 2,020 | ed4forte | FoRTExperiment | R | Code | 61 | 193 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coordinates.R
\name{umbs_coords}
\alias{umbs_coords}
\alias{umbs_lat}
\alias{umbs_lon}
\title{UMBS coordinates}
\usage{
umbs_coords(digits = 4)
umbs_lat(digits = 4)
umbs_lon(digits = 4)
}
\arguments{
\item{digits}{integer indicating the num... | 51,932 |
https://github.com/corersky/semi-conductor-image-classification-first/blob/master/keras_fn/simple_cnn.py | Github Open Source | Open Source | MIT | 2,020 | semi-conductor-image-classification-first | corersky | Python | Code | 357 | 1,747 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Date : Feb-03-20 23:41
# @Author : Kelly Hwong (dianhuangkan@gmail.com)
import os
import numpy as np
import tensorflow as tf
# import tensorflow.keras as keras
from tensorflow.keras import backend as K
from tensorflow.keras.models import Model
from tensorflow.kera... | 15,429 |
https://github.com/phamkhang0705/webNews/blob/master/webNews/Scripts/ckfinder/Admin/Religion/Religion.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-proprietary-license | 2,019 | webNews | phamkhang0705 | JavaScript | Code | 431 | 1,537 | var Unit = function () {
var base = this;
this.$table = $("#table");
this.$btnOpenSearch = $("#btnOpenSearch");
this.$searchModal = $("#searchModal");
this.$btnSearchSubmit = $("#btnSearchSubmit");
this.$btnOpenAdd = $("#btnOpenAdd");
this.$modalDetail = $("#modalDetails");
base.$boxDet... | 7,439 |
https://github.com/yous/linuxbrew-core/blob/master/Formula/mfterm.rb | Github Open Source | Open Source | BSD-2-Clause | 2,020 | linuxbrew-core | yous | Ruby | Code | 88 | 553 | class Mfterm < Formula
desc "Terminal for working with Mifare Classic 1-4k Tags"
homepage "https://github.com/4ZM/mfterm"
url "https://github.com/4ZM/mfterm/releases/download/v1.0.7/mfterm-1.0.7.tar.gz"
sha256 "b6bb74a7ec1f12314dee42973eb5f458055b66b1b41316ae0c5380292b86b248"
revision 1
bottle do
cella... | 23,214 |
https://github.com/agrebin/taraxa-node/blob/master/src/storage/db_storage.hpp | Github Open Source | Open Source | MIT | null | taraxa-node | agrebin | C++ | Code | 1,378 | 5,600 | #pragma once
#include <rocksdb/db.h>
#include <rocksdb/options.h>
#include <rocksdb/slice.h>
#include <rocksdb/write_batch.h>
#include <filesystem>
#include <functional>
#include <string_view>
#include "common/types.hpp"
#include "consensus/pbft_chain.hpp"
#include "dag/dag_block.hpp"
#include "dag/proposal_period_l... | 40,861 |
https://github.com/zzgchina888/msdn-code-gallery-microsoft/blob/master/Official Windows Platform Sample/Windows 8.1 Store app samples/[JavaScript]-Windows 8.1 Store app samples/SMS message send, receive, and SIM management sample/JavaScript/js/receive-msg.js | Github Open Source | Open Source | MIT | 2,022 | msdn-code-gallery-microsoft | zzgchina888 | JavaScript | Code | 224 | 621 | //// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
//// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
//// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//// PARTICULAR PURPOSE.
////
//// Copyright (c) Microsoft Corporation. All rights reserved
(function () {... | 52,865 |
https://github.com/vladtsf/refilterable/blob/master/src/utils/computeFilterValue.ts | Github Open Source | Open Source | MIT | 2,020 | refilterable | vladtsf | TypeScript | Code | 70 | 148 | import { FilterObject, LocationObserver } from './types';
export default function computeFilterValue(filter: FilterObject<any>, observer: LocationObserver) {
const { parse, validate, defaultValue } = filter;
const { hasParam, paramValue } = observer.getParamInfo(filter.paramName);
// if param isn't present, imm... | 2,742 |
https://github.com/Ardenich/MGWP/blob/master/MGWP - Mobile/MGWP - Mobile/Assets/Tiled2Unity/Meshes/Tes Map/Tes-Map_mesh_0006.obj | Github Open Source | Open Source | MIT | 2,019 | MGWP | Ardenich | Wavefront Object | Code | 344 | 817 | # Tiled2Unity generated file. Do not modify by hand.
# Wavefront file for 'Tes-Map_mesh_0006.obj'
# Vertices (Count = 56)
v -1 -16 0
v -2 -16 0
v -2 -15 0
v -1 -15 0
v 0 -16 0
v -1 -16 0
v -1 -15 0
v 0 -15 0
v -1 -15 0
v -2 -15 0
v -2 -14 0
v -1 -14 0
v 0 -15 0
v -1 -15 0
v -1 -14 0
v 0 -14 0
v -3 -3 0
v -4 -3 0
v -4... | 18,517 |
https://github.com/viduedo/CSharpCoin/blob/master/CSharpCoin/MultiDictionary.cs | Github Open Source | Open Source | MIT | null | CSharpCoin | viduedo | C# | Code | 114 | 353 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CSharpCoin
{
class MultiDictionary<TKey, TValue>
{
private Dictionary<TKey, List<TValue>> data = new Dictionary<TKey, List<TValue>>();
public void Add(TKey k, TValue v... | 50,301 |
https://github.com/frozenca/CLRS/blob/master/14_dynamic_programming/easy/problems_03_bitonic_euclidean_tsp.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | CLRS | frozenca | C++ | Code | 327 | 1,017 | #ifndef __CLRS4_BITONIC_EUCLIDEAN_TSP_H__
#define __CLRS4_BITONIC_EUCLIDEAN_TSP_H__
#include <algorithm>
#include <cassert>
#include <common.h>
#include <limits>
#include <point.h>
#include <vector>
namespace frozenca {
using namespace std;
pair<vector<vector<float>>, vector<vector<index_t>>>
bitonic_euclidean_tsp_... | 16,597 |
https://github.com/nicolasfischer1/projeto-Sistema-Cursos-PRP/blob/master/Bibliotecas/Tipos_Registros.h | Github Open Source | Open Source | MIT | null | projeto-Sistema-Cursos-PRP | nicolasfischer1 | C | Code | 179 | 393 | /**
* Biblioteca "Tipos_Registros.h".
* Definição das estruturas de registro e tipos de variáveis criadas com base nelas.
* Criado em: 29/10/2020.
* Última modificação por Nicolas Fischer no dia 14/12/2020.
*/
/**
* Projeto acadêmico da disciplina de Programação para Resolução de Problemas, que consiste num sistem... | 21,155 |
https://github.com/TechnologicalPizza/VoxelPizza/blob/master/VoxelPizza.Base/Utility/SpanEnumExtensions.cs | Github Open Source | Open Source | MIT | 2,021 | VoxelPizza | TechnologicalPizza | C# | Code | 49 | 161 | using System;
using System.Runtime.InteropServices;
namespace VoxelPizza
{
public static class SpanEnumExtensions
{
public static bool SequenceEqual<T>(this ReadOnlySpan<T> first, ReadOnlySpan<T> other)
where T : unmanaged, Enum
{
return MemoryMarshal.AsBytes(first).Seq... | 48,637 |
https://github.com/BigDuck/biyesheji/blob/master/src/main/java/com/wpj/wx/controller/common/BaseController.java | Github Open Source | Open Source | Apache-2.0 | null | biyesheji | BigDuck | Java | Code | 118 | 458 | /*
* Copyright (c) 2015 - 10 - 17 8 : 26 :33
* @author wupeiji It will be
* @Email wpjlovehome@gmail.com
*/
package com.wpj.wx.controller.common;
import com.fasterxml.jackson.databind.util.JSONPObject;
import com.wpj.wx.damain.TbRemote;
import com.wpj.wx.service.RemoteService;
import com.wpj.wx.util.InternetProt... | 29,029 |
https://github.com/mamor/igkaruta/blob/master/app/tests/app/Core/Validator/BaseValidatorTest.php | Github Open Source | Open Source | MIT | 2,017 | igkaruta | mamor | PHP | Code | 109 | 552 | <?php namespace My\Core\Validator;
use Mockery as m;
use Illuminate\Validation\Factory;
/**
* Class BaseValidatorTest
*/
class BaseValidatorTest extends \TestCase
{
/**
* test for with()
*
* @test
*/
public function testWith()
{
$validator = new BaseValidator(new Factory($this->app['translator']));
... | 3,294 |
https://github.com/mmg-3/OpenOLAT/blob/master/src/main/java/org/olat/ims/qti21/model/xml/QtiMaxScoreEstimator.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | OpenOLAT | mmg-3 | Java | Code | 787 | 2,737 | /**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache... | 27,972 |
https://github.com/jkrch/MatrixMarket.jl/blob/master/src/MatrixMarket.jl | Github Open Source | Open Source | MIT | 2,022 | MatrixMarket.jl | jkrch | Julia | Code | 743 | 1,981 | module MatrixMarket
using Compat.SparseArrays
using Compat.LinearAlgebra
export mmread, mmwrite
struct ParseError
error :: String
end
_parseint(x) = parse(Int, x)
"""
### mmread(filename, infoonly::Bool=false, retcoord::Bool=false)
Read the contents of the Matrix Market file 'filename' into a matrix,
which wi... | 16,955 |
https://github.com/KristofferC/Plots.jl/blob/master/src/contours.jl | Github Open Source | Open Source | MIT | 2,018 | Plots.jl | KristofferC | Julia | Code | 165 | 366 |
# TODO:
"""
- load Contours.jl similar to DataFrames
- method to build grid from x/y/z vectors
- method to wrap contours creation
- method to plot contours as custom shapes (TODO: create Stroke and Fill types and add markerstroke/markerfill args)
"""
# # ----------------------------------------------------------
... | 35,238 |
https://github.com/mhogg/pygeodesic/blob/master/pygeodesic/__init__.py | Github Open Source | Open Source | MIT | 2,022 | pygeodesic | mhogg | Python | Code | 15 | 39 | # -*- coding: utf-8 -*-
# Version
from pygeodesic.version import __version__
import pygeodesic.geodesic as geodesic | 22,000 |
https://github.com/dianasaurus-debug/ticketing/blob/master/resources/js/app.js | Github Open Source | Open Source | MIT | 2,021 | ticketing | dianasaurus-debug | JavaScript | Code | 203 | 788 | require('./bootstrap');
window.Vue = require('vue').default;
import VueRouter from 'vue-router'
import VueProgressBar from 'vue-progressbar'
import swal from 'sweetalert2'
import { Form, HasError, AlertError } from 'vform'
import moment from 'moment'
import Users from './components/Admin/Users'
import Dashboard from... | 110 |
https://github.com/Purplship/purplship-carriers/blob/master/sendle/sendle_lib/rating.py | Github Open Source | Open Source | MIT | 2,021 | purplship-carriers | Purplship | Python | Code | 163 | 603 | from attr import s
from typing import Optional, List
from jstruct import JList, JStruct
@s(auto_attribs=True)
class DomesticQuoteRequest:
pickup_suburb: Optional[str] = None
pickup_postcode: Optional[int] = None
pickup_country: Optional[str] = None
delivery_suburb: Optional[str] = None
delivery_po... | 15,326 |
https://github.com/altdx/dotfiles/blob/master/Linux/.local/share/fish/generated_completions/tee.fish | Github Open Source | Open Source | MIT | null | dotfiles | altdx | Fish | Code | 84 | 160 | # tee
# Autogenerated from man page /usr/lib/jvm/default/man/man1/tee.1.gz
complete -c tee -s a -l append -d 'append to the given FILEs, do not overwrite'
complete -c tee -s i -l ignore-interrupts -d 'ignore interrupt signals'
complete -c tee -s p -d 'diagnose errors writing to non pipes'
complete -c tee -l output-erro... | 3,563 |
https://github.com/xueron/EvaEngine/blob/master/src/EvaEngine/Exception/LogicException.php | Github Open Source | Open Source | BSD-3-Clause | null | EvaEngine | xueron | PHP | Code | 45 | 130 | <?php
/**
* EvaEngine (http://evaengine.com/)
* A development engine based on Phalcon Framework.
*
* @copyright Copyright (c) 2014-2015 EvaEngine Team (https://github.com/EvaEngine/EvaEngine)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace Eva\EvaEngine\Exception;
/**
* Logi... | 28,555 |
https://github.com/PixelOfDeath/glCompact/blob/master/src/glCompact/TextureCubemapArray.cpp | Github Open Source | Open Source | MIT | null | glCompact | PixelOfDeath | C++ | Code | 228 | 907 | #include "glCompact/TextureCubemapArray.hpp"
#include "glCompact/gl/Constants.hpp"
#include "glCompact/ContextGroup_.hpp"
#include "glCompact/threadContextGroup_.hpp"
#include "glCompact/Tools_.hpp"
#include <stdexcept>
using namespace std;
using namespace glCompact::gl;
namespace glCompact {
//This kind of textu... | 43,922 |
https://github.com/elisoncrum/piipan/blob/master/match/src/Piipan.Match/Piipan.Match.Api/Serializers/JsonConverters.cs | Github Open Source | Open Source | CC0-1.0 | 2,022 | piipan | elisoncrum | C# | Code | 463 | 1,180 | using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Piipan.Shared.Helpers;
namespace Piipan.Match.Api.Serializers
{
public class JsonConverters
{
/// <summary>
/// JSON.NET converter for serializing/deserializing a Da... | 18,759 |
https://github.com/chidough14/newmovieapp/blob/master/resources/views/tv/show.blade.php | Github Open Source | Open Source | MIT | null | newmovieapp | chidough14 | PHP | Code | 351 | 1,739 | @extends("layouts.main")
@section("content")
<div class="tv-info border-b border-gray-800">
<div class="container mx-auto px-4 py-16 flex flex-col md:flex-row">
<img src="{{$tvshow['poster_path'] }}" alt="image" class="w-96">
<div class="md:ml-24">
<h2 class="text-4xl ... | 42,596 |
https://github.com/davismartin/httpsnippet/blob/master/test/fixtures/output/powershell/restmethod/https.ps1 | Github Open Source | Open Source | MIT | 2,022 | httpsnippet | davismartin | PowerShell | Code | 7 | 25 | $response = Invoke-RestMethod -Uri 'https://mockbin.com/har' -Method GET
| 43,009 |
https://github.com/sangjian/flow-control/blob/master/process-core/src/main/java/cn/ideabuffer/process/core/nodes/aggregate/DefaultDistributeAggregatableNode.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | flow-control | sangjian | Java | Code | 35 | 188 | package cn.ideabuffer.process.core.nodes.aggregate;
import cn.ideabuffer.process.core.processors.DistributeAggregateProcessor;
import cn.ideabuffer.process.core.processors.impl.DistributeAggregateProcessorImpl;
/**
* @author sangjian.sj
* @date 2020/03/10
*/
public class DefaultDistributeAggregatableNode<R> extend... | 6,392 |
https://github.com/adrianogil/gil-tools/blob/master/src/termux_installer/t1.sh | Github Open Source | Open Source | MIT | null | gil-tools | adrianogil | Shell | Code | 41 | 132 | # In order to run:
# $ curl adrianogil.github.io/sh/t1.sh
installer_folder=$HOME/workspace
pkg install git -y
pkg install openssh -y
mkdir $installer_folder
cd $installer_folder
ssh-keygen -t rsa -N "" -f $HOME/.ssh/my.key
termux-setup-storage
cp $HOME/.ssh/*.pub /sdcard/
# Now setup ssh key into github account | 1,441 |
https://github.com/ahmedmostafaouf/Psychological-sessions/blob/master/app/Http/Controllers/Admin/FieldController.php | Github Open Source | Open Source | MIT | null | Psychological-sessions | ahmedmostafaouf | PHP | Code | 90 | 428 | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Http\Requests\Admin\FieldRequest;
use App\Models\Field;
use Illuminate\Support\Facades\DB;
class FieldController extends Controller
{
public function __construct()
{
$this->middleware('is_admin');
}
public... | 16,957 |
https://github.com/weidezhang/OpenDL/blob/master/core/src/org/gd/spark/opendl/downpourSGD/train/DeltaThread.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | OpenDL | weidezhang | Java | Code | 252 | 746 | /*
* Copyright 2013 GuoDing
*
* 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 ... | 14,549 |
https://github.com/nneesshh/pb-entity-db/blob/master/src/thirdparty/libzdb/src/db/postgresql/PostgresqlResultSet.c | Github Open Source | Open Source | MIT | 2,019 | pb-entity-db | nneesshh | C | Code | 921 | 2,390 | /*
* Copyright (C) Tildeslash Ltd. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the impl... | 7,523 |
https://github.com/ndom91/dotfiles/blob/master/.config/i3/dmenu-emoji.sh | Github Open Source | Open Source | MIT | null | dotfiles | ndom91 | Shell | Code | 3,682 | 18,482 | #!/bin/bash
set -e
case "$1" in
"list")
data=$(sed '0,/^__DATA__$/d' "$0")
echo "$data"
;;
"copy")
input=$(tee)
if [ ! -z "$input" ]; then
emoji=${input: -1}
echo -n "$emoji" | xclip -selection c
fi
;;
"")
# bash $0 list | dmenu -h 25 -i -nb '#292d3e' -nf '#bbc5ff' -s... | 44,217 |
https://github.com/Chiff/app-stu-sports/blob/master/app/sp-api/app/Models/Netgrif/TaskLayout.php | Github Open Source | Open Source | MIT | 2,021 | app-stu-sports | Chiff | PHP | Code | 54 | 138 | <?php
/**
* TaskLayout
*/
namespace App\Models\Netgrif;
use App\Models\AppSerializable;
/**
* TaskLayout
*/
class TaskLayout extends AppSerializable
{
/** @var int $cols */
public $cols;
/** @var string $fieldAlignment */
public $fieldAlignment;
/** @var int $offset */
public $offset;
... | 21,157 |
https://github.com/shadowfax92/Dynalist-Bookmarker/blob/master/src/utils/utils.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | Dynalist-Bookmarker | shadowfax92 | JavaScript | Code | 31 | 62 | // @flow
const isNullOrUndefined = (obj: any) => {
if (obj == undefined || obj == null) {
return true
} else {
return false
}
}
export { isNullOrUndefined }
| 43,998 |
https://github.com/Yannic/chromium/blob/master/third_party/blink/web_tests/http/tests/devtools/elements/copy-styles.js | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,022 | chromium | Yannic | JavaScript | Code | 132 | 413 | // 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.
(async function() {
TestRunner.addResult(`Tests node xPath construction\n`);
await TestRunner.loadModule('elements'); await TestRunner.loadTestModule(... | 19,462 |
https://github.com/shartte/Mekanism/blob/master/src/minecraft/mekanism/common/TileEntityFactory.java | Github Open Source | Open Source | MIT, Unlicense | null | Mekanism | shartte | Java | Code | 1,762 | 7,046 | package mekanism.common;
import ic2.api.Direction;
import ic2.api.energy.tile.IEnergySink;
import ic2.api.item.IElectricItem;
import java.util.ArrayList;
import mekanism.api.EnumColor;
import mekanism.api.IConfigurable;
import mekanism.api.IStrictEnergyAcceptor;
import mekanism.api.IUpgradeManagement;
import mekanis... | 40,956 |
https://github.com/KonstStrebkov/appcenter-sdk-apple/blob/master/AppCenterAnalytics/AppCenterAnalytics/include/MSAnalytics.h | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla | 2,020 | appcenter-sdk-apple | KonstStrebkov | C | Code | 1 | 9 | ../MSAnalytics.h | 31,721 |
https://github.com/LDaneliukas/EmbeddedSocial-iOS-SDK/blob/master/EmbeddedSocialTests/ModelTests/TopicOperations/CreateTopicOperationTests.swift | Github Open Source | Open Source | MIT | 2,021 | EmbeddedSocial-iOS-SDK | LDaneliukas | Swift | Code | 223 | 851 | //
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
//
import XCTest
@testable import EmbeddedSocial
class CreateTopicOperationTests: XCTestCase {
var handleUpdater: MockRelatedHandleUpdater!
var predi... | 6,522 |
https://github.com/cisco/libest/blob/master/src/est/est_client_http.c | Github Open Source | Open Source | FSFAP, LicenseRef-scancode-cern-attribution-1995, W3C-19980720, curl, MIT, OpenSSL, LicenseRef-scancode-ssleay-windows | 2,022 | libest | cisco | C | Code | 7,404 | 19,890 | /*------------------------------------------------------------------
* est/est_client_http.c - SSL and HTTP I/O routines for EST implementation
*
* November, 2012
*
* Copyright (c) 2013, 2016, 2017, 2018 by cisco Systems, Inc.
* All rights reserved.
**-------------------------------------------------------------... | 21,784 |
https://github.com/biteytech/biteytech/blob/master/dataframe/dataframe/src/main/java/tech/bitey/dataframe/NormalStringColumnImpl.java | Github Open Source | Open Source | Apache-2.0 | null | biteytech | biteytech | Java | Code | 1,142 | 3,912 | /*
* Copyright 2022 biteytech@protonmail.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 applicable l... | 2,113 |
https://github.com/exacaster/lighter/blob/master/server/src/main/java/com/exacaster/lighter/application/Utils.java | Github Open Source | Open Source | MIT | 2,022 | lighter | exacaster | Java | Code | 42 | 127 | package com.exacaster.lighter.application;
import java.util.HashMap;
import java.util.Map;
public final class Utils {
private Utils() {
}
public static Map<String, String> merge(Map<String, String> current, Map<String, String> other) {
var result = new HashMap<>(current);
other.forEach((... | 31,468 |
https://github.com/Phengaris/TCC_WEB_APP/blob/master/src/LearnCompiler/Views/Home/Index.cshtml | Github Open Source | Open Source | MIT | null | TCC_WEB_APP | Phengaris | C# | Code | 276 | 1,681 | @{
ViewData["Title"] = "Home";
}
<script src="~/js/core/lexicalAnalysisController.js"></script>
<script src="~/js/core/syntaxAnalysisController.js"></script>
<script src="~/js/core/generalController.js"></script>
<script src="~/js/core/errorController.js"></script>
<script src="~/js/core/symbolTableController.js"... | 19,178 |
https://github.com/vasanthi2706/vasavi/blob/master/insurence.php | Github Open Source | Open Source | Apache-2.0 | null | vasavi | vasanthi2706 | PHP | Code | 255 | 967 |
<?php
//open connection to mysql db
$connection = mysqli_connect('timesheetdemo.db.11689578.hostedresource.com','timesheetdemo','Timesheet@123','timesheetdemo') or die("Database Error");
$output=array();
if(!isset($_SESSION))
{
session_start();
}
$jsonString = file_get_contents('php... | 41,295 |
https://github.com/NguyenCongVN/ack-nestjs-mongoose/blob/master/src/kafka/error/kafka.error.filter.ts | Github Open Source | Open Source | MIT | 2,021 | ack-nestjs-mongoose | NguyenCongVN | TypeScript | Code | 77 | 243 | import { Catch, RpcExceptionFilter } from '@nestjs/common';
import { Observable, throwError } from 'rxjs';
import { RpcException } from '@nestjs/microservices';
import { IErrorKafka } from './kafka.error.interface';
import { ENUM_STATUS_CODE_ERROR } from 'src/error/error.constant';
import { IErrors } from 'src/error/er... | 50,957 |
https://github.com/acoshift/cert-manager/blob/master/pkg/issuer/acme/renew.go | Github Open Source | Open Source | Apache-2.0 | null | cert-manager | acoshift | Go | Code | 128 | 274 | /*
Copyright 2018 The Jetstack cert-manager contributors.
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... | 33,517 |
https://github.com/fit087/scientific_python/blob/master/test_SndClass.py | Github Open Source | Open Source | MIT | 2,020 | scientific_python | fit087 | Python | Code | 42 | 215 | import unittest as ut
import SndClass as sec
class test2ndClass(ut.TestCase):
def test_farentheit(self):
self.assertEqual(sec.farentheit(0), 32)
self.assertEqual(sec.farentheit(2.5), 36.5)
#self.assertAlmostEqual(sec.farentheit(37.7778), 100)
self.assertTrue(self.residual(sec.farentheit(37.7778), 100) < 1e-3... | 33,976 |
https://github.com/raminr77/ham-qalam/blob/master/assets/js/functions.js | Github Open Source | Open Source | MIT | null | ham-qalam | raminr77 | JavaScript | Code | 92 | 245 | import { removeWord } from './words.js'
import { wordValidator } from './validator.js'
const wordOfText = (txt = '') => {
let text = txt.value.replace(/(\r\n|\n|\r)/gm, ' ').split(' ')
let obj = {}
for(let word of text){
if(wordValidator(word)) continue
obj[word] = obj[word] ? obj[word] + 1... | 7,658 |
https://github.com/CafeKrem/Moose/blob/master/src/Roassal2/RTAbstractMultipleData.class.st | Github Open Source | Open Source | MIT | null | Moose | CafeKrem | null | Spoken | 662 | 1,492 | Class {
#name : #RTAbstractMultipleData,
#superclass : #RTAbstractData,
#instVars : [
'groupedElements',
'interaction',
'metrics',
'points',
'colors'
],
#category : #'Roassal2-Builder-Grapher-Core'
}
{ #category : #adding }
RTAbstractMultipleData >> addAll: someElements [
self view addAll: someElements... | 11,332 |
https://github.com/evankanderson/sockeye/blob/master/vendor/github.com/cloudevents/sdk-go/pkg/client/defaulters.go | Github Open Source | Open Source | Apache-2.0 | null | sockeye | evankanderson | Go | Code | 183 | 472 | package client
import (
"context"
"time"
"github.com/cloudevents/sdk-go/pkg/event"
"github.com/google/uuid"
)
// EventDefaulter is the function signature for extensions that are able
// to perform event defaulting.
type EventDefaulter func(ctx context.Context, event event.Event) event.Event
// DefaultIDToUUIDI... | 4,049 |
https://github.com/alphapoint/dotnet-stellar-sdk/blob/master/stellar-dotnet-sdk/responses/results/ManageOfferBuyNoIssuer.cs | Github Open Source | Open Source | Apache-2.0 | null | dotnet-stellar-sdk | alphapoint | C# | Code | 11 | 42 | namespace stellar_dotnet_sdk.responses.results
{
public class ManageOfferBuyNoIssuer : ManageOfferResult
{
}
} | 6,093 |
https://github.com/perezzini/vinci/blob/master/spider.py | Github Open Source | Open Source | MIT | 2,022 | vinci | perezzini | Python | Code | 37 | 129 | from scrapy.crawler import CrawlerProcess
from scrapy.utils.project import get_project_settings
class Spider():
def __init__(self, name):
self.spider = name
self.process = CrawlerProcess(get_project_settings())
def crawl(self):
self.process.crawl(self.spider)
self.process.star... | 15,590 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.