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/mjellma/JDBCLY/blob/master/src/main/java/com/jdbcly/jdbc/JdbclyColumn.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | JDBCLY | mjellma | Java | Code | 150 | 649 | package com.jdbcly.jdbc;
import com.jdbcly.core.ESqlDataType;
import com.jdbcly.core.ResultItem;
import java.sql.DatabaseMetaData;
/**
* Date: 6/27/2020
*/
public class JdbclyColumn {
public static final int DEFAULT_COLUMN_SIZE = 500;
private JdbclyTable table;
private String name;
private ESqlDat... | 35,013 |
https://github.com/muthukumaravel7/armnn/blob/master/Documentation/structarmnn_1_1_layer_type_of_impl_3_01_layer_type_1_1_permute_01_4.js | Github Open Source | Open Source | MIT | null | armnn | muthukumaravel7 | JavaScript | Code | 10 | 109 | var structarmnn_1_1_layer_type_of_impl_3_01_layer_type_1_1_permute_01_4 =
[
[ "Type", "structarmnn_1_1_layer_type_of_impl_3_01_layer_type_1_1_permute_01_4.xhtml#acd37bf8aa844f8dfcd48ae156ba3090f", null ]
]; | 6,737 |
https://github.com/yunheL/grpc/blob/master/examples/cpp/helloworld/scripts/rtt_int.sh | Github Open Source | Open Source | Apache-2.0 | 2,017 | grpc | yunheL | Shell | Code | 17 | 57 | #!/bin/bash
OUTFILE="output/rtt_int"
#pre commands
rm $OUTFILE
touch $OUTFILE
for i in {1..100}; do
./greeter_client >> $OUTFILE
done
| 12,868 |
https://github.com/epsniff/qlbridge/blob/master/lex/dialect_expr_test.go | Github Open Source | Open Source | MIT | null | qlbridge | epsniff | Go | Code | 290 | 1,355 | package lex
import (
//u "github.com/araddon/gou"
"github.com/bmizerany/assert"
"testing"
)
func tokenexpr(lexString string, runLex StateFn) Token {
l := NewLexer(lexString, ExpressionDialect)
runLex(l)
return l.NextToken()
}
func verifyExprTokens(t *testing.T, expString string, tokens []Token) {
l := NewLexe... | 32,039 |
https://github.com/Glider2355/assessment/blob/master/tetris.js | Github Open Source | Open Source | MIT | null | assessment | Glider2355 | JavaScript | Code | 782 | 2,265 | document.addEventListener('keydown', audioPlay);
function audioPlay() {
document.getElementById('audio').play();
document.removeEventListener('keydown', audioPlay);
}
let FIELD_COL = 10;
let FIELD_ROW = 20;
const BLOCK_SIZE = 30;
const GAME_SPEED = 1000;
const SCREEN_W = BLOCK_SIZE * FIELD_COL;
const SCREEN_H =... | 8,415 |
https://github.com/fuxingloh/submarine/blob/master/webapp/src/containers/TokensPage/components/TokenList/index.tsx | Github Open Source | Open Source | MIT | 2,021 | submarine | fuxingloh | TSX | Code | 219 | 712 | import React, { useState, useEffect } from 'react';
import { I18n } from 'react-redux-i18n';
import { Row, Col } from 'reactstrap';
import cloneDeep from 'lodash/cloneDeep';
import Pagination from '../../../../components/Pagination';
import { filterByValue } from '../../../../utils/utility';
import { TOKEN_LIST_PAGE_... | 10,671 |
https://github.com/ittennull/MongoDb.Bson.NodaTime/blob/master/test/MongoDb.Bson.NodaTime.Tests/ZonedDateTimeSerializerTests.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | MongoDb.Bson.NodaTime | ittennull | C# | Code | 161 | 753 | using System;
using MongoDB.Bson;
using MongoDB.Bson.Serialization;
using NodaTime;
using Xunit;
using FluentAssertions;
namespace MongoDb.Bson.NodaTime.Tests
{
public class ZonedDateTimeSerializerTests
{
private readonly static DateTimeZone easternTimezone = DateTimeZoneProviders.Tzdb.GetZoneOrNull("... | 23,574 |
https://github.com/amarallab/ResearchKit/blob/master/samples/ORKParkinsonStudy/ORKParkinsonStudy/Graphs/GraphViewController.swift | Github Open Source | Open Source | BSD-3-Clause | 2,022 | ResearchKit | amarallab | Swift | Code | 764 | 2,384 | /*
Copyright (c) 2018, Apple Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the follow... | 11,766 |
https://github.com/skycper/agg/blob/master/app/Http/Controllers/RecordController.php | Github Open Source | Open Source | MIT | 2,016 | agg | skycper | PHP | Code | 233 | 693 | <?php
namespace App\Http\Controllers;
use App\Pet;
use App\Record;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Repositories\RecordRepository;
class RecordController extends Controller
{
/**
* The record repository instance.
*
* @var RecordRepo... | 41,597 |
https://github.com/usyandini/kancabasabri-2/blob/master/public/app-assets/js/scripts/tables/jsgrid/jsgrid.min.js | Github Open Source | Open Source | MIT | 2,017 | kancabasabri-2 | usyandini | JavaScript | Code | 705 | 2,435 | $(document).ready(function() {
$("#basicScenario").jsGrid( {
width:"100%",
height:"400px",
filtering:!0,
sorting:!0,
autoload:!0,
controller:db,
fields:[
{ name: "Tanggal", type: "text", width: 150 },
{ name: "Jumlah", type: "numb... | 42,745 |
https://github.com/elsatch/equipment-db/blob/master/db/migrate/20130106110939_add_asset_code_field_to_devices.rb | Github Open Source | Open Source | MIT | 2,013 | equipment-db | elsatch | Ruby | Code | 12 | 40 | class AddAssetCodeFieldToDevices < ActiveRecord::Migration
def change
add_column :devices, :asset_code, :text
end
end
| 27,534 |
https://github.com/credmond-git/Gestalt/blob/master/gestalt-core/src/test/java/org/github/gestalt/config/decoder/LocalDateTimeDecoderTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | Gestalt | credmond-git | Java | Code | 340 | 1,737 | package org.github.gestalt.config.decoder;
import org.github.gestalt.config.entity.ValidationLevel;
import org.github.gestalt.config.exceptions.GestaltException;
import org.github.gestalt.config.lexer.SentenceLexer;
import org.github.gestalt.config.node.ConfigNodeService;
import org.github.gestalt.config.node.LeafNode... | 24,033 |
https://github.com/tanishiking/dotty/blob/master/tests/pos/i2554.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | dotty | tanishiking | Scala | Code | 93 | 275 | object foo {
trait ShapeLevel
trait FlatShapeLevel extends ShapeLevel
trait ColumnsShapeLevel extends FlatShapeLevel
abstract class Shape[Level <: ShapeLevel, -Mixed, Unpacked, Packed]
object Shape extends TupleShapeImplicits
trait TupleShapeImplicits {
implicit final def tuple2Shape[Level <: ShapeLevel... | 25,197 |
https://github.com/weijietong/noisepage/blob/master/test/execution/util_bit_vector_test.cpp | Github Open Source | Open Source | MIT | 2,022 | noisepage | weijietong | C++ | Code | 1,607 | 5,513 | #include <random>
#include <unordered_set>
#include <vector>
#include "execution/tpl_test.h"
#include "execution/util/bit_vector.h"
namespace noisepage::execution::util::test {
namespace {
// Verify that the callback returns true for all set bit indexes
template <typename BitVectorType, typename F>
::testing::Asser... | 23,959 |
https://github.com/DVS-devtools/DcbSdk-iOS/blob/master/Application Test/ViewController.swift | Github Open Source | Open Source | MIT | null | DcbSdk-iOS | DVS-devtools | Swift | Code | 231 | 744 | //
// ViewController.swift
// DCBExternalApplication
//
// Created by Pierre Jonny Cau on 12/03/2020.
// Copyright © 2020 Buongiorno. All rights reserved.
//
import DCBApiExt
import Newton
import UIKit
class ViewController: UIViewController {
@IBOutlet var logTextView: UITextView!
@IBOutlet var resetButto... | 36,932 |
https://github.com/IsraelAugusto0110/Web_Apps/blob/master/FullStackApp-React-SpringBoot-Mysql/springboot-backend/src/main/java/com/fatec/springbootbackend/model/Employee.java | Github Open Source | Open Source | MIT | null | Web_Apps | IsraelAugusto0110 | Java | Code | 112 | 346 | package com.fatec.springbootbackend.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "employees")
public class Employee {
@Id
@... | 24,239 |
https://github.com/rgfaber/m5x-sdk/blob/master/src/M5x.Swagger/EnVars.cs | Github Open Source | Open Source | MIT | 2,021 | m5x-sdk | rgfaber | C# | Code | 20 | 99 | namespace M5x.Swagger;
public static class EnVars
{
public const string OPENAPI_DONOT_USE_FULL_TYPE_NAMES = "OPENAPI_DONOT_USE_FULL_TYPE_NAMES";
public const string OPENAPI_DONOT_FILTER_NAMESPACE_SCHEMA = "OPENAPI_DONOT_FILTER_NAMESPACE_SCHEMA";
} | 15,744 |
https://github.com/lconstan/Abc.MoqComplete/blob/master/Abc.MoqComplete/Abc.MoqComplete.Tests/Completion/ItIsAnyProviderActionTests.cs | Github Open Source | Open Source | MIT | 2,022 | Abc.MoqComplete | lconstan | C# | Code | 42 | 243 | using JetBrains.ReSharper.FeaturesTestFramework.Completion;
using JetBrains.ReSharper.TestFramework;
using NUnit.Framework;
namespace Abc.MoqComplete.Tests.Completion
{
[TestNetCore21("Moq/4.10.1")]
public class ItIsAnyProviderActionTests : CodeCompletionTestBase
{
protected override CodeCompletio... | 5,279 |
https://github.com/tbarker9/gradle-bintray-plugin/blob/master/src/test/groovy/com/jfrog/bintray/gradle/BintrayPluginSpec.groovy | Github Open Source | Open Source | Apache-2.0 | 2,013 | gradle-bintray-plugin | tbarker9 | Groovy | Code | 447 | 1,663 | package com.jfrog.bintray.gradle
import org.gradle.api.Action
import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.testfixtures.ProjectBuilder
import spock.lang.Specification
import static com.jfrog.bintray.gradle.BintrayUploadTask.*
class BintrayPluginSpec extends Specification {
Project p... | 26,653 |
https://github.com/notima/bankgiro-api/blob/master/src/main/java/org/notima/bg/lb/LbTk16Record.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | bankgiro-api | notima | Java | Code | 556 | 1,713 | /** ===================================================================
Bankgiro Java API
Copyright (C) 2009 Daniel Tamm
Notima Consulting Group Ltd
Copyright (C) 2019 Notima System Integration AB
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file ... | 18,213 |
https://github.com/ncovercash/sample_projects/blob/master/a_plus_b/php/a_plus_b.php | Github Open Source | Open Source | MIT | 2,017 | sample_projects | ncovercash | PHP | Code | 41 | 155 | <?php
function a_plus_b() {
echo "Enter 2 numbers seperated by spaces: ";
$input = readline();
$explodedArr = explode(" ", $input);
function remove_empty_vals($value) {
return strlen($value) != 0;
}
$filtered_arr = array_values(array_filter($explodedArr, remove_empty_vals));
return (intval($filtered_arr[0... | 25,258 |
https://github.com/knocte/Xamarin.Forms/blob/master/Xamarin.Forms.Core/ContentView.cs | Github Open Source | Open Source | MIT | 2,017 | Xamarin.Forms | knocte | C# | Code | 66 | 214 | namespace Xamarin.Forms
{
[ContentProperty("Content")]
public class ContentView : TemplatedView
{
public static readonly BindableProperty ContentProperty = BindableProperty.Create(nameof(Content), typeof(View), typeof(ContentView), null, propertyChanged: TemplateUtilities.OnContentChanged);
public View Content
... | 47,363 |
https://github.com/wbitos/funambol/blob/master/Funambol/source/common/event/FireEvent.cpp | Github Open Source | Open Source | MIT | null | funambol | wbitos | C++ | Code | 738 | 2,175 | /*
* Funambol is a mobile platform developed by Funambol, Inc.
* Copyright (C) 2003 - 2007 Funambol, Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by
* the Free Software Foundation with the addit... | 30,151 |
https://github.com/916-Maria-Popescu/Fundamental-of-Programming/blob/master/HW2 - Complex numbers/main.py | Github Open Source | Open Source | MIT | null | Fundamental-of-Programming | 916-Maria-Popescu | Python | Code | 671 | 1,308 | '''
Implement a menu-driven console application that provides the following functionalities:
1. Read a list of complex numbers (in z = a + bi form) from the console.
2. Display the entire list of numbers on the console.
3. Display on the console the longest sequence that observes a given property. Each student... | 14,858 |
https://github.com/DrJohnMelville/Melville/blob/master/src/Melville.MVVM.Wpf/MouseDragging/Drag/DragHandler.cs | Github Open Source | Open Source | MIT | 2,023 | Melville | DrJohnMelville | C# | Code | 115 | 390 | using System;
using System.Windows;
using System.Windows.Input;
using Melville.INPC;
namespace Melville.MVVM.Wpf.MouseDragging.Drag;
public partial class DragHandler
{
[FromConstructor]private readonly IMouseDataSource source;
public DragDropEffects InitiateDrag(IDataObject dataToDrag, DragDropEffects allowedE... | 48,333 |
https://github.com/hhistor/GAFS/blob/master/setup.py | Github Open Source | Open Source | MIT | 2,021 | GAFS | hhistor | Python | Code | 20 | 153 | from setuptools import setup
setup(name='gafs',
version='0.0.2',
description='Genetic algorigthm feature selection.',
url='https://github.com/Shemka/GAFS',
packages=['gafs'],
author='Alexander Shemchuk',
author_email='sheminy32@gmail.com',
license='MIT',
install_requires... | 50,322 |
https://github.com/gingraslab/pep2gene/blob/master/match/peptides.go | Github Open Source | Open Source | MIT | null | pep2gene | gingraslab | Go | Code | 346 | 1,126 | // Package match contains matching algorithms for peptides and proteins
package match
import (
"strings"
"github.com/gingraslab/pep2gene/digestion"
"github.com/gingraslab/pep2gene/helpers"
"github.com/gingraslab/pep2gene/types"
)
// addPeptide intializes a gene entry if it doesn't exist add adds
// a peptide to ... | 15,429 |
https://github.com/edzzn/ucuenca.js/blob/master/index.js | Github Open Source | Open Source | MIT | 2,019 | ucuenca.js | edzzn | JavaScript | Code | 199 | 716 | const querystring = require('querystring');
const http = require('http');
const BASE_URL = "http://evaluacion.ucuenca.edu.ec/ucuenca-rest-ws/api/v1/"
class Ucuenca {
careers(object, callback) {
const params = {
idEstudiante: object['studentId']
}
const response = this.get('registroacademico', par... | 21,053 |
https://github.com/anuruddhal/wso2-api-manager-plugins/blob/master/wso2-ready-api-plugin/src/main/java/org/wso2/apiManager/plugin/workspace/AddAPIFromAPIManagerAction.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | wso2-api-manager-plugins | anuruddhal | Java | Code | 387 | 1,624 | /*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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/li... | 28,764 |
https://github.com/lahammond/BrainJ/blob/master/src/main/resources/scripts/Plugins/BrainJ/5_Registration_and_Atlas_Analysis_(Batch_Process).ijm | Github Open Source | Open Source | MIT | 2,023 | BrainJ | lahammond | ImageJ Macro | Code | 20,000 | 64,747 | // 3D Registration, Cell Detection and Atlas Registration // Author: Luke Hammond // Cellular Imaging | Zuckerman Institute, Columbia University // Date: 1st November 2017 // This pipeline makes use of the following plugins: // StackReg // MulitstackReg // Attentuation Correction (can run without) // Initialization req... | 33,798 |
https://github.com/Silhm/ecct-livestream-bundle/blob/master/src/graphics/background-component/background-ctrl.js | Github Open Source | Open Source | MIT | null | ecct-livestream-bundle | Silhm | JavaScript | Code | 53 | 189 | import Vue from 'vue';
import BackgroundCtrl from './background-ctrl.vue';
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
import { BootstrapVue, IconsPlugin } from 'bootstrap-vue'
import moment from 'moment'
import VueMoment from 'vue-moment';
Vue.prototype.moment = moment
... | 22,362 |
https://github.com/kenjiwebdev/pomodoro-overload/blob/master/src/components/CountPomodoro.js | Github Open Source | Open Source | MIT | null | pomodoro-overload | kenjiwebdev | JavaScript | Code | 78 | 263 | import React from 'react';
import Spinner from 'react-bootstrap/Spinner'
//Allows user to visually see how many Pomodoro they have done.
function CountPomodoro(props) {
let spinner = <Spinner animation="grow" />
let spinnerArr = [];
function showPomdoroCount(num) {
for (let i = 0; i < num; i++) {
spinnerArr.... | 6,265 |
https://github.com/js1998/python-snake/blob/master/app/util.py | Github Open Source | Open Source | MIT | 2,019 | python-snake | js1998 | Python | Code | 1,455 | 3,611 | def calculate_direction(dest, headPos):
dest_x = dest["x"]
dest_y = dest["y"]
headpos_x = headPos["x"]
headpos_y = headPos["y"]
return abs(dest_x - headpos_x) + abs(dest_y - headpos_y)
def score_move(head, occupied, direction, width=0, height=0):
""" Gives a score for a given direction based... | 31,975 |
https://github.com/xfleckx/EventSourcing/blob/master/EventSourcedInvoice/Events/CustomerAdded.cs | Github Open Source | Open Source | MIT | null | EventSourcing | xfleckx | C# | Code | 43 | 123 | using EventSourcedInvoice.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EventSourcedInvoice
{
public class CustomerAdded : ADomainEvent
{
public string Name { get; set; }
public CustomerAdded(string name, ... | 3,192 |
https://github.com/EasyAbp/EShop/blob/master/plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.Application.Contracts/EasyAbp/EShop/Plugins/Booking/BookingProductGroupDefinitions/Dtos/BookingProductGroupDefinitionDto.cs | Github Open Source | Open Source | MIT | 2,023 | EShop | EasyAbp | C# | Code | 17 | 63 | using System;
namespace EasyAbp.EShop.Plugins.Booking.BookingProductGroupDefinitions.Dtos;
[Serializable]
public class BookingProductGroupDefinitionDto
{
public string ProductGroupName { get; set; }
} | 29,575 |
https://github.com/snigle/corsaire/blob/master/app/src/main/java/eu/snigle/corsaire/itinerary/details/TransitStep.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | corsaire | snigle | Java | Code | 76 | 345 | package eu.snigle.corsaire.itinerary.details;
import android.content.Context;
import org.json.JSONException;
import org.json.JSONObject;
import eu.snigle.corsaire.R;
/**
* Created by lamarchelu on 05/05/16.
*/
public class TransitStep extends Step {
public final String departureTime;
public TransitStep(Co... | 49,828 |
https://github.com/74hc595/Numitron-Clock/blob/master/code/delay.h | Github Open Source | Open Source | BSD-3-Clause | 2,018 | Numitron-Clock | 74hc595 | C | Code | 54 | 251 | /**
* delay.h
*
* Implements stalls/delays using MRT channel 3.
*/
#ifndef DELAY_H_
#define DELAY_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "stdint.h"
#include "LPC8xx.h"
#define us_to_ticks(us) (((unsigned long long)__SYSTEM_CLOCK*(us))/1000000)
#define ms_to_ticks(ms) us_to_ticks((ms)*1000)
void stal... | 5,445 |
https://github.com/zieadshabkalieh/zieadshabkalieh-oauth2clientziead/blob/master/oauth2client/contrib/dictionary_storage.py | Github Open Source | Open Source | MIT | 2,022 | zieadshabkalieh-oauth2clientziead | zieadshabkalieh | Python | Code | 241 | 567 | # Copyright 2016 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 45,438 |
https://github.com/xunshengliuyin/ATwvo/blob/master/attvo/train.py | Github Open Source | Open Source | MIT | null | ATwvo | xunshengliuyin | Python | Code | 1,083 | 4,755 | # -*- coding: utf-8 -*-
import os
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
import torch
import sys
import time
import os.path as osp
import numpy as np
from tensorboardX import SummaryWriter
from tools.options import Options
from torchvision import transforms, models
#fro... | 34,732 |
https://github.com/Francisco-BT/ChallengeServer/blob/master/server/src/routes/v1/roles.js | Github Open Source | Open Source | Unlicense, MIT | null | ChallengeServer | Francisco-BT | JavaScript | Code | 43 | 127 | const { Role } = require('../../models');
const { RoleController } = require('../../controllers');
const { tokenAuthorization, roleAuthorization } = require('../../middlewares');
const controller = new RoleController(Role);
module.exports = (router) => {
router.use(tokenAuthorization());
router.use(roleAuthorizati... | 16,507 |
https://github.com/curiouslearning/Norad-Eduapp4syria/blob/master/Antura/EA4S_Antura_U3D/Assets/_games/ColorTickle/game_ColorTickle.unity | Github Open Source | Open Source | BSD-2-Clause, CC-BY-4.0, BSD-2-Clause-Views | 2,020 | Norad-Eduapp4syria | curiouslearning | Unity3D Asset | Code | 17,753 | 79,532 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
SceneSettings:
m_ObjectHideFlags: 0
m_PVSData:
m_PVSObjectsArray: []
m_PVSPortalsArray: []
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serialized... | 34,301 |
https://github.com/Valeriya-avt/tsar/blob/master/include/tsar/Analysis/Clang/MemoryMatcher.h | Github Open Source | Open Source | Apache-2.0 | null | tsar | Valeriya-avt | C | Code | 264 | 624 | //===- MemoryMatcher.h - High and Low Level Memory Matcher ------*- C++ -*-===//
//
// Traits Static Analyzer (SAPFOR)
//
// Copyright 2018 DVM System Group
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// ... | 9,370 |
https://github.com/toropippi/OceanFFT/blob/master/OceanFFT6Bubbles/Assets/Scripts/SurfaceShader.shader | Github Open Source | Open Source | Apache-2.0 | 2,021 | OceanFFT | toropippi | GLSL | Code | 363 | 1,323 | Shader "Custom/SurfaceShader" {
Properties{
_MainTexN("-" , 2D) = "black" {}
_MainTexB("-" , 2D) = "black" {}
}
SubShader{
Pass {
CGPROGRAM
// シェーダーモデルは5.0を指定
#pragma target 5.0
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
sampler2D _MainTexN;
sampler2D _MainTe... | 5,811 |
https://github.com/blumanski/bang/blob/master/tools/Awss3.php | Github Open Source | Open Source | MIT | 2,017 | bang | blumanski | PHP | Code | 821 | 2,319 | <?php
/**
* @author Oliver Blum <blumanski@gmail.com>
* @date 2016-04-03
*
* This class is a wrapper for aws s3 client.
* This class can get called from controllers to manage uploads/delete/listing of files
* on Amazon S3 Servers
*/
namespace Bang\Tools;
Use Bang\Helper;
class Awss3
{
/**
* S3 Client... | 11,955 |
https://github.com/mrlldd/hookr-rent-service/blob/master/Hookr/Hookr.Telegram/Utilities/Telegram/Caches/UserTemporaryStatus/UserTemporaryStatusCache.cs | Github Open Source | Open Source | Apache-2.0 | null | hookr-rent-service | mrlldd | C# | Code | 56 | 221 | using System;
using Hookr.Core.Utilities.Caches.Leveled;
using Hookr.Core.Utilities.Caching;
using Hookr.Core.Utilities.Providers;
namespace Hookr.Telegram.Utilities.Telegram.Caches.UserTemporaryStatus
{
public class UserTemporaryStatusCache : UserLevelCache<UserTemporaryStatus>
{
private const int Ti... | 39,606 |
https://github.com/alok87/learn/blob/master/docker/appjava/tprovsource/lib/tprov/app.rb | Github Open Source | Open Source | MIT | 2,015 | learn | alok87 | Ruby | Code | 263 | 826 | $: << File.dirname(__FILE__)
require 'sinatra'
require 'sinatra/url_for'
require 'sinatra/static_assets'
require 'sinatra/flash'
require 'sinatra/redirect_with_flash'
require 'json'
require 'uri'
module TProv
class Application < Sinatra::Base
register Sinatra::StaticAssets
register Sinatra::Flash
helpe... | 37,889 |
https://github.com/Hendrikto/Ludoku/blob/master/Cell.lua | Github Open Source | Open Source | MIT | 2,019 | Ludoku | Hendrikto | Lua | Code | 52 | 145 | -- author: Hendrik Werner
require "class"
Cell = class(function(cell, sudoku, row, column, block)
cell.value = 0
cell.sudoku = sudoku
cell.row = row
cell.column = column
cell.block = block
end)
function Cell:setValue(new_value)
self.value = new_value
end
function Cell:clear()
self.value = 0
end
funct... | 19,029 |
https://github.com/tomaszhofdun/eBayIntegration/blob/master/resources/sass/modules/_header.scss | Github Open Source | Open Source | MIT | null | eBayIntegration | tomaszhofdun | SCSS | Code | 51 | 160 | .header {
color: #fff;
background: $independence;
position: fixed;
top: 0;
z-index: 10;
width: 100vw;
&__bar {
@include atMedium {
display: flex;
}
}
i {
&:hover {
cursor: pointer;
}
}
&__logout {
background: $w... | 41,204 |
https://github.com/buiquangduy/laravel-doan-bqd/blob/master/resources/views/user/pages/search_detail.blade.php | Github Open Source | Open Source | MIT | null | laravel-doan-bqd | buiquangduy | PHP | Code | 90 | 577 | @extends('user.master')
@section('description','Đây là trang tim kiem sản phẩm')
@section('author','Bùi Quang Duy')
@section('content')
<div id="content">
@if($dem>0)
<div class="wrap_content">
<h2 class="title_box_1">Tim thay {{$dem}} san pham</h2>
<div class="clear"></div>
<div class="product_list">
... | 426 |
https://github.com/lordakshaya/Locker/blob/master/Connectors/WorkInProgress/GoodReads/client.js | Github Open Source | Open Source | BSD-3-Clause | 2,022 | Locker | lordakshaya | JavaScript | Code | 522 | 2,030 | /*
*
* Copyright (C) 2011, The Locker Project
* All rights reserved.
*
* Please see the LICENSE file for more information.
*
*/
/**
* Module dependencies.
*/
var fs = require('fs');
var express = require('express'),
connect = require('connect'),
app = express.createServer(
connect.bodyParser(),
... | 26,274 |
https://github.com/Haakenlid/tassen/blob/master/webpack/src/prodsys/components/storyimages/StoryImage.scss | Github Open Source | Open Source | Apache-2.0 | 2,021 | tassen | Haakenlid | SCSS | Code | 86 | 306 | .StoryImageItem {
margin: 0.3rem;
padding-bottom: 0.2rem;
border-bottom: 1px solid #bbb;
max-width: 100%;
display: grid;
grid-template-columns: 2.5rem 2fr 4fr;
grid-gap: 0.5rem;
.actions {
grid-row-start: 1;
grid-column-start: 1;
}
.PhotoWidget {
grid-column-start: 2;
.Thumb {
... | 33,746 |
https://github.com/camilodelvasto/xlib/blob/master/xcomponents/src/components/input/InputEmail.vue | Github Open Source | Open Source | MIT | null | xlib | camilodelvasto | Vue | Code | 158 | 626 | <template>
<div class="columns form-column__wrapper form-column__extra-padded input-line email-input-wrapper is-multiline">
<div class="column is-5 form-column__label-column input-label">
<label :for="`input-email_${_uid}`" class="label">{{label}}</label>
</div>
<div class="column is-5 form-column__... | 2,338 |
https://github.com/swils/verifast/blob/master/examples/termination/inter_module_loop.h | Github Open Source | Open Source | MIT | 2,022 | verifast | swils | C | Code | 59 | 126 | #ifndef INTER_MODULE_LOOP_H
#define INTER_MODULE_LOOP_H
int sqrt1(int x);
//@ requires 0 <= x;
//@ ensures result * result <= x && x < (result + 1) * (result + 1);
//@ terminates;
int sqrt2(int x);
//@ requires 0 <= x;
//@ ensures result * result <= x && x < (result + 1) * (result + 1);
//@ te... | 29,872 |
https://github.com/lcnvdl/emvicify-base/blob/master/src/package.js | Github Open Source | Open Source | MIT | null | emvicify-base | lcnvdl | JavaScript | Code | 14 | 42 | const drivers = require("./drivers/drivers");
const plugins = require("./plugins/plugins");
module.exports = {
drivers,
plugins
}; | 26,882 |
https://github.com/woakes070048/foodmarket/blob/master/private/checkAccess.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,017 | foodmarket | woakes070048 | PHP | Code | 268 | 773 | <?php
//
// Description
// -----------
// This function will check if the user has access to the landingpages module.
//
// Arguments
// ---------
// ciniki:
// business_id: The business ID to check the session user against.
// method: The requested method.
//
// Returns
// -------
... | 29,542 |
https://github.com/wildanie12/lpnumalang/blob/master/app/Views/mitra/detail.php | Github Open Source | Open Source | MIT | 2,021 | lpnumalang | wildanie12 | PHP | Code | 2,468 | 12,158 | <?php $this->extend('template/guest') ?>
<?php $this->section('content') ?>
<div class="container-fluid bg-white pb-1" style="box-shadow: 0px 0 18px 0px #00000024; position: relative;">
<div class="row">
<div class="col-md-6 pr-0 pl-0 mr-0">
<ul id="mitra-gallery" class="light-slider">
<?php
$galeri =... | 13,455 |
https://github.com/maraf/GitExtensions.BundleBackuper/blob/master/src/GitExtensions.BundleBackuper/Services/IGitBundleMapper.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | GitExtensions.BundleBackuper | maraf | C# | Code | 111 | 303 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GitExtensions.BundleBackuper.Services
{
/// <summary>
/// A service for mapping bundles to current repository.
/// </summary>
public interface IGitBundleMapper
{
//... | 36,716 |
https://github.com/koolzz/dot-files/blob/master/scripts/tasks.py | Github Open Source | Open Source | MIT | 2,018 | dot-files | koolzz | Python | Code | 237 | 771 | #!/usr/bin/env python
from sys import argv, exit as sysexit
from subprocess import check_output, CalledProcessError
def main():
if len(argv) != 2 and len(argv) != 3:
print('[ERROR] Please provide one argument, the glob path for files to search through. Optionally provide a second argument for comma separ... | 29,905 |
https://github.com/t4skforce/BSSP/blob/master/5d_Display/display.c | Github Open Source | Open Source | MIT | 2,017 | BSSP | t4skforce | C | Code | 98 | 333 | /*
* display.c
*
* Created on: Dec 19, 2016
*
* Authors:
* is141315 - Neumair Florian
* is141305 - Gimpl Thomas
*/
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "share.h"
int main(int argc, char *argv[]) {
char buff[MAX_M... | 23,933 |
https://github.com/geoscript/geoscript-groovy/blob/master/src/main/groovy/geoscript/layer/io/CsvWriter.groovy | Github Open Source | Open Source | MIT | 2,023 | geoscript-groovy | geoscript | Groovy | Code | 1,005 | 2,706 | package geoscript.layer.io
import geoscript.feature.Field
import geoscript.geom.Point
import geoscript.layer.Layer
import com.opencsv.CSVWriter
import geoscript.proj.DecimalDegrees
import geoscript.geom.Geometry
/**
* Write a {@link geoscript.layer.Layer Layer} to a CSV String.
* <p><blockquote><pre>
* def layer =... | 14,029 |
https://github.com/nullbyte91/dsa-c/blob/master/stack/stack_lls.c | Github Open Source | Open Source | MIT | null | dsa-c | nullbyte91 | C | Code | 122 | 379 | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define EMPTY_STACK 0
struct Stack{
int val;
struct Stack *next;
};
void
push(struct Stack **s, int val){
struct Stack* stack_node = malloc(sizeof(struct Stack));
stack_node->val = val;
stack_node->next = *s;
*s = stack_node;
}
voi... | 2,151 |
https://github.com/ivanfelipe420/AgroWeb/blob/master/database/seeders/UsuarioSeeder.php | Github Open Source | Open Source | MIT | null | AgroWeb | ivanfelipe420 | PHP | Code | 83 | 612 | <?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\User;
class UsuarioSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
User::create([
'name'=>'Ivan',
'telefono'=>'31023024... | 6,206 |
https://github.com/adobe/helix-html-pipeline/blob/master/src/steps/render.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | helix-html-pipeline | adobe | JavaScript | Code | 476 | 1,434 | /*
* Copyright 2021 Adobe. All rights reserved.
* This file is licensed 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/LICENSE-2.0
*
* Unless required by appli... | 50,448 |
https://github.com/tiravieri/Asuransi/blob/master/resources/views/Fasilitas/UbahAlamat.blade.php | Github Open Source | Open Source | MIT | null | Asuransi | tiravieri | PHP | Code | 1,594 | 7,382 | @extends('layout.main')
@section('title', 'Fasilitas - Perubahan Alamat')
@section('css')
<!-- Our Custom CSS -->
<link rel="stylesheet" href="profilpolis.css">
@endsection
@section('isi')
<div id="isi">
<button onclick="topFunction()" id="myBtn" title="Go to top"><i class="fas fa-chevron-circle-up float... | 14,734 |
https://github.com/expectocode/grammers/blob/master/lib/grammers-client/src/client/updates.rs | Github Open Source | Open Source | Apache-2.0, MIT | null | grammers | expectocode | Rust | Code | 429 | 1,260 | // Copyright 2020 - developers of the `grammers` project.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distr... | 16,693 |
https://github.com/alexfikl/loopy/blob/master/loopy/frontend/fortran/__init__.py | Github Open Source | Open Source | MIT | 2,022 | loopy | alexfikl | Python | Code | 874 | 2,476 | from __future__ import division, with_statement
__copyright__ = "Copyright (C) 2013 Andreas Kloeckner"
__license__ = """
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, inclu... | 46,612 |
https://github.com/caioariede/django-paralleltests/blob/master/paralleltests/runtest.py | Github Open Source | Open Source | MIT | 2,016 | django-paralleltests | caioariede | Python | Code | 15 | 63 | from django.core.management.commands import test
from paralleltests.utils import get_env_options
args, kwargs = get_env_options
sys.exit(test.Command().execute(verbosity=1, *args, **kwargs))
| 41,142 |
https://github.com/zipated/src/blob/master/chrome/browser/ui/cocoa/md_hover_button.mm | Github Open Source | Open Source | BSD-3-Clause | 2,022 | src | zipated | Objective-C++ | Code | 362 | 1,333 | // 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.
#import "chrome/browser/ui/cocoa/md_hover_button.h"
#import <QuartzCore/QuartzCore.h>
#import "ui/base/cocoa/nsview_additions.h"
#include "ui/base/theme... | 47,188 |
https://github.com/Hardlipa/douban_movie/blob/master/src/main/java/org/humingk/movie/mapper/MovieResourceMapper.java | Github Open Source | Open Source | MIT | 2,019 | douban_movie | Hardlipa | Java | Code | 25 | 115 | package org.humingk.movie.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.humingk.movie.entity.MovieResource;
public interface MovieResourceMapper {
int deleteByPrimaryKey(@Param("movieId") Integer movieId, @Param("resourceId") Integer resourceId);
int insert(MovieResour... | 1,080 |
https://github.com/muffadalis/rrod/blob/master/lib/Insight.Database.Schema/Implementation/Table.cs | Github Open Source | Open Source | MIT | 2,021 | rrod | muffadalis | C# | Code | 79 | 270 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace Insight.Database.Schema.Implementation
{
class Table : SchemaImpl
{
public Table(string name, string sql) : base(name, sql, 2)
{
}
public overrid... | 25,917 |
https://github.com/rudzainy/leaderboard/blob/master/app/models/board.rb | Github Open Source | Open Source | MIT | 2,016 | leaderboard | rudzainy | Ruby | Code | 12 | 29 | class Board < ApplicationRecord
scope :sorted_score, -> { order('total_vote DESC') }
end
| 13,937 |
https://github.com/xloem/DIY-LAPTOP/blob/master/SOFTWARE/A64-TERES/linux-a64/drivers/net/wireless/rtl8723bs_vq0/include/rtl8814a_hal.h | Github Open Source | Open Source | Apache-2.0 | null | DIY-LAPTOP | xloem | C | Code | 1,131 | 5,861 | /******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the ... | 43,502 |
https://github.com/chinamickey/drools/blob/master/kie-maven-plugin/src/main/java/org/kie/maven/plugin/BuildMojo.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | drools | chinamickey | Java | Code | 267 | 1,244 | package org.kie.maven.plugin;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.DependencyResolutionRequiredException;
import org.apache.maven.artifact.resolver.filter.CumulativeScopeArtifactFilter;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionExcep... | 13,232 |
https://github.com/prashantsri/test/blob/master/fundoo/src/app/notes/searchdata.pipe.spec.ts | Github Open Source | Open Source | MIT | null | test | prashantsri | TypeScript | Code | 24 | 66 | import { SearchdataPipe } from './searchdata.pipe';
describe('SearchdataPipe', () => {
it('create an instance', () => {
const pipe = new SearchdataPipe();
expect(pipe).toBeTruthy();
});
});
| 32,227 |
https://github.com/sergio11/instangular-rest-api/blob/master/server/routes/account.js | Github Open Source | Open Source | MIT | 2,016 | instangular-rest-api | sergio11 | JavaScript | Code | 653 | 1,804 | import express from 'express';
import validate from 'express-validation';
import paramValidation from '../validations/account';
import * as userCtrl from '../controllers/user';
const router = express.Router(); // eslint-disable-line new-cap
/**
* @api {post} /api/v1/accounts/signin login user
* @apiVersion 1.0.0
* @a... | 38,404 |
https://github.com/TheGrimsey/NovusCore-Common/blob/master/scripting-lib/Nai/Utils/CLIParser.cpp | Github Open Source | Open Source | MIT | null | NovusCore-Common | TheGrimsey | C++ | Code | 485 | 1,227 | #include <pch/Build.h>
#include "CLIParser.h"
CLIParser::CLIParser()
{
ZoneScoped;
}
CLIValues CLIParser::ParseArguments(int argc, char* argv[])
{
ZoneScoped;
CLIValues cliValues;
// First we initialize the defaults
for (const CLIParameter& parameter : _requiredParameters)
{
if (para... | 23,424 |
https://github.com/iamben-ej/queenyekelsunrivaled/blob/master/src/css/common/footer.sass | Github Open Source | Open Source | MIT | null | queenyekelsunrivaled | iamben-ej | Sass | Code | 167 | 704 | @import "../utils/colors"
footer
&.queen-footer
.footer-image
height: 200px
@include breakpoint(1367px, false)
height: 150px
img
flex-grow: 1
height: 100%
width: 100%
object-fit: cover
... | 7,651 |
https://github.com/kireet-13/TrafficUpdate/blob/master/MapBusesRoute/src/java/com/GetTrafficLocation.java | Github Open Source | Open Source | MIT | 2,014 | TrafficUpdate | kireet-13 | Java | Code | 85 | 396 |
package com;
import java.io.*;
import java.text.SimpleDateFormat;
import java.util.*;
public class GetTrafficLocation {
public ArrayList<TrafficInfo> getLoc()
{
ArrayList<TrafficInfo> atl=new ArrayList<TrafficInfo>();
try
{
FileReader fr=new FileReader("D:\\traffic_data_delh... | 25,116 |
https://github.com/davidep87/incache-jws-session/blob/master/.npmignore | Github Open Source | Open Source | MIT | 2,018 | incache-jws-session | davidep87 | Ignore List | Code | 8 | 40 | .idea/
node_modules/
test/
.jsdoc.json
.gitignore
*.lock
coverage/
version-to-tag.sh
| 43,436 |
https://github.com/Vierkantor/mathlib/blob/master/src/data/finset/pointwise.lean | Github Open Source | Open Source | Apache-2.0 | null | mathlib | Vierkantor | Lean | Code | 5,195 | 13,119 | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Yaël Dillies
-/
import data.finset.n_ary
import data.finset.preimage
import data.set.pointwise
/-!
# Pointwise operations of finsets
This file defines pointwise a... | 38,316 |
https://github.com/HalfBlood-Prince/Online-Proposal-Submission/blob/master/Core/Models/StudentCourseGpaMap.cs | Github Open Source | Open Source | MIT | 2,021 | Online-Proposal-Submission | HalfBlood-Prince | C# | Code | 44 | 93 | namespace ProjectFinal101.Core.Models
{
public class StudentCourseGpaMap
{
public string StudentId { get; set; }
public int CourseId { get; set; }
public double Gpa { get; set; }
public ApplicationUser Student { get; set; }
public Course Course { get; set; }
}
}
| 28,380 |
https://github.com/ZQ-jhon/iotex-explorer/blob/master/src/shared/pages/xrc721-action-list-page.tsx | Github Open Source | Open Source | Apache-2.0 | 2,020 | iotex-explorer | ZQ-jhon | TSX | Code | 821 | 2,802 | import Icon from "antd/lib/icon";
import notification from "antd/lib/notification";
import Table, { ColumnProps } from "antd/lib/table";
import Tabs from "antd/lib/tabs";
import BigNumber from "bignumber.js";
import { get } from "dottie";
import { t } from "onefx/lib/iso-i18n";
import React, { useState } from "react";
... | 19,664 |
https://github.com/darkoverlordofdata/gir2scala/blob/master/src/main/scala/org/gnome/gobject-2.0.scala | Github Open Source | Open Source | Apache-2.0 | null | gir2scala | darkoverlordofdata | Scala | Code | 2,793 | 9,605 | /**
* GObject.scala
*
*/
package org.gnome
import scala.scalajs.js
import js.annotation._
@JSName("imports.gi.GObject")
@js.native
object GObject extends js.Object {
val TYPE_STRING: Number = js.native
val PARAM_MASK:Any = js.native
val PARAM_STATIC_STRINGS:Any = js.native
val PARAM_USER_SHIFT:Any... | 36,377 |
https://github.com/albb762/deepreplay/blob/master/deepreplay/utils.py | Github Open Source | Open Source | MIT | 2,022 | deepreplay | albb762 | Python | Code | 271 | 608 | # These functions were extracted from Keras to assure there will
# be no break in compatibility with DeepReplay's code.
def make_batches(size, batch_size):
"""Function extracted from Keras - check keras.engine.training_utils
for the original version.
Returns a list of batch indices (tuples of indices).
... | 2,472 |
https://github.com/Korporal/InstantReplay/blob/master/src/pubapi/Techsola.InstantReplay.net48.pubapi.cs | Github Open Source | Open Source | MIT | 2,021 | InstantReplay | Korporal | C# | Code | 28 | 249 | // Name: Techsola.InstantReplay
// Public key: ACQAAASAAACUAAAABgIAAAAkAABSU0ExAAQAAAEAAQCF2qEmEG2zcnZ9BXuFt5bceeQvKHInNQu9VrBRSiMnuMwhRAJuwrvTnvHRGdPK7qVsMGr70swPONPIRkVycJ12TETXbPKCWiFGykF6rz3IuLIOnplG+bWku3XokRpGm48MTanrPtdl0vZz1TsRsFLYNWsekO+TzilzmW/QI+CvwA==
namespace Techsola.InstantReplay
{
[System.Ru... | 27,488 |
https://github.com/jlopez788/Blazorise/blob/master/Source/Extensions/Blazorise.Components/Enums/DropdownListSelectionMode.cs | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, Apache-2.0 | 2,023 | Blazorise | jlopez788 | C# | Code | 42 | 103 | namespace Blazorise.Components;
/// <summary>
/// The DropdownList's selection mode.
/// </summary>
public enum DropdownListSelectionMode
{
/// <summary>
/// Default mode. Selection is single.
/// </summary>
Default,
/// <summary>
/// Checkbox mode. Selection is multiple with checkbox selecti... | 41,540 |
https://github.com/npocmaka/Windows-Server-2003/blob/master/base/win32/clickonce/managed/mg/mgparseerrorexception.cs | Github Open Source | Open Source | Unlicense | 2,021 | Windows-Server-2003 | npocmaka | C# | Code | 36 | 118 | using System;
namespace Microsoft.Fusion.ADF
{
public class MGParseErrorException : ApplicationException
{
public MGParseErrorException() : base()
{
}
public MGParseErrorException(string errorMsg) : base(errorMsg)
{
}
public MGParseErrorException(string errorMsg, Exception e) : base(errorMsg, e)
{... | 37,908 |
https://github.com/duger/bager/blob/master/Bage/Controllers/PersonalViewControllers/BagePersonalViewController.m | Github Open Source | Open Source | MIT | 2,014 | bager | duger | Objective-C | Code | 228 | 1,004 | // BagePersonalViewController.m
// Bage
// Created by Duger on 13-12-23.
// Copyright (c) 2013年 Duger. All rights reserved.
#import "BagePersonalViewController.h"
#import "SettingViewController.h"
#import "DetailViewController.h"
#import "LineChartViewController.h"
#import "LoginViewController.h"
#import "XMPPMana... | 25,101 |
https://github.com/zouhirzz/FreeRDP/blob/master/winpr/libwinpr/wtsapi/test/TestWtsApiExtraStartRemoteSessionEx.c | Github Open Source | Open Source | Apache-2.0 | 2,022 | FreeRDP | zouhirzz | C | Code | 61 | 299 |
#include <winpr/crt.h>
#include <winpr/error.h>
#include <winpr/wtsapi.h>
#include <winpr/input.h>
#include <winpr/environment.h>
int TestWtsApiExtraStartRemoteSessionEx(int argc, char* argv[])
{
BOOL bSuccess;
ULONG logonId = 0;
char logonIdStr[10];
bSuccess = GetEnvironmentVariableA("TEST_SESSION_LOGON_ID", lo... | 8,924 |
https://github.com/tik0/talos/blob/master/test/core_tests/test_scan_object.py | Github Open Source | Open Source | MIT | 2,019 | talos | tik0 | Python | Code | 35 | 133 | # first load the pipeline
from talos.examples.pipelines import iris_pipeline
def test_scan_object():
print("Running Scan object test...")
# the create the test based on it
scan_object = iris_pipeline()
keras_model = scan_object.best_model()
scan_object.evaluate_models(x_val=scan_object.x,
... | 1,724 |
https://github.com/lars18th/tsduck/blob/master/src/libtsduck/dtv/descriptors/tsMuxcodeDescriptor.cpp | Github Open Source | Open Source | BSD-2-Clause | 2,022 | tsduck | lars18th | C++ | Code | 889 | 2,986 | //----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2022-, Paul Higgs
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... | 19,835 |
https://github.com/nguimfac/ORYX_CUSTOMER/blob/master/resources/views/vue/commercial.blade.php | Github Open Source | Open Source | MIT | null | ORYX_CUSTOMER | nguimfac | PHP | Code | 843 | 3,751 | @extends('layouts.app') @section('content')
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<script>
$(document).ready(function(){
$('#dropDown').click(function(event){
$('.drop-down').toggleClass('drop-down--active');
event.stopPropagation();
});
$(docum... | 4,321 |
https://github.com/erhwenkuo/streaming-training/blob/master/UI/06_KafkaLinkedUI/web/public/assets/chartdata/parallel/parallel-simple.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | streaming-training | erhwenkuo | JavaScript | Code | 58 | 176 | option = {
parallelAxis: [
{dim: 0, name: 'Price'},
{dim: 1, name: 'Net Weight'},
{dim: 2, name: 'Amount'},
{
dim: 3,
name: 'Score',
type: 'category',
data: ['Excellent', 'Good', 'OK', 'Bad']
}
],
series: {
type:... | 46,911 |
https://github.com/timwarnock/globalentry/blob/master/globalentry/locations.py | Github Open Source | Open Source | MIT | null | globalentry | timwarnock | Python | Code | 178 | 568 | #!/usr/bin/env python3
# vim: set fileencoding=utf-8 tabstop=4 shiftwidth=4 autoindent smartindent:
""" globalentry.locations
Lazy load globalentry location data
>>>
>>> import globalentry
>>> ec = globalentry.locations.list()
113
>>>
>>> california = globalentry.locations.filter('CA')
>>> california[0]['city']
... | 33,755 |
https://github.com/tajmone/Base16-Sass/blob/master/scss-named/_base16-atelier-seaside.scss | Github Open Source | Open Source | MIT | null | Base16-Sass | tajmone | SCSS | Code | 69 | 405 | // =============================================================================
// Base16 Atelier Seaside
// =============================================================================
// Author: Bram de Haan (http://atelierbramdehaan.nl)
// Source: https://github.com/atelierbram/base16-atelier-schemes
// ----------... | 11,040 |
https://github.com/ZuluPro/graphene-django-extras/blob/master/graphene_django_extras/directives/__init__.py | Github Open Source | Open Source | MIT | null | graphene-django-extras | ZuluPro | Python | Code | 82 | 316 | # -*- coding: utf-8 -*-
from .list import *
from .numbers import *
from .string import *
try:
import dateutil
from .date import *
date_directives = (DateGraphQLDirective,)
DATEUTIL_INSTALLED = True
except ImportError:
date_directives = ()
DATEUTIL_INSTALLED = False
list_directives = (ShuffleG... | 48,150 |
https://github.com/danielctull/Advent-of-Code/blob/master/Year2019/Sources/Day04.swift | Github Open Source | Open Source | BSD-3-Clause | 2,021 | Advent-of-Code | danielctull | Swift | Code | 163 | 447 |
import Advent
import Foundation
public struct Day04 {
public init() {}
public func part1(input: Input) -> Int {
input
.lines
.map(ClosedRange.init)
.first!
.filter(digitsDontDecrease)
.filter(twoAdjacentDigits)
.count
}
... | 16,788 |
https://github.com/Andrew-Colman/react-blazing/blob/master/packages/blazing/src/_app.js | Github Open Source | Open Source | MIT | 2,022 | react-blazing | Andrew-Colman | JavaScript | Code | 17 | 42 | import Routes from "@components/Routes";
export default function App() {
return (
<>
<Routes />
</>
);
}
| 11,580 |
https://github.com/kennyballou/ambari/blob/master/ambari-server/src/main/resources/stacks/HDP/2.2.GlusterFS/services/KAFKA/package/scripts/service_check.py | Github Open Source | Open Source | Apache-2.0 | 2,015 | ambari | kennyballou | Python | Code | 250 | 853 | #!/usr/bin/env python
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License");... | 38,578 |
https://github.com/joseph-walker/CSS-Selector-Debugger/blob/master/src/data/util/typeConstructor.ts | Github Open Source | Open Source | CC-BY-3.0 | null | CSS-Selector-Debugger | joseph-walker | TypeScript | Code | 81 | 121 | /**
* Given some value T and some payload P, return a new object that contains
* all the properties of P and a `type` property T
*
* @param type any The `type` parameter to add to the payload
* @return object A new object with all properties of P and type T
*/
export function typeConstructor<T, P extends object>(... | 10,381 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.