branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>GabrielGM01/Jogos_python<file_sep>/jogos.py
import jogo_numero_secreto
import jogo_da_forca
print("----------------------------------")
print("--------Escolha o seu jogo--------")
print("----------------------------------")
print("(1)Forca (2) Numero secreto ")
jogo = int(input("Digite o... | affa7b9b97768699bbdebdd4b84da876705528a2 | [
"Markdown",
"Python"
] | 4 | Python | GabrielGM01/Jogos_python | 276aaf2bbb29d450ed70419894bc02f578a0a0e5 | 1b74e14d3881bba405b4d34781f0de590b2294d0 |
refs/heads/master | <repo_name>dchathu30/SWProject<file_sep>/Software/UpdateStaff.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace Software
{
public partial ... | 53e04223b7148af6b8b7f927113ff4acfccde24f | [
"C#"
] | 35 | C# | dchathu30/SWProject | 8c04169962e45fcee6bc00c66487b2ac0ca664c3 | b07b6be4414034b1ed7d08d21d44f6462abd033a |
refs/heads/master | <file_sep>package com.company.algorithm.Find;
import java.util.Scanner;
public class MaxFind {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println(" 세 정수의 최댓값을 구합니다. ");
System.out.println(" a의 값 : "); int a = scanner.nextInt();
... | 4518a1d9a770ec1682e493b0471a1974cf2ab6de | [
"Java"
] | 1 | Java | tjdans345/JavaAlgorithm | 61a991f130c0fbf454f712cb2b9f5466504c8cec | 2c6802b271929ffb343842947d0fe126deb99b5e |
refs/heads/master | <file_sep>Accumuwinner-Betting-Tips
=========================
Betting Tips Application
<file_sep>package accumuwinner;
import android.app.Activity;
import android.app.LoaderManager.LoaderCallbacks;
import android.content.Loader;
import android.database.Cursor;
import android.os.Bundle;
/**
* An account creation sc... | 011f532abad962edbee96419516a368dcf685e13 | [
"Markdown",
"Java"
] | 5 | Markdown | LockeTBB/Accumuwinner-Betting-Tips | 992786b3e1972f3550f12b92a520ccc992741999 | c219acae26044dedb851a4f05ace2ecb97c67d59 |
refs/heads/master | <repo_name>jhleedoc/ExData_Plotting1<file_sep>/plot1.R
file <- "./data/household_power_consumption.txt"
data1 <- read.table(file, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
data2 <- data1[data1$Date %in% c("1/2/2007","2/2/2007") ,]
data3 <- as.numeric(data2$Global_active_power)
png("plot1.png", width=... | 2d6d65bc23fed3dd7f0444ad673e48e981a5d914 | [
"R"
] | 3 | R | jhleedoc/ExData_Plotting1 | f3607c5e8f808f181b018c11256dbc99538b6679 | 10f56e0531d66cf9ea9dea75cc50b35f4dd3a5cc |
refs/heads/master | <repo_name>nornex/react-server<file_sep>/packages/babel-plugin-react-server/src/index.js
import loggerSpec from 'react-server-module-tagger';
import path from 'path';
module.exports = function() {
return {
visitor: {
Identifier(p, state) {
const {node} = p;
const {name} = node;
console.log(`name: ${... | fa5858263436afb0514ab51234234f7e0bf112c4 | [
"JavaScript"
] | 1 | JavaScript | nornex/react-server | 60e8a3aa92aa9dcbcc9c45d7caf37f0e75caf803 | 1562071e980763f0df1da9fc4576d04a84a09505 |
refs/heads/main | <repo_name>seijuroseta/react-cubic-spline<file_sep>/open.js
const path = require('path').join(__dirname, 'build', 'index.html');
const exist = require('fs').existsSync(path);
if (!exist) {
const cmd = 'npm run build';
process.stdout.write(`Build not found\n> ${cmd}\n`);
require('child_process').execSync(cmd... | 234b446c9aa688e4b81ecf70d83cc43491573a09 | [
"JavaScript",
"TypeScript",
"Markdown"
] | 6 | JavaScript | seijuroseta/react-cubic-spline | 08353e6a72e905dd837e21c5457f1b6f874852c0 | 2f3b5547e2de5c9ec7b90f3b9f12f52bda497992 |
refs/heads/master | <file_sep>class GameController < ApplicationController
before_action :notAuthorized
def index
end
end
<file_sep>class LeaderboardController < ApplicationController
before_action :notAuthorized
before_action :get_users
before_action :get_leaderboard
def index
@i = 1
end
def get_users
@users ... | e0f56a3850b87108d944a61fecd9426f4d348f34 | [
"Ruby"
] | 4 | Ruby | dkurschner1/Group1Project | 628055a016121670fb2dc75376791d52117f4ca6 | 8381e73ba9f97c6f84497a23a91b307573882a40 |
refs/heads/master | <repo_name>JohnOutbottle/simple-pro-ready-angular2-webpack-seed<file_sep>/app/vendor.ts
// Angular
import '@angular/platform-browser';
import '@angular/platform-browser-dynamic';
import '@angular/core';
import '@angular/common';
import '@angular/http';
import '@angular/router';
// RxJS
import 'rxjs';
import '../node_m... | 8024592d9099fead0c2928208e270783163d4047 | [
"JavaScript",
"TypeScript",
"Markdown"
] | 6 | TypeScript | JohnOutbottle/simple-pro-ready-angular2-webpack-seed | 048f5d2bf51157597e9533ba010c0c74d682201b | 217c2cdbfdb0b42e2bea0eee34a8e95f7f29fcf6 |
refs/heads/master | <file_sep>import re
import requests
from bs4 import BeautifulSoup
url = 'http://news.sina.com.cn/china/'
id_start = 1100000
id_end = 1100100
respose = requests.get(url)
respose.encoding = 'utf-8'
text = respose.text
soup = BeautifulSoup(text, 'html.parser')
for news in soup.select('.blk122'):
for url in news.select(... | fd88ba1c649539d17191ca118b9704b6ed0031bf | [
"Python"
] | 6 | Python | ayuday/pachong | fe8768ac162a7ac00697cb8c20e521ee064bf81e | f542a8ee0f069c69a2628c035ff3e76155fd9e1a |
refs/heads/master | <file_sep>#include "MainMenu.h"
void main()
{
MainMenu p;
p.select();
}
<file_sep>#pragma once
#include "Student.h"
class MainMenu : public Student
{
private:
Student* mode;
public:
MainMenu();
~MainMenu();
int Menu();
void select();
};<file_sep>#include "Student.h"
Student::Student()
{
name = new char... | ad1294e19de869d838523610b123b9d04d8beef4 | [
"Markdown",
"C++"
] | 6 | C++ | joon2038/studentmanager | b365606706faacb173d4d9220a7ff9b72f741993 | 76927d2ae524877dbab098dbf9c7f672e2764aa3 |
refs/heads/master | <repo_name>kunalatwork/AdvanceSFE<file_sep>/src/test/java/TestRunner/runnerClass.java
package TestRunner;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features = ".//Features/Rep.feature",
glue = "RepStepDefina... | 11120768b1f414bc0972bbc4d06cea9b3d9a736d | [
"JavaScript",
"Java",
"INI"
] | 6 | Java | kunalatwork/AdvanceSFE | 48b1051082fae45bf3f690f2e18a9de48fe083b3 | acc47f91164748fd53c006eb4ed8b6e3ca2ad867 |
refs/heads/master | <file_sep>import sys
import datetime
def convert_date(date):
# converts dates from mm/dd/yyyy to yyyy/mm/dd
date = date.split("/")
date = [int(date[2]), int(date[0]), int(date[1])]
return datetime.date(*date)
def revert_date(date):
# converts dates from yyyy/mm/dd to mm/dd/yyyy
date = str(dat... | 075296ca1cfadfa84392962ac8e30b493e16925b | [
"Python"
] | 1 | Python | contactjiayi/Reservation_System | 68bbccd1c1ff72c14385affd18ee6464b2080ad9 | 09addea2af0beafce50232344ea5b6f4ff6111f7 |
refs/heads/master | <repo_name>yashgandhi876/MESCOE-Alumni-Portal<file_sep>/precache-manifest.0b119d588d4c30f9a252aca9d131b909.js
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "aa6d7664168aaba7a466391926add271",
"url": "/creativetimofficial/argon-design-system/blob/master/LICENSE.md/index.html"... | ba86591b10c2dcdae99e764f3b2b1bdc4c860f09 | [
"JavaScript",
"Markdown",
"PHP"
] | 24 | JavaScript | yashgandhi876/MESCOE-Alumni-Portal | a361dae483b7c6664293d2a9588e29b8435a8f64 | 5f2543a84220fbde41f5f3736980f1ff6a0222c0 |
refs/heads/main | <repo_name>HelderOvalle11/Telecom<file_sep>/proyecto_1.py
'''
Universidad del Valle de Guatemala
Sistemas de telecomunicaciones 1
Proyecto 1
<NAME> 18291
<NAME> 18349
'''
import requests
import networkx
import networkx as nx
import matplotlib.pyplot as plt
import re
import sys
import tkinter as tk
f... | aff346745703841e47b3932bb526cee408b37b22 | [
"Markdown",
"Python"
] | 2 | Python | HelderOvalle11/Telecom | 551894418625ec742f3ebfdce67d7e385916af91 | 63d0237f7878e5a47955a4f81603acfda1936492 |
refs/heads/master | <file_sep>package bancodados.model;
import bancodados.connection.ConectionFactory;
import usuarios.Atendente;
import javax.swing.*;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public class A... | 8cbe295171a044e4fd647ec1ad9d3cc00281e7ba | [
"Java"
] | 1 | Java | Dracorike/Projeto-Vacina-o | 51d58f0e4a32c55027dd5fb971b6ba9fdd0f5adf | 33a04c47c57b217250863ae9576661cb6c04a1a2 |
refs/heads/master | <repo_name>camilaleniss/TorneoAdmin<file_sep>/TorneoApp/TorneoApp/Gui/CambiarCategoria.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TorneoApp... | 6e0c32eea88cd528893f7003a81626358f07c036 | [
"Markdown",
"C#"
] | 35 | C# | camilaleniss/TorneoAdmin | 81098775943ccb4dbea77d86254a0644b57f9233 | 09b1527994f3a57f684dca1fa9a0069a5dc406c3 |
refs/heads/master | <repo_name>chnagendra2/chanduselenim<file_sep>/FirstClass2/src/com/kotak/loans/carloans/SecondClass3.java
package com.kotak.loans.carloans;
public class SecondClass3
{
public static void main(String[] args)
{
System.out.println("Hello");
}
}
<file_sep>/FirstClass2/src/com/kotak/loans/carloans/Second... | ea8e3a7e83497a79f2db624e628649e1d93bf07a | [
"Java"
] | 2 | Java | chnagendra2/chanduselenim | 9cb2b8cf2a47172a2839a7ad99d806ac7dba1ce0 | 562e8edc4ea6f38d68ecc8b8d107698e1801c2e2 |
refs/heads/main | <repo_name>vladienn/ESP32-RESTAPI<file_sep>/espRequests.cpp
#include <WiFi.h>
#include <HTTPClient.h>
#include <AceButton.h>
#include <Adafruit_NeoPixel.h>
using namespace ace_button;
const int BUTTON_PIN = 35;
const int LED_PIN = 33;
const int STRIP_SIZE = 16;
Adafruit_NeoPixel strip = Adafruit_NeoPixel(STRIP_SIZE,... | 24701c041286a82e7f4fb24e399483b8093fcda3 | [
"Markdown",
"Python",
"C++"
] | 3 | C++ | vladienn/ESP32-RESTAPI | 36a214168ba4aa5077fd647f997b16bb6f918b85 | 22ea5a4b8dcf1da1442f9c72552f723b93b2e862 |
refs/heads/master | <file_sep>import cv2
import numpy as np
from random import randrange as rr
import operator
def split_questions(img_bin, img_gray, lines=None, line_width=0.95):
rows, cols = img_bin.shape
if lines is None:
# Engrossar linhas do separador de questao para tolerancia a rotacoes leves
kernel = cv2.... | 0efe966f1d5927bb7e806c8c46c7dccd34de8680 | [
"Python"
] | 4 | Python | ramkury/CorretorDeProvas | a8d184d6af213345c960564af50f9c0653e8fc4c | 176e51cd5f03bc6f625f9cad0372521c4b97e0e6 |
refs/heads/master | <repo_name>evolvedmicrobe/FreqSeq<file_sep>/FREQSeq/XML_Parser.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml;
namespace FREQSeq
{
/// <summary>
/// Creates an Allele Finder class and parses the XML file for the
/// </... | b0481357fcf414ad72d5b50dfedc5363b0e7a49e | [
"Markdown",
"C#",
"Python",
"Text",
"Shell"
] | 22 | C# | evolvedmicrobe/FreqSeq | 6d953139181497ab483ae3e6d46db091647bf128 | b0e885e89431cc118866c5284b8197080c5bbcd8 |
refs/heads/master | <file_sep>// Commander X16 Emulator
// Copyright (c) 2019 <NAME>
// All rights reserved. License: 2-clause BSD
#include <stdio.h>
#include <stdbool.h>
#include "ps2.h"
#define PS2_BUFFER_SIZE 32
struct
{
uint8_t data[PS2_BUFFER_SIZE];
uint8_t read;
uint8_t write;
} ps2_buffer[2];
void
ps2_buffer_add(int i, uint8_... | 1f0ed425dc204d7f5ab2cae4c5949f2fe270f37d | [
"C"
] | 1 | C | RUA71/x16-emulator | 91625a5bb57bb12cb087e9287e93971ed8ef4f06 | c838cee274203215c54c633205da32280b54c726 |
refs/heads/master | <repo_name>zigorrom/PyIV<file_sep>/backend.py
import numpy as np
import time
from PyQt4 import QtCore
class TimetraceMeasurement(QtCore.QThread):
TimetraceStarted = QtCore.pyqtSignal()
TimetraceStopped = QtCore.pyqtSignal()
def __init__(self, data_storage, parent = None):
super().__init__(parent)
... | e4ddebbe36d4ea06b3565b113c9530cd267bad47 | [
"Python"
] | 9 | Python | zigorrom/PyIV | 178ba0c75e65b72daeabb6a7538c83e972ce6b2f | a66b0b352369c955ef062d190fa693cb5c7d8f14 |
refs/heads/main | <file_sep>package com.solvd.projectUnicen.gui.pages;
import java.util.List;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.FindBy;
import com.qaprosoft.carina.core.foundation.webdriver.decorator.ExtendedWebElement;
import com.solvd.projectUnicen.gui.components.Footer;
import com.solvd.proje... | a5b8c50d19a5f59504fc99cdd2fd73f85ceaef4c | [
"Java"
] | 5 | Java | magaliboulanger/Solvd-course-test | 3ed745840724dab8a60ed9c061faef5e013cb83c | c1f0014aee0b22a15258dd2bb11d9b5ffc0c0824 |
refs/heads/master | <repo_name>TentacleSoft/workshop-symfony2-volcanica<file_sep>/src/TS/Bundle/MinesweeperBundle/Controller/GameController.php
<?php
namespace TS\Bundle\MinesweeperBundle\Controller;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use TS\Bundle\MinesweeperBundle\Entity\Game;
use TS\Bundle\Minesweeper... | b66ea8bb90dcde55af58fbbac1c20364cafb2af9 | [
"JavaScript",
"PHP"
] | 20 | PHP | TentacleSoft/workshop-symfony2-volcanica | 40233998ca132441631f55c6bbb33fe8934daa0f | 599b581706015d8fd1836f5cdfc43316b7a8b360 |
refs/heads/master | <repo_name>jebbates/cms-workshop<file_sep>/geometry_analysis.py
"""
geometry_analysis.py
This module contains the geometry analysis project from MolSSI workshop.
Author : JEBates
"""
import numpy
import os
import sys
########################################################################
# HEPLER FUNCTIONS
def ope... | 4d817cacc12c40127933b65d1f94baefad622fd0 | [
"Python"
] | 1 | Python | jebbates/cms-workshop | c288f336514f06166ed007d20c6c486a8f0be73d | 280453cbb9ff4d77c11b9be7c8e872e7c913fcfd |
refs/heads/master | <file_sep>import jwt
from flask import request, url_for, jsonify
from flask_restplus import Resource
from functools import wraps
from app import api, app
from ..database.models import User
from app.parsers import pagination_parser
from ..endpoints.post import init_post
from ..endpoints.user import init_user
from ..endp... | 71193f76d4e9d79cd147f5b2b63f97f79f7ae176 | [
"Python",
"Text"
] | 13 | Python | grzeslaws/backend-flask-api | ad26a111c98c990507bc17e8aeb093489ffcf943 | dfb299103e7a23a9055ad062e9f295dd2e365952 |
refs/heads/master | <file_sep>package class14.servlet;
import class14.dao.UsersDao;
import class14.domain.User;
import com.alibaba.fastjson.JSON;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.htt... | 0d91430fea046940a80d4aee69986e3d918bdff2 | [
"Java"
] | 3 | Java | Drx17002090107/javaweb_test2 | 4f651f92f037acba81ae89161eef66b9bf0e2810 | 6269b6cb3a9f83ac8213771ed1524d2553fceb6f |
refs/heads/master | <repo_name>wf2016/springboot-soap-webservice-mysql<file_sep>/src/main/java/com/mikaila/springbootsoapwebservice/service/IArticleService.java
package com.mikaila.springbootsoapwebservice.service;
import java.util.List;
import com.mikaila.springbootsoapwebservice.entity.Article;
public interface IArticleService {
Lis... | 7df83098ec496937daca0cbd88aa2fa999248392 | [
"Markdown",
"Java",
"SQL"
] | 3 | Java | wf2016/springboot-soap-webservice-mysql | 1cfcc0a08a762b53448f87bcb003ae38473fe94e | b2044d10a36317b435f2bc70a2db498eb82f890f |
refs/heads/master | <repo_name>minhpqn/Algorithm-Dojo<file_sep>/code/count_inversions.py
""" Count the number of inversions in the array
Read integers from
"""
def load():
filename = 'SmallIntegerArray.txt'
filename = 'IntegerArray.txt'
numbers = []
try:
with open(filename, 'r') as f:
for line in f... | 0f9b4427aba7822e03b135db6af9e984a6105a25 | [
"Markdown",
"Python",
"C++"
] | 4 | Python | minhpqn/Algorithm-Dojo | 69d1069889284dc53d0aff6a0f47419b1559cb57 | 3280481cb033751c65899c5865645820a22ae3e2 |
refs/heads/master | <repo_name>AlexAntoine/Curry-Restaurant-Windows-Form<file_sep>/Curry Restaurant/Curry Restaurant/PizzaMenu.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Curry_Restaurant
{
class PizzaMenu
{
private string[] _size = {"Sm... | e143dd95d6c5b4092391956a1568ded53298f6ef | [
"Markdown",
"C#"
] | 2 | C# | AlexAntoine/Curry-Restaurant-Windows-Form | ebc27e6648b31146cbe7b5998bacdd46461fe5ae | 56d4c38b4e8c9f0aa2383c59d74fc7c45c2ba47f |
refs/heads/master | <repo_name>accolite/AU2021-PDFFormGen<file_sep>/README.md
# AU2021-PDFFormGen
In the DSschema we push our approach.
# SpringJpa
- this spring maven project contains the implementation of field group mapped to text field and number field with relation **ManyToMany** mapping..
<file_sep>/formapp/src/app/models/ListIte... | 856f424732716d80c2a3261f65fddd54ac5d393f | [
"Markdown",
"Java",
"TypeScript"
] | 15 | Markdown | accolite/AU2021-PDFFormGen | aa0dcdad381b8cecd4d47b9f18921f664bdf6aaa | b6f8cf35fadfa3d6dc89117e93da2382267fc37a |
refs/heads/master | <repo_name>Benjamin-eecs/Python-Tello-Control<file_sep>/README.md
# Python-Tello-Control
Controlling the Tello drone with Python
Based on the works from (https://bitbucket.org/PingguSoft/pytello)
## Requirements
For running the drone with video stream [MPlayer](http://www.mplayerhq.hu/design7/news.html) is needed.
#... | b191495d984244a141130eeec4f140efbe2cf94f | [
"Markdown",
"Lua"
] | 2 | Markdown | Benjamin-eecs/Python-Tello-Control | 050ebb2c6e07b64c7ef50aceccab5b822611bb75 | 0f56da5a66feccb72c0b9e82456f92c8ed55d341 |
refs/heads/master | <file_sep>import BrowserRouter from 'react-router-dom/BrowserRouter';
import React from 'react';
import { hydrate } from 'react-dom';
import { ensureReady, After } from '@jaredpalmer/after';
import { Provider } from 'react-redux';
import configureStore from '../common/store/configureStore';
import routes from '..... | 4aa2e5cbb29d361afc4f3b920d14d4bbeed05555 | [
"JavaScript"
] | 3 | JavaScript | fadiquader/try_after.js | dac444221dffbf11834dd932453e0df2baad662d | a91fe81d444e02644e53edbf7c38f2645b7b02bd |
refs/heads/master | <repo_name>kupavcevdenis/smeta3d<file_sep>/source/render/engine/Engine.cpp
#include "Engine.h"
#include "gl_render_system/GLContext.h"
namespace smeta3d
{
/////////////////////////////////////////////////////////////////////
///
SP_IEngine GetSingltonEngine()
{
static SP_IEngine ptrEngine = nullptr;
if (!ptrE... | 8cf42029745d876291216a290f470b6b11b8f5d4 | [
"C",
"CMake",
"C++"
] | 36 | C++ | kupavcevdenis/smeta3d | 7add4b6bc5e1726047527b24eab19dfe174dded5 | dfc66d78593989655420e67c25e9cca4d3943ff9 |
refs/heads/master | <repo_name>elielzamora/6006<file_sep>/lec4/heap.h
/**
<NAME>
6.006 Intro to Algorithms
Header describing:
- Priority Queue ADT
- Heap functions
- Heapsort
*/
typedef struct {
int * heap
int size;
int cap;
}... | e1742e3b9cc54e8323f686bab237a1027ee3693f | [
"C",
"Text"
] | 3 | C | elielzamora/6006 | dcef481ff975393c61f6f5952811b1651386dea6 | 3a041742a2f28fb693f66e6c2a96aa8ca25b6229 |
refs/heads/master | <repo_name>ShanilKoshitha/Blitz-Restaurant<file_sep>/Blitz.Services.OrderAPI/Messaging/AzureServiceBusConsumer.cs
using Azure.Messaging.ServiceBus;
using Blitz.MessageBus;
using Blitz.Services.OrderAPI.Messages;
using Blitz.Services.OrderAPI.Models;
using Blitz.Services.OrderAPI.Repository;
using Microsoft.Extensions.... | 2f61264df2bb88ea61a2d6332432410761d4f386 | [
"Markdown",
"C#"
] | 8 | C# | ShanilKoshitha/Blitz-Restaurant | b11c93ac5b6d265e675c1866657aa72eb970c43e | 00fc9ecd1bca5e66c63e47f469c05386f25d1518 |
refs/heads/master | <repo_name>datalink747/CinemaWorld<file_sep>/app/src/main/java/com/project/cinemaworld/FilmsFragment.java
package com.project.cinemaworld;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.s... | 174d50c3babab405596b8d829441343183807a7d | [
"Java"
] | 9 | Java | datalink747/CinemaWorld | 07aa90e20b211dde4026812329feb0c5d1386816 | af561f7a8cda32f7af2e41e2eac008e2ce255ee7 |
refs/heads/main | <file_sep>package models;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class HeroTest {
@Before
public void setUp() throws Exception {
Hero.clearAllHeroes();
}
@After
public void tearDown() throw... | 13fde837b7d364463ce4658212c217554b37fff4 | [
"Markdown",
"Java"
] | 2 | Java | lelemoyog/core-IPs-4 | 9fad69151c0f88f45dbddb673a6887e62e968703 | c2a41dde760a7dceccd9b25d80fc79652b799e99 |
refs/heads/main | <file_sep>def calculateCost(slope, intercept,data):
totalcost=0
for x in data:
hypothesis= slope * x[0]+ intercept
difference= (hypothesis - x[1]) **2
totalcost=totalcost+difference
totalcost= totalcost* (1/(2 *len(data)))
return totalcost
def calculateSlope(slope, yintercept,da... | 436b0c97dfe26eaf58185c99e2a78608df167ab9 | [
"Python"
] | 1 | Python | Jubayer-Hossain-Abir-404/Calculation-Of-Cost-Slope-And-Intercept | 0f3eaf2906f010071fc8fc241ae091464b971c68 | 755e0593976b0738bc31d85b00bf911b7964da9e |
refs/heads/main | <repo_name>Tadej23/ProductivityModules<file_sep>/DataModel/ProfessionCategory.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
namespace DataModel
{
[Table("tblProfessionCategory")]
public class ProfessionCategory
{
public i... | adb67b5e63d34b659d4d32b40e8e9b5d55a9cc32 | [
"C#"
] | 18 | C# | Tadej23/ProductivityModules | 638ae9dd816862dbb2c083b34adee1f74645605e | d83be23910686fac72325b1b485e2fc6cb042519 |
refs/heads/main | <file_sep>import Icon from './icon.js'
export default function SocialMedia(props = {}) {
let linkedin = props.linkedin || ''
return `
<div class="display-flex">
${linkedin
? `
<a
href="https://linkedin.com/in/${linkedin}"
target="_blank"
rel="noopener"
>
${Icon({
class: 'margin-right-1... | c363bb157a01145318d3a72c1922f455ab69b1cb | [
"JavaScript"
] | 1 | JavaScript | Aiden007700/begin-personal-website | ce454dad2f3bbdad36e661d529234e204392825a | 92a595bd9008f13b87b67a257d310d300f0c25f5 |
refs/heads/master | <file_sep>cryptography >= 2.5
hypothesis # tests
<file_sep>// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE... | ec01f70f02a47608b06e409a1cd9c31c37cfb8c4 | [
"Markdown",
"Python",
"Text",
"Go Module",
"C",
"Go",
"Dockerfile",
"Shell"
] | 57 | Text | google/glome | 48d28f82bd51ae4bccc84fbbee93c375b026596b | 4a7b598dd8f8f6f98117a2733984812f02d1333b |
refs/heads/master | <file_sep>// 1. Copy and paste your prototype in here and refactor into class syntax.
class CubeMaker {
constructor (attributes) {
this.length = attributes.length;
this.width = attributes.width;
this.height = attributes.height;
}
volume() {
return this.length * this.width * this.hei... | 53d75e496aa4232caf19ce09755c8c25d82dd239 | [
"JavaScript"
] | 1 | JavaScript | Thomas-Tuttle/Sprint-Challenge--JavaScript | 91277e323f29739f390614facd749034562f9db4 | 3137701b206c91485aa32573c211d8ecf9c858ba |
refs/heads/master | <repo_name>agushendra29/skripsi-climbing-nando<file_sep>/src/router/index.js
import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Sop from '@/components/Sop'
import Rute from '@/components/Rute'
import Register from '@/components/Register'
import Kodebooking from '@/componen... | 8d5e6f7dc631149aeae4d9182cce414f09689f42 | [
"JavaScript"
] | 2 | JavaScript | agushendra29/skripsi-climbing-nando | 09b3d916181e21c169302922d1806e771bce9074 | 5bd613960e580d40b7db1e0d3d14e8da97dc5479 |
refs/heads/master | <file_sep>package com.example.root.noseapp;
public class AngularMath {
public static double Normalize(double ang)
{
double angle = ang;
while (angle < 0)
{
angle += 2 * Math.PI;
}
while (angle >= 2 * Math.PI)
{
angle -= 2 * Math.PI;
... | 93f12c65726eff22aa9ddcd8fa09441238c29159 | [
"Java"
] | 2 | Java | justinklchan/NoseApp | e7f49db16a7069d77c2f621aecfaf6b903165adf | 93c14ce12aa2b0dd77daf5e4e31fac656564865a |
refs/heads/master | <file_sep># manual_submissions_jatc
This is the mock-up form that accompany the UX review of the JATC Manual Submission Functionality. Other Documents can be found here: https://drive.google.com/drive/folders/0B-8K-zhphHuNWmRkQUtSU2JudG8<file_sep>// Check for bad string while entering Student ID
function studentIdKeyt... | fd95e1cf5407934d3e47cb3d57753f431a8e17d4 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | chrisspring215/manual_submissions_jatc | 3f4a49d5e5d6121d5b576b70c2e87cb9b6b943ee | 5570d61e2cd30fea14058df75fc9119a265f8bc3 |
refs/heads/master | <file_sep>using System;
using System.Text;
namespace Mastermind
{
class Program
{
private const int CodeLength = 4;
private const int MaxNumber = 6;
private const int NumOfAttempts = 10;
static void Main(string[] args)
{
string intent = string.Empty;
... | b5f644aa670869908a674c504724423e00848753 | [
"C#"
] | 1 | C# | RitReshav/Quadax | 69164926354dfdddf2a12c21ceefec1db66d6703 | 5a963ecde2d5e8d1e4574561b5b20094c87f25ef |
refs/heads/master | <file_sep># deepC compiler tests
## Use Model
```onnx2exe model.onnx```
1. *bundleDir :* dirname("generated exe, i.e. a.out or model.exe");
1. *parameter file(s) :* in bundleDir
1. input file(s) :* with a path relative to current dir.
1. *output file(s) :* in current dir
## Example
```onnx2cpp mnist.onnx```... | c7fda71ef70a7ffcc59ba648e164f5b7666d3fc8 | [
"CMake",
"Markdown",
"Makefile",
"Dockerfile",
"Python",
"Text",
"C++",
"Shell"
] | 141 | Markdown | ai-techsystems/deepC | 064a7cc04f96e20013ad7ae26a6abd6ef16ab77c | 6c7df32ba61f2e85fc1eab5af4ef4f5c1368cf71 |
refs/heads/master | <repo_name>adrcoto/web-tasks<file_sep>/src/components/Groups/Groups.js
import React, {Component} from 'react';
import Layout from "../Misc/Layout";
import axios from "axios";
import '../../css/tasks.css';
import {Button, Col, Form, FormGroup, Input, Label, Modal, ModalBody, ModalFooter, ModalHeader, Row} from 'reactst... | f1ad8396a9ea402f1b412f58b8de84ba9f9d805d | [
"JavaScript"
] | 5 | JavaScript | adrcoto/web-tasks | 26916b8b4784268c2e132ac381be56e3691a8666 | 910ba7405ed04aa8e0e726a15067b8732b2f95d5 |
refs/heads/master | <repo_name>rafaelvalentine/ivynaturals<file_sep>/src/Components/Home/Home.jsx
import React, { Component } from 'react'
import { Jumbotron, Button, Card, Container, Row, Col } from 'react-bootstrap'
import { Helmet } from 'react-helmet'
import modelTwo from '../../Img/model-three.jpeg'
import modelOne from '../../Img/mo... | 315397ef33b68694438a1688516136a8afa07815 | [
"JavaScript"
] | 2 | JavaScript | rafaelvalentine/ivynaturals | 54d2d66d11ae5608aef8ecbbf292f1f5e52958a5 | a07d2744895d539a8ee0dd3085a499814b50d853 |
refs/heads/master | <file_sep>package edu.xcdq.tools;
import java.util.ArrayList;
import java.util.Collections;
public class Test04 {
public static void main(String[] args) {
ArrayList nums = new ArrayList<>();
nums.add(2);
nums.add(0);
nums.add(-5);
nums.add(0);
nums.add(3);
S... | 209ff57417ac9f2dca498c504dbd9d793a521b47 | [
"Java"
] | 5 | Java | WWW0121/Person.java | 11930356b5e4459b7ba9fb3f0eb47d7e6ffe8db4 | a97a94e91b216f3bcf4531033abe5f7769d46cd8 |
refs/heads/master | <file_sep>import firebase from 'firebase/app';
import 'firebase/storage';
import 'firebase/firestore';
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
var firebaseConfig = {
apiKey: "AIzaSyAIq-4FMc9i9MsrYho1u2qn1gn1A4DT564",
authDomain: "firegra... | f5fb801932f8625077551197f7f5d95d90797051 | [
"JavaScript"
] | 1 | JavaScript | sthasadin/firegram-imagegallery | e87cdcb43f8d9f57d5a865e1fc4a7a2730fe1429 | cb58fabb00322cf61644ad8113282ab323bdbba2 |
refs/heads/master | <repo_name>robin249/Magazine<file_sep>/app/models/comment.rb
class Comment < ActiveRecord::Base
# attr_accessible :content, :parent_id, :commentable_id, :commentable_type
# attr_accessor :parent_id
belongs_to :commentable, :polymorphic => true
has_many :comments, :as => :commentable, :dependent => :destroy
... | 791758e1649d93946b8c92c1ff09aad338d7f337 | [
"Ruby"
] | 2 | Ruby | robin249/Magazine | 143c39c4585ea4aa3ec310a3b46e16d631ed3199 | 5dc95c5f38f6a16af2cfb1e2901cf14d64b06d3c |
refs/heads/master | <repo_name>dnarasi1/chandy_lamport_algorithm<file_sep>/controller.py
import bank_pb2
import sys
import socket
from time import sleep
import random
if __name__ == '__main__':
s_id = 1
amount = int(sys.argv[1])
fn = sys.argv[2]
b = []
branchSocList = {}
port_map = {}
with open(fn) as f:
... | d216f68a0b4bddf27d12fa150598cd700bded564 | [
"Markdown",
"Python"
] | 3 | Python | dnarasi1/chandy_lamport_algorithm | 1a8f6595e2c51146a9774a2e28ea47d4f59e7b79 | 4d865ff9f9d0faf13e9d36a381ebd6ff73c9f597 |
refs/heads/master | <file_sep><!DOCTYPE html>
<html lang="en">
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>SportsSocialRank</title>
<!-- Bootstrap core CSS... | 7256a7952b58f631ecb02614c8fa4474d0131de5 | [
"Python",
"PHP",
"INI"
] | 33 | PHP | gchamoun/SportsSocialRank | 2a77884b42b1e6d36fcfb67244c1460d6cfcdc21 | c6625e6b872b28499fa5345d1b369e5e295b3ed2 |
refs/heads/master | <repo_name>IsharaDissanayaka/Health-Care-System-PatientManagement<file_sep>/README.md
# Health-Care-System-PatientManagement
RESTFUL API web service
<file_sep>/DB/hcs.sql
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 06, 2020 at 09:04 AM
-- Server v... | b534ddb7f1bc3a2da46ede9323ce9919bd7e6106 | [
"Markdown",
"SQL",
"Java"
] | 4 | Markdown | IsharaDissanayaka/Health-Care-System-PatientManagement | 7aa39bc0752003a09cdc70663847373fe4a29028 | 8ab805310ec659edc2db625f3c92772a4edca5c1 |
refs/heads/master | <repo_name>devquasar/task-app-backend<file_sep>/src/modules/tasks/dto/tasks.dto.ts
import { ApiProperty } from '@nestjs/swagger';
import { IsString } from 'class-validator';
import { Tasks } from '../model/tasks.entity';
import { User } from '../../../user.decorator';
export class TasksDTO implements Readonly<TasksDTO... | c776565fa6ef9e771f6eabd870032854ddb63fdf | [
"Markdown",
"TypeScript"
] | 5 | TypeScript | devquasar/task-app-backend | 4977231ec7bece7b55cb97dd231cb0b224f7b983 | 75121eacd8c8df14438b3999a63ae2901ff4b939 |
refs/heads/master | <repo_name>NaldoRonz/info3180-Project1<file_sep>/migrations/versions/c9174ff09bef_.py
"""empty message
Revision ID: c9174ff09bef
Revises: <PASSWORD>
Create Date: 2020-03-30 13:59:36.345481
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c9174ff09bef'
down_revi... | ca16e82ffe879d49923fd5b27bc8592267347c0c | [
"Python",
"Text"
] | 6 | Python | NaldoRonz/info3180-Project1 | bacae43d8e7032b784d07cfcfea9527b9840b312 | 1e889f504b6fc308b78af78c1c065cb4f4ca1fc8 |
refs/heads/master | <file_sep>package com.kgc.controller;
import com.kgc.pojo.Studentinfo;
import com.kgc.service.StudentinfoService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.annotation.Resource;
import javax.servlet... | 548f9f1e761bb23cfed559ac9cf7dbdf6293b633 | [
"Java"
] | 3 | Java | shangfuchenggithup/10- | a45305a2dbe2d577f3c3281a1ea1b27abfc181b2 | c7e931ced4d5d477f8608af6da9a6e19288fb6eb |
refs/heads/master | <repo_name>koshevoytimur/Grampus<file_sep>/Grampus/PieChartViewController.swift
//
// ViewController.swift
// Pie Chart View
//
//
import UIKit
class PieChartViewController : UIViewController {
let pieChartView = PieChartView()
let simplePieChartView = SimplePieChartView()
let bestLooker = 1
... | e18b5025a2b4adca09b780cdba0f0c2e6a7dbaad | [
"Swift"
] | 1 | Swift | koshevoytimur/Grampus | c62ddf5de4a80f81013fdab35a618dc2ff25f5b8 | 4eb36d865f2e788b4cb2c01f96087fc7c9b476a6 |
refs/heads/master | <file_sep>first_number=3 # Add your variables here
second_number=-5
sum=first_number + second_number
difference=first_number - second_number
product=first_number * second_number
quotient = first_number / second_number
| ae86e428d311b234eada59d795484a5b08d854bd | [
"Ruby"
] | 1 | Ruby | myildiz17/reading-errors-and-debugging-how-tests-work-chi01-seng-ft-062220 | 3d82ab8cca486869d288ed5c895a2c33c357710c | 33fa0183b2ef59fbb703eb4784465c1d3c58087a |
refs/heads/master | <file_sep>from setuptools import setup
setup(name="CloudCarver",
version="0.01",
description="Stuff",
author="<NAME>",
packages=['cloudcarver']
)
<file_sep>from cloudcarver.errors import HandlerError
__author__ = 'jdenning'
import logging
log = logging.getLogger()
try:
import salt.client... | d9d213f586d89bcf84a697d096dfed2d41e7e3b0 | [
"Python",
"reStructuredText"
] | 11 | Python | jasondenning/cloudcarver | 65c5b18a98e122de9d943ad591e0b286d602f611 | ebac2194b077d3a8a058c9c3331dafcc65c0cf81 |
refs/heads/master | <file_sep>export interface CongressMemberLeavingOffice {
congress: string;
chamber: string;
num_results: number;
offset: number;
members: LeavingOfficeMember[];
}
export interface LeavingOfficeMember {
id: string;
api_uri: string;
first_name: string;
middle_name: string;
last_name: string;
suffix... | b208d612f3d776effe77a10a94b5c2d093bd8570 | [
"Markdown",
"TypeScript",
"JavaScript"
] | 10 | TypeScript | william-takayama/react-usa-congress | 6b1e89d46f502a84ca229a9a488b9f1689a2d25b | 9346bbd8e85261b9a474fd0e271a400d41b463f6 |
refs/heads/master | <repo_name>jyolo/atcmf<file_sep>/app/crm/validate/ServiceApplyValidate.php
<?php
namespace app\crm\validate;
use app\crm\model\Enterprises;
use app\crm\model\ServiceGoods;
use think\Validate;
class ServiceApplyValidate extends Validate
{
protected $rule = [
'company_id' => 'require|number|isExistCom... | 6c27fa5965cf370c14aa70073bd37fc0a2026429 | [
"HTML",
"PHP"
] | 47 | PHP | jyolo/atcmf | f2759cc753fd037f8f720adae74d95a6951232d0 | ba8f4fd50c414be439660d3e6b943c9247f49c70 |
refs/heads/master | <file_sep>angular.module('starter.directive', [])
.directive('hideTabs', function ($rootScope) { //隐藏底部tabs指令
return {
restrict: 'AE',
link: function ($scope) {
$rootScope.hideTabs = 'tabs-item-hide';
//监听$destory事件,这个事件会在页面发生跳转的时候触发
$scope.$on('$destroy', function () {
... | f502b92028dbc4c955e98e58584cff83c4e40fc8 | [
"JavaScript"
] | 2 | JavaScript | DreamPWJ/callcenter | 9bc85966c40a9286bd784d7f2b75769b1e7cd2d2 | c1c66f0c3dac2b02540654a2243427b5b570d7f7 |
refs/heads/master | <repo_name>EBrown8534/BrainfuckSharp<file_sep>/Brainfuck Interpreter/Transpiler/TokenSymbol.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BrainfuckSharp.Transpiler
{
public enum TokenSymbol
{
None,
MoveLeft,
... | 478f8e6ccdd85f484bd592b5c5244f5d796f0e1a | [
"Markdown",
"C#"
] | 7 | C# | EBrown8534/BrainfuckSharp | 2ed85b3610d9c903ac66e39c3f4f281cfec00754 | 400e4f84654ce78f3f90abacb5f0619ec8372844 |
refs/heads/master | <repo_name>toalamin/crm<file_sep>/app/Models/Expense.php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Expense extends Model {
//not column protechted for save
protected $guarded = [''];
//default timestamps remove
public $timestamps = false;
//date formate
protected ... | 93b3c50b364f4b0c8ab381a459372ba3645cf92f | [
"PHP"
] | 3 | PHP | toalamin/crm | 2e4aa38e97ff4d6a94ce20077446dbb3d8b14b1b | 3a1d0f1f63384ae56a0e0cc224e32667375b92e0 |
refs/heads/master | <file_sep>import React, {Component} from 'react';
import '../style/App.css';
import axios from 'axios';
import MonthList from './MonthList.js';
class App extends Component {
constructor(props) {
super(props);
axios.get(`xxx/feriados`).then((resp) => {
this.setState((prevState) => (
... | 88aca8634f82c0e7e8da7cf98d2bed6550c48b8a | [
"JavaScript"
] | 2 | JavaScript | AWRyder/uptest | 1967ec40191167a7875bf2efdeac0e421d7dfa2a | 666294de540571fc195123c9145cb81f61e4acf6 |
refs/heads/master | <repo_name>eddy-anderson/hw04<file_sep>/Makefile
EDITOR = /usr/bin/gedit
INDENT = /usr/bin/indent
CC = clang
LDFLAGS = -o
Libs = -lm
CFLAGS = -Weverything $(LDFLAGS)
SOURCES = indented_circle.c
EXECUTABLE= indented_circle
OBJECTS=$(SOURCES:.c=.o)
.SUFFIXES:
.SUFFIXES: .c .o .h
.PHONY: edit clea... | a71f8e72c0fc3e74bbd99c757ce514fa4395d4aa | [
"Markdown",
"C",
"Makefile"
] | 3 | Makefile | eddy-anderson/hw04 | c31c8a75cfb4622f1a43a9a36198be60c9222387 | 9769effb2f0ba014f76247ed19facef9e419135b |
refs/heads/master | <repo_name>kishankunal/CSE316Assingment<file_sep>/Question_no_17.c
#include<stdio.h>
#include<stdio.h>
#include<stdlib.h>
struct process
{
int Procees_number;
int Arrrival_Time, Waiting_Time, TurnTime, Priority, BurstTimeCopy,BurstTime;
}Queue1[10],Queue2[10];
int main(void)
{
struct process temp;
int i,ti... | 1aaecb44e6102a0661e1cd94e56f52ab57ed5ef3 | [
"Markdown",
"C"
] | 3 | C | kishankunal/CSE316Assingment | d5c489f826fd3f3cf5df4be1dd73d19cc297f834 | db0ee4a37c6900b98bfbba72010158c3481f07af |
refs/heads/master | <file_sep># Pictroid
## About
This is a school project. It is intended to teach programming beginners the basics of programming by using pictures as
the programming instructions. It looks as follows:

## Try it
[Here](http://alainhorner.ch/experiments/pictroid) you go
... | 4fbc026d5e4734f342049cd650324dda12efea9c | [
"Markdown",
"JavaScript"
] | 2 | Markdown | elHornair/pictroid | 24be093b453e923a8d88052123a8269dbc2ebb12 | d9a281d8eb9c29da7bd111ea47178c760d8ca30c |
refs/heads/master | <repo_name>heremyas/file_organizer<file_sep>/main.py
# OBJECTIVES
# list files in a directory
# check files (folder or not)
# check extension name
# create directories based on their ext name
# move files to corresponding directory
from os import listdir, path, mkdir
import shutil
TARGET_DIR = "path/of/target/directo... | 16aa4418b1d858cc21297179218f0454a38e7e3f | [
"Python"
] | 1 | Python | heremyas/file_organizer | 474b511233f00cd4a4931a9e604ed57358d442f7 | df898c3645aef6ce02ff95fda53e5661a2bcfeb8 |
refs/heads/master | <file_sep># Crawler
爬虫实例
<file_sep>// Crawler project main.go
package main
import (
"fmt"
"github.com/henrylee2cn/pholcus/exec"
_ "github.com/henrylee2cn/pholcus_lib"
)
func main() {
fmt.Println("Hello World!")
exec.DefaultRun("gui")
}
| 28e6d35922132c605cfcb4a493ef76f840acf895 | [
"Markdown",
"Go"
] | 2 | Markdown | liyoung1992/Crawler | 18186439b6b6a56459895de9abb25dc48f2f1ce9 | 37bce708f1822ceafde86f0e962b94ec4c1fbf0f |
refs/heads/master | <repo_name>QuantumThings/TPE-2019-site<file_sep>/app.js
if ( WEBGL.isWebGLAvailable() === false ) {
document.body.appendChild( WEBGL.getWebGLErrorMessage() );
}
var container, stats;
var camera, cameraTarget, scene, renderer;
init();
animate();
function init() {
container = document.createElement( 'div' );
document.... | 70f4dec5310a733d1397eab4a05162b3e447b387 | [
"JavaScript"
] | 1 | JavaScript | QuantumThings/TPE-2019-site | bd7c2a8f3a089654913cef3d518ae844a1d7c66d | 1fb9122bae92df2233e38efc81b296000276c47c |
refs/heads/master | <file_sep>if(location.host == '192.168.1.188'){/*如果是测试连接*/
//项目名称
var workspace= 'maotai-backstage';
var getAjaxOrigin = function getAjaxOrigin(){//返回请求接口的 origin
return 'http://maotai.hmsh.com';
};
var loginPage = function loginPage(){
//通过项目名称变量 拼接正则
var x = workspace.replace(/\-/ig,'\\-').replace(/\_/ig,... | 9391820083d99cbbb0cefc2aff89c3eef4f8da74 | [
"JavaScript"
] | 3 | JavaScript | r0o0en/maotai-backstage | ecad742170d118fcb1fc419f209d3c94d0d0667f | 2f9b850935ba61c2a4e2340913a9855cde4e6808 |
refs/heads/master | <file_sep>import {Component} from '@angular/core';
@Component({
templateUrl: './app/products/products.html',
styleUrls: ['./app/products/products.css']
})
export class ProductTemplate { }<file_sep>import {Component} from '@angular/core';
@Component({
templateUrl: './app/template/template.html',
styl... | 64c5cfc6b1958d16f23b557ecb85879f5a0bb7f0 | [
"TypeScript"
] | 10 | TypeScript | karthikchintala64/Angular2SharePointAppWorking | cc8f22256af561f8304520df4e30f2b365270be8 | 282f875f67723a6e4913155515fd0de7045f6f5b |
refs/heads/master | <repo_name>Hari-55/My-Cat<file_sep>/app/src/main/java/com/hari/mycat/presentation/cat/CatViewModel.kt
package com.hari.mycat.presentation.cat
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.hari.mycat.domain.cat.entities.CatEntity
import com.hari.mycat.domain.cat.usecases.GetCat... | ac6b6b223e0c56c9a0e3fd4e7133a03e6f8fa7a0 | [
"Markdown",
"Kotlin",
"Gradle"
] | 19 | Kotlin | Hari-55/My-Cat | c4c9c1540d905c4e39f946516840ef3667e9ee9b | b6ee14ed1ae8c33f240943dfc4da043c4a77730c |
refs/heads/main | <file_sep>package contract
type HabrDownloaderService interface {
DownloadBestTitles() ([]string, error)
}
<file_sep>module github.com/kshvyryaev/cyber-meower-habr-worker
go 1.17
require (
github.com/pkg/errors v0.9.1
go.uber.org/zap v1.19.1
)
require (
github.com/google/wire v0.5.0
github.com/kshvyryaev/cyber... | 8955371ea759e3df01b0896db60fb7792fa5b524 | [
"Markdown",
"Go Module",
"Go",
"Dockerfile"
] | 13 | Go | kshvyryaev/cyber-meower-habr-worker | 283a182097d6e57417f8a9f4019a7284f011627e | 5557fdfed63d51c7f986a81d9cd4df8176679516 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SoundManager : MonoBehaviour
{
public static SoundManager soundManager = null;
public AudioSource loopSfx;
public AudioSource singleSfx;
public AudioSource bgSfx;
void Awake()
{
... | 5007325a420712034d42ea8487b7572600e0d590 | [
"Markdown",
"C#"
] | 11 | C# | eleanoot/ChattingTheRPG | ba07dd2eaf07e0dbe2c7a53ec11f6c2e7ae2cc43 | 9173def3480a3eae652d0c78ceed56d4c5b38402 |
refs/heads/master | <repo_name>sayyar-source/ASP.NET-Core-Health-Checks-Exampels<file_sep>/HealthCheckexample/Health/TestHealthCheckWithArgs.cs
using Microsoft.Extensions.Diagnostics.HealthChecks;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace HealthChec... | abd3cd5bfd1c6f331a4d64c8dbd88633b2fc0dfa | [
"Markdown",
"C#"
] | 3 | C# | sayyar-source/ASP.NET-Core-Health-Checks-Exampels | cdf37d6b7f3e53b1c3ae29682b28996cfab01751 | a3e32a69682814fa4a1573ab3562ac35806bc709 |
refs/heads/master | <repo_name>liuq123/repos3<file_sep>/spring/src/main/java/com/liu/spring/model/MutablePropertyValues.java
package com.liu.spring.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class MutablePropertyValues implements PropertyValues {
private List<String>... | ab8429df9ea2a18e4334484564641b52926ede97 | [
"Java"
] | 41 | Java | liuq123/repos3 | 3134df10dbe8d7aa2ebd96560251d81ddb7ffa3d | 1a3ab6521493d1489419542ca17465a5d6f6124c |
refs/heads/master | <repo_name>nguahoangxq/project<file_sep>/scr/forms.js
////////////////////////////////////////////////////////////
String.prototype.escape=function(){return(this.replace(/"/g,'\\"'))};
const safeJSON=function(keys,vals,i=0,a=[]){if(keys.length!=vals.length)throw(null);for(;i<keys.length;i++)a.push(`"${keys[i]}":"${va... | bf2d61cd26f5c96641fafe31cdd971c5cc0c5803 | [
"JavaScript"
] | 2 | JavaScript | nguahoangxq/project | fcfc4888d90a5a379e0d90f7698af5e9c5aa83a1 | dbb378fa12a7f7ccc37bdb71543c8ed4ad43506e |
refs/heads/master | <file_sep>imparse
=======
Parser generator that can be used to quickly and succinctly define a parser definition, and to deploy an automatically-generated implementations thereof in multiple languages and on multiple platforms.
Directory Structure
-------------------
The directory structure is as follows:
* `/Pytho... | 08ea09b5a5bab2a3b476e19ad4895e51716f750b | [
"Markdown",
"Shell"
] | 2 | Markdown | wevial/imparse | c3736774a33ab80240160e7f57ef7e2876b9b121 | 75b4757008c728f40cb14a99da3594ec437c7f55 |
refs/heads/master | <file_sep>import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
/**
* vuex数据流
* vue组件(发出dispath请求) ——> actions(commit提交)——> mutations(改变state) ——> render更新组件状态
*/
const store = new Vuex.Store({
/**
* state:
* 这里面主要定义了需要的属性,只有在这里定义的属性,在使用时才能获取的到
* 存储数据,存储状态;在根实例中注册了store 后,用 this.$store.stat... | 13883bd71a2402662672fd1be9da857adbeed8ff | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | wangjuaneisr/webpack4-vuex | eefb707d64daf49ae136bcd197e0eec5b3161c6f | 9f85f753cdecf910c880dc4a4df15fbd36e984cb |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import { AgmCoreModule } from '@agm/core';
import { MapService } from '../map.service';
import { Marker } from '../marker';
import { Promise } from 'q';
import { LogService } from '../shared/log.service';
import { HttpClient } from '@angular/common/http';
imp... | 895f90a56205bed0fd175108b2747d73a90cd50c | [
"TypeScript"
] | 1 | TypeScript | zachflanders/streetlights-openlayers | 70bb65f3fc8a89987798b2bf7424529852907fdd | 82f566a191462c98bd646b671b5627ba31994d78 |
refs/heads/master | <file_sep>package com.hoanghiep.webtravel.repo;
import com.hoanghiep.webtravel.model.Role;
import org.springframework.data.repository.CrudRepository;
/**
* Created by hoanghiep on 6/18/17.
*/
public interface RoleRepository extends CrudRepository<Role, Integer> {
Role findByName(String name);
}
| 5289371018284b18fed0c2181fa7938d39acaaeb | [
"Java"
] | 1 | Java | TranHoangHiep/Project | 1f1b6dc6720c272e6798b819a442bf3335b66a27 | 61c764cfcfef8280273b8ac4c04f1533556537b2 |
refs/heads/master | <file_sep>mod lib;
use lib::*;
use std::time::{Duration, SystemTime};
fn main() {
let mut input = vec![[4, 1], [2, 3], [1, 2], [5, 3], [4, 4]];
let now = SystemTime::now();
for _ in 0..1000000 {
let mut to_sort = input.clone();
sort(&mut to_sort);
}
match now.elapsed() ... | 93f42b2fe4e8e1314acdcc954bedcce8d6bb0129 | [
"Rust"
] | 2 | Rust | tbourg/sorting_algo | 90497d20cb61e5d7b4a2d55bdda90b1be047e574 | 6478e2a08aba04952fc392755f6781db58f3d224 |
refs/heads/master | <file_sep><?php
class Database {
protected $db_name = "mysql:host=localhost;dbname=arsip;";
protected $username = "root";
protected $password = "pwd";
public $db;
public function __construct(){
$this->db= new PDO(
$this->db_name,
$this->username,
$this->password
);
}
public... | ca13970d02476d57aa47c628f89f6bdbfc120b14 | [
"SQL",
"PHP"
] | 6 | PHP | r17x/AKRAM | af52a68cf19c0fed76d9c74a068555fe137b3b6b | b5aab0bc3681aa66292d642bbe58cafe500f8ac7 |
refs/heads/master | <repo_name>ktoroshchin/tictac<file_sep>/README.md
Play [TIC-TAC-TOE](https://tictac-ef8e4.web.app/).
## Available Scripts
This is 2 player tic-tac-toe game, where 2 people can play from different computers or browser windows
## Stack
1. React
2. TypeScript
3. Node
4. Firebase
5. Semantic-UI
## Run locally
1. Clo... | 6a639d1cde6336aff6b972a978d146bafa7caab2 | [
"Markdown",
"TypeScript"
] | 3 | Markdown | ktoroshchin/tictac | b376d351db6dc8ff5d6f097e36aae3c2b26b4d38 | 65204e5a83edc1f9d0743c8f1443aabb9551cb97 |
refs/heads/master | <file_sep>package tech.sree.com.listviewcomplex;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.Switch;
import android.widget.TextView;
import android.widget.Toast;
public cla... | 44fdacbaa3e3ada335acb51a30ac06ea66b8e390 | [
"Java"
] | 1 | Java | arunkk-git/ListViewComplex | 6c00085ebb5112892ce000b4ac3033792ff338a1 | 8636c8590a00ef1cb0fd852825a0daab1fda469a |
refs/heads/master | <file_sep>const button = document.querySelector('input[type=submit]');
const answer = document.getElementById('answer');
button.addEventListener('click', displayResult);
function displayResult(){
let n1 = Number(document.getElementById('n1').value);
let n2 = Number(document.getElementById('n2').value);
let acti... | 21bb79822a4d8f6a97274c28e4fb84c14c4ea9e0 | [
"JavaScript",
"HTML"
] | 10 | JavaScript | linapilipa/CodeAcademyLT | b710c8859bc2e8ddbdbe0a13c875379ff4e7288b | e743ecca1ba0ec34fff3c4250d465de66a08bdf0 |
refs/heads/master | <repo_name>jessie110/codefairies-homework1<file_sep>/homework2.go
package main
import (
"fmt"
)
var fairyAnimals = []string{"fly", "spider", "bird", "cat", "dog", "cow", "horse"}
var swallowAnimal = map[string]string{
"spider": "That wriggled and wiggled and tickled inside her.",
"bird": "How absurd to swallow ... | 070685afed02569db643e80c3988a50e84f1aa34 | [
"Go"
] | 4 | Go | jessie110/codefairies-homework1 | 9114e264cb47e9346a20903e22f4c29cb296f81e | 8a46b3b4f2970cd7a15c10bd45cb05627430745d |
refs/heads/master | <repo_name>Andrei199541/Angular-Adminca<file_sep>/template/adminca_v2.0.1/tools/gulp/gulpfile.js
var gulp = require('gulp');
requireDir = require('require-dir'),
browserSync = require('browser-sync'),
imagemin = require('gulp-imagemin'),
pngquant = require('imagemin-pngquant'),
rename = req... | c75015bf8b3fba427058ff0216ceb47ec06b2177 | [
"JavaScript"
] | 9 | JavaScript | Andrei199541/Angular-Adminca | 4310392195608cb75aef9a77ae3cfa33e98a4f27 | 986209a5288c39d5442c42cfffae1379e81e3710 |
refs/heads/master | <repo_name>MrHacker499/illusion-music-bot<file_sep>/README.md
## Illusion Music Bot
### Created by Tetrabyte#4866
---
### If you need help you can DM Tetrabyte#4866 on Discord or submit an issue with what you're having trouble with.
---
### Todo List before public
- [x] Setup base bot project
- [x] Setup command h... | b4986793893768acb12b15bf091037085c7e6e5d | [
"Markdown",
"JavaScript"
] | 2 | Markdown | MrHacker499/illusion-music-bot | 0893e0368b00548313515bedf84b71a4462fb6e9 | e3db0bcc4f12bd13fbbfb5ff231f94e0fcdb5cfa |
refs/heads/master | <file_sep>module.exports = {
read: function(req, callback) {
var data = '';
req.on('data', function(chunk) {
data += chunk;
});
req.on('end', function() {
var bytes = [];
for (var i=0;i<data.length;i++) {
bytes.push(data.charCodeAt(i));
}
callback(bytes);
});
}
};<file_sep># document-exch... | 57310730e9008caee8378bb5cde54f17ea0726bc | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | roycenobles/docexc | cf9edbc1f44a7fb8a4e31686025d93102d0ee66c | 8183bd3e06271555ec974db6df7022834adcb8a3 |
refs/heads/master | <file_sep>import argparse
import onnx
import os.path
import sys
from onnx_tf.backend import prepare
import numpy as np
import tensorflow as tf
# Test inputs
TEST_INPUTS = np.array([[[-0.5525, 0.6355, -0.3968]],[[-0.6571, -1.6428, 0.9803]],[[-0.0421, -0.8206, 0.3133]],[[-1.1352, 0.3773, -0.2824]],[[-2.5667, -1.4303, 0... | a776cda11bf120e3479bc7a80d32e835e457f375 | [
"Markdown",
"Java",
"Python",
"Dockerfile"
] | 5 | Python | coli-saar/onnx_to_tensorflow | d988755a7d3664a5415f1b8a566a9e295e5f8808 | ba5d1a5f14b015b87d21614d05e3b5fce8c11225 |
refs/heads/master | <file_sep>var messages = {results:
[ {username: 'josephine', text: 'Hey Hey Hey', roomname: 'Pinnacles'},
{username: 'john', text: 'Hello Hello Hello', roomname: 'Valley'} ]
};
var headers = {
'access-control-allow-origin': '*',
'access-control-allow-methods': 'GET, POST, PUT, DELETE, OPTIONS',
'access-con... | 7d150ec13fbd221e07b1a4675266a3df1c1f0287 | [
"JavaScript"
] | 1 | JavaScript | joeyzaozaoli/chatterbox-server | f170cae2afcf962e0180c8c23c3e3633f8176030 | f17074579f272758dfe1cc0ffeb39c11e20d35e8 |
refs/heads/master | <file_sep>const Product = require('../models/Product');
// ПОЛУЧЕНИЕ полного списка продуктов.
const getAll = (req, res) => {
Product.findAll()
.then((data) => {
res.render('index.hbs', {
products: data,
});
})
.catch((err) => console.log(err));
};
/... | 201bbc70788dac6155153e4c4740dc27f83bf791 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | Sholastix/CRUD_full | a8b1be9160b59cfb3e0bb6affc1d59eeb8ef3ff7 | 02a1906dfa02a0f23129dc4689c621696c60b25f |
refs/heads/master | <file_sep>package EllerBank;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import com.mysql.jdbc.PreparedStatement;
public class editAccount {
static final String JDBC_DRIVER = "com.mysql.jdbc.Driver"; ... | 45bce21df910b3da93d292e33c28c7ca8b892466 | [
"Markdown",
"Java"
] | 4 | Java | lizardlab/EllerBank | 9432181d086c783c8b338b1ec94f9d89a6a0b755 | fef39c6d98dcbf3bd1358913307200815d66c883 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.