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/kh0ma-1991/RGCources_Spring_2017-Codebreaker-rack/blob/master/spec/controller_spec.rb | Github Open Source | Open Source | MIT | 2,017 | RGCources_Spring_2017-Codebreaker-rack | kh0ma-1991 | Ruby | Code | 101 | 390 | require 'spec_helper'
require 'rack/test'
module CodebreakerRackApp
class ControllerSpec
OUTER_APP = Rack::Builder.parse_file('config.ru').first
RSpec.describe Controller do
include Rack::Test::Methods
def app
OUTER_APP
end
describe '200' do
it '/' do
get ... | 5,169 |
https://github.com/zakharchenkoAndrii/expo/blob/master/ios/versioned-react-native/ABI42_0_0/ReactNative/ReactCommon/fabric/imagemanager/platform/ios/ABI42_0_0RCTImageInstrumentationProxy.mm | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | expo | zakharchenkoAndrii | Objective-C++ | Code | 153 | 687 | /*
* 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.
*/
#import "ABI42_0_0RCTImageInstrumentationProxy.h"
namespace ABI42_0_0facebook {
namespace ABI42_0_0React {
ABI42_0_0RCTImageInstr... | 22,622 |
https://github.com/eribeiro9/CoLabs/blob/master/app/server/publish.coffee | Github Open Source | Open Source | MIT | null | CoLabs | eribeiro9 | CoffeeScript | Code | 143 | 524 |
Meteor.publish 'allUsers', -> Meteor.users.find()
Meteor.publish 'projectUsers', (id) ->
project = Projects.findOne id
Meteor.users.find _id: $in: project.users
Meteor.publish 'projectAdmins', (id) ->
project = Projects.findOne id
Meteor.users.find _id: $in: project.admins
Meteor.publish 'oneUser', (id) -> ... | 32,457 |
https://github.com/openNaEF/openNaEF/blob/master/subprojects/opennaef.application/src/main/java/voss/multilayernms/inventory/nmscore/fwlb/AssignedIpController.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | openNaEF | openNaEF | Java | Code | 273 | 1,138 | package voss.multilayernms.inventory.nmscore.fwlb;
import naef.dto.CustomerInfoDto;
import naef.dto.ip.IpSubnetDto;
import naef.dto.ip.IpSubnetNamespaceDto;
import voss.core.server.builder.CustomerInfoCommandBuilder;
import voss.core.server.database.ShellConnector;
import voss.core.server.exception.ExternalServiceExce... | 41,588 |
https://github.com/Tickey/Talkie/blob/master/Development/Mobile Applications/Android/Tickey/Tickey/src/com/tickey/app/data/model/Post.java | Github Open Source | Open Source | Apache-2.0 | null | Talkie | Tickey | Java | Code | 7 | 23 | package com.tickey.app.data.model;
public class Post {
}
| 14,885 |
https://github.com/blnz/xt/blob/master/src/xt/java/com/blnz/xsl/sax2/OutputContentHandler.java | Github Open Source | Open Source | MIT | 2,016 | xt | blnz | Java | Code | 70 | 191 | // $Id: OutputContentHandler.java 97 2005-02-28 21:18:32Z blindsey $
package com.blnz.xsl.sax2;
import org.xml.sax.Attributes;
import org.xml.sax.ContentHandler;
import org.xml.sax.SAXException;
import java.util.Properties;
import java.io.IOException;
/**
* a SAX2 ContentHandler that serializes to a Destination
*... | 1,596 |
https://github.com/zeymaan/LunarUtility/blob/master/src/main/java/me/dubai/lunar/utils/ConfigFile.java | Github Open Source | Open Source | MIT | 2,021 | LunarUtility | zeymaan | Java | Code | 133 | 409 | package me.dubai.lunar.utils;
import java.io.File;
import me.dubai.lunar.Lunar;
import org.bukkit.plugin.Plugin;
import org.bukkit.configuration.file.YamlConfiguration;
/**
* Credits to RisasDev
* Am a noob at configuration stuff because I usually don't make my stuff configurable.
*/
public class ConfigFile exten... | 47,445 |
https://github.com/zhangxwhope/vue-web-template/blob/master/src/store/index.js | Github Open Source | Open Source | MIT | null | vue-web-template | zhangxwhope | JavaScript | Code | 127 | 433 | import Vue from 'vue';
import Vuex from 'vuex';
import { localStorage } from 'kdutil';
Vue.use(Vuex);
export default new Vuex.Store({
state: {
userInfo: {},
},
getters: {
GET_USERINFO(state) {
let { userInfo } = state;
// 如果 state 里面获取不到,那么从localStorage里面获取
if (!userInfo.userName) {
... | 2,054 |
https://github.com/blaqkube/traefik-ab-mapper/blob/master/server/service.go | Github Open Source | Open Source | BSD-3-Clause | 2,021 | traefik-ab-mapper | blaqkube | Go | Code | 60 | 226 | package main
import (
"encoding/json"
"net/http"
"github.com/carnage-sh/sessionmapper"
)
func ServiceHandler(w http.ResponseWriter, r *http.Request) {
keys := map[string]string{}
if r.Body != nil {
err := json.NewDecoder(r.Body).Decode(&keys)
if err != nil {
keys = map[string]string{}
}
}
output := m... | 19,905 |
https://github.com/MaulingMonkey/thindx/blob/master/dev/d3d9.rs | Github Open Source | Open Source | ECL-2.0, Apache-2.0, MIT-0, MIT | 2,021 | thindx | MaulingMonkey | Rust | Code | 682 | 2,363 | #[doc(no_inline)] pub use crate::misc::*;
#[doc(no_inline)] pub use crate::win32::*;
#[doc(no_inline)] pub use thindx::*;
#[doc(no_inline)] pub use thindx::d3d::*;
#[doc(no_inline)] pub use thindx::d3d9::*;
use winapi::shared::d3d9caps::*;
use winapi::shared::d3d9types::*;
use std::fs::*;
use std::io::*;
use std::me... | 16,986 |
https://github.com/FalkF/crnk-framework/blob/master/crnk-jpa/src/main/java/io/crnk/jpa/meta/MetaJpaDataObject.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | crnk-framework | FalkF | Java | Code | 17 | 80 | package io.crnk.jpa.meta;
import io.crnk.core.resource.annotations.JsonApiResource;
import io.crnk.meta.model.MetaDataObject;
@JsonApiResource(type = "meta/jpaDataObject")
public abstract class MetaJpaDataObject extends MetaDataObject {
}
| 17,553 |
https://github.com/aparo/zio-elasticsearch/blob/master/elasticsearch-core/src/main/scala/zio/elasticsearch/common/search/AggregationBreakdown.scala | Github Open Source | Open Source | Apache-2.0 | 2,023 | zio-elasticsearch | aparo | Scala | Code | 154 | 406 | /*
* Copyright 2019-2023 Alberto Paro
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 2,968 |
https://github.com/SystenceGames/TheMaestros-uScriptSource/blob/master/TheMaestrosGame/Classes/TMBruteHitBox.uc | Github Open Source | Open Source | MIT | 2,021 | TheMaestros-uScriptSource | SystenceGames | null | Spoken | 120 | 536 | class TMBruteHitBox extends StaticMeshActor;
var TMPawn m_owner;
var float m_timeSinceLastTouch;
var array<TMPawn> m_hitPawns;
var int m_damage;
function InitHitBox(int damage, TMPawn pw)
{
m_owner = pw;
m_timeSinceLastTouch = 0;
m_damage = damage;
}
event Touch( Actor Other, PrimitiveComponent OtherComp, vector... | 13,039 |
https://github.com/strigazi/athena/blob/master/InnerDetector/InDetEventCnv/InDetJiveXML/InDetJiveXML/SiSpacePointRetriever.h | Github Open Source | Open Source | Apache-2.0 | 2,020 | athena | strigazi | C++ | Code | 255 | 917 | /*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
#ifndef JIVEXML_SISPACEPOINTRETRIEVER_H
#define JIVEXML_SISPACEPOINTRETRIEVER_H
#include "JiveXML/IDataRetriever.h"
#include "AthenaBaseComps/AthAlgTool.h"
#include "InDetJiveXML/IInDetGeoModelTool.h"
#include "StoreGate/ReadHandleKey.h"
... | 18,189 |
https://github.com/jiunjiun/Kangaru/blob/master/app/assets/javascripts/channels/chat.coffee | Github Open Source | Open Source | MIT | null | Kangaru | jiunjiun | CoffeeScript | Code | 91 | 309 | PUSH = 1
RECEIVE = 2
App.chat = App.cable.subscriptions.create { channel: "ChatChannel" },
connected: ->
# Called when the subscription is ready for use on the server
console.log 'connected'
disconnected: ->
# Called when the subscription has been terminated by the server
console.log 'disconnec... | 27,899 |
https://github.com/goswamirajesh2011/shivayfinance/blob/master/resources/views/admin/slider/index.blade.php | Github Open Source | Open Source | MIT | null | shivayfinance | goswamirajesh2011 | PHP | Code | 196 | 957 | @extends('layouts.admin')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-6">
<h2>Sliders</h2>
</div>
<div class="col-md-6">
<a class="float-right" href="{{ route('admin.slider.create') }}" title="Add Slide">
<... | 10,991 |
https://github.com/chromium/chromium/blob/master/chrome/browser/feedback/android/java/src/org/chromium/chrome/browser/feedback/FeedbackSource.java | Github Open Source | Open Source | BSD-3-Clause | 2,023 | chromium | chromium | Java | Code | 162 | 290 | // Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.feedback;
import android.util.Pair;
import androidx.annotation.Nullable;
import java.util.Map;
/**
* Used by various components to prov... | 49,461 |
https://github.com/boumaza429/my-ichtus/blob/master/server/Application/Action/DatatransAction.php | Github Open Source | Open Source | MIT | 2,019 | my-ichtus | boumaza429 | PHP | Code | 563 | 1,808 | <?php
declare(strict_types=1);
namespace Application\Action;
use Application\Model\Account;
use Application\Model\Transaction;
use Application\Model\TransactionLine;
use Application\Model\User;
use Application\Repository\AccountRepository;
use Cake\Chronos\Chronos;
use Doctrine\ORM\EntityManager;
use Money\Money;
us... | 11,574 |
https://github.com/mas178/rw-old/blob/master/rw-front/ui/admin/client/scripts/pages/tenantMembershipsCreate.js | Github Open Source | Open Source | MIT | null | rw-old | mas178 | JavaScript | Code | 358 | 1,303 | 'use strict';
var angular = require('camunda-commons-ui/vendor/angular');
module.exports = [
'$scope', '$q', '$location', 'Uri', 'Notifications', 'camAPI', '$modalInstance', 'member', 'memberId', 'idList',
function($scope, $q, $location, Uri, Notifications, camAPI, $modalInstance, member, ... | 47,287 |
https://github.com/tomforge/Neuron/blob/master/neuron/interface-dev/src/store.js | Github Open Source | Open Source | Apache-2.0 | null | Neuron | tomforge | JavaScript | Code | 208 | 577 | import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
function createWebSocketPlugin() {
const wsuri = "ws://" + location.host + "/ws";
const socket =
"WebSocket" in window
? new WebSocket(wsuri)
: "MozWebSocket" in window
? new MozWebSocket(wsuri)
: null;
return store ... | 25,413 |
https://github.com/Galvanization/solicit/blob/master/src/http/frame/frames.rs | Github Open Source | Open Source | MIT | 2,015 | solicit | Galvanization | Rust | Code | 1,588 | 3,624 | use std::mem;
use super::super::StreamId;
/// An alias for the 9-byte buffer that each HTTP/2 frame header must be stored
/// in.
pub type FrameHeaderBuffer = [u8; 9];
/// An alias for the 4-tuple representing the components of each HTTP/2 frame
/// header.
pub type FrameHeader = (u32, u8, u8, u32);
/// Deconstructs ... | 51,484 |
https://github.com/tonythefreedom/hycivil/blob/master/Android/ARSquareTracking/ARSquareTrackingExample/src/main/java/org/artoolkitx/arx/arsquaretracking/MapsActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | hycivil | tonythefreedom | Java | Code | 328 | 1,273 | package org.artoolkitx.arx.arsquaretracking;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.support.v4.app.FragmentActivity;
import android.os.Bundle;
import android.support.v4.view.GravityCompat;
import and... | 10,094 |
https://github.com/ufz/ogs/blob/master/Tests/Data/Parabolic/ComponentTransport/elder/elder-python-bcs.py | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,023 | ogs | ufz | Python | Code | 100 | 269 | import OpenGeoSys
class BCPressure(OpenGeoSys.BoundaryCondition):
def getDirichletBCValue(self, t, coords, node_id, primary_vars):
x, y, z = coords
if x == -150 and z == 75:
# prescribe pressure of 0
return (True, 0.0)
# no Dirichlet BC
return (False, 0.0)... | 30,759 |
https://github.com/alexstrout/Arma3/blob/master/PBOSrc/foxUVA/uvaSwitchArse.sqf | Github Open Source | Open Source | MIT | null | Arma3 | alexstrout | SQF | Code | 371 | 1,022 | //fox: Add ability to use Universal Virtual Arsenal
scopeName "uvaSwitchArse";
//Arguments
_unit = _this select 0;
_mode = _this select 1; //see switch block
_uvaActivateOnInventoryOpen = false;
if ((configFile >> "foxConfig" >> "useSettings") call BIS_fnc_getCfgDataBool) then {
_uvaActivateOnInventoryOpen = (configF... | 51,695 |
https://github.com/madebykind/storyboard/blob/master/test/unit/context.js | Github Open Source | Open Source | MIT | 2,015 | storyboard | madebykind | JavaScript | Code | 377 | 1,090 | /* global Storyboard,QUnit,_ */
QUnit.module("Context and arguments");
QUnit.test("extending a scene with additional methods", function(assert) {
assert.expect(1);
var testDone = assert.async();
var done = false;
var app = new Storyboard({
boom : function() {
done = true;
},
enter : functio... | 120 |
https://github.com/TwilioDevEd/sms2fa-servlets/blob/master/src/main/java/com/twilio/sms2fa/application/util/ValidationUtil.java | Github Open Source | Open Source | MIT | 2,019 | sms2fa-servlets | TwilioDevEd | Java | Code | 39 | 154 | package com.twilio.sms2fa.application.util;
import javax.validation.ConstraintViolationException;
import static java.lang.String.format;
public final class ValidationUtil {
private ValidationUtil() {
}
public static String extractMessage(final ConstraintViolationException e) {
return format("<u... | 8,439 |
https://github.com/Moccine/Symfony-Projet-1/blob/master/web/libariries/bootstrap/node_modules/csscomb/lib/options/unitless-zero.js | Github Open Source | Open Source | MIT | null | Symfony-Projet-1 | Moccine | JavaScript | Code | 300 | 713 | module.exports = {
name: 'unitless-zero',
syntax: ['css', 'less', 'sass', 'scss'],
accepts: { boolean: [true] },
/**
* Processes tree node.
*
* @param {node} node
*/
process: function(node) {
var UNITS = ['cm', 'em', 'ex', 'pt', 'px'];
if (!node.is('value') &&... | 18,897 |
https://github.com/nanaaba/newvims/blob/master/public/scss/_core-variables.scss | Github Open Source | Open Source | MIT | null | newvims | nanaaba | SCSS | Code | 83 | 480 | // core overrides
$enable-sidebar-nav-rounded: true;
$border-color: $gray-200;
// Navbar
$navbar-brand-width: 240px;
$navbar-brand-bg: theme-color("success");
$navbar-brand-border: (
bottom: (
size: 1px,
style: ... | 37,511 |
https://github.com/inducer/boost-numeric-bindings/blob/master/boost/numeric/bindings/blas/blas2_overloads.hpp | Github Open Source | Open Source | BSL-1.0 | 2,017 | boost-numeric-bindings | inducer | C++ | Code | 521 | 1,267 | //
// Copyright (C) Toon Knapen 2003
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOOST_NUMERIC_BINDINGS_BLAS_BLAS2_OVERLOADS_HPP
#define BOOST_NUMERIC_BINDINGS_BLAS_BLAS2_OVERLOADS_HPP
#inclu... | 54,095 |
https://github.com/ppayaoxing/jun_product_center/blob/master/0000000000000/sanri-tools-maven/tools-core/src/main/java/com/sanri/tools/modules/core/service/file/ConnectService.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | jun_product_center | ppayaoxing | Java | Code | 425 | 1,742 | package com.sanri.tools.modules.core.service.file;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;
import javax.annotation.PostConstruct;
import com.sanri.tools.modules.core.dtos.UpdateConnectEvent;
import ... | 12,729 |
https://github.com/huaweicloud/huaweicloud-sdk-python-v3/blob/master/huaweicloud-sdk-antiddos/huaweicloudsdkantiddos/v1/model/alert_config_resp_warn_config.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | huaweicloud-sdk-python-v3 | huaweicloud | Python | Code | 699 | 2,741 | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class AlertConfigRespWarnConfig:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): ... | 31,408 |
https://github.com/zapodot/enbedded-jms-junit/blob/master/embedded-jms-junit5/src/test/java/org/zapodot/junit5/jms/EmbeddedJmsBrokerWithParameterTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | enbedded-jms-junit | zapodot | Java | Code | 96 | 431 | package org.zapodot.junit5.jms;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.zapodot.junit5.jms.annotations.EmbeddedJms;
import javax.jms.ConnectionFactory;
import java.n... | 292 |
https://github.com/TencentCloud/tencentcloud-sdk-java/blob/master/src/main/java/com/tencentcloudapi/iotvideo/v20201215/models/SDKLogItem.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | tencentcloud-sdk-java | TencentCloud | Java | Code | 471 | 1,288 | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 45,286 |
https://github.com/simpleidserver/SimpleIdServer/blob/master/src/IdServer/SimpleIdServer.IdServer/UI/ViewModels/ConsentViewModel.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | SimpleIdServer | simpleidserver | C# | Code | 112 | 272 | // Copyright (c) SimpleIdServer. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using System;
using System.Collections.Generic;
namespace SimpleIdServer.IdServer.UI.ViewModels
{
public class ConsentViewModel
{
public Con... | 2,281 |
https://github.com/nikhilk/silverlightfx/blob/master/src/Client/Core/_System/Presentation/Interactivity/Trigger.cs | Github Open Source | Open Source | BSD-3-Clause | 2,019 | silverlightfx | nikhilk | C# | Code | 415 | 1,064 | // Trigger.cs
// Copyright (c) Nikhil Kothari, 2008. All Rights Reserved.
// http://www.nikhilk.net
//
// Silverlight.FX is an application framework for building RIAs with Silverlight.
// This project is licensed under the BSD license. See the accompanying License.txt
// file for more information.
// For updated proje... | 43,906 |
https://github.com/andreasdomanowski/diagramming-libraries-comparison/blob/master/diagram-js-evaluation/src/js/const/dom-identifier.js | Github Open Source | Open Source | MIT | null | diagramming-libraries-comparison | andreasdomanowski | JavaScript | Code | 45 | 123 | export const diagramCanvas = "diagramCanvas";
export const serializeButton = "serializeButton";
export const serializeConsoleButton = "serializeConsoleButton";
export const deserializationTextarea = "deserializationTextarea";
export const deserializeButton = "deserializeButton";
export const modalSerializationIdenti... | 10,712 |
https://github.com/MortalKastor/lld-v2/blob/master/src/config/languages.js | Github Open Source | Open Source | MIT | 2,020 | lld-v2 | MortalKastor | JavaScript | Code | 35 | 102 | // @flow
import { getEnv } from "@ledgerhq/live-common/lib/env";
export const allLanguages = ["en", "es", "fr", "ja", "ko", "ru", "zh"];
export const prodStableLanguages = ["en"];
export const getLanguages = () =>
getEnv("EXPERIMENTAL_LANGUAGES") ? allLanguages : prodStableLanguages;
| 50,482 |
https://github.com/pusgs/materijali/blob/master/OData/Products/Booking/Controllers/ProductCategoriesController.cs | Github Open Source | Open Source | MIT | 2,017 | materijali | pusgs | C# | Code | 302 | 1,151 | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Http.ModelBinding;
using System.Web.Http.OData;
using System.Web.Http.OData.Routing;
... | 54,294 |
https://github.com/bgelens/Presentations/blob/master/042018_PSConfEU_DSCPullServerisDead/Demo/02 - Docker/Demo02.ps1 | Github Open Source | Open Source | MIT | 2,020 | Presentations | bgelens | PowerShell | Code | 618 | 2,207 | break
#region move to normal PS Host
if ($host.Name -eq 'Visual Studio Code Host') {
Write-Warning -Message 'ctrl + shift + t'
}
Remove-Module -Name PSReadLine
#endregion
#region setup session
$passwordFile = Get-Content .\password.json | ConvertFrom-Json
$chost01Cred = [pscredential]::new($passwordFile.UserName,... | 13,654 |
https://github.com/DaniVillegas14/cookit-backend/blob/master/src/main/java/ar/edu/unq/cookitbackend/dto/request/LoginGoogleRequestDto.java | Github Open Source | Open Source | MIT | null | cookit-backend | DaniVillegas14 | Java | Code | 28 | 92 | package ar.edu.unq.cookitbackend.dto.request;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
@Getter @Setter @Builder
public class LoginGoogleRequestDto {
private String email;
private String name;
private String lastname;
private String imageUrl;
}
| 44,303 |
https://github.com/munadil98/nascenia/blob/master/js/main.js | Github Open Source | Open Source | MIT | 2,018 | nascenia | munadil98 | JavaScript | Code | 14 | 130 | $(document).ready(function(){
$("#mobileMenuBar").click(function(){
console.log("check");
$(".mobileMenu").toggle(1000);
$("#mobileMenuBar").toggle();
$("#mobileMenuCross").toggle();
})
$("#mobileMenuCross").click(function(){
console.log("check");
$(".mobileMenu").toggle(1000);
$("#mobileMenuCross").... | 41,213 |
https://github.com/jvillard/llStar/blob/master/examples/list_dispose.c | Github Open Source | Open Source | BSD-3-Clause | null | llStar | jvillard | C | Code | 31 | 84 | #include <stdlib.h>
struct node {
int data;
struct node *next;
};
void list_dispose(struct node *l) {
struct node *prev=l;
while (l) {
prev = l;
l = l->next;
free(prev);
}
}
| 11,658 |
https://github.com/jnthn/intellij-community/blob/master/java/java-tests/testData/codeInsight/convertToBasicLatin/CharLiteral_after.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | intellij-community | jnthn | Java | Code | 8 | 17 | class C {
char ch = '\u00a9';
} | 27,132 |
https://github.com/BookingBug/active_scaffold/blob/master/init.rb | Github Open Source | Open Source | MIT | 2,017 | active_scaffold | BookingBug | Ruby | Code | 7 | 47 | ACTIVE_SCAFFOLD_PLUGIN = true
require 'active_scaffold'
ActiveSupport.run_load_hooks(:active_scaffold, ActiveScaffold)
| 31,300 |
https://github.com/winngwephyo-tech/php_training/blob/master/laravel/Assignment_V/resources/views/books/index.blade.php | Github Open Source | Open Source | MIT | 2,021 | php_training | winngwephyo-tech | Blade | Code | 282 | 1,246 | @extends('books.layout')
@section('content')
<h1> Import And Export For Book Store</h1>
<div class="fa-upload">
<div class="row">
<div class="col-lg-12 margin-tb">
<div class="pull-left col-lg-6 pl-0">
<form action="{{ url('book-import') }}" method="POST" enctype="multipart/for... | 49,293 |
https://github.com/soomrack/MR2020/blob/master/NikolaevaElya/bitree/bitree.cpp | Github Open Source | Open Source | MIT | 2,020 | MR2020 | soomrack | C++ | Code | 511 | 1,525 | #include <iostream>
#include <string>
using namespace std;
// Binary search tree
class Node {
public:
int key;
string data;
public:
Node *left;
Node *right;
public:
Node();
Node(const int key, const string data);
Node(const int key, const string data, Node *left, Node *right);
~Node()... | 31,348 |
https://github.com/aoxiangflysky/onedata/blob/master/tests/acceptance/scenarios/test_extended_attributes.py | Github Open Source | Open Source | Apache-2.0 | 2,017 | onedata | aoxiangflysky | Python | Code | 111 | 356 | """Test suite for extended attributes support.
"""
__author__ = "Bartek Kryza"
__copyright__ = "Copyright (C) 2017 ACK CYFRONET AGH"
__license__ = "This software is released under the MIT license cited in " \
"LICENSE.txt"
from tests.acceptance.steps.auth_steps import *
from tests.acceptance.steps.env_st... | 24,889 |
https://github.com/lifaon74/routes/blob/master/src/misc/helpers/infer/iterable.ts | Github Open Source | Open Source | MIT | null | routes | lifaon74 | TypeScript | Code | 81 | 266 | export type InferIterableValues<TIterable extends Iterable<any>> = TIterable extends Iterable<infer TValue> ? TValue : never;
/* KEY / VALUE */
export type InferKeyValueIterableKeys<TMap extends Iterable<[any, any]>> = TMap extends Iterable<[infer TKeys, any]> ? TKeys : never;
export type InferKeyValueIterableValues<... | 18,507 |
https://github.com/cantte/rusell-web/blob/master/packages/config/eslint-next.js | Github Open Source | Open Source | MIT | 2,022 | rusell-web | cantte | JavaScript | Code | 151 | 664 | module.exports = {
env: {
browser: true,
node: true,
},
extends: [
'next',
'standard',
'plugin:import/recommended',
'plugin:import/typescript',
'prettier',
],
plugins: ['@typescript-eslint', 'import', 'simple-import-sort', 'formatjs'],
settings: {
next: {
rootDir: ['app... | 29,127 |
https://github.com/emadurandal/OpenSiv3D/blob/master/Siv3D/include/Siv3D/detail/Icon.ipp | Github Open Source | Open Source | MIT | 2,022 | OpenSiv3D | emadurandal | C++ | Code | 125 | 344 | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2021 Ryo Suzuki
// Copyright (c) 2016-2021 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
namespace s3d
{
namespace deta... | 15,042 |
https://github.com/tww19861004/fastSQL/blob/master/src/api/Sync/FastSQL.Sync.Core/Models/OptionModel.cs | Github Open Source | Open Source | MIT | 2,018 | fastSQL | tww19861004 | C# | Code | 56 | 160 | using FastSQL.Sync.Core.Enums;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace FastSQL.Sync.Core.Models
{
[Table("core_options")]
public class OptionModel
{
[Key]
public Guid Id { get; set; }
public string En... | 34,248 |
https://github.com/complexly/Macro-Thinking-Micro-action/blob/master/src/gov/nasa/worldwind/examples/Airspaces.java | Github Open Source | Open Source | MIT | 2,015 | Macro-Thinking-Micro-action | complexly | Java | Code | 4,573 | 36,984 | /*
Copyright (C) 2001, 2008 United States Government as represented by
the Administrator of the National Aeronautics and Space Administration.
All Rights Reserved.
*/
package gov.nasa.worldwind.examples;
import gov.nasa.worldwind.Configuration;
import gov.nasa.worldwind.avlist.AVKey;
import gov.nasa.worldwind.awt.Worl... | 37,786 |
https://github.com/Congo-Collaborations/pymicro/blob/master/crystal/microstructure.py | Github Open Source | Open Source | MIT | 2,017 | pymicro | Congo-Collaborations | Python | Code | 6,898 | 20,850 | """
The microstructure module provide elementary classes to describe a
crystallographic granular microstructure such as mostly present in
metallic materials.
It contains several classes which are used to describe a microstructure
composed of several grains, each one having its own crystallographic
orientation:
*... | 44,182 |
https://github.com/qwertyfox/SpringSecurity_Db_RoleBasedAuth/blob/master/src/main/java/com/qwertyfox/thefox/controller/PasswordChangeController.java | Github Open Source | Open Source | MIT | null | SpringSecurity_Db_RoleBasedAuth | qwertyfox | Java | Code | 148 | 630 | package com.qwertyfox.thefox.controller;
import com.qwertyfox.thefox.dao.AppUserVerificationDao;
import com.qwertyfox.thefox.model.AppUsernamePassword;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframewo... | 16,759 |
https://github.com/guorenxi/finndychain-node/blob/master/app/admin/config.php | Github Open Source | Open Source | Apache-2.0 | 2,019 | finndychain-node | guorenxi | PHP | Code | 33 | 167 | <?php
//配置文件
return [
// +----------------------------------------------------------------------
// | 应用设置
// +----------------------------------------------------------------------
'robot_debug_url' => 'http://www.finndy.com/finndyrobottest.php?op=debug',
'api_url' => 'http://www.finndy.com/a... | 22,125 |
https://github.com/kbore/pbis-open/blob/master/opensoap/contrib/cpplib/OpenSOAPString.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | pbis-open | kbore | C | Code | 125 | 435 | /*-----------------------------------------------------------------------------
* $RCSfile: OpenSOAPString.h,v $
*
* See Copyright for the status of this software.
*
* The OpenSOAP Project
* http://opensoap.jp/
*-----------------------------------------------------------------------------
*/
#if !defined(OpenSO... | 10,967 |
https://github.com/appsmonkey/air.frontend/blob/master/src/features/notification/containers/Notification.jsx | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,021 | air.frontend | appsmonkey | JavaScript | Code | 141 | 406 | import React from "react";
import styled from "styled-components";
import { connect } from "react-redux";
import { ReactComponent as XIcon } from "../assets/x.svg";
import { clearNotification } from "../actions/notificationActionCreators";
const StyledNotification = styled.div`
top: 52px;
left: 0;
right: 0;
p... | 44,265 |
https://github.com/cxelegance/bread-calculator/blob/master/src/lib/Mixture.js | Github Open Source | Open Source | MIT | null | bread-calculator | cxelegance | JavaScript | Code | 758 | 1,963 | import Lexicon from './Lexicon';
import Ingredient from './Ingredient';
/**
* Responsible for abstractly defining a Mixture.
*
* @abstract
* @class
* @classdesc A Mixture combines Ingredients or other Mixtures, whose types are defined by a Lexicon.
* @see Ingredient
* @see Lexicon
* @implements ValueInterface
... | 42,453 |
https://github.com/demetoir/nest-code-generator/blob/master/examples/app/input-types/create-one-user.input-type.ts | Github Open Source | Open Source | MIT | 2,020 | nest-code-generator | demetoir | TypeScript | Code | 17 | 66 | import { InputType } from '@nestjs/graphql';
import { GQL_INPUT_TYPE_CREATE_ONE_USER } from '../constants'
@InputType(GQL_INPUT_TYPE_CREATE_ONE_USER)
export class CreateOneUserInputType {}
| 53,937 |
https://github.com/GigaSpaces-ProfessionalServices/cloudify-manager/blob/master/rest-service/manager_rest/manager_elasticsearch.py | Github Open Source | Open Source | Apache-2.0 | null | cloudify-manager | GigaSpaces-ProfessionalServices | Python | Code | 649 | 1,938 | # Copyright (c) 2015 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | 14,561 |
https://github.com/vanilla/vanilla-docker/blob/master/images/nginx/Dockerfile | Github Open Source | Open Source | MIT, Apache-2.0 | 2,023 | vanilla-docker | vanilla | Dockerfile | Code | 12 | 80 | # Pull base image.
FROM nginx:1.15-alpine
COPY ./etc/nginx/nginx.conf /etc/nginx/nginx.conf
COPY ./etc/nginx/fastcgi.conf.tpl /etc/nginx/fastcgi.conf.tpl
| 42,912 |
https://github.com/acu18ar/navyships/blob/master/resources/views/buques/view.blade.php | Github Open Source | Open Source | MIT | null | navyships | acu18ar | PHP | Code | 423 | 2,220 | @extends('layouts.'.Auth::user()->role->name)
@section('title')
Reporte UUSS: {{$buque->nombre}}
@endsection
@section('content')
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
cros... | 41,503 |
https://github.com/fkpwolf/monocular/blob/master/src/ui/src/app/deployment/deployment-resource/deployment-resource.component.scss | Github Open Source | Open Source | Apache-2.0 | 2,020 | monocular | fkpwolf | SCSS | Code | 43 | 170 | @import '../../../theme.scss';
.resource {
margin-bottom: 1em;
&__title {
margin-bottom: .5em;
margin-top: 1.5em;
color: md-color($monocular-app-primary);
}
&__table {
width: 100%;
th {
text-align: left;
font-size: .8em;
font-weight: normal;
border-bottom: 1px sol... | 7,657 |
https://github.com/GamesCreatorsClub/GCC-VirtualRover/blob/master/simulator/src/piwarssim/engine/simulation/SimulationStateFactory.py | Github Open Source | Open Source | MIT | 2,021 | GCC-VirtualRover | GamesCreatorsClub | Python | Code | 22 | 93 | from piwarssim.engine.factory import PooledFactory
from piwarssim.engine.simulation import SimulationState
class SimulationStateFactory(PooledFactory):
def __init__(self):
super(SimulationStateFactory, self).__init__()
def create_new(self):
return SimulationState()
def setup(self, o):
... | 34,594 |
https://github.com/trianggautama/Aplikasi_Penyuratan_dan_SPPD/blob/master/app/Http/Controllers/unitController.php | Github Open Source | Open Source | MIT | null | Aplikasi_Penyuratan_dan_SPPD | trianggautama | PHP | Code | 96 | 396 | <?php
namespace App\Http\Controllers;
use App\Unit_kerja;
use Illuminate\Http\Request;
class unitController extends Controller
{
public function index()
{
$data = Unit_kerja::orderBy('id', 'desc')->get();
return view('admin.unitKerja.index', compact('data'));
}
public function store(... | 2,256 |
https://github.com/RainFlyWave/SimpleBlogApp/blob/master/backend/blog_service/urls.py | Github Open Source | Open Source | MIT | null | SimpleBlogApp | RainFlyWave | Python | Code | 59 | 306 | from blog_service.api import UserDetailsGraph
from blog_service.api import RegisterView, LoginView, UserView, LogoutView, EntriesView,UserDescriptionView, CreateEntryView, DeleteEntryView, EditEntryView, UploadPhotoView
from django.urls import path, include
from rest_framework import routers
from blog_service.views imp... | 39,615 |
https://github.com/cnsdose/salesforce-php/blob/master/src/Models/Metadata/ChatterExtension.php | Github Open Source | Open Source | MIT | null | salesforce-php | cnsdose | PHP | Code | 161 | 500 | <?php
/**
* Created automatically by salesforce-sdk.
*/
namespace CNSDose\Salesforce\Models\Metadata;
/**
* Class ChatterExtension
* @package CNSDose\Salesforce\Models\Metadata
*
* @property string|null $compositionComponent
* @property string|null $description
* @property string|null $extensionName
* @prope... | 18,093 |
https://github.com/sandyarmstrong/MetadataTools/blob/master/src/PEFile/MvidBenchmark.cs | Github Open Source | Open Source | MIT | 2,022 | MetadataTools | sandyarmstrong | C# | Code | 105 | 394 | using System.IO;
using System.Reflection;
using System.Reflection.Metadata;
using System.Reflection.PortableExecutable;
using BenchmarkDotNet.Attributes;
namespace PEFile
{
public class MvidBenchmark
{
private static string filePath = @"C:\Ide\bin\Debug\Microsoft.VisualStudio.ImageCatalog.dll";
... | 10,580 |
https://github.com/hourliert/builder-ts-library/blob/master/config/jest/preprocessor.js | Github Open Source | Open Source | MIT | 2,017 | builder-ts-library | hourliert | JavaScript | Code | 64 | 237 | const tsc = require('typescript');
const babel = require('babel-core');
const jestPreset = require('babel-preset-jest');
module.exports = {
process(src, path) {
if (path.endsWith('.ts') || path.endsWith('.tsx')) {
const transpiledTs = tsc.transpile(
src,
{
module: tsc.ModuleKind.E... | 6,823 |
https://github.com/awidarto/viralpod/blob/master/app/views/partials/topnav.blade.php | Github Open Source | Open Source | MIT | 2,013 | viralpod | awidarto | Blade | Code | 68 | 262 | <?php
function sa($item){
if(URL::to($item) == URL::full() ){
return 'class="active"';
}else{
return '';
}
}
?>
<ul class="nav">
@if(Auth::check())
<li><a href="{{ URL::to('companies') }}" {{ sa('companies') }} >Companies</a></li>
<li><a href=... | 26,948 |
https://github.com/vser35/cuda_als/blob/master/data/netflix_transposed/prepare_netflix_transposed_data.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | cuda_als | vser35 | Python | Code | 316 | 1,245 |
# coding: utf-8
# In[1]:
#prepare netflix data as an input to to cuMF
#data should be in ./data/netflix/
#assume input is given in text format
#each line is like
#"user_id item_id rating"
import os
from six.moves import urllib
import numpy as np
from scipy.sparse import csr_matrix
from scipy.sparse import csc_matri... | 4,303 |
https://github.com/SoCdesign/audiomixer/blob/master/ZedBoard_Linux_Design/hw/xps_proj/SDK/SDK_Export/FSBL/src/sd_hardware.h | Github Open Source | Open Source | MIT | 2,020 | audiomixer | SoCdesign | C | Code | 653 | 1,961 | /******************************************************************************
*
* (c) Copyright 2012-2013 Xilinx, Inc. All rights reserved.
*
* This file contains confidential and proprietary information of Xilinx, Inc.
* and is protected under U.S. and international copyright and other
* intellectual property laws.
... | 27,348 |
https://github.com/cime/androidmono/blob/master/jni/MonoJavaBridge/android/generated/android/media/SoundPool.cs | Github Open Source | Open Source | MIT | 2,013 | androidmono | cime | C# | Code | 777 | 6,360 | namespace android.media
{
[global::MonoJavaBridge.JavaClass()]
public partial class SoundPool : java.lang.Object
{
internal new static global::MonoJavaBridge.JniGlobalHandle staticClass;
static SoundPool()
{
InitJNI();
}
protected SoundPool(global::MonoJavaBridge.JNIEnv @__env) : base(@__env)
{
}
... | 47,780 |
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/annotated/morph/P134/P134491.conll | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,022 | mtaac_cdli_ur3_corpus | cdli-gh | null | Spoken | 206 | 840 | #new_text=P134491
FORM SEGM XPOSTAG XPOSTAG POS
5(u) 5(u)[ten] NU NU D
4(disz) 4(disz)[one] NU NU D
1/2(disz) 1/2(disz)[one] NU NU D
ma-na mana[unit] N N D
siki-gi sikigi[wool_type] N N D
1(u) 1(u)[ten] NU NU D
7(disz) 7(disz)[one][-sze] NU NU D
ma-na mana[unit] N N D
1(disz) 1(disz)[one] NU NU D
gin2 gig[unit] N N D
m... | 12,190 |
https://github.com/GeneralYouri/project-euler/blob/master/src/11/solution.test.js | Github Open Source | Open Source | MIT | null | project-euler | GeneralYouri | JavaScript | Code | 59 | 302 | const { solution, defaultInput } = require('./');
const defaultArgs = defaultInput.split('\n,');
test('Provided test cases', () => {
});
test('Custom test cases', () => {
expect(solution(defaultArgs[0] + '\n,-1')).toBe(0);
expect(solution(defaultArgs[0] + '\n,0')).toBe(0);
expect(solution(defaultArgs[0]... | 28,979 |
https://github.com/jesseharris/PushMiner/blob/master/clients/php/index.php | Github Open Source | Open Source | BSD-2-Clause | 2,012 | PushMiner | jesseharris | PHP | Code | 180 | 668 | <html>
<body>
<?php
// NO UINT SUPPORT: only nonces <= 2147483647 ( 0x0FFFFFFF )
// Hard Coded Salt - CHANGE THIS!!!
$salt = "c2c565a8c7dc220ed7d9ff2f34b40dae7864ef0b8189557f0d3b7360ef34e1cd";
$nonce_start;
$nonce_end;
$block_header;
if ((!isset($_GET['nonce_start']) or $_GET['nonce_start'] == '') or
(!isset(... | 23,854 |
https://github.com/Displee/intellij-deobfuscation-plugin/blob/master/src/test/resources/test/world/gregs/intellij/plugins/bitwise/pointless_bitwise_comparator/TildeComparator.java | Github Open Source | Open Source | BSD-3-Clause | 2,022 | intellij-deobfuscation-plugin | Displee | Java | Code | 300 | 693 | class PointlessBitwiseComparator {
private int first = 1;
private int second = 2;
public void positive() {
boolean result = <warning descr="'~first == 32768' can be replaced with 'first == -32769'">~first == 32768</warning>;
}
public void regular() {
boolean result = <warning desc... | 9,223 |
https://github.com/evmanhq/evman/blob/master/db/migrate/20150521094739_create_expenses.rb | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,019 | evman | evmanhq | Ruby | Code | 32 | 126 | class CreateExpenses < ActiveRecord::Migration[5.0]
def change
create_table :expenses do |t|
t.references :event
t.references :user
t.references :expense_type
t.string :report_id
t.float :amount
t.references :currency
t.float :rate
... | 9,331 |
https://github.com/qaz734913414/WanAndroid_Flutter/blob/master/lib/page/home/wxarticle/bloc/wxarticle_event.dart | Github Open Source | Open Source | Apache-2.0 | 2,022 | WanAndroid_Flutter | qaz734913414 | Dart | Code | 108 | 416 | import 'package:equatable/equatable.dart';
import 'package:wanandroid_flutter/entity/project_entity.dart';
abstract class WXArticleEvent extends Equatable {
WXArticleEvent([List props = const []]) : super(props);
}
///加载全部
class LoadWXArticle extends WXArticleEvent {
int id;
String searchKey;
LoadWXArticle(t... | 31,154 |
https://github.com/marcellinamichie291/NCT-AndroidGUI/blob/master/app/src/main/java/com/example/nctai_trading/bybit/tradeRecords/Trade.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | NCT-AndroidGUI | marcellinamichie291 | Java | Code | 473 | 1,643 | package com.example.nctai_trading.bybit.tradeRecords;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Trade {
@SerializedName("closed_size")
@Expose
private Integer closedSize;
@SerializedName("cross_seq")
@Expose
private Integer cros... | 45,898 |
https://github.com/zillow/ctds/blob/master/tests/test_tds_binary.py | Github Open Source | Open Source | MIT | 2,021 | ctds | zillow | Python | Code | 22 | 120 | import unittest
import ctds
class TestTdsBinary(unittest.TestCase):
def test_binary(self):
val = ctds.Binary(b'123')
self.assertEqual(val.value, b'123')
self.assertEqual(val.tdstype, ctds.BINARY)
val = ctds.Binary(None)
self.assertEqual(val.value, None)
self.asser... | 34,550 |
https://github.com/oncean/Calendar-JS/blob/master/src/Calendar/calc.ts | Github Open Source | Open Source | MIT | null | Calendar-JS | oncean | TypeScript | Code | 85 | 229 | import moment from 'moment'
export const buildCurrentMonth = (current: string | Date) => {
const result = []
const today = moment(current)
const startDay = moment(today).startOf('month')
const endDay = moment(today).endOf('month')
const indexDay = moment(startDay).day(0)
let currentType = 0
for (let i = ... | 45,198 |
https://github.com/maur1th/task_diff/blob/master/src/bin/main.rs | Github Open Source | Open Source | Apache-2.0 | 2,019 | task_diff | maur1th | Rust | Code | 179 | 498 | use std::char;
use std::io;
extern crate ncurses;
use ncurses::*;
extern crate unescape;
use unescape::unescape;
extern crate colored;
use colored::*;
extern crate task_diff;
use task_diff::{pair::Pair, parser};
fn get_input() -> String {
// Setup ncurses
initscr();
raw();
// Allow for extended ke... | 53,382 |
https://github.com/prototypefund/hp-frontend/blob/master/components/NavLink.vue | Github Open Source | Open Source | MIT | 2,022 | hp-frontend | prototypefund | Vue | Code | 58 | 226 | <template>
<nuxt-link
:to="localePath(to)"
class="py-2 px-3 font-medium text-purple-100 nav-link"
:class="
type === 'desktop'
? `hover:bg-purple-500`
: `block py-2 px-3 text-basehover:text-white hover:bg-purple-400`
"
><slot></slot
></nuxt-link>
</template>
<script lang="... | 10,715 |
https://github.com/VanDerGroot/TechReborn/blob/master/src/main/java/techreborn/tiles/generator/TileSolarPanel.java | Github Open Source | Open Source | MIT | 2,017 | TechReborn | VanDerGroot | Java | Code | 180 | 680 | package techreborn.tiles.generator;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.ITickable;
import reborncore.api.power.EnumPowerTier;
import reborncore.common.powerSystem.TilePowerAcceptor;
import techreborn.blocks.generator.BlockSolarPanel;
import java.util.List;
/**
* Created by modmuss50 on 2... | 49,361 |
https://github.com/bapcai02/web-phone/blob/master/app/Http/Controllers/HomeController.php | Github Open Source | Open Source | MIT | null | web-phone | bapcai02 | PHP | Code | 297 | 1,188 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\View;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Validator;
class HomeController extends Controller
{
public function __construct()
{
$category ... | 10,806 |
https://github.com/kampkelly/shopmate-backend/blob/master/server/database/models/product.js | Github Open Source | Open Source | MIT | null | shopmate-backend | kampkelly | JavaScript | Code | 132 | 464 |
module.exports = (sequelize, DataTypes) => {
const Product = sequelize.define('Product', {
product_id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: DataTypes.INTEGER,
unique: true
},
name: {
type: DataTypes.STRING(100),
allowNull: false
},... | 51,905 |
https://github.com/Karina5005/Plagiarism/blob/master/dataset/test/modification/1467_all/44/transformation_1.cpp | Github Open Source | Open Source | MIT | 2,022 | Plagiarism | Karina5005 | C++ | Code | 167 | 459 | #include <iomanip>
#include <iostream>
#include <iostream>
#include <algorithm>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <cmath>
#include <numeric>
#include <map>
#include <iomanip>
#include <string>
using namespace std;
#define ln "\n"
#define vt vector
#define pb push_... | 2,009 |
https://github.com/bmelim/systatic/blob/master/src/Systatic.php | Github Open Source | Open Source | MIT | 2,019 | systatic | bmelim | PHP | Code | 26 | 130 | <?php
namespace Damcclean\Systatic;
use NunoMaduro\Collision\Provider;
use Damcclean\Systatic\Console\Kernel;
use Damcclean\Systatic\Plugins\Plugins;
define('SYSTATIC_VERSION', '2.1.6');
class Systatic
{
public function boot()
{
(new Provider())->register();
(new Plugins())->find();
... | 41,550 |
https://github.com/virthub/virthub/blob/master/modules/ckpt/src/debug.h | Github Open Source | Open Source | MIT | 2,023 | virthub | virthub | C | Code | 26 | 98 | #ifndef _DEBUG_H
#define _DEBUG_H
#include <linux/slab.h>
#include "ckpt.h"
#include "util.h"
#include "log.h"
#include "io.h"
unsigned long ckpt_debug_checksum(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long addr);
#endif
| 53,459 |
https://github.com/InNoHurryToCode/xray-162/blob/master/code/engine/xrRenderCommon/D3DUtils.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | xray-162 | InNoHurryToCode | C | Code | 1,011 | 3,172 | //----------------------------------------------------
// file: D3DUtils.h
//----------------------------------------------------
#ifndef D3DUtilsH
#define D3DUtilsH
#include "xrRender\DrawUtils.h"
//----------------------------------------------------
#ifdef _EDITOR
#define DU_DRAW_DIP EDevice.DIP
#define DU_DRAW_DP... | 9,923 |
https://github.com/FrankChoquehuanca/frank2907/blob/master/Proyecto Integrador Final/src/main/java/pe/edu/upeu/modelo/ModeloTO.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | frank2907 | FrankChoquehuanca | Java | Code | 47 | 131 | package pe.edu.upeu.modelo;
/**
* modeloTO
*/
public class ModeloTO {
public String idmod, Modelo;
public String getIdmod() {
return idmod;
}
public void setIdmod(String idmod) {
this.idmod = idmod;
}
public String getModelo() {
return Modelo;
}
public void setModel(String Modelo) {
this.... | 40,152 |
https://github.com/weiliaoming/XUI/blob/master/app/src/main/java/com/xuexiang/xuidemo/fragment/components/refresh/swipe/SwipeRefreshFragment.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | XUI | weiliaoming | Java | Code | 259 | 1,377 | package com.xuexiang.xuidemo.fragment.components.refresh.swipe;
import android.os.Handler;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import com.xuexiang.xpage.annotation.Page;
import com.xuexiang.xui.utils.WidgetUtils;
import com.xuexiang.xuidemo.DemoDataProvider;
import com.xuexiang.xuidemo.R;
i... | 3,504 |
https://github.com/jeffery1995/ui/blob/master/cat-ui/src/components/Layout/MainHeader.vue | Github Open Source | Open Source | MIT | 2,020 | ui | jeffery1995 | Vue | Code | 61 | 232 | <template>
<div class="mepo-main-header">
<slot>
<div class="header-options">
<div v-for="option in options" :key="option.url">
<router-link :to="option.url">{{ option.name }}</router-link>
</div>
</div>
</slot>
</div>
</template>
<script>
export default {
name: '... | 48,121 |
https://github.com/Bory1004/laravel_home/blob/master/resources/views/autoload.php | Github Open Source | Open Source | MIT | 2,018 | laravel_home | Bory1004 | PHP | Code | 29 | 89 | <?php
function BootpayAutoload($class)
{
$base_dir = __DIR__;
$file = $base_dir . "/" . str_replace('\\', '/', $class) . ".php";
if (file_exists($file)) {
/** @noinspection PhpIncludeInspection */
include $file;
}
} | 50,049 |
https://github.com/zhili-zh/POMDPy/blob/master/pomdpy/pomdp/belief_structure.py | Github Open Source | Open Source | MIT | 2,020 | POMDPy | zhili-zh | Python | Code | 44 | 131 | #from builtins import object
from future.utils import with_metaclass
import abc
class BeliefStructure(with_metaclass(abc.ABCMeta, object)):
@abc.abstractmethod
def reset(self):
"""
Reset the policy
:return:
"""
@abc.abstractmethod
def initialize(self, init_value=None)... | 26,543 |
https://github.com/Haidora/HaidoraNetworkHessian/blob/master/Example/Pods/Headers/Private/HaidoraNetworkHessian/BBSHessianDecoder.h | Github Open Source | Open Source | MIT | 2,016 | HaidoraNetworkHessian | Haidora | C | Code | 1 | 23 | ../../../../../Pod/Classes/BBSHessian/BBSHessianDecoder.h | 27,669 |
https://github.com/zhujun74/edk2-platforms/blob/master/Platform/Intel/PurleyOpenBoardPkg/BoardTiogaPass/Library/BoardInitLib/AllLanesEparam.c | Github Open Source | Open Source | BSD-2-Clause-Patent, LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown, BSD-2-Clause, FreeBSD-DOC, Zlib, BSD-3-Clause, Python-2.0, DOC, MIT | 2,023 | edk2-platforms | zhujun74 | C | Code | 125 | 516 | /** @file
Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2021, American Megatrends International LLC.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef MINIBIOS_BUILD
#include <PiPei.h>
#include <Platform.h>
#include <Library/HobLib.h>
#include <Library/DebugLib.h>
#endif
#... | 10,808 |
https://github.com/goodwid/comment-generator/blob/master/packages/shared/src/components/header/Header.scss | Github Open Source | Open Source | MIT | 2,022 | comment-generator | goodwid | SCSS | Code | 43 | 179 | @import 'shared/styles/variables.scss';
:local(.Header) {
position: fixed;
display: flex;
align-items: center;
justify-content: space-between;
align-content: center;
width: 100vw;
height: $header-size;
background-color: $main-header-color;
font-family: $default-font;
font-size: 2rem;
font-weight:... | 6,488 |
https://github.com/fsnader/elephant/blob/master/src/Take.Elephant.Specialized/OverwriteSetSynchronizer.cs | Github Open Source | Open Source | Apache-2.0 | null | elephant | fsnader | C# | Code | 124 | 415 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Take.Elephant.Specialized
{
public class OverwriteSetSynchronizer<T> : ISynchronizer<ISet<T>>
{
private readonly TimeSpan _synchronizationTimeout;
... | 51,093 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.