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>tws0002/Maya-TurnTable<file_sep>/README.md
# Maya-TurnTable
Turntable maker script for Maya
<file_sep>/main.py
import maya.cmds as cmds
import maya.cmds as cmds
class Turntable:
def __init__(self):
self.obj = cmds.ls('object')[0]
cmds.ctxEditMode()
cmds.CenterPivot('{}'.forma... | 17fa0c3342f36613d01f0828d3d2d963ae1abcda | [
"Markdown",
"Python"
] | 2 | Markdown | tws0002/Maya-TurnTable | 9e6d96e6966642bbb64b3e43a15574599889f2fb | 0386e91017a9dd1dc3f26057e1f79d93424d7ef2 |
refs/heads/main | <file_sep>from typing import Dict
REMOVED = 'removed'
UPDATED = 'updated'
ADDED = 'added'
EQUAL = 'equal'
DICT = 'dict'
def compare_dictionaries(dict_1: dict, dict_2: dict) -> Dict[str, list]:
all_keys = (dict_1.keys() | dict_2.keys())
diff_keys1 = (dict_1.keys() - dict_2.keys())
diff_keys2 = (dict_2.ke... | 87cb98201048a145e4350d2a84a8566b5caacb5c | [
"Markdown",
"TOML",
"Python",
"Makefile"
] | 10 | Python | DirtyHippy/python-project-lvl2 | 91b9427231cd3fde4677e35cf16aa3de6bec8860 | 13c6273abbebdbbb387f407a9885f9e8eb064a83 |
refs/heads/master | <file_sep> using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using RimWorld;
using Verse;
using Harmony;
namespace Psychology.Harmony
{
[HarmonyPatch(typeof(PawnObserver), "ObserveSurroundingThings")]
public static class PawnObserver_ObserveSurroundingPatch
{
... | 0b20339e99d8c1cde0d353edf0db1c6b1e650bad | [
"C#"
] | 46 | C# | XNoNameX/Psychology | dd8c8618820f7590f09c68fef60ffca1e5bd8f97 | 0260a5408f4e71dce616083e9a38f062e433a747 |
refs/heads/master | <file_sep>package com.example.mvprxjava.UTILS;
import com.example.mvprxjava.UTILS.GETNEWS;
import io.reactivex.Observable;
import retrofit2.http.GET;
public interface MODEL {
@GET("v2/top-headlines?country=us&apiKey=92f2436407be44c6a15bbe1693fd95ee")
Observable<GETNEWS> getNEWS();
}
<file_sep>package com.e... | 75d868ee7e77a69afeab89aceb09071d15d726f5 | [
"Java"
] | 3 | Java | zeyadelosherey/MVP-Retrofit-RXJAVA | 832b61e947321d26fd4080ca6d1a53bdc763259b | 916eb291b2294d275b747e2c5599100ff11bf9ff |
refs/heads/master | <file_sep>def pluralize(lst):
nova = set(lst)
resp = set()
print(nova)
for item in nova:
print(item)
if lst.count(item) > 1:
resp.add(item+"s")
else:
resp.add(item)
return resp
print(pluralize(["cow", "pig", "cow", "cow"]))<file_sep>def card_hide(card... | 055b6975c62a2ff17bdfd6c73ac53c5ec9f8765c | [
"Python"
] | 65 | Python | LaraGastaldi/edabit_exercises | 9cf1fbd1ae79f2b0145ce488f4987b06a1b192cf | 9a633dd1fcf048a0a6e24c11e643726ca83a21e3 |
refs/heads/master | <repo_name>sequae92/Hotel-Cluster-Recommendation<file_sep>/exploreTestData.py
import pandas as pd
import random
#import original data
destinationsData = pd.read_csv("data/destinations.csv")
testData = pd.read_csv("data/test.csv")
trainData = pd.read_csv("data/train.csv")
#See how many rows are in the training... | b4506cdc630ee0d2797d6ecf30b97372dd7e569a | [
"Markdown",
"Python"
] | 3 | Python | sequae92/Hotel-Cluster-Recommendation | 7998df26a2398ad9e0ce7d1c73e982582e89addd | e06211969be4949da6d18d39c6e614ab6ef71da6 |
refs/heads/master | <repo_name>Johnloveiv/interactive-decision-tree<file_sep>/_THEME.php
<?php define("BOOTSTRAP_THEME","united.bootstrap.min.css");<file_sep>/schema.sql
-- phpMyAdmin SQL Dump
-- version 3.4.10.1deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jan 16, 2014 at 10:09 AM
-- Server version: 5.5.34
-... | 7410781f6d9aaea9b74c16c398d414f459d912f0 | [
"SQL",
"PHP"
] | 2 | PHP | Johnloveiv/interactive-decision-tree | 83de75f452c846be22067f2cdcc3a7a85a5bc1fe | d916def55d2c39db33ca51976b1f208ec5ed62a3 |
refs/heads/master | <file_sep>package np.com.shresthakiran.covid19tracker;
import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
import android.os.Bundle;
import android.widget.TextView;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
im... | 94875177ad8bd71e36cc76564368105242c0a0d8 | [
"Java"
] | 1 | Java | ikiranshrestha/COVID-19-Tracker | f9fe6503e9cb34946e519a0e304efbd2816b1371 | f470751e2d570f704216ff4c25aeeb6595003c59 |
refs/heads/master | <repo_name>mavyasoni786/BaseProjectKotlin<file_sep>/BaseProjectKotlin/app/src/main/java/com/summer/baseprojectkotlin/binding/AppBinding.kt
package com.summer.baseprojectkotlin.binding
import android.databinding.BindingAdapter
import android.support.design.widget.TextInputLayout
import android.widget.EditText
impo... | c3afd605e1f30f5bc3343044a70d2062b543cab3 | [
"Kotlin"
] | 7 | Kotlin | mavyasoni786/BaseProjectKotlin | 5de58fd43ad1e31e7630c39810faa20d861b033b | 60e1e3af7c7aea1821ef0688379650a254044021 |
refs/heads/master | <repo_name>nassiddharth/Appium<file_sep>/com.appiumpractice/src/main/java/TataBase/baseTataCliq.java
package TataBase;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.rem... | 3e434fb7913eeb936463a2c28882dd6bfb01992c | [
"Java"
] | 15 | Java | nassiddharth/Appium | cf95a7870e866b12512679d1d91083b54948d5c6 | e5adc9e6fcff9b843e35935f210ab336a5b69838 |
refs/heads/master | <repo_name>steroids/swagger<file_sep>/tests/unit/SwaggerTest.php
<?php
namespace steroids\swagger\tests\unit;
use PHPUnit\Framework\TestCase;
use steroids\swagger\extractors\AstExtractor;
use steroids\swagger\extractors\ClassMethodExtractor;
use steroids\swagger\extractors\ModelExtractor;
use steroids\swagger\extract... | 2caa0a40971aeb1fe235aab4dcf45d8cd0fc9087 | [
"Markdown",
"TypeScript",
"PHP"
] | 29 | PHP | steroids/swagger | 3a8b1ee3010c13d7d7c840941470b5381a4fa110 | 8daeeb7d9de3e0a884470971b17d02ca360b3901 |
refs/heads/master | <repo_name>DWtiangu/wwk<file_sep>/os/.svn/pristine/3d/3d6d5f7b9a1865dcbdebb4d028e619629cc17b29.svn-base
#ifndef WTK_CORE_WTK_BLOCKQUEUE_H_
#define WTK_CORE_WTK_BLOCKQUEUE_H_
#include "wtk/core/wtk_queue.h"
#include "wtk/os/wtk_lockqueue.h"
#include "wtk/os/wtk_sem.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struc... | b25d7e7600146273e5ab3c18efffe8eb87c42c5b | [
"C",
"Makefile"
] | 170 | C | DWtiangu/wwk | cac92116c0e2489d230b0f75a6aeb59b6b65c157 | 8bd3e656218d5400482a9c850cceb0b32b380eb1 |
refs/heads/master | <file_sep>import React from 'react';
import '../assets/styles/NavBar.sass';
const NavBar = () => {
return (
<div className="title">
<h1>Titleeee</h1>
</div>
)
}
export default NavBar;
| e2f17a4227b361258d4559826a044d71b2166051 | [
"JavaScript"
] | 1 | JavaScript | gon-za/test-futbol-palacio | 2220440ba7f4e1441c9e51653a56345908b7e8c0 | 5e89b26752a855affc3cb67d93318cb68e3cce1c |
refs/heads/master | <file_sep>#include <iostream>
#include "include/vision.h"
using namespace std;
//These are so far the best parameters for find circles as well as tolerances for certain
//algorithim decisions for radius filtering and rectangle circle pattern detection.
//Don't change these unless you ask Jason first.
static double d... | 2cb0d52768a16a415fb054b15b2d32c87807f579 | [
"Markdown",
"Makefile",
"C++"
] | 5 | C++ | JRaether16/Robotics | 849fd4e3852acec0197d1baa2359e970a36079a8 | 50068bde179f274cc157a938a255fc1ac565c8c7 |
refs/heads/master | <file_sep>stock_dictionary = {'GM' => 'General Motors', 'CAT' => 'Caterpillar', 'EK' => 'Eastman Kodak'}
# puts stock_dictionary
purchases = [ [ 'GM', 100, '10-sep-2001', 48 ],
[ 'CAT', 100, '1-apr-1999', 24 ],
[ 'EK', 200, '1-jul-1998', 56 ] ]
# puts purchases
results_array = []
for array in purchases
shares = ... | 4f7243f1fddbb3759c25fcf0902bcc47c3ce6962 | [
"Ruby"
] | 1 | Ruby | clmassie1/hashes | 7b1c9e8e87f4a275c1af2ac5f16cf82ff35798bd | b6ad51fd6f779f22b46cb78793adafba377744d1 |
refs/heads/master | <repo_name>hyun6ik/Spring-myBoard<file_sep>/mythymeleaf/src/main/java/com/example/mythymeleaf/controller/BoardApiController.java
package com.example.mythymeleaf.controller;
import com.example.mythymeleaf.domain.Board;
import com.example.mythymeleaf.repository.BoardRepository;
import lombok.RequiredArgsConstructor;
imp... | f37116cd48e0dc19ed2120347bf64cdf3077ed15 | [
"Markdown",
"Java",
"Gradle"
] | 3 | Java | hyun6ik/Spring-myBoard | 37da8c1e6b06d6830dd5599a31b42b6a8970d6a8 | 2efb056621a34630ce8112a1d657048ad8c52f1d |
refs/heads/master | <file_sep>package raftkv
import (
"labgob"
"labrpc"
// "log"
"raft"
"sync"
"fmt"
"time"
)
const Debug = 0
func DPrintf(format string, a ...interface{}) (n int, err error) {
if Debug > 0 {
fmt.Printf(format, a...)
}
return
}
type Op struct {
// Your definitions here.
// Field names must start with cap... | 9ad318ade81c320b0ab0ec6164722a948bc60018 | [
"Markdown",
"Go"
] | 4 | Go | cy-b/6.824 | 74dce6214551abd1fb0f9facb25f479d942e2959 | 8a2d9ef4f8d0d45af33494841802b3079c5285ec |
refs/heads/main | <file_sep>/* eslint-disable no-unused-expressions */
import { test, expect } from 'vitest';
import { computed, defineComponent, ref } from 'vue';
import flushPromises from 'flush-promises';
import waitForExpect from 'wait-for-expect';
import { mount } from './helpers/mount';
import { useClient, useMutation, useQuery } ... | 9c46c65e527d09a893e9fffd9047afedefd9093b | [
"Markdown",
"TypeScript",
"JavaScript",
"Shell"
] | 69 | TypeScript | logaretm/villus | 06b69a8c53cec80c523e2a6bdd73d17d0c6c6069 | a73a486da326641ad7de41cbae6177e8cb0720d2 |
refs/heads/master | <repo_name>cayetanobv/python-metar<file_sep>/test_metar_decode_short.py
#!/usr/bin/env python
#
# This is a minimal sample script showing how the individual data
# are accessed from the decoded report. To produce the standard text
# summary of a report, the string() method of the Metar object.
#
# The parsed data ... | 561446b4478384121a7ac7a8255d9e8d9f6f5187 | [
"Python"
] | 1 | Python | cayetanobv/python-metar | 9daa0a30fb342b47e21bb97aefc4c106fa7cc746 | af033d66ac4da4ac895fd1e96208a43ff26d0b10 |
refs/heads/master | <repo_name>enzococca/Tilgjengelighet<file_sep>/FAKT_Dokumentasjon/_modules/AttributeForm.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content=... | c6a9f96af07c9f922a4b05671f7dc3e6077bae17 | [
"Markdown",
"Python",
"HTML",
"reStructuredText"
] | 10 | HTML | enzococca/Tilgjengelighet | c0da54d78da5135fcb6528e71598040591f16c2d | 2a15b099e45f3e5508a8d7be90361370213f81f4 |
refs/heads/main | <repo_name>JGHernandez7/c-sharp-practice<file_sep>/stringReverse.cs
using System;
public class ReverseString
{
public static void Main()
{
string[] s = "to the moon and back".Split(' ');
string temp = "";
for (int i = s.Length - 1; i >= 0; i--)
temp += s[i] + " ";
Console.Write("Reversed... | 0631925a649f23d2f98b9e37874e6455d9657d60 | [
"Markdown",
"C#"
] | 3 | C# | JGHernandez7/c-sharp-practice | ec4befdb7816a67777647834d809ee63c5001ed9 | ddfda5d95bb43632ca1d8d165c17a9436c6346dd |
refs/heads/master | <repo_name>maxwell-oroark/component-library<file_sep>/lib/index.js
import Grid from './elements/Grid';
module.exports = {
Grid
};
<file_sep>/lib/elements/Grid.js
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
const GridItem = styled.div`
width: ${({gridItem... | c975ba55c0a71b62ad092566afa0813e07c7a7de | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | maxwell-oroark/component-library | 1a45b28b70eac15e75d2c7d60039ee1f2e95895c | ed10b564b0b24f690259de30bf3fe4d48006d1b4 |
refs/heads/main | <file_sep>list = [1,3,5,10,20]
k = 3 #poziciya
c = 5
list.insert(k,c)
print(list)
<file_sep>try:
string = '1'
number = 1
print(string + number)
except TypeError:
print('error')
list1 = [1,2,3,4]
try:
for i in range(10):
print(list1[i])
except IndexError:
print('Vyvyshli za gran spiska... | 9c08f3ff53e54b1cf6c39ceca9fc204d1573538c | [
"Python"
] | 83 | Python | zarina494/fisrt_git_lesson | 169fc205b3a99a84f1041d578c4c120555162a66 | 5538a3294dbb497cda8b3b18a51a870413514649 |
refs/heads/master | <file_sep>//! # Equality constraints for types
//!
//! `is_type` gives the trait `Is<X>` which acts like an equality constraint.
//!
//! There's also functions to move between these two equivalent types,
//! as Rust will still not realise these types are
//!
//! The constraint `X : Is<Y>` requires that `X` == `Y`.
//... | 291089a31c9260f01a3cf9c147dbdb0b85e4ad51 | [
"TOML",
"Rust"
] | 2 | Rust | clintonmead/is_type | 39f4bb2789db25ce1ec5682166ac56472b45856a | 89d68002e345032362490e3ad67cd6048f582659 |
refs/heads/master | <file_sep>/**
* @file vidutil.c Video utility functions
*
* Copyright (C) 2017 Creytiv.com
*/
#include <re.h>
#include <rem.h>
#include <baresip.h>
#include "core.h"
/**
* Calculate the RTP timestamp from Presentation Time Stamp (PTS)
* or Decoding Time Stamp (DTS) and framerate.
*
* @note The calculated RT... | 29c89154f0e9d0e49ace716b53174a9b36d0e92c | [
"C"
] | 1 | C | RobGries/baresip_410c | 7326389ab96392f5f9d4d8844798741a2ada277b | 64cc6233a830f9531ec543b9ee50afc887945464 |
refs/heads/Master | <repo_name>Zhu-Zhenhua/MNSIM_Python<file_sep>/MNSIM/Mapping_Model/Behavior_mapping.py
#!/usr/bin/python
# -*-coding:utf-8-*-
import torch
import sys
import os
import math
import configparser as cp
work_path = os.path.dirname(os.getcwd())
# print("ok", work_path)
sys.path.append(work_path)
from MNSIM.Hardware_Model impo... | 334a56435c432d7d152bed26840bc0365da0322f | [
"Markdown",
"Python",
"INI"
] | 33 | Python | Zhu-Zhenhua/MNSIM_Python | 7642c52c80c26a8e02a665dca9ada2db1a15d220 | 0abb288c97c4e4121a7021e9e2866bcf63c58132 |
refs/heads/main | <repo_name>BeSketens/carwash<file_sep>/client.lua
carwashStations = {
{26.5906, -1392.0261, 28.3634},
{167.1034, -1719.4704, 28.4},
{-74.5693, 6427.8715, 30.5},
{-699.6325, -932.7043, 18.1},
{1362.5385, 3592.1274, 34.0}
}
Citizen.CreateThread(function()
Citizen.Wait(0)
for i = 1, #car... | dfb62e1b6ce9526dc5a0454a0858772a16ca33da | [
"Markdown",
"Lua"
] | 2 | Lua | BeSketens/carwash | 97466576b5c24bf0e5b4c585cae610ee79dbad2d | b77f2e374ed45f941d66d91776f055179a1431a8 |
refs/heads/master | <file_sep>#include <stdio.h>
#include <stdlib.h>
/* */
typedef struct Pairs{
float fahrenheit;
float celsius;
}pair;
/* */
typedef struct _list{
pair *previous;
pair *next;
}details;
/* */
typedef struct List{
pair *first;
details *details;
pair *last;
int number_of_pa... | a0359bec573700253a88af3c870ce0bbd1cb5c8c | [
"C"
] | 1 | C | metajemo/Basic_C_Course | e8c3a164569abb2f1f6575fbb120578dd2a59019 | e35948f395ad3f3a1f4b2ed892793630599a3ea1 |
refs/heads/master | <file_sep>package com.stackroute.websocketspringboot.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.messaging.simp.config.MessageBrokerRegistry;
import org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer;
import org.springframework.... | 526e6d13176f96a49b8821981b6b1b09a2b9ac76 | [
"Java"
] | 2 | Java | raju-kr50/POC_Websocket | 5f58b334e48f63860749734476c87e62846d045c | 7003c46bfbb92c4fbc4c923ccf2bb3b91f7c3b44 |
refs/heads/main | <repo_name>cypherpoll-0/netflix-clone<file_sep>/src/components/player/styles/player.js
import styled from 'styled-components/macro'
export const Container = styled.div``;
export const Overlay = styled.div`
display: flex;
flex-direction: column;
justify-content: center;
position: fixed;
top: 0;
... | e4c996215774cdf954a6f3df21e2812dd1f76cba | [
"JavaScript"
] | 2 | JavaScript | cypherpoll-0/netflix-clone | e523b2a36f13df8c9e64c383ffe8866c1d6e26ee | 8460fa4c97d29b0a10bc23c4fb0153ab852df1b4 |
refs/heads/master | <file_sep>module Amakanize
class AuthorName
class << self
# @return [Array<Amakan::Filters::BaseFilter>]
def filters
@filters ||= [
::Amakanize::Filters::HtmlUnescapeFilter.new,
::Amakanize::Filters::NormalizationFilter.new,
::Amakanize::Filters::HyphenMinusNormal... | cf0188aa9363be9b59c000c6db0ef8f510079bf1 | [
"Markdown",
"Ruby"
] | 21 | Ruby | iwazer/amakanize | 1f9d3d33875b4c21c1030875d4cbc8bea8e5411f | 8c9ef045b6c8148a153e11ad721404d1fb9a6026 |
refs/heads/master | <file_sep>package oauth
import (
"net/http"
"golang.org/x/oauth2"
)
// Oauth 授权接口
type Oauth interface {
Authorize() string
Callback(code string, opts ...oauth2.AuthCodeOption) (*oauth2.Token, error)
Client(token *oauth2.Token) *http.Client
}
<file_sep># oauth
## 实现的平台
- Github
<file_sep>module github.com/wyc... | 011e3e8092c34888d5996491c772e23df78162e6 | [
"Markdown",
"Go Module",
"Go"
] | 5 | Go | wychl/oauth | ada663c1702038660a79110b7cb41097e5fac4ec | 8b00d42f6aae91e1bdf0848e7e9ab929e3b285b0 |
refs/heads/master | <repo_name>metaflow/ohmyzsh<file_sep>/themes/meta.zsh-theme
# Git-centric variationurs at most once.
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%}+"
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[magenta]%}!"
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%}-"
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%}>"
ZSH_THEME_GIT_PROMPT_UNMERGED="%... | 3d6fa984e0a03267535afbf0d0b2fb07fc725f8a | [
"Shell"
] | 1 | Shell | metaflow/ohmyzsh | 6104322f90abf3ac9c73dd832334b5ca1077d5fb | bcb129b79d087853dedaba0064cecc96d58be933 |
refs/heads/main | <file_sep>using AttackTypeDefine;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using DG.Tweening;
public class AnimCtrl : MonoBehaviour
{
#region System Functions
public Vector2[] AnimPerArray;
public Vector2[] AnimSkillPerArr... | 1fb03ef5ac678e23e31e000d69315edaed3d8863 | [
"C#"
] | 28 | C# | ChihhaoFeng/3D_Mobile_Game | 371fa42455e328aba6063ef88d98f8e573a14da8 | fa432bc5cfb78be3ae92fecbdc6640149028da3a |
refs/heads/master | <file_sep>class ReservationsController < ApplicationController
respond_to :json
def create
@reservation = Reservation.new(reservation_params)
@reservation.save
respond_with(@reservation)
end
def destroy
reservation = Reservation.find(params[:id])
reservation.destroy
respond_with(reserv... | 97ab358b8bedbfcf0fde96295fc53a8efa39c541 | [
"Ruby"
] | 9 | Ruby | arabyniuk/reservation | a6bca2bdb690223364b9ee34dfbe937890c51b8e | d49e3c42c06c448643610ecc0598ebd83f2bd9c9 |
refs/heads/master | <file_sep>window.addEventListener('load', () => {
let label = document.querySelector('.label');
let planet__container = document.querySelector('.planet__container');
let xOld = 0;
let positionElement = -150;
planet__container.addEventListener('mousemove', moveLabel);
planet__container.addEventLi... | 306e75e2389e3026efaa4fc42c406a9eed64bb4e | [
"JavaScript"
] | 1 | JavaScript | belocer/planet | 2e6ef2234fc1a5ee80902d250e06533fc7c6894c | f2fa0268e24daadd8e9dbb18bb3737253e1aaba5 |
refs/heads/master | <file_sep># This is a basic tutoril on how to multiply two vectors in PyTorch.
# One of the coolest things in PyTorch is that allows the manipulation of vectors/tensors using numpy subverting Torch's methods.
# This is a cool feature because good old numpy is extremely easy to use!
import torch
import numpy as np
#... | 11a1bf15cdba51f54d68aebfd4f3e66d44231fa7 | [
"Markdown",
"Python"
] | 2 | Python | arihantjain15/Pytorch-Tutorials | 3afa6172d292a00ebb5176487e7c77b672a8ec38 | 87b36f5ef789c720d6d269b423c68a34732c4660 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace Assignment4.Models
{
public class Restaurant
{
//defining the model attributes
[Required]
public int RestaurantRank { get; s... | 424e9c6dd25e8d1ad991f145f3fa69d1c7584818 | [
"C#"
] | 3 | C# | JAW1/Assignment4 | 5a73f37538b6e2036f659f589c2ead466e9cc780 | 27d6e2d9150f8fb35f2097fa6e15271bfe24aa80 |
refs/heads/main | <repo_name>NicolasAuber/Udacity_Enron<file_sep>/poi_id.py
#!/usr/bin/python
########################
### Import Libraries ###
########################
# Standard libraries
import sys
import time
import pickle
import numpy as np
import pandas as pd
import pprint
import matplotlib.pyplot as plt
import seaborn as sns
#... | 95ce0e3f20b9778bbf4c560c9f34ce40f3ad8aa9 | [
"Python"
] | 1 | Python | NicolasAuber/Udacity_Enron | 4f294e2ee07d0e837d86b7ea7f3808ec49124161 | dc2abfd5b1013c88a988deee096b93a89e9a2781 |
refs/heads/main | <file_sep>a = 6502
b = 8086
c = a;
a = b;
b = c
print(a,b)<file_sep>a = 6502
b = 8086
a = a + b;
b = a - b;
a = a - b
print(a,b) | 56e34a31425e24a5174a835ab3bb5965068d437f | [
"Lua"
] | 2 | Lua | VadimSVV/Other | e6d0da666d797a012dc6a9d9f80cb40516b87f86 | b89cf2e452a1eef1d9bed51101a18e0485ecc0db |
refs/heads/master | <repo_name>mercma/stuff<file_sep>/pluginconfig.py
"""
Configuration information specific to Plug-in
"""
class CircusPluginConfig(CircusBaseConfig):
def __init__(self):
self._name = ''
self._cmd = None
self._use = ''
self._singleton = True
self._copy_env = True
self._... | be0e8dc15c903b0887844562748be2acfeec5a4c | [
"Python"
] | 11 | Python | mercma/stuff | d7925760aaaf29543f8289fa0c4fc4d049342166 | 64b5e7ce64617092e31c7a611fdee8a49b6ff65a |
refs/heads/main | <file_sep>import cv2
import numpy as np
import PySimpleGUI as sg
import time
from playsound import playsound as play
sg.theme("LightGreen")
layout = [
[sg.Text("STUD-bot v1", size=(60, 1), justification="center")],
[sg.Image(filename="", key="-IMAGE-")],
[
sg.Text('Max brea... | 5782330971adb9f500af37c082a45e745181b05a | [
"Markdown",
"Python"
] | 4 | Python | simrit1/STUD-bot | d0b8c665d27f6f42c8c0acd18773a4b94ae9e241 | 2cfc05f7dcdf1986562b9cdfaf6491dc12a42acc |
refs/heads/master | <repo_name>Chimaobi-Johnson/marvis_store<file_sep>/routes/store.js
const express = require('express');
const router = express.Router();
router.get('/', (req, res) => {
res.render('store', {
pageTitle: 'Marvis Store',
path: '/store'
});
});
router.get('/dashboard', (req, res) => {
res.r... | 605a5667d75a2983e2789b7c94937dc8a0e3076d | [
"JavaScript"
] | 8 | JavaScript | Chimaobi-Johnson/marvis_store | 02c2bfb109f4c0ef8696222e4ceb23da982e63ac | 52512fa97ac5fa405ae5fc4f9743268f3edfb1bd |
refs/heads/master | <repo_name>TeresaNgo-gh/Module1<file_sep>/README.md
# Module1
The goal of this game is to destroy each pickup in the air. The user will instantiate a projectile using the slingshot and, like in Mission Demolition, will launch the projectile to collect items. However, instead of knocking down a castle or reaching a go... | 9383561b600cfe5c7bf548cbf06952cac7390bb7 | [
"Markdown",
"C#"
] | 3 | Markdown | TeresaNgo-gh/Module1 | 811896446ad5d9f38639349fd513242e45860f93 | ea28eab7db8c4b6e4239af521df9522944803ce2 |
refs/heads/master | <repo_name>qw110946/rnGank<file_sep>/src/common/theme/index.js
import normal from "./normal";
import night from "./night";
import { Distribution } from "../util";
const theme = Distribution(
{
normal,
night
},
{}
);
export const setTheme = (...args) => theme.setType(...args);
export default theme.data;
... | 3148dcb69f502e107c05445b87d861127e53d206 | [
"JavaScript",
"Markdown"
] | 33 | JavaScript | qw110946/rnGank | 5f3ba48a1deedfa92dda15efdc64758c9e9ef8d6 | ebae22f23d6b491a69cb12875bd459ddac6a7ecc |
refs/heads/master | <repo_name>l1261351532/004-Investment_Guide<file_sep>/ChooseStock.py
#coding=utf-8
"""
本函数实现了股票筛选功能。
使用get_today_all得到当日实时股票数据,运行成本高
过滤出市盈率在0-30倍之间,且今日换手率>1%,涨幅超2%的股票。
之后统计今日涨停和接近涨停的股票。
"""
import pandas as pd
import tushare as ts
import numpy as np
e=ts.get_today_all()
code=e[u'code']
name = e[u'name']
per = e[u'pe... | ccbe3d3238a1cfa25a13d4e0509252b1b0866283 | [
"Python"
] | 1 | Python | l1261351532/004-Investment_Guide | 086ce8c160f8e82ae62afcbb0bbd08e4461758f1 | 72898d179bfc05c963a1a2a3d5298f9f0c313faa |
refs/heads/master | <file_sep># Awl Quiz
The point is to help students work on academic words, and this
app uses the Academic Word List (Coxhead, 2000) to do this.
Pick a base word and fill in the missing words in the academic
sentences.
Currently the sentences are hardcoded and come from abstracts of
computer science papers on arxiv.o... | 339017970e6703056936d2dd36d4a792307b2c54 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | lpmi-13/awl-quiz | 556e89fc816aba037e66158d3f55d3f08994b38c | 34d2f0368004a69587b0b23dc6030e7b0c5fd911 |
refs/heads/master | <repo_name>AndriiDev96/toDoApp<file_sep>/src/components/shellApp/ShellApp.js
import React, { Component } from 'react';
import './style.css';
import RenderTaks from '../renderTasks/RenderTasks';
class ShellApp extends Component {
render() {
const nameLocalSt = localStorage.getItem('name');
const nameUser = na... | c884915ea2d2fd8960571c5da4a2103fadd8a031 | [
"JavaScript"
] | 1 | JavaScript | AndriiDev96/toDoApp | 04d670f9384ba9ccfcbcbcc65ea7cf7b9322bcea | e1b7e46e8ca95d0c8b7d05c7f1c1378dd75f3a5b |
refs/heads/master | <repo_name>mssiedler/saads<file_sep>/Assets/Scripts/Bola.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Bola : MonoBehaviour {
// Use this for initialization
Vector3 velocidade;
void Start () {
velocidade = new Vector3(0.1f, 0.1f);
}
// Up... | 811cbd515450f185fa4bed13f29174cddc69c388 | [
"Markdown",
"C#"
] | 2 | C# | mssiedler/saads | f8d63e03ac055f95dc12aa675e1ff5fe9ec6411b | 52a01df6780dc4b4e582bfeab7ad06ccb0064789 |
refs/heads/master | <file_sep>#include <stdio.h>
#include <stdlib.h>
typedef int bool;
#define true 1
#define false 0
#define MAX(a,b) ((a) > (b) ? a : b)
struct Node {
int data;
struct Node* left;
struct Node* right;
};
struct Node* root;
struct Node* getnode(int x){
struct Node* newnode = (struct Node*)malloc(sizeof(struct Node))... | f65b1e8fa7e6a7881b37d7f8bd58aadfadf10386 | [
"Markdown",
"C"
] | 13 | C | iamkushel/datastructures | 0b4fa6b337005d196afebceda641ef4f28945118 | a3244e2bfb8c198d6f881b848299860f51e5acc0 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
public class LockControl : MonoBehaviour
{
private int[] result, correctCombination;
public static bool guessPass;
private void Start()
{
gue... | b27a804112332c503ff931b9695e8ae9f05ad7ca | [
"C#"
] | 5 | C# | antonklinker/escape-room | 536bae42481194c940576fe35b469a28cf49111d | 3cb2dc0ffc1a9e4d8df40f6562e7931fb9ed72fa |
refs/heads/master | <file_sep>package com.ghhitech.smisseal.base;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.BaseAdapter;
import java.util.List;
public abstract class CommomAdapter<Data> extends BaseAdapter {
private List<Data> mDatas;
private AbsListView m... | b97184c65f9d5b28b8369ddfde33ee6f21a17f5e | [
"Markdown",
"Java"
] | 11 | Java | yijigu7745/RxRetrofitMvp | 7c7ea5c092d2c69b7cb8861804b6f0d2915aa832 | a1f1c6ee345cb4fba3ff6823b346f93d79fc43c2 |
refs/heads/master | <file_sep>//wishList
const wishList = ['idd68', 'idd69', 'idd70', 'idd71',];
//cart
const cartList = [
{
id: 'idd023',
count: 1
},
{
id: 'idd024',
count: 2
},
{
id: 'idd025',
count: 4
},
];
e... | 0e365e6dc8ba12c2df3299096cf1a0f8af086460 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Webdevmaksim/Ikea-store-fake | 0f123ed4cb62af8f81ffec0bf2bae570303406fb | 1ef714400add3e410cf69eb7389f626f80bfb291 |
refs/heads/master | <file_sep>const express = require('express');
const pool = require('../modules/pool.js');
const router = express.Router();
// get all the images
router.get('/', (req, res) => {
let query = `SELECT "images".id, "images".title, "images".path, array_agg("images_tag".tag_id) as tags FROM "images"
FU... | d12948d2dfb46ad5ad0d393ee84e5721178f84aa | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | mbts8984/saga-mood-ring | 6c27dae5c06db5f827087f88e6a95135568954d6 | 4f383e84f68f1ca6107aacab4192c56218e73c78 |
refs/heads/master | <repo_name>kartiktanksali/ToDo-List-using-react.js<file_sep>/app.py
from flask import Flask, request, jsonify
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow
from datetime import datetime
from sqlalchemy import DateTime, func
from flask_cors import CORS
import os
#init app
app = Flas... | 7629b6b34740ec045663567ed5b899f78686f609 | [
"Python"
] | 1 | Python | kartiktanksali/ToDo-List-using-react.js | 7d7ecdbe512d786b37bc51d94920e2217879b601 | 9dea5597bcd46b4dc29ce2cdfecb13542d79d0b9 |
refs/heads/master | <repo_name>JackWangCS/StormDataProcessing<file_sep>/src/main/java/com/msopentech/bolt/RunoffControlRateBolt.java
package com.msopentech.bolt;
import backtype.storm.task.OutputCollector;
import backtype.storm.task.TopologyContext;
import backtype.storm.topology.OutputFieldsDeclarer;
import backtype.storm.tuple.Fields;... | 11beb9ca5bbc952d6ff7fb6135260e4d5ce61daf | [
"Java",
"INI"
] | 11 | Java | JackWangCS/StormDataProcessing | d42d05cbcd10c0c16d06a6e9e22c8f0fa16fa7b5 | f08e6f47b6624d63430c3408f5eaa94a0de24f40 |
refs/heads/master | <repo_name>gotchacode/python-cookbook<file_sep>/data-structure-and-algo/eg1.py
p = (4, 5)
x, y = p
data = ['ACME', 50, 20, 3, (34, 4, 5)]
name, share, price, other = data
s = 'Hello'
a, b, c, d, e = s
def drop_first_last(grades):
first, *middle, last = grades
return avg(middle)
record = ('dave', '<EMAIL>... | e90d7eaf8d647d91597c8eca93afc5d0e785f23b | [
"Markdown",
"Python"
] | 2 | Python | gotchacode/python-cookbook | 103fbd6d7daa4ef208df189169d1fb6f32423674 | 58b1e0921d99a2f40ccd7ed313c305e4a66db62a |
refs/heads/master | <repo_name>zygisn/game-development<file_sep>/Assets/scripts/player.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Assertions; //to catch empty Serialize fields
public class player : MonoBehaviour {
[SerializeField] private float jumpForce = 70f;
[SerializeField... | 3b7115fbf5ddcedd1bde9ba65fe54c198b78a799 | [
"C#"
] | 4 | C# | zygisn/game-development | 8c9528deb32ad45209e4c5887529427f2e17daca | 2ce0d87ad55691119962cad1f7954b662ff331ab |
refs/heads/master | <repo_name>brunoportes/rtage<file_sep>/web_crawler/document_formats_crawler.py
import requests
def crawler(homepage):
dataset_list = requests.get(homepage+'api/action/package_list').json()
datasetpage = homepage+'dataset/'
format_dict = {}
count = 1
#with open('format_dict.txt', 'a') as file:
... | fe73aa1737d80615aa588548afbf7db3a9b8cf32 | [
"Python"
] | 3 | Python | brunoportes/rtage | d0d6ea5d807fe5d2b162c0da4840894ff33bcad3 | dd46a732f1ed81ce7f10cfb25533cb236aed07a4 |
refs/heads/main | <repo_name>DevNoobGames/zombiemanager<file_sep>/Assets/Scripts/Managers/GameManager.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class GameManager : MonoBehaviour
{
public int level = 1;
public GameObject introText;
public GameObject introBlackPanel;... | 3ab098207225a275b2158e8b7d64c0ef610d1de8 | [
"C#"
] | 14 | C# | DevNoobGames/zombiemanager | 7362eff1fbd78d36d9ac8716b2d601a1c0e529fd | 7e2c00b961bd94ac08e904c969f6d1dbec3d0725 |
refs/heads/master | <file_sep>
var express = require('express');
var fs = require('fs');
var Usuario = require('../models/usuario');
var Medico = require('../models/medico');
var Hospital = require('../models/hospital');
var app = express();
var fileUpload = require('express-fileupload');
// default options
app.use(fileUpload());
app... | 887c14e44a6726bf801642cf162ccfdf68c6fafc | [
"JavaScript"
] | 4 | JavaScript | sugarnet/backend_server | c8525cb5e6ef71bca47409fe9abfab04e36397b0 | ef02ee6dd12e59666df7d704ec672ba807b432f2 |
refs/heads/master | <file_sep># Birthday Helper
# This read in names and birth dates from a text file. It will ask for a name
# and the program will display the corresponding birthdate.
# Chapter 12.6 Learn to Program by <NAME>
# 20131118
Dir.chdir '/Users/jobdelcastillo/Tealeaf_Week1'
# The file with the birthdates
filename = 'birthday.... | 0d9e14e84c78712e8c0e26da40058aee71c3dcf3 | [
"Ruby"
] | 14 | Ruby | eduardodelcastillo/Tealeaf_Week1 | ad0451cf03e9400207e49051e8af244e02411a02 | 3412d648c04dad8c1a9edf8b6c28c56ac5df4949 |
refs/heads/master | <file_sep>require "open-uri"
require "json"
class GamesController < ApplicationController
def new
@letters = Array.new(10) { ('A'..'Z').to_a.sample }
# The new action will be used to display a new random grid and a form.
#The form will be submitted (with POST) to the score action.
end
def score
@wo... | 57782418460872c571cf92aae14e8b02362a9e2a | [
"Ruby"
] | 1 | Ruby | adri0713/rails-longest-word-game | ddd3618dc55d2a4d3a2c2d4e151cbbffdf46a091 | 4df34425f981dd1c3b521e06df6123cec1229873 |
refs/heads/master | <repo_name>JWRickyWan/CS61A<file_sep>/Lab/lab01/lab01_extra.py
"""Optional questions for Lab 1"""
# While Loops
def falling(n, k):
"""Compute the falling factorial of n to depth k.
>>> falling(6, 3) # 6 * 5 * 4
120
>>> falling(4, 3) # 4 * 3 * 2
24
>>> falling(4, 1) # 4
4
>>> fallin... | d659f9a8e5eae230273c6d6d8dc7730a4a902616 | [
"Python"
] | 5 | Python | JWRickyWan/CS61A | cbc63e953f3479431bee0dfcf89fe229b3a5dba2 | ae7b29ac6abda13509af2d37e0d9768366368497 |
refs/heads/main | <repo_name>codingwithlis/React-JSX-Practice<file_sep>/index.js
// React App Multiple Components
class App extends React.Component {
render() {
return (
<div>
<Hello/>
<NumPicker/>
</div>
)
}
}
ReactDOM.render(<App/>, document.getElementById("ro... | 9956d8dfbdc64794f5861b819ddceb7c0770d1eb | [
"JavaScript"
] | 1 | JavaScript | codingwithlis/React-JSX-Practice | 748607ead6a9914356abf4af9879778c91172e3a | 1551eebd7a1a8ea9a8b5c66ddaf241ef3823a4b7 |
refs/heads/master | <file_sep>---
title: "Project4_TextMining"
author: "rbg"
date: "May 9, 2016"
output: html_document
---
```{r, echo=FALSE, warning=FALSE, message=FALSE}
require('wordcloud')
require('biclust')
require('cluster')
require('igraph')
require('dplyr')
require('scales')
require('SnowballC')
require('RColorBrewer')
require(... | 181d21f8643cf153f4e517cb47b4911254efbf49 | [
"Markdown",
"Python",
"R",
"RMarkdown"
] | 9 | RMarkdown | xxiao1992/textViz | 54ab6e17d580729579b7626b841f349f86db5712 | fcdcf6469412e1be565e05e590bd6f5b51819744 |
refs/heads/master | <file_sep>#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <gmodule.h>
#include <epan/prefs.h>
#include <epan/packet.h>
#include <epan/dissectors/packet-tcp.h>
/* forward reference */
void proto_register_minecraft();
void proto_reg_handoff_minecraft();
void dissect_minecraft(tvbuff_t *tvb, packet_info *pinfo... | 62a5d01247a5537566ed028a9d7ee0bf0733ac62 | [
"C",
"Makefile"
] | 2 | C | Jc2k/minecraft-dissector | 5a59426f6a36527b6d103829f76aa0b510156372 | 72caadd221dd61d1903157f08f6f71d1b7414d80 |
refs/heads/master | <repo_name>personalj/scriptum<file_sep>/js/main.js
$( document ).ready(function() {
$('[data-opener]').click(function() {
$this = $(this);
if($this.is('.active')) {
$this.removeClass('active');
$('[data-target="'+$this.data('opener')+'"]').removeClass('active');
}else{
$this.addClass('active');
$('[... | 0c78ccac94d20e201df7605d688a546471e232e3 | [
"JavaScript"
] | 1 | JavaScript | personalj/scriptum | ecd473421b4a3f1c40f0abf211da79e13f265a78 | 1f86824bb37151d944231b1439260d0109603033 |
refs/heads/master | <file_sep>package com.blackbrackets.tvarkarastis;
import android.app.Activity;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.ConnectivityManager;
import android.net.NetworkIn... | 7fb354523c647d9fa204a34a88e6b36eac564d80 | [
"Markdown",
"Java"
] | 12 | Java | simonassank/Tvarkarasis | f25d17c958252ea82fc64c67778666be0cc2c33b | 3015e05cbcbe70b57f792dbd8f4fb205e6111183 |
refs/heads/master | <file_sep>#!/usr/bin/env ruby
# encoding: UTF-8
require File.expand_path('../test_helper', __FILE__)
class GcTest < TestCase
def some_method
Array.new(3 * 4)
end
def run_profile
RubyProf.profile do
self.some_method
end
end
def test_hold_onto_thread
threads = 1000.times.reduce(Array.n... | f0b9428d00e356c106c4af4b019d6ab8f748cbca | [
"Ruby"
] | 2 | Ruby | baelter/ruby-prof | 9e0ab4c01874bd9bf52752a6410cf8d342f5f31d | f6383dca8d0d3057761ea322149d53192302119b |
refs/heads/main | <repo_name>ashi-mark/16-2-21<file_sep>/ESS_DAL/Repository/IGenericRepository.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Text.RegularExpressions;
namespace ESS_BLG
{
public interface IGenericRepository<T> w... | 80cce13fb2b37e22353a572820c7343a64df3db0 | [
"C#"
] | 6 | C# | ashi-mark/16-2-21 | 2f0c9b6bd17b83badea8a6e5f0b82d0d3f83d098 | 61a00c8875d76fd100763df62b7fb5fd0f2f7a4e |
refs/heads/master | <repo_name>Chekote/docker-node<file_sep>/bin/yarn
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. "${DIR}"/lib/tty.sh
docker run -i $TTY -v "$(pwd):/workdir" --rm chekote/node yarn "$@"
<file_sep>/entrypoint.sh
#!/usr/bin/env sh
# Based on: <NAME> https://denibertovic.com/posts/handling-permis... | fe1d6c60a7773c8201f4e66d3e326a6c41a392b3 | [
"Shell"
] | 2 | Shell | Chekote/docker-node | 981dc7670a0aad5de58a80aebd5a40c24cfa2b09 | 7fa0c572acff165695f7182b904a32d1136120cc |
refs/heads/master | <repo_name>crewsycrews/cli-php-ssh-client<file_sep>/README.md
# SSH CLI PHP client
Small client for regular tasks. Requires PHP 7.4
Usage:
```bash
$ php crews-cli-ssh-php-client
Usage: crews-cli-ssh-php-client [--help] [-h host, --host host] [-p password, --password <PASSWORD>] [--port port] [-u user, --user user]
R... | 0845395383efa8472f858c8dfc848982cf779d67 | [
"Markdown",
"PHP"
] | 3 | Markdown | crewsycrews/cli-php-ssh-client | 7071f264576271f21445500f4ab3f0812e0593b6 | 38eae5c87e52239be9a887338f7699c7adc010d3 |
refs/heads/main | <repo_name>DevOps-Spring2021/uber<file_sep>/src/components/Toast/Toast.js
import React from "react";
import { Alert } from "react-bootstrap";
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faTimes } from '@fortawesome/fontawesome-free-solid'
const Toast = (props) => {
return (
pr... | 4db028f9196d77742dfe4446f115df60c810a851 | [
"JavaScript",
"Dockerfile"
] | 8 | JavaScript | DevOps-Spring2021/uber | 618c6a3ff06e4f8b20c3d14eb760036943b59389 | 58872b344925fc1dba251376e79c7579b702b9e8 |
refs/heads/master | <file_sep>using Foundation;
using System;
using System.CodeDom.Compiler;
using UIKit;
using System.Diagnostics;
namespace WeatherSettings
{
partial class SettingsViewController : UITableViewController
{
public SettingsViewController (IntPtr handle) : base (handle)
{
}
public override void ViewDidLoad ()... | b09cb85e8434f5757fe82da039989c4701db01b1 | [
"C#"
] | 2 | C# | XamarinUniversity/IOS115 | aedd7cb9471f055acb560cfefe3b4b5fc8373c70 | 8b182973d556c22a3d9deb50672984cd7290822c |
refs/heads/master | <repo_name>koerstz/QMConfTool<file_sep>/modules/createConformers.py
from rdkit import Chem
from rdkit.Chem import AllChem, rdmolops
from rdkit.Chem import rdMolTransforms
import itertools
from multiprocessing import Pool
import time
import copy
def systematic(m, theta=120.):
""" Systematic rotation of dihedral ... | b935a8e17e1097a00dbbe05fd7e3f75f9f0dd8c4 | [
"Python"
] | 8 | Python | koerstz/QMConfTool | 1391f3ff4ed6861839879744a852b86ef392c580 | 6f6056b0e59f8cc6e0d4fafca201c1f646ea5eef |
refs/heads/master | <repo_name>xuyangit/SpatialExperiments<file_sep>/make-dis.sh~
#! /bin/bash
rm -r /env/sparkspatial-bak
mv /env/sparkspatial /env/sparkspatial-bak
cp -r /home/xuyang/SparkSpatialKeyword/SparkSpatial/dist /env/sparkspatial
rm -r /env/sparkspatial/conf
cp -r /env/sparkspatial-bak/conf/ /env/sparkspatial/conf
rm -r /env/sp... | 43d9c11df38ff9b94c205e7860fa7f77977e054c | [
"Shell"
] | 3 | Shell | xuyangit/SpatialExperiments | b03d0665a57a7d3f5cb0e40408e187b486075dc8 | 44054bf62fd6fa767ecce776dfb386d3b4342792 |
refs/heads/main | <file_sep>import tkinter as tk
from PIL import Image, ImageTk
from functools import partial
from tkinter import messagebox
import os
#背包类
class PackageGUI(tk.Canvas):
#初始化参数
def __init__(self, root, w=360, h=400):
"""
Initialize
:return:
"""
super().__init__(root, w... | 1788ec3b4c415fc9b2d23cd48798cb093c856fd1 | [
"Python"
] | 6 | Python | Omoafolayan22/Python-AdventureGames | 7b7bc3d79fc4eb9df06e2d30ec1c20ce09011b2e | 04a3766805c54eeba581b42fe72aaef2036e63bd |
refs/heads/master | <file_sep> const ALL_CARS =[]
cars_sorted = { }
function loadDoc() {
var xhttp = new XMLHttpRequest(); // create and xhr object -- request object
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) { // everything this take place between this block
let data = JSON.pa... | 62d64e51f3ae8e1f539e7e8350aa038bc1580f92 | [
"JavaScript"
] | 1 | JavaScript | ashleyalmonte/day20 | 123fbc67dd6d7102e4e89bbe09d97016765ae9cf | 5d734e17cb8d0e8adb8550a820f51e4ee49912d1 |
refs/heads/master | <repo_name>jjinny0105/portfolio_jinny<file_sep>/js/menu.js
$("#triger").click(function() {
$("#desktopMenu").addClass("on");
$("#m_gnb_close").click(function() {
$("#desktopMenu").removeClass("on");
});
});
<file_sep>/js/scrolltop.js
$(function () {
$("#top").css("cursor", "pointer");
$("#... | 496d190c1112a56907de5d1ef812f31aef6b0562 | [
"JavaScript"
] | 2 | JavaScript | jjinny0105/portfolio_jinny | dbc0e5f1c85df6d05606d143670f73df4a22af24 | 032a306234d60f79e6bc5a843c893774ccafb817 |
refs/heads/master | <repo_name>miahmia/MyLab1<file_sep>/Solution/HelloWinForms/Form1.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;
namespace HelloWinForms
{
public... | 4c302612371d111cef27e575b7d5912283d907ad | [
"C#"
] | 1 | C# | miahmia/MyLab1 | da547fa46f4a33f2150ac1f88313b05b109167c8 | 405a56201ee5f243743d20f9407c703861132a2e |
refs/heads/master | <file_sep>import Ember from 'ember';
import {ENCRYPTION_METHODS} from "cryptography/constants/encryption-methods";
export default Ember.Controller.extend({
encryptionMethods: Object.keys(ENCRYPTION_METHODS).map(key => ENCRYPTION_METHODS[key]),
encryption: Ember.inject.service(),
input: "",
output: "",
select... | 7e9f4898d005bb8dbd4481a11dc712df6e86db4e | [
"JavaScript"
] | 10 | JavaScript | andrey-lavrov/crypto | e92c63dfb9685b121632f3b9e881ec9403bfd066 | a15471aa3f460001195040b19ec5272f5b14b207 |
refs/heads/master | <file_sep>cp make_installer.py pyami
cp make_installer.py pycdb
cp make_installer.py pydaq
<file_sep>#!/bin/bash
$PREFIX/daq-links/install_pycdb.sh
<file_sep>#!/bin/bash
# Pull out links, then replace the ones that were still needed.
LINKS=$PREFIX/daq-links
$LINKS/uninstall_pycdb.sh
for module in pydaq pyami; do
SCRI... | 302c80cc536e602f2af11ee8147724272b836249 | [
"Python",
"Shell"
] | 7 | Shell | klauer/pcds-recipes | 6602351f58851608224adaa193866823dda7c1cb | 8d6442be904ba7e9e9e7c42e630d7142822fb625 |
refs/heads/master | <file_sep># Budget-App-JavaScript
Application for planning home budget
<file_sep>const {resolve} = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const AppManifest... | 106d0d216394045816062281c85358190b0dc8ca | [
"Markdown",
"JavaScript"
] | 2 | Markdown | mklepacz/Budget-App-JavaScript | a0c3ae0cf5f45000c81b75d04d330cabb8301515 | ada6c734b65093104a9044962c7c98120795e0dd |
refs/heads/master | <file_sep>import pandas as pd
import numpy as np
import string
yelpDataset = pd.read_csv('Yelp.txt', sep='\t', header=None, encoding='latin-1')
yelpDataset.columns = ['review', 'sentiment']
def removePunct(text):
noPunct = ''.join([char for char in text if char not in string.punctuation])
return noPunct
ye... | 8819439f79906448b421f884d526bf4fb929a947 | [
"Markdown",
"Python"
] | 5 | Python | QMIND-Team/LanguageWarmUp | f7f698d161c8b0f80a56fb24c9e2d8106b8e2aed | 115069cf292e2b53aad530edbde2e8ecfb407a88 |
refs/heads/master | <repo_name>zilin9g/sit725-prac2<file_sep>/server.js
var express = require('express');
var app = express();
app.use(express.static(__dirname + '/public'));
app.set('views', __dirname + '/public/views');
// Mapping the EJS template engine to ".html" files
app.engine('html', require('ejs').renderFile);
app.set('view engi... | 962036eb29459ed8d6670e6982b0b4edf11fe8e0 | [
"JavaScript"
] | 1 | JavaScript | zilin9g/sit725-prac2 | e151cf911180fbc09e6bc4b9e50a0b3256261ce4 | 7f1ae1414925a67a0f994147dfc92ef7e2fbae8c |
refs/heads/master | <file_sep>from django import forms
from pycosite.models import Page, PageUrl
STATUS_CHOICES = (('offline', 'offline'),
('published', 'published'))
class PageForm(forms.ModelForm):
status = forms.ChoiceField(choices=STATUS_CHOICES)
class Meta:
model = Page
class UrlForm(forms.Model... | e9e6ab396b5f33eff5f1b4b01196182364b2037d | [
"Python"
] | 4 | Python | djazzfm/pycosite | 9bd5a005320cef1c2c7367096d187ee604d00af6 | 78e97ba07c41404638525685b9c7595d649421fe |
refs/heads/master | <repo_name>Karthiattri/PageObjectModelEx<file_sep>/pageobjt/src/pageObjts/Loginpageobjts.java
package pageObjts;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
//import org.openqa.selenium.By;
//import org.openqa.selenium.WebDriver;
//... | 0dfafef7d3717dc29b84586cdeb56ea6b3d7eb95 | [
"Markdown",
"Java"
] | 2 | Java | Karthiattri/PageObjectModelEx | 9a62750ca7a48978fd80b030da4b06a3502e0cf0 | e5b834d2593784126f4e7eac6f60f4935ebea0a9 |
refs/heads/master | <repo_name>gedunlap/rockandrow-frontend<file_sep>/src/components/Header.js
import React from 'react'
import { Link } from 'react-router-dom'
export default function Header() {
return (
<nav className="nav">
<img src="https://i.imgur.com/hSdfdNu.png" alt="rock and row logo" className="navitem" /... | 8c78c9aaec8f0e1430873e9a01e96c22f7832b99 | [
"JavaScript"
] | 5 | JavaScript | gedunlap/rockandrow-frontend | a7592c482340dbcb7401b238baa4ab18d8a58590 | 66db72db626a82a237ed2a54c705ac81dbebf10e |
refs/heads/master | <file_sep>import axios from 'axios'
import { bindActionCreators } from 'redux'
import {initialState} from '../readucer/reducer'
export const FETCH_WEATHER_START = "FETCH_WEATHER_START"
export const FETCH_WEATHER_SUCCESS = "FETCH_WEATHER_SUCCESS"
export const FETCH_WEATHER_FAILURE = "FETCH_WEATHER_FAILURE"
// expor... | 6345f918acc003941dc0083f88b5b236380f3713 | [
"JavaScript"
] | 3 | JavaScript | JazmineMT/React-Redux-App | 5e7f6b8472e6363a9f9fdd7804117039d44932b6 | 5a7355983151a7ce272ec7fa8173ef72299937b9 |
refs/heads/master | <file_sep>package in.codeshuffle.scratchcardlayoutexample.ui.fragment.demoscreen;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.SeekBar;
import androidx.annotation.No... | a795c17f8b31596fc074dd7c7397856b8289440a | [
"Java"
] | 2 | Java | rupamrd/scratchCardLayout | b3f0936a5935a6bd431df6bcefe772dcb70d6e6b | 51e4570a53ffe0dcdd0222448a07c3edad1bf465 |
refs/heads/master | <repo_name>tonykobe8/typescript-kahhcg<file_sep>/README.md
# typescript-kahhcg
[Edit on StackBlitz ⚡️](https://stackblitz.com/edit/typescript-kahhcg)<file_sep>/index.ts
// Import stylesheets
import './style.css';
// Write TypeScript code!
const appDiv: HTMLElement = document.getElementById('app');
appDiv.innerHTML = ... | b01703db34da7fe34af1244098f514b3edda611a | [
"Markdown",
"TypeScript"
] | 2 | Markdown | tonykobe8/typescript-kahhcg | ee59c2fa266ff26422f2428b59e99ce6452351fb | a1e18d1e467c85a7306005062e0e4d89bbb09806 |
refs/heads/master | <file_sep>package com.inpainting;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
/**
* Wrapper/Helper for Masked RGB Bitmap
*
* @author <NAME>
*/
public class MaskedImage {
// image data
private boolean[][] mask;
private B... | c1a5672ceefb349c5d1ee465bc0b932ee446c13d | [
"Markdown",
"Java",
"Gradle"
] | 3 | Java | zhangzhiao/androidInpainting | 1aff367ec7ad30ddb6052401cdd39d85163be581 | c386a2105bd5f61c9308b494e52707bb34681043 |
refs/heads/master | <repo_name>funnylau29/worksapplication2013recruite<file_sep>/Exam/src/jp/co/wap/exam/test/Problem1Test.java
package jp.co.wap.exam.test;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import jp.co.wap.exam.Problem1;
import jp.co.wap.exam.lib.Inter... | 90a8a8a4efd1f3e4b73751161d7a318a9b437ca3 | [
"Java"
] | 2 | Java | funnylau29/worksapplication2013recruite | f7ad07c61ab4cfa08be124d554629c671287ed4b | dcc968c3c417b54ea714eb09f6cc61dfa66e594f |
refs/heads/master | <file_sep>class Bowling
def hit(pins)
end
def score
foo = 10
if true && self.hit foo
10
else
0
end
end
end
| c2293caf33caf94dbd8927ead100654a76f67462 | [
"Ruby"
] | 1 | Ruby | abrom/travis-rspec-test | 359c731c2b0f97bc4d12d851e99ade028d26ba5e | 7d2db93674e5418e931cbe38dc1263bda583530d |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SpanEnemies : MonoBehaviour
{
private Vector3 positionV = new Vector3(9f, -4f, 0f);
public GameObject enemies;
private int enemiesAmount = 0;
private GameObject []enemyArray = new GameObject[3];
p... | dbb4b6f70c5e06c41c09547a5578a2a4ffdbc239 | [
"C#"
] | 29 | C# | EveyJSwag/CHRPG | ce68e410c6e8fdce1d99c4c43a16ae81fabd2162 | 1c93999a62fee20940b3476f6df08d950d537e25 |
refs/heads/master | <repo_name>neige28/auto-clicker<file_sep>/README.md
# auto-clicker
pick color, auto click
<file_sep>/src/auto-clicker/auto-clicker/MainForm.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threadi... | 427b3befb8d471782fb988ff63563372a7ffe232 | [
"Markdown",
"C#",
"Python"
] | 4 | Markdown | neige28/auto-clicker | 857089cf3f3615bbee123098ad098ac98320b884 | 1ce8c98f849cdea9dbd4764413ce95129a9b054b |
refs/heads/master | <file_sep>package VideoAI
import (
video "cloud.google.com/go/videointelligence/apiv1"
"context"
"fmt"
videopb "google.golang.org/genproto/googleapis/cloud/videointelligence/v1"
"io/ioutil"
)
type VideoAI struct {
}
func (videoAI *VideoAI) Label(file string) ([]string, error) {
fmt.Println("LABELS: ")
labelsS... | 19fc28490a83480ecf71c9489b928808c1970a07 | [
"Markdown",
"Go Module",
"Go",
"Dockerfile"
] | 11 | Go | magistrsko-delo/video-analysis-worker | 678716fbefaceb6e9d6337221dc62cbdc96a01a2 | c5a68254d6dc8fc47ed2448c6901f1cc507c5ad6 |
refs/heads/master | <repo_name>vncaMichaelD/periodical<file_sep>/backend/model/inventory.rb
class Inventory < Sequel::Model(:inventory)
include ASModel
corresponds_to JSONModel(:inventory)
include InventoryFldrs
set_model_scope :global
end
<file_sep>/frontend/routes.rb
ArchivesSpace::Application.routes.draw do
match 'prdcl_ti... | 2abb7b62a3490c6f6ef9eb55f327feffe4bfc708 | [
"JavaScript",
"Ruby"
] | 52 | Ruby | vncaMichaelD/periodical | bcfe6b6445f52d32688067dd84d4fc16b327b34d | 99ccab51ee39dc27b63099d25563abc46bb76e80 |
refs/heads/master | <repo_name>thekiear/RPS-BOT<file_sep>/Sample/rock.py
# rock bot
output = "R"<file_sep>/referee/match/api.py
# myapp/api.py
from tastypie.resources import ModelResource
from match.models import Match, UserProfile, User, MatchRequest
class MatchRequestResource(ModelResource):
class Meta:
queryset = MatchRequest.obje... | ed9c7bf2f31c5c3ea3436ddbc1dc943fa694e1bb | [
"Python",
"reStructuredText"
] | 11 | Python | thekiear/RPS-BOT | 832919cf105e9d4e8922e2c73bda6cfabaea044a | ce3d040f9a8f8f9446679aa4460840b50c7d9d53 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.