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/Mhdismaeel/EnableCors/blob/master/app/Actions/TicketType/StoreNewTypeAction.php | Github Open Source | Open Source | MIT | null | EnableCors | Mhdismaeel | PHP | Code | 20 | 88 | <?php
namespace App\Actions\TicketType;
use App\Models\Ticket_type;
class StoreNewTypeAction
{
public static function execute($inputs)
{
$type=Ticket_type::create([
'name'=>$inputs->name
]);
return $type;
}
}
| 47,967 |
https://github.com/ntohidi/appinventor-sources/blob/master/appinventor/buildserver/tests/com/google/appinventor/buildserver/testComponentsAsDictKeys.scm | Github Open Source | Open Source | Apache-2.0 | 2,022 | appinventor-sources | ntohidi | Scheme | Code | 30 | 131 | (let ((test-dict (call-yail-primitive make-yail-dictionary
(*list-for-runtime*
(call-yail-primitive make-dictionary-pair
(*list-for-runtime* %1$s #t) '(key any) "make a pair"))
'(pair) "make a dictionary")))
(call-yail-primitive yail-dictionar... | 3,880 |
https://github.com/JBEI/foldy/blob/master/frontend/src/TagView.tsx | Github Open Source | Open Source | BSD-2-Clause, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause | 2,023 | foldy | JBEI | TSX | Code | 558 | 2,017 | import React, { useEffect, useState } from "react";
import UIkit from "uikit";
import {
Fold,
getFoldPdbZip,
getFolds,
getJobStatus,
queueJob,
} from "./services/backend.service";
import { makeFoldTable } from "./util/foldTable";
import { CSVLink } from "react-csv";
import { useParams } from "react-router-dom... | 10,031 |
https://github.com/sethips/DS-Unit-3-Sprint-3-Big-Data/blob/master/Sprint_Challenge_Unit_3_Big_Data.ipynb | Github Open Source | Open Source | MIT | 2,019 | DS-Unit-3-Sprint-3-Big-Data | sethips | Jupyter Notebook | Code | 3,414 | 16,385 | {
"cells": [
{
"cell_type": "code",
"execution_count": 26,
"metadata": {},
"outputs": [],
"source": [
"import dask.dataframe as dd"
]
},
{
"cell_type": "code",
"execution_count": 27,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
... | 29,082 |
https://github.com/ielm/gobo/blob/master/client/webpack/webpackConfigProd.js | Github Open Source | Open Source | MIT | 2,021 | gobo | ielm | JavaScript | Code | 279 | 1,032 | const { resolve } = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
// const SWPrecacheWebpackPlugin = require('sw-precache-webpack-plugin');
const extractSass = new ExtractTextPlugin({
fi... | 36,744 |
https://github.com/bibleexchange/bibleexchange-production/blob/master/config/bible.php | Github Open Source | Open Source | MIT | null | bibleexchange-production | bibleexchange | PHP | Code | 13 | 98 | <?php
return array(
'default_verse' => 'John 3:16',
'DB_HOST'=> env('SCRIPTURE_DB_HOST'),
'DB_USER_NAME'=>env('SCRIPTURE_DB_USER'),
'DB_PASSWORD'=>env('SCRIPTURE_DB_PASSWORD'),
'DATABASE_NAME'=>env('SCRIPTURE_DB_NAME')
); | 46,859 |
https://github.com/blobtoolkit/insdc-pipeline/blob/master/v1/scripts/make_taxid_list.py | Github Open Source | Open Source | MIT | 2,020 | insdc-pipeline | blobtoolkit | Python | Code | 245 | 725 | #!/usr/bin/env python3
import os
import re
from collections import defaultdict
# set variables from snakemake params, wildcards, input and threads
DBTITLE = snakemake.params.db
ROOT = int(snakemake.wildcards.root)
MASKS = set(snakemake.params.mask_ids + [32630, 111789, 6]) # mask synthetic constructs by default
NODE... | 35,258 |
https://github.com/fes300/DefinitelyTyped/blob/master/types/material__list/adapter.d.ts | Github Open Source | Open Source | MIT | 2,021 | DefinitelyTyped | fes300 | TypeScript | Code | 177 | 424 | export class MDCListAdapter {
getListItemCount(): number;
getFocusedElementIndex(): number;
setAttributeForElementIndex(index: number, attribute: string, value: string): void;
removeAttributeForElementIndex(index: number, attribute: string): void;
addClassForElementIndex(index: number, className: st... | 16,319 |
https://github.com/aalihusni/LebahFramework/blob/master/JavaSource/lebah/util/CalendarList.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | LebahFramework | aalihusni | Java | Code | 173 | 485 | /* ************************************************************************
LEBAH PORTAL FRAMEWORK, http://lebah.sf.net
Copyright (C) 2007 Shamsul Bahrin
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU Genera... | 34,676 |
https://github.com/simple0x47/IdNet6/blob/master/src/IdNet6/src/Events/UserLogoutSuccessEvent.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | IdNet6 | simple0x47 | C# | Code | 148 | 356 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
namespace IdNet6.Events
{
/// <summary>
/// Event for successful user logout
/// </summary>
/// <seealso cref="IdNet6.Events.... | 24,074 |
https://github.com/OSSome01/ekalavya/blob/master/sub1.py | Github Open Source | Open Source | MIT | 2,021 | ekalavya | OSSome01 | Python | Code | 90 | 224 | #!/usr/bin/env python
import rospy
from std_msgs.msg import String
def callback(msg):
#rospy.loginfo(rospy.get_caller_id() + "I heard %s", data.data)
print(msg.data)
def listener():
# In ROS, nodes are uniquely named. If two nodes with the same
# name are launched, the previous one is kicked off. Th... | 31,716 |
https://github.com/bwp/SeleniumWebDriver/blob/master/third_party/gecko-16/win32/include/nsIGridPart.h | Github Open Source | Open Source | Apache-2.0 | 2,018 | SeleniumWebDriver | bwp | C | Code | 483 | 1,195 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef nsIGridPart_h___
#define n... | 29,784 |
https://github.com/Intemporel/WoWDatabaseEditor/blob/master/WDE.MapRenderer/data/wireframe.frag | Github Open Source | Open Source | MIT | 2,022 | WoWDatabaseEditor | Intemporel | GLSL | Code | 55 | 178 | #version 330 core
#include "../internalShaders/theengine.cginc"
in vec2 Barys;
out vec4 FragColor;
uniform vec4 Color;
uniform float Width;
void main()
{
vec3 barys = vec3(Barys.xy, 1 - Barys.x - Barys.y);
vec3 deltas = fwidth(barys);
barys = smoothstep(vec3(0), deltas * Width, barys);
float minBary = min(bary... | 12,102 |
https://github.com/BelousAI/JavaRush/blob/master/1.JavaSyntax/src/Test/Other/rmi/server/MyService.java | Github Open Source | Open Source | Apache-2.0 | null | JavaRush | BelousAI | Java | Code | 58 | 179 | package Test.Other.rmi.server;
import java.rmi.Naming;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
public class MyService extends UnicastRemoteObject implements MyRemote {
public MyService() throws RemoteException {}
@Override
public String sayHello() throws RemoteExcept... | 5,524 |
https://github.com/stize/dotnet-templates/blob/master/stize.webapi/content/Stize.ApiTemplate.Api.TestHost/ToDoList/ToDoListCqrsTest.cs | Github Open Source | Open Source | Apache-2.0 | null | dotnet-templates | stize | C# | Code | 368 | 1,532 | using System.Collections.Generic;
using System.Net;
using System.Net.Http.Json;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Stize.ApiTemplate.Api.Controllers;
using Stize.ApiTemplate.Api.TestHost.Extensions;
using Stize.ApiTemplate.Business.Models.ToDoList;
using Stize.Domain.Model;
using Stize... | 46,041 |
https://github.com/angular-demos/mini-app/blob/master/src/app/Shared/Models/UserEntity.ts | Github Open Source | Open Source | MIT | null | mini-app | angular-demos | TypeScript | Code | 33 | 99 | import {PostEntity} from './PostEntity';
import {UserAddressEntity} from './UserAddressEntity';
import {UserCompanyEntity} from './UserCompanyEntity';
export interface UserEntity {
id: number;
name: string;
username: string;
email: string;
address: UserAddressEntity;
phone: string;
website:... | 828 |
https://github.com/csherwood-usgs/floc_proc/blob/master/load_non.m | Github Open Source | Open Source | CC0-1.0 | 2,016 | floc_proc | csherwood-usgs | MATLAB | Code | 130 | 592 | % load_non.m - Load the inactive classes in runs > 66
snn = zeros( NNN, nz, nt);
for n=1:NNN
ncname = sprintf('sand_%02d',n)
snn(n,:,:)=squeeze(ncread(url,ncname,[i j 1 1],[1 1 Inf Inf]));
end
snns = squeeze(sum(snn));
sumsnns = sum( snns.*dzw);
% total conc
figure(5); clf
pcolorjw( s2d*tz, h+z_w, log10(snns+... | 39,369 |
https://github.com/assaf/necktie/blob/master/lib/necktie/services.rb | Github Open Source | Open Source | JSON, Ruby, MIT | 2,010 | necktie | assaf | Ruby | Code | 241 | 556 | module Necktie
class Services
# Enables service to run after boot and starts it. Same as:
# update_rc.d <name> defaults
# service <name> start
def start(name)
puts " ** Starting service #{name}"
sh "update-rc.d #{name} defaults"
sh "service #{name} start"
end
# Enables s... | 12,696 |
https://github.com/otwartezabytki/otwartezabytki/blob/master/db/migrate/20120614143230_add_approved_field_to_relic.rb | Github Open Source | Open Source | BSD-3-Clause | 2,017 | otwartezabytki | otwartezabytki | Ruby | Code | 21 | 54 | # -*- encoding : utf-8 -*-
class AddApprovedFieldToRelic < ActiveRecord::Migration
def change
add_column :relics, :approved, :boolean, :default => false
end
end
| 13,855 |
https://github.com/greenelab/mpmp/blob/master/01_explore_data/nbconverted/purity_distribution.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | mpmp | greenelab | Python | Code | 259 | 737 | #!/usr/bin/env python
# coding: utf-8
# ## Explore tumor purity data
# In[1]:
import os
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.preprocessing import StandardScaler
import mpmp.config as cfg
import mpmp.utilities.data_utilities as du
# In[2]:
purity_df = pd.read_c... | 34,164 |
https://github.com/VIAME/netharn/blob/master/netharn/initializers/_nx_ext/path_embedding.py | Github Open Source | Open Source | Apache-2.0 | null | netharn | VIAME | Python | Code | 391 | 1,581 | import networkx as nx
from .tree_embedding import maximum_common_ordered_tree_embedding
def maximum_common_path_embedding(paths1, paths2, sep='/', impl='iter-alt2', mode='chr'):
"""
Finds the maximum path embedding common between two sets of paths
Parameters
----------
paths1, paths2: List[str]
... | 2,600 |
https://github.com/pwong3/csc413-secondgame-team12/blob/master/game/Main.java | Github Open Source | Open Source | MIT | null | csc413-secondgame-team12 | pwong3 | Java | Code | 118 | 415 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author luisf
*/
//Reef Game************************************
package game;
import java.awt.Dimension;
import java.io.B... | 13,038 |
https://github.com/maxemiliang/vscode-ext/blob/master/extensions/donjayamanne.python-0.3.21/out/client/linters/prospector.js | Github Open Source | Open Source | MIT | null | vscode-ext | maxemiliang | JavaScript | Code | 259 | 882 | 'use strict';
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var baseLinter = require('./baseLinter');
var ut... | 25,952 |
https://github.com/elfo-protocol/elfo-core/blob/master/programs/elfo-protocol/src/instructions/mod.rs | Github Open Source | Open Source | Apache-2.0 | null | elfo-core | elfo-protocol | Rust | Code | 42 | 113 | pub mod close_subscription_plan;
pub mod create_subscription_plan;
pub mod initialize_protocol;
pub mod register_node;
pub mod subscribe;
pub mod trigger_payment;
pub mod unsubscribe;
pub use close_subscription_plan::*;
pub use create_subscription_plan::*;
pub use initialize_protocol::*;
pub use register_node::*;
pub ... | 1,609 |
https://github.com/efbiz/ability-exam/blob/master/portal/src/main/java/org/efbiz/ability/exam/portal/controller/action/UserAction.java | Github Open Source | Open Source | MIT | null | ability-exam | efbiz | Java | Code | 319 | 1,524 | package org.efbiz.ability.exam.portal.controller.action;
import java.util.Date;
import org.efbiz.ability.exam.common.domain.exam.Message;
import org.efbiz.ability.exam.common.domain.user.User;
import org.efbiz.ability.exam.common.util.StandardPasswordEncoderForSha1;
import org.efbiz.ability.exam.portal.security.UserIn... | 26,955 |
https://github.com/jessepinnell/driver-sample/blob/master/src/MCP25625Driver.hpp | Github Open Source | Open Source | MIT | null | driver-sample | jessepinnell | C++ | Code | 925 | 2,452 | // MIT License
// Copyright (c) 2018 Jesse Pinnell
// 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, including without limitation the rights
// to use, copy, modify, m... | 3,418 |
https://github.com/soraLib/sa-form/blob/master/src/SaForm/layout/properties-controller/index.tsx | Github Open Source | Open Source | MIT | 2,022 | sa-form | soraLib | TypeScript | Code | 122 | 388 | import { computed, defineComponent, PropType } from 'vue';
import { BasicDrawer } from '../../drawer';
import PluginItem from './item';
import './index.scss';
import { SaController } from '../../config';
import { ElementType } from '../../element';
export default defineComponent({
name: 'SaFormLayoutController',
... | 46,435 |
https://github.com/guess-togethr/guess-togethr-extension/blob/master/src/background/store/savedLobbies.ts | Github Open Source | Open Source | MIT | null | guess-togethr-extension | guess-togethr | TypeScript | Code | 327 | 1,047 | import {
createSlice,
createEntityAdapter,
PayloadAction,
Action,
} from "@reduxjs/toolkit";
import type { XOR } from "../../utils";
import type { BackgroundRootState } from ".";
// export interface FullSavedLobby {
// id: string;
// // identity: { publicKey: string; privateKey: string };
// isServer: bo... | 25,859 |
https://github.com/ssrisunt/akka_streams_tutorial/blob/master/src/main/scala/alpakka/env/KafkaServer.scala | Github Open Source | Open Source | Apache-2.0, MIT | 2,020 | akka_streams_tutorial | ssrisunt | Scala | Code | 275 | 1,252 | package alpakka.env
import java.io.File
import java.net.InetSocketAddress
import java.nio.file.{Files, Paths}
import java.util.Properties
import kafka.server.{KafkaConfig, KafkaServerStartable}
import org.apache.commons.io.FileUtils
import org.apache.zookeeper.server.quorum.QuorumPeerConfig
import org.apache.zookeepe... | 36,736 |
https://github.com/Ranod98/SMS/blob/master/app/Repository/StudentRepositoryInterface.php | Github Open Source | Open Source | MIT | null | SMS | Ranod98 | PHP | Code | 71 | 243 | <?php
namespace App\Repository;
interface StudentRepositoryInterface{
//Get Students
public function getStudents();
//show student
public function showStudents($id);
// Get Add Form Student
public function createStudents();
//Store_Student
public function storeStudents($reques... | 35,232 |
https://github.com/fenmarel/OMSCentral/blob/master/src/app/core/nav/nav.component.ts | Github Open Source | Open Source | MIT | 2,022 | OMSCentral | fenmarel | TypeScript | Code | 110 | 322 | import { Component, OnInit } from '@angular/core';
import { AuthService } from '../../firebase/auth.service';
import { Router } from '@angular/router';
import { UserService } from '../user.service';
import { SettingsService } from '../settings.service';
import { Store } from '@ngrx/store';
import { AuthState } from '..... | 34,758 |
https://github.com/kelibst/fr-unitreview/blob/master/src/components/ErrOrs.js | Github Open Source | Open Source | MIT | 2,021 | fr-unitreview | kelibst | JavaScript | Code | 251 | 773 | import React, { Component } from 'react';
import { Alert, Button } from 'react-bootstrap';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { unloadError } from '../store/actions/errorAction';
import Icofont from 'react-icofont';
class ErrOrs extends Component {
constructor(props) {
... | 19,305 |
https://github.com/joegana/BerkeleyDB/blob/master/test/com/sleepycat/je/rep/elections/ProtocolFailureTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | BerkeleyDB | joegana | Java | Code | 817 | 2,413 | /*-
* Copyright (C) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle Berkeley
* DB Java Edition made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html
*
* Please ... | 23,137 |
https://github.com/WosberbonDesu/Orgonet-ChatApp/blob/master/OrgonetCodesV2final/pages/ChatRoomPageU.dart | Github Open Source | Open Source | MIT | 2,022 | Orgonet-ChatApp | WosberbonDesu | Dart | Code | 337 | 1,469 | import 'dart:developer';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:orgonetchatappv2/main.dart';
import 'package:orgonetchatappv2/models/ChatRoomMode... | 23,838 |
https://github.com/ycj123/Research-Project/blob/master/proFL-plugin-2.0.3/org/pitest/mutationtest/engine/gregor/mutators/ReturnValsMutator.java | Github Open Source | Open Source | MIT | null | Research-Project | ycj123 | Java | Code | 61 | 264 | //
// Decompiled by Procyon v0.5.36
//
package org.pitest.mutationtest.engine.gregor.mutators;
import org.pitest.reloc.asm.MethodVisitor;
import org.pitest.mutationtest.engine.gregor.MethodInfo;
import org.pitest.mutationtest.engine.gregor.MutationContext;
import org.pitest.mutationtest.engine.gregor.MethodMutatorF... | 30,016 |
https://github.com/maiconcrespo/familiaquotes/blob/master/lib/features/quote/data/datasources/local.dart | Github Open Source | Open Source | MIT | null | familiaquotes | maiconcrespo | Dart | Code | 48 | 347 | // const String YOUR_PERSONAL_ACCESS_TOKEN =
// '<YOUR_PERSONAL_ACCESS_TOKEN>';
const String parseApplicationId = 'pTdETNwxBDob63Qzb90KQXvt5h3rVvgfkXP5V5mf';
const String parseClientKey = 'wzLjRGyS2tmxTt8WvQBK7sMSpRPniKUWDEaYj8dD';
const String parseMasterKey = 'AilRFJGHZakndSpmIgpMmAwUx3u2Ztr8mi5wl4dI';
const String ... | 28,114 |
https://github.com/chrisr3/gradle-distributed-testing-plugin/blob/master/src/test/java/com/r3/testing/PropertiesTest.java | Github Open Source | Open Source | Apache-2.0 | null | gradle-distributed-testing-plugin | chrisr3 | Java | Code | 124 | 530 | package com.r3.testing;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class PropertiesTest {
private static String username = "me";
private static String password = "me";
private static St... | 1,585 |
https://github.com/blackbaud/gradle-templates/blob/master/src/componentTest/resources/expectedTemplateContent/service-bus-producer/src/main/java/com/blackbaud/service/servicebus/ProducerServiceBusProperties.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | gradle-templates | blackbaud | Java | Code | 16 | 77 | package com.blackbaud.service.servicebus;
import com.blackbaud.azure.servicebus.config.ServiceBusProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = "servicebus.producer")
public class ProducerServiceBusProperties extends ServiceBusProperties {
} | 37,664 |
https://github.com/dinuworks/hope-dinesh/blob/master/web/themes/custom/apigee_cn/templates/field/field.html.twig | Github Open Source | Open Source | MIT | null | hope-dinesh | dinuworks | Twig | Code | 16 | 42 | {#
/**
* @file
* Default template for a field.
*/
#}
{% include '@apigee-cn/field/field.twig' %}
| 17,583 |
https://github.com/UHC-Center/UHC-Center.CoreCommons/blob/master/src/main/java/center/uhc/core/commons/PlayerUtils.java | Github Open Source | Open Source | MIT | null | UHC-Center.CoreCommons | UHC-Center | Java | Code | 462 | 1,680 | package center.uhc.core.commons;
import center.uhc.core.commons.versions.NMSCore;
import center.uhc.core.commons.versions.NMSVersion;
import center.uhc.core.commons.versions.UniversalSound;
import de.dytanic.cloudnet.driver.CloudNetDriver;
import de.dytanic.cloudnet.ext.bridge.player.ICloudPlayer;
import de.dytanic.cl... | 32,884 |
https://github.com/nmaletm/cavobjects/blob/master/data.php | Github Open Source | Open Source | Apache-2.0 | 2,015 | cavobjects | nmaletm | PHP | Code | 635 | 4,105 | <?php
$server = 'http://cavobjects.storn.es/';
if ($_GET['render']) {
$server = 'http://www.cavobject.com/';
}
$serverPublic = 'http://www.cavobject.com/';
$gallery = new Gallery();
$i = 1;
$object = new Object(1);
$object->initGallery('Spider/spider-%d.jpg', 2);
$object->setName('Spider');
$object->setDate('25/1... | 23,328 |
https://github.com/trevorflanagan/dimensiondata-cloud-api/blob/master/src/main/java/com/dimensiondata/cloud/client/http/ImageServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | dimensiondata-cloud-api | trevorflanagan | Java | Code | 128 | 530 | package com.dimensiondata.cloud.client.http;
import com.dimensiondata.cloud.client.ImageService;
import com.dimensiondata.cloud.client.OrderBy;
import com.dimensiondata.cloud.client.Param;
import com.dimensiondata.cloud.client.model.*;
import javax.xml.bind.JAXBElement;
import javax.xml.namespace.QName;
public class... | 39,875 |
https://github.com/masud-technope/ACER-Replication-Package-ASE2017/blob/master/corpus/class/sling/1567.java | Github Open Source | Open Source | MIT | null | ACER-Replication-Package-ASE2017 | masud-technope | Java | Code | 225 | 522 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 9,787 |
https://github.com/Ray0218/JLYKit/blob/master/Example/JLYKit/JLYPushRouter.h | Github Open Source | Open Source | MIT | 2,016 | JLYKit | Ray0218 | C | Code | 28 | 89 | //
// JLYPushRouter.h
// JLYKit
//
// Created by 袁宁 on 2016/11/24.
// Copyright © 2016年 HappyiOSYuan. All rights reserved.
//
#import <JLYKit/JLYBaseRouter.h>
@interface JLYPushRouter : JLYBaseRouter
@end
| 34,840 |
https://github.com/czahoi/XUnity.AutoTranslator/blob/master/src/XUnity.AutoTranslator.Plugin.Core/TemplatedString.cs | Github Open Source | Open Source | LicenseRef-scancode-proprietary-license, MIT | 2,023 | XUnity.AutoTranslator | czahoi | C# | Code | 276 | 768 | using System.Collections.Generic;
namespace XUnity.AutoTranslator.Plugin.Core
{
internal class TemplatedString
{
public TemplatedString( string template, Dictionary<string, string> arguments )
{
Template = template;
Arguments = arguments;
}
public string Template { get... | 8,036 |
https://github.com/ForsakenW/forsaken/blob/master/ProjectX/finger.cpp | Github Open Source | Open Source | MIT | 2,020 | forsaken | ForsakenW | C++ | Code | 83 | 229 | #include <objbase.h>
#include "fingers.h"
extern "C" BOOL ValidFingerPrint( char *filename )
{
IFingerPrint* fp = NULL;
BOOL success = FALSE;
HRESULT hr;
::CoInitialize( NULL ); //may not be needed if you have already done it in your code.
hr = ::CoCreateInstance(CLSID_FingerPrint, NULL, C... | 37,591 |
https://github.com/Otto-J/arco-design-vue/blob/master/packages/web-vue/components/trigger/context.ts | Github Open Source | Open Source | MIT | 2,021 | arco-design-vue | Otto-J | TypeScript | Code | 44 | 118 | import type { InjectionKey } from 'vue';
export interface TriggerContext {
onMouseenter: () => void;
onMouseleave: () => void;
onFocusin: () => void;
onFocusout: () => void;
addChildRef: (ref: any) => void;
removeChildRef: (ref: any) => void;
}
export const triggerInjectionKey: InjectionKey<TriggerContext... | 18,857 |
https://github.com/TrueCar/gluestick/blob/master/packages/gluestick/src/logger.js | Github Open Source | Open Source | MIT | 2,020 | gluestick | TrueCar | JavaScript | Code | 141 | 352 | // @flow
import type { BaseLogger } from './types';
const util = require('util');
const loggerFactory = (type: string): ((values: Array<*>) => void) => {
if (process.env.NODE_ENV === 'production') {
return (...values) => {
const log = `${type.toUpperCase()}: ${values.reduce((prev, curr) => {
retur... | 8,797 |
https://github.com/frbl/PI-Web-API-Client-R/blob/master/R/PISubstatus.r | Github Open Source | Open Source | Apache-2.0 | 2,021 | PI-Web-API-Client-R | frbl | R | Code | 100 | 299 | PISubstatus <- function(substatus = NULL, message = NULL, webException = NULL) {
if (is.null(substatus) == FALSE) {
if (check.integer(substatus) == FALSE) {
return (print(paste0("Error: substatus must be an integer.")))
}
}
if (is.null(message) == FALSE) {
if (is.character(message) == FALSE) {
return (pr... | 47,777 |
https://github.com/harshwinklix/winklix/blob/master/app/controllers/common/Common.js | Github Open Source | Open Source | MIT | null | winklix | harshwinklix | JavaScript | Code | 651 | 1,961 |
const NewsModel = require('../../models/news')
const BlogModel = require('../../models/blogs')
const CmsModel = require('../../models/user/cms')
const StateModel = require('../../models/user/state')
const walletModel = require('../../models/wallet')
const base64Img = require('base64-img')
const sharp = require ('shar... | 19,317 |
https://github.com/Iamsdt/PSSD/blob/master/app/src/main/java/com/iamsdt/pssd/database/MyDatabase.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | PSSD | Iamsdt | Kotlin | Code | 49 | 149 | /*
* Developed By Shudipto Trafder
* on 8/17/18 10:39 AM
* Copyright (c) 2018 Shudipto Trafder.
*/
package com.iamsdt.pssd.database
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
@TypeConverters(value = [Converters::class])
@Database(entities = [WordTable::cla... | 5,269 |
https://github.com/Tim-Zhang/rust-protobuf/blob/master/protobuf-codegen/src/gen/message.rs | Github Open Source | Open Source | MIT | 2,022 | rust-protobuf | Tim-Zhang | Rust | Code | 1,642 | 7,876 | use std::fmt;
use protobuf::descriptor::*;
use protobuf::reflect::FileDescriptor;
use protobuf::reflect::MessageDescriptor;
use protobuf_parse::snake_case;
use crate::customize::ctx::CustomizeElemCtx;
use crate::customize::ctx::SpecialFieldPseudoDescriptor;
use crate::customize::rustproto_proto::customize_from_rustpr... | 3,008 |
https://github.com/Icareconnect/Backend/blob/master/app/Model/RequestDate.php | Github Open Source | Open Source | MIT | null | Backend | Icareconnect | PHP | Code | 35 | 124 | <?php
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
class RequestDate extends Model
{
/**
* Get the Request History From RequestHistory Model.
*/
public function requesthistory()
{
return $this->hasOne('App\Model\RequestHistory','request_id','request_id');
}
publ... | 30,697 |
https://github.com/OC-Bandung/newbirms/blob/master/app/Http/Controllers/ApiBIRMS.php | Github Open Source | Open Source | MIT | 2,019 | newbirms | OC-Bandung | PHP | Code | 4,290 | 20,841 | <?php
namespace App\Http\Controllers;
use App\Illuminate\Pagination\ArrayLengthAwarePaginator;
use Illuminate\Http\Request;
use App\Sirup;
use App\Paketlng;
use App\Paketpl;
use Illuminate\Support\Facades\DB;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Input;
use NestedJsonFlattener\Flattener\... | 7,194 |
https://github.com/Chondo94/SchoolDb/blob/master/app/SubjectYear.php | Github Open Source | Open Source | MIT | null | SchoolDb | Chondo94 | PHP | Code | 58 | 175 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class SubjectYear extends Model
{
protected $fillable = ['subject_id', 'year_id', 'teacher_id'];
//esta es una relacion hijo y se coloca en singular, cuando es relacion padre va en plural
public function year(){
return $this->belongsTo('App\Yea... | 44,352 |
https://github.com/jbmolle/vue-keycloak-js/blob/master/src/types.ts | Github Open Source | Open Source | ISC | null | vue-keycloak-js | jbmolle | TypeScript | Code | 458 | 1,268 | import type {
KeycloakConfig,
KeycloakError,
KeycloakInitOptions,
KeycloakInstance,
KeycloakLoginOptions,
KeycloakProfile,
KeycloakPromise,
KeycloakResourceAccess,
KeycloakRoles,
KeycloakTokenParsed,
} from 'keycloak-js'
import type { App } from 'vue'
export {
KeycloakConfig,
KeycloakError,
K... | 41,377 |
https://github.com/goodguyplayer/adventofcode2020/blob/master/src/main/java/challenges/challenge3/Challenge3.java | Github Open Source | Open Source | MIT | null | adventofcode2020 | goodguyplayer | Java | Code | 300 | 921 | package challenges.challenge3;
import interfaces.ChallengeBasics;
import models.FileHandler;
import java.util.List;
public class Challenge3 implements ChallengeBasics {
String pathexample = "src/main/java/challenges/challenge3/example.txt";
String pathchallenge = "src/main/java/challenges/challenge3/challeng... | 7,894 |
https://github.com/profjordanov/JJ-Online-Store/blob/master/Web/JjOnlineStore.Api/Configuration/ApiMiddlewareConfiguration.cs | Github Open Source | Open Source | MIT | 2,021 | JJ-Online-Store | profjordanov | C# | Code | 35 | 134 | using Microsoft.AspNetCore.Builder;
namespace JjOnlineStore.Api.Configuration
{
public static class ApiMiddlewareConfiguration
{
public static void UseSwagger(this IApplicationBuilder app, string endpointName)
{
app.UseSwagger();
app.UseSwaggerUI(setup =>
{
... | 49,300 |
https://github.com/TrendingTechnology/vue-pincode/blob/master/src/App.vue | Github Open Source | Open Source | MIT | 2,020 | vue-pincode | TrendingTechnology | Vue | Code | 88 | 360 | <template>
<div id="app">
<img alt="Vue logo" src="./assets/logo.png" />
<div class="container">
<vue-pincode ref="pincodeInput" @pincode="checkPincode" />
</div>
</div>
</template>
<script>
import VuePincode from "./components/VuePincode";
export default {
name: "App",
components: {
Vue... | 35,690 |
https://github.com/fantongkw/oa/blob/master/src/main/java/com/ccc/oa/dao/DepartmentDao.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | oa | fantongkw | Java | Code | 44 | 181 | package com.ccc.oa.dao;
import com.ccc.oa.model.Department;
import com.ccc.oa.model.Member;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository(value = "DepartmentDao")
public interface DepartmentDao {
int deleteById(@Param("id") Long i... | 10,397 |
https://github.com/isapi/tantalis-neo3-nft-and-data-dapp/blob/master/nft-api/src/catalog/repository/nft.category.repository.ts | Github Open Source | Open Source | MIT | 2,021 | tantalis-neo3-nft-and-data-dapp | isapi | TypeScript | Code | 21 | 63 | import { EntityRepository, Repository } from 'typeorm';
import { NftCategoryEntity } from '../../entity/nft.category.entity';
@EntityRepository(NftCategoryEntity)
export class NftCategoryRepository extends Repository<NftCategoryEntity> {
} | 3,691 |
https://github.com/tantangin/my_auth_ci3/blob/master/themes/admin/azzara/pages/Transaksi/stokin/partials/_input.php | Github Open Source | Open Source | MIT | 2,022 | my_auth_ci3 | tantangin | PHP | Code | 354 | 1,509 | <div class="form-group">
<label for="pilih_barang">Pilih Nama Barang</label>
<select class="js-data-example-ajax form-control p-1" id="pilih_barang" name="pilih_barang">
<?php if ($restok->barang_id) : ?>
<option value="<?= $restok->barang_id; ?>" selected><?= $restok->barang->nama; ?></option>
<?php ... | 50,534 |
https://github.com/iagodahlem/clima-cli/blob/master/tests/commands/version.test.js | Github Open Source | Open Source | MIT | 2,018 | clima-cli | iagodahlem | JavaScript | Code | 27 | 82 | const versionCommand = require('../../src/commands/version')
describe('version command', () => {
beforeEach(() => {
global.console.log = jest.fn()
})
it('logs the package version', () => {
versionCommand()
expect(console.log).toBeCalled()
})
})
| 38,379 |
https://github.com/TestowanieAutomatyczneUG/laboratorium-9-SzymonWilczewski/blob/master/src/zad03/checker.py | Github Open Source | Open Source | MIT | null | laboratorium-9-SzymonWilczewski | TestowanieAutomatyczneUG | Python | Code | 27 | 111 | from src.zad03.env import Env
class Checker:
def __init__(self):
self.env = Env()
def remainder(self, file):
time = self.env.getTime()
if time > 17:
self.env.playWavFile(file)
return self.env.wavWasPlayed(file)
else:
return self.env.resetWa... | 5,342 |
https://github.com/nandakumar131/hadoop-ozone/blob/master/hadoop-hdds/config/src/main/java/org/apache/hadoop/hdds/conf/TimeDurationUtil.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | hadoop-ozone | nandakumar131 | Java | Code | 521 | 1,223 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 47,016 |
https://github.com/ScottGlenn2/vole/blob/master/vole-portal/src/main/java/com/github/vole/portal/service/impl/SysMenuServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | vole | ScottGlenn2 | Java | Code | 96 | 525 | package com.github.vole.portal.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.vole.portal.model.entity.SysMenu;
import com.github.vole.portal.mapper.SysMenuMapper;
import com.github.vole.portal.mod... | 39,986 |
https://github.com/zettadb/zettalib/blob/master/src/vendor/mariadb-10.6.7/storage/innobase/btr/btr0bulk.cc | Github Open Source | Open Source | Apache-2.0 | null | zettalib | zettadb | C++ | Code | 3,758 | 14,672 | /*****************************************************************************
Copyright (c) 2014, 2019, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, 2021, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public L... | 39,612 |
https://github.com/nickuraltsev/finity/blob/master/src/configuration/BaseConfigurator.js | Github Open Source | Open Source | MIT | 2,018 | finity | nickuraltsev | JavaScript | Code | 80 | 233 | import mapValues from '../utils/mapValues';
export default class BaseConfigurator {
constructor(parent) {
this.parent = parent;
}
getAncestor(type) {
if (this.parent) {
return this.parent instanceof type ?
this.parent :
this.parent.getAncestor(type);
}
return null;
}
b... | 8,582 |
https://github.com/axxtros/webtemplate_1/blob/master/public_html/js/common.js | Github Open Source | Open Source | MIT | 2,017 | webtemplate_1 | axxtros | JavaScript | Code | 389 | 1,418 | /*
Created on : Sep 22, 2017, 09:43:05 AM
Author : axtros
Közös függvények, amelyek mindenféle eszközön használhatóak.
*/
var BROWSER_CHROME_NAME = 'Chrome';
var BROWSER_FIREFOX_NAME = 'Firefox';
var BROWSER_IE_NAME = 'Microsoft Internet Explorer';
var BROWSER_EDGE_NAME = 'Microsoft Edge';
var BROWSER... | 47,104 |
https://github.com/cragkhit/elasticsearch/blob/master/references/bcb_chosen_clones/default#82598#71#84.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | elasticsearch | cragkhit | Java | Code | 39 | 124 | File createJar(File jar, String... entries) throws IOException {
OutputStream out = new FileOutputStream(jar);
try {
JarOutputStream jos = new JarOutputStream(out);
for (String e : entries) {
jos.putNextEntry(new JarEntry(getPathForZipEntry(e)));
... | 44,099 |
https://github.com/usernameHed/Philae-Lander/blob/master/Assets/Plugins/Unity Essentials - Attractor/Scripts/ExtGravitonCalculation.cs | Github Open Source | Open Source | MIT | null | Philae-Lander | usernameHed | C# | Code | 504 | 1,941 | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEssentials.ActionTrigger.entity;
using UnityEssentials.ActionTrigger.Trigger;
using UnityEssentials.Extensions;
using UnityEssentials.PropertyAttribute.noNull;
using UnityEssentials.PropertyAttribute.readOnly;
using... | 39,951 |
https://github.com/oradrs/tpt-oracle/blob/master/ti.sql | Github Open Source | Open Source | Apache-2.0 | 2,023 | tpt-oracle | oradrs | SQL | Code | 155 | 353 | -- Copyright 2018 Tanel Poder. All rights reserved. More info at http://tanelpoder.com
-- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions.
@@saveset
column _ti_sequence noprint new_value _ti_sequence
set feedback off heading off
select trim(to_char( &_ti_sequence + 1 , '0999' ... | 46,578 |
https://github.com/overfy/Satpam-Discord/blob/master/Commands/PurgeCommand.js | Github Open Source | Open Source | MIT | null | Satpam-Discord | overfy | JavaScript | Code | 140 | 374 | const Discord = require('discord.js');
module.exports = {
name: 'Purge',
description: 'Clearing message on channel',
aliases: ['purge','prune'],
usage: `Purge <num>`,
cooldown: 5,
async execute(client, message, args) {
if (!message.member.hasPermission("MANAGE_MESSAGES") || !message.member.hasPermission("ADM... | 49,125 |
https://github.com/jczaplew/DefinitelyTyped/blob/master/types/graphql-date/index.d.ts | Github Open Source | Open Source | MIT | 2,016 | DefinitelyTyped | jczaplew | TypeScript | Code | 29 | 105 | // Type definitions for graphql-date 1.0
// Project: https://github.com/tjmehta/graphql-date
// Definitions by: Eric Naeseth <https://github.com/enaeseth>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import {GraphQLScalarType} from 'graphql';
declare const date: GraphQLScalarType;
export = date... | 125 |
https://github.com/bhokumar/reactive-programming/blob/master/src/main/java/com/smarttech/reactive/programming/problemsolving/sudoku/SudokuConstants.java | Github Open Source | Open Source | Apache-2.0 | null | reactive-programming | bhokumar | Java | Code | 38 | 89 | package com.smarttech.reactive.programming.problemsolving.sudoku;
public class SudokuConstants {
public static final int BOARD_SIZE = 9;
public static final int BOX_SIZE = 3;
public static final int MIN_NUMBER = 1;
public static final int MAX_NUMBER = 9;
private SudokuConstants() {}
}
| 48,868 |
https://github.com/4strid/nekodb/blob/master/test/config.js | Github Open Source | Open Source | MIT | 2,021 | nekodb | 4strid | JavaScript | Code | 16 | 57 | module.exports = {
testMongo: false,
client: 'mongodb',
username: '',
password: '',
address: 'localhost:27017',
database: 'ko_db_test',
}
| 29,984 |
https://github.com/imatiach-msft/fairlearn/blob/master/visualization/FairnessDashboard/src/Controls/ModelComparisonChart.tsx | Github Open Source | Open Source | MIT | null | fairlearn | imatiach-msft | TypeScript | Code | 856 | 3,443 | import _ from "lodash";
import { AccessibleChart, ChartBuilder, IPlotlyProperty, PlotlyMode, SelectionContext } from "mlchartlib";
import { getTheme, Text } from "office-ui-fabric-react";
import { ActionButton } from "office-ui-fabric-react/lib/Button";
import { ChoiceGroup, IChoiceGroupOption } from 'office-ui-fabric-... | 22,353 |
https://github.com/conchyliculture/beerlog/blob/master/beerlog/events.py | Github Open Source | Open Source | MIT | 2,019 | beerlog | conchyliculture | Python | Code | 99 | 329 | """Module for beerlog events"""
from datetime import datetime
from beerlog import constants
class BaseEvent():
"""Base Event type for the main process Loop.
Attributes:
timestamp(datetime.datetime): the time when the event was generated.
type(str): a type for this event.
"""
def __init__(sel... | 17,819 |
https://github.com/roryprimrose/Headless/blob/master/Headless/HtmlList.cs | Github Open Source | Open Source | MIT | 2,021 | Headless | roryprimrose | C# | Code | 857 | 2,435 | namespace Headless
{
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Globalization;
using System.Linq;
using System.Xml.XPath;
using Headless.Activation;
using Headless.Properties;
/// <summary>
/// The <see cref="HtmlList"... | 50,757 |
https://github.com/barryajones/troup-client/blob/master/components/Dashboard/index.tsx | Github Open Source | Open Source | Apache-2.0 | 2,020 | troup-client | barryajones | TSX | Code | 66 | 154 | import React from 'react';
import { useRouter } from 'next/router';
import { withRedirectUser } from '@with/redirectUser';
import { withApollo } from '@with/apollo';
import { DashboardUser } from './DashboardUser';
import { DashboardTeam } from './DashboardTeam';
export const Dashboard: React.FC<{}> = () => {
co... | 27,215 |
https://github.com/Energinet-DataHub/po-auth/blob/master/src/migrations/versions/7c454b8ab0d9_.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | po-auth | Energinet-DataHub | Python | Code | 139 | 654 | """empty message
Revision ID: 7c454b8ab0d9
Revises: 9720f2c9aba2
Create Date: 2022-05-19 12:03:44.487536
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '7c454b8ab0d9'
down_revision = '9720f2c9aba2'
branch_labels = None
depends_on = None
def upgrade():
# ... | 11,888 |
https://github.com/VHAINNOVATIONS/PerceptiveReach/blob/master/CI_CD/PerceptiveReachTestCases/features/PR-2084.feature | Github Open Source | Open Source | Apache-2.0 | 2,017 | PerceptiveReach | VHAINNOVATIONS | Gherkin | Code | 105 | 180 | Feature: As any IRDS user, I want to be automatically logged out of the application after 15 minutes of inactivity PR-2084 1.1.72
Scenario: I open a web browser and navigate to http://localhost:7003/ to see the inactivity logout
Given I navigate to the http://localhost:7003/
Then I should see "Perceptive Reach"
When ... | 34,782 |
https://github.com/tbfajri/restful-api/blob/master/application/controllers/Kontak.php | Github Open Source | Open Source | MIT | null | restful-api | tbfajri | PHP | Code | 115 | 454 | <?php
defined('BASEPATH') OR exit ('No direct script access allowed');
require APPPATH . '/libraries/REST_Controller.php';
use Restserver\Libraries\REST_Controller;
class Kontak extends REST_Controller {
function __construct(){
parent::__construct();
$this->load->model('kontak_model');
}
... | 48,953 |
https://github.com/dripfeeder/haven-platform/blob/master/common/filestorage/src/main/java/com/codeabovelab/dm/fs/service/SimpleFileStorageBackend.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | haven-platform | dripfeeder | Java | Code | 524 | 1,582 | /*
* Copyright 2016 Code Above Lab LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 13,007 |
https://github.com/kleopatra999/aws-sdk-ruby-record/blob/master/spec/aws-record/record/attributes/map_marshaler_spec.rb | Github Open Source | Open Source | Apache-2.0 | 2,016 | aws-sdk-ruby-record | kleopatra999 | Ruby | Code | 309 | 747 | # Copyright 2015-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not
# use this file except in compliance with the License. A copy of the License is
# located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" fil... | 37,245 |
https://github.com/benkyodesuyo/DevOpsSample/blob/master/DevOpsSample/Program.cs | Github Open Source | Open Source | MIT | null | DevOpsSample | benkyodesuyo | C# | Code | 33 | 93 | using System;
namespace DevOpsSample
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
NewMethod();
}
private static void NewMethod()
{
if (true)
{
var i = 10;
... | 30,945 |
https://github.com/renoagilsaputra/kopi-shop/blob/master/application/views/admin/transaksi.php | Github Open Source | Open Source | MIT | 2,020 | kopi-shop | renoagilsaputra | PHP | Code | 247 | 1,135 | <h1 class="mt-4">Transaksi</h1>
<?= $this->session->flashdata('message'); ?>
<?php if(!empty($invoices)) : ?>
<a href="" data-toggle="modal" data-target="#addModal" class="btn btn-dark mb-2"><i class="fa fa-print"></i></a>
<?php endif; ?>
<div class="table-responsive">
<table class="table table-hover">
... | 36,342 |
https://github.com/lahiiru/DeepLab-Training-Pipeline/blob/master/docker_run.sh | Github Open Source | Open Source | MIT | null | DeepLab-Training-Pipeline | lahiiru | Shell | Code | 20 | 117 | #!/usr/bin/env bash
IMAGE_NAME=deeplab:v2.0
DATASET_LOC=/home/dulanj/Datasets/CIHP/instance-level_human_parsing/instance-level_human_parsing
docker run --gpus "all" -it --rm -p 80:80 \
-v $DATASET_LOC:/home/dataset:ro \
-v $(pwd)/output:/home/output \
$IMAGE_NAME
| 28,739 |
https://github.com/mauri-opskins/eos/blob/master/libraries/chain/trace.cpp | Github Open Source | Open Source | MIT | 2,021 | eos | mauri-opskins | C++ | Code | 118 | 489 | /**
* @file
* @copyright defined in eos/LICENSE
*/
#include <eosio/chain/trace.hpp>
namespace eosio { namespace chain {
action_trace::action_trace(
const transaction_trace& trace, const action& act, account_name receiver, bool context_free,
uint32_t action_ordinal, uint32_t creator_action_ordinal, uint32_t... | 46,335 |
https://github.com/Stex/acts_as_data_table/blob/master/generators/acts_as_data_table/templates/assets/js/acts_as_data_table.js | Github Open Source | Open Source | MIT | null | acts_as_data_table | Stex | JavaScript | Code | 91 | 346 | jQuery(document).ready(function() {
jQuery(document).on("click", '[data-init=sortable-column]', function(e) {
var active, remote, url, urlSetBase, urlToggle;
e.preventDefault();
urlToggle = jQuery(this).data('urlToggle');
urlSetBase = jQuery(this).data('urlSetBase');
remote = jQuery(this).data('re... | 6,950 |
https://github.com/sitedisks/YuYan/blob/master/YuYan.API/YuYan.Domain/Database/ip2location_db3.cs | Github Open Source | Open Source | MIT | 2,021 | YuYan | sitedisks | C# | Code | 73 | 185 | using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace YuYan.Domain.Database
{
[Table("ip2location_db3")]
public class ip2location_db3
{
[Key]
public double ip_from { get; set; }
public double ip_to { get; set; }
... | 47,828 |
https://github.com/aljaxus/eu.aljaxus.xena/blob/master/api/session/signin.php | Github Open Source | Open Source | MIT | 2,018 | eu.aljaxus.xena | aljaxus | PHP | Code | 463 | 1,666 | <?php
require_once __DIR__ . '/../../inc/__util/firstload.php';
require_once __DIR__ . '/../../inc/__util/database.php';
require_once __DIR__ . '/../../inc/googleApiCli/vendor/autoload.php';
$utildb = new dbInit();
$pdo = $utildb->pdo();
$datArr = array(
'POST' => (!empty($_POST)) ? $_POST : null,
'SESSION' => null... | 45,035 |
https://github.com/navikt/k9-dokument/blob/master/settings.gradle.kts | Github Open Source | Open Source | MIT | null | k9-dokument | navikt | Kotlin | Code | 3 | 13 | rootProject.name = "k9-dokument"
| 17,140 |
https://github.com/mustsee/nuxt-starter-template/blob/master/components/partials/Modal.vue | Github Open Source | Open Source | MIT | 2,021 | nuxt-starter-template | mustsee | Vue | Code | 294 | 978 | <template>
<div :class="closing ? 'closing' : ''" class="modal">
<div id="overlay" @click="closeModal" />
<div id="modal" class="content container" @keydown.esc="closeModal">
<nuxt-link :to="toParent" class="icon-times" />
<slot />
</div>
</div>
</template>
<style lang="scss" scoped>
@impor... | 33,540 |
https://github.com/FabianoVeglianti/syncope/blob/master/client/idm/console/src/main/java/org/apache/syncope/client/console/commons/IdMAnyDirectoryPanelAdditionalActionsProvider.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | syncope | FabianoVeglianti | Java | Code | 596 | 2,806 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 38,165 |
https://github.com/MyJetEducation/Service.EducationMarketsApi/blob/master/src/Service.WalletApi.EducationMarketsApi/Controllers/Contracts/TaskTextRequest.cs | Github Open Source | Open Source | MIT | null | Service.EducationMarketsApi | MyJetEducation | C# | Code | 11 | 40 | namespace Service.WalletApi.EducationMarketsApi.Controllers.Contracts
{
public class TaskTextRequest : TaskRequestBase
{
}
} | 38,244 |
https://github.com/louchebem06/cub3D/blob/master/src/parsing/min_char_map.c | Github Open Source | Open Source | MIT | null | cub3D | louchebem06 | C | Code | 132 | 517 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* min_char_map.c :+: :+: :+: ... | 27,696 |
https://github.com/pig-mesh/pig/blob/master/pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/component/PigOAuthRequestInterceptor.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | pig | pig-mesh | Java | Code | 143 | 654 | package com.pig4cloud.pig.common.security.component;
import cn.hutool.core.collection.CollUtil;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.pig4cloud.pig.common.core.constant.SecurityConstants;
import com.pig4cloud.pig.common.core.util.WebUtils;
import feign.RequestInterceptor;
import feign.Re... | 37,545 |
https://github.com/Yanshang1991/TensorFlowTTS/blob/master/examples/fastspeech2/__init__.py | Github Open Source | Open Source | Apache-2.0 | null | TensorFlowTTS | Yanshang1991 | Python | Code | 8 | 62 | from examples.fastspeech2.fastspeech2_dataset import CharactorDurationF0EnergyMelDataset
import examples.fastspeech2.train_fastspeech2
import examples.fastspeech2.decode_fastspeech2
| 39,736 |
https://github.com/vishalbelsare/OG-USA/blob/master/ogcore/tests/test_parameters.py | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,022 | OG-USA | vishalbelsare | Python | Code | 444 | 1,753 | import os
import tempfile
import pytest
import numpy as np
from ogcore.parameters import Specifications, revision_warnings_errors
from ogcore import utils
# get path to puf if puf.csv in ogcore/ directory
CUR_PATH = os.path.abspath(os.path.dirname(__file__))
JSON_REVISION_FILE = """{
"revision": {
"frisch... | 38,681 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.