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/ItsANameToo/swift-crypto/blob/master/Crypto/Crypto/Utils/Helpers.swift | Github Open Source | Open Source | MIT | null | swift-crypto | ItsANameToo | Swift | Code | 121 | 342 | //
// This file is part of Ark Swift Crypto.
//
// (c) Ark Ecosystem <info@ark.io>
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
//
import Foundation
import BitcoinKit
func base58CheckEncode(_ bytes: [UInt8]) -> String {
let check... | 18,419 |
https://github.com/powerpool-finance/powerindex/blob/master/contracts/test/MockIndicesSupplyRedeemZap.sol | Github Open Source | Open Source | MIT | 2,022 | powerindex | powerpool-finance | Solidity | Code | 64 | 243 | // SPDX-License-Identifier: MIT
pragma experimental ABIEncoderV2;
pragma solidity 0.6.12;
import "../IndicesSupplyRedeemZap.sol";
contract MockIndicesSupplyRedeemZap is IndicesSupplyRedeemZap {
constructor(address _usdc, address _powerPoke) public IndicesSupplyRedeemZap(_usdc, _powerPoke) {}
function mockSupply... | 37,986 |
https://github.com/WallaceLiu/obdtool/blob/master/Msg_Dest.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | obdtool | WallaceLiu | Python | Code | 60 | 197 | # -*- coding: utf-8 -*-
from Biz_Base import Biz_Base
from mysql_python_factory import MysqlPythonFacotry
import CommonUtil
from CommonUtil import hostname
import mysql.connector
import datetime
import time
class Msg_Dest(Biz_Base):
__tableName = "incoming"
def __init__(self, db):
Biz_Base.__init_... | 4,091 |
https://github.com/qaiken/mmmystery/blob/master/app/components/side-menu/FAQ.js | Github Open Source | Open Source | MIT | 2,015 | mmmystery | qaiken | JavaScript | Code | 131 | 487 | import React from 'react-native';
import Dimensions from 'Dimensions';
const window = Dimensions.get('window');
import globals from '../../../globalVariables';
import { getFaqs } from '../../utils/faqs';
let {
StyleSheet,
View,
Modal,
ScrollView,
TouchableOpacity,
TouchableHighlight,
Image,
Text,
... | 21,399 |
https://github.com/villfa/psalm/blob/master/src/Psalm/Issue/ForbiddenEcho.php | Github Open Source | Open Source | MIT | 2,022 | psalm | villfa | PHP | Code | 19 | 49 | <?php
namespace Psalm\Issue;
class ForbiddenEcho extends CodeIssue
{
public const ERROR_LEVEL = -2;
public const SHORTCODE = 172;
}
| 47,055 |
https://github.com/shaolonger/nuall-monitor-platform/blob/master/web-monitor-ui/web-monitor-ui-flutter/lib/modules/module_log/consts/const_log.dart | Github Open Source | Open Source | MIT | null | nuall-monitor-platform | shaolonger | Dart | Code | 66 | 314 | import 'dart:ui';
class ConstLog {
/// 日志类型,包括jsErrorLog、httpErrorLog、resourceLoadErrorLog、customErrorLog
static const LOG_TYPE_LIST_MAP = {
"JS": "jsErrorLog",
"HTTP": "httpErrorLog",
"RES": "resourceLoadErrorLog",
"CUS": "customErrorLog",
};
/// 统计类型
static const INDICATOR_LIST_MAP = {
... | 32,027 |
https://github.com/blockchyp/blockchyp-ios/blob/master/blockchyp-ios-examples/UpdateSurveyQuestionExample.m | Github Open Source | Open Source | MIT | 2,023 | blockchyp-ios | blockchyp | Objective-C | Code | 78 | 349 | #import <Foundation/Foundation.h>
#import <BlockChyp/BlockChyp.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
BlockChyp *client = [[BlockChyp alloc]
initWithApiKey:@"SPBXTSDAQVFFX5MGQMUMIRINVI"
bearerToken:@"7BXBTBUPSL3BP7I6Z2CFU6H3WQ"
signing... | 43,424 |
https://github.com/ofpiyush/hedwig-py/blob/master/hedwig/core/worker.py | Github Open Source | Open Source | MIT | 2,020 | hedwig-py | ofpiyush | Python | Code | 47 | 208 | __author__ = 'sandeep'
import multiprocessing
from consumer import Consumer
import logging
LOGGER = logging.getLogger(__name__)
class HedwigWorker(multiprocessing.Process):
def __init__(self, settings, *args, **kwargs):
self.hedwig_consumer = Consumer(settings)
super(HedwigWorker, self).__init_... | 5,500 |
https://github.com/xinqinglhj/LCLFramework/blob/master/Source/src/LCL/Properties/AssemblyInfo.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | LCLFramework | xinqinglhj | C# | Code | 11 | 45 | using System.Reflection;
[assembly: AssemblyDefaultAlias("LCL.dll")]
[assembly: AssemblyDescription("LCL Application Development Framework")]
[assembly: AssemblyTitle("LCL")] | 2,211 |
https://github.com/LLH2019/multi-agent-v4/blob/master/src/main/java/base/model/connect/UpConnectIn.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | multi-agent-v4 | LLH2019 | Java | Code | 22 | 72 | package base.model.connect;
/**
* @author :LLH
* @date :Created in 2021/4/16 11:15
* @description:接收来自于上层的一些消息
*/
public interface UpConnectIn {
void upConnectIn();
}
| 19,441 |
https://github.com/koxudaxi/datamodel-code-generator/blob/master/datamodel_code_generator/model/typed_dict.py | Github Open Source | Open Source | MIT | 2,023 | datamodel-code-generator | koxudaxi | Python | Code | 351 | 1,456 | from __future__ import annotations
import keyword
from pathlib import Path
from typing import (
Any,
ClassVar,
DefaultDict,
Dict,
Iterator,
List,
Optional,
Tuple,
)
from datamodel_code_generator.imports import Import
from datamodel_code_generator.model import DataModel, DataModelFieldB... | 27,198 |
https://github.com/thuongaptech/TTCMS/blob/master/TTCMS.Web/Controllers/ProductController.cs | Github Open Source | Open Source | MIT | null | TTCMS | thuongaptech | C# | Code | 994 | 4,150 | using AutoMapper;
using log4net;
using PagedList;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.Mvc;
using TTCMS.Data.Infrastructure;
using TTCMS.Domain;
using TTCMS.Service;
using TTCMS.Web.Models.Product;
namespace TTCMS.Web.Controller... | 17,504 |
https://github.com/dphrygian/zeta/blob/master/Code/Projects/Rosa/src/Components/wbcomprosaobjectives.h | Github Open Source | Open Source | Zlib, Unlicense | 2,022 | zeta | dphrygian | C | Code | 189 | 580 | #ifndef WBCOMPROSAOBJECTIVES_H
#define WBCOMPROSAOBJECTIVES_H
#include "wbrosacomponent.h"
#include "array.h"
#include "hashedstring.h"
class WBCompRosaObjectives : public WBRosaComponent
{
public:
WBCompRosaObjectives();
virtual ~WBCompRosaObjectives();
DEFINE_WBCOMP( RosaObjectives, WBRosaComponent );
virtual... | 5,551 |
https://github.com/joenix/vue-cli-plugin-uni/blob/master/generator.js | Github Open Source | Open Source | MIT | 2,021 | vue-cli-plugin-uni | joenix | JavaScript | Code | 7 | 16 | module.exports = (api, options, rootOptions) => {};
| 751 |
https://github.com/cysec-platform/coach-standard-language/blob/master/src/main/java/eu/smesec/cysec/csl/parser/CommandConcat.java | Github Open Source | Open Source | Apache-2.0 | null | coach-standard-language | cysec-platform | Java | Code | 193 | 403 | /*-
* #%L
* CYSEC Standard Coach Language
* %%
* Copyright (C) 2020 - 2022 FHNW (University of Applied Sciences and Arts Northwestern Switzerland)
* %%
* 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 ... | 29,708 |
https://github.com/MooseValley/Amazon-Web-Services-AWS---Get-WAN-IP-Address/blob/master/AmazonAwsGetWanIpAddress.java | Github Open Source | Open Source | MIT | null | Amazon-Web-Services-AWS---Get-WAN-IP-Address | MooseValley | Java | Code | 173 | 428 | /*
Simple example to use Amazon AWS to get my WAN IP Address using basic Java commands.
Amazon AWS is a huge and complex beast. But some things
are really easy to do, like getting AWS to tell us what my
WAN IP address is. i.e. get AWS to tell me what my IP address
appears to be from outside my local network.
Exampl... | 12,818 |
https://github.com/cyjseagull/bcos-pbft/blob/master/bcos-pbft/pbft/cache/PBFTCacheFactory.h | Github Open Source | Open Source | Apache-2.0 | null | bcos-pbft | cyjseagull | C | Code | 166 | 403 | /**
* Copyright (C) 2021 FISCO BCOS.
* SPDX-License-Identifier: Apache-2.0
* 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
*
* Un... | 39,934 |
https://github.com/MaxIakovliev/problemSolving/blob/master/src/test/java/com/problems/test/MinimumNumberOfPlatformsTest.java | Github Open Source | Open Source | MIT | 2,019 | problemSolving | MaxIakovliev | Java | Code | 55 | 200 | package com.problems.test;
import com.problems.MinimumNumberOfPlatforms;
import org.junit.Assert;
import org.junit.Test;
/**
* Created by Maks on 5/3/2017.
*/
public class MinimumNumberOfPlatformsTest implements ISingleTestCase {
@Test
public void solution1TestCase1() {
MinimumNumberOfPlatforms s=n... | 16,619 |
https://github.com/shamiul94/Problem-Solving-Online-Judges/blob/master/LeetCode/416. Partition Equal Subset Sum.cpp | Github Open Source | Open Source | MIT | 2,020 | Problem-Solving-Online-Judges | shamiul94 | C++ | Code | 484 | 1,136 |
class Solution
{
public:
void print(vector<int> &nums)
{
for (int i = 0; i < nums.size(); i++)
{
cout << nums[i] << " ";
}
cout << endl;
}
int getSum(vector<int> &nums)
{
int sum = 0;
for (int i = 0; i < nums.size(); i++)
{
... | 50,802 |
https://github.com/bianliu1013/acqChina/blob/master/iAcqChina/NavigationViewController.h | Github Open Source | Open Source | MIT | null | acqChina | bianliu1013 | C | Code | 50 | 181 | //
// NavigationViewController.h
// REMenuExample
//
// Created by Roman Efimov on 4/18/13.
// Copyright (c) 2013 Roman Efimov. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "REMenu.h"
@interface NavigationViewController : UINavigationController
@property (strong, readonly, nonatomic) REMenu *menu;
- ... | 3,597 |
https://github.com/ansumandas441/Data-Structures-and-Algorithms/blob/master/Java/soln-sliding-window-problems/minimum-operations-to-reduce-x-to-zero.java | Github Open Source | Open Source | MIT | 2,022 | Data-Structures-and-Algorithms | ansumandas441 | Java | Code | 63 | 285 | /**
@author Farheen Bano
Reference-
https://leetcode.com/problems/minimum-operations-to-reduce-x-to-zero/
*/
import java.util.*;
import java.lang.*;
import java.io.*;
class Solution {
public int minOperations(int[] nums, int x) {
int total=0;
for(int n:nums)
total+=n;
... | 28,224 |
https://github.com/xlm1226/A-Definitive-Guide-to-Apache-ShardingSphere/blob/master/Code_Snippets_Chapter06/Snippet24_Example_Query_Encrytion_Rules_Chapter06.sql | Github Open Source | Open Source | MIT | 2,022 | A-Definitive-Guide-to-Apache-ShardingSphere | xlm1226 | SQL | Code | 45 | 137 | show encrypt rules from encrypt_db;
+-----------+--------------+------------------+--------------+----------------+-----------------+
| table | logic_column | cipher_column | plain_column | encryptor_type | encryptor_props |
+-----------+--------------+------------------+--------------+----------------+---------... | 3,593 |
https://github.com/Jackintoshh/Webmappingtest/blob/master/shops/models.py | Github Open Source | Open Source | MIT | null | Webmappingtest | Jackintoshh | Python | Code | 18 | 75 | from django.contrib.gis.db import models
class Shop(models.Model):
name = models.CharField(max_length=100)
location = models.PointField()
address = models.CharField(max_length=100)
city = models.CharField(max_length=50) | 43,746 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/LINE-8.4.0(越狱应用)_headers/NLPayRegistrationFlow.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 192 | 954 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import "NLPayFlow.h"
#import "NLPayAdditionalIdentifyMethodViewControllerDelegate-Protocol.h"
#import "NLPayAdditionalIdentifyViewCon... | 27,332 |
https://github.com/phenix3443/leetcode/blob/master/11-container-with-most-water/solution.py | Github Open Source | Open Source | MIT | null | leetcode | phenix3443 | Python | Code | 59 | 372 | # -*- coding:utf-8; -*-
class Solution:
""" 相向双指针思路:
首先,水的面积area=(r-l)*min(height[l],height[r])
如果是使用同向双指针的话,对于位置l,要把右边所有的元素遍历一遍。整体时间复杂度是O(n^2)。
这是因为这种情况下,r-l是增大的,而且height[r]也是变化的。
如果能将变化条件降低一维,有利于减少时间复杂度。
考虑相向双指针,此时 (r-l)是缩小的,那么只有min(height[l],height[r])中的最小着替换为更大的值,水池面积才能增大。
"""
de... | 30,951 |
https://github.com/laylaythwe/larashop/blob/master/resources/views/frontend/layouts/app.blade.php | Github Open Source | Open Source | MIT | null | larashop | laylaythwe | PHP | Code | 846 | 4,242 | <!--
author: W3layouts
author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>@yield('title', app_name())</title>
<!-- for-mobile-apps -->
<meta name="csrf-token" content="{{ csrf_token() }}">
... | 4,313 |
https://github.com/duberDev/eventstore-rpc/blob/master/clients/go/event_store.pb.go | Github Open Source | Open Source | MIT | 2,017 | eventstore-rpc | duberDev | Go | Code | 5,001 | 19,418 | // Code generated by protoc-gen-go.
// source: event_store.proto
// DO NOT EDIT!
/*
Package eventstore is a generated protocol buffer package.
It is generated from these files:
event_store.proto
It has these top-level messages:
AppendToStreamRequest
AppendToStreamResponse
SubscribeToStreamFromRequest
SubscribeT... | 40,640 |
https://github.com/AvivBenchorin/tianleh-test-cases/blob/master/cypress/integration/home-page-spec.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | tianleh-test-cases | AvivBenchorin | JavaScript | Code | 42 | 151 | import { HomePage } from '@tianleh/tianleh-test-utility'
Cypress.on('uncaught:exception', (err, runnable) => {
return false;
});
const homePage = new HomePage(cy);
describe('search amazon on google', () => {
beforeEach(() => {
homePage.open('https://www.google.com/');
})
it('type and search'... | 50,832 |
https://github.com/joealden/listed/blob/master/src/components/icons/Circle.tsx | Github Open Source | Open Source | MIT | 2,019 | listed | joealden | TSX | Code | 47 | 140 | import React from "react";
import styled from "../../utils/styled-components";
const Circle: React.FunctionComponent = () => (
<StyledSVG height="20" width="20">
<circle cx="10" cy="10" r="5" />
</StyledSVG>
);
const StyledSVG = styled.svg`
display: block;
circle {
fill: ${props => props.theme.foregr... | 27,355 |
https://github.com/ivandewolf1/subdivMesh/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,020 | subdivMesh | ivandewolf1 | Ignore List | Code | 67 | 224 |
# Created by https://www.gitignore.io/api/c++,cmake,emacs
# Edit at https://www.gitignore.io/?templates=c++,cmake,emacs
# hand edited down from there
### C++ ###
# Compiled Object files
*.o
# Compiled Dynamic libraries
*.so
# Compiled Static libraries
*.a
### CMake ###
CMakeLists.txt.user
CMakeCache.txt
CMakeFiles
... | 17,918 |
https://github.com/UCY-LINC-LAB/5G-Slicer/blob/master/tests/test_networks.py | Github Open Source | Open Source | Apache-2.0 | null | 5G-Slicer | UCY-LINC-LAB | Python | Code | 497 | 2,929 | import unittest
from networks.QoS import QoS
from networks.connections.mathematical_connections import FunctionalDegradation
from networks.slicing import SliceConceptualGraph
from utils.location import Location
class TestBaseStationLinear(unittest.TestCase):
def setUp(self):
self.name = "network"
... | 7,584 |
https://github.com/alexeyneu/recycle-bin/blob/master/recycle_/makefile | Github Open Source | Open Source | MIT | 2,019 | recycle-bin | alexeyneu | Makefile | Code | 67 | 288 | CC=c++ -c
CFLAGS=-c -DSTRICT -G3 -Ow -W3 -Zp -Tp
CFLAGSMT=-std=c++11 -municode
LINKER=c++
GUILIBS=-lole32 -luuid -mwindows -municode
RC=windres
RCFLAGS=-D WIN32 -D _WIN64 -D NDEBUG -D _UNICODE -D UNICODE -O coff
docks : trail build/recycle_.exe
trail :
ifeq ($(wildcard build/.),)
@mkdir build
endif
build/recycle_.e... | 1,828 |
https://github.com/elliottkember/flipper/blob/master/desktop/scripts/jest-setup.js | Github Open Source | Open Source | MIT | 2,022 | flipper | elliottkember | JavaScript | Code | 152 | 344 | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
// import/no-unresolved complains, although it is a perfectly fine import
// eslint-disable-next-line
global.fetch =... | 33,240 |
https://github.com/sufzoli/suf-electronics-pcbay-psu/blob/master/SW/PSU_Control/PSU_Control/Form1.Designer.cs | Github Open Source | Open Source | CC0-1.0 | 2,020 | suf-electronics-pcbay-psu | sufzoli | C# | Code | 3,177 | 13,918 | namespace PSU_Control
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param ... | 19,435 |
https://github.com/sigma-random/ptmalloc2_exploit_demos/blob/master/heap-demos/dump_malloc_state.c | Github Open Source | Open Source | MIT | 2,017 | ptmalloc2_exploit_demos | sigma-random | C | Code | 40 | 242 | #include "heap_helper.h"
#define CHUNK_SIZE sizeof(size_t)
int main()
{
void *malloc_state_ptr;
void *p1,*p2,*p3,*p4,*p5;
printf("sizeof(size_t) = %d\n",sizeof(size_t));
printf("sizeof(int) = %d\n",sizeof(int));
p1 = malloc_helper(CHUNK_SIZE*1);
p2 = malloc_helper(CHUNK_SIZE*2);
p3 = malloc_helper(CHUNK_S... | 10,208 |
https://github.com/yuyf-fsd/cartodb/blob/master/lib/assets/core/test/spec/cartodb3/editor/layers/layer-content-view.spec.js | Github Open Source | Open Source | BSD-3-Clause | null | cartodb | yuyf-fsd | JavaScript | Code | 1,121 | 5,273 | var _ = require('underscore');
var $ = require('jquery');
var Backbone = require('backbone');
var AnalysisDefinitionNodeSourceModel = require('../../../../../javascripts/cartodb3/data/analysis-definition-node-source-model');
var LayerDefinitionsCollection = require('../../../../../javascripts/cartodb3/data/layer-defini... | 2,707 |
https://github.com/guojiangclub/catering.miniprogram/blob/master/src/pages/user/bindingphone/bindingphone.js | Github Open Source | Open Source | MIT | null | catering.miniprogram | guojiangclub | JavaScript | Code | 302 | 1,654 | import {is,config,sandBox,cookieStorage} from '../../../lib/myapp.js';
Page({
data: {
code:{
total:60,
access_token:null,
codeText:"获取验证码"
},
sending:false,
tellphone: '',
identifyingcode: '',
url: '',
config: ''
},
onLoad(e) {
// 第三方平台配置颜色
var bgConfig = cookieStorage.ge... | 25,526 |
https://github.com/ivosabev/zdrkopr/blob/master/packages/server/build/graphql/types/Message.js | Github Open Source | Open Source | Unlicense | 2,018 | zdrkopr | ivosabev | JavaScript | Code | 113 | 390 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.MessageEdge = exports.MessagesConnection = exports.MessageType = undefined;
var _graphql = require('graphql');
var _graphqlRelay = require('graphql-relay');
var _Node = require('./Node');
var MessageType = (0, _Node.registerType... | 37,774 |
https://github.com/hcse/chrome-extension-wallet/blob/master/src/components/transactionStatus/TransactionStatusView.tsx | Github Open Source | Open Source | MIT | 2,022 | chrome-extension-wallet | hcse | TypeScript | Code | 46 | 167 | import * as React from 'react'
import './TransactionStatusView.css'
import BodyView from 'components/shared/layout/BodyView'
interface Props {
title: string
body: string
icon: string
}
const TransactionStatusView: React.SFC<Props> = (props: Props) => (
<BodyView className='transaction-status-container'>
... | 28,287 |
https://github.com/mrnettek/VBScript0/blob/master/VBScript3/Start DNS Server Scavenging.vbs | Github Open Source | Open Source | MIT | 2,021 | VBScript0 | mrnettek | Visual Basic | Code | 45 | 125 | ' Description: Instructs a DNS server to begin scavenging stale records in the appropriate DNS zones.
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & _
"\root\MicrosoftDNS")
Set colItems = objWMIService.ExecQuery("Select * From Microso... | 10,115 |
https://github.com/linkedin/avro-util/blob/master/helper/helper/src/main/java/com/linkedin/avroutil1/compatibility/AvroRecordUtil.java | Github Open Source | Open Source | BSD-2-Clause, Apache-2.0 | 2,023 | avro-util | linkedin | Java | Code | 3,250 | 8,744 | /*
* Copyright 2022 LinkedIn Corp.
* Licensed under the BSD 2-Clause License (the "License").
* See License in the project root for license information.
*/
package com.linkedin.avroutil1.compatibility;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.nio.ByteBuffer;
import java.nio.cha... | 45,706 |
https://github.com/MiloVentimiglia/es4kafka/blob/master/examples/books-catalog/src/main/scala/catalog/EntryPoint.scala | Github Open Source | Open Source | MIT | 2,021 | es4kafka | MiloVentimiglia | Scala | Code | 125 | 787 | package catalog
import catalog.authors._
import catalog.authors.akkaStream.AuthorKafkaTable
import catalog.authors.http.AuthorsRoutes
import catalog.books._
import catalog.books.akkaStream._
import catalog.books.http.BooksRoutes
import catalog.booksCards._
import catalog.booksCards.http.BooksCardsRoutes
import catalog... | 46,504 |
https://github.com/tha061/DataRing/blob/master/native/src/Server.h | Github Open Source | Open Source | MIT | null | DataRing | tha061 | C | Code | 1,659 | 3,204 | #ifndef SERVER
#define SERVER
#include "../include/public_header.h"
#include "./process_noise.h"
/**
* @file Server.h
* @brief Definition of functions in Server class
* @author Tham Nguyen tham.nguyen@mq.edu.au, Nam Bui, Data Ring
* @date April 2020
*/
/**
* @brief This class provides functionalities of a s... | 5,134 |
https://github.com/aleksandr-aleksashin/TypeIndicatorConverter/blob/master/Json.Net/UnificationHelpers/NewtonsoftUnificationHelper.cs | Github Open Source | Open Source | MIT | 2,022 | TypeIndicatorConverter | aleksandr-aleksashin | C# | Code | 196 | 637 | using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.Serialization;
using System.Threading;
using TypeIndicatorConverter.Core.AssertionsAbstraction.Interfaces;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Serialization;
namespace TypeIndicatorConvert... | 24,709 |
https://github.com/johnmbaughman/mvvm-dialogs/blob/master/samples/wpf/Demo.NonModalCustomDialog/CurrentTimeCustomDialog.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | mvvm-dialogs | johnmbaughman | C# | Code | 76 | 242 | using System.Windows;
using System.Windows.Controls;
using MvvmDialogs;
namespace Demo.NonModalCustomDialog
{
public class CurrentTimeCustomDialog : IWindow
{
private readonly CurrentTimeDialog dialog;
public CurrentTimeCustomDialog()
{
dialog = new CurrentTimeDialog();
... | 37,992 |
https://github.com/nidhineshnand/capisso/blob/master/client/src/components/utility/SnackbarMessage.tsx | Github Open Source | Open Source | MIT | 2,020 | capisso | nidhineshnand | TSX | Code | 69 | 248 | import React from 'react';
import Snackbar from '@material-ui/core/Snackbar';
import MuiAlert from '@material-ui/lab/Alert';
export interface ISnackbarMessageProps {
text: string;
severity: 'success' | 'info' | 'warning' | 'error';
isOpen: boolean;
setOpen: (isOpen: boolean) => void;
}
export const SnackbarMe... | 27,083 |
https://github.com/tdurieux/smartbugs-wild/blob/master/contracts/0x285088c75a8508664ad77df63e2d60a408e5284a.sol | Github Open Source | Open Source | Apache-2.0 | 2,022 | smartbugs-wild | tdurieux | Solidity | Code | 322 | 871 | // File: @ensdomains/ens/contracts/ENS.sol
pragma solidity >=0.4.24;
interface ENS {
// Logged when the owner of a node assigns a new owner to a subnode.
event NewOwner(bytes32 indexed node, bytes32 indexed label, address owner);
// Logged when the owner of a node transfers ownership to a new account.
... | 14,745 |
https://github.com/justinhachemeister/NuGet.Lucene/blob/master/source/NuGet.Lucene.Web.Tests/MirroringPackageRepositoryFactoryTests.cs | Github Open Source | Open Source | Apache-2.0 | 2,017 | NuGet.Lucene | justinhachemeister | C# | Code | 108 | 541 | using System;
using System.Net;
using Moq;
using NuGet.Lucene.Web.Models;
using NUnit.Framework;
namespace NuGet.Lucene.Web.Tests
{
[TestFixture]
public class MirroringPackageRepositoryFactoryTests
{
[SetUp]
public void SetUp()
{
EnvironmentUtility.SetRunningFromCommandLine();
}
[Test]... | 4,094 |
https://github.com/disaster37/operator-elk-extra/blob/master/main.go | Github Open Source | Open Source | MIT | null | operator-elk-extra | disaster37 | Go | Code | 817 | 3,671 | /*
Copyright 2022.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed un... | 9,972 |
https://github.com/HaiBV/haibv.github.io/blob/master/gists/leetcode/51.N-Queens.js | Github Open Source | Open Source | CC0-1.0 | 2,023 | haibv.github.io | HaiBV | JavaScript | Code | 258 | 622 | /**
* 51. N-Queens
* Array, Backtracking
*/
/**
* @param {number} n
* @return {string[][]}
*/
var solveNQueens = function (n) {
const board = new Array(n).fill().map(() => new Array(n).fill("."));
const result = [];
const pushToResult = () => result.push(board.map((row) => row.reduce((acc, val) => acc + v... | 2,077 |
https://github.com/Geomatys/sis/blob/master/application/sis-javafx/src/main/java/org/apache/sis/gui/dataset/ExpandableList.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | sis | Geomatys | Java | Code | 2,171 | 4,544 | /*
* 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"); you may ... | 8,008 |
https://github.com/gravitee-lab/gravitee-management-rest-api/blob/master/gravitee-rest-api-service/src/main/java/io/gravitee/rest/api/service/impl/ApiMetadataServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | null | gravitee-management-rest-api | gravitee-lab | Java | Code | 242 | 725 | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requ... | 26,839 |
https://github.com/XiaoMutt/ucbc/blob/master/experiments/uniform.py | Github Open Source | Open Source | MIT | null | ucbc | XiaoMutt | Python | Code | 72 | 341 | from experiments.basis import *
class UniformExperimentWithin(Experiment):
TITLE = "Uniform (Rewards within [0,1])"
def __init__(self, solvers: tp.List[tp.Type[Solver]]):
super(UniformExperimentWithin, self).__init__(
solvers=solvers,
bandit=UniformBandit([(0, 0.4), (0, .5), (... | 16,525 |
https://github.com/snoussi/kie-docs/blob/master/doc-content/drools-docs/src/main/asciidoc/AuthoringAssets/test-scenarios-comparison-legacy-new-ref.adoc | Github Open Source | Open Source | Apache-2.0 | null | kie-docs | snoussi | AsciiDoc | Code | 785 | 1,534 | [id='test-scenarios-comparison-legacy-new-ref']
= Feature comparison of legacy and new test scenario designer
{PRODUCT} supports both the new test scenario designer and the former test scenario (Legacy) designer.
The default designer is the new test scenario designer, which supports testing of both rules and DMN mod... | 12,546 |
https://github.com/NickPuchko/SwiftyWay-MoscowTravelHack/blob/master/TravelGuide/TravelGuide/Networkers/RouteNetworkService.swift | Github Open Source | Open Source | MIT | 2,022 | SwiftyWay-MoscowTravelHack | NickPuchko | Swift | Code | 137 | 543 | //
// RouteNetworkService.swift
// TravelGuide
//
// Created by Николай Пучко on 28.03.2021.
//
import Foundation
import Alamofire
class RouteNetworkService {
private lazy var decoder: JSONDecoder = {
var result = JSONDecoder()
result.keyDecodingStrategy = .convertFromSnakeCase
return r... | 14,536 |
https://github.com/tido64/rainbow/blob/master/build/ios/Rainbow/AppDelegate.h | Github Open Source | Open Source | BSD-3-Clause, MIT, Apache-2.0 | 2,021 | rainbow | tido64 | Objective-C | Code | 37 | 98 | // Copyright (c) 2010-present Bifrost Entertainment AS and Tommy Nguyen
// Distributed under the MIT License.
// (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT)
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property(strong, nonatomic) UIWindow *win... | 50,632 |
https://github.com/h5p/h5p-wordpress-plugin/blob/master/languages/h5p-nb_NO.po | Github Open Source | Open Source | MIT | 2,023 | h5p-wordpress-plugin | h5p | Gettext Catalog | Code | 9,267 | 24,069 | msgid ""
msgstr ""
"Project-Id-Version: H5P\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/h5p-wordpress-"
"plugin-master\n"
"POT-Creation-Date: 2022-03-02 16:26:07+00:00\n"
"PO-Revision-Date: \n"
"Last-Translator: Frode Petterson <frode.petterson@joubel.com>\n"
"Language-Team: Joubel <contact@joubel.co... | 16,103 |
https://github.com/SamanthaToet/mastering-shiny/blob/master/2-first-app/q1/app.R | Github Open Source | Open Source | CC0-1.0 | 2,020 | mastering-shiny | SamanthaToet | R | Code | 78 | 181 | library(shiny)
# Define UI for application that draws a histogram
ui <- fluidPage(
# Application title
titlePanel("Q1 - greet users by name"),
# Sidebar with a text input for name
sidebarLayout(
sidebarPanel(
textInput("name", "What's your name?")
),
# Show the na... | 42,028 |
https://github.com/bigwater/Galois/blob/master/lonestar/analytics/gpu/spanningtree/mst.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | Galois | bigwater | C | Code | 112 | 432 | #pragma once
#include "component.h"
#include "moderngpu/kernel_reduce.hxx"
struct comp_data {
Shared<int> weight;
Shared<int> edge;
Shared<int> node;
Shared<int> level;
Shared<int> dstcomp;
int* lvl;
int* minwt;
int* minedge; // absolute
int* minnode;
int* mindstcomp;
};
static void dump_comp_da... | 6,677 |
https://github.com/dcecile/bitfontmake/blob/master/test.py | Github Open Source | Open Source | MIT | 2,018 | bitfontmake | dcecile | Python | Code | 160 | 602 | from fontmake.font_project import FontProject
from objects import BitFont, BitInfo, BitGlyph
from transforms import convert_to_font
import codepoints
from input import open_bit_font
def create_py_bit_font():
o = False
X = True
return BitFont(
size=(4, 6),
info=BitInfo(
family_n... | 21,513 |
https://github.com/rdzudzar/friends_analysis/blob/master/Friends_sorry.py | Github Open Source | Open Source | MIT | 2,019 | friends_analysis | rdzudzar | Python | Code | 253 | 1,281 | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 9 10:43:10 2019
@author: Rob
"""
# -*- coding: utf-8 -*-
"""
Created on Fri Jul 5 23:32:37 2019
@author: Rob
"""
from bokeh.palettes import Spectral4
from bokeh.plotting import figure, output_file, show
from bokeh.models import ColumnDataSource, HoverTool, BoxSelectTo... | 43,102 |
https://github.com/padlocks/CustomOrigins/blob/master/src/main/java/io/github/padlocks/customorigins/impl/mixin/HookClientPlayerTick.java | Github Open Source | Open Source | MIT | null | CustomOrigins | padlocks | Java | Code | 75 | 359 | package io.github.padlocks.customorigins.impl.mixin;
import com.mojang.authlib.GameProfile;
import net.minecraft.client.network.AbstractClientPlayerEntity;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.client.world.ClientWorld;
import org.spongepowered.asm.mixin.Mixin;
import org.spongep... | 27,251 |
https://github.com/Zhofre/engineering/blob/master/src/Engineering.Expressions/BinaryExpression{T}.cs | Github Open Source | Open Source | MIT | null | engineering | Zhofre | C# | Code | 74 | 223 | namespace Engineering.Expressions
{
public abstract class BinaryExpression<T> : Expression<T>
where T : IExpressible
{
public BinaryExpression(Expression<T> lhs, Expression<T> rhs)
{
LeftHandSide = lhs;
RightHandSide = rhs;
}
public Expression<T> ... | 33,400 |
https://github.com/saleks/manage-project/blob/master/resources/js/App/Auth/vuex/mutations.js | Github Open Source | Open Source | MIT | null | manage-project | saleks | JavaScript | Code | 60 | 235 | // https://vuex.vuejs.org/en/mutations.html
import * as TYPES from './mutations-types'
/* eslint-disable no-param-reassign */
export default {
[TYPES.SET_USER](state, user) {
state.user = user
},
[TYPES.SET_TOKEN](state, token) {
state.token = token
},
[TYPES.SET_TOKEN_TYPE](state, ... | 48,202 |
https://github.com/ebartz/legoino/blob/master/src/PoweredUpHub.cpp | Github Open Source | Open Source | MIT | null | legoino | ebartz | C++ | Code | 148 | 318 | /*
* PoweredUpHub.cpp - Arduino Library for controlling PoweredUp hubs (Train, Batmobil)
*
* (c) Copyright 2019 - Cornelius Munz
* Released under MIT License
*
*/
#include "PoweredUpHub.h"
PoweredUpHub::PoweredUpHub(){};
/**
* @brief Set the motor speed on a defined port.
* @param [in] port Port of the Hub... | 16,116 |
https://github.com/AhmetOsmn/JS-Examples/blob/master/8. Getir Clone/node_modules/react-flags-select/build/components/Flags/Countries/Cy.d.ts | Github Open Source | Open Source | MIT | 2,021 | JS-Examples | AhmetOsmn | TypeScript | Code | 14 | 44 | import * as React from "react";
declare function SvgCy(props: React.SVGProps<SVGSVGElement>): JSX.Element;
export default SvgCy;
| 11,272 |
https://github.com/ezeh2/Simple-OOXML-Package-Explorer/blob/master/src/PackageExplorer/View/UI/DocumentExplorer.Designer.cs | Github Open Source | Open Source | MIT | 2,019 | Simple-OOXML-Package-Explorer | ezeh2 | C# | Code | 273 | 1,243 | namespace PackageExplorer.View
{
partial class DocumentExplorer
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary... | 41,386 |
https://github.com/saynschuman/plaza/blob/master/src/scss/main.scss | Github Open Source | Open Source | MIT | null | plaza | saynschuman | SCSS | Code | 1,203 | 4,719 | @import "includes/variables";
@import "includes/fonts";
@import "vendors/bootstrap";
body {
font-family: GothaProReg;
font-size: 19px;
color: #000;
}
ul, menu, dir {
display: block;
list-style-type: disc;
-webkit-margin-before: 0;
-webkit-margin-after: 0;
-webkit-margin-start: 0;
-webkit-m... | 25,026 |
https://github.com/servicecatalog/development/blob/master/oscm-i18n-intsvc/javasrc/org/oscm/i18nservice/local/ImageResourceServiceLocal.java | Github Open Source | Open Source | Apache-2.0, EPL-1.0, BSD-3-Clause, W3C, LGPL-3.0-only, CPL-1.0, CDDL-1.1, BSD-2-Clause, LicenseRef-scancode-proprietary-license, LGPL-2.1-or-later, CDDL-1.0, Apache-1.1, MIT, LicenseRef-scancode-unknown-license-reference, W3C-19980720, LGPL-2.1-only, PostgreSQL | 2,020 | development | servicecatalog | Java | Code | 180 | 402 | /*******************************************************************************
*
* Copyright FUJITSU LIMITED 2017
*
* Author: pock ... | 14,169 |
https://github.com/maddy-torqata/gokul-organics1/blob/master/node_modules/@fortawesome/pro-regular-svg-icons/faTh.js | Github Open Source | Open Source | MIT | null | gokul-organics1 | maddy-torqata | JavaScript | Code | 97 | 417 | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prefix = 'far';
var iconName = 'th';
var width = 512;
var height = 512;
var ligatures = [];
var unicode = 'f00a';
var svgPathData = 'M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM... | 31,417 |
https://github.com/blockchainworkbench/plugin-solidity-exercises/blob/master/test/sol/Test_events.sol | Github Open Source | Open Source | Apache-2.0 | 2,018 | plugin-solidity-exercises | blockchainworkbench | Solidity | Code | 17 | 46 | pragma solidity ^0.4.0;
contract Test {
event NoArgument();
event OneArgument(uint a);
event TwoArguments(address a, bool b);
}
| 18,608 |
https://github.com/anuragsen21/adult-lounge/blob/master/application/controllers/Login.php | Github Open Source | Open Source | MIT | null | adult-lounge | anuragsen21 | PHP | Code | 219 | 1,116 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
require_once APPPATH . 'core/CommonController.php';
class Login extends CommonController {
public function index(){
$this->checkAge();
if($this->session->userdata('UserId')){
redirect(base_url());
}
$da... | 18,203 |
https://github.com/collegescheduler/react-crane/blob/master/src/select/utils/DefaultProps.js | Github Open Source | Open Source | MIT | null | react-crane | collegescheduler | JavaScript | Code | 214 | 685 | import Arrow from '../Arrow'
import Clear from '../Clear'
import FocusPlaceholder from '../FocusPlaceholder'
import Input from '../Input'
import Loading from '../Loading'
import Menu from '../Menu'
import Option from '../Option'
import OptionGroup from '../OptionGroup'
import Value from '../Value'
import ValueGroup fro... | 1,052 |
https://github.com/GCCFeli/LuaFormat/blob/master/LuaFormat/Grammar/Ast/LuaFieldNode.cs | Github Open Source | Open Source | MIT | 2,020 | LuaFormat | GCCFeli | C# | Code | 99 | 333 | using Irony.Ast;
using Irony.Interpreter;
using Irony.Parsing;
using Lua.LanguageService.Format;
using System.Collections.Generic;
namespace Lua.LanguageService.Grammar.Ast
{
class LuaFieldNode : AstNode, IAstNode
{
public ParseTreeNode Node
{
get;
private set;
... | 36,651 |
https://github.com/VsevolodKurochka/proportion/blob/master/static/src/sass/components/_variant.sass | Github Open Source | Open Source | MIT | null | proportion | VsevolodKurochka | Sass | Code | 98 | 466 | .variant
color: $color-black
margin-bottom: 30px
&__content
background-color: $color-white
border-radius: 4px
padding: 15px
margin-bottom: 15px
+min($sm)
padding: 30px
height: unquote("calc(100% - 150px)")
&__header
font-size: 20px
line-height: 1.1
font-family: $bold
text-align: center
... | 16,957 |
https://github.com/Huawei/CloudEC_Client_API_Demo_Android/blob/master/sample/EC_SDK_Demo/Demo_Service/ContactService/src/main/java/com/huawei/opensdk/contactservice/eaddr/EntAddressBookInfo.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | CloudEC_Client_API_Demo_Android | Huawei | Java | Code | 401 | 1,174 | package com.huawei.opensdk.contactservice.eaddr;
import java.io.Serializable;
/**
* This class is about contact Information class.
* 企业通讯录联系人信息类
*/
public class EntAddressBookInfo implements Serializable {
/**
* User's account
* 联系人账号
*/
private String eaddrAccount;
/**
* User's n... | 27,943 |
https://github.com/edgarinvillegas/eslint-plugin-capture/blob/master/src/index.ts | Github Open Source | Open Source | MIT | null | eslint-plugin-capture | edgarinvillegas | TypeScript | Code | 13 | 44 | import explicitClosures from "./rules/explicit-closures";
export = {
rules: {
"explicit-closures": explicitClosures,
},
};
| 756 |
https://github.com/AntoniCasasM/BasicNLP/blob/master/src/main/java/com/basicNLP/stemmers/NullStem.java | Github Open Source | Open Source | MIT | null | BasicNLP | AntoniCasasM | Java | Code | 19 | 64 | package com.basicNLP.stemmers;
import com.basicNLP.stemmers.Stemmer;
class NullStem implements Stemmer {
@Override
public String stem(String s) {
return s;
}
}
| 32,434 |
https://github.com/dkharrat/NexusDialog/blob/master/nexusdialog/src/main/java/com/github/dkharrat/nexusdialog/FormActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | NexusDialog | dkharrat | Java | Code | 224 | 629 | package com.github.dkharrat.nexusdialog;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.ViewGroup;
import android.view.WindowManager;
/**
* <code>FormActivity</code> is provides a default Activity implementation for using NexusDialog. It provides simple APIs to quickly
... | 17,081 |
https://github.com/yankee14/reflow-oven-atmega328p/blob/master/waf/playground/pytest/src/foo/foo.py | Github Open Source | Open Source | Apache-2.0 | null | reflow-oven-atmega328p | yankee14 | Python | Code | 35 | 79 | #! /usr/bin/env python
# encoding: utf-8
# Calle Rosenquist, 2016 (xbreak)
import os
# Import the foo extension shared object
from foo import foo_ext
def sum(a, b):
return a + b
def ping():
return foo_ext.ping()
| 48,165 |
https://github.com/erikzhouxin/CSharpSolution/blob/master/NetSiteUtilities/AopApi/Response/AlipayEcoMycarDataserviceViolationinfoShareResponse.cs | Github Open Source | Open Source | MIT | 2,019 | CSharpSolution | erikzhouxin | C# | Code | 77 | 270 | using System;
using System.Xml.Serialization;
namespace EZOper.NetSiteUtilities.AopApi
{
/// <summary>
/// AlipayEcoMycarDataserviceViolationinfoShareResponse.
/// </summary>
public class AlipayEcoMycarDataserviceViolationinfoShareResponse : AopResponse
{
/// <summary>
/// 车架号
... | 7,240 |
https://github.com/lamoichenzio/apollo-rest/blob/master/app/Http/Middleware/SurveyQuestionMiddleware.php | Github Open Source | Open Source | MIT | null | apollo-rest | lamoichenzio | PHP | Code | 63 | 209 | <?php
namespace App\Http\Middleware;
use Closure;
class SurveyQuestionMiddleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle(\Illuminate\Http\Request $request, Closure $next)
... | 14,551 |
https://github.com/vocho/vbs/blob/master/7z e.vbs | Github Open Source | Open Source | MIT | 2,021 | vbs | vocho | Visual Basic | Code | 71 | 260 |
Set objFSO = CreateObject("Scripting.FileSystemObject")
Call ArgProc
Set objFSO = Nothing
Function ArgProc
For Each strArg In WScript.Arguments
If objFSO.FolderExists(strArg) Then
Call FolderProc(objFSO.GetFolder(strArg))
ElseIf objFSO.FileExists(strArg) Then
Call FileProc(o... | 34 |
https://github.com/cjunxiang/main/blob/master/src/test/java/seedu/divelog/model/ModelManagerTest.java | Github Open Source | Open Source | MIT | null | main | cjunxiang | Java | Code | 164 | 723 | package seedu.divelog.model;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static seedu.divelog.model.Model.PREDICATE_SHOW_ALL_DIVES;
import static seedu.divelog.testutil.TypicalDiveSessions.DIVE_AT_BALI;
import static seedu.divelog.testutil.TypicalDiveSessions.DIVE_AT_N... | 35,046 |
https://github.com/sai25640/xlhb-VRProject-Career/blob/master/CareerVR/Assets/Resources.meta | Github Open Source | Open Source | MIT | 2,017 | xlhb-VRProject-Career | sai25640 | Unity3D Asset | Code | 14 | 72 | fileFormatVersion: 2
guid: c767ad2b26c80a9468e91fa1e6664d90
folderAsset: yes
timeCreated: 1505275535
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| 35,358 |
https://github.com/rasheedja/aston-animal-sanctuary/blob/master/staff_home.php | Github Open Source | Open Source | MIT | null | aston-animal-sanctuary | rasheedja | PHP | Code | 323 | 1,104 | <?php
session_start();
if (isset($_SESSION['name'])) {
// store the username in a variable
$username = $_SESSION['name'];
// connect to the database
$db = new PDO("mysql:dbname=rasheeja_db;host=localhost", "root", "***REMOVED***");
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
//... | 34,313 |
https://github.com/LeapBeyond/wasabi/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,020 | wasabi | LeapBeyond | Ignore List | Code | 19 | 80 | # Local .terraform directories
**/.terraform/*
**/env.rc
**/terraform.tfvars
**/*.zip
data
notes
# .tfstate files
**/*.tfstate
**/*.tfstate.*
.DS_Store
**/*.pem
**/*key
**/.idea/*
| 13,374 |
https://github.com/AndXD/JS-Sandbox/blob/master/src/SandboxException.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | JS-Sandbox | AndXD | JavaScript | Code | 10 | 29 | export default class SandboxException{
constructor(message){
this.message = message;
}
} | 25,372 |
https://github.com/pavelmaksimov/python-data-transformer/blob/master/datagun/datagun.py | Github Open Source | Open Source | MIT | 2,021 | python-data-transformer | pavelmaksimov | Python | Code | 3,192 | 10,298 | # -*- coding: utf-8 -*-
import ast
import datetime as dt
import logging
import re
import sys
from collections.abc import Iterable
import pytz
from dateutil import parser as dt_parser
logging.basicConfig(level=logging.INFO)
ONLY_SERIES_ERROR = "Only Accepts Series"
NULL_VALUES = {None, "", "NULL", "none", "None", "nu... | 48,714 |
https://github.com/Daio-io/trivapi-client-android/blob/master/trivapiclient/build.gradle | Github Open Source | Open Source | MIT | 2,015 | trivapi-client-android | Daio-io | Gradle | Code | 47 | 212 | apply plugin: 'com.android.library'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
testOptions {
unitTests.returnDefaultValues = true
}
defaultConfig {
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0.0"
}
buildTypes {
... | 38,276 |
https://github.com/royswale/leetcode/blob/master/src/bin/number-of-1-bits.rs | Github Open Source | Open Source | MIT | 2,021 | leetcode | royswale | Rust | Code | 48 | 94 | fn main() {}
struct Solution;
impl Solution {
pub fn hammingWeight(n: u32) -> i32 {
let mut r = 0;
let mut n = n;
while n > 0 {
if n % 2 == 1 {
r += 1;
}
n /= 2;
}
r
}
}
| 4,601 |
https://github.com/johnvergilbulac93/alturush-admin/blob/master/resources/js/components/menu/Purchasing-Menu.vue | Github Open Source | Open Source | MIT | null | alturush-admin | johnvergilbulac93 | Vue | Code | 34 | 145 | <template>
<Menu theme="light" style="width: 100%;" accordion>
<MenuItem name="1" to="/">
<Icon type="md-speedometer" />
Dashboard
</MenuItem>
<MenuItem name="2" to="/masterfile/store/product_list">
<Icon type="md-basket" />
Product Lists
... | 47,056 |
https://github.com/networknt/light-bot/blob/master/exec-gitrepo-sync/build.gradle.kts | Github Open Source | Open Source | Apache-2.0 | 2,020 | light-bot | networknt | Kotlin | Code | 13 | 125 | plugins {
java
}
dependencies {
compile(project(":exec-core"))
compile("org.slf4j:slf4j-api:1.7.25")
compile("com.networknt:config:1.6.5")
compile("com.networknt:service:1.6.5")
testCompile("junit:junit:4.12")
testCompile("ch.qos.logback:logback-classic:1.2.3")
}
| 25,783 |
https://github.com/buckaroo-it/BuckarooSdk_DotNet/blob/master/BuckarooSdk/Base/ResponseHandler.cs | Github Open Source | Open Source | MIT | 2,023 | BuckarooSdk_DotNet | buckaroo-it | C# | Code | 72 | 248 | using System;
using System.Collections.Generic;
using BuckarooSdk.DataTypes.Response;
using BuckarooSdk.Services;
using static BuckarooSdk.Constants.Services;
namespace BuckarooSdk.Base
{
[Obsolete]
public class ResponseHandler
{
public void HandleResponse(RequestResponse transaction)
{
... | 20,984 |
https://github.com/raincatcher-beta/raincatcher-demo-load-testing/blob/master/util/getCreatedRecord.js | Github Open Source | Open Source | Apache-2.0 | null | raincatcher-demo-load-testing | raincatcher-beta | JavaScript | Code | 75 | 251 | 'use strict';
const _ = require('lodash');
const Promise = require('bluebird');
function getCreatedRecordSyncLoop(syncRecordsFn, interval, timeout, initialSyncResult, initialClientRecs, compareFn) {
return new Promise(resolve => {
function next(previousResult, clientRecs) {
return syncRecordsFn(clientRec... | 50,191 |
https://github.com/l3kov9/ReactJsFundamentals/blob/master/ComponentsStatesLifecycle/components-demo/src/components/Header.js | Github Open Source | Open Source | MIT | null | ReactJsFundamentals | l3kov9 | JavaScript | Code | 23 | 83 | import React, {Component} from 'react'
class Header extends Component{
render (){
return(
<div className='header'>
<h1>Menu</h1>
<h2>{this.props.menuItem}</h2>
</div>
)
}
}
export default Header
| 37,579 |
https://github.com/olen-d/mail-body-parser/blob/master/src/index.js | Github Open Source | Open Source | MIT | 2,022 | mail-body-parser | olen-d | JavaScript | Code | 145 | 245 | const generic = require("./generic");
// Currently the generic parser works fine, but in the future specific parsers may be needed for clients that send non-compliant messages.
/**
* Splits out individual parts of messages based on the email client the message was sent from
* @author Olen Daelhousen <mailbodyparser@... | 16,269 |
https://github.com/russiansmack/centrifugo/blob/master/misc/rpm/build.sh | Github Open Source | Open Source | MIT | 2,022 | centrifugo | russiansmack | Shell | Code | 61 | 282 | #!/bin/bash
if [ "$1" = "" ]
then
echo "Usage: $0 <version>"
exit 1
fi
if [ ! -f centrifugo-$1-linux-amd64.zip ]; then
echo "No Centrifugo release found in current directory"
exit 1
fi
cp centrifugo-$1-linux-amd64.zip ~/rpmbuild/SOURCES/centrifugo-$1-linux-amd64.zip
cp centrifugo.spec ~/rpmbuild/SPECS/centrifug... | 3,066 |
https://github.com/tpriyanshukrishnan/systemscale/blob/master/images/image_processor.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | systemscale | tpriyanshukrishnan | Python | Code | 36 | 103 | # python3 -m pip install --upgrade pip
# python3 -m pip install --upgrade Pillow
# usage change image_resize & post value
image_resize='chart-preview.png'
post= 'post_img/'+'post2.png'
from PIL import Image
image = Image.open(image_resize)
new_image = image.resize((200, 200))
new_image.save(post) | 6,198 |
https://github.com/lukeenterprise/aws-sdk-net/blob/master/sdk/test/Services/RoboMaker/UnitTests/Generated/Marshalling/RoboMakerMarshallingTests.cs | Github Open Source | Open Source | MS-PL, LicenseRef-scancode-proprietary-license, MIT, Apache-2.0, LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,020 | aws-sdk-net | lukeenterprise | C# | Code | 2,994 | 14,662 | /*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | 47,860 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.