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/duchuy294/tms-admin/blob/master/src/app/pages/order-management/components/order-map/order-map.component.less | Github Open Source | Open Source | MIT | null | tms-admin | duchuy294 | Less | Code | 45 | 156 | .detail-maps {
width: 100%;
agm-map {
width: 100%;
}
.img-info-window {
width: 100%;
height: 100%;
}
.user-info {
text-align: center;
width: 150px;
.content-info-window {
width: 145px;
margin: 2px 0 0px 0px;
}
... | 55,803 |
https://github.com/dreamsilver/HotUpdateSolution/blob/master/Assets/Editor/XLua/GenConfig.cs | Github Open Source | Open Source | MIT | 2,022 | HotUpdateSolution | dreamsilver | C# | Code | 852 | 5,244 | /*
* Tencent is pleased to support the open source community by making xLua available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License... | 50,399 |
https://github.com/Kerbodine/pp-react-app/blob/master/src/components/settings/NotificationSettings.js | Github Open Source | Open Source | MIT | 2,021 | pp-react-app | Kerbodine | JavaScript | Code | 99 | 416 | import React from "react";
import { SettingsConsumer } from "./SettingsContext";
import SettingsLine from "./SettingsLine";
export default function NotificationSettings() {
return (
<SettingsConsumer>
{(settings) => {
return (
<div>
<h1 className="text-4xl font-bold mb-4">Noti... | 16,710 |
https://github.com/iltempe/osmosi/blob/master/sumo/src/gui/GUIApplicationWindow.cpp | Github Open Source | Open Source | MIT | null | osmosi | iltempe | C++ | Code | 4,459 | 21,551 | /****************************************************************************/
/// @file GUIApplicationWindow.cpp
/// @author Daniel Krajzewicz
/// @author Jakob Erdmann
/// @author Michael Behrisch
/// @author Andreas Gaubatz
/// @date Sept 2002
/// @version $Id$
///
// The main window of the SUMO-gui.
/****... | 55,873 |
https://github.com/appsflare/ludicrum-webapp/blob/master/app.js | Github Open Source | Open Source | MIT | 2,015 | ludicrum-webapp | appsflare | JavaScript | Code | 13 | 39 | /**
* Created by srinath on 17/9/15.
*/
require("babel/register");
var app = require('./app-starter'); | 50,185 |
https://github.com/openvlan/test/blob/master/app/controllers/resources/base_controller.rb | Github Open Source | Open Source | MIT | null | test | openvlan | Ruby | Code | 122 | 451 | # handles authorization and set current network of any request
require 'api_utils'
module Resources
class BaseController < ApiUtils::BaseController
include ActionController::HttpAuthentication::Token::ControllerMethods
TIKO_SERVICES_TOKENS = {
user: Rails.application.secrets.user_token,
marketpla... | 17,119 |
https://github.com/Leaomato/hibernate-demos/blob/master/openshift/message-board/message-service/src/main/java/org/hibernate/demo/message/post/core/repo/TagRepo.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | hibernate-demos | Leaomato | Java | Code | 33 | 133 | package org.hibernate.demo.message.post.core.repo;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import org.hibernate.demo.message.post.core.entity.Tag;
@ApplicationScoped
public class TagRepo {
@Inject
private EntityManager em;
public Tag... | 55,353 |
https://github.com/MathiasHusum/eform-angular-banedanmarkla-plugin/blob/master/eform-client/src/app/plugins/modules/bane-danmark-la-pn/components/reports/index.ts | Github Open Source | Open Source | MIT | null | eform-angular-banedanmarkla-plugin | MathiasHusum | TypeScript | Code | 4 | 22 | export * from './report-preview-table/report-preview-table.component';
| 42,056 |
https://github.com/Tarik02/seatsbot/blob/master/locales/en.ts | Github Open Source | Open Source | MIT | null | seatsbot | Tarik02 | TypeScript | Code | 180 | 301 | import { Locale } from 'locale';
const locale: Locale = {
'Something went wrong': ({ text }) => `:( ` + (text || 'Something went wrong...'),
'Cancel selection': 'Cancel selection',
'Count of the variants should be between :low and :high.': ({ low, high }) => (
`Count of the variants should be between ${low} and $... | 9,086 |
https://github.com/WeilerWebServices/PostgreSQL/blob/master/pgAdmin/pgadmin4/web/pgadmin/browser/server_groups/servers/databases/schemas/templates/schemas/ppas/9.2_plus/sql/delete.sql | Github Open Source | Open Source | PostgreSQL | 2,021 | PostgreSQL | WeilerWebServices | SQL | Code | 9 | 30 | DROP SCHEMA {{ conn|qtIdent(name) }} {% if cascade %}CASCADE{%endif%};
| 54,444 |
https://github.com/fun4xnm/way2expert/blob/master/problem/add_two_numbers_test.cc | Github Open Source | Open Source | Apache-2.0 | null | way2expert | fun4xnm | C++ | Code | 288 | 848 | #include "problem/add_two_numbers.h"
#include "gtest/gtest.h"
namespace problem {
class AddTwoNumbersTest : public ::testing::Test {
protected:
// You can remove any or all of the following functions if their bodies would
// be empty.
AddTwoNumbersTest() {
// You can do set-up work for each test here.
... | 56,849 |
https://github.com/lzungri/laritos-apps/blob/master/preemption/main.c | Github Open Source | Open Source | MIT | 2,020 | laritos-apps | lzungri | C | Code | 52 | 177 | #include <stdint.h>
#include <stdio.h>
#include <printf.h>
#include <stdlib.h>
#include <time.h>
int main(void) {
time_t cur, prev, deadline;
time(&prev);
deadline = prev;
deadline.secs += 10 + 10 * getpid();
do {
time(&cur);
if (cur.secs >= prev.secs) {
printf("time=%lu... | 7,723 |
https://github.com/rexixuel/builtbyreuel/blob/master/resources/views/layouts/projects.blade.php | Github Open Source | Open Source | MIT | null | builtbyreuel | rexixuel | PHP | Code | 73 | 392 | <div class="card">
<div class="card-header text-right">
<h6> @yield('projectName') <i class="fa fa-external-link" aria-hidden="true"></i> </h6>
</div>
<!-- <div class="project-thumbnail"> -->
<div id="{{$projectName}}" class... | 54,644 |
https://github.com/haewons-tanzu/spring-socks-kr/blob/master/order-api/src/main/resources/db/migration/V1__create_initial_tables.sql | Github Open Source | Open Source | Apache-2.0 | 2,020 | spring-socks-kr | haewons-tanzu | SQL | Code | 151 | 495 | CREATE TABLE IF NOT EXISTS `order`
(
order_id VARCHAR(40) NOT NULL,
customer_id VARCHAR(40) NOT NULL,
customer_first_name VARCHAR(64) NOT NULL,
customer_last_name VARCHAR(64) NOT NULL,
customer_username VARCHAR(64) NOT NULL,
address_number ... | 31,738 |
https://github.com/Vuzi/raspi-sensors/blob/master/include/wrapper_sensor.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | raspi-sensors | Vuzi | C++ | Code | 152 | 491 | /**
* @file wrapper_sensor.h
* @brief Wrapper class for using sensors and scheduler from nodejs plugin
* @author Vuzi
* @version 0.2
*/
#ifndef SENSOR_WRAPPER_H
#define SENSOR_WRAPPER_H
#include <node.h>
#include <node_object_wrap.h>
#include "format.h"
#include "sensor.h"
#include "scheduler.h"
#include "sens... | 8,547 |
https://github.com/ackoDotDev/address_book/blob/master/resources/js/React/Hooks/Auth.js | Github Open Source | Open Source | MIT | 2,021 | address_book | ackoDotDev | JavaScript | Code | 198 | 587 | import { useState, useContext } from 'react';
import { useHistory } from 'react-router-dom';
import axios from 'axios';
import { UserContext } from '../Contexts/UserContext';
export default function Auth() {
let history = useHistory();
const { setUser } = useContext(UserContext);
const [error, setError] = us... | 37,455 |
https://github.com/onap/dcae-operation-utils/blob/master/operation-utils/src/main/java/org/openecomp/logger/EcompLogger.java | Github Open Source | Open Source | Apache-2.0 | null | dcae-operation-utils | onap | Java | Code | 1,895 | 6,770 |
/*-
* ============LICENSE_START==========================================
* OPENECOMP - DCAE
* ===================================================================
* Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
* ===================================================================
* Licensed... | 13,234 |
https://github.com/RhitikSarmah/EventMaharaj/blob/master/resources/views/portfolio.blade.php | Github Open Source | Open Source | MIT | null | EventMaharaj | RhitikSarmah | PHP | Code | 66 | 455 | <!DOCTYPE html>
<html>
<link href="https://fonts.googleapis.com/css?family=Crimson+Text&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Cinzel&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Dancing+Script&display=swap" rel="stylesheet">
<meta name... | 31,130 |
https://github.com/LavenderLocust/LavenderLocust.github.io/blob/master/web/src/App.jsx | Github Open Source | Open Source | MIT | null | LavenderLocust.github.io | LavenderLocust | null | Spoken | 733 | 2,606 | import React, { useState, useEffect, useCallback, useReducer } from "react";
import { useMediaQuery } from "react-responsive";
import { Disclosure } from "@headlessui/react";
import { MenuIcon, XIcon, SunIcon, MoonIcon } from "@heroicons/react/outline";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
... | 42,337 |
https://github.com/dadoonet/elasticsearch/blob/master/x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/index/query/ShapeQueryBuilderTests.java | Github Open Source | Open Source | Elastic-2.0, LicenseRef-scancode-elastic-license-2018, Apache-2.0, LicenseRef-scancode-other-permissive | 2,020 | elasticsearch | dadoonet | Java | Code | 830 | 3,008 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.spatial.index.query;
import org.apache.lucene... | 6,649 |
https://github.com/cristiancampo98/laravel-api-sanctum/blob/master/app/Http/Controllers/Api/V1/UserController.php | Github Open Source | Open Source | MIT | null | laravel-api-sanctum | cristiancampo98 | PHP | Code | 334 | 1,235 | <?php
namespace App\Http\Controllers\Api\V1;
use App\Http\Controllers\Api\V1\ResponseController;
use App\Http\Requests\StoreUserRequest;
use App\Http\Requests\UpdateUserRequest;
use App\Http\Requests\ValidateUserRequest;
use App\Http\Resources\UserResource;
use App\Models\Trash;
use App\Models\User;
use Illuminate\H... | 40,157 |
https://github.com/xonoer/tssc/blob/master/ssc/panell/panell.ado | Github Open Source | Open Source | MIT | 2,022 | tssc | xonoer | null | Spoken | 956 | 3,165 | *! v.1.0, 21oct2016 Jan Helmdag
/*
Abstract: panell displays individual and overall panel length of a given set of variables
of a longitudinal/panel dataset. The output shows how many observations are non-missing
for one variable or a certain combination of multiple variables
*/
program panell
version 12.0
syntax ... | 6,143 |
https://github.com/elastisys/scale.cloudadapters/blob/master/google/compute/src/test/java/com/elastisys/scale/cloudpool/google/compute/driver/ConfigTestUtils.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | scale.cloudadapters | elastisys | Java | Code | 150 | 579 | package com.elastisys.scale.cloudpool.google.compute.driver;
import com.elastisys.scale.cloudpool.commons.basepool.driver.DriverConfig;
import com.elastisys.scale.cloudpool.google.commons.api.CloudApiSettings;
import com.elastisys.scale.cloudpool.google.compute.driver.config.ProvisioningTemplate;
import com.elastisys.... | 19,459 |
https://github.com/smeirsha/HockeySDK-tvOS/blob/master/Classes/BITAlertController.h | Github Open Source | Open Source | Apache-2.0 | 2,019 | HockeySDK-tvOS | smeirsha | C | Code | 55 | 258 | #import <UIKit/UIAlertController.h>
@interface BITAlertAction : UIAlertAction
+ (instancetype)defaultActionWithTitle:(NSString *)title handler:(void (^)(UIAlertAction *action))handler;
+ (instancetype)cancelActionWithTitle:(NSString *)title handler:(void (^)(UIAlertAction *action))handler;
+ (instancetype)destructive... | 19,846 |
https://github.com/JotasCR/sistemaInmobiliaria/blob/master/app/Http/Controllers/ClienteController.php | Github Open Source | Open Source | MIT | null | sistemaInmobiliaria | JotasCR | PHP | Code | 114 | 900 | <?php
namespace sistemaPractica\Http\Controllers;
use Illuminate\Http\Request;
use sistemaPractica\Http\Requests;
use sistemaPractica\Cliente;
use Illuminate\Support\FAcades\Redirect;
use sistemaPractica\Http\Requests\ClienteFormRequest;
use DB;
class ClienteController extends Controller
{
public function __co... | 42,184 |
https://github.com/Tuscann/Programming-Fundamentals-1/blob/master/01.Short Fundamentals/32.STRINGS AND REGULAR EXPRESSIONS - MORE EXERCISES/03.00 Karate Stris/Program.cs | Github Open Source | Open Source | MIT | 2,021 | Programming-Fundamentals-1 | Tuscann | C# | Code | 60 | 169 | using System;
class Program
{
static void Main() // 100/100
{
string inputString = Console.ReadLine();
string outputString = string.Empty;
int punchStrength = 0;
for (int i = 0; i < inputString.Length; i++)
{
if (inputString[i] == '>')
{
... | 2,865 |
https://github.com/siconos/siconos/blob/master/numerics/src/FrictionContact/gfc3d_compute_error.h | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | siconos | siconos | C | Code | 302 | 663 | /* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2022 INRIA.
*
* 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
*
*... | 40,031 |
https://github.com/cesarcharaco/InvLicancabur/blob/master/app/Http/Controllers/InsumosController.php | Github Open Source | Open Source | MIT | 2,020 | InvLicancabur | cesarcharaco | PHP | Code | 391 | 1,840 | <?php
namespace App\Http\Controllers;
use App\Insumos;
use Illuminate\Http\Request;
use App\Http\Requests\InsumosRequest;
use App\Http\Requests\InsumosUpdateRequest;
use App\Gerencias;
class InsumosController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http... | 8,944 |
https://github.com/Radiation-Games/LEAK-Engine/blob/master/Leak/deprecated/engine/Exception.h | Github Open Source | Open Source | Apache-2.0 | null | LEAK-Engine | Radiation-Games | C | Code | 119 | 280 | #include <iostream>
#include <exception>
#include <stdexcept>
#include <sstream>
#include <string>
#ifndef __EXCEPTION__
#define __EXCEPTION__
using namespace std;
namespace seu
{
class Exception: public exception
{
public:
/**
* The constructor of Exception
*
* @param msg The message the Exception i... | 31,013 |
https://github.com/netWERKER-Mediahaus/contwise-php/blob/master/src/Contwise/Models/Protocol.php | Github Open Source | Open Source | MIT | 2,023 | contwise-php | netWERKER-Mediahaus | PHP | Code | 38 | 121 | <?php
namespace Contwise\Models;
use Contwise\Contwise;
class Protocol extends AbstractModel
{
public function __construct(array $data)
{
parent::__construct($data);
}
public static function upload(array $data, int $memberGroupId): self
{
$endpoint = Contwise::getProtocolResource... | 53,362 |
https://github.com/kirmani/doggo/blob/master/odrive/tools/odrive/tests.py | Github Open Source | Open Source | MIT | null | doggo | kirmani | Python | Code | 2,939 | 11,890 |
import subprocess
import shlex
import math
import time
import sys
import threading
import fibre
import odrive
from odrive.enums import *
import odrive.utils
import numpy as np
import functools
print = functools.partial(print, flush=True)
import abc
ABC = abc.ABC
class TestFailed(Exception):
def __init__(self, m... | 54,575 |
https://github.com/ashish98054/freejsonapi/blob/master/app/Domain/Posts/Actions/DeletePost.php | Github Open Source | Open Source | MIT | null | freejsonapi | ashish98054 | PHP | Code | 19 | 62 | <?php
namespace App\Domain\Posts\Actions;
use App\Domain\Posts\Post;
final class DeletePost
{
public function execute(Post $post): bool
{
return $post->delete();
}
} | 6,425 |
https://github.com/polishchukNV/Puzzle-Pirate/blob/master/Assets/Script/EnemyAI/DotEnemy.cs | Github Open Source | Open Source | BSD-2-Clause | null | Puzzle-Pirate | polishchukNV | C# | Code | 123 | 434 | using System;
using UnityEngine;
public class DotEnemy : Enemy
{
[SerializeField] private float speed;
[SerializeField] private bool OnRight;
[SerializeField] private Transform[] Point = new Transform[2];
[SerializeField] private AudioClip stepSound;
private Rigidbody2D rigidbody;
private... | 22,771 |
https://github.com/wimel/JoinColony.github.io/blob/master/src/modules/pages/components/Website/AboutMetaColony/Team/Team.jsx | Github Open Source | Open Source | MIT | null | JoinColony.github.io | wimel | null | Spoken | 221 | 761 | /* @flow */
import React from 'react';
import { defineMessages, FormattedMessage } from 'react-intl';
import { withPrefix } from 'gatsby';
import Button from '~core/Button';
import Heading from '~core/Heading';
import Image from '~core/Image';
import Paragraph from '~core/Paragraph';
import { COLONY_APP_BETA_COLONY }... | 41,871 |
https://github.com/shanemadden/morebobs/blob/master/prototypes/TeslaTurret/TeslaTurret_FF.lua | Github Open Source | Open Source | MIT | null | morebobs | shanemadden | Lua | Code | 67 | 251 | local teslaIngredients = {}
local function ing(standard, c1, fallback, c2)
if (data.raw["recipe"][standard] ~= nil or data.raw["recipe"]["bob-"..standard] ~= nil) then
teslaIngredients[standard] = c1
else
teslaIngredients[fallback] = (teslaIngredients[fallback] or 0) + c2
end
end
ing("processing-unit", 5)
ing(... | 5,756 |
https://github.com/AnrDaemon/wackowiki/blob/master/wacko/formatter/highlight/css.php | Github Open Source | Open Source | BSD-3-Clause | 2,022 | wackowiki | AnrDaemon | PHP | Code | 436 | 1,962 | <?php
/**
* Highlight CSS Code
*
* @author Davey Shafik <davey@php.net>
* @copyright Copyright 2003 Davey Shafik and Synaptic Media. All Rights Reserved.
*/
$options['color']['tags'] = 'red';
$options['color']['attributes'] = '#800000';
$options['color']['other'] = '#A6A6A6';
$options['color']['comment'] ... | 37,922 |
https://github.com/kufu/smarthr-ui/blob/master/src/components/TextLink/TextLink.tsx | Github Open Source | Open Source | MIT | 2,023 | smarthr-ui | kufu | TSX | Code | 260 | 784 | import React, { AnchorHTMLAttributes, ReactNode, forwardRef, useMemo } from 'react'
import styled, { css } from 'styled-components'
import { Theme, useTheme } from '../../hooks/useTheme'
import { FaExternalLinkAltIcon } from '../Icon'
type ElementProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, keyof Props>
type... | 28,175 |
https://github.com/zhao750456695/companyweb-backend/blob/master/src/main/java/io/renren/modules/generator/service/GoodsCategoryService.java | Github Open Source | Open Source | Apache-2.0 | null | companyweb-backend | zhao750456695 | Java | Code | 43 | 201 | package io.renren.modules.generator.service;
import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.generator.entity.GoodsCategoryEntity;
import java.util.List;
import java.util.Map;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
... | 9,486 |
https://github.com/fs-labs/activerecord-tvland-nyc-web-060418/blob/master/app/models/actor.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,018 | activerecord-tvland-nyc-web-060418 | fs-labs | Ruby | Code | 37 | 125 | require 'pry'
class Actor < ActiveRecord::Base
has_many :characters
has_many :shows, through: :characters
def full_name
f_name = self.first_name + " " + self.last_name
f_name
end
def list_roles
Character.all.where("actor_id =?", self.id).map do |char|
"#{char.name} - #{char.show.name}"
... | 28,261 |
https://github.com/nil-is-lin/.emacs.d/blob/master/elpa/adjust-parens-3.0/Makefile | Github Open Source | Open Source | MIT | null | .emacs.d | nil-is-lin | Makefile | Code | 57 | 166 | .PHONY: all clean
ELCFILES = $(addsuffix .elc, $(basename $(wildcard *.el)))
all: $(ELCFILES)
%.elc : %.el
@echo Compiling $<
@emacs --batch -q --no-site-file -L . -f batch-byte-compile $<
clean:
@rm -f *.elc
# Don't depend on $(ELCFILES) so as failures may have a non byte compiled backtrace
check:
@emacs --ba... | 16,401 |
https://github.com/cosmicray001/Online_judge_Solutions-/blob/master/lightoj/1353.cpp | Github Open Source | Open Source | MIT | 2,021 | Online_judge_Solutions- | cosmicray001 | C++ | Code | 145 | 464 | #include <bits/stdc++.h>
#define le 20004
using namespace std;
vector<int> v[le];
bool in[le], ot[le], vis[le];
int xx, yy;
void bfs(int a){
vis[a] = true;
if(!ot[a]) xx++;
if(!in[a]) yy++;
queue<int> q;
q.push(a);
while(!q.empty()){
a = q.front();
q.pop();
for(int i = 0; i < v[a].size(); i++){
... | 41,021 |
https://github.com/zhouchang2017/app-mws/blob/master/app/Channels/WechatPushChannel.php | Github Open Source | Open Source | MIT | 2,018 | app-mws | zhouchang2017 | PHP | Code | 61 | 169 | <?php
/**
* Created by PhpStorm.
* User: z
* Date: 2019/1/14
* Time: 2:54 PM
*/
namespace App\Channels;
use Illuminate\Notifications\Notification;
class WechatPushChannel
{
/**
* Send the given notification.
*
* @param mixed $notifiable
* @param \Illuminate\Notifications\Notification ... | 9,108 |
https://github.com/aethant/atom-flexicons/blob/master/lib/config/make/index.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,016 | atom-flexicons | aethant | JavaScript | Code | 228 | 598 | 'use babel'
import mapValues from 'lodash.mapvalues'
export const makeConfig = ( title, description, enums ) => ({
properties: {
disabled: {
default: false,
title: 'Disable Icon',
type: 'boolean',
},
icon: {
enum: enums,
default: enums[0],
description,
title: 'I... | 46,349 |
https://github.com/cwtina1234/javascript-logging-lab-bootcamp-prep-000/blob/master/index.js | Github Open Source | Open Source | LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,016 | javascript-logging-lab-bootcamp-prep-000 | cwtina1234 | JavaScript | Code | 4 | 26 | console.log("Hush");
console.warn("Shut up");
console.error("Rude");
| 25,800 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/大众点评-发现品质生活-9.1.0(越狱应用)_headers/UGCSelectImageCategoryViewController.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 141 | 639 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import "UGCBaseGaussViewController.h"
#import "UGCSelectImageCategoryCellDelegate-Protocol.h"
#import "UIViewControllerTransitioningD... | 51,651 |
https://github.com/Harry-Hopkinson/VSCoding-Sequence/blob/master/node_modules/molstar/lib/commonjs/mol-model-formats/structure/cif-core.js | Github Open Source | Open Source | MIT | 2,022 | VSCoding-Sequence | Harry-Hopkinson | JavaScript | Code | 1,029 | 3,944 | "use strict";
/**
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.trajectoryFromCifCore = exports.CifCoreFormat = void 0;
var tslib_1 = requi... | 15,538 |
https://github.com/mbshqqb/jmonet/blob/master/src/main/java/com/defano/jmonet/algo/transform/pixel/TransparencyPixelTransform.java | Github Open Source | Open Source | MIT | 2,018 | jmonet | mbshqqb | Java | Code | 135 | 304 | package com.defano.jmonet.algo.transform.pixel;
import com.defano.jmonet.algo.transform.PixelTransform;
import java.awt.*;
/**
* Adjusts the level of transparency (alpha) in each affected pixel.
*/
public class TransparencyPixelTransform implements PixelTransform {
private final int delta;
/**
* Cre... | 3,805 |
https://github.com/phantomcyber/phantom-apps/blob/master/Apps/phkasperskyti/kasperskythreatintelligence_consts.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | phantom-apps | phantomcyber | Python | Code | 58 | 140 | # File: kasperskythreatintelligence_consts.py
#
# Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
# Error message handling constants
ERR_CODE_MSG = "Error code unavailable"
ERR_MSG_UNAVAILABLE = "Error message unavailable. Please check the asset configuration and|or action parameters"
PARSE... | 42,227 |
https://github.com/icezyclon/AALpy/blob/master/aalpy/automata/__init__.py | Github Open Source | Open Source | MIT | 2,022 | AALpy | icezyclon | Python | Code | 35 | 101 | from .Dfa import Dfa, DfaState
from .Mdp import Mdp, MdpState
from .MealyMachine import MealyMachine, MealyState
from .MooreMachine import MooreMachine, MooreState
from .Onfsm import Onfsm, OnfsmState
from .StochasticMealyMachine import StochasticMealyMachine, StochasticMealyState
from .MarkovChain import MarkovChain, ... | 31,949 |
https://github.com/Rohit484/Distribution/blob/master/a/aws-sdk/src/main/scala/typings/awsSdk/servicecatalogMod/AccessLevelFilter.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | Rohit484 | Scala | Code | 175 | 563 | package typings.awsSdk.servicecatalogMod
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait AccessLevelFilter extends js.Object {
/**
* The access level. Account - Filter results based on the ... | 54,599 |
https://github.com/enheit/discipuli-client/blob/master/src/common/button/__test__/button.test.jsx | Github Open Source | Open Source | Apache-2.0 | 2,018 | discipuli-client | enheit | null | Spoken | 125 | 402 | import React from 'react';
import renderer from 'react-test-renderer';
import { shallow } from 'enzyme';
import Button from '../button';
describe('Button component', () => {
it('renders correctly', () => {
const tree = renderer
.create(
<Button type="button" positive>
Button
</Bu... | 9,233 |
https://github.com/daxingyou/SixCocos2d-xVC2012/blob/master/Cocos2d-x/2.0-x-2.03_branch_231_NoScript/samples/ThreeGong/Classes/SIX_PopWndRoomList.cpp | Github Open Source | Open Source | MIT | 2,020 | SixCocos2d-xVC2012 | daxingyou | C++ | Code | 1,129 | 7,887 | #include "SIX_PopWndRoomList.h"
#include "SIX_RoomMgr.h"
#include "SIX_ClientRoom.h"
#include "SIX_PlayerMgr.h"
#include "SIX_RoomMgr.h"
enum NodeTag
{
BUTTTON_TAG = 1, // 按钮
SELECT_ITEM_TAG, // 选择项背景
ITEM_TEXT, // 项文字
TABLE_LIST_TAG, // 桌子列表
FAST_GAME_BT, // 快速游戏
LIST_VIEW_HEAD, //... | 27,499 |
https://github.com/Gitoffthelawn/mouse-pager/blob/master/src/storage.ts | Github Open Source | Open Source | BSD-3-Clause | 2,022 | mouse-pager | Gitoffthelawn | TypeScript | Code | 123 | 368 | import {Options} from "./types";
import {getBrowserObject, isFirefox, isChrome} from "./browser";
let browser = getBrowserObject();
export function getLocalStorage(
args: string[] | object
): Promise<Options | {}> {
if (isFirefox(browser)) {
return browser.storage.local.get(args);
}
let chromeRes: (o: Op... | 16,736 |
https://github.com/davwheat/flarum-session-keepalive/blob/master/src/Api/Controller/RefreshCsrfToken.php | Github Open Source | Open Source | MIT | 2,022 | flarum-session-keepalive | davwheat | PHP | Code | 53 | 214 | <?php
namespace Davwheat\SessionKeepalive\Api\Controller;
use Davwheat\SessionKeepalive\Api\Serializer\CsrfTokenSerializer;
use Flarum\Api\Controller\AbstractShowController;
use Psr\Http\Message\ServerRequestInterface;
use Tobscure\JsonApi\Document;
class RefreshCsrfToken extends AbstractShowController
{
/**
... | 4,089 |
https://github.com/lejonmcgowan/JohnnyTracer2/blob/master/src/core/base/ICamera.cpp | Github Open Source | Open Source | MIT | null | JohnnyTracer2 | lejonmcgowan | C++ | Code | 78 | 296 | //
// Created by lejonmcgowan on 9/4/16.
//
#include "ICamera.h"
ICamera::ICamera(Transform transform, const Film& film):
cameraToWorld(transform),
film(film)
{
}
float ICamera::generateRayDifferentials(const ICamera::CameraSample& sample, Ray *ray) const
{
float weight = generateRay(sample,ray);
//get came... | 55,191 |
https://github.com/arnaldotecadm/my-expenses-web/blob/master/src/app/dashboard/detail-by-type/detail-by-type.component.ts | Github Open Source | Open Source | MIT | 2,021 | my-expenses-web | arnaldotecadm | TypeScript | Code | 232 | 817 | import {
Component,
ElementRef,
Input,
OnChanges,
OnInit,
ViewChild,
} from "@angular/core";
import { MatSelect, MatSelectChange } from "@angular/material/select";
import { Chart } from "chart.js";
import { DashboardService } from "../dashboard.service";
@Component({
selector: "app-detail-by-type",
tem... | 19,191 |
https://github.com/signalfx/signalfx-agent/blob/master/deployments/salt/signalfx-agent/install.sls | Github Open Source | Open Source | Apache-2.0 | 2,023 | signalfx-agent | signalfx | null | Spoken | 200 | 791 | {% set os_family = salt['grains.get']('os_family') %}
# Check if the OS is in supported types.
{% if os_family not in ['Debian', 'RedHat'] %}
{{ "This deploy is supported on ['Debian', 'Ubuntu'], ['CentOS', 'Red Hat Enterprise Linux', 'Amazon'] " }}
{% else %}
{% set signalfx_repo_base_url = salt['pillar.get']('si... | 35,626 |
https://github.com/open-pwa/open-pwa/blob/master/packages/node-mobile/test/parallel/test-fs-write-stream-fs.js | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-free-unknown, Zlib, CC0-1.0, ISC, LicenseRef-scancode-public-domain, ICU, MIT, LicenseRef-scancode-public-domain-disclaimer, Artistic-2.0, BSD-3-Clause, NTP, LicenseRef-scancode-unknown-license-reference, BSD-2-Clause, LicenseRef-scancode-openssl, LicenseRef-scancode-unicode, NAIST-2003 | 2,022 | open-pwa | open-pwa | JavaScript | Code | 76 | 326 | 'use strict';
const common = require('../common');
const path = require('path');
const fs = require('fs');
const tmpdir = require('../common/tmpdir');
tmpdir.refresh();
{
const file = path.join(tmpdir.path, 'write-end-test0.txt');
const stream = fs.createWriteStream(file, {
fs: {
open: common.mustCall(f... | 22,866 |
https://github.com/JakeWharton/diffuse/blob/master/reports/src/main/kotlin/com/jakewharton/diffuse/report/text/ApkInfoTextReport.kt | Github Open Source | Open Source | Apache-2.0 | 2,023 | diffuse | JakeWharton | Kotlin | Code | 60 | 310 | package com.jakewharton.diffuse.report.text
import com.jakewharton.diffuse.format.Apk
import com.jakewharton.diffuse.format.ArchiveFile
import com.jakewharton.diffuse.info.toSummaryTable
import com.jakewharton.diffuse.report.Report
import com.jakewharton.diffuse.report.toSummaryString
class ApkInfoTextReport(
priva... | 35,839 |
https://github.com/clocklimited/cf-visibility-check/blob/master/visibility-check.js | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,022 | cf-visibility-check | clocklimited | JavaScript | Code | 98 | 223 | /**
* Is an entity that has the properties [visible, liveDate, expiryDate] visible
* @param {Object} entity The object to inspect
* @param {Date} date Override the point in time to check visibility
*/
module.exports = function (entity, date) {
if (date === undefined) {
date = new Date()
}
if (entity.visi... | 46,799 |
https://github.com/qiscus/ngobrel/blob/master/android/core/src/main/java/id/ridon/ngobrel/core/SignedPreKeyPublic.java | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,018 | ngobrel | qiscus | Java | Code | 202 | 519 | package id.ridon.ngobrel.core;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.SignatureException;
/**
* This class is a representation of public part of SignedPreKey
*/
public class SignedPreKeyPublic {
public PublicKey publicKey;
public Signature s... | 11,893 |
https://github.com/alex/osquery/blob/master/osquery/extensions/interface.h | Github Open Source | Open Source | BSD-3-Clause | 2,015 | osquery | alex | C++ | Code | 1,390 | 3,111 | /*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#pragma onc... | 37,793 |
https://github.com/ChanJeunlam/analysis/blob/master/storm_surges/SandHeadsWinds.ipynb | Github Open Source | Open Source | Apache-2.0 | 2,016 | analysis | ChanJeunlam | Jupyter Notebook | Code | 670 | 2,254 | {
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#Sand Heads Winds\n",
"\n",
"This notebook demonstrates how to read the file of historical wind data\n",
"from the... | 54,012 |
https://github.com/twong9/tsz-hoteling-api/blob/master/src/controllers/workspace.controller.js | Github Open Source | Open Source | MIT | 2,021 | tsz-hoteling-api | twong9 | JavaScript | Code | 110 | 377 | const httpStatus = require('http-status');
const ApiError = require('../utils/ApiError');
const catchAsync = require('../utils/catchAsync');
const { workspaceService } = require('../services');
const createWorkspace = catchAsync(async (req, res) => {
const workspace = await workspaceService.createWorkspace(req.body)... | 51,549 |
https://github.com/andyli/pyextern/blob/master/out/science/tensorflow/python/ops/gen_boosted_trees_ops/Gen_boosted_trees_ops.hx | Github Open Source | Open Source | BSD-3-Clause | 2,022 | pyextern | andyli | Haxe | Code | 15 | 72 | /* This file is generated, do not edit! */
package tensorflow.python.ops.gen_boosted_trees_ops;
typedef Gen_boosted_trees_ops = tensorflow.python.ops.gen_boosted_trees_ops.Gen_boosted_trees_ops_Module; | 8,530 |
https://github.com/FlexLV/Projekts-Lidma-nas-/blob/master/static/js/Reservation.js | Github Open Source | Open Source | MIT | null | Projekts-Lidma-nas- | FlexLV | JavaScript | Code | 71 | 188 | var currentDateTime = new Date();
var year = currentDateTime.getFullYear();
var month = (currentDateTime.getMonth() + 1);
var date = (currentDateTime.getDate() + 1);
if(date < 10) {
date = '0' + date;
}
if(month < 10) {
month = '0' + month;
}
var dateTomorrow = year + "-" + month + "-" + date;
var flyoutElem = do... | 45,588 |
https://github.com/LiboMa/advanced-go-programming-book/blob/master/examples/ch2-07/hello-py/gopkg.h | Github Open Source | Open Source | BSD-2-Clause | 2,021 | advanced-go-programming-book | LiboMa | C | Code | 293 | 829 | /* Created by "go tool cgo" - DO NOT EDIT. */
/* package command-line-arguments */
/* Start of preamble from import "C" comments. */
#line 3 "/Users/chai/go/src/github.com/chai2010/advanced-go-programming-book/examples/ch2-07/hello-py/main.go"
// macOS:
// python3-config --cflags
// python3-config --ldflags
//... | 35,307 |
https://github.com/MelBeckerleg/BMFC/blob/master/Rank_k_MATLAB/source/scripts/Rank_k/rank_k_comparison.m | Github Open Source | Open Source | Apache-2.0 | 2,020 | BMFC | MelBeckerleg | MATLAB | Code | 131 | 1,628 | %Script to run solve the rank-k problem.
clear;
addpath(genpath('/home/user/Documents/Mel/Ethera/BMFC/Rank_k_MATLAB/'))
addpath(genpath('/home/user/mosek/'))
addpath(genpath('/home/user/Documents/Mel/Ethera/BMFC/Rank_k_MATLAB/source/solvers/MatrixCompletion'))
tag='all_july_24'
loaded=0;generate=1;
num_trials=30;m_va... | 51,965 |
https://github.com/ahmedammar/geneticprogramming_ecj/blob/master/ec/app/ecsuite/ECSuite.java | Github Open Source | Open Source | AFL-3.0 | null | geneticprogramming_ecj | ahmedammar | Java | Code | 1,017 | 2,720 | /*
Copyright 2006 by Sean Luke and George Mason University
Licensed under the Academic Free License version 3.0
See the file "LICENSE" for more information
*/
package ec.app.ecsuite;
import ec.util.*;
import ec.*;
import ec.simple.*;
import ec.vector.*;
/*
* ECSuite.java
*
* Created: Thu MAr 22 16:27:15... | 22,163 |
https://github.com/zheng-zy/blog/blob/master/app/admin/views.py | Github Open Source | Open Source | Apache-2.0 | null | blog | zheng-zy | Python | Code | 157 | 575 | #!/usr/bin/env python
# coding=utf-8
# Created by zhezhiyong@163.com on 2016/12/6.
from datetime import datetime
from flask import render_template, redirect, request, flash, url_for
from . import admin
from ..models import Post
@admin.route('/', methods=['GET', 'POST'])
@admin.route('/<int:page>', methods=['GET', '... | 648 |
https://github.com/kr11/incubator-iotdb/blob/master/cluster/src/main/java/org/apache/iotdb/cluster/log/logtypes/RemoveNodeLog.java | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, BSD-2-Clause, LicenseRef-scancode-unknown-license-reference, MIT, EPL-1.0, CDDL-1.1 | 2,021 | incubator-iotdb | kr11 | Java | Code | 272 | 727 | /*
* 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 ... | 52,260 |
https://github.com/Nobjes/meshiran/blob/master/app/Http/Controllers/Api/MoviesController.php | Github Open Source | Open Source | MIT | 2,021 | meshiran | Nobjes | PHP | Code | 305 | 1,453 | <?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use App\Movie;
use Illuminate\Http\Request;
use Validator;
use Auth;
use Illuminate\Support\Str;
use ProtoneMedia\LaravelFFMpeg\Support\FFMpeg;
class MoviesController extends Controller
{
/**
* Display a listing of the resource.
... | 37,640 |
https://github.com/Shuan97/inz/blob/master/app-be/src/modules/auth/interfaces/tokenPayload.interface.ts | Github Open Source | Open Source | MIT | 2,021 | inz | Shuan97 | TypeScript | Code | 7 | 17 | export interface ITokenPayload {
UUID: string;
}
| 9,732 |
https://github.com/shasdemir/JavaBook-Projects/blob/master/IsAlpha/src/IsAlpha.java | Github Open Source | Open Source | BSD-3-Clause | 2,014 | JavaBook-Projects | shasdemir | Java | Code | 56 | 210 | // tests if the input is alphanumeric or not
import java.util.Scanner;
public class IsAlpha {
public static void main(String[] args) {
String goon = "y";
Scanner myScan = new Scanner(System.in);
while (goon.equalsIgnoreCase("y")) {
System.out.print("Enter a single character:");
char input = myScan.nex... | 3,404 |
https://github.com/fritzy/SleekXMPP/blob/master/sleekxmpp/plugins/xep_0078/stanza.py | Github Open Source | Open Source | MIT, BSD-3-Clause, BSD-2-Clause | 2,020 | SleekXMPP | fritzy | Python | Code | 114 | 375 | """
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2011 Nathanael C. Fritz
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
from sleekxmpp.xmlstream import ElementBase, ET, register_stanza_plugin
class IqAuth(ElementBase):
namespace = 'jabber:iq:auth'
name = ... | 13,122 |
https://github.com/famly/react-pullrefresh/blob/master/test/main/View/index.ios.js | Github Open Source | Open Source | MIT | 2,017 | react-pullrefresh | famly | JavaScript | Code | 73 | 166 | import React, { PropTypes, Component } from 'react'
import { View as NativeView, ScrollView as NativeScrollView } from 'react-native'
export default class View extends Component {
render() {
const { children, style, ...others } = this.props
const Comp = style.overflow === 'auto' ? NativeScrollView : NativeVi... | 6,660 |
https://github.com/Godzil/deval/blob/master/src/generator.php | Github Open Source | Open Source | MIT | 2,018 | deval | Godzil | PHP | Code | 451 | 1,358 | <?php
namespace Deval;
class Generator
{
private static $input_name = '_deval_input';
public static function emit_backup($backup, $names)
{
if (count($names) < 1) {
return '';
}
return self::emit_symbol($backup) . '=array(' . implode(',', array_map(function ($name) {
... | 32,474 |
https://github.com/FernandoNobel/mdoc/blob/master/Pipeline.py | Github Open Source | Open Source | MIT | null | mdoc | FernandoNobel | Python | Code | 107 | 252 | class Pipeline:
""" PIPELINE
This class manages and set up all the filters we want to use in the
pipeline.
"""
def __init__(self):
"""
@brief: Constructor of Pipeline.
"""
self.filters = [];
def addFilter(self,f):
""" ADDFILTER
@brief: Add a fil... | 14,236 |
https://github.com/VoiceThread/ANE-ImagePicker/blob/master/ios/AirImagePicker/NSURL+Rewriters.h | Github Open Source | Open Source | Apache-2.0 | 2,016 | ANE-ImagePicker | VoiceThread | Objective-C | Code | 119 | 239 | //////////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2011-2016 VoiceThread (https://voicethread.com/)
//
// 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 o... | 17,127 |
https://github.com/xiaojigugu/XDialog/blob/master/app/src/main/java/com/junt/demo/dialog/test/FirstDialogAnimator.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | XDialog | xiaojigugu | Java | Code | 305 | 1,379 | package com.junt.demo.dialog.test;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.graphics.Point;
import android.graphics.Rect;
import com.junt.xdialog.anim.XAnimator;
import com.junt.xdialog.utils.ScreenUtils;
public class FirstDialogAnimator extends XAnimator {
... | 19,974 |
https://github.com/abishekbalaji/IndecisionApp-React/blob/master/src/components/IndecisionApp.js | Github Open Source | Open Source | MIT | 2,020 | IndecisionApp-React | abishekbalaji | JavaScript | Code | 242 | 749 | import React from "react";
import AddOption from "./AddOption";
import Header from "./Header";
import Action from "./Action";
import Options from "./Options";
import OptionModal from "./OptionModal";
class IndecisionApp extends React.Component {
state = { options: [], selectedOption: undefined };
handleDeleteAll... | 3,559 |
https://github.com/kabisa/launch-base/blob/master/test/linters/ruby.rb | Github Open Source | Open Source | MIT | 2,018 | launch-base | kabisa | Ruby | Code | 138 | 629 | module Foo
module Bar
class Example
LOC_TEST_ARRAY = [
'this',
'is',
'just',
'an',
'array',
'full',
'of',
'words',
'in',
'order',
'for',
'this',
'file',
'to',
'surpass',
'the',
... | 4,988 |
https://github.com/staffoffrost/lbdate/blob/master/tools/handlers/pkg-json.handler.ts | Github Open Source | Open Source | MIT | null | lbdate | staffoffrost | TypeScript | Code | 156 | 498 | import { pathExistsSync } from 'fs-extra'
import { base } from 'path-extra'
import { readJsonFromFile, resolvePath, writeJsonToFile } from '../extensions'
import { PackageJsonConfig } from '../models'
import { Provider } from '../provider'
export function handlePkgJsonFile(
rootFolder: string,
sourceFile: string,
... | 35,117 |
https://github.com/matnad/eGDP/blob/master/src/uebungenMoritz/Blatt6/Kasse.java | Github Open Source | Open Source | MIT | 2,019 | eGDP | matnad | Java | Code | 38 | 138 | package uebungenMoritz.Blatt6;
public class Kasse {
public static void main(String[] args) {
Kassenbon b = new Kassenbon( new Adresse("Herbstmesse Basel", "Uni Basel", "Petersplatz", "1", "4001", "Basel"));
b.add( new Artikel("Marroni",2,5.40));
b.add( new Artikel("Magebrot",5,1.10));
... | 56,515 |
https://github.com/zinserjan/eslint-config/blob/master/packages/eslint-config-react/test/rules/jsx-wrap-multilines/jsx-wrap-multilines.1.error.js | Github Open Source | Open Source | MIT | 2,016 | eslint-config | zinserjan | JavaScript | Code | 27 | 84 | /* eslint-disable react/react-in-jsx-scope */
const test = <div>
Test
</div>;
let test2;
test2 = <div>
Test
</div>;
function Test() {
return (
<div>
Test
</div>
);
}
| 41,996 |
https://github.com/kspshnik/react-burger/blob/master/src/pages/forgot-page/forgot-page.jsx | Github Open Source | Open Source | MIT | null | react-burger | kspshnik | null | Spoken | 146 | 563 | import React from 'react';
import { useHistory } from 'react-router-dom';
import { Button, EmailInput } from '@ya.praktikum/react-developer-burger-ui-components';
import { useDispatch, useSelector } from 'react-redux';
import LinkBox from '../../components/link-box/link-box';
import forgotStyles from './forgot-page.... | 31,573 |
https://github.com/meteoorkip/GROOVE/blob/master/groove/src/groove/gui/layout/JCellLayout.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | GROOVE | meteoorkip | Java | Code | 252 | 497 | /*
* GROOVE: GRaphs for Object Oriented VErification Copyright 2003--2007
* University of Twente
*
* 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-... | 20,399 |
https://github.com/kysen/outersite-sound/blob/master/src/views/Bands/ZenithPage/ZenithPage.js | Github Open Source | Open Source | MIT | null | outersite-sound | kysen | JavaScript | Code | 701 | 2,433 | import React from "react";
import classNames from "classnames";
import { makeStyles } from "@material-ui/core/styles";
import Footer from "components/Footer/Footer.js";
import Button from "components/CustomButtons/Button.js";
import GridContainer from "components/Grid/GridContainer.js";
import GridItem from "component... | 37,458 |
https://github.com/martmists-gh/BDSP/blob/master/include/il2cpp/Mono/Globalization/Unicode/MSCompatUnicodeTableUtil.h | Github Open Source | Open Source | MIT | 2,022 | BDSP | martmists-gh | C | Code | 9 | 46 | #pragma once
#include "il2cpp.h"
void Mono_Globalization_Unicode_MSCompatUnicodeTableUtil___cctor (const MethodInfo* method_info);
| 27,234 |
https://github.com/thundermiracle/react-sunflower/blob/master/src/client/views/components/CanvasPainter/index.js | Github Open Source | Open Source | MIT | 2,019 | react-sunflower | thundermiracle | JavaScript | Code | 6 | 13 | export { default } from './CanvasPainter';
| 43,876 |
https://github.com/10861121/Side-Project-gpv_laravel/blob/master/app/Http/Controllers/EventListController.php | Github Open Source | Open Source | MIT | null | Side-Project-gpv_laravel | 10861121 | PHP | Code | 378 | 2,502 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Input;
use DB;
use Redirect;
use View;
use Image;
use User;
use Validator;
use json_decode;
use Log;
class EventListController extends Controller
{
/**
* Handle the incoming request.
*
* @param \Illuminate\Http\Request $reques... | 29,287 |
https://github.com/Gintinks/VotingKu/blob/master/application/models/m_kritik.php | Github Open Source | Open Source | MIT | null | VotingKu | Gintinks | PHP | Code | 28 | 131 | <?php
class M_kritik extends CI_Model{
function simpan_kritik($isi_kritik){
$this->load->database();
$data = array(
'isi_kritik' => $isi_kritik
);
$this->db->insert('kritik', $data);
}
function get_kritik(){
$this->load->database();
$query = $this->db->get('kritik');
return $query->re... | 45,863 |
https://github.com/YuriR99/HW2/blob/master/resources/views/home.blade.php | Github Open Source | Open Source | MIT | null | HW2 | YuriR99 | PHP | Code | 122 | 488 | <!DOCTYPE html>
<html>
<head>
@include('layouts.Head')
</head>
<body>
<header>
<div id="Testo1">
<div id="detTesto">
Find Your Hotel
Quickly And Easily With <strong>Easy Hotels !</strong>
</div>
<... | 167 |
https://github.com/ziqlu0722/squidpy_notebooks/blob/master/docs/source/auto_examples/plotting/compute_extract.ipynb | Github Open Source | Open Source | MIT | 2,021 | squidpy_notebooks | ziqlu0722 | Jupyter Notebook | Code | 238 | 893 | {
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"%matplotlib inline"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Plot features in... | 44,437 |
https://github.com/Aristxcy/FirstOrderLp.jl/blob/master/scripts/analyze_csv_data.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | FirstOrderLp.jl | Aristxcy | Python | Code | 2,735 | 12,476 | # Copyright 2021 The FirstOrderLp 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... | 11,400 |
https://github.com/MakiOmar/smsa-sdk/blob/master/src/Methods/addShipPDFResp.php | Github Open Source | Open Source | MIT | 2,021 | smsa-sdk | MakiOmar | PHP | Code | 94 | 305 | <?php
namespace SmsaSDK\Methods;
class addShipPDFResp
{
/**
* @var string
*/
protected $Response = null;
/**
* @var base64Binary
*/
protected $aPDF = null;
public function __construct()
{
}
/**
* @return string
*/
public function getResponse()
{... | 41,449 |
https://github.com/brson/rust-layers/blob/master/rendergl.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,013 | rust-layers | brson | Rust | Code | 1,000 | 3,872 | // Copyright 2013 The Servo Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at ... | 53,910 |
https://github.com/adamzv/PortalBrigad/blob/master/application/libraries/MY_Form_validation.php | Github Open Source | Open Source | MIT | null | PortalBrigad | adamzv | PHP | Code | 42 | 319 | <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class MY_Form_validation extends CI_Form_validation
{
function __construct($rules = array())
{
parent::__construct($rules);
}
function alpha_international($str)
{
$str = (strtolower($this->CI->config->item('charset')) != 'utf-... | 35,201 |
https://github.com/ihji/dotty/blob/master/tests/neg/phantom-class-type-members.scala | Github Open Source | Open Source | BSD-3-Clause | null | dotty | ihji | Scala | Code | 148 | 342 | import Boo._
object Test {
def main(args: Array[String]): Unit = {
val a = new Bar()
foo(a.asInstanceOf[Foo{type T = BooNothing}].y) // error
a match {
case a: Foo{type T = BooNothing} => a.y // error
}
val b = new Baz
b.asInstanceOf[Foo{type T = BooAny}].z(any) // error
b matc... | 1,990 |
https://github.com/zenyuk/fc-retrieval/blob/master/common/pkg/fcrpaymentmgr/payment_manager.go | Github Open Source | Open Source | MIT, BSD-3-Clause, Apache-2.0 | 2,021 | fc-retrieval | zenyuk | Go | Code | 2,091 | 5,953 | /*
Package fcrpaymentmgr - provides common methods facilitate payment process for parties.
Methods like pay, receive payment, top up balance and verify payment.
*/
package fcrpaymentmgr
/*
* Copyright 2020 ConsenSys Software Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use t... | 8,002 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.