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/chatterjeeshekhar/sendmymail/blob/master/software/manage/admin/getactive.php | Github Open Source | Open Source | MIT | 2,020 | sendmymail | chatterjeeshekhar | PHP | Code | 81 | 299 | <?php
include 'session.php';
include 'web/connect.php';
$q = $_GET['q'];
$con=mysqli_connect($servername1, $username1, $password1, $dbname1);
if (!$con) {
die('Could not connect: ' . mysqli_error($con));
}
mysqli_select_db($con,$dbname1);
$sql="SELECT active FROM login WHERE username = '$q'";
$result = mysqli_que... | 18,620 |
https://github.com/danielahofmann/bookster/blob/master/app/CharacterImage.php | Github Open Source | Open Source | MIT | 2,018 | bookster | danielahofmann | PHP | Code | 29 | 78 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class CharacterImage extends Model
{
/**
* Get the character record associated with the image.
*/
public function character()
{
return $this->belongsTo('App\Character');
}
}
| 30,036 |
https://github.com/rubyforgood/loudoun_codes/blob/master/spec/jobs/run_submission_job_spec.rb | Github Open Source | Open Source | MIT | 2,018 | loudoun_codes | rubyforgood | Ruby | Code | 146 | 672 | require 'rails_helper'
RSpec.describe RunSubmissionJob, type: :job do
let(:contest) { Contest.create! }
let(:account) { contest.accounts.create! }
let(:problem) do
Problem.create_from_files!({
contest: contest,
name: "CompilesAndRuns",
output_file: fixtures.join("Output"),
... | 52,912 |
https://github.com/untgames/funner/blob/master/components/media/collada/export.mak | Github Open Source | Open Source | MIT | 2,017 | funner | untgames | Makefile | Code | 42 | 230 | # Compile exports
export.compile.media.collada.INCLUDE_DIRS := include
export.compile.media.collada.IMPORTS := compile.math.vecmath compile.common
# Link exports
export.link.media.collada.LIBS := funner.media.collada
export.link.media.collada.IMPORTS := link.common
# Link converter
export.link.media.collada.c... | 47,936 |
https://github.com/Luis-X/MagicCubePackage/blob/master/Pods/QMUIKit/QMUIKit/QMUIComponents/QMUILogManagerViewController.h | Github Open Source | Open Source | MIT | 2,020 | MagicCubePackage | Luis-X | C | Code | 78 | 432 | //
// QMUILogManagerViewController.h
// QMUIKit
//
// Created by MoLice on 2018/1/24.
// Copyright © 2018年 QMUI Team. All rights reserved.
//
#import "QMUICommonTableViewController.h"
/// 用于管理 QMUILog name 的调试界面,可直接 init 使用
@interface QMUILogManagerViewController : QMUICommonTableViewController
/// cell 总个数大于等于这... | 31,375 |
https://github.com/pymma/drools47jdk8/blob/master/drools-repository/src/test/java/org/drools/repository/StackUtil.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | drools47jdk8 | pymma | Java | Code | 116 | 334 | package org.drools.repository;
import java.io.ByteArrayOutputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class StackUtil {
/**
* Return the name of the routine that called getCurrentMethodName
*
* @author Johan Känngård, http://dev.kanngard.net
* (found on the... | 28,793 |
https://github.com/tomkerswill/node-harvest-v2/blob/master/src/api/company.js | Github Open Source | Open Source | MIT | 2,022 | node-harvest-v2 | tomkerswill | JavaScript | Code | 27 | 106 | const pick = require('lodash.pick');
const base = require('../mixins/Base');
function Company(options) {
this.name = 'company';
this.baseUri = `https://api.harvestapp.com/v2/${this.name}`;
this.options = options;
}
Object.assign(Company.prototype, pick(base, ['retrieve']));
module.exports = Company;
| 9,998 |
https://github.com/ngx-eco/ngx-themes/blob/master/src/app/components/popup-color-picker/popup-color-picker.component.ts | Github Open Source | Open Source | MIT | null | ngx-themes | ngx-eco | TypeScript | Code | 134 | 450 | // Angular
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
// App
import { popupColorPickerAnimation } from './popup-color-picker.animation';
// Project
import { NgxThemesService } from '@ngx-eco/ngx-themes';
@Component({
selector: 'popup-color-picker',
templateUrl: './popup-col... | 27,201 |
https://github.com/Sitecore/Sitecore-Instance-Manager/blob/master/src/SIM.Base/FileSystem/FilePath.cs | Github Open Source | Open Source | MIT | 2,023 | Sitecore-Instance-Manager | Sitecore | C# | Code | 56 | 168 | namespace SIM.FileSystem
{
using System.IO;
using JetBrains.Annotations;
public sealed class FilePath
{
[NotNull]
public string FullName { get; }
public FilePath([NotNull] string fullname)
{
FullName = Path.GetFullPath(fullname);
}
[NotNull]
public string Extension => Path.... | 55,167 |
https://github.com/workingwithmminh/laravel_fofn/blob/master/Modules/Product/Entities/GalleryProduct.php | Github Open Source | Open Source | MIT | null | laravel_fofn | workingwithmminh | PHP | Code | 59 | 179 | <?php
namespace Modules\Product\Entities;
use Illuminate\Database\Eloquent\Model;
use GeneaLabs\LaravelModelCaching\Traits\Cachable;
class GalleryProduct extends Model
{
/**
* The database table used by the model.
*
* @var string
*/
protected $table = "gallery_products";
/**
* T... | 55,031 |
https://github.com/guihuxiansheng/zaihangForPc/blob/master/application/index/controller/Expertaddinfo.php | Github Open Source | Open Source | Apache-2.0 | 2,017 | zaihangForPc | guihuxiansheng | PHP | Code | 261 | 1,954 | <?php
namespace app\index\controller;
// use \think\Controller;
use think\Session;
class Expertaddinfo extends Islogin
{
protected $user;
function __construct(){
parent::__construct();
$this->assign('login',$this->isLogin);
$this->user = Session::get('user_name');
// $this->user='niahog';
}
pu... | 9,872 |
https://github.com/fulgore83/easy-template-x/blob/master/dist/types/plugins/templatePlugin.d.ts | Github Open Source | Open Source | MIT | 2,020 | easy-template-x | fulgore83 | TypeScript | Code | 67 | 187 | import { ScopeData, Tag, TemplateCompiler, TemplateContext } from '../compilation';
import { DocxParser } from '../office';
import { XmlParser } from '../xml';
export interface PluginUtilities {
compiler: TemplateCompiler;
docxParser: DocxParser;
xmlParser: XmlParser;
}
export declare abstract class Templat... | 9,423 |
https://github.com/Meka88/breviews/blob/master/breviews-client/src/components/B_Molecules/SearchBanner.jsx | Github Open Source | Open Source | MIT | 2,022 | breviews | Meka88 | null | Spoken | 377 | 1,244 | import "./style/searchbanner.scss";
import { withRouter } from "react-router";
import React, { useState, useEffect } from "react";
import "react-bootstrap-typeahead/css/Typeahead.css";
import { Search } from "semantic-ui-react";
import _ from "lodash";
const initalTags = [
"Frontend",
"Backend",
"Fullstack",
"... | 33,483 |
https://github.com/kyawlinntun-gif/pmanager/blob/master/resources/views/companies/show.blade.php | Github Open Source | Open Source | MIT | null | pmanager | kyawlinntun-gif | PHP | Code | 122 | 588 | @extends('layouts.app')
@section('content')
<div class="container mt-5">
<div class="row">
<dvi class="col-md-9 col-lg-9 pull-left">
@if(session('success'))
<div class="alert alert-primary">
{{session('success')}}
</div>
@endif
<main role="main... | 54,412 |
https://github.com/MKLoRa/MKLoRa-LW001-BG-iOS/blob/master/MKLoRaWAN-BG/Classes/SDK/MKBGSDKDataAdopter.h | Github Open Source | Open Source | MIT | null | MKLoRa-LW001-BG-iOS | MKLoRa | C | Code | 123 | 685 | //
// MKBGSDKDataAdopter.h
// MKLoRaWAN-BG
//
// Created by aa on 2021/6/10.
// Copyright © 2021 aadyx2007@163.com. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MKBGSDKNormalDefines.h"
NS_ASSUME_NONNULL_BEGIN
@interface MKBGSDKDataAdopter : NSObject
/// 将对应的定位策略转换成命令string
/// @param stra... | 7,030 |
https://github.com/philipsd6/glot-www/blob/master/Widget/RunResult.hs | Github Open Source | Open Source | MIT | 2,016 | glot-www | philipsd6 | Haskell | Code | 20 | 55 | module Widget.RunResult (
runResultWidget
) where
import Import
runResultWidget :: Maybe (Entity RunResult) -> Widget
runResultWidget mRunResult = $(widgetFile "widgets/run-result")
| 51,190 |
https://github.com/wearemarmota/marmota-music-api/blob/master/database/migrations/2020_09_12_143158_renaming_authors.php | Github Open Source | Open Source | MIT | null | marmota-music-api | wearemarmota | PHP | Code | 79 | 372 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class RenamingAuthors extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::rename('authors', 'artists... | 27,499 |
https://github.com/aldesantis/pragma-meta/blob/master/policy/lib/pragma/policy/pundit.rb | Github Open Source | Open Source | MIT | 2,017 | pragma-meta | aldesantis | Ruby | Code | 124 | 484 | # frozen_string_literal: true
module Pragma
module Policy
# Provides a simple way for Pragma policies to delegate to Pundit policies/scopes.
#
# @example
# class API::V1::Article::Policy < Pragma::Policy::Pundit
# # The default would be ArticlePolicy.
# self.pundit_klass = CustomArt... | 31,228 |
https://github.com/arhankundu99/Algo/blob/master/Graphs/Swim in rising water.java | Github Open Source | Open Source | MIT | 2,020 | Algo | arhankundu99 | Java | Code | 180 | 539 | // https://leetcode.com/explore/challenge/card/june-leetcoding-challenge-2021/605/week-3-june-15th-june-21st/3785/
// (This ques can also be solved using dijkstra)
class Solution {
public int swimInWater(int[][] grid) {
int n = grid.length;
int low = 0, high = n * n - 1;
int time = -1;
... | 54,489 |
https://github.com/BryceStandley/TNAH/blob/master/docs/classtnah_1_1_input.js | Github Open Source | Open Source | MIT | 2,021 | TNAH | BryceStandley | JavaScript | Code | 60 | 519 | var classtnah_1_1_input =
[
[ "GetMousePos", "classtnah_1_1_input.html#a3c743ad5118965e54fafb3bf37e6b20b", null ],
[ "GetMousePosImpl", "classtnah_1_1_input.html#abcdb33750edc4c50ab7e2f081054215c", null ],
[ "GetMouseX", "classtnah_1_1_input.html#a8b2c6fce83feab22ad1c93e96e9fa6ca", null ],
[ "GetMouseXI... | 39,364 |
https://github.com/janus-technology/ilinx/blob/master/src/iLinX/Classes/BrowseSubViewController.h | Github Open Source | Open Source | Apache-2.0 | 2,017 | ilinx | janus-technology | Objective-C | Code | 81 | 304 | //
// BrowseSubViewController.h
// iLinX
//
// Created by mcf on 19/01/2009.
// Copyright 2009 Micropraxis Ltd. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ListDataSource.h"
#import "NLSourceMediaServer.h"
@class BrowseViewController;
@class NLBrowseList;
@class TintedTableViewDelegate;
@interface B... | 3,384 |
https://github.com/shankarmadeshvaran/shankarmadeshvaran.github.io/blob/master/src/theme/themes.js | Github Open Source | Open Source | MIT | 2,022 | shankarmadeshvaran.github.io | shankarmadeshvaran | JavaScript | Code | 88 | 383 | export const lightTheme = {
background: '#fff',
color: '#121212',
accentColor: '#3D84C6',
chronoTheme: {
cardBgColor: 'white',
cardForeColor: 'black',
titleColor: 'white',
},
timelineLineColor: '#ccc',
cardBackground: '#fff',
cardFooterBackground: '#f7f7f7',
cardBorderColor: '#00000020',
... | 17,103 |
https://github.com/aliyun/alibabacloud-java-sdk/blob/master/imm-20200930/src/main/java/com/aliyun/imm20200930/models/CreateFileUncompressionTaskShrinkRequest.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | alibabacloud-java-sdk | aliyun | Java | Code | 214 | 835 | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.imm20200930.models;
import com.aliyun.tea.*;
public class CreateFileUncompressionTaskShrinkRequest extends TeaModel {
@NameInMap("CredentialConfig")
public String credentialConfigShrink;
@NameInMap("Notification")
public String... | 46,685 |
https://github.com/MarcoMing/reactPullToRefresh/blob/master/examples/index.js | Github Open Source | Open Source | MIT | null | reactPullToRefresh | MarcoMing | JavaScript | Code | 58 | 269 | import React from 'react';
import ReactDOM from 'react-dom';
import ReactPullToRefresh from '../src';
class App extends React.Component{
constructor(){
super();
this.onRefresh = this.onRefresh.bind(this);
}
onRefresh(resolve,reject){
setTimeout(()=>{
resolve()
},5000)
}
render(){
... | 18,214 |
https://github.com/soumitag/SLIDE/blob/master/source/VTBox/build/web/dendrogram.jsp | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,022 | SLIDE | soumitag | null | Spoken | 728 | 3,726 | <%--
Document : dendrogram
Created on : 15 Mar, 2017, 11:29:53 AM
Author : soumitag
--%>
<%@page import="graphics.layouts.DrillDownPanelLayout"%>
<%@page import="vtbox.SessionUtils"%>
<%@page import="structure.AnalysisContainer"%>
<%@page import="java.util.Set"%>
<%@page import="java.util.Iterator"%>... | 52,805 |
https://github.com/mkrogemann/droidgol/blob/master/tests/src/org/rubyspa/droidgol/GameTest.java | Github Open Source | Open Source | MIT | 2,016 | droidgol | mkrogemann | Java | Code | 229 | 976 | package org.rubyspa.droidgol;
import android.util.Pair;
import junit.framework.TestCase;
import java.util.HashMap;
import java.util.Map;
public class GameTest extends TestCase {
public void testSetupGame() {
Game game = new Game(15, 12);
Pair<Integer, Integer> dimensions = Pair.create(15, 12);
... | 38,533 |
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/annotated/pos/P206/P206503.conll | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,022 | mtaac_cdli_ur3_corpus | cdli-gh | null | Spoken | 101 | 468 | #new_text=P206503
# ID FORM SEGM XPOSTAG HEAD DEPREL MISC
o.1.1 1(disz) 1(disz)[one] NU
o.1.2 udu udu[sheep] N
o.1.3 niga niga[fattened][-ø] V
o.2.1 1(disz) 1(disz)[one] NU
o.2.2 masz2 masz[goat] N
o.3.1 e2 e[house] N
o.3.2 {d}ba-ba6 _ DN
o.4.1 nig2 _ N
o.4.2 sza3 szag[heart] N
o.4.3 temen _ N
o.5.1 1(disz) 1(disz)[one... | 34,059 |
https://github.com/2fps/Gatsby-One/blob/master/src/pages/archives.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | Gatsby-One | 2fps | JavaScript | Code | 217 | 741 | import React from 'react';
import Helmet from 'react-helmet';
import { graphql } from 'gatsby';
import Paper from '@material-ui/core/Paper';
import Header from '../components/Header/header';
import Footer from '../components/Footer/footer';
import SEO from '../components/SEO/SEO';
import { combineWithDate } from '../u... | 37,284 |
https://github.com/MeilCli/Twitter4Holo/blob/master/library/src/main/java/com/twitter/meil_mitu/twitter4holo/data/UserList.java | Github Open Source | Open Source | MIT | null | Twitter4Holo | MeilCli | Java | Code | 395 | 1,471 | package com.twitter.meil_mitu.twitter4holo.data;
import android.os.Parcel;
import android.os.Parcelable;
import com.twitter.meil_mitu.twitter4holo.exception.Twitter4HoloException;
import com.twitter.meil_mitu.twitter4holo.item.UserListItem;
import org.json.JSONObject;
import java.util.Date;
import static com.twitt... | 56,309 |
https://github.com/zhangleihan/split/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,016 | split | zhangleihan | Ignore List | Code | 7 | 32 | *
!.gitignore
!*.cpp
!Makefile
!*.h
!README.md
!LICENSE
| 19,881 |
https://github.com/corneliusio/calio/blob/master/jest.config.js | Github Open Source | Open Source | MIT | 2,020 | calio | corneliusio | JavaScript | Code | 26 | 112 | module.exports = {
collectCoverageFrom: [
'src/**/*.{js,svelte}'
],
transform: {
'^.+\\.svelte$': [ 'svelte-jester', {
preprocess: true
} ],
'^.+\\.js$': 'babel-jest'
},
moduleFileExtensions: [
'js',
'svelte'
]
};
| 1,932 |
https://github.com/saisankargochhayat/algo_quest/blob/master/Misc/ChessRook.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | algo_quest | saisankargochhayat | Java | Code | 346 | 878 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
/**
* Given a chessboard in FEN, find all possible paths of a rook
*
* More about FEN here
* https://en.wikipedia.org/wiki/Forsyth%E2%80%93Edwards_Notation
* @author amitosh
*/
public class ChessRook... | 46,515 |
https://github.com/shakirul15-311/spookfish/blob/master/cpp/inc/DlibHandler.hpp | Github Open Source | Open Source | MIT | 2,018 | spookfish | shakirul15-311 | C++ | Code | 353 | 1,255 | #ifndef DLIB_HANDLER_HPP
#define DLIB_HANDLER_HPP
/*
MIT License
Copyright (c) 2018 santhoshachar08@gmail.com
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, ... | 10,554 |
https://github.com/ship87/laravel-blog/blob/master/app/Http/Controllers/Admin/PostController.php | Github Open Source | Open Source | MIT | 2,019 | laravel-blog | ship87 | PHP | Code | 285 | 1,110 | <?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use Illuminate\Contracts\Auth\Authenticatable;
use App\Http\Controllers\Controller;
use App\Http\Requests\PostRequest;
use App\Services\PostService;
use App\Services\CategoryService;
use App\Services\TagService;
use App\Traits\Controllers\HttpP... | 34,881 |
https://github.com/aseetharam/Jasmine/blob/master/run.sh | Github Open Source | Open Source | MIT | 2,022 | Jasmine | aseetharam | Shell | Code | 43 | 133 | # Script for running Jasmine
if [ "$(uname -s)" = 'Linux' ]; then
BINDIR=$(dirname "$(readlink -f "$0" || echo "$(echo "$0" | sed -e 's,\\,/,g')")")
else
BINDIR=$(dirname "$(readlink "$0" || echo "$(echo "$0" | sed -e 's,\\,/,g')")")
fi
java -cp $BINDIR/src:$BINDIR/Iris/src Main "${@:1}"
| 24,814 |
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/profiler/convert/xplane_to_tf_data_stats.cc | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla, BSD-2-Clause | 2,023 | tensorflow | tensorflow | C++ | Code | 1,598 | 7,530 | /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 43,505 |
https://github.com/Shicheng-Guo/catalogueR/blob/master/man/LRRK2__Alasoo_2018.macrophage_IFNg.Rd | Github Open Source | Open Source | MIT | 2,021 | catalogueR | Shicheng-Guo | R | Code | 90 | 567 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{LRRK2__Alasoo_2018.macrophage_IFNg}
\alias{LRRK2__Alasoo_2018.macrophage_IFNg}
\title{eQTL Catalogue query results}
\format{
An object of class \code{data.table} (inherits from \code{data.frame}) with 2610 rows and... | 17,102 |
https://github.com/aljawary/Stolen-Cheetos/blob/master/Configuration.hpp | Github Open Source | Open Source | MIT | 2,018 | Stolen-Cheetos | aljawary | C++ | Code | 10 | 41 | #pragma once
#include <vector>
void LoadSettings(std::string szIniFile);
void SaveSettings(std::string szIniFile);
| 7,135 |
https://github.com/patcheng/jruby-rack/blob/master/examples/rails3/public/jsp/include.jsp | Github Open Source | Open Source | MIT | 2,013 | jruby-rack | patcheng | null | Spoken | 17 | 38 | Yoohoo look at me! I am an included JSP. The servlet request attribute is [<%= request.getAttribute("message") %>]
| 13,184 |
https://github.com/chrisseaton/crabstone/blob/master/lib/crabstone/arch.rb | Github Open Source | Open Source | BSD-3-Clause | 2,022 | crabstone | chrisseaton | Ruby | Code | 97 | 324 | # frozen_string_literal: true
require 'crabstone/constants'
require 'crabstone/cs_version'
# require all files under 'crabstone/arch/<cs_major_version>'
Dir.glob(File.join(__dir__, 'arch', Crabstone.cs_major_version.to_s, '*.rb')).sort.each do |f|
require f
end
module Crabstone
module Arch
module_function
... | 11,137 |
https://github.com/MoSimEngine/RefactorLizar/blob/master/core/src/main/java/edu/kit/kastel/sdq/case4lang/refactorlizar/core/LanguageParser.java | Github Open Source | Open Source | MIT | 2,021 | RefactorLizar | MoSimEngine | Java | Code | 729 | 2,517 | package edu.kit.kastel.sdq.case4lang.refactorlizar.core;
import com.google.common.collect.Iterables;
import com.google.common.flogger.FluentLogger;
import edu.kit.kastel.sdq.case4lang.refactorlizar.core.pluginparser.EmfFileParser;
import edu.kit.kastel.sdq.case4lang.refactorlizar.core.pluginparser.FeatureFile;
import ... | 7,801 |
https://github.com/JianChengFengYun/react-demos/blob/master/src/components/TestList/rem.ts | Github Open Source | Open Source | MIT | 2,017 | react-demos | JianChengFengYun | TypeScript | Code | 132 | 375 | /* (function(doc, win) {
let docEl = doc.documentElement,
resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
recalc = function() {
let clientWidth = docEl.clientWidth
if (!clientWidth) return
if (clientWidth >= 750) {
docEl... | 29,906 |
https://github.com/omzzn/react-/blob/master/src/routers.js | Github Open Source | Open Source | CC0-1.0 | null | react- | omzzn | JavaScript | Code | 78 | 216 | import {Router ,Route ,hashHistory , IndexRoute} from "react-router"
import App from './App.js';
import React from "react"
import Work from './Work.js';
import Blog from './Blog.js';
import Home from './Home.js';
import About from './About.js';
import Person from './person.js'
class Routers extends React.Component {
... | 49,764 |
https://github.com/wkgcass/Latte-lang/blob/master/latte-compiler/src/main/java/lt/compiler/syntactic/pre/Modifier.java | Github Open Source | Open Source | MIT | 2,022 | Latte-lang | wkgcass | Java | Code | 350 | 700 | /*
* The MIT License (MIT)
*
* Copyright (c) 2016 KuiGang Wang
*
* 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,... | 52,346 |
https://github.com/marufzubery/Red-List-Bot/blob/master/src/nltkproperties.py | Github Open Source | Open Source | Apache-2.0 | null | Red-List-Bot | marufzubery | Python | Code | 93 | 246 |
import nltk
import numpy as np
from nltk.stem.porter import PorterStemmer
nltk.download('punkt')
stemmer = PorterStemmer()
# splitting a string into words, punctuation and numbers
def tokenize(sentence):
return nltk.word_tokenize(sentence)
# generating the root form the words ex: universe - univers, universi... | 24,429 |
https://github.com/nomantufail/cp_towfix/blob/master/resources/views/cart/success.blade.php | Github Open Source | Open Source | MIT | null | cp_towfix | nomantufail | PHP | Code | 40 | 129 | <?php
/**
* Created by PhpStorm.
* user: nomantufail
* Date: 10/6/2016
* Time: 3:25 PM
*/
?>
@extends('app')
@section('page')
<section class="success-payment">
<h2 style="color:green">
Transaction of amount {{$amount}} Successful<br>
<span style="font-size: 14px;">Thank You for ... | 4,154 |
https://github.com/foutrelis/python-aspectlib/blob/master/src/aspectlib/utils.py | Github Open Source | Open Source | BSD-2-Clause | 2,021 | python-aspectlib | foutrelis | Python | Code | 480 | 1,655 | from __future__ import print_function
import logging
import os
import platform
import re
import sys
from collections import deque
from functools import wraps
from inspect import isclass
RegexType = type(re.compile(""))
PY3 = sys.version_info[0] == 3
PY37plus = PY3 and sys.version_info[1] >= 7
PY2 = sys.version_info[... | 31,587 |
https://github.com/PEtab-dev/petab_test_suite/blob/master/petabtests/cases/v1.0.0/sbml/0002/_conditions.tsv | Github Open Source | Open Source | BSD-3-Clause | 2,023 | petab_test_suite | PEtab-dev | TSV | Code | 7 | 25 | conditionId a0 b0
c0 0.8
c1 0.9
| 33,732 |
https://github.com/neelisneel/Arcade-App/blob/master/GameCenter/app/src/test/java/fall2018/csc2017/GameCenter/GameCenter/lobby/ScoreboardControllerTest.java | Github Open Source | Open Source | MIT | null | Arcade-App | neelisneel | Java | Code | 355 | 1,129 | package fall2018.csc2017.GameCenter.GameCenter.lobby;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import static org.junit.Assert.*;
/**
* Test Class for ScoreboardController.
*/
public class ScoreboardControllerTest {
/**
* The user accounts for te... | 38,275 |
https://github.com/JunichiIto/debug/blob/master/test/debug/debug_statement_test.rb | Github Open Source | Open Source | BSD-2-Clause | 2,021 | debug | JunichiIto | Ruby | Code | 253 | 1,093 | # frozen_string_literal: true
require_relative '../support/test_case'
module DEBUGGER__
class DebugStatementTest < TestCase
STATEMENT_PLACE_HOLDER = "__BREAK_STATEMENT__"
SUPPORTED_DEBUG_STATEMENTS = %w(binding.break binding.b debugger).freeze
def debug_code(program)
SUPPORTED_DEBUG_STATEMENTS.ea... | 7,155 |
https://github.com/AnmolSinha1201/AHK-Studio/blob/master/Remove Scintilla Window.ahk | Github Open Source | Open Source | LicenseRef-scancode-scintilla | 2,015 | AHK-Studio | AnmolSinha1201 | null | Spoken | 3 | 36 | Remove_Scintilla_Window(){
getpos(),sc:=csc(),s.delete(sc),setpos(current(3).sc)
} | 36,269 |
https://github.com/alisw/AliRoot/blob/master/PYTHIA8/pythia8243/share/Pythia8/phpdoc/FourthGenerationProcesses.php | Github Open Source | Open Source | GPL-2.0-only, GPL-1.0-or-later | 2,023 | AliRoot | alisw | PHP | Code | 1,381 | 5,677 | <html>
<head>
<title>Fourth-Generation Processes</title>
<link rel="stylesheet" type="text/css" href="pythia.css"/>
<link rel="shortcut icon" href="pythia32.gif"/>
</head>
<body>
<script language=javascript type=text/javascript>
function stopRKey(evt) {
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt... | 44,360 |
https://github.com/arinonur/CircularTimerClock-Android/blob/master/circulartimerclock/src/main/java/giliy/com/circulartimerclock/CircularTimerClock.java | Github Open Source | Open Source | MIT | null | CircularTimerClock-Android | arinonur | Java | Code | 541 | 2,251 | package giliy.com.circulartimerclock;
import android.content.Context;
import android.content.res.TypedArray;
import android.support.annotation.AttrRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.Gravity;
import android.vi... | 29,219 |
https://github.com/roshanipatel/cronos_basic/blob/master/views/project/projectOverview.php | Github Open Source | Open Source | MIT | 2,018 | cronos_basic | roshanipatel | PHP | Code | 877 | 3,599 | <?php
error_reporting(E_ALL); ini_set('display_errors', TRUE);
use yii\helpers\Html;
use yii\grid\GridView;
use app\services\ServiceFactory;
use yii\widgets\ActiveForm;
use app\models\enums\ProjectStatus;
use app\models\enums\ProjectCategories;
use yii\data\ActiveDataProvider;
use app\components\utils\PHPUtils;
?>
<d... | 15,503 |
https://github.com/Caskia/Jane/blob/master/src/Jane.FCM/PushNotifications/FCMPushNotificationService.cs | Github Open Source | Open Source | Apache-2.0 | 2,018 | Jane | Caskia | C# | Code | 249 | 783 | using Jane.PushNotifications;
using Newtonsoft.Json;
using RestSharp;
using System;
using System.Net;
using System.Threading.Tasks;
namespace Jane.FCM.PushNotifications
{
public class FCMPushNotificationService : IPushNotificationService
{
private readonly IFCMConfiguration _configuration;
pu... | 32,852 |
https://github.com/liujiamingustc/phd/blob/master/docker/optimization/pyOpt/tags/v1.2.0/pyOpt/pySLSQP/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | phd | liujiamingustc | Python | Code | 15 | 48 | #!/usr/bin/env python
try:
from pySLSQP import SLSQP
__all__ = ['SLSQP']
except:
__all__ = []
#end
| 14,687 |
https://github.com/thelostone-mc/shacker/blob/master/app/models/ShipmentLog.js | Github Open Source | Open Source | MIT | 2,017 | shacker | thelostone-mc | JavaScript | Code | 48 | 159 | const mongoose = require('mongoose');
const Schema = mongoose.Schema;
var ShipmentLogSchema = new Schema({
attackCaseId: String,
carrier: String,
url: String,
intraCross: String,
city: String,
state: String,
country: String,
zip: String,
trackingId: String,
matchedBy: String,
trackingId: String,
... | 715 |
https://github.com/MikaSoftware/inthought-react/blob/master/src/components/Register/SuccessPage.js | Github Open Source | Open Source | BSD-3-Clause | 2,019 | inthought-react | MikaSoftware | JavaScript | Code | 61 | 237 | import React from 'react'
class SuccessPage extends React.Component {
render() {
return (
<div className="container-fluid">
<div className="d-flex align-items-stretch">
<main id="main" role="main">
<div className="container">
<div cl... | 33,139 |
https://github.com/mrbenshef/SmartHomeAdapters/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,019 | SmartHomeAdapters | mrbenshef | Makefile | Code | 413 | 1,900 | #
# CHECK
#
check-docker-deps:
@which docker > /dev/null
@which docker-compose > /dev/null
check-go-deps:
@which protoc > /dev/null
@which protoc-gen-go > /dev/null
@which gometalinter > /dev/null
check-arduino-deps:
@which arduino > /dev/null
check: check-docker-deps check-go-deps check-arduino-deps
#
# BUI... | 13,618 |
https://github.com/postfinance/discovery/blob/master/pkg/discoverypb/postfinance/discovery/v1/token_api.pb.go | Github Open Source | Open Source | MIT | 2,021 | discovery | postfinance | Go | Code | 1,615 | 6,911 | // Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.15.2
// source: postfinance/discovery/v1/token_api.proto
package discoveryv1
import (
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
... | 32,338 |
https://github.com/carlendev/user-documentation/blob/master/guides/hack/11-built-in-types/34-enumerated-types-examples/BitFlags.php | Github Open Source | Open Source | BSD-3-Clause | 2,019 | user-documentation | carlendev | Hack | Code | 34 | 79 | <?hh // strict
namespace Hack\UserDocumentation\Types\Enums\Examples\BitFlags;
enum BitFlags: int as int {
F1 = 1; // value 1
F2 = BitFlags::F1 << 1; // value 2
F3 = BitFlags::F2 << 1; // value 4
}
| 7,727 |
https://github.com/hobigo/nextcloud-node-client/blob/master/src/fileSystemElement.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | nextcloud-node-client | hobigo | TypeScript | Code | 333 | 614 | import Client, { ClientError } from "./client";
/**
* The file class represents a file in nextcloud.
* It exposes file properties and content handling, commenting and tagging
*/
export default abstract class FileSystemElement {
/**
* The name of the file system element including the path
* The name i... | 35,957 |
https://github.com/fullcontact/rollbarNotifier/blob/master/build.gradle | Github Open Source | Open Source | Apache-2.0 | 2,017 | rollbarNotifier | fullcontact | Gradle | Code | 77 | 286 | apply plugin: 'java'
apply plugin: 'maven'
group = 'com.fullcontact'
version = '0.2.2'
sourceCompatibility = "1.8";
targetCompatibility = "1.8";
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile 'org.threadly:threadly:5.4'
compile 'com.eclipse... | 28,135 |
https://github.com/epicfaace/sanskrit/blob/master/dcs/data/conllu/files/Garuḍapurāṇa/Garuḍapurāṇa-0027-GarPur, 1, 28-8205.conllu | Github Open Source | Open Source | CC-BY-4.0 | 2,021 | sanskrit | epicfaace | null | Spoken | 3,547 | 11,191 | ## text: Garuḍapurāṇa
## text_id: 411
## chapter: GarPur, 1, 28
## chapter_id: 8205
# text_line: sūta uvāca
# text_line_id: 520885
# text_line_counter: 1
# text_line_subcounter: 1
1 sūta sūta _ None Case=Nom|Number=1|Gender=Masc _ _ _ _ 99099 _ _
2 uvāca vac _ None Tense=Perf|Mood=Ind|Person=3|Number=Sing _ _ _ _ 1572... | 18,769 |
https://github.com/baldor-f/Sabaki/blob/master/src/modules/fileformats/index.js | Github Open Source | Open Source | MIT | 2,022 | Sabaki | baldor-f | JavaScript | Code | 97 | 294 | import {extname} from 'path'
import i18n from '../../i18n.js'
import * as sgf from './sgf.js'
import * as ngf from './ngf.js'
import * as gib from './gib.js'
const t = i18n.context('fileformats')
let modules = {sgf, ngf, gib}
let extensions = Object.keys(modules).map(key => modules[key].meta)
let combinedExtensions =... | 8,423 |
https://github.com/qijianbo010/swan/blob/master/src/manager/framework/event/user_event.go | Github Open Source | Open Source | Apache-2.0 | 2,017 | swan | qijianbo010 | Go | Code | 29 | 69 | package event
type UserEvent struct {
Type string
Param interface{}
}
func (ue *UserEvent) GetEventType() string {
return ue.Type
}
func (ue *UserEvent) GetEvent() interface{} {
return ue.Param
}
| 30,945 |
https://github.com/Jadhielv/first-vue-app-with-graphql/blob/master/vue-graphql-demo/src/App.vue | Github Open Source | Open Source | MIT | 2,020 | first-vue-app-with-graphql | Jadhielv | Vue | Code | 327 | 1,231 | <template>
<div id="app">
<table border="1" width="100%" style="border-collapse: collapse;">
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
<th>Actions</th>
</tr>
<tr v-for="contact in contacts" :key="contact.id">
<td>{{ contact.firstName }}</... | 52,495 |
https://github.com/ja0nz/umbrella/blob/master/packages/text-format/src/ansi.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | umbrella | ja0nz | TypeScript | Code | 548 | 1,310 | import { memoize1 } from "@thi.ng/memoize/memoize1";
import type { StringFormat } from "./api.js";
import { defFormat } from "./format.js";
const ANSI_RESET = `\x1b[0m`;
const ANSI_FLAGS = ["", "1", "2", "1;2", "4", "1;4", "2;4", "1;2;4"];
/**
* String format preset, translating canvas format info to ANSI 4bit
* c... | 1,635 |
https://github.com/ystime25/leetube/blob/master/src/routers/rootRouter.js | Github Open Source | Open Source | MIT | 2,021 | leetube | ystime25 | JavaScript | Code | 38 | 154 | import express from "express";
import { getSignUp,postSignUp, getLogin, postLogin } from "../controllers/userController";
import { home, search } from "../controllers/videoController";
import { visitorsAccessMiddleware } from "../middlewares";
const rootRouter = express.Router();
rootRouter.get("/", home);
rootRouter... | 7,749 |
https://github.com/alavieille/open-orchestra-base-api-bundle/blob/master/BaseApi/Facade/Traits/TimestampableFacade.php | Github Open Source | Open Source | Apache-2.0 | 2,016 | open-orchestra-base-api-bundle | alavieille | PHP | Code | 26 | 117 | <?php
namespace OpenOrchestra\BaseApi\Facade\Traits;
/**
* Trait TimestampableFacade
*/
trait TimestampableFacade
{
/**
* @Serializer\Type("DateTime<'d/m/Y H:i:s'>")
*/
public $createdAt;
/**
* @Serializer\Type("DateTime<'d/m/Y H:i:s'>")
*/
public $updatedAt;
}
| 24,830 |
https://github.com/prorevizor/noc/blob/master/wf/migrations/0003_sensor_add_up_down_event.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | noc | prorevizor | Python | Code | 71 | 227 | # ----------------------------------------------------------------------
# Sensor Add event for Fixed and Non-operational signals
# ----------------------------------------------------------------------
# Copyright (C) 2007-2021 The NOC Project
# See LICENSE for details
# -----------------------------------------------... | 54,529 |
https://github.com/atao60/meteor-angular4-scss/blob/master/client/imports/components/about/about.routing.js | Github Open Source | Open Source | MIT | null | meteor-angular4-scss | atao60 | JavaScript | Code | 67 | 155 | import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { AboutComponent } from './about.component';
const routes = [
{ path: '', component: AboutComponent },
];
export class AboutRouting {
static get annotations() {
return [
new NgModule({
... | 47,910 |
https://github.com/pxladin/replay-reader/blob/master/export/propertyExport/handleValets.js | Github Open Source | Open Source | MIT | 2,022 | replay-reader | pxladin | JavaScript | Code | 38 | 127 | const handleValets = ({ chIndex, data, states, result }) => {
if (!states.valets[chIndex]) {
states.valets[chIndex] = data;
result.mapData.valets.push(data);
return;
}
Object.entries(data).forEach(([key, value]) => {
if (value !== null) {
states.valets[chIndex][key] = value;
}
});
}
... | 36,917 |
https://github.com/mshockwave/nacro/blob/master/NacroPragmaHandler.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | nacro | mshockwave | C++ | Code | 143 | 576 | #include "clang/Basic/TokenKinds.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Lex/PPCallbacks.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/raw_ostream.h"
#include "NacroParsers.h"
#include "NacroExpanders.h"
#include "NacroVerifier.h"
#include <memory>
using namespace clang;
namespace {
str... | 40,445 |
https://github.com/jasony62/xinxintong/blob/master/models/matter/tmplmsg.php | Github Open Source | Open Source | MIT | 2,023 | xinxintong | jasony62 | PHP | Code | 174 | 718 | <?php
namespace matter;
/**
* 模板消息定义
*/
class tmplmsg_model extends \TMS_MODEL
{
/**
* 获得模板消息定义
*/
public function byId($id, $options = array())
{
$fields = isset($options['fields']) ? $options['fields'] : '*';
$cascaded = isset($options['cascaded']) ? $options['cascaded'] : 'N';
/**/
$q... | 2,988 |
https://github.com/skaslev/net-contour/blob/master/vendor/knative.dev/serving/pkg/reconciler/nscert/controller.go | Github Open Source | Open Source | Apache-2.0 | null | net-contour | skaslev | Go | Code | 216 | 932 | /*
Copyright 2019 The Knative 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 applicable law or agreed to in writing, softwar... | 11,110 |
https://github.com/zhmu/ananas/blob/master/external/gcc-12.1.0/gcc/testsuite/c-c++-common/dump-ada-spec-10.c | Github Open Source | Open Source | FSFAP, LGPL-2.1-only, LGPL-3.0-only, GPL-3.0-only, GPL-2.0-only, GCC-exception-3.1, LGPL-2.0-or-later, Zlib, LicenseRef-scancode-public-domain | 2,022 | ananas | zhmu | C | Code | 49 | 121 | /* { dg-do compile } */
/* { dg-options "-fdump-ada-spec" } */
typedef struct T *My_Ptr1;
int foo1 (My_Ptr1);
typedef struct T *My_Ptr2;
int foo2 (My_Ptr2);
struct T { int i; };
/* { dg-final { scan-ada-spec-not "System.Address" } } */
/* { dg-final { cleanup-ada-spec } } */
| 8,354 |
https://github.com/redstrike/coffee-machine/blob/master/Problems/Odd or even/src/Task.kt | Github Open Source | Open Source | MIT | null | coffee-machine | redstrike | Kotlin | Code | 27 | 72 | import java.util.Scanner
fun main() {
val scanner = Scanner(System.`in`)
val num = scanner.nextInt()
if (num % 2 == 0) {
print("EVEN")
} else {
print("ODD")
}
} | 6,622 |
https://github.com/nicholaslee119/niUI/blob/master/niUI_mainfram/src/com/syndrome/sanguocard/mainfram/ui/UILoading.as | Github Open Source | Open Source | MIT | 2,021 | niUI | nicholaslee119 | null | Spoken | 259 | 1,501 | package com.syndrome.sanguocard.mainfram.ui
{
import com.electrotank.electroserver5.api.EsObject;
import com.electrotank.electroserver5.api.UserVariable;
import com.load.resmanager.ResManager;
import com.load.xmlmanager.XMLManager;
import com.syndrome.client.parameters.Constant;
import com.syndrome.client.paramet... | 3,248 |
https://github.com/leodeg/CSharp.Gallery/blob/master/Gallery/Gallery.Data/Repositories/IRepository.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | CSharp.Gallery | leodeg | C# | Code | 54 | 185 | using Gallery.Data.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
namespace Gallery.Data.Repositories
{
public interface IRepository<TEntity> : IDisposable where TEntity : class
{
TEntity Get(int id);
IEnumerable<TEntity> G... | 53,334 |
https://github.com/nimakarimipour/checker-framework/blob/master/checker/tests/nullness/PreconditionFieldNotInStore.java | Github Open Source | Open Source | MIT | null | checker-framework | nimakarimipour | Java | Code | 86 | 266 | // This test checks that a precondition can use the declared type
// of a field when it isn't in the store. Based on a false positive
// encountered in BCELUtil while testing WPI.
import java.io.PrintStream;
class PreconditionFieldNotInStore {
private @org.checkerframework.checker.nullness.qual.MonotonicNonNull St... | 7,026 |
https://github.com/zhao331863874/oschina-android/blob/master/app/src/main/java/net/oschina/app/improve/tweet/share/TweetShareActivity.java | Github Open Source | Open Source | MIT | 2,019 | oschina-android | zhao331863874 | Java | Code | 454 | 1,949 | package net.oschina.app.improve.tweet.share;
import android.Manifest;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.provider.Settings;
import android.support.annotation.NonNull;
import android.support.v7.widget.LinearLayoutManager;
import android.... | 43,687 |
https://github.com/easyopsapis/easyops-api-python/blob/master/staff_manage_sdk/model/cmdb/import_status_pb2.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | easyops-api-python | easyopsapis | Python | Code | 185 | 1,181 | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: import_status.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protob... | 29,712 |
https://github.com/jona42-ui/hebrootsMobileClient/blob/master/src/components/atoms/shapes/index.js | Github Open Source | Open Source | MIT | 2,021 | hebrootsMobileClient | jona42-ui | JavaScript | Code | 40 | 74 | export { default as Card } from './Card'
export { default as Underline } from './Underline'
export { default as DashedCircle } from './DashedCircle'
export { default as LivesIndicator } from './LivesIndicator'
export { default as MatchingCard } from './MatchingCard' | 1,748 |
https://github.com/szymon-owczarzak/cogboard/blob/master/cogboard-app/src/main/kotlin/com/cognifide/cogboard/config/model/Endpoint.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | cogboard | szymon-owczarzak | Kotlin | Code | 21 | 62 | package com.cognifide.cogboard.config.model
data class Endpoint(
val id: String,
val label: String,
val url: String,
val publicUrl: String?,
val credentials: String?
)
| 43,117 |
https://github.com/mtergel/flare/blob/master/src/components/Toc/MobileToc.tsx | Github Open Source | Open Source | MIT | 2,022 | flare | mtergel | TypeScript | Code | 166 | 611 | import { TocProps } from "@/utils/types";
import { FiArrowUp } from "@react-icons/all-files/fi/FiArrowUp";
import { FiList } from "@react-icons/all-files/fi/FiList";
import clsx from "clsx";
import useDisclosure from "hooks/useDisclosure";
import Link from "next/link";
import Button from "../Button/Button";
import {
... | 24,812 |
https://github.com/i-novus-llc/n2o-framework/blob/master/backend/n2o/n2o-api/src/main/java/net/n2oapp/framework/api/metadata/meta/control/InputSelectTree.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | n2o-framework | i-novus-llc | Java | Code | 78 | 284 | package net.n2oapp.framework.api.metadata.meta.control;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import net.n2oapp.framework.api.metadata.control.list.CheckingStrategy;
/**
* Клиентская реализация компонента ввода с выбором в выпадающем списке в виде дерева
*... | 18,513 |
https://github.com/tboonchuaysream/LED-Complexity/blob/master/LED_Complexity.ino | Github Open Source | Open Source | MIT | null | LED-Complexity | tboonchuaysream | null | Spoken | 134 | 289 | /*
author @Tommy Boonchuaysream
This program allows a user to switch on the light by pressing the switch.
However, if it is already bright, the light will not turn on. It is done to conserve energy.
*/
int ledExternal = 12;
int ledInternal = 13;
void setup() {
// initialize serial communication at 9600 bits per sec... | 31,251 |
https://github.com/GabrSobral/TCC_API_Typescript/blob/master/src/services/User/ListUserService.ts | Github Open Source | Open Source | MIT | 2,021 | TCC_API_Typescript | GabrSobral | TypeScript | Code | 27 | 74 | import handleGetRepositories from "../../utils/handleGetRepositories";
class ListUserService{
async execute(){
const { userRepository } = handleGetRepositories()
const users = await userRepository.find()
return users
}
}
export default new ListUserService() | 31,371 |
https://github.com/vladgemtyp/magento-seo/blob/master/app/code/community/Popov/Seo/sql/popov_seo_setup/upgrade-0.1.9-0.1.10.php | Github Open Source | Open Source | MIT | null | magento-seo | vladgemtyp | PHP | Code | 76 | 285 | <?php
/** @var Mage_Core_Model_Resource_Setup $installer */
$installer = $this;
$tableRule = $installer->getTable('popov_seo/rule');
$installer->startSetup();
$conn = $installer->getConnection();
$conn->addColumn($tableRule, 'name',
array(
'type' => Varien_Db_Ddl_Table::TYPE_TEXT,
'length' ... | 13,326 |
https://github.com/yesArjan/Playing-Go-with-RNNs/blob/master/trainer.py | Github Open Source | Open Source | Apache-2.0 | null | Playing-Go-with-RNNs | yesArjan | Python | Code | 1,104 | 3,943 | # sources:
# https://github.com/cs230-stanford/cs230-code-examples/tree/master/tensorflow/nlp/model/training.py
# https://github.com/cs230-stanford/cs230-code-examples/blob/master/tensorflow/nlp/train.py
#
# https://github.com/cs230-stanford/cs230-code-examples/blob/master/tensorflow/nlp/model/evaluation.py
# https://g... | 35,474 |
https://github.com/DrChainsaw/AmpControl/blob/master/src/test/java/ampcontrol/amp/PrintClassificationListenerTest.java | Github Open Source | Open Source | MIT | 2,020 | AmpControl | DrChainsaw | Java | Code | 203 | 774 | package ampcontrol.amp;
import com.beust.jcommander.JCommander;
import org.junit.Test;
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.factory.Nd4j;
import java.util.Arrays;
import java.util.List;
import java.util.function.Consumer;
import java.util.stream.Collectors;
import java.util.stream.IntSt... | 24,512 |
https://github.com/aftabkajal/hiring-tracker/blob/master/src/HSTrackerService/Services/CircularService.cs | Github Open Source | Open Source | MIT | 2,018 | hiring-tracker | aftabkajal | C# | Code | 111 | 429 | using HSTrackerService.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HSTrackerModel.Models;
using HSTrackerData.Infrastructure;
using HSTrackerData.Repositories.Interface;
namespace HSTrackerService.Services
{
public class Circ... | 14,960 |
https://github.com/fillup/typeform-sdk-php/blob/master/src/Form.php | Github Open Source | Open Source | MIT | 2,018 | typeform-sdk-php | fillup | PHP | Code | 130 | 363 | <?php
namespace Typeform;
use Typeform\BaseClient;
/**
* Typeform API client implemented with Guzzle.
*
* @method array create(array $config = [])
* @method array getInternal(array $config = [])
* @method array createWebhook(array $config = [])
*/
class Form extends BaseClient
{
/**
* @param array $con... | 28,612 |
https://github.com/clickbeast/auth-with-jwt-tailwind-and-recoil/blob/master/src/pages/Logout.js | Github Open Source | Open Source | MIT | 2,020 | auth-with-jwt-tailwind-and-recoil | clickbeast | JavaScript | Code | 89 | 273 | import React, { useEffect } from 'react'
import { Redirect } from 'react-router-dom';
import { logout } from '../authentication/utils';
import { toast } from 'react-toastify';
// State imports
import { useSetRecoilState } from 'recoil';
import { isLoggedIn, userState } from '../authentication/state'
export default f... | 53,190 |
https://github.com/dorkbot/Dorkbots-Iso/blob/master/srclib/dorkbots/dorkbots_iso/IsoMaker.as | Github Open Source | Open Source | MIT | 2,016 | Dorkbots-Iso | dorkbot | null | Spoken | 2,571 | 8,860 | /*
TO DO
---
Create a map class that can be toggled on and off - clean up
it only needs heroCartPos
has its own createLevel, us only walkable level data
---
Block trigers by putting the room numbers into an array.
this class double checks this array before swapping rooms.
For progression, locking and un-locking roo... | 45,437 |
https://github.com/oSoc18/Octotrails/blob/master/src/web-app/app/my-octotrails-ng6-carousel/components/carousel/index.ts | Github Open Source | Open Source | MIT | 2,018 | Octotrails | oSoc18 | TypeScript | Code | 30 | 90 | import { CarouselComponent } from './carousel.component';
import { CarouselArrowsComponent } from './arrows';
import { PinsComponent} from './pins';
import { SlideComponent } from './slide';
export {
SlideComponent,
CarouselComponent,
CarouselArrowsComponent,
PinsComponent
};
| 16,526 |
https://github.com/quxiuchengdev/jeewl/blob/master/src/main/java/com/qxcwl/jeewl/modules/gen/entity/GenTable.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | jeewl | quxiuchengdev | Java | Code | 197 | 664 | package com.qxcwl.jeewl.modules.gen.entity;
import java.util.ArrayList;
import java.util.List;
import com.qxcwl.jeewl.common.persistence.DataEntity;
/**
* 代码生成器-业务表
* @ClassName GenTable
* @Description
* @author 曲修成
* @date 2016年8月4日 下午3:12:47
*/
public class GenTable extends DataEntity<GenTable> {
private ... | 25,837 |
https://github.com/pietro909/bs-webapi-incubator/blob/master/lib/js/src/Webapi/Webapi__Dom/Webapi__Dom__HtmlDocument.js | Github Open Source | Open Source | MIT | null | bs-webapi-incubator | pietro909 | JavaScript | Code | 251 | 860 | 'use strict';
var Js_null = require("bs-platform/lib/js/js_null.js");
var Webapi__Dom__Node = require("./Webapi__Dom__Node.js");
var Webapi__Dom__Types = require("./Webapi__Dom__Types.js");
var Webapi__Dom__Document = require("./Webapi__Dom__Document.js");
var Webapi__Dom__EventTarget = require("./Webapi__Dom__EventTa... | 56,020 |
https://github.com/kostola/drools/blob/master/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/SubnetworkTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | drools | kostola | Java | Code | 1,418 | 4,673 | /*
* Copyright 2018 Red Hat, Inc. and/or its affiliates.
*
* 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... | 50,478 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.