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/sunhk123456/abcf/blob/master/src/components/Until/ProSelect.less | Github Open Source | Open Source | MIT | null | abcf | sunhk123456 | Less | Code | 560 | 1,982 |
.proContent {
display: flex;
float: left;
width: 100%;
}
.name {
width: 70px;
height: 30px;
line-height: 32px;
margin-right: 10px;
text-align: center;
//font-size: 16px;
}
.cityFrame {
flex: 1;
position: relative;
display: inline-block;
width: 100%;
max-width: 200px;
height: 100%;
paddi... | 1,963 |
https://github.com/Diku0413/optimalt-yatzy/blob/master/src/test/java/se/kth/ansjobmarcular/UtilsTest.java | Github Open Source | Open Source | MIT | null | optimalt-yatzy | Diku0413 | Java | Code | 298 | 946 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package se.kth.ansjobmarcular;
import java.util.Arrays;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author ansjob
*/
public class UtilsTest {
@Test
public void TestOne() {
boo... | 34,327 |
https://github.com/Tok3n/tok3nsdkgo_demoAE/blob/master/oxxo/OxxoBanamex/build/web/packages/$sdk/lib/_internal/compiler/implementation/tree/tree.dart | Github Open Source | Open Source | Apache-2.0 | 2,019 | tok3nsdkgo_demoAE | Tok3n | Dart | Code | 66 | 178 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library tree;
import 'dart:collection';
import '../scanner/scannerlib.dart';
import '../util/util.dar... | 20,945 |
https://github.com/lyudison/mkultra/blob/master/Assets/NL/base_grammar_test.prolog | Github Open Source | Open Source | MIT | 2,016 | mkultra | lyudison | Prolog | Code | 194 | 686 | test_options(completion(_, _),
setup(bind(input_from_player, true))).
test(completion(s, what_is_on),
[ true( nonempty_instantiated_atom_list(Completion) ),
nondet ]) :-
s_test(_, interrogative, [what, is, on | Completion]).
test(completion(s, imperative),
[ true( nonempty_instantiated_atom_... | 541 |
https://github.com/openshift/installer/blob/master/terraform/providers/alicloud/vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/node_resource_plan_orphan.go | Github Open Source | Open Source | Apache-2.0, MPL-2.0 | 2,023 | installer | openshift | Go | Code | 209 | 819 | package terraform
import (
"github.com/hashicorp/terraform-plugin-sdk/internal/plans"
"github.com/hashicorp/terraform-plugin-sdk/internal/providers"
"github.com/hashicorp/terraform-plugin-sdk/internal/states"
)
// NodePlannableResourceInstanceOrphan represents a resource that is "applyable":
// it is ready to be a... | 13,565 |
https://github.com/naudmitry/phpshopbear/blob/master/views/catalog/index.php | Github Open Source | Open Source | Apache-2.0 | null | phpshopbear | naudmitry | PHP | Code | 218 | 1,036 | <?php include ROOT . '/views/layouts/header.php'; ?>
<!--content-->
<div class="product">
<div class="container">
<div class="col-md-3 product-price">
<div class=" rsidebar span_1_of_left">
<div class="of-left">
<h3 class="cate">Категории</h3>
</div>
<br>
<div class="panel-group category... | 21,087 |
https://github.com/brettlangdon/greenrpc/blob/master/greenrpc/server.py | Github Open Source | Open Source | MIT | 2,020 | greenrpc | brettlangdon | Python | Code | 203 | 771 | import contextlib
import json
import urlparse
from gevent import pywsgi
from gevent.server import StreamServer
import msgpack
from greenrpc import DEFAULT_PORT
from greenrpc.base import BaseServer
class TCPServer(StreamServer, BaseServer):
def __init__(self, services, bind=("127.0.0.1", DEFAULT_PORT), spawn=1):... | 34,761 |
https://github.com/0pen5pace/jflex-1/blob/master/jflex/examples/simple/BUILD | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-warranty-disclaimer | 2,018 | jflex-1 | 0pen5pace | Starlark | Code | 152 | 426 | load("//third_party/de/jflex:build_rules.bzl", "jflex")
# The best practice is to define the rules in their respective directory in
# - src/main/java/org/example/foo/BUILD
# - src/main/jflex/BUILD
# - src/test/java/org/example/foo/BUILD
# - etc.
# However, this example is simple enough and we can define all rules here... | 13,465 |
https://github.com/olsemeno/jruby/blob/master/spec/ruby/library/rexml/attribute/element_spec.rb | Github Open Source | Open Source | Ruby, Apache-2.0 | 2,019 | jruby | olsemeno | Ruby | Code | 65 | 223 | require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
require 'rexml/document'
describe "REXML::Attribute#element" do
it "returns the parent element" do
e = REXML::Element.new "root"
REXML::Attribute.new("name", "value", e).element.should == e
REXML::Attribute.new("name", "d... | 12,979 |
https://github.com/zcatch/blog/blob/master/app/Http/Controllers/Home/CommonController.php | Github Open Source | Open Source | MIT | 2,021 | blog | zcatch | PHP | Code | 66 | 233 | <?php
namespace App\Http\Controllers\Home;
use App\Model\Cate;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class CommonController extends Controller
{
//
public function __construct()
{
$cate = Cate::get();
$cateone = [];
$catetwo = [];
foreach ($c... | 8,180 |
https://github.com/ben-eb/metalsmith-mdast/blob/master/src/index.js | Github Open Source | Open Source | MIT | 2,015 | metalsmith-mdast | ben-eb | JavaScript | Code | 66 | 188 | import {extname} from 'path';
import remark from 'remark';
import html from 'remark-html';
export default function metalsmithRemark (plugins) {
return function (files) {
Object.keys(files).map(file => {
const extension = extname(file);
if (extension !== '.md' && extension !== '.mark... | 1,354 |
https://github.com/crazywiden/Leetcode_daily_submit/blob/master/Widen/LC764_Largest_Plus_Sign.py | Github Open Source | Open Source | MIT | null | Leetcode_daily_submit | crazywiden | Python | Code | 370 | 816 | # 764. Largest Plus Sign
# In a 2D grid from (0, 0) to (N-1, N-1), every cell contains a 1, except those cells in the given list mines which are 0. What is the largest axis-aligned plus sign of 1s contained in the grid? Return the order of the plus sign. If there is none, return 0.
# An "axis-aligned plus sign of 1s o... | 27,110 |
https://github.com/gobb/albatros/blob/master/src/ARIPD/CMSBundle/ARIPDCMSBundle.php | Github Open Source | Open Source | MIT | 2,013 | albatros | gobb | PHP | Code | 11 | 46 | <?php
namespace ARIPD\CMSBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class ARIPDCMSBundle extends Bundle {
}
| 13,872 |
https://github.com/mvdiener/project_euler/blob/master/Ruby/problem009.rb | Github Open Source | Open Source | MIT | null | project_euler | mvdiener | Ruby | Code | 125 | 277 | # A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
# a^2 + b^2 = c^2
# For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2.
# There exists exactly one Pythagorean triplet for which a + b + c = 1000.
# Find the product abc.
# 2mn
# m**2 − n**2
# m**2 + n**2
def find_triple(m, n)
a = m**2 - n**... | 53,827 |
https://github.com/CitlalyAlmanza/ProyectoGina/blob/master/SAGA_tienda/build/web/ABCproductos/executeBaja.jsp | Github Open Source | Open Source | MIT | 2,018 | ProyectoGina | CitlalyAlmanza | null | Spoken | 108 | 449 | <%--
Document : executeBaja
Created on : 9/11/2016, 10:45:13 PM
Author : PC
--%>
<jsp:useBean id="objConn" class="mysql.MySqlConexion"/>
<jsp:useBean id="objCuenta" class="clases.Productos" scope="session" />
<jsp:setProperty name="objCuenta" property="*"/>
<%@page contentType="text/html" pageEnco... | 12,674 |
https://github.com/WCry/demo/blob/master/spring-cloud/springcloud-sso/sso/auth-center-master/auth-server/auth-server-core/src/main/java/com/lingchaomin/auth/server/core/user/service/impl/QQUserRefService.java | Github Open Source | Open Source | Apache-2.0 | null | demo | WCry | Java | Code | 89 | 507 | package com.lingchaomin.auth.server.core.user.service.impl;
import com.lingchaomin.auth.server.common.dto.OperErrorCode;
import com.lingchaomin.auth.server.common.dto.OperateResultDto;
import com.lingchaomin.auth.server.common.handler.ReqResultFormatter;
import com.lingchaomin.auth.server.core.user.dao.QQUserRefDao;
i... | 29,523 |
https://github.com/vodinhduy197/review-book/blob/master/app/Repositories/SocialAccount/SocialAccountEloquentRepository.php | Github Open Source | Open Source | MIT | null | review-book | vodinhduy197 | PHP | Code | 27 | 91 | <?php
namespace App\Repositories\SocialAccount;
use App\Repositories\EloquentRepository;
use App\Models\SocialAccount;
class SocialAccountEloquentRepository extends EloquentRepository implements SocialAccountInterfaceRepository
{
// inject SocialAccount in getModel
public function getModel()
{
ret... | 53,623 |
https://github.com/tom-hyde/GoPlex-WPMH-test/blob/master/wp-content/plugins/woocommerce-admin/vendor/composer/autoload_classmap_package.php | Github Open Source | Open Source | MIT, GPL-3.0-only | 2,020 | GoPlex-WPMH-test | tom-hyde | PHP | Code | 2,779 | 17,063 | <?php
// This file `autoload_classmap_packages.php` was auto generated by automattic/jetpack-autoloader.
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(
'Composer\\Installers\\GravInstaller' => array(
'version' => '1.7.0.0',
'path' => $vendorDir . '/composer/installers/src/Com... | 8,874 |
https://github.com/androidx/androidx/blob/master/compose/compiler/compiler-hosted/src/main/java/androidx/compose/compiler/plugins/kotlin/VersionChecker.kt | Github Open Source | Open Source | Apache-2.0 | 2,023 | androidx | androidx | Kotlin | Code | 822 | 2,465 | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 37,963 |
https://github.com/LucBerge/Datafus/blob/master/data/DofusInvoker/scripts/com/ankamagames/dofus/logic/game/common/actions/livingObject/MimicryObjectEraseRequestAction.as | Github Open Source | Open Source | MIT | 2,021 | Datafus | LucBerge | null | Spoken | 53 | 238 | package com.ankamagames.dofus.logic.game.common.actions.livingObject
{
import com.ankamagames.dofus.misc.utils.AbstractAction;
import com.ankamagames.jerakine.handlers.messages.Action;
public class MimicryObjectEraseRequestAction extends AbstractAction implements Action
{
public var... | 33,243 |
https://github.com/Scottx86-64/dotfiles-1/blob/master/source/pkgsrc/inputmethod/canna/Makefile | Github Open Source | Open Source | Unlicense | 2,021 | dotfiles-1 | Scottx86-64 | Makefile | Code | 23 | 148 | # $NetBSD: Makefile,v 1.12 2015/10/18 03:58:31 tsutsui Exp $
META_PACKAGE= yes
.include "Makefile.common"
PKGNAME:= Canna-${CANNA_VERSION}
DEPENDS+= Canna-server>=${CANNA_VERSION}:../../inputmethod/canna-server
DEPENDS+= Canna-dict>=${CANNA_VERSION}:../../inputmethod/canna-dict
CANNA_MODULE= meta-package
.include... | 1,320 |
https://github.com/tse123/jdw/blob/master/src/pages/Goods.js | Github Open Source | Open Source | MIT | null | jdw | tse123 | JavaScript | Code | 202 | 1,522 | import React,{Component} from "react";
import Carousel from 'yo3/component/carousel';
import CarouselItem from "yo3/component/carousel/src/carouselItem";
import { loading } from 'yo3/component/loading';
import axios from "axios";
//import $ from "jquery";
import Judgesingle from "./Judgesingle";
class Goods extends Com... | 13,025 |
https://github.com/Kunal-Attri/kunal-attri.github.io/blob/master/maths/codes/download/Shortest diagonal in a regular polygon.py | Github Open Source | Open Source | Apache-2.0 | null | kunal-attri.github.io | Kunal-Attri | Python | Code | 127 | 348 | from math import cos, pi
def get_integer(msg="Number: ", wrng_msg="Invalid Input"):
try:
i = int(input(msg))
except ValueError:
print(wrng_msg)
return get_integer(msg, wrng_msg)
else:
return i
def get_float(msg="Number: ", wrng_msg="Invalid Input"):
try:
f = fl... | 35,939 |
https://github.com/zukaaman/grid-test/blob/master/src/blocks/modules/new-products/new-products.js | Github Open Source | Open Source | MIT | null | grid-test | zukaaman | JavaScript | Code | 68 | 201 | // modules.define('new-products', ['i-bem-dom'], function(provide, bemDom) {
// provide(bemDom.declBlock(this.name, {
// onSetMod: {
// js: {
// inited: function() {
// }
// }
// }
// }));
// });
import Glide from '@glidejs/glide'
var glide = new Glide('.new-products_... | 21,658 |
https://github.com/arryan231/HACKTOBERFEST2020/blob/master/C++/Bubble_Sort.cpp | Github Open Source | Open Source | MIT | null | HACKTOBERFEST2020 | arryan231 | C++ | Code | 117 | 243 | using namespace std;
int main()
{
int n, i, j, temp;
cout << "Enter the number of elements" << endl;
cin >> n;
int arr[n];
for (i = 0; i < n; i++)
{
cout << "Enter " << i + 1 << " th element";
cin >> arr[i];
}
for (i = n; i > 0; i--)
{
for (j = 0; j < i - 1;... | 48,151 |
https://github.com/bcalco/dotnetrdf/blob/master/Libraries/dotNetRDF/Query/Algebra/ParallelUnion.cs | Github Open Source | Open Source | MIT | 2,021 | dotnetrdf | bcalco | C# | Code | 800 | 2,130 | /*
// <copyright>
// dotNetRDF is free and open source software licensed under the MIT License
// -------------------------------------------------------------------------
//
// Copyright (c) 2009-2021 dotNetRDF Project (http://dotnetrdf.org/)
//
// Permission is hereby granted, free of charge, to any person obtainin... | 53,202 |
https://github.com/superspeeder/thegamisms/blob/master/game/src/main/java/org/delusion/game/Main.java | Github Open Source | Open Source | MIT | null | thegamisms | superspeeder | Java | Code | 696 | 3,041 | package org.delusion.game;
import org.delusion.engine.App;
import org.delusion.engine.assets.AssetLibrary;
import org.delusion.engine.camera.Camera;
import org.delusion.engine.camera.OrthoCamera;
import org.delusion.engine.render.Color;
import org.delusion.engine.render.RenderQueue;
import org.delusion.engine.render.R... | 19,329 |
https://github.com/NightOfTwelve/iOS-Cracked-Apps/blob/master/DumpedClasses/iQiYiPhoneVideo/QYPPPubModel.h | Github Open Source | Open Source | MIT | 2,018 | iOS-Cracked-Apps | NightOfTwelve | Objective-C | Code | 336 | 1,395 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Jul 5 2017 23:13:50).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <Foundation/NSObject.h>
#import "NSCopying-Protocol.h"
@class NSArray, NSDictionary, NSNumber, NSString, QYPPPubConfig, QYPPP... | 48,795 |
https://github.com/lzhang714/SIRIUS-develop/blob/master/python_module/sirius/edft/marzari.py | Github Open Source | Open Source | BSD-2-Clause | 2,021 | SIRIUS-develop | lzhang714 | Python | Code | 1,394 | 4,090 | """
Conjugate gradient method for Marzari, Vanderbilt, Payne:
Theory for Ab Initio Molecular Dynamics of Metals and Finite-Temperature
Insulators. , 79(7), 1337–1340. http://dx.doi.org/10.1103/PhysRevLett.79.1337
- Marzari, N., Vanderbilt, D., & Payne, M. C. (). Ensemble Density-Functional
"""
from collections imp... | 46,244 |
https://github.com/honwlee/utilhub/blob/master/vendor/assets/javascripts/desktop/qface/windows/control/ItemsCollection.js | Github Open Source | Open Source | MIT | 2,014 | utilhub | honwlee | JavaScript | Code | 167 | 700 | /**
*
* Copyright (c) 2013 psteam Inc.(http://www.psteam.co.jp)
* http://www.psteam.co.jp/qface/license
*
* @Author: liwenfeng
* @Date: 2013/02/28
*/
define([
"qface/lang/declare",
"qface/windows/control/Control"
],function(declare,Control) {
System.defineClass({
name : "sw2.widget.ListItems",
statics : {... | 14,955 |
https://github.com/yasserhussain1110/sona-sarovar-trust/blob/master/client/components/Volunteer/VolunteerForm.jsx | Github Open Source | Open Source | MIT | 2,018 | sona-sarovar-trust | yasserhussain1110 | JavaScript | Code | 270 | 1,041 | import React, {Component} from 'react';
import axios from 'axios';
import {isEmail} from 'validator';
import PropTypes from 'prop-types';
class VolunteerForm extends Component {
constructor(props) {
super(props);
this.state = {
name: '',
nameError: '',
emailError: '',
email: '',
... | 20,122 |
https://github.com/zerothabhishek/tiny/blob/master/example.js | Github Open Source | Open Source | MIT | 2,020 | tiny | zerothabhishek | JavaScript | Code | 32 | 80 | const Tiny = require("tinytron")
const window = new Tiny();
window.setSize(500, 600);
window.setTitle("Your app");
// When using your own app use express to run the server and pass the url
window.navigate("http://dev.to/");
window.run();
window.destroy() | 5,539 |
https://github.com/dmitrirussu/Klinkor/blob/master/app/DemoApp/Views/default/index.tpl.php | Github Open Source | Open Source | ISC | 2,017 | Klinkor | dmitrirussu | PHP | Code | 4 | 13 | <h1>Welcome to default Page</h1> | 12,988 |
https://github.com/koenighotze/javaslang-playground/blob/master/src/main/java/org/koenighotze/vavrplayground/demo/collection/jdk8/FooListe.java | Github Open Source | Open Source | Apache-2.0 | null | javaslang-playground | koenighotze | Java | Code | 13 | 46 | package org.koenighotze.vavrplayground.demo.collection.jdk8;
/**
* @author David Schmitz
*/
public class FooListe {
}
| 34,436 |
https://github.com/vaibhavb/HealthVault-Ruby-Library/blob/master/lib/complex/lib/wc_data/includes/sig.rb | Github Open Source | Open Source | Apache-2.0 | 2,012 | HealthVault-Ruby-Library | vaibhavb | Ruby | Code | 217 | 833 |
module HealthVault
module WCData
module Types
class Sig < ComplexType
#<b>REQUIRED</b>
#<em>value</em> is a HealthVault::WCData::Types::String512
def data=(value)
@children['data'][:value] = value
end
#<b>returns</b>: a Hea... | 3,517 |
https://github.com/andreshp/GeneticQAP/blob/master/results/paper/sko100d/GADEGD/original/ps=8/21.sol | Github Open Source | Open Source | MIT | 2,017 | GeneticQAP | andreshp | Gerber Image | Code | 138 | 189 | Time (s): 100.00021982192993
Number of evaluations: 121961
Number of iterations: 194906
Number of local search applications: 0
Number of greedy solutions: 543
Number of reemplacements in GADEGD: 2145
The solution has objective value 155084 .
The permutation is:
[69 44 12 47 25 5 38 97 46 84 6 30 90 89 71 19 21 1 10 ... | 44,654 |
https://github.com/Buzzec/atomic_swapping/blob/master/src/lib.rs | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT, Apache-2.0 | 2,021 | atomic_swapping | Buzzec | Rust | Code | 1,178 | 3,886 | //! A concurrent data structure that allows for [`AtomicSwap::swap`] operations to be run on any type `T`.
//! ```
//! use atomic_swapping::AtomicSwap;
//!
//! let swap = AtomicSwap::new(100usize);
//! assert_eq!(swap.clone_inner(), 100usize);
//! assert_eq!(swap.swap(300usize), 100usize);
//! assert_eq!(swap.clone_inn... | 6,079 |
https://github.com/mit-pdos/perennial/blob/master/src/program_proof/mpaxos/becomeleader_proof.v | Github Open Source | Open Source | MIT | 2,023 | perennial | mit-pdos | null | Spoken | 3,336 | 11,476 | From Perennial.program_proof Require Import grove_prelude.
From Goose.github_com.mit_pdos.gokv Require mpaxos.
From Perennial.program_proof.grove_shared Require Import urpc_proof urpc_spec.
From Perennial.goose_lang.lib Require Import waitgroup.
From iris.base_logic Require Export lib.ghost_var mono_nat.
From iris.alge... | 11,008 |
https://github.com/BeastNeedsMoreTorque/Distribution/blob/master/a/aws-sdk/src/main/scala/typings/awsSdk/iotMod/StreamFile.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | BeastNeedsMoreTorque | Scala | Code | 72 | 276 | package typings.awsSdk.iotMod
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
@js.native
trait StreamFile extends js.Object {
/**
* The file ID.
*/
var fileId: js.UndefOr[FileId] = js.native
/**
* The location of the file in S3.
*/
var s3Location: js.Un... | 47,636 |
https://github.com/whaitukay/sql-spark-connector/blob/master/src/main/scala/com/microsoft/sqlserver/jdbc/spark/SQLServerBulkJdbcOptions.scala | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,021 | sql-spark-connector | whaitukay | Scala | Code | 423 | 1,126 | /*
*
* 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 m... | 298 |
https://github.com/netman5/Quotes/blob/master/quotes.js | Github Open Source | Open Source | MIT | 2,022 | Quotes | netman5 | JavaScript | Code | 462 | 870 | const quotes = [
'"Life isn\'t about finding yourself, it is about creating yourself."\n\n-George Bernard Shaw',
'"If you are going down the right path and you are willing to keep walking, eventually you\'ll make progress."\n-Barrack Obama',
'"I have far more respect for the person with a single idea who ge... | 14,977 |
https://github.com/anthonyyuan/gradio/blob/master/frontend/src/index.jsx | Github Open Source | Open Source | Apache-2.0 | 2,021 | gradio | anthonyyuan | null | Spoken | 86 | 268 | import React from 'react';
import ReactDOM from 'react-dom';
import GradioInterface from './gradio';
let fn = async (data, action) => {
const output = await fetch(process.env.REACT_APP_BACKEND_URL + "/api/" + action + "/", {
method: "POST",
body: JSON.stringify({ "data": data }),
headers: {
'Conten... | 11,756 |
https://github.com/beaukams/ecommerce/blob/master/client/app/cache/prod/twig/30/30cbd88e7e8a74c05eaa0357ecf74ce6250256159b516cd0ae5d4cb92df54574.php | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,016 | ecommerce | beaukams | PHP | Code | 452 | 1,919 | <?php
/* ::header.html.twig */
class __TwigTemplate_eb7402227d63c42727e8245fcddb73dfde6042df0f59fd6e1287f22d36b7847c extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
... | 18,120 |
https://github.com/vaughan189/nodejs-search-rest-api/blob/master/src/services/index.ts | Github Open Source | Open Source | MIT | 2,021 | nodejs-search-rest-api | vaughan189 | TypeScript | Code | 7 | 22 | import searchRoutes from "./search/routes";
export default [...searchRoutes]; | 22,471 |
https://github.com/kulabun/mongo-java-driver/blob/master/driver-core/src/main/com/mongodb/internal/session/BaseClientSessionImpl.java | Github Open Source | Open Source | Apache-2.0 | null | mongo-java-driver | kulabun | Java | Code | 534 | 1,510 | /*
* Copyright 2008-present MongoDB, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 49,583 |
https://github.com/SparkDevNetwork/Rock/blob/master/Rock/Bus/Faults/ReceiveFaultObserver.cs | Github Open Source | Open Source | ISC | 2,023 | Rock | SparkDevNetwork | C# | Code | 450 | 1,037 | // <copyright>
// Copyright by the Spark Development Network
//
// Licensed under the Rock Community License (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.rockrms.com/license
//
// Unless required by applicable law or ag... | 90 |
https://github.com/joshuaMarple/phase-vocoder/blob/master/app/Duration.py | Github Open Source | Open Source | Apache-2.0 | null | phase-vocoder | joshuaMarple | Python | Code | 228 | 680 | """
Authors: Fernando (UPDATE HIS INFO)
License: GPL 3.0
Description: This file contains functions that allows the user to
change the pitch of a .wav
Comments: None.
"""
import subprocess
import os
from sys import platform as _platform
from lib import pydub
def changeDuration(filename,percent):
"""
Input: file... | 24,873 |
https://github.com/ierror/29C3/blob/master/www/lib/js/ChildBrowser-iOS.js | Github Open Source | Open Source | BSD-3-Clause | 2,020 | 29C3 | ierror | JavaScript | Code | 273 | 684 |
/* MIT licensed */
// (c) 2010 Jesse MacFadyen, Nitobi
(function() {
var cordovaRef = window.PhoneGap || window.Cordova || window.cordova; // old to new fallbacks
function ChildBrowser() {
// Does nothing
}
// Callback when the location of the page changes
// called from native
Chil... | 13,646 |
https://github.com/Tripoin/bkn-api/blob/master/app/Repository/Impl/Unit/EloquentUnitRepository.php | Github Open Source | Open Source | MIT | null | bkn-api | Tripoin | PHP | Code | 54 | 175 | <?php
/**
* Created by PhpStorm.
* User: fadhilprm
* Date: 1/29/17
* Time: 2:18 PM
*/
namespace App\Repository\Impl\Unit;
use App\Models\ModelUnit;
use App\Repository\Impl\ABaseRepository;
use App\Repository\Impl\SecurityUser\UserRepository;
class EloquentUnitRepository extends ABaseRepository implements UnitRep... | 33,145 |
https://github.com/Wern-rm/UnitPay-PythonAPI/blob/master/models.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | UnitPay-PythonAPI | Wern-rm | Python | Code | 202 | 949 | from api import db
from datetime import datetime
class UnitpayPayments(db.Model):
__tablename__ = 'unitpay_payments'
id = db.Column(db.Integer(), primary_key=True, autoincrement=True, nullable=False)
unitpay_id = db.Column(db.VARCHAR(255), nullable=False)
account = db.Column(db.VARCHAR(255), nullable... | 22,871 |
https://github.com/slickframework/form/blob/master/tests/Validator/Gender.php | Github Open Source | Open Source | MIT | 2,020 | form | slickframework | PHP | Code | 106 | 246 | <?php
/**
* Created by PhpStorm.
* User: filipesilva
* Date: 17/02/16
* Time: 22:38
*/
namespace Slick\Tests\Form\Validator;
use Slick\Validator\AbstractValidator;
use Slick\Validator\ValidatorInterface;
class Gender extends AbstractValidator implements ValidatorInterface
{
/**
* Returns true if and ... | 53,251 |
https://github.com/mdavid50/restraunt/blob/master/index.php | Github Open Source | Open Source | Apache-2.0 | null | restraunt | mdavid50 | PHP | Code | 199 | 1,342 | <!DOCTYPE html>
<html>
<head>
<title>K'lynn's</title>
<!-- required meta tags -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- link to css stylesheet -->
<link rel="stylesheet" href="style/style.css" type="text/css"/>
<!-- link to jQ... | 1,155 |
https://github.com/erobert17/testServer/blob/master/vendor/ramsey/uuid/tests/Converter/Time/PhpTimeConverterTest.php | Github Open Source | Open Source | MIT | null | testServer | erobert17 | PHP | Code | 80 | 301 | <?php
namespace Ramsey\Uuid\Test\Converter;
use Ramsey\Uuid\Converter\Time\PhpTimeConverter;
/**
* Class PhpTimeConverterTest
* @package Ramsey\Uuid\Test\Converter
* @covers Ramsey\Uuid\Converter\Time\PhpTimeConverter
*/
class PhpTimeConverterTest extends \PHPUnit_Framework_TestCase
{
public function testCa... | 49,793 |
https://github.com/znailnetem/znail/blob/master/znail/ui/api/disciplines/packet_loss.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | znail | znailnetem | Python | Code | 107 | 484 | import flask_restplus
import marshmallow
from znail.netem.disciplines import PacketLoss
from znail.netem.tc import Tc
from znail.ui import api
from znail.ui.util import NoneAttributes, json_request_handler
class PacketLossSchema(marshmallow.Schema):
percent = marshmallow.fields.Float(required=True, validate=lamb... | 35,051 |
https://github.com/sopon0714/SEProject/blob/master/resources/views/listEquipment.blade.php | Github Open Source | Open Source | MIT | null | SEProject | sopon0714 | PHP | Code | 1,266 | 6,441 | @extends(Session::get('userType')==1 ? "./layoutNisit" : (Session::get('userType')==2 ?"./layoutTeacher":"./layoutAdmin"))
@section('title',"listEquipment")
@section('Content')
<div class="row">
<div class="col-xl-12 col-12 mb-4">
<div class="card">
<div class="card-header card-bg " style="back... | 721 |
https://github.com/azmodb/ninep/blob/master/proto/types_test.go | Github Open Source | Open Source | ISC | null | ninep | azmodb | Go | Code | 304 | 1,072 | package proto
import (
"math"
"reflect"
"strings"
"testing"
"github.com/azmodb/ninep/binary"
)
var customTestPackets = []packet{
{&Twalk{}, &Twalk{}},
{&Twalk{Fid: math.MaxUint32, NewFid: math.MaxUint32, Names: testNames}, &Twalk{}},
{testRwalk, &Rwalk{}},
{&Rwalk{}, &Rwalk{}},
}
func init() {
testPacket... | 14,913 |
https://github.com/NiHighlism/dystuss/blob/master/src/main/SignIn.js | Github Open Source | Open Source | MIT | 2,021 | dystuss | NiHighlism | JavaScript | Code | 506 | 1,718 | import * as React from "react";
import * as PropTypes from "prop-types";
import { NavLink, Link } from "react-router-dom";
import axios from 'axios';
import TextBox from "react-uwp/TextBox";
import AppBarButton from "react-uwp/AppBarButton";
import PasswordBox from "react-uwp/PasswordBox";
export default class SignIn... | 1,535 |
https://github.com/dahlke/eklhad/blob/master/Makefile | Github Open Source | Open Source | MIT | null | eklhad | dahlke | Makefile | Code | 528 | 2,892 | SHELL := /bin/bash
WEB_APP_NAME = eklhad-web
WEB_APP_TAR_NAME = eklhad-web.tar.gz
CWD := $(shell pwd)
PACKER_GCP_DEF_PATH=packer/gcp/image.json
PACKER_IMAGE_CMD=`tail -n 1 /Users/neil/src/github.com/dahlke/eklhad/packer/gcp/output/image.txt | awk '{print $$8}'`
PACKER_CIRCLECI_IMAGE_CMD=`tail -n 1 /go/src/github.com/d... | 29,543 |
https://github.com/TrustyFund/trusty-ui-vue/blob/master/client/components/Faq/info.js | Github Open Source | Open Source | MIT | 2,020 | trusty-ui-vue | TrustyFund | JavaScript | Code | 1,637 | 2,769 | const info = [
{
title: `
Why should you trust us?
`,
text: `
Trusty is not a person, team or a portfolio management company.
<br/>
Trusty is an open-source wallet for investing in crypto portfolio,
based on the BitShares blockchain (BitShares.org).
Blockchain guarantees that only the account owner controls
t... | 38,909 |
https://github.com/googleapis/google-cloud-dotnet/blob/master/apis/Google.Cloud.GkeBackup.V1/Google.Cloud.GkeBackup.V1.Snippets/BackupForGKEClientSnippets.g.cs | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | google-cloud-dotnet | googleapis | C# | Code | 17,364 | 48,762 | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 13,693 |
https://github.com/alexterliuk/zeco/blob/master/src/pages/404.tsx | Github Open Source | Open Source | MIT | null | zeco | alexterliuk | TypeScript | Code | 120 | 347 | import React, { useEffect, useState } from 'react';
import Layout from '../components/layout';
import SEO from '../components/seo';
import { translateCommon } from '../translations/translate';
import useLangContext from '../hooks/use-lang-context';
import LinkToHomepage from '../components/link-to-homepage';
import del... | 46,775 |
https://github.com/alemran042/pymcmcstat/blob/master/test/test_MCMC.py | Github Open Source | Open Source | MIT | 2,020 | pymcmcstat | alemran042 | Python | Code | 1,453 | 7,890 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 6 08:33:47 2018
@author: prmiles
"""
from pymcmcstat.MCMC import print_rejection_statistics, MCMC
from pymcmcstat.structures.ParameterSet import ParameterSet
import test.general_functions as gf
import unittest
from mock import patch
import io
impo... | 52,681 |
https://github.com/simtk/src/blob/master/fusionforge/www/survey/admin/show_results_individual.php | Github Open Source | Open Source | BSD-2-Clause, MIT | null | src | simtk | PHP | Code | 684 | 2,165 | <?php
/**
* Survey Facility
*
* Copyright 1999-2001 (c) VA Linux Systems
* Copyright 2002-2004 (c) GForge Team
* http://fusionforge.org/
*
* This file is part of FusionForge. FusionForge is free software;
* you can redistribute it and/or modify it under the terms of the
* GNU General Public License as publishe... | 29,916 |
https://github.com/gs1/gmn-helpers/blob/master/js/gmn.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | gmn-helpers | gs1 | JavaScript | Code | 1,765 | 3,592 | /**
* Helper module that is both a demonstration and usable implementation of a
* check character pair generator and verifier for a GS1 Global Model Number.
*
* @author Copyright (c) 2019-2021 GS1 AISBL.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in com... | 2,222 |
https://github.com/xtne6f/EDCB/blob/master/BonCtrl/OneServiceUtil.h | Github Open Source | Open Source | MIT | 2,023 | EDCB | xtne6f | C++ | Code | 353 | 2,089 | #pragma once
#include "../Common/ErrDef.h"
#include "../Common/TSPacketUtil.h"
#include "../Common/StringUtil.h"
#include "../Common/SendTSTCPDllUtil.h"
#include "BonCtrlDef.h"
#include "WriteTSFile.h"
#include "DropCount.h"
#include "ServiceFilter.h"
#include <functional>
class COneServiceUtil
{
public:
COneServi... | 35,647 |
https://github.com/Eskeptor/Unity/blob/master/ShootingGame2D/Assets/Scene/Level1.unity.meta | Github Open Source | Open Source | BSD-3-Clause | 2,018 | Unity | Eskeptor | Unity3D Asset | Code | 12 | 68 | fileFormatVersion: 2
guid: a1dc4e2d2c259f54f9e88e39fbe3230a
timeCreated: 1477638890
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| 45,519 |
https://github.com/XXAI/X11/blob/master/resources/frontend/src/app/dev-tools/dev-tools.module.ts | Github Open Source | Open Source | MIT | 2,023 | X11 | XXAI | TypeScript | Code | 63 | 196 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SharedModule } from '../shared/shared.module';
import { DevToolsRoutingModule } from './dev-tools-routing.module';
import { ReporterModule } from './reporter/reporter.module';
import { DashboardComponent } from './utiler... | 39,813 |
https://github.com/grammarware/slps/blob/master/topics/grammars/rdf/w3c-20031010/Makefile | Github Open Source | Open Source | BSD-3-Clause | 2,021 | slps | grammarware | Makefile | Code | 8 | 57 | extract:
echo TODO
get:
wget http://www.w3.org/TR/2003/WD-rdf-syntax-grammar-20031010/
include ../../Makefile.grammar
| 7,057 |
https://github.com/jonny-xhl/golang-demo-code/blob/master/go07.go | Github Open Source | Open Source | MIT | 2,022 | golang-demo-code | jonny-xhl | Go | Code | 242 | 1,065 | package main
import (
"fmt"
"math"
"math/rand"
"time"
)
// 整数练习
func main() {
// 所有“整数”类型
var nuint uint
var nint int
var nint8 int8
var nint16 int16
var nint32 int32
var nint64 int64
var nuint8 uint8
var nuint16 uint16
var nuint32 uint32
var nuint64 uint64
fmt.Printf("%T\n", nuint)
fmt.Printf("%T\n"... | 12,197 |
https://github.com/ankgne/gymbackend/blob/master/app/Http/Controllers/AttendanceController.php | Github Open Source | Open Source | MIT | null | gymbackend | ankgne | PHP | Code | 317 | 958 | <?php
namespace App\Http\Controllers;
use App\Http\Resources\AccountResource;
use App\Http\Resources\AttendanceResource;
use App\Services\AttendanceService;
use App\Services\Helper;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
use Illuminate\Support\Facades\Validator;
class Attendanc... | 32,737 |
https://github.com/guillep/pharo/blob/master/src/Morphic-Widgets-Tree.package/MorphTreeNodeMorph.class/instance/childrenDo..st | Github Open Source | Open Source | MIT | 2,017 | pharo | guillep | null | Spoken | 15 | 46 | updating
childrenDo: aBlock
firstChild ifNotNil: [
firstChild withSiblingsDo: [ :aNode | aBlock value: aNode].
] | 22,029 |
https://github.com/jakobhenner/heliosRX/blob/master/docs/.vuepress/styles/index.styl | Github Open Source | Open Source | MIT | 2,020 | heliosRX | jakobhenner | Stylus | Code | 26 | 98 | div[class~=language-scheme]:before {
content: "bolt"
}
.home .hero .action-button:hover {
background-color: #f98e40 !important;
}
.home .hero .action-button {
background-color: #f97312 !important;
border-bottom: 2px solid #d74e07 !important;
}
| 9,391 |
https://github.com/nicolenair/poke-env/blob/master/unit_tests/environment/test_pokemon.py | Github Open Source | Open Source | MIT | 2,020 | poke-env | nicolenair | Python | Code | 123 | 476 | # -*- coding: utf-8 -*-
from poke_env.environment.pokemon import Pokemon
from poke_env.environment.pokemon_type import PokemonType
def test_pokemon_moves():
mon = Pokemon(species="charizard")
mon._moved("flamethrower")
assert "flamethrower" in mon.moves
mon._moved("struggle")
assert "struggle" n... | 21,143 |
https://github.com/RyanLandDev/Colossus/blob/master/src/main/java/net/ryanland/colossus/command/arguments/types/primitive/LongArgument.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Colossus | RyanLandDev | Java | Code | 53 | 247 | package net.ryanland.colossus.command.arguments.types.primitive;
import net.dv8tion.jda.api.interactions.commands.OptionMapping;
import net.dv8tion.jda.api.interactions.commands.OptionType;
import net.ryanland.colossus.command.arguments.parsing.exceptions.ArgumentException;
import net.ryanland.colossus.events.MessageC... | 39,540 |
https://github.com/BoykoDenis/Kniznica/blob/master/frontend/demo/app/genres/genres.module.ts | Github Open Source | Open Source | MIT | 2,021 | Kniznica | BoykoDenis | TypeScript | Code | 62 | 167 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { GenreComponent } from './components/genre.component';
import { GenresComponent } from './components/genres.component';
import { GenresRoutingModule } from './genres-routing.module';
import { SharedModule } from '../shared... | 6,942 |
https://github.com/drganam/LearnML/blob/master/benchmarks/I/formula/sub102.ml | Github Open Source | Open Source | MIT | 2,021 | LearnML | drganam | OCaml | Code | 135 | 360 | type formula =
| True
| False
| Not of formula
| AndAlso of formula * formula
| OrElse of formula * formula
| Imply of formula * formula
| Equal of exp * exp
and exp =
| Num of int
| Plus of exp * exp
| Minus of exp * exp
let rec js:exp->int
=fun f->match f with
Num(n)->n
|Plus(a1,... | 41,821 |
https://github.com/kristianmandrup/cream2/blob/master/spec/spec_helper/init.rb | Github Open Source | Open Source | MIT | 2,011 | cream2 | kristianmandrup | Ruby | Code | 39 | 192 | ENV["RAILS_ENV"] = "test"
environment_file = File.expand_path("../../dummy_apps/#{APP_NAME}/config/environment.rb", __FILE__)
require environment_file
require "rails/test_help"
require "rspec/rails"
require "steak"
ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
ActionMailer::B... | 10,901 |
https://github.com/gorootde/owncloud/blob/master/environment/owncloud_releases/OC60/apps/documents/ajax/personal.php | Github Open Source | Open Source | Apache-2.0 | 2,020 | owncloud | gorootde | PHP | Code | 77 | 296 | <?php
/**
* ownCloud - Documents App
*
* @author Victor Dubiniuk
* @copyright 2013 Victor Dubiniuk victor.dubiniuk@gmail.com
*
* This file is licensed under the Affero General Public License version 3 or
* later.
*/
namespace OCA\Documents;
\OCP\JSON::callCheck();
\OCP\JSON::checkLoggedIn();
$savePath = iss... | 53,914 |
https://github.com/Renanvt/dev-back-end-II/blob/master/Programacao-Orientada-a-Objetos/Associacao/associacao-unaria/Class/Jogador.php | Github Open Source | Open Source | MIT | null | dev-back-end-II | Renanvt | PHP | Code | 240 | 680 | <?php
namespace Jogador;
Class Jogador
{
/*
No exemplo apresentado, temos a classe Jogador, cujos atributos são código,
nome e o código do possível capitão do jogador. Pelo fato de que esse capitão
também é um jogador, a associação chamada comanda indica uma possível
relação entre uma ou mais inst... | 16,244 |
https://github.com/microsoft/PowerToys/blob/master/src/modules/MouseUtils/MouseJumpUI/NativeMethods/User32/UI/WindowsAndMessaging/User32.GetSystemMetrics.cs | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, MIT, BSL-1.0, Unlicense | 2,023 | PowerToys | microsoft | C# | Code | 119 | 256 | // Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Runtime.InteropServices;
namespace MouseJumpUI.NativeMethods;
internal static partial class User32
{
/// <summary>
... | 24,641 |
https://github.com/pbrunet/nt2/blob/master/modules/boost/simd/ieee/include/boost/simd/ieee/functions/scalar/eps.hpp | Github Open Source | Open Source | BSL-1.0 | null | nt2 | pbrunet | C++ | Code | 165 | 663 | //==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// Se... | 45,841 |
https://github.com/achirkin/fgeom/blob/master/src/Geometry/Space/Approximate.hs | Github Open Source | Open Source | BSD-3-Clause | 2,017 | fgeom | achirkin | Haskell | Code | 1,368 | 2,635 | {-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DataKinds #-}
-----------------------------------------------------------------------------
-- |
-- Module : Geometry.Space.Approximate
-- Copyright : Copyright (C) 2015 Artem M. Chirkin <chirkin@arch.ethz.ch>
-- License : BSD3
-... | 44,489 |
https://github.com/AdemTsranchaliev/OnlineStoreSTD/blob/master/public/css/sass/layout/_helper-classes.scss | Github Open Source | Open Source | MIT | 2,020 | OnlineStoreSTD | AdemTsranchaliev | SCSS | Code | 147 | 530 | /*-------------------------------------------------------*/
/* Helper Classes
/*-------------------------------------------------------*/
.box-shadow {
box-shadow: 0px 1px 1px rgba(72, 78, 85, 0.10);
@include transition (all 0.2s ease-out);
&:hover {
box-shadow: 0 20px 40px rgba(72, 78, 85, 0.10);
@incl... | 9,485 |
https://github.com/nikisKuchbhi/NikisStore/blob/master/store site/Modules/Systemsetting/Entities/InfixTimeZone.php | Github Open Source | Open Source | MIT | null | NikisStore | nikisKuchbhi | PHP | Code | 23 | 74 | <?php
namespace Modules\Systemsetting\Entities;
use Illuminate\Database\Eloquent\Model;
class InfixTimeZone extends Model
{
protected $table = 'infix_time_zones';
protected $primaryKey = 'id';
protected $fillable = [];
}
| 20,878 |
https://github.com/qba73/manhat/blob/master/cli.go | Github Open Source | Open Source | MIT | null | manhat | qba73 | Go | Code | 252 | 592 | package manhat
import (
"errors"
"flag"
"fmt"
"io"
"os"
)
// These vars represent build metadata generated
// when the binary is built. Values are assigned
// using build flags (ldflags) at the build time.
var version, vcsref, buildtime string
// config is a struct that holds config
// parameters for the cli.
t... | 27,474 |
https://github.com/siddhpuraamitr/SignUpViaGooglePlusOrFacebook/blob/master/src/com/amitsid/signupwithgandfb/utils/ProfilesAdapter.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | SignUpViaGooglePlusOrFacebook | siddhpuraamitr | Java | Code | 304 | 810 | /*
* Copyright (C) 2011 iMellon
*
* 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, V... | 14,511 |
https://github.com/AzureMentor/allReady/blob/master/AllReadyApp/Web-App/AllReady/Features/Campaigns/CampaignByApplicationUserIdQuery.cs | Github Open Source | Open Source | MIT | 2,019 | allReady | AzureMentor | C# | Code | 30 | 98 | using System;
using System.Collections.Generic;
using System.Linq;
using AllReady.Models;
using AllReady.ViewModels.Campaign;
using MediatR;
namespace AllReady.Features.Campaigns
{
public class CampaignByApplicationUserIdQuery : IAsyncRequest<List<Campaign>>
{
public string ApplicationUserId { get; se... | 21,088 |
https://github.com/kianakholousi/PersianGulf/blob/master/code/competiton/setup/PG-Slave/Bluet.ino | Github Open Source | Open Source | MIT | null | PersianGulf | kianakholousi | null | Spoken | 41 | 130 | void BTSender()
{
char Buffer[10];
sprintf(Buffer, "(%03d%03d", (int)Ba, DistanceB);
Serial5.println(Buffer);
// Serial.println(Buffer);
}
void serialEvent5()
{
char TempData;
if (Serial5.available())
{ TempData = Serial5.read();
if (TempData == '1') RSit = 1;
else if (TempData == '0') RSit = 0;
... | 55,173 |
https://github.com/jerson/unipao/blob/master/src/scenes/user/upao/GalleryPhotoScreen.tsx | Github Open Source | Open Source | Apache-2.0 | 2,019 | unipao | jerson | TypeScript | Code | 311 | 1,059 | import * as React from 'react';
import {
Dimensions,
Image,
Platform,
ScaledSize,
StyleSheet,
Text,
View
} from 'react-native';
import { Color, Theme } from '../../../themes/styles';
import * as PropTypes from 'prop-types';
import NavigationButton from '../../../components/ui/NavigationButton';
import Ima... | 22,553 |
https://github.com/Kishoren2010/activewarehouse-etl-sample/blob/master/advanced/etl/common.rb | Github Open Source | Open Source | MIT | 2,013 | activewarehouse-etl-sample | Kishoren2010 | Ruby | Code | 112 | 337 | require 'awesome_print'
$: << File.dirname(__FILE__) + '/../lib'
require 'date_dimension_builder'
require 'time_dimension_builder'
DATA_FOLDER = File.dirname(__FILE__) + '/../data'
GIT_RAILS_REPO = File.join(DATA_FOLDER, 'git_rails')
UNKNOWN_USER_NAME = 'Unknown user'
# fail-fast process execution
def system!(cmd... | 29,905 |
https://github.com/giko/teavm/blob/master/teavm-core/src/main/java/org/teavm/model/util/LocationGraphBuilder.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | teavm | giko | Java | Code | 468 | 1,376 | /*
* Copyright 2014 Alexey Andreev.
*
* 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... | 13,652 |
https://github.com/jeffhem/skooner/blob/master/client/src/components/notifier.tsx | Github Open Source | Open Source | Apache-2.0 | 2,020 | skooner | jeffhem | TypeScript | Code | 235 | 700 | import './notifier.scss';
import _ from 'lodash';
import React from 'react';
import Base from './base';
import Button from './button';
type ActionButton = {
name: string;
className?: string;
action: () => void;
}
type Notification = {
id: number;
isError: boolean;
message: string;
buttons:... | 15,251 |
https://github.com/xdhuangsidi/qonversion-ios-sdk/blob/master/Sample/AppDelegate.swift | Github Open Source | Open Source | MIT | 2,021 | qonversion-ios-sdk | xdhuangsidi | Swift | Code | 102 | 341 | //
// AppDelegate.swift
// Sample
//
// Created by Sam Mejlumyan on 13.08.2020.
// Copyright © 2020 Qonversion Inc. All rights reserved.
//
import UIKit
import Qonversion
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIAppl... | 21,669 |
https://github.com/tonyberrynd/SugarDockerized/blob/master/sugar/modules/KBContents/language/es_ES.lang.php | Github Open Source | Open Source | Apache-2.0 | null | SugarDockerized | tonyberrynd | PHP | Code | 717 | 2,389 | <?php
/*
* Your installation or use of this SugarCRM file is subject to the applicable
* terms available at
* http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
* If you do not agree to all of the applicable terms or do not have the
* authority to bind the entity as an authorized representative... | 51,069 |
https://github.com/Jeebiz/jeebiz-admin/blob/master/jeebiz-admin-extras/jeebiz-admin-extras-article/src/main/java/io/hiwepy/admin/extras/article/service/impl/ArticleCommentServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | jeebiz-admin | Jeebiz | Java | Code | 47 | 228 | package io.hiwepy.admin.extras.article.service.impl;
import org.springframework.stereotype.Service;
import io.hiwepy.admin.extras.article.dao.ArticleCommentMapper;
import io.hiwepy.admin.extras.article.dao.entities.ArticleCommentEntity;
import io.hiwepy.admin.extras.article.service.IArticleCommentService;
import io.h... | 34,426 |
https://github.com/glowroot/glowroot/blob/master/agent/core/src/main/java/org/glowroot/agent/collector/Collector.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | glowroot | glowroot | Java | Code | 267 | 800 | /*
* Copyright 2015-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 43,383 |
https://github.com/sahwar/Twimg-Save/blob/master/lib/downloader/get.js | Github Open Source | Open Source | MIT | 2,020 | Twimg-Save | sahwar | JavaScript | Code | 58 | 223 | const electron = require('electron');
const remote = electron.remote;
const category = require('../category');
const get_img = function(url, count){
if(count == undefined){
count = 0;
}
console.log("start");
var save_dir = category.categorys[document.getElementById("category_select").value].save_dir;
va... | 41,462 |
https://github.com/pxsalehi/reconciler/blob/master/pkg/reconciler/instances/istio/reset/pod/reset/mocks/action.go | Github Open Source | Open Source | Apache-2.0 | null | reconciler | pxsalehi | Go | Code | 75 | 245 | // Code generated by mockery v2.9.4. DO NOT EDIT.
package mocks
import (
mock "github.com/stretchr/testify/mock"
kubernetes "k8s.io/client-go/kubernetes"
retry "github.com/avast/retry-go"
v1 "k8s.io/api/core/v1"
zap "go.uber.org/zap"
)
// Action is an autogenerated mock type for the Action type
type Action s... | 34,949 |
https://github.com/youweixue/RipplePower/blob/master/eclipse/libs_src/org/ripple/bouncycastle/openpgp/examples/DirectKeySignature.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference, MIT | 2,015 | RipplePower | youweixue | Java | Code | 435 | 1,884 | package org.ripple.bouncycastle.openpgp.examples;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.security.Security;
import java.util.Iterator;
import org.ripple.bouncycastle.bcpg.Armor... | 50,670 |
https://github.com/stefferd/perscriptio/blob/master/vendor/laravel/framework/src/Illuminate/Foundation/Console/FreshCommand.php | Github Open Source | Open Source | MIT | null | perscriptio | stefferd | PHP | Code | 91 | 501 | <?php namespace Illuminate\Foundation\Console;
use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;
class FreshCommand extends Command {
/**
* The console command name.
*
* @var string
*/
protected $name = 'fresh';
/**
* The console command description.
*
* @var string
*/
protec... | 23,603 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.