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/kaola-fed/nejc/blob/master/example/analysis.js | Github Open Source | Open Source | MIT | 2,018 | nejc | kaola-fed | JavaScript | Code | 14 | 54 | const Analysis = require('nejc/lib/analysis');
const analysis = new Analysis({
file: './test.js'
})
console.log(analysis.analysis(`define(['regularjs/index.js'], function(){});`)) | 15,766 |
https://github.com/murdock-commits/Saavn-Downloader/blob/master/saavn_account.py | Github Open Source | Open Source | MIT | 2,020 | Saavn-Downloader | murdock-commits | Python | Code | 812 | 3,181 | import requests
import json
headers = {
'User-Agent': 'Dalvik/2.1.0 (Linux; U; Android 9.1; Samsung S10 Build/LMY47O)',
'Host': 'www.saavn.com',
'Connection': 'Keep-Alive',
'Accept-Encoding': 'gzip'
}
def createAccount(email, password):
headers = {
... | 54,776 |
https://github.com/ManageIQ/manageiq-api/blob/master/app/controllers/api/subcollections/policy_profiles.rb | Github Open Source | Open Source | Apache-2.0 | 2,023 | manageiq-api | ManageIQ | Ruby | Code | 66 | 238 | module Api
module Subcollections
module PolicyProfiles
def policy_profiles_query_resource(object)
policy_profile_klass = collection_class(:policy_profiles)
object ? object.get_policies.select { |p| p.kind_of?(policy_profile_klass) } : {}
end
def policy_profiles_assign_resource(o... | 1,145 |
https://github.com/yardstick/perc/blob/master/template_app/config/application.rb | Github Open Source | Open Source | MIT | null | perc | yardstick | Ruby | Code | 12 | 63 | Perc.app = Perc::Application.new(
root: Pathname.new(File.expand_path('../..', __FILE__)),
env: ENV.fetch('PERC_ENV', 'development')
)
require_relative 'environment'
| 44,936 |
https://github.com/Scottx86-64/dotfiles-1/blob/master/source/pkgsrc/devel/eet/Makefile | Github Open Source | Open Source | Unlicense | 2,021 | dotfiles-1 | Scottx86-64 | Makefile | Code | 61 | 361 | # $NetBSD: Makefile,v 1.32 2020/05/01 00:03:10 joerg Exp $
#
DISTNAME= eet-1.7.10
CATEGORIES= devel archivers
MASTER_SITES= https://download.enlightenment.org/att/releases/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= joerg@NetBSD.org
HOMEPAGE= https://www.enlightenment.org/
COMMENT= Library for speedy storage, retrieval, and ... | 46,609 |
https://github.com/henryksloan/grumpy_visitors/blob/master/libs/game/src/lib.rs | Github Open Source | Open Source | MIT | 2,022 | grumpy_visitors | henryksloan | Rust | Code | 168 | 845 | #![feature(drain_filter)]
#![feature(clamp)]
#![allow(clippy::type_complexity, clippy::too_many_arguments)]
pub mod ecs;
pub mod states;
pub mod utils;
use amethyst::{
error::Error,
prelude::{GameDataBuilder, World},
};
use gv_core::{
actions::monster_spawn::SpawnActions,
ecs::resources::{
ne... | 22,340 |
https://github.com/minted/newrelic_plugin/blob/master/lib/newrelic_platform_binding/request.rb | Github Open Source | Open Source | MIT | null | newrelic_plugin | minted | Ruby | Code | 274 | 918 | require 'json'
module NewRelic
module Binding
class Request
attr_reader :context
def initialize(context)
@context = context
@duration = nil
@metrics = {}
@delivered = false
return self
end
def deliver
metrics_hash = build_request_data_struc... | 24,732 |
https://github.com/yonglehou/Daishi.Messaging/blob/master/Daishi.Messaging.Specs/MSAzureServiceBusAdapterSendsAndReceivesMessagesSteps.cs | Github Open Source | Open Source | MIT | 2,015 | Daishi.Messaging | yonglehou | C# | Code | 97 | 390 | #region Includes
using System;
using System.Threading;
using Daishi.Messaging.Brokers.Microsoft;
using Microsoft.ServiceBus.Messaging;
using NUnit.Framework;
using TechTalk.SpecFlow;
#endregion
namespace Daishi.Messaging.Specs {
[Binding]
public class MSAzureServiceBusAdapterSendsAndReceivesMessagesSteps {
... | 52,294 |
https://github.com/webernir/gdg-mobx-intro/blob/master/src/Components/StockMetadata.jsx | Github Open Source | Open Source | MIT | null | gdg-mobx-intro | webernir | null | Spoken | 46 | 132 | import React from 'react'
import { observer } from 'mobx-react'
const StockMetadata = ({ stock }) => (
<div>
<h2 className="title">
{stock.symbol}
</h2>
<h5 className="subtitle">
{(stock.history.length === 0 || stock.news.length === 0)
? <button className="button is-info is-loading" /... | 5,436 |
https://github.com/tomasgirtzas/cms/blob/master/defines.php | Github Open Source | Open Source | MIT | null | cms | tomasgirtzas | PHP | Code | 26 | 88 | <?php
define('DS', DIRECTORY_SEPARATOR);
/* Directories */
define('DIR_BASE', dirname(__FILE__));
define('DIR_DATA', DIR_BASE . DS . 'data');
define('DIR_PUBLIC', DIR_BASE . DS . 'public');
define('DIR_ADMIN', DIR_BASE . DS . 'admin');
| 47,930 |
https://github.com/ksteensig/dsp-guitar-multieffects/blob/master/csl/src/csl_dat.c | Github Open Source | Open Source | MIT | 2,020 | dsp-guitar-multieffects | ksteensig | C | Code | 2,647 | 15,097 | /* ============================================================================
* Copyright (c) 2008-2012 Texas Instruments Incorporated.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistribut... | 10,758 |
https://github.com/antmicro/nextpnr/blob/master/ecp5/dcu_bitstream.h | Github Open Source | Open Source | 0BSD | 2,022 | nextpnr | antmicro | C | Code | 1,270 | 15,231 | tg.config.add_word("DCU.CH0_AUTO_CALIB_EN",
parse_config_str(get_or_default(ci->params, ctx->id("CH0_AUTO_CALIB_EN"), Property(0)), 1));
tg.config.add_word("DCU.CH0_AUTO_FACQ_EN",
parse_config_str(get_or_default(ci->params, ctx->id("CH0_AUTO_FACQ_EN"), Property(0)), 1));
tg.config.... | 25,751 |
https://github.com/skyshore2001/cordova-plugin-videoproc/blob/master/src/ios/videoAESDK/GLModel.h | Github Open Source | Open Source | Apache-2.0 | 2,016 | cordova-plugin-videoproc | skyshore2001 | C | Code | 65 | 205 | //
// GLModel.h
// HelloCordova
//
// Created by 管伟东 on 16/7/15.
//
//
#import <Foundation/Foundation.h>
#import "Video_Const.h"
@interface GLModel : NSObject
@property (nonatomic ,assign)kMediaType type;
@property (nonatomic ,assign)GLuint glPrograme;
@property (nonatomic ,assign)GLuint glPositionSlot;
@property... | 53,167 |
https://github.com/rusabakumov/fair-share/blob/master/src/main/scala/aggregate/BuildFromEvents.scala | Github Open Source | Open Source | Apache-2.0 | 2,015 | fair-share | rusabakumov | Scala | Code | 115 | 290 | package aggregate
import scalaz._
object BuildFromEvents {
def apply[A, C, M](events: NonEmptyList[EventXor[A, C, M]])(implicit ch: CreationHandler[A, C], chh: ChangeHandler[A, M]): A = {
val firstEvent = events.head
val otherEvents = events.tail
firstEvent match {
case -\/(e) =>
val a = ... | 52,686 |
https://github.com/stvhanna/Glean/blob/master/glean/shell/tests/integration/test-shell.t | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-generic-cla | 2,021 | Glean | stvhanna | Perl | Code | 680 | 1,337 | # Copyright (c) Facebook, Inc. and its affiliates.
$ source "$TESTDIR/setup.sh"
Creating DB using handle fbcode:glean/tools/gleancli:glean@.* (re)
$ function query { "$GLEAN" --service "::1:$PORT" shell --db "$DB" "$(echo -e $1)" ; }
$ query "example.Class _"
[>] example.Class _ (re)
{ "id": [0-9]+, "key... | 16,808 |
https://github.com/ToshikiImagawa/Scrmizu/blob/master/Assets/Scrmizu.Sample/Scenes/Sample_ReverseSettings.lighting.meta | Github Open Source | Open Source | MIT | 2,023 | Scrmizu | ToshikiImagawa | Unity3D Asset | Code | 12 | 75 | fileFormatVersion: 2
guid: ca2d62bf7e3a44e7d844da137643954c
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 4890085278179872738
userData:
assetBundleName:
assetBundleVariant:
| 48,654 |
https://github.com/SuperOxigen/midi-ctrl/blob/master/src/midi_frame.h | Github Open Source | Open Source | MIT | null | midi-ctrl | SuperOxigen | C | Code | 134 | 496 | /*
* MIDI Controller - MIDI Frame
*
* Copyright (c) 2020 Alex Dale
* This project is licensed under the terms of the MIT license.
* See LICENSE for details.
*/
#ifndef _MIDI_FRAME_H_
#define _MIDI_FRAME_H_
#include "base.h"
C_SECTION_BEGIN;
/* Size of the largest MIDI message. */
#define MIDI_FRAME_BUFFER_SIZE... | 4,273 |
https://github.com/Barsonax/gatsby-plugin-disqus/blob/master/src/components/Disqus.jsx | Github Open Source | Open Source | MIT | null | gatsby-plugin-disqus | Barsonax | null | Spoken | 294 | 839 | import React from 'react'
import PropTypes from 'prop-types'
import { insertScript, removeScript, shallowComparison } from '../utils'
export default class Disqus extends React.Component {
constructor(props) {
super(props)
this.shortname = (typeof GATSBY_DISQUS_SHORTNAME !== `undefined` && GATSBY_DISQUS_SH... | 10,459 |
https://github.com/lframework/xingyun/blob/master/xingyun-sc/src/main/java/com/lframework/xingyun/sc/service/stock/adjust/IStockCostAdjustSheetDetailService.java | Github Open Source | Open Source | Apache-2.0 | null | xingyun | lframework | Java | Code | 13 | 94 | package com.lframework.xingyun.sc.service.stock.adjust;
import com.lframework.starter.mybatis.service.BaseMpService;
import com.lframework.xingyun.sc.entity.StockCostAdjustSheetDetail;
public interface IStockCostAdjustSheetDetailService extends
BaseMpService<StockCostAdjustSheetDetail> {
}
| 64 |
https://github.com/syaifuddinh/electric-repair/blob/master/database/migrations/2020_08_28_093909_add_foreign_keys_to_item_details_table.php | Github Open Source | Open Source | MIT | null | electric-repair | syaifuddinh | PHP | Code | 59 | 378 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class AddForeignKeysToItemDetailsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('item_details', function(Blueprint $table)
{
$table->foreign('i... | 47,517 |
https://github.com/lizhichao/ClickHouse/blob/master/tests/queries/0_stateless/00424_shard_aggregate_functions_of_nullable.sql | Github Open Source | Open Source | Apache-2.0 | 2,021 | ClickHouse | lizhichao | SQL | Code | 171 | 501 | SELECT avg(arrayJoin([NULL]));
SELECT avg(arrayJoin([NULL, 1]));
SELECT avg(arrayJoin([NULL, 1, 2]));
SELECT quantileExactWeighted(0.5)(x, y) FROM
(
SELECT CAST(NULL AS Nullable(UInt8)) AS x, CAST(1 AS Nullable(UInt8)) AS y
UNION ALL
SELECT CAST(2 AS Nullable(UInt8)) AS x, CAST(NULL AS Nullable(UInt8)) AS ... | 43,682 |
https://github.com/jkabat/Routing/blob/master/src/ProviderBasedGenerator.php | Github Open Source | Open Source | MIT | null | Routing | jkabat | PHP | Code | 280 | 779 | <?php
/*
* This file is part of the Symfony CMF package.
*
* (c) Symfony CMF
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Cmf\Component\Routing;
use Psr\Log\LoggerInterface;
use Symfony\Component\Routing\Exc... | 15,451 |
https://github.com/Disha-iOS/48ee0c07fa5b1d5204d4/blob/master/node_modules/react-native-localize/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties | Github Open Source | Open Source | MIT | 2,020 | 48ee0c07fa5b1d5204d4 | Disha-iOS | null | Spoken | 6 | 14 | #Mon Oct 26 13:41:18 IST 2020
| 4,880 |
https://github.com/xuna123/m/blob/master/scorecardbundle/feature_selection/FeatureSelection.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | m | xuna123 | Python | Code | 561 | 2,015 | # -*- coding: utf-8 -*-
"""Feature selection tools.
@authors: Lantian ZHANG
"""
import pandas as pd
import numpy as np
def selection_with_iv_corr(trans_woe, encoded_X, threshold_corr=0.6):
"""Retrun a table of each feature' IV and their highly correlated
features to help users select features.
Parameters
... | 15,237 |
https://github.com/Greaper88/SkyBlock/blob/master/code/commands/cmd_SkyBlock.lua | Github Open Source | Open Source | Apache-2.0 | null | SkyBlock | Greaper88 | Lua | Code | 346 | 1,473 | -- Handle the skyblock command
function CommandSkyBlock(a_Split, a_Player)
if (#a_Split == 1) then
a_Player:SendMessageInfo(GetLanguage(a_Player):Get(1, 2, "skyblock"))
return true
end
-- Show the skyblock help
if (a_Split[2] == "help") then
a_Player:SendMessage("---" .. cChatColor.LightGreen .. GetLanguage(... | 46,595 |
https://github.com/ZhangRGK/leaa/blob/master/packages/leaa-dashboard/src/components/AttachmentBox/_components/AttachmentList/style.less | Github Open Source | Open Source | BSD-3-Clause | null | leaa | ZhangRGK | Less | Code | 43 | 152 | @import '~@leaa/dashboard/src/styles/variables.less';
//@wrapper-height: 230px;
.wrapper {
position: relative;
display: block;
//height: @wrapper-height;
margin: 0 -10px;
padding: 4px 0;
overflow-y: auto;
}
.wrapper-inner {
padding: 0 10px;
}
.wrapper--empty {
text-align: center;
//padding-top: @w... | 28,030 |
https://github.com/vrchat-community/osc/blob/master/ci/build/Build.cs | Github Open Source | Open Source | MIT | 2,022 | osc | vrchat-community | C# | Code | 782 | 2,499 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Notion.Client;
using Nuke.Common;
using Nuke.Common.IO;
using Nuke.Common.Ut... | 47,232 |
https://github.com/hacker-box/hacker-box-base/blob/master/src/client/index.js | Github Open Source | Open Source | MIT | null | hacker-box-base | hacker-box | JavaScript | Code | 96 | 324 | const { createStore, combineReducers, applyMiddleware } = require("redux");
const thunkMiddleware = require("redux-thunk").default;
const loggerMiddleware = require("redux-logger");
const React = require("react");
const ReactDOM = require("react-dom");
const { Provider } = require("react-redux");
const { loadJsonFromSc... | 52,042 |
https://github.com/python-spain/PyConES-2016/blob/master/pycones/schedule/migrations/0010_auto_20151002_2057.py | Github Open Source | Open Source | MIT | 2,017 | PyConES-2016 | python-spain | Python | Code | 55 | 215 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def update_default_room(apps, schema_editor):
Slot = apps.get_model("schedule", "Slot")
Room = apps.get_model("schedule", "Room")
for slot in Slot.objects.all():
try:
room = Room.o... | 5,841 |
https://github.com/folio-org/ui-eholdings/blob/master/src/routes/provider-show-route/index.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | ui-eholdings | folio-org | JavaScript | Code | 124 | 429 | import { connect } from 'react-redux';
import ProviderShowRoute from './provider-show-route';
import { createResolver } from '../../redux';
import Provider from '../../redux/provider';
import Tag from '../../redux/tag';
import { ProxyType, RootProxy } from '../../redux/application';
import {
getAccessTypes as getA... | 216 |
https://github.com/iantal/AndroidPermissions/blob/master/apks/malware/app76/app/smali/com/oimobi/oim/common/OIRBM.smali | Github Open Source | Open Source | Apache-2.0 | 2,019 | AndroidPermissions | iantal | Smali | Code | 381 | 2,191 | .class public Lcom/oimobi/oim/common/OIRBM;
.super Lcom/oimobi/oim/common/OIKM;
.source "OIRBM.java"
# instance fields
.field private brMethod:Ljava/lang/reflect/Method;
# direct methods
.method public constructor <init>()V
.locals 0
.prologue
.line 9
invoke-direct {p0}, Lcom/oimobi/oim/common/OIKM... | 51,338 |
https://github.com/ExPixel/Pyrite-old-/blob/master/pyrite/src/main.rs | Github Open Source | Open Source | MIT | 2,020 | Pyrite-old- | ExPixel | Rust | Code | 148 | 522 | mod gui;
mod logger;
#[allow(dead_code)]
mod platform;
#[allow(dead_code)]
mod util;
use pyrite_gba::Gba;
fn main() {
logger::PyriteLogger::init(log::Level::Trace);
let exit_code = run_emulator();
if exit_code != 0 {
std::process::exit(exit_code);
}
}
fn run_emulator() -> i32 {
let mut gb... | 41,162 |
https://github.com/zhanghua0926/GifImageSource/blob/master/GifImage/Shared/HueEffectDescription.h | Github Open Source | Open Source | MIT | 2,018 | GifImageSource | zhanghua0926 | C++ | Code | 74 | 306 | #pragma once
#include "pch.h"
#include "IEffectDescription.h"
namespace GifImage
{
public ref class HueEffectDescription sealed: IEffectDescription
{
public:
HueEffectDescription(float angle);
HueEffectDescription();
virtual EffectGuid^ GetEffectGuid() {
GUID g = CLSID_D2D1HueRotation;
return ref new Ef... | 37,237 |
https://github.com/ronnyvdbr/lirc_web/blob/master/lib/labels.js | Github Open Source | Open Source | MIT | 2,016 | lirc_web | ronnyvdbr | JavaScript | Code | 41 | 122 | module.exports = function Labels(remoteLabels, commandLabels) {
function getCommandLabel(remote, command) {
return commandLabels && commandLabels[remote] && commandLabels[remote][command] ? commandLabels[remote][command] : command;
}
function getRemoteLabel(remote) {
return remoteLabels && remoteLabels[r... | 54,133 |
https://github.com/masbir/bind9/blob/master/resources/views/home/generic-warning-page.blade.php | Github Open Source | Open Source | MIT | null | bind9 | masbir | PHP | Code | 21 | 102 | @extends('layouts.warning')
@section('title')
Opppps!
@stop
@section('content')
<div class="warning-page valign-center">
<div class="logo">
<img src="/images/logo-sq.jpg">
</div>
<h1>This page is blocked by HEROIC</h1>
</div>
@stop | 50,799 |
https://github.com/oweisse/u-root/blob/master/pkg/kexec/kexec_linux.go | Github Open Source | Open Source | BSD-3-Clause | 2,018 | u-root | oweisse | Go | Code | 68 | 150 | // Copyright 2015-2017 the u-root 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 kexec
import (
"fmt"
"syscall"
)
// Reboot executes a kernel previously loaded with FileInit.
func Reboot() error {
if err := syscall.Reboo... | 32,074 |
https://github.com/luxe/unilang/blob/master/source/code/programs/transcompilers/old_unilang/main/program_options/program_options_creator.hpp | Github Open Source | Open Source | MIT | 2,023 | unilang | luxe | C++ | Code | 18 | 61 | #pragma once
#include "program_options.hpp"
#include "program_options_checker.hpp"
class Program_Options_Creator{
public: static Program_Options Create(int const argc, char** const argv);
};
| 22,224 |
https://github.com/Vesta-wallet/dart_coin/blob/master/lib/src/utils/varuint.dart | Github Open Source | Open Source | MIT | 2,022 | dart_coin | Vesta-wallet | Dart | Code | 229 | 628 | import 'check_types.dart';
import 'dart:typed_data';
Uint8List encode(int number, [Uint8List? buffer, int? offset]) {
if (!isUint(number, 53)) ;
buffer = buffer ?? new Uint8List(encodingLength(number));
offset = offset ?? 0;
ByteData bytes = buffer.buffer.asByteData();
// 8 bit
if (number < 0xfd) {
by... | 26,666 |
https://github.com/thenixontorres/laravel-ia-english-teacher/blob/master/database/migrations/2016_07_26_210432_create_notas_table.php | Github Open Source | Open Source | MIT | null | laravel-ia-english-teacher | thenixontorres | PHP | Code | 56 | 255 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreatenotasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('notas', function (Blueprint $table) {
$tabl... | 38,688 |
https://github.com/nioto/ovhsmsapi/blob/master/src/org/nioto/ovh/sms/Check.java | Github Open Source | Open Source | MIT | 2,014 | ovhsmsapi | nioto | Java | Code | 120 | 310 | package org.nioto.ovh.sms;
import java.util.List;
public class Check {
public static void notNull(String name, Object value)
throws SMSException {
if( value == null){
throw new SMSException( String.format("%1 cannot be null", name));
}
}
public static void checkLength(String name, int maxLen, String ... | 11,145 |
https://github.com/danielsunzhongyuan/go_learning/blob/master/go_in_action/chapter8/listing27/listing27.go | Github Open Source | Open Source | Apache-2.0 | null | go_learning | danielsunzhongyuan | Go | Code | 67 | 214 | package main
import (
"encoding/json"
"fmt"
"log"
)
type Contact struct {
Name string `json:"name"`
Title string `json:"title"`
Contact struct {
Home string `json:"home"`
Cell string `json:"cell"`
} `json:"contact"`
}
var JSON = `{
"name": "Gopher",
"title": "programmer",
"contact": {
... | 44,445 |
https://github.com/octansIt/environmentassessment/blob/master/EnvironmentAssessment.Wizard/Common/VimApi/P/Permission.cs | Github Open Source | Open Source | MIT | 2,020 | environmentassessment | octansIt | C# | Code | 119 | 416 | namespace EnvironmentAssessment.Common.VimApi
{
public class Permission : DynamicData
{
protected ManagedObjectReference _entity;
protected string _principal;
protected bool _group;
protected int _roleId;
protected bool _propagate;
protected Permission_LinkedView _linkedView;
public ManagedObjectReferen... | 50,276 |
https://github.com/combineads/airpal/blob/master/src/main/resources/assets/javascripts/components/TableSearch.jsx | Github Open Source | Open Source | Apache-2.0 | 2,018 | airpal | combineads | JavaScript | Code | 484 | 1,801 | import React from 'react';
import SearchInputField from './SearchInputField';
import TableActions from '../actions/TableActions';
import TableStore from '../stores/TableStore';
import _ from 'lodash';
import moment from 'moment';
let commonSelectizeOptions = {
closeAfterSelect: true
};
function getActiveItemName(se... | 20,950 |
https://github.com/jasmineglani/RDBMS-Project-On-Online-Banking-For-Famers/blob/master/bank/login1.php | Github Open Source | Open Source | CC-BY-3.0 | 2,020 | RDBMS-Project-On-Online-Banking-For-Famers | jasmineglani | PHP | Code | 260 | 1,176 | <<!DOCTYPE html>
<html>
<head>
<title>108 account</title>
</head>
<style>
input[type=text], select {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type=submit] {
width: 100%;
background-color: #4CAF5... | 17,963 |
https://github.com/fadendaten/six_saferpay/blob/master/lib/six_saferpay/models/address_form.rb | Github Open Source | Open Source | MIT | 2,022 | six_saferpay | fadendaten | Ruby | Code | 37 | 147 | module SixSaferpay
class AddressForm
attr_accessor(:display,
:mandatory_fields)
def initialize(display:,
mandatory_fields: nil)
@display = display
@mandatory_fields = mandatory_fields
end
def to_hash
hash = Hash.new
hash.merge!(display: @... | 29,524 |
https://github.com/TomBlock/cate/blob/master/test/util/web/test_webapi.py | Github Open Source | Open Source | MIT | null | cate | TomBlock | Python | Code | 226 | 1,479 | import re
import unittest
from cate.util.web import webapi
class UrlPatternTest(unittest.TestCase):
def test_url_pattern_works(self):
re_pattern = webapi.url_pattern('/open/{{id1}}ws/{{id2}}wf')
matcher = re.fullmatch(re_pattern, '/open/34ws/a66wf')
self.assertIsNotNone(matcher)
s... | 5,320 |
https://github.com/0x90909/binary-static-www3/blob/master/src/javascript/binary/static/statement/statement.ui.js | Github Open Source | Open Source | Apache-2.0 | null | binary-static-www3 | 0x90909 | JavaScript | Code | 219 | 805 | var StatementUI = (function(){
"use strict";
var tableID = "statement-table";
var columns = ["date", "ref", "act", "desc", "credit", "bal"];
function createEmptyStatementTable(){
var header = [
Content.localize().textPurchaseDate,
Content.localize().textRef,
... | 4,935 |
https://github.com/Rodrirokr/Rubeus/blob/master/RubeusCore/Game/ping_pong/engine_files/object.paddle.cpp | Github Open Source | Open Source | MIT | 2,022 | Rubeus | Rodrirokr | C++ | Code | 62 | 405 | #include "object.paddle.h"
void Opaddle::begin()
{
this->m_PhysicsObject->m_Collider->m_PhysicsMaterial.m_Gravity.y = 0.0f;
auto * inputManager = Rubeus::RGame::getEngine()->getCurrentLevelInputManager();
inputManager->addKeyToKeyBinding("Ascend", Rubeus::EKeyboardKeys::__UP);
inputManager->addKeyToKeyBinding("D... | 3,584 |
https://github.com/mtMirani25/Login-Form-With-ReactJS/blob/master/src/App.jsx | Github Open Source | Open Source | MIT | null | Login-Form-With-ReactJS | mtMirani25 | null | Spoken | 38 | 94 | import React from "react";
import Form from "./components/Form/Form";
import { BrowserRouter as Router } from "react-router-dom";
import "./App.css";
const App = () => {
return (
<Router>
<section id="form">
<Form />
</section>
</Router>
);
};
export default App;
| 13,802 |
https://github.com/allpet-project/allpet.cli.temp/blob/master/allpet.db.simple/SimpleDB.cs | Github Open Source | Open Source | MIT | 2,019 | allpet.cli.temp | allpet-project | C# | Code | 1,454 | 5,627 | using System;
using System.Collections;
using System.Collections.Generic;
namespace AllPet.db.simple
{
public class DB : IDisposable
{
IntPtr dbPtr;
IntPtr defaultWriteOpPtr;
public void Open(string path, bool createIfMissing = false)
{
if (dbPtr != IntPtr.Zero)
... | 11,071 |
https://github.com/martinpovolny/audrey/blob/master/agent/tests/provides.py | Github Open Source | Open Source | Apache-2.0 | 2,012 | audrey | martinpovolny | Python | Code | 972 | 2,837 | '''
*
* Copyright [2011] [Red Hat, Inc.]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 31,400 |
https://github.com/kalecio/sqlectron-gui/blob/master/src/browser/core/validators/server.ts | Github Open Source | Open Source | MIT | 2,021 | sqlectron-gui | kalecio | TypeScript | Code | 555 | 1,520 | import Valida from 'valida2';
import { CLIENTS } from 'sqlectron-db-core';
import { Server } from '../../../common/types/server';
function serverAddressValidator(ctx) {
const { host, port, socketPath } = ctx.obj;
// we need either a host, or a socket path, but not both, and not neither.
if ((!host && !socketPat... | 14,269 |
https://github.com/CodeLeom/corona/blob/master/tsdist/src/index.js | Github Open Source | Open Source | MIT | 2,016 | corona | CodeLeom | JavaScript | Code | 39 | 140 | "use strict";
var controller_1 = require('./lib/controller');
exports.Controller = controller_1.Controller;
var model_1 = require('./lib/model/model');
exports.Model = model_1.Model;
var server_1 = require('./lib/server');
exports.Server = server_1.Server;
var repository_1 = require('./lib/repository');
exports.Reposit... | 41,501 |
https://github.com/jaipradeesh/go-rest/blob/master/app/service.auth_test.go | Github Open Source | Open Source | MIT | null | go-rest | jaipradeesh | Go | Code | 38 | 197 | package app
import (
"time"
"testing"
"github.com/stretchr/testify/assert"
"github.com/esquarer/go-rest/domain"
)
func TestJWTServiceGenerateToken(t *testing.T) {
assert := assert.New(t)
service := NewJWTService()
token, err := service.GenerateToken("foobar", "read")
assert.Nil(err)... | 4,205 |
https://github.com/stoplightio/ui-kit/blob/master/src/__stories__/Docs/_theme-overwrite.scss | Github Open Source | Open Source | Apache-2.0 | 2,020 | ui-kit | stoplightio | SCSS | Code | 21 | 53 | // .namespace {
// $sl-config: (
// colors: (
// success: red,
// ),
// );
// @import '../../../styles/ui-kit';
// }
| 25,349 |
https://github.com/lenesxy/reflector/blob/master/ReflectionDataBuilding.h | Github Open Source | Open Source | Fair, LicenseRef-scancode-warranty-disclaimer | 2,020 | reflector | lenesxy | C++ | Code | 213 | 657 | /// Copyright 2017-2019 Ghassan.pl
/// Usage of the works is permitted provided that this instrument is retained with
/// the works, so that any entity that uses the works is notified of this instrument.
/// DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.
#pragma once
#include "Common.h"
#include <fstream>
#define TIMES... | 25,315 |
https://github.com/ineczka/arcusweb/blob/master/src/components/icon-grid/icon-grid.less | Github Open Source | Open Source | Apache-2.0 | 2,020 | arcusweb | ineczka | Less | Code | 54 | 198 | arcus-icon-grid {
display: flex;
flex-wrap: wrap;
.icon-wrapper {
flex-shrink: 0;
position: relative;
width: 90px;
height: 90px;
border: 1px solid @swift;
border-radius: 5%;
margin: @gutter/2;
cursor: pointer;
&:hover,
&.active {
background-color: @link-color;
... | 52,450 |
https://github.com/Maledictus/leechcraft/blob/master/src/plugins/lemon/core.h | Github Open Source | Open Source | BSL-1.0 | 2,021 | leechcraft | Maledictus | C | Code | 88 | 265 | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE... | 7,448 |
https://github.com/safak-celik/TrackerApp/blob/master/app/src/main/java/com/example/android/trackmysleepquality/sleeptracker/SleepTrackerFragment.kt | Github Open Source | Open Source | Apache-2.0 | null | TrackerApp | safak-celik | Kotlin | Code | 510 | 1,538 | /*
* Copyright 2018, The Android Open Source Project
*
* 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 applica... | 24,718 |
https://github.com/yakkanti/ml4ir/blob/master/python/ml4ir/applications/classification/model/losses/categorical_cross_entropy.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | ml4ir | yakkanti | Python | Code | 88 | 337 | # Stating loss functions related to classification use-case.
from tensorflow.keras import layers
from tensorflow.keras import losses
from ml4ir.base.model.losses.loss_base import RelevanceLossBase
from ml4ir.applications.ranking.config.keys import LossKey
def get_loss(loss_key) -> RelevanceLossBase:
"""
Fact... | 1,070 |
https://github.com/pavel-krivanek/Bloc/blob/master/src/Bloc.package/Key.extension/class/l.st | Github Open Source | Open Source | MIT | 2,018 | Bloc | pavel-krivanek | null | Spoken | 6 | 14 | *Bloc
l
^ self character: $L | 31,249 |
https://github.com/ankitladhania/Treasuroid/blob/master/treasure_hunt/treasure_hunt/indextreasure.php | Github Open Source | Open Source | Apache-2.0 | 2,014 | Treasuroid | ankitladhania | PHP | Code | 296 | 1,485 | <?PHP
session_start();
include ('constant.php');
$user_name = "";
$pword = "";
$errorMessage ="";
//==========================================
// ESCAPE DANGEROUS SQL CHARACTERS
//==========================================
function quote_smart($str) {
$str = @trim($str);
if(get_magic_quotes_gpc()) {
$str = st... | 49,745 |
https://github.com/mmaelzer/sqld/blob/master/sqld.go | Github Open Source | Open Source | MIT | 2,022 | sqld | mmaelzer | Go | Code | 1,536 | 4,403 | package main
import (
"encoding/json"
"errors"
"flag"
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
"strconv"
"strings"
"time"
"github.com/Masterminds/squirrel"
_ "github.com/go-sql-driver/mysql"
"github.com/jmoiron/sqlx"
"github.com/mmaelzer/sqld/drivers"
)
const usageMessage = "" +
`Usage of 'sqld':
sql... | 55,739 |
https://github.com/pftx/api-mono/blob/master/common/common-spring/src/main/java/com/x/api/common/xauth/XTokenUtil.java | Github Open Source | Open Source | Apache-2.0 | null | api-mono | pftx | Java | Code | 479 | 1,670 | /**
* XTokenUtil.java
*
* Copyright 2017 the original author or authors.
*
* We licenses this file to you 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/L... | 17 |
https://github.com/dmryutov/otus-python-0319-final/blob/master/backend/stl/apps.py | Github Open Source | Open Source | Apache-2.0 | null | otus-python-0319-final | dmryutov | Python | Code | 9 | 29 | from django.apps import AppConfig
class StlConfig(AppConfig):
name = 'stl'
| 47,294 |
https://github.com/decheng-zhang/fog-research-M.A.Sc/blob/master/src/jmetal/qualityIndicator/Spread.java | Github Open Source | Open Source | MIT, Apache-2.0 | 2,018 | fog-research-M.A.Sc | decheng-zhang | Java | Code | 764 | 1,992 | // Spread.java
//
// Author:
// Antonio J. Nebro <antonio@lcc.uma.es>
// Juan J. Durillo <durillo@lcc.uma.es>
//
// Copyright (c) 2011 Antonio J. Nebro, Juan J. Durillo
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public Lice... | 21,896 |
https://github.com/hatappi/red-chainer/blob/master/lib/chainer/functions/pooling/pooling_2d.rb | Github Open Source | Open Source | MIT | 2,018 | red-chainer | hatappi | Ruby | Code | 78 | 217 | module Chainer
module Functions
module Pooling
# Base class of pooling function over a set of 2d planes
class Pooling2D < Chainer::FunctionNode
attr_reader :kh, :kw, :sy, :sx, :ph, :pw, :cover_all
def initialize(ksize, stride: nil, pad: 0, cover_all: true)
if stride.nil?
... | 2,201 |
https://github.com/DirkEilander/compound_hotspots/blob/master/src/1-prepare/cmftools/cmf_fldmap_downscale.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | compound_hotspots | DirkEilander | Python | Code | 232 | 937 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import os
from os.path import join, dirname, realpath, basename
import rasterio
import click
import glob
import subprocess
import xarray as xr
import pandas as pd
from datetime import timedelta
from rasterio.transform import from_origin
@click.command()... | 7,791 |
https://github.com/mpopp75/db4free-net-l10n/blob/master/ru/signup.php | Github Open Source | Open Source | MIT | 2,023 | db4free-net-l10n | mpopp75 | PHP | Code | 309 | 1,105 | <?php
/*
Section: signup
Language: Russian
*/
$translations = array(
'h1' => 'Регистрация',
'mysql-db-name' => 'Имя базы данных MySQL',
'mysql-user-name' => 'Имя пользователя MySQL',
'mysql-user-password' => 'Пароль пользователя MySQL',
'mysql-user-password-verification' => 'Подтверждение парол... | 39,913 |
https://github.com/NRB-Tech/RxAndroidBle/blob/master/rxandroidble/src/main/java/io/nrbtech/rxandroidble/internal/util/LocationServicesStatusApi31.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | RxAndroidBle | NRB-Tech | Java | Code | 160 | 606 | package io.nrbtech.rxandroidble.internal.util;
import android.annotation.TargetApi;
import io.nrbtech.rxandroidble.ClientComponent;
import bleshadow.javax.inject.Inject;
import bleshadow.javax.inject.Named;
@TargetApi(31 /* Build.VERSION_CODES.S */)
public class LocationServicesStatusApi31 implements LocationServic... | 18,763 |
https://github.com/KumbiaPHP/KumbiaPHP/blob/master/core/kumbia/kumbia_version.php | Github Open Source | Open Source | BSD-3-Clause | 2,023 | KumbiaPHP | KumbiaPHP | PHP | Code | 97 | 232 | <?php
/**
* KumbiaPHP web & app Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.
*
* @category Kumbia
* @package Core
*
* @copyright Copyright (c) 2005 - 2023 KumbiaPHP Team (http://www.kumbiaphp.com)
* @license ht... | 4,406 |
https://github.com/zerojuls/vuesax/blob/master/src/components/vsTabsNew/vsTabs.vue | Github Open Source | Open Source | MIT | 2,018 | vuesax | zerojuls | Vue | Code | 100 | 497 | <template lang="html">
<div class="con-vs-tabs vs-tabs" :class="[`vs-tabs-${vsColor}`]" >
<div class="con-ul-tabs">
<ul class="ul-tabs">
<li :class="{'activeChild':childActive == index}" @click="activeChild($event,index)" v-for="(child,index) in children">
<button
v-bind="child.attrs"
... | 29,242 |
https://github.com/neuroidss/lnwallet/blob/master/app/src/main/java/com/lightning/walletapp/lnutils/ImplicitConversions.scala | Github Open Source | Open Source | Apache-2.0 | 2,019 | lnwallet | neuroidss | Scala | Code | 203 | 874 | package com.lightning.walletapp.lnutils
import com.lightning.walletapp.Utils.app
import language.implicitConversions
import fr.acinq.bitcoin.BinaryData
import android.text.Html
object ImplicitConversions {
implicit def string2Ops(raw: String): StringOps = new StringOps(raw)
implicit def bitcoinLibScript2bitcoinj... | 35,789 |
https://github.com/dylanfernandezdelara/Twitter/blob/master/twitter/View Controllers/ComposeViewController.h | Github Open Source | Open Source | Apache-2.0 | null | Twitter | dylanfernandezdelara | C | Code | 57 | 209 | //
// ComposeViewController.h
// twitter
//
// Created by dylanfdl on 6/29/21.
// Copyright © 2021 Emerson Malca. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Tweet.h"
NS_ASSUME_NONNULL_BEGIN
@protocol ComposeViewControllerDelegate
- (void)didTweet: (Tweet *)tweet;
@end
@interface ComposeViewContro... | 34,109 |
https://github.com/thecoderszone/php-vcr/blob/master/src/VCR/Request.php | Github Open Source | Open Source | MIT | null | php-vcr | thecoderszone | PHP | Code | 763 | 2,366 | <?php
namespace VCR;
use Assert\Assertion;
use VCR\Exceptions\InvalidHostException;
/**
* Encapsulates a HTTP request.
*/
class Request
{
/**
* @var string
*/
protected $method;
/**
* @var string|null
*/
protected $url;
/**
* @var array<string,string>
*/
protec... | 30,471 |
https://github.com/hoangquan123/nhacbaihoc/blob/master/quanly.php | Github Open Source | Open Source | MIT | 2,019 | nhacbaihoc | hoangquan123 | PHP | Code | 284 | 1,244 | <?php
session_start();
if(!isset($_SESSION['login'])) {
header('LOCATION:login.php'); die();
}
$errors = "";
// connect to database
$db = mysqli_connect("localhost", "ztracngh_todo", "123Zxcvbnm", "ztracngh_todo");
// insert a quote if submit button is clicked
if (isset($_POST['submit'])) ... | 44,016 |
https://github.com/JackyCSer/MyNDPlanner/blob/master/data/benchmarks-pond/ctp_07_500_T.sas | Github Open Source | Open Source | Apache-2.0 | 2,022 | MyNDPlanner | JackyCSer | null | Spoken | 20,000 | 65,529 | begin_version 3.POND end_version begin_metric 0 end_metric 1074 begin_variable var0 -1 491 Atom current-loc(loc1) Atom current-loc(loc10) Atom current-loc(loc100) Atom current-loc(loc101) Atom current-loc(loc102) Atom current-loc(loc103) Atom current-loc(loc104) Atom current-loc(loc105) Atom current-loc(loc106) Atom cu... | 37,729 |
https://github.com/joshuakfarrar/vets-website/blob/master/src/applications/health-care-questionnaire/questionnaire/components/veteran-info/VeteranInfoReviewPage.jsx | Github Open Source | Open Source | CC0-1.0 | 2,022 | vets-website | joshuakfarrar | null | Spoken | 145 | 494 | import React from 'react';
import moment from 'moment';
import { genderLabels } from 'platform/static-data/labels';
import { formatPhoneNumber, addressToDisplay } from './utils';
const phonesToDisplay = phones => {
if (!phones) {
return [];
}
return phones.filter(f => f.data).map(phone => {
return {
... | 51,933 |
https://github.com/clccc/codepropertygraph/blob/master/enhancements/src/main/scala/io/shiftleft/passes/methoddecorations/MethodDecoratorPass.scala | Github Open Source | Open Source | Apache-2.0 | null | codepropertygraph | clccc | Scala | Code | 164 | 754 | package io.shiftleft.passes.methoddecorations
import gremlin.scala._
import io.shiftleft.codepropertygraph.generated.{EdgeTypes, NodeKeys, NodeTypes, nodes}
import io.shiftleft.passes.CpgPass
import io.shiftleft.queryprimitives.steps.Implicits._
import org.apache.tinkerpop.gremlin.structure.Direction
object MethodDec... | 48,341 |
https://github.com/c42f/displaz/blob/master/src/fileloader.h | Github Open Source | Open Source | BSD-3-Clause | 2,023 | displaz | c42f | C++ | Code | 584 | 1,682 | // Copyright 2015, Christopher J. Foster and the other displaz contributors.
// Use of this code is governed by the BSD-style license found in LICENSE.txt
#ifndef DISPLAZ_POINTINPUT_INCLUDED
#define DISPLAZ_POINTINPUT_INCLUDED
#include <memory>
#include <QFile>
#include <QFileInfo>
#include <QObject>
#include <QStri... | 16,195 |
https://github.com/tvrc4m/haitao/blob/master/script/mbox.js | Github Open Source | Open Source | MIT | 2,016 | haitao | tvrc4m | JavaScript | Code | 126 | 515 | function mbox(id){
GenerateHtml(id);
btnNo();
}
var GenerateHtml = function (id) {
var _html = '<div id="mb_box"></div><div id="mb_con"><img id="code" src="" /></div>';
$("body").append(_html);
if(id=="shopcode"){
$("#mb_con img").attr("src","api/share_qrcode.php?type=product&pid=580&rand=8747")
}
if(id=="foll... | 8,951 |
https://github.com/lena1687/furniture-store/blob/master/bitrix/modules/sale/handlers/paysystem/billen/handler.php | Github Open Source | Open Source | MIT | null | furniture-store | lena1687 | PHP | Code | 43 | 233 | <?php
namespace Sale\Handlers\PaySystem;
use Bitrix\Main\Localization\Loc;
use Bitrix\Sale;
use Bitrix\Sale\PaySystem;
use Bitrix\Main\Loader;
Loader::registerAutoLoadClasses('sale', array(PaySystem\Manager::getClassNameFromPath('Bill') => 'handlers/paysystem/bill/handler.php'));
Loc::loadMessages(__FILE__);
class ... | 25,840 |
https://github.com/Hadden-Industries/oracle/blob/master/USERS/RD/FUNCTIONS/ORACLE_NAME.sql | Github Open Source | Open Source | MIT, Apache-2.0 | 2,023 | oracle | Hadden-Industries | SQL | Code | 29 | 142 | CREATE OR REPLACE
FUNCTION ORACLE_NAME(gObject_Name IN VARCHAR2)
RETURN VARCHAR2
DETERMINISTIC PARALLEL_ENABLE
AS
PRAGMA UDF;
BEGIN
RETURN SUBSTRB
(
REGEXP_REPLACE
(
UPPER(gObject_Name),
'[^ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789$#_]',
''
... | 31,148 |
https://github.com/RISCSoftware/cpacs_tigl_gen/blob/master/test/data/documentation/ref.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | cpacs_tigl_gen | RISCSoftware | C++ | Code | 662 | 1,773 | // Copyright (c) 2020 RISC Software GmbH
//
// This file was generated by CPACSGen from CPACS XML Schema (c) German Aerospace Center (DLR/SC).
// Do not edit, all changes are lost when files are re-generated.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in com... | 53,033 |
https://github.com/odanylevskyi/currency-fair-task/blob/master/models/interfaces/Observer.php | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0 | 2,016 | currency-fair-task | odanylevskyi | PHP | Code | 27 | 83 | <?php
/**
* Created by PhpStorm.
* Author: Oleksii Danylevskyi <aleksey@danilevsky.com>
* Date: 17/09/2016
* Time: 18:39
*/
namespace app\models\interfaces;
interface Observer
{
public function notify();
} | 8,377 |
https://github.com/akhilnayak0206/RajhansDashboard/blob/master/src/store/actions/actions.js | Github Open Source | Open Source | MIT | null | RajhansDashboard | akhilnayak0206 | JavaScript | Code | 53 | 171 | import OnAuth from './OnAuth';
import OnGetData from './OnGetData';
import OnSetData from './OnSetData';
import OnAddData from './OnAddData';
import OnDeleteData from './OnDeleteData';
import OnTotalData from './OnTotalData';
import OnUploadWings from './OnUploadWings';
import OnDownload from './OnDownload';
import OnS... | 19,981 |
https://github.com/mallikarjuna54/Thunder/blob/master/Source/core/Timer.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | Thunder | mallikarjuna54 | C | Code | 1,100 | 3,437 | /*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 Metrological
*
* 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... | 9,317 |
https://github.com/neat-soft/tsuru/blob/master/vendor/gopkg.in/amz.v3/ec2/ec2test/tags.go | Github Open Source | Open Source | LGPL-3.0-or-later, LGPL-3.0-linking-exception, BSD-3-Clause | 2,019 | tsuru | neat-soft | Go | Code | 413 | 1,161 | // The ec2test package implements a fake EC2 provider with
// the capability of inducing errors on any given operation,
// and retrospectively determining what operations have been
// carried out.
//
// This file contains code handling AWS API for tagging resources.
package ec2test
import (
"encoding/xml"
"net/http"... | 19,424 |
https://github.com/Ksheersha/search-restaurants/blob/master/app/core/rest/rest.service.js | Github Open Source | Open Source | MIT | null | search-restaurants | Ksheersha | JavaScript | Code | 25 | 98 | 'use strict';
angular.
module('core.rest').
factory('Rest', ['$resource',
function($resource) {
return $resource('restaurants/:restId.json', {}, {
query: {
method: 'GET',
params: {restId: 'restaurants'},
isArray: true
}
});
}
]);
| 8,959 |
https://github.com/edgarcai/quickfix/blob/master/fix42/massquote/MassQuote.go | Github Open Source | Open Source | BSD-2-Clause | 2,015 | quickfix | edgarcai | Go | Code | 368 | 1,262 | //Package massquote msg type = i.
package massquote
import (
"github.com/quickfixgo/quickfix"
"github.com/quickfixgo/quickfix/fix"
"github.com/quickfixgo/quickfix/fix/field"
)
//Message is a MassQuote wrapper for the generic Message type
type Message struct {
quickfix.Message
}
//QuoteReqID is a non-required fie... | 37,967 |
https://github.com/Skwai/bitext/blob/master/functions/src/notify/Notify.ts | Github Open Source | Open Source | MIT | 2,018 | bitext | Skwai | TypeScript | Code | 455 | 1,324 | // https://cloud.google.com/nodejs/docs/reference/firestore/0.8.x/QuerySnapshot
import 'isomorphic-fetch'
import * as Twilio from 'twilio'
const COINDESK_API_URL = 'https://api.coindesk.com/v1/bpi/currentprice.json'
const LT = 'LT'
const GT = 'GT'
interface TwilioConfig {
authtoken: string
accountsid: string
}
... | 55,963 |
https://github.com/AmirBouzouina/testing/blob/master/vendor/tcg/voyager/resources/views/formfields/select_dropdown.blade.php | Github Open Source | Open Source | MIT | 2,022 | testing | AmirBouzouina | PHP | Code | 300 | 1,148 | @if(isset($options->relationship))
{{-- If this is a relationship and the method does not exist, show a warning message --}}
@if( !method_exists( $dataType->model_name, \Illuminate\Support\Str::camel($row->field) ) )
<p class="label label-warning"><i class="voyager-warning"></i> {{ __('voyager::form.fi... | 23,674 |
https://github.com/ronnyp07/dmedicare/blob/master/public/modules/headermasters/controllers/headermasters.client.controller.js | Github Open Source | Open Source | MIT | 2,020 | dmedicare | ronnyp07 | JavaScript | Code | 130 | 590 | 'use strict';
// Headermasters controller
angular.module('headermasters').controller('HeadermastersController',
['$scope',
'$stateParams',
'$location',
'Authentication',
'Headermasters',
function(
$scope,
$stateParams,
$location,
Authentication,
Headermasters) {
$scope.authentication ... | 25,456 |
https://github.com/olegxtend/spring-boot-samples/blob/master/spring-boot-api-passthrough/src/main/java/com/example/api/smartystreets/resp/CityState.java | Github Open Source | Open Source | MIT | 2,022 | spring-boot-samples | olegxtend | Java | Code | 98 | 260 | package com.example.api.smartystreets.resp;
import java.util.Objects;
public class CityState {
private String city;
// default constructor needed for JPA
public CityState(){}
public CityState(String city){
this.city = city;
}
public String getCity() {
return city;
}
... | 13,495 |
https://github.com/dnhua/Linux_study/blob/master/linux-2.6.0/include/asm-i386/bug.h | Github Open Source | Open Source | MIT | 2,020 | Linux_study | dnhua | C | Code | 118 | 328 | #ifndef _I386_BUG_H
#define _I386_BUG_H
#include <linux/config.h>
/*
* Tell the user there is some problem.
* The offending file and line are encoded after the "officially
* undefined" opcode for parsing in the trap handler.
*/
#if 1 /* Set to zero for a slightly smaller kernel */
#define BUG() \
__asm__ __v... | 19,722 |
https://github.com/olkrash/Trainee/blob/master/app/Mail/DeleteUser.php | Github Open Source | Open Source | MIT | null | Trainee | olkrash | PHP | Code | 59 | 208 | <?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\App;
class DeleteUser extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
*/
... | 3,863 |
https://github.com/Brest-Java-Course-2021/aderenchuk-travel.agency/blob/master/dao/src/main/resources/sql/client/findAll.sql | Github Open Source | Open Source | Apache-2.0 | 2,021 | aderenchuk-travel.agency | Brest-Java-Course-2021 | SQL | Code | 7 | 21 | SELECT CLIENT_ID, FIRSTNAME, LASTNAME, TOUR_ID FROM CLIENT | 12,293 |
https://github.com/duckdb/duckdb/blob/master/examples/jdbc/DuckDBExample.java | Github Open Source | Open Source | MIT | 2,023 | duckdb | duckdb | Java | Code | 137 | 461 | import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
public class DuckDBExample {
public static void main(String[] args) throws SQLException, ClassNotFound... | 55,340 |
https://github.com/RigoBlock/rigoblock-monorepo/blob/master/packages/dapp/test/pages/preferences.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | rigoblock-monorepo | RigoBlock | JavaScript | Code | 65 | 357 | let I
module.exports = {
_init() {
I = require('../steps')()
},
navigateTo() {
I.navigateToUrl('/preferences')
},
assertImOnPage() {
I.waitInUrl('/preferences', 5)
I.waitForText('Preferences', 5, 'div.page-main-content h1')
},
async grabTimezoneValue() {
let timezone = await I.grab... | 42,945 |
https://github.com/fuse-open/uno/blob/master/tests/compiler/General/ParameterModifiers.uno | Github Open Source | Open Source | MIT | 2,023 | uno | fuse-open | null | Spoken | 188 | 554 | class Main
{
class Class
{
}
void Value(int x)
{
}
void Out(out int x)
{
x = 123;
}
void Ref(ref int x)
{
}
void Const(const int x)
{
}
void Value(Class x)
{
}
void Out(out Class x)
{
x = new Class();
}
void R... | 7,313 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.