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/jd28/the_awakening/blob/master/scripts/nwn/bioware/x0_d1_cancelcast.nss | Github Open Source | Open Source | MIT | 2,016 | the_awakening | jd28 | null | Spoken | 15 | 69 | // cancels Deekin's spell settings
void main()
{
SetLocalInt(OBJECT_SELF, "Deekin_Spell_Cast", 0);
SetLocalObject(OBJECT_SELF, "Henchman_Spell_Target", OBJECT_INVALID);
}
| 9,237 |
https://github.com/alexamiryan/stingle/blob/master/packages/Output/Smarty/Helpers/functions.inc.php | Github Open Source | Open Source | MIT | 2,023 | stingle | alexamiryan | PHP | Code | 35 | 174 | <?php
function getMyPermissionsHash(){
$permissionsList = "";
if(isAuthorized()){
if(isset(Reg::get('usr')->perms) and !empty(Reg::get('usr')->perms)){
if(is_array(Reg::get('usr')->perms->permissionsList)){
foreach(Reg::get('usr')->perms->permissionsList as $perm){
$permissionsList .= $perm->id . ':';
... | 19,781 |
https://github.com/S87GMIL/e621ng/blob/master/app/logical/tag_change_request_pruner.rb | Github Open Source | Open Source | BSD-2-Clause-Views | 2,020 | e621ng | S87GMIL | Ruby | Code | 107 | 382 | # Service to prune old unapproved tag change requests
# (including tag aliases, tag implications, and bulk
# update requests).
class TagChangeRequestPruner
def self.warn_all
[TagAlias, TagImplication, BulkUpdateRequest].each do |model|
new.warn_old(model)
end
end
def self.reject_all
[TagAlias,... | 1,863 |
https://github.com/svartalf/python-wargaming/blob/master/examples/clan_active_players.py | Github Open Source | Open Source | MIT | 2,021 | python-wargaming | svartalf | Python | Code | 109 | 379 | import wargaming
from datetime import datetime, timedelta
# enable_parser enables timestamp fields from WG API converted to
# datetime object in python.
wot = wargaming.WoT('demo', language='ru', region='ru', enable_parser=True)
wgn = wargaming.WGN('demo', language='ru', region='ru')
def show_clan_activity(clan_tag)... | 41,353 |
https://github.com/kashyapvicky/gogreen/blob/master/application/modules/car/views/cleaner_view.php | Github Open Source | Open Source | MIT | null | gogreen | kashyapvicky | PHP | Code | 301 | 1,516 | <?php
/* * ***********************
* PAGE: TO Listing The User.
* #COPYRIGHT: Ripenapps
* @AUTHOR: vicky kashyap
* CREATOR: 04/06/2018.
* UPDATED: --/--/----.
* codeigniter framework
* *** */
?>
<style>
#datatable-responsive_paginate{
display:none !important;
}
</style>
<div class="right_col" role="main">
... | 27,124 |
https://github.com/medakk/boundary-first-flattening/blob/master/linear-algebra/include/SparseMatrix.inl | Github Open Source | Open Source | MIT | 2,022 | boundary-first-flattening | medakk | C++ | Code | 769 | 2,669 | #include <cstring>
using std::memcpy;
namespace bff {
extern Common common;
inline SparseMatrix::SparseMatrix(size_t m, size_t n, size_t nnz):
L(*this)
{
data = cholmod_l_spzeros(m, n, nnz, CHOLMOD_REAL, common);
}
inline SparseMatrix::SparseMatrix(Triplet& T):
L(*this)
{
cholmod_triplet *triplet = T.toCholmod();... | 15,263 |
https://github.com/BEAR-finance/builder/blob/master/src/components/ActivityPage/Transaction/TransactionDetail/TransactionDetail.types.ts | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, Apache-2.0 | 2,021 | builder | BEAR-finance | TypeScript | Code | 52 | 127 | import { Coord } from 'decentraland-ui'
import { Transaction } from 'decentraland-dapps/dist/modules/transaction/types'
import { Collection } from 'modules/collection/types'
import { Item } from 'modules/item/types'
export type Props = {
selection?: Coord[]
address?: string
collection?: Collection
item?: Item
... | 2,797 |
https://github.com/aotuai/brainframe-qt/blob/master/brainframe_qt/ui/resources/i18n/translator.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | brainframe-qt | aotuai | Python | Code | 154 | 458 | import typing
from PyQt5.QtCore import QTranslator, QLocale
from PyQt5.QtWidgets import QWidget
from brainframe_qt.ui.resources.paths import text_paths
from brainframe_qt.ui.resources.ui_elements.widgets.dialogs import BrainFrameMessage
class BrainFrameTranslator(QTranslator):
LOCALE_PREFIX = "brainframe"
L... | 34,577 |
https://github.com/MarcDonald/mtg-deck-builder/blob/master/webapp/src/app/views/page-not-found/page-not-found.component.scss | Github Open Source | Open Source | MIT | null | mtg-deck-builder | MarcDonald | SCSS | Code | 23 | 78 | #container {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
justify-content: center;
}
h1 {
font-size: 14rem;
}
p {
font-size: 1.5rem;
}
| 46,621 |
https://github.com/Saljack/mapstruct/blob/master/processor/src/test/java/org/mapstruct/ap/test/bugs/_1828/CompleteAddress.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | mapstruct | Saljack | Java | Code | 101 | 268 | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.bugs._1828;
public class CompleteAddress {
private String lineOne;
private String lineTwo;
private String city;
private Stri... | 39,196 |
https://github.com/SyllabusGames/DSMapStudio/blob/master/HKX2/Autogen/hclObjectSpaceMeshMeshDeformPNOperator.cs | Github Open Source | Open Source | MIT | 2,022 | DSMapStudio | SyllabusGames | C# | Code | 65 | 321 | using SoulsFormats;
using System.Collections.Generic;
using System.Numerics;
namespace HKX2
{
public partial class hclObjectSpaceMeshMeshDeformPNOperator : hclObjectSpaceMeshMeshDeformOperator
{
public override uint Signature { get => 381531162; }
public List<hclObjectSpaceDeformerLoca... | 20,978 |
https://github.com/FantasyNitroGEN/webster/blob/master/webster/src/test/java/org/visallo/webster/testApp/TestApp.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | webster | FantasyNitroGEN | Java | Code | 175 | 755 | package org.visallo.webster.testApp;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.servlet.ServletHolder;
import org.visallo.webster.*;
import org.visallo.webster.handlers.RouteRunner;
import javax.servlet.ServletConfig;
import javax.servlet.S... | 8,090 |
https://github.com/tiochan/sifit/blob/master/docker-files/mysql/change_password.sql | Github Open Source | Open Source | MIT | 2,018 | sifit | tiochan | SQL | Code | 16 | 45 | ALTER USER 'root'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* to root@'%' IDENTIFIED BY 'password';
| 1,500 |
https://github.com/MarvinElz/hsk-libs/blob/master/scripts/templates.dbc2c/sig_enum.tpl | Github Open Source | Open Source | ISC | 2,022 | hsk-libs | MarvinElz | null | Spoken | 26 | 75 | /**
* @defgroup ENUM_<:id:> Value Table for Signal <:name:> in Message <:msgname:> (<:msg:%#x:>)
*
* Enum values defined for \ref SIG_<:id:>.
*
* @ingroup SIG_<:id:>
*/
| 52,289 |
https://github.com/JoaoQPereira/motion_manager/blob/master/src/target.cpp | Github Open Source | Open Source | MIT | null | motion_manager | JoaoQPereira | C++ | Code | 69 | 329 | #include "../include/motion_manager/target.hpp"
namespace motion_manager{
Target::Target()
{
}
Target::Target(string name, pos ppos, orient oor)
{
this->m_name = name;
this->m_pos.Xpos = ppos.Xpos;
this->m_pos.Ypos = ppos.Ypos;
this->m_pos.Zpos = ppos.Zpos;
this->m_or.pitch = oor.pitch;
thi... | 49,407 |
https://github.com/markalinn/Spree-Homepage-Images/blob/master/app/overrides/store_menu.rb | Github Open Source | Open Source | BSD-3-Clause | 2,012 | Spree-Homepage-Images | markalinn | Ruby | Code | 12 | 73 | Deface::Override.new(:virtual_path => "spree/shared/_store_menu",
:name => "products_menu_tab",
:insert_after => "#home-link[data-hook]",
:partial => "spree/shared/homepage_images_store_menu")
| 14,394 |
https://github.com/Noswiper/enjingodot/blob/master/.import/bedBunk.dae-4b2f3faa850e6e47b7a7e796233fe4f9.md5 | Github Open Source | Open Source | Apache-2.0 | 2,021 | enjingodot | Noswiper | null | Spoken | 2 | 58 | source_md5="caeb6f0f5d3b988dac3e7c020abc7235"
dest_md5="9ca7049634bfa12a95c18b571745b3b6"
| 49,654 |
https://github.com/MicrohexHQ/csfio/blob/master/test.c | Github Open Source | Open Source | BSD-3-Clause | 2,020 | csfio | MicrohexHQ | C | Code | 549 | 2,242 |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include <openssl/evp.h>
#include <openssl/rand.h>
#include "csfio.h"
int main(int argc, char **argv) {
int iter = 100;
int buffer_sz_max = 100*1024;
int i,j,k;
CSF_CTX *cs... | 8,500 |
https://github.com/lizconlan/hh-search-mkII/blob/master/Rakefile | Github Open Source | Open Source | MIT | 2,014 | hh-search-mkII | lizconlan | Ruby | Code | 160 | 635 | require 'rake'
require 'rake/testtask'
Rake::TestTask.new do |t|
t.libs.push "lib"
t.test_files = FileList['test/**/*_test.rb']
t.verbose = false
end
require 'net/http'
require 'active_record'
require "./solr/configure/environment.rb"
namespace :solr do
desc 'Starts Solr. Options accepted: ENV=your_env, POR... | 33,088 |
https://github.com/woshitang1990/laravel-cms/blob/master/Modules/Admin/Database/Seeders/ModuleSeederTableSeeder.php | Github Open Source | Open Source | MIT | null | laravel-cms | woshitang1990 | PHP | Code | 48 | 174 | <?php
namespace Modules\Admin\Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
use Modules\Admin\Entities\Module;
class ModuleSeederTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
M... | 36,871 |
https://github.com/PhucDuong-SSS/ecommerce/blob/master/app/Http/Controllers/ProductController.php | Github Open Source | Open Source | MIT | null | ecommerce | PhucDuong-SSS | PHP | Code | 585 | 2,897 | <?php
namespace App\Http\Controllers;
use App\Http\Requests\ProductRequest;
use App\Models\Brand;
use App\Models\Category;
use App\Models\Product;
use Illuminate\Http\Request;
use App\Http\Repo\ProductRepo\ProductRepositoryInterface;
use Illuminate\Support\Facades\DB;
use Illuminate\Http\RedirectResponse;
use Illumin... | 172 |
https://github.com/ShuffleZZZ/ITMO/blob/master/AlgorithmsandDataStructures/4thLab/JJey(RMQpos).cpp | Github Open Source | Open Source | MIT | 2,022 | ITMO | ShuffleZZZ | C++ | Code | 518 | 1,286 | #include <iostream>
#include <vector>
using namespace std;
const int neutral = 2147483647;
struct tree {
int l, r, value, x, d, num;
bool in;
};
void buildtree(tree tr[], int x, int l, int r) {
if (l >= r) return;
tr[x].num = l;
tr[x].x = x;
tr[x].d = 0;
tr[x].value = 0;
tr[x].in = true;
if (l + 1 == r) {
... | 23,157 |
https://github.com/heathkat/Fabric.Cashmere/blob/master/projects/cashmere/src/lib/form-field/hc-form-field.component.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | Fabric.Cashmere | heathkat | TypeScript | Code | 385 | 1,311 | import {
AfterContentInit,
Component,
ContentChild,
ContentChildren,
HostBinding,
ViewEncapsulation,
Input,
ElementRef,
OnDestroy
} from '@angular/core';
import type {QueryList} from '@angular/core';
import {HcFormControlComponent} from './hc-form-control.component';
import {HcErrorC... | 20,756 |
https://github.com/martinsivanov/CSharp-Advanced-September-2020/blob/master/C # OOP/Homeworks/08 - Polymorphism - Exercise/04. Wild Farm/Models/Animals/Contracts/ISoundProducable.cs | Github Open Source | Open Source | MIT | null | CSharp-Advanced-September-2020 | martinsivanov | C# | Code | 17 | 60 | using System;
using System.Collections.Generic;
using System.Text;
namespace WildFarm.Models.Animals.Contracts
{
public interface ISoundProducable
{
string PoduceSound();
}
}
| 8,324 |
https://github.com/EpicPlanet/MIPM/blob/master/src/main/java/net/epicpla/mipm/command/InstallCommand.java | Github Open Source | Open Source | MIT | null | MIPM | EpicPlanet | Java | Code | 289 | 641 | /*
* This file is part of MIPM, licensed under the MIT License (MIT).
*
* Copyright (c) Epic Planet Minecraft Server <https://epicpla.net>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Soft... | 20,953 |
https://github.com/thors1982/starfall/blob/master/core/src/com/nstark/enums/RoomStatus.java | Github Open Source | Open Source | Unlicense | 2,016 | starfall | thors1982 | Java | Code | 12 | 46 | package com.nstark.enums;
public enum RoomStatus
{
EMPTY, DESTROYED, INDANGER, SAFE, PROTECTED,
}
| 19,012 |
https://github.com/ericleestewart/movie-manager-demo/blob/master/dist/html/modules/movie-manager/routes.js | Github Open Source | Open Source | MIT | 2,016 | movie-manager-demo | ericleestewart | JavaScript | Code | 72 | 306 | // *************************************************************************
// * ROUTES - ADMIN CONSOLE
// *************************************************************************
angular.module('MovieManager')
.config(['$routeProvider', function ($routeProvider) {
// *****************************************... | 42,667 |
https://github.com/alipay/mpaas-demo/blob/master/mpaas_nebula_demo/mpaas_nebula_demo_android/app/src/main/java/com/mpaas/demo/nebula/H5NavMenuViewImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | mpaas-demo | alipay | Java | Code | 106 | 449 | package com.mpaas.demo.nebula;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.alipay.mobile.nebula.view.H5NavMenuItem;
import com.alipay.mobile.nebula.view.H5NavMenuView;
import java.util.List;
/**
* Created by xingcheng on 20... | 30,132 |
https://github.com/airbnb/knowledge-repo/blob/master/knowledge_repo/app/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | knowledge-repo | airbnb | Python | Code | 8 | 17 | from . import auth_providers
from .app import KnowledgeFlask
| 24,822 |
https://github.com/froyomu/imsdk-android/blob/master/imsdk/src/main/java/com/qunar/im/ui/presenter/WorkWorldAtListPresenter.java | Github Open Source | Open Source | MIT | 2,022 | imsdk-android | froyomu | Java | Code | 15 | 82 | package com.qunar.im.ui.presenter;
import com.qunar.im.ui.presenter.views.WorkWorldAtListView;
public interface WorkWorldAtListPresenter {
void setView(WorkWorldAtListView view);
//该如何处理
void startSearch();
}
| 12,153 |
https://github.com/Roesh/AmisApp/blob/master/Source files/ScriptsImageSelection/UserManagerScps/CamRotScp.cs | Github Open Source | Open Source | Unlicense | 2,019 | AmisApp | Roesh | C# | Code | 87 | 267 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CamRotScp : MonoBehaviour {
public Vector3 initRot;
public Vector3 finalRot;
public IEnumerator rotCamToStart()
{
float te = 0;
float t = 1;
while (te < t)
{
... | 44,269 |
https://github.com/mchouhab/hotel-demo/blob/master/src/main/java/com/hotel/promo/PromoType.java | Github Open Source | Open Source | MIT | null | hotel-demo | mchouhab | Java | Code | 22 | 56 | package com.hotel.promo;
/**
* @author mchouhab
*
* Enum type for offers details
*/
public enum PromoType {
Discount, ExtraDay, FeatureUpgrade;
}
| 35,755 |
https://github.com/KablamoOSS/kombustion-plugin-serverless/blob/master/vendor/github.com/KablamoOSS/kombustion/internal/plugins/extract.go | Github Open Source | Open Source | MIT | 2,018 | kombustion-plugin-serverless | KablamoOSS | Go | Code | 355 | 1,073 | package plugins
import (
"fmt"
printer "github.com/KablamoOSS/go-cli-printer"
kombustionTypes "github.com/KablamoOSS/kombustion/types"
)
// ExtractResourcesFromPlugins and ensure there are no clashes for plugin resource names
func ExtractResourcesFromPlugins(
loadedPlugins []*PluginLoaded,
resources *map[string... | 8,626 |
https://github.com/open-mpi/ompi-www/blob/master/community/lists/users/2009/09/10811.php | Github Open Source | Open Source | BSD-3-Clause | 2,023 | ompi-www | open-mpi | PHP | Code | 356 | 1,332 | <?
$subject_val = "[OMPI users] OMPI performace with Redhat Linux MRG";
include("../../include/msg-header.inc");
?>
<!-- received="Tue Sep 29 09:15:35 2009" -->
<!-- isoreceived="20090929131535" -->
<!-- sent="Tue, 29 Sep 2009 13:15:30 +0000" -->
<!-- isosent="20090929131530" -->
<!-- name="Nader Ahmadi" -->
<!-- email... | 50,209 |
https://github.com/Vinotha16/WIN_ROLLBACK/blob/master/templates/linux_audit/ubuntu14.04/xdnx_152_audit.fact | Github Open Source | Open Source | BSD-3-Clause | 2,021 | WIN_ROLLBACK | Vinotha16 | Shell | Code | 47 | 131 | #!/bin/bash
# ** AUTO GENERATED **
# 1.5.2 - Ensure XD/NX support is enabled (Not Scored)
if [ "$(sudo dmesg | grep "NX.*active" 2>/dev/null | wc -l)" -eq 0 ]; then
echo "{\"1.5.2 - XD/NX support is not enabled\" : \"FAILED\"}"
else
echo "{\"xdnx_152_audit\" : \"PASSED\"}"
fi
| 2,029 |
https://github.com/lastaflute/lasta-meta/blob/master/src/main/java/org/lastaflute/meta/sourceparser/javaparser/JavaparserSourceParserReflector.java | Github Open Source | Open Source | Apache-2.0 | null | lasta-meta | lastaflute | Java | Code | 826 | 3,659 | /*
* Copyright 2015-2021 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 app... | 44,851 |
https://github.com/K-miran/HELR/blob/master/LRtest.h | Github Open Source | Open Source | MIT | 2,022 | HELR | K-miran | C | Code | 120 | 373 | #ifndef LR_UNENC
#define LR_UNENC
#include <NTL/ZZ.h>
#include "Database.h"
#include "../src/CZZ.h" // -> for comparison
using namespace std;
using namespace NTL;
ZZ scaleup(double value, const long& l);
double scaledown(double value, const long& l);
// structure for LRparam
typedef struct LRpar{
int max... | 10,827 |
https://github.com/dvsseed/dms/blob/master/public/webcrawler/webcrawler.php | Github Open Source | Open Source | MIT | null | dms | dvsseed | PHP | Code | 247 | 923 | <?php
// $website_to_crawl = "http://www.learningaboutelectronics.com";
$website_to_crawl = "http://www.dmsupport.org.tw";
$all_links = array();
function get_links($url)
{
global $all_links;
$contents = @file_get_contents($url);
$regexp = "<a\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>(.*)<\/a>";
preg_match... | 47,247 |
https://github.com/erdal-pb/stitch/blob/master/services/tests/e2e/authorization/auth-replace-error.schema.ts | Github Open Source | Open Source | MIT | 2,021 | stitch | erdal-pb | TypeScript | Code | 142 | 464 | import { gql } from 'apollo-server-core';
import { print } from 'graphql';
import { PolicyType, PolicyDefinition, Schema } from '../../../src/modules/resource-repository';
export const policies: PolicyDefinition[] = [
{
metadata: {
name: 'alwaysDeny',
namespace: 'auth_replace_error',
},
type:... | 21,466 |
https://github.com/dieterstueken/Recaf/blob/master/src/me/coley/recaf/ui/FileChoosers.java | Github Open Source | Open Source | MIT | null | Recaf | dieterstueken | Java | Code | 108 | 460 | package me.coley.recaf.ui;
import java.io.File;
import javafx.stage.FileChooser;
import javafx.stage.FileChooser.ExtensionFilter;
import me.coley.event.Bus;
import me.coley.recaf.Logging;
import me.coley.recaf.event.*;
import me.coley.recaf.util.Lang;
public class FileChoosers {
private static final FileChooser ope... | 47,094 |
https://github.com/eid101/InjazErp/blob/master/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-help-about-widget.js | Github Open Source | Open Source | Apache-2.0 | null | InjazErp | eid101 | JavaScript | Code | 549 | 1,851 | /*
*************************************************************************
* The contents of this file are subject to the Openbravo Public License
* Version 1.1 (the "License"), being the Mozilla Public License
* Version 1.1 with a permitted attribution clause; you may not use this
* file except in... | 8,459 |
https://github.com/ES-UFABC/UFABCplanner/blob/master/ufabc_planner-backend/src/modules/subjects/services/DeleteSubjectService.ts | Github Open Source | Open Source | MIT | 2,022 | UFABCplanner | ES-UFABC | TypeScript | Code | 57 | 184 | import { AppError } from 'infra/http/errors/AppError';
import { inject, injectable } from 'tsyringe';
import { DeleteSubjectDTO } from '../dtos/DeleteSubject.dto';
import { ISubjectRepository } from '../repositories/ISubjectRepository';
@injectable()
export class DeleteSubjectService {
constructor(
@inject('Pris... | 20,178 |
https://github.com/GoldStarPDX/GoldStar/blob/master/src/courses/constants.js | Github Open Source | Open Source | MIT | 2,017 | GoldStar | GoldStarPDX | JavaScript | Code | 45 | 191 | export const FETCHING_COURSES = 'FETCHING_COURSES';
export const FETCHED_COURSES = 'FETCHED_COURSES';
export const FETCHED_COURSES_ERROR = 'FETCHED_COURSES_ERROR';
export const ADDING_COURSE = 'ADDING_COURSE';
export const ADDED_COURSE = 'ADDED_COURSE';
export const ADDED_COURSE_ERROR = 'ADDED_COURSE_ERROR';
export c... | 30,382 |
https://github.com/klein-thibault/RoasterHammer/blob/master/Sources/App/Utils/Extensions/ArrayExtensions.swift | Github Open Source | Open Source | MIT | 2,020 | RoasterHammer | klein-thibault | Swift | Code | 27 | 70 | import Foundation
extension Array where Element: Hashable {
func subtracting(_ array: [Element]) -> [Element] {
let set1 = Set(self)
let set2 = Set(array)
return Array(set1.subtracting(set2))
}
}
| 31,824 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/WPS Office– 完美支持Word、PPT、Excel、PDF文档阅读编辑-7.4.0(越狱应用)_headers/KSOPDFPageContainerScrollViewDelegate-Protocol.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 58 | 255 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import "NSObject-Protocol.h"
@class UIViewController;
@protocol KSOPDFPageContainerScrollViewDelegate <NSObject>
- (void)scrollViewD... | 5,420 |
https://github.com/maxthunder/shopping-rest-svc/blob/master/src/main/java/shopping/model/CustomerInfo.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | shopping-rest-svc | maxthunder | Java | Code | 87 | 272 | package shopping.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel("customer")
public class CustomerInfo {
@JsonProperty(required = true)
@ApiModelProperty(notes = "ID of customer", required = true)
privat... | 38,712 |
https://github.com/JayjeetAtGithub/spack/blob/master/var/spack/repos/builtin/packages/fortran/package.py | Github Open Source | Open Source | Apache-2.0, MIT, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, LGPL-2.1-only | 2,022 | spack | JayjeetAtGithub | Python | Code | 87 | 272 | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
from spack.package import *
class Fortran(Package):
"""Virtual package for the Fortran language."""
... | 42,827 |
https://github.com/baidu/baiduads-sdk/blob/master/java/baiduads-sdk-auto/src/test/java/com/baidu/dev2/api/sdk/accountfeed/model/AccountFeedTypeTest.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | baiduads-sdk | baidu | Java | Code | 256 | 714 | /*
* dev2 api schema
* 'dev2.baidu.com' api schema
*
* The version of the OpenAPI document: 1.0.1-SNAPSHOT
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.baidu.dev2.api.sdk.acc... | 51,682 |
https://github.com/iimog/x-party-game/blob/master/src/games/Game.java | Github Open Source | Open Source | MIT | 2,021 | x-party-game | iimog | Java | Code | 1,739 | 6,712 | package games;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
i... | 32,579 |
https://github.com/Kryspo/L2jRamsheart/blob/master/dist/gameserver/data/scripts/quests/_288_HandleWithCare.java | Github Open Source | Open Source | MIT | 2,018 | L2jRamsheart | Kryspo | Java | Code | 277 | 1,204 | package quests;
import l2f.commons.util.Rnd;
import l2f.gameserver.model.instances.NpcInstance;
import l2f.gameserver.model.quest.Quest;
import l2f.gameserver.model.quest.QuestState;
import l2f.gameserver.scripts.ScriptFile;
/**
* @author pchayka
*/
public class _288_HandleWithCare extends Quest implements ScriptF... | 16,509 |
https://github.com/nirmal070125/KubernetesAPIJavaClient/blob/master/src/main/java/com/github/kubernetes/java/client/model/Pod.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | KubernetesAPIJavaClient | nirmal070125 | Java | Code | 403 | 867 | /*
*
* 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"); y... | 29,725 |
https://github.com/Andrewich/deadjustice/blob/master/deadjustice/Timer.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,021 | deadjustice | Andrewich | C++ | Code | 72 | 214 | #include "Timer.h"
#include <assert.h>
#include "config.h"
//-----------------------------------------------------------------------------
Timer::Timer( float dt ) :
m_dt( dt ),
m_time( 0.f ),
m_frameTime( 0.f )
{
}
void Timer::beginUpdate( float frameTime )
{
m_frameTime += frameTime;
}
bool Timer::update()
{
... | 13,451 |
https://github.com/YJBeetle/QtAndroidAPI/blob/master/android-28/android/service/voice/AlwaysOnHotwordDetector_Callback.hpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | QtAndroidAPI | YJBeetle | C++ | Code | 69 | 280 | #pragma once
#include "../../../JObject.hpp"
namespace android::service::voice
{
class AlwaysOnHotwordDetector_EventPayload;
}
namespace android::service::voice
{
class AlwaysOnHotwordDetector_Callback : public JObject
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit AlwaysOnH... | 43,110 |
https://github.com/keboola/mongodb-extractor/blob/master/tests/Keboola/MongoDbExtractor/ApplicationIncrementalFetchingTest.php | Github Open Source | Open Source | MIT | 2,017 | mongodb-extractor | keboola | PHP | Code | 1,242 | 6,931 | <?php
declare(strict_types=1);
namespace Keboola\MongoDbExtractor\Tests;
use Keboola\MongoDbExtractor\Application;
use Keboola\MongoDbExtractor\UserException;
use PHPUnit\Framework\Assert;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Serializer\Encoder\JsonDecode... | 26,227 |
https://github.com/finger563/webgme-gridlabd/blob/master/gld_schema/market.cpp | Github Open Source | Open Source | MIT | 2,018 | webgme-gridlabd | finger563 | C++ | Code | 1,732 | 5,202 | class auction {
function submit_bid();
function submit_bid_state();
function get_market_for_time();
function register_participant();
char32 unit; // unit of quantity
double period[s]; // interval of time between market clearings
double latency[s]; // latency between market clearing and delivery
int64 market_id;... | 45,701 |
https://github.com/mrzyzhaozeyu/algorithms-4th-Cplusplus/blob/master/algorithms-4th-Cplusplus/Search.h | Github Open Source | Open Source | Apache-2.0 | 2,017 | algorithms-4th-Cplusplus | mrzyzhaozeyu | C++ | Code | 69 | 223 | #pragma once
#include "Graph.h"
class Search
{
public:
Search(Graph& g, int s);
~Search();
virtual bool Marked(int v) = 0;
virtual int Count() = 0;
protected:
Graph& m_G;
int m_s;
bool* m_bMarked;
int m_nCount;
};
Search::Search(Graph& g, int s):m_G(g), m_s(s), m_nCount(0)
{
m_bMarked = new bool[g.V()];
for ... | 32,693 |
https://github.com/niole/Table-Highlight-Subset/blob/master/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/node_modules/sha.js/sha256.js | Github Open Source | Open Source | MIT, Apache-2.0 | 2,020 | Table-Highlight-Subset | niole | JavaScript | Code | 524 | 1,696 | /**
* A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
* in FIPS 180-2
* Version 2.2-beta Copyright Angel Marin, Paul Johnston 2000 - 2009.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
*
*/
var inherits = require('inherits')
var Hash = require('./hash')
var K = [
... | 4,556 |
https://github.com/pop993012/uwsgi/blob/master/pjbbs/c_app.py | Github Open Source | Open Source | Apache-2.0 | null | uwsgi | pop993012 | Python | Code | 20 | 82 | from flask import Flask
from celery import Celery
import configa
app = Flask(__name__)
celery_server=Celery(__name__,include=['task'])
celery_server.config_from_object(configa)
if __name__ == '__main__':
app.run(port=9001) | 42,172 |
https://github.com/YellowCoder/reddit_clt/blob/master/app/components/sidebar/Item.js | Github Open Source | Open Source | MIT | null | reddit_clt | YellowCoder | JavaScript | Code | 108 | 343 | // @flow
import React, { Component } from 'react';
import styles from './Item.css';
import { Link } from 'react-router-dom';
type Props = {
defaultSubReddits: Array
};
export default class SubReddit extends Component<Props> {
props: Props;
constructor() {
super()
this.state = {
selectedItem: ''
... | 25,087 |
https://github.com/TorqueGameEngines/Torque3D/blob/master/Templates/BaseGame/game/core/postFX/scripts/MLAA/offsetV.glsl | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown | 2,023 | Torque3D | TorqueGameEngines | GLSL | Code | 292 | 632 | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restrictio... | 9,596 |
https://github.com/cedricpradalier/expression_sandbox/blob/master/benchmark/N_rotations/N/TypedExpressionSolverDepth1Eig.cpp.20.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,015 | expression_sandbox | cedricpradalier | C++ | Code | 5 | 27 | #define ROTATIONS_N 20
#include "../TypedExpressionSolverDepth1Eig.cpp"
| 30,570 |
https://github.com/pji/pjinoise/blob/master/tests/test_io.py | Github Open Source | Open Source | MIT | 2,021 | pjinoise | pji | Python | Code | 1,198 | 4,163 | """
test_io
~~~~~~~
Unit tests for the pjinoise.io module.
"""
import argparse
import json
import unittest as ut
from unittest.mock import call, MagicMock, mock_open, patch, PropertyMock
from typing import Sequence
import cv2
import numpy as np
from pjinoise import io
from pjinoise import model as m
from pjinoise im... | 38,668 |
https://github.com/Attendly/attendly-php/blob/master/tests/themeTest.php | Github Open Source | Open Source | Apache-2.0 | 2,015 | attendly-php | Attendly | PHP | Code | 269 | 1,097 | <?php
class themeTest extends attendlyTest
{
public function testCreateThemeFromEvent()
{
// Create an event
$result = $this->attendly
->add_event($this->event)
->add_theme($this->theme)
->event_create();
$this->assertEquals($result['Status'], 'ok');... | 4,941 |
https://github.com/kasittig/advent_of_code/blob/master/core/codegen.py | Github Open Source | Open Source | MIT | null | advent_of_code | kasittig | Python | Code | 103 | 482 | import os
from typing import List
from jinja2 import Environment, FileSystemLoader, select_autoescape
from core.utils import get_default_solution_filename, get_default_test_filename
env = Environment(
loader=FileSystemLoader("core/templates"),
autoescape=select_autoescape(),
trim_blocks=True,
lstrip_... | 35,001 |
https://github.com/fossabot/picture-in-motion/blob/master/packages/picimo-core/src/VOPool/createVOs.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | picture-in-motion | fossabot | JavaScript | Code | 82 | 213 |
/**
* Pre-allocate a bunch of vertex objects.
* @returns {number} number of allocated vertex objects
* @private
*/
export default (voPool, maxAllocSize = 0) => {
const max = voPool.capacity - voPool.usedCount - voPool.allocatedCount;
const count = (maxAllocSize > 0 && maxAllocSize < max ? maxAllocSize : max);
... | 31,744 |
https://github.com/Marcogarofalo/quda/blob/master/include/vector_io.h | Github Open Source | Open Source | MIT | null | quda | Marcogarofalo | C | Code | 117 | 277 | #pragma once
#include <string>
namespace quda
{
/**
@brief VectorIO is a simple wrapper class for loading and saving
sets of vector fields using QIO.
*/
class VectorIO
{
const std::string filename;
#ifdef HAVE_QIO
bool parity_inflate;
#endif
public:
/**
Constructor for VectorI... | 38,557 |
https://github.com/agrutkarsh/Driving-Stereotype-Identification-of-Heavy-Goods-Vehicle-code-only-i.e.-without-dataset-/blob/master/ensemble.R | Github Open Source | Open Source | MIT | 2,018 | Driving-Stereotype-Identification-of-Heavy-Goods-Vehicle-code-only-i.e.-without-dataset- | agrutkarsh | R | Code | 57 | 440 | #setwd('C:/Users/psxua/Dropbox/projects/phd/codes/r/hgv')
setwd('C:/Users/utkarsh/Dropbox/projects/phd/codes/r/hgv')
#ensemble_data1<-read.csv("long_ensemble_result.csv", header = TRUE)
ensemble_data1<-read.csv("medium_ensemble_result.csv", header = TRUE)
#ensemble_data1<-read.csv("short_ensemble_result.csv", header =... | 32,807 |
https://github.com/YuichiNukiyama/vscode-preview-server/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,021 | vscode-preview-server | YuichiNukiyama | Ignore List | Code | 4 | 25 | out
node_modules
npm-debug.log
vsc-extension-quickstart.md
| 41,744 |
https://github.com/YOYOW-Association/Homeland-with-YOYOW/blob/master/config/initializers/redis.rb | Github Open Source | Open Source | MIT | 2,019 | Homeland-with-YOYOW | YOYOW-Association | Ruby | Code | 55 | 230 | # frozen_string_literal: true
require "redis"
require "redis-namespace"
require "redis/objects"
redis_config = Rails.application.config_for(:redis)
$redis = Redis.new(host: redis_config["host"], port: redis_config["port"], driver: :hiredis)
$redis.select(0)
Redis::Objects.redis = $redis
sidekiq_url = "redis://#{red... | 41,908 |
https://github.com/immunant/c2rust/blob/master/pdg/src/util/serde.rs | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0 | 2,023 | c2rust | immunant | Rust | Code | 178 | 655 | use serde::{Deserialize, Serialize};
use rustc_middle::mir::{BasicBlock, Field, Local};
#[derive(Serialize, Deserialize)]
#[serde(remote = "Field")]
pub struct FieldDef {
#[serde(getter = "field_as_u32")]
raw: u32,
}
fn field_as_u32(f: &Field) -> u32 {
f.as_u32()
}
impl From<FieldDef> for Field {
fn... | 46,102 |
https://github.com/henryfox/encryption/blob/master/rand.py | Github Open Source | Open Source | MIT | null | encryption | henryfox | Python | Code | 18 | 65 | import random
def rand(dig):
nums = []
for x in range(0, dig):
nums.append(str(random.randint(0,9)))
num = "".join(nums)
return num | 9,733 |
https://github.com/euronay/ECBCurrencyConverter/blob/master/Kanahawa.Ecbcc.Tests/UpdaterTests.cs | Github Open Source | Open Source | MIT | null | ECBCurrencyConverter | euronay | C# | Code | 292 | 614 | //
// UpdaterTests.cs
//
// Author:
// James Naylor <james@kanahawa.com>
//
// Copyright (c) 2015 James Naylor
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction... | 36,276 |
https://github.com/AdBouli/hotel/blob/master/Views/User/modify.php | Github Open Source | Open Source | Apache-2.0 | 2,016 | hotel | AdBouli | PHP | Code | 169 | 644 | <div class="row" id="result">
</div>
<div class="row">
<div class="col s10 offset-s1">
<div class="row">
<h5>Modification d'un utilisateur :</h5>
</div>
<div class="row">
<!-- USERNAME INPUT -->
<div class="input-field col s6">
<label for="username">Nom d'utilisateur :</label>
<input type="tex... | 29,961 |
https://github.com/bartbresse/MGMT/blob/master/app/messages/en-US.php | Github Open Source | Open Source | BSD-3-Clause | null | MGMT | bartbresse | PHP | Code | 18 | 53 | <?php
$messages = array(
"New" => "New",
"Save" => "Save",
"Cancel" => "Cancel",
"Entity" => "Entity"
);
?> | 7,559 |
https://github.com/anilgeorge04/learn-ds/blob/master/datacamp/toolbox/defaultargs.py | Github Open Source | Open Source | MIT | null | learn-ds | anilgeorge04 | Python | Code | 108 | 302 | # Define shout_echo
def shout_echo(word1, echo=1, intense=False):
"""Concatenate echo copies of word1 and three
exclamation marks at the end of the string."""
# Concatenate echo copies of word1 using *: echo_word
echo_word = word1 * echo
# Make echo_word uppercase if intense is True
if intense... | 10,007 |
https://github.com/medukr/myfitinfo/blob/master/views/site/about.php | Github Open Source | Open Source | BSD-3-Clause | null | myfitinfo | medukr | PHP | Code | 187 | 797 | <?php
/* @var $this yii\web\View */
$this->title = 'О проекте';
?>
<main class="main-content col-lg-10 col-md-9 col-sm-12 p-0 offset-md-1 mt-2 ">
<div class="main-content-container container-fluid px-4">
<div class="row">
<div class="col-lg-12 col-sm-12 mb-2 px-0">
<di... | 42,758 |
https://github.com/FolkertVanVerseveld/rasppikernel/blob/master/rpi/kernel/kernel.c | Github Open Source | Open Source | Apache-2.0 | null | rasppikernel | FolkertVanVerseveld | C | Code | 65 | 315 | #include <stddef.h>
#include <stdint.h>
#include <limits.h>
#include "fb.h"
#include "io.h"
#include "uart.h"
#include "stdio.h"
#include "string.h"
uint64_t systime_get(void);
void kernel_main(uint32_t r0, uint32_t r1, uint32_t atags)
{
(void)r0;
(void)r1;
(void)atags;
uart_init();
printf(
"r0=%x,r1=%x,atags... | 40,719 |
https://github.com/linkessence/AppSnippets/blob/master/Images/MMSpinImageView/zipzap/zipzap/ZZDataChannelOutput.m | Github Open Source | Open Source | MIT, BSD-2-Clause, BSD-3-Clause | 2,014 | AppSnippets | linkessence | Objective-C | Code | 139 | 467 | //
// ZZDataChannelOutput.m
// zipzap
//
// Created by Glen Low on 12/01/13.
//
//
#import "ZZDataChannelOutput.h"
@implementation ZZDataChannelOutput
{
NSMutableData* _allData;
uint32_t _offset;
}
- (id)initWithData:(NSMutableData*)data
{
if ((self = [super init]))
{
_allData = data;
_offset = 0U;
}
re... | 37,550 |
https://github.com/MrVPlusOne/Gen.jl/blob/master/test/inference/trace_translators.jl | Github Open Source | Open Source | Apache-2.0 | 2,022 | Gen.jl | MrVPlusOne | Julia | Code | 525 | 1,930 | @testset "trace translators" begin
@testset "DeterministicTraceTranslator" begin
@gen function p1()
r ~ inv_gamma(1, 1)
theta ~ uniform(-pi/2, pi/2)
end
@gen function p2()
x ~ normal(0, 1)
y ~ normal(0, 1)
end
@transform f (t1) to (t2) begin
r = @read(t1[:... | 39,755 |
https://github.com/fcapovilla/caporss/blob/master/spec/javascripts/views/FeedSpec.js | Github Open Source | Open Source | BSD-3-Clause | 2,020 | caporss | fcapovilla | JavaScript | Code | 291 | 1,494 | describe("Feed View", function() {
beforeEach(function() {
this.server = create_fake_server();
CapoRSS.router = {
currentSelection: null,
navigate: function(path, options) {}
};
this.feed = new CapoRSS.Model.Feed({id: 1, folder_id: 1, unread_count: 5, title: 'Test 1'});
this.feed.collection = {url: '... | 49,436 |
https://github.com/jtleggore/Projects/blob/master/EncryptionTool/EncryptionTool/Ciphers.cs | Github Open Source | Open Source | CC0-1.0 | null | Projects | jtleggore | C# | Code | 712 | 2,036 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EncryptionTool
{
abstract class CipherBase
{
public abstract string Encrypt(string plainText);
public abstract string Decrypt(string cipherText);
}
/// <typepa... | 21,226 |
https://github.com/classaxe/ecclesiact/blob/master/qb/QuickBooks/Frontend/Module/Ident/addForm.tpl | Github Open Source | Open Source | MIT | null | ecclesiact | classaxe | null | Spoken | 205 | 816 | <?php
?>
<h1>
Add an Association
</h1>
<p>
test
</p>
<div class="form">
<style type="text/css">
.hidden
{
display: none;
visibility: hidden;
}
</style>
<script type="text/javascript" language="javascript">
function swapModes(mode)
{
if (mode == 1)
{
coming_from = docume... | 42,529 |
https://github.com/group2BCS1/BCS-2021/blob/master/src/chapter3/exercise2.py | Github Open Source | Open Source | 2,021 | BCS-2021 | group2BCS1 | Python | Code | 44 | 125 | try:
hours = float(input("Enter the hours: "))
rate = float(input("Enter the rate: "))
except:
print("Enter a numerical input")
quit()
if hours > 40:
regular_pay = (hours * rate)
extra_pay = ((hours-40)*0.5*rate)
overTime_pay = regular_pay + extra_pay
print(overTime_pay)
else:
normal... | 42,897 | |
https://github.com/kfrolov/netcoredbg/blob/master/test-suite/MITestBreakpoint/Program.cs | Github Open Source | Open Source | MIT | null | netcoredbg | kfrolov | C# | Code | 653 | 3,210 | using System;
using System.IO;
using NetcoreDbgTest;
using NetcoreDbgTest.MI;
using NetcoreDbgTest.Script;
using Xunit;
namespace NetcoreDbgTest.Script
{
class Context
{
static bool IsStoppedEvent(MIOutOfBandRecord record)
{
if (record.Type != MIOutOfBandRecordType.Async) {
... | 5,848 |
https://github.com/LinqLover/context-s/blob/master/src/BoBreakout.package/BoMovingMorph.class/instance/topLeft..st | Github Open Source | Open Source | MIT | 2,021 | context-s | LinqLover | null | Spoken | 9 | 25 | geometry
topLeft: aPoint
super topLeft: aPoint.
self position: aPoint | 50,603 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/a/aws-sdk/src/main/scala/typingsSlinky/awsSdk/glueMod/GetTriggersResponse.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 131 | 474 | package typingsSlinky.awsSdk.glueMod
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait GetTriggersResponse extends StObject {
/**
* A continuation token... | 16,343 |
https://github.com/hamstah/requestbin/blob/master/targets/php/xmlreader.php | Github Open Source | Open Source | MIT | 2,021 | requestbin | hamstah | PHP | Code | 28 | 103 | <?
$content = file_get_contents('php://input');
echo $content, PHP_EOL;
echo "----------------------------------------------------------------------------", PHP_EOL;
$xml = new XMLReader();
$xml->open('php://input');
while ($xml->read()) {
if($xml->nodeType == XMLReader::TEXT) {
echo $xml->value, PHP_EOL;
}
... | 22,514 |
https://github.com/shawncai/ERP/blob/master/src/views/ProcessFile/components/MyDialog3.vue | Github Open Source | Open Source | MIT | 2,021 | ERP | shawncai | Vue | Code | 880 | 4,081 | <template>
<el-dialog :visible.sync="editVisible" :editcontrol="editcontrol" :editdata="editdata" :close-on-press-escape="false" :title="$t('updates.xgbzgx')" class="edit" width="1010px" top="-10px" @close="$emit('update:editcontrol', false)">
<!--基本信息-->
<el-card class="box-card">
<h2 ref="geren" class... | 13,785 |
https://github.com/joshuaama-1/Software-Renderer/blob/master/sdl_stuff/main.cpp | Github Open Source | Open Source | MIT | 2,020 | Software-Renderer | joshuaama-1 | C++ | Code | 109 | 395 | #pragma once
#include "rasterizer.h"
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480
int main(int argc, char* args[])
{
SDL_Color black = { 0, 0, 0, 0xFF };
SDL_Color green = { 0, 0xFF, 0, 0xFF };
Rasterizer * mRasterizer = new Rasterizer(SCREEN_WIDTH, SCREEN_HEIGHT);
mRasterizer->clearScreen(black);
/*Test ... | 6,741 |
https://github.com/wr0881/DtuServerView/blob/master/src/pages/Project/AddProject/AddProject.jsx | Github Open Source | Open Source | MIT | null | DtuServerView | wr0881 | null | Spoken | 121 | 357 | import React, { Component, Fragment } from 'react';
import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import {
Card,
Steps
} from 'antd';
const { Step } = Steps;
class Project extends Component {
constructor(props) {
super(props);
this.state = {};
}
getCurrentStep() {
const { locat... | 37,560 |
https://github.com/Aleksander-Protasevich/DRF_API/blob/master/Test/Test/urls.py | Github Open Source | Open Source | Apache-2.0 | null | DRF_API | Aleksander-Protasevich | Python | Code | 44 | 158 | from django.urls import include, path
from rest_framework import routers
from fairmarkit import views
from django.contrib import admin
# from fairmarkit import urls as basic_urls
router = routers.DefaultRouter()
router.register(r'authors', views.AuthorViewSet)
router.register(r'books', views.BookViewSet)
router.regi... | 3,941 |
https://github.com/EroStackOverFlow/nippanim/blob/master/src/Triv/AnimesBundle/Controller/AnimesController.php | Github Open Source | Open Source | MIT | 2,021 | nippanim | EroStackOverFlow | PHP | Code | 2,179 | 8,887 | <?php
// src/Triv/AnimesBundle/Controller/AnimesController.php
namespace Triv\AnimesBundle\Controller;
use Triv\AnimesBundle\Entity\Animes;
use Triv\AnimesBundle\Entity\Episodes;
use Triv\AnimesBundle\Entity\AnimesImage;
use Triv\AnimesBundle\Entity\AnimesCommentaire;
use Triv\CoreBundle\Entity\Vote;
use Symfony\Bund... | 32,887 |
https://github.com/thomas-demagny/dragons/blob/master/src/constants/actions.jsx | Github Open Source | Open Source | MIT | null | dragons | thomas-demagny | null | Spoken | 49 | 161 | /*CONST DRAGON*/
export const ADD_DRAGON = 'ADD_DRAGON';
export const SET_DRAGON = "SET_DRAGON"
export const DELETE_DRAGON = "DELETE_DRAGON"
export const REVERSE_ORDER = "REVERSE_ORDER"
/*CONST KNIGHT*/
export const SET_KNIGHT = "SET_KNIGHT"
export const ADD_KNIGHT = "ADD_KNIGHT"
export const DELETE_KNIGHT = "DELETE_K... | 40,753 |
https://github.com/mildred/typedlua/blob/master/typedlua-0.1-1.rockspec | Github Open Source | Open Source | MIT | 2,014 | typedlua | mildred | Lua | Code | 139 | 501 | package = "typedlua"
version = "0.1-1"
source = {
url = "git://github.com/mildred/typedlua.git"
}
description = {
summary = "An Optional Type System for Lua",
detailed = [[
Typed Lua is a typed superset of Lua that compiles to plain Lua.
It provides optional type annotations, compile-time type c... | 51,395 |
https://github.com/LorenzJ/PureEcsPrototype/blob/master/Game/Components/Utilities/ParentEntity.cs | Github Open Source | Open Source | MIT | null | PureEcsPrototype | LorenzJ | C# | Code | 24 | 65 | using TinyEcs;
namespace Game.Components.Utilities
{
public struct ParentEntity : IComponent
{
public Entity Entity;
public ParentEntity(Entity parent)
{
Entity = parent;
}
}
}
| 16,826 |
https://github.com/cash2one/xai/blob/master/xai/brain/wordbase/verbs/_sallies.py | Github Open Source | Open Source | MIT | 2,017 | xai | cash2one | Python | Code | 24 | 107 |
from xai.brain.wordbase.verbs._sally import _SALLY
#calss header
class _SALLIES(_SALLY, ):
def __init__(self,):
_SALLY.__init__(self)
self.name = "SALLIES"
self.specie = 'verbs'
self.basic = "sally"
self.jsondata = {}
| 17,537 |
https://github.com/BrassGoggledCoders/Boilerplate/blob/master/src/main/java/xyz/brassgoggledcoders/boilerplate/items/BaseSteamItem.java | Github Open Source | Open Source | MIT | 2,016 | Boilerplate | BrassGoggledCoders | Java | Code | 325 | 1,424 | package xyz.brassgoggledcoders.boilerplate.items;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.fluids.IFluidContainerItem;
/**
* @author Skylar on 9/2/2015.
*/
public class BaseSteamItem extends ItemBase implemen... | 12,922 |
https://github.com/Cewein/pecs-man/blob/master/Assets/Prefab/food.prefab.meta | Github Open Source | Open Source | MIT | 2,020 | pecs-man | Cewein | Unity3D Asset | Code | 10 | 58 | fileFormatVersion: 2
guid: 422ca7ed9c698fc478247c7e1f15e43c
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| 28,214 |
https://github.com/daniel-men/MRiLab/blob/master/External/MatrixUser2.2/Src/Main/MU_setting_windows.m | Github Open Source | Open Source | BSD-2-Clause | 2,021 | MRiLab | daniel-men | MATLAB | Code | 963 | 4,589 | % MatrixUser, a multi-dimensional matrix analysis software package
% https://sourceforge.net/projects/matrixuser/
%
% The MatrixUser is a matrix analysis software package developed under Matlab
% Graphical User Interface Developing Environment (GUIDE). It features
% functions that are designed and optimized for worki... | 5,110 |
https://github.com/dbchaincloud/ios-client/blob/master/Sources/DBChainKit/Network/DBRequest.swift | Github Open Source | Open Source | Apache-2.0 | 2,021 | ios-client | dbchaincloud | Swift | Code | 275 | 776 | //
// File.swift
//
//
// Created by iOS on 2021/6/18.
//
import Foundation
import Alamofire
enum MethodType {
case get
case post
}
//一次封装
public class DBRequest {
public init() {}
/// 请求方法 返回值JSON
class func request(_ type : MethodType = .post, url : String, params : [String : Any]?,head... | 50,572 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.