blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2b72c1c82fc505dfa63916664ac32efc7a132130 | 55c5e8bdee13108e3028ec8c2b8be1e0f704c1d6 | /ProjectFramework/ModelResults/CalculateClassificationResults.py | 3ca51efb82b2402add86e75292b64db6fdfa5566 | [] | no_license | OrtalPa/Final_Project_SISE_BGU | aeb07041215abee565bbfe517389a8da9db68758 | 44724c7aa1e84654eb0c7da8aec59f7aa913052c | refs/heads/master | 2023-05-06T19:10:19.510239 | 2021-05-28T07:34:37 | 2021-05-28T07:34:37 | 325,838,361 | 0 | 0 | null | 2021-05-28T07:34:37 | 2020-12-31T16:42:49 | Jupyter Notebook | UTF-8 | Python | false | false | 2,024 | py | import pandas as pd
import glob
import os
from pathlib import Path
from Pipeline.MultiLabelPipeline import get_data, get_label_names
path = Path(os.path.abspath(__file__))
DATA_PATH = os.path.dirname(path.parent) + '\\ModelResults\\ResultFiles'
def get_dfs():
list_of_df = []
for file_path in glob.glob(f"{DA... | [
"ortalprpr@gmail.com"
] | ortalprpr@gmail.com |
ef7c4407ce3a81d83ce9903676656097467682b4 | d827df70b8bc2236ee8a817f854bef6e5be928b4 | /file1.py | b693ed3afdd5d0dba70a7b7f4daaa18cdff89e69 | [] | no_license | frocha27/pyprj | 5e9e672a8a9a2cff9b03983fdd85dd6199095c13 | 1ba4188ec34abe336faef8dce79a4b3a56cafa35 | refs/heads/master | 2021-05-12T04:11:34.563444 | 2018-01-11T21:55:58 | 2018-01-11T21:55:58 | 117,154,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | # Frederic Rocha
# January 2018
# Bergstrom Inc
#alternate version
import pycom
import time
for i in range(10): print(2**i)
pycom.heartbeat(False)
loop=True
i=0
for j in [0,8,16]:
for i in range(1,256):
color=(i*2**j)+(256-i)*2**(16)
pycom.rgbled(color)
time.sleep(0.1)
... | [
"noreply@github.com"
] | noreply@github.com |
962f4fa62efcd483741ab4f4859ff6a13354169b | bc2a6ba98c9a42ed0726f34807eeab9ed7f85741 | /backend/app/app/api/api_v1/endpoints/url.py | c10434b8d30b516f182e7e9747988bbcb673f185 | [] | no_license | MaioSource/url_shortener | caff037f4d16f5f2df2469b80a26f51e57289970 | cf11a834708624e7e55d638018474bf750786964 | refs/heads/master | 2022-11-21T09:50:33.059423 | 2020-07-22T18:54:13 | 2020-07-22T18:54:13 | 281,759,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | from typing import Any, List
from fastapi import APIRouter, Body, Depends, HTTPException
from fastapi.encoders import jsonable_encoder
from pydantic.networks import EmailStr
from sqlalchemy.orm import Session
from app import crud, models, schemas
from app.api import deps
from app.core.config import settings
router =... | [
"agustinmaio.01@gmail.com"
] | agustinmaio.01@gmail.com |
7e0d4cb71a84232314f4e1be8a97f2bb9efeb906 | 6a1e92af46fa8242ab5757ad3eafdcad6af289e0 | /CareSquareBeta/poll/templatetags/polls_tags.py | a623eb3ecb526468025c44989f7472c2edf8c6da | [] | no_license | lincolnn/CareSquare | fe1cacd5028b49398b942bb4fcf835a89fa9745a | 52c792007549a1228c4261a5fdab1f332bc9a45e | refs/heads/master | 2020-04-27T23:44:23.016621 | 2012-05-03T21:23:19 | 2012-05-03T21:23:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,499 | py | from django import template
from poll.models import Poll, Item, Queue
from settings import STATIC_URL
from django.utils.safestring import SafeUnicode
from django.utils.datetime_safe import datetime
from poll.ajax import authpass
register = template.Library()
@register.inclusion_tag('polls.html', takes_context=... | [
"lincolnn07@gmail.com"
] | lincolnn07@gmail.com |
7dbbd76159ed81b6ff008a9a074eaf730ab3c4a9 | 0637388b36f05919de57af0865d17a6db0e6f69a | /vnpy/trader/language/__init__.py | 2fbf703c0f634a213b20f0ebf53023cddfa43d9f | [
"MIT"
] | permissive | elulue/vnpy | 7dba29657594a97be220de6ac66bc456c8528a88 | d341778514ae126b952e57c83e2a80e046f93b0d | refs/heads/master | 2022-08-10T14:37:56.824248 | 2022-07-30T09:15:57 | 2022-07-30T09:15:57 | 203,825,413 | 0 | 0 | MIT | 2022-07-30T09:15:58 | 2019-08-22T15:42:48 | Python | UTF-8 | Python | false | false | 282 | py | # encoding: UTF-8
print('load vnpy/languange')
# 默认设置
from .chinese import text, constant
# 是否要使用英文
from vnpy.trader.vtGlobal import globalSetting
if globalSetting.get('language',None) == 'english':
from vnpy.trader.language.english import text, constant
| [
"incenselee@hotmail.com"
] | incenselee@hotmail.com |
e835b6d540c7b5b4b1f2c0bef0a31138109ae9cd | eddac44e78e10c9dbf1ec7b37f295de71b37c1bc | /mnist/main.py | 47f9e09b0e7af6ff2d8add34c08193f3c94d3f32 | [] | no_license | BRutan/mnist | 77a812275926983e0ca1cce6569dfea5bd49db86 | 10653ef97bff8f593ddb1a95c049b83b65d44dde | refs/heads/master | 2023-03-31T17:22:07.202521 | 2021-04-08T05:27:34 | 2021-04-08T05:27:34 | 333,237,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,624 | py | ##############################
# main.py
##############################
# Description:
# * Read in local MNIST data,
# train neural network using data
# and labels, generate predictions
# and display accuracy.
import matplotlib.pyplot as plt
from NN.neural_network import MNISTPredictor
import numpy as np
import os
fro... | [
"rutan.benjamin@gmail.com"
] | rutan.benjamin@gmail.com |
e794a71236a056e6fd4e9719dfc2144257e34bd6 | a5d22c99e781270317078f8980c934bcc71e6e8b | /neodroidvision/mixed/architectures/self_attention_network/self_attention_modules/functions/subtraction_refpad.py | 68e61decfc34d39d2dfe45867a2db4b94f2bb085 | [
"Apache-2.0"
] | permissive | aivclab/vision | dda3b30648b01c2639d64a016b8dbcfccb87b27f | 06839b08d8e8f274c02a6bcd31bf1b32d3dc04e4 | refs/heads/master | 2023-08-21T22:35:10.114394 | 2022-11-02T10:14:08 | 2022-11-02T10:14:08 | 172,566,233 | 1 | 3 | Apache-2.0 | 2023-08-16T05:11:30 | 2019-02-25T19:00:57 | Python | UTF-8 | Python | false | false | 12,589 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "heider"
__doc__ = r"""
Created on 26/01/2022
"""
import torch
from torch.autograd import Function
from torch.nn.modules.utils import _pair
from .self_attention_utilities import (
CUDA_NUM_THREADS,
Stream,
get_blocks_,
... | [
"christian.heider@alexandra.dk"
] | christian.heider@alexandra.dk |
53758dfee8d24524a5dff4a2ed46b924ffae7586 | 1267e7d3d6c9a0465c683a708373bcaf70e6014c | /Hangman.py | fff2b0ec01308bf1122143ddacba24bad91a5a84 | [] | no_license | Thomsd2/Hangman | 5a75920b89d209a78ad8f3227758b636c17191f6 | a99562840b80ff90c4a3dbdada21229095383db8 | refs/heads/main | 2023-06-01T12:09:49.993779 | 2021-06-22T14:06:52 | 2021-06-22T14:06:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,864 | py | #Cette fois-ci c'est un pendu (en anglais rip les non-bilingues)
#les imports
import time
import random
import sys
#voilà
#les variables
words_to_find = open("words.txt").read().splitlines()
word_to_find = random.choice(words_to_find)
# word_to_find =
#fin des variables
#explication
print ("Hi, you are playing a Ha... | [
"76630623+ThomasBest22@users.noreply.github.com"
] | 76630623+ThomasBest22@users.noreply.github.com |
4cd2fe1340dd2c599c3640ac2bc059ddc33cf527 | c652d5be0b8b112988fefe614c86fd7d426d7471 | /Presentation/tell.py | aa7fab391600fce1d3ee1c81912b192cb11adb64 | [] | no_license | vral-parmar/Basic-Python-Programming | 53fd489494ef24a3f80b17f33989d6c981e41dde | ef20b174bdc7125933e32ad6691f2d9386b34ac2 | refs/heads/master | 2020-12-09T15:51:30.476570 | 2020-07-25T11:46:28 | 2020-07-25T11:46:28 | 233,352,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | f = open("Presentation/example.txt", "r")
print(f.tell())
| [
"parmarviral93@gmail.com"
] | parmarviral93@gmail.com |
218fe6c319d1275ea633bf971e641fc1c0ac710f | 5b1533b0f8c4121b12600a784041e0e03bca9752 | /snakemake/RNA_seq/diff_exp/count_matrix_long.snakemake | de381a5cca39bff7074cb3467d6da0527336f734 | [] | no_license | 522845911/exVariance | e49d485a6ff5b7a352a3eae83d53c20e083efaf9 | 3b2d65f770c0df50e0d75c3b0fdeb02fe4efd85c | refs/heads/master | 2023-01-15T00:31:00.520630 | 2020-11-23T14:47:01 | 2020-11-23T14:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,305 | snakemake | # vim: syntax=python tabstop=4 expandtab
# coding: utf-8
#---------------------------
# @author: Shang Zhang
# @email: shang_zhang@foxmail.com
# @date: Sep, 3rd, 2020
#---------------------------
# count_method_regex = '(featurecounts)|(htseq)'
###------------------------The output section--------------------------... | [
"shang_zhang@foxmail.com"
] | shang_zhang@foxmail.com |
abcb59f0d5fb7ded12a38330c51b2648218e241f | 37d7f34ecf9fe2ede31252d9fba186768a161817 | /ytList.py | a7229e9483ff846a167db6a0245b6ff7caec7437 | [] | no_license | shikamaruNara3971/youtube_Downloader | 7a46deb456cc9acb55b8ea05962da3d674e70d29 | 7352c1c2051686caf33f03639aaab4de1f7bf3ad | refs/heads/main | 2023-06-03T11:49:17.451485 | 2021-06-23T08:11:50 | 2021-06-23T08:11:50 | 379,523,879 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py |
#The Author Name is Shikamaru Nara
#To this code to work import pytube
# Go to python interpreter
# Search for pytube
# Install pytube
from pytube import Playlist
try:
aList=Playlist("Enter your playlist link here")
def download_all():
print(f'Downloading in process: {aList.title}')
for video in aList... | [
"noreply@github.com"
] | noreply@github.com |
e52ce94b00b77f00026739ea4bb11ef738420240 | ad84af764e0a45211681c7629cf7b1c2226028c7 | /pics/admin.py | 01c15fe63ca7f4be26697083cdcb1b5ad523c2b5 | [] | no_license | Macharia-Tech/galla.me | d2bd353ea969db6ad333406c5f6404308bc2365a | 4bdf3e5b471f1f3b7368aba0bc80d1b6209ec317 | refs/heads/master | 2023-08-14T01:15:58.055834 | 2020-02-04T13:52:05 | 2020-02-04T13:52:05 | 227,810,753 | 0 | 0 | null | 2021-09-22T18:30:41 | 2019-12-13T10:07:39 | Python | UTF-8 | Python | false | false | 165 | py | from django.contrib import admin
from .models import location,Category,Image
admin.site.register(location)
admin.site.register(Image)
admin.site.register(Category)
| [
"mitchelaudrey@gmail.com"
] | mitchelaudrey@gmail.com |
034e44876afd2c93107c7df2cb48c4b4ace39127 | 1af3029ea88e50ce3d7cbbf089eead8a75e9e26a | /listoperations.py | 1faa646ad1859733b6da45f8a30c64feae189927 | [] | no_license | iampython-team/Python_Aug2020 | 899cb6699bbf423ab8b645d6dc570c4d30ba9d19 | 1999538d0308e558dd07501183539f1f09556699 | refs/heads/master | 2022-12-24T08:09:53.625300 | 2020-09-30T05:49:18 | 2020-09-30T05:49:18 | 299,820,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py |
listx=['Poland','Singapore','India','Norway','Norway','SouthAfrica','Singapore']
# 0 1 2 3 4
southAmerica=['Chile','Peru']
# insertion functions or operations
listx.insert(3,'Nepal') # only one item or object can be added at given postion of list
print(listx)
listx.append('Uga... | [
"rajageturgoal@gmail.com"
] | rajageturgoal@gmail.com |
8a5c40061871677f9c0fa418ca7731568301fe8c | b2e505fd6066320374b4b72afc2518eedf26fd2e | /NFL-ELO-predictor.py | 568cfaec8334c38468dea8c200d3e395bdb760cd | [] | no_license | GoofballInc/NFLGamePredictor | 99eac390fe5535ce0485373ce466445981c6535d | d5d8232e4e2e8e1931a90e67d84c792c267646c3 | refs/heads/master | 2023-03-24T04:35:48.634773 | 2020-03-26T15:46:38 | 2020-03-26T15:46:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74,110 | py |
"""
ELO rater for NFL teams
To Add:
Standings
Simulate Season
"""
# =============================================================================
# Libraries
# =============================================================================
import numpy as np
import pandas as pd
import re
import datetime as dt
#... | [
"noreply@github.com"
] | noreply@github.com |
b064fd0346014a6a9e350d214078bc034a747cce | 3795588dc26d25c695dfde89a95eb5e2e7e245ae | /crmsystem/models.py | 59f4acb838f9d3284c9ed60a2515ee2bae31f804 | [] | no_license | Pranathi6309/casestudydjangoapi | 77d7a2e279c45dc9300104290464a1207a4fb6ad | f948aab567cd0e2c7184ce0a4c55cb019b03de9d | refs/heads/master | 2020-07-31T09:48:32.686547 | 2019-09-28T09:30:48 | 2019-09-28T09:30:48 | 210,565,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | from django.db import models
from mongoengine import Document, EmbeddedDocument, fields
class projects(EmbeddedDocument):
projectId = fields.StringField(max_length=10, required=True, null=False)
projectName = fields.StringField(max_length=255, required=False)
startDate = fields.DateTimeField()
endDate... | [
"sakamuripranathi@gmail.com"
] | sakamuripranathi@gmail.com |
b0afccc9e5bfc2b26db6cd01d9db8aef6f4962b3 | 3d917a056ecd30de1b4f0c26966d24170f6614fc | /app/main/controller/project_controller.py | 7a565eb4961e555236a843f5df0a780616f543df | [] | no_license | ptrickd/flask-postgres-server | fd217c731ad51640df2d0e911cb8f692d331b02f | 28efedf8373174eeb7f404e3ce7e0cd861778fb1 | refs/heads/main | 2023-04-20T16:33:00.827007 | 2021-05-03T22:10:38 | 2021-05-03T22:10:38 | 353,814,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,521 | py | from flask import Flask, request
from flask_restful import Resource, reqparse, abort, fields, marshal_with
from sqlalchemy import or_
from sqlalchemy.sql.expression import null
import werkzeug
import json
# from app.main import app
from app.main import db
from app.main.model.project import ProjectModel
from app.main.... | [
"patrickdion8@gmail.com"
] | patrickdion8@gmail.com |
8eb2f2f5434f5679880e3262874f6f3ded82e049 | 2fd2a89f2c651df1b02224278370daae9c5ae1fa | /basic/decorator.py | 17872ab52368b18559983509cc3fff61535bf13c | [] | no_license | shuaijunchen/Python3 | a6af44c03d9ff8e4727b42ff6d485602b9a1cfc9 | d57e12e2e1d7d3b4312969cc1f3ecbcd725488d2 | refs/heads/master | 2021-05-16T08:00:51.655246 | 2018-07-07T05:06:00 | 2018-07-07T05:06:00 | 100,726,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import functools
def log(text):
def decorator(func):
@functools.wraps(func)
def wrapper(*args, **kw):
print('%s %s():' % (text, func.__name__))
return func(*args, **kw)
return wrapper
return decorator
@log('execute... | [
"toshuaijun@gmail.com"
] | toshuaijun@gmail.com |
d5d88c04f3002a7f940367da2475e95e17685520 | 5dc9959825ce41c65777e9dc1c30147a8443300e | /tutorial/spiders/quotes.py | 1c1f56e57d2d273ca56496ba7c126651a71a2fc0 | [] | no_license | ShirleyQueen/ScrapyTutorial | 7a3220b93d0a1e9465fb754dc06c2425f05d3ba8 | 88d87d454087ca69d30621a724a303c59f5762fd | refs/heads/master | 2020-03-28T03:17:37.661801 | 2018-09-06T07:33:57 | 2018-09-06T07:33:57 | 147,630,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | # -*- coding: utf-8 -*-
import scrapy
from tutorial.items import TutorialItem
class QuotesSpider(scrapy.Spider):
name = 'quotes'
allowed_domains = ['quotes.toscrape.com']
start_urls = ['http://quotes.toscrape.com/']
def parse(self, response):
qutoes = response.css('.quote')
for qutoe... | [
"2530838736@qq.com"
] | 2530838736@qq.com |
33375c4404abd484a28dc9d39e154deb2f05038b | eab1756b01717e81537133400f36aea4d7a0876f | /delete_placement_groups.py | 91a4aae2e9f0ea0bc65a052f324828626961c88c | [] | no_license | bearpelican/cluster | d677fe392ac1196b77e3f8fb79e530ec8371080f | 2e316cf1def0b72b47f79a864ed3aa778c297b95 | refs/heads/master | 2020-03-21T06:52:57.514901 | 2018-08-10T10:20:26 | 2018-08-10T22:33:05 | 138,246,892 | 3 | 1 | null | 2018-06-22T02:51:07 | 2018-06-22T02:51:07 | null | UTF-8 | Python | false | false | 1,773 | py | #!/usr/bin/env python
# delete all placement groups
import boto3
# {'PlacementGroups': [{'GroupName': 'gpu12',
# 'State': 'available',
# 'Strategy': 'cluster'},
# {'GroupName': 'gpu6', 'State': 'available', 'Strategy': 'cluster'},
# {'GroupName': 'gpu10', 'State': 'available', 'Strategy': 'cluster'},
# {... | [
"yaroslavvb@gmail.com"
] | yaroslavvb@gmail.com |
749217ba6f1f6556101e743957e954080c6956dc | 5c6ae056393c9fc4fd2b354a07df6c47eea37c48 | /tests_sample_test.py | a2fa20dec440a1b11b5aaf8c570c21659aff8566 | [] | no_license | copyleftdev/action-dojo-pytest | 8b07e8ff987b0dca8129805a9c49751f4fa43197 | fd59d9f11bc23c35d40c076718e20ef46739778b | refs/heads/main | 2023-07-11T14:40:05.721588 | 2021-08-22T18:48:13 | 2021-08-22T18:48:13 | 398,386,827 | 1 | 0 | null | 2021-08-22T18:48:14 | 2021-08-20T19:56:58 | null | UTF-8 | Python | false | false | 75 | py | import pytest
def test_add():
a = 10
b = 20
assert a+b == 30 | [
"dj@codetestcode.io"
] | dj@codetestcode.io |
5489f686c505c4dcbc1504a7cdd87d9326971d74 | 8a5a619f95887b7bddc8a945a03b86a81f0eef5d | /menu_pages_scraping/revTotal.py | 8cb49eeebb94c39d9ed3d603e94a2678cc8990b5 | [] | no_license | mnatalka/Table4Us | 63aa943f6c2f733f07b1ca112f9dfb96b2468a9c | 79f5805426f7f23cc4e00de5149fe1f4893854bd | refs/heads/master | 2020-03-30T02:52:42.609956 | 2015-02-25T13:37:42 | 2015-02-25T13:37:42 | 30,254,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | import sys
import csv
import re
import requests
import json
import math
from bs4 import BeautifulSoup
#spoof header so they appear to be coming from a browser rather than a bot
headers = { "user-agent": "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537... | [
"natalia.maciejowska@gmail.com"
] | natalia.maciejowska@gmail.com |
e628750064eaadf4f0e74e76f86a59bc9153118a | 34a09981dec4d059f789520fed91e35dcc56fecb | /pages/urls.py | a789cccda3b7bf5d096e797802a7da2ba107b580 | [] | no_license | fk-winner/carzone-git | 03ce214d16d5f59e8f8577b0bcee84b08b10428c | e370db7136354ab153abb44fc3bf5b15611da924 | refs/heads/master | 2023-04-04T20:38:38.593285 | 2021-04-06T10:00:08 | 2021-04-06T10:00:08 | 352,025,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py |
from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('about', views.about, name='about'),
path('services', views.services, name='service'),
path('contact', views.contact, name='contact'),
] | [
"hacklearn95@gmail.com"
] | hacklearn95@gmail.com |
48ba1d5f9ad1894ce0c50d212e63e181a3a592e0 | 128d593efd591dc83a3aef2d4bfad39e73ee637e | /python_code/too_slow/no068 | 16fee3ebdf0da6c9232526b9db6cfa41e34ee9ef | [] | no_license | jwan/ProjectEuler | 93be87d89cc58516d503dd5ed53bdbd706748cda | 65aec4f87b8899db6bad94a36412a28a4b4527e9 | refs/heads/master | 2021-01-17T08:21:46.654529 | 2011-05-02T23:11:35 | 2011-05-02T23:11:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | #!/usr/bin/env python
# a0
# a1
# a2
# a3 a4
# a5
# a6 a7 a8
# a9
# In clockwise order, chains are
# (a0, a2, a4)
# (a1, a4, a7)
# (a8, a7, a6)
# (a9, a6, a3)
# (a5, a3, a2)
from python_code.decorators import euler_timer
from python_code.functions import all_permutations
de... | [
"dan@counsyl.com"
] | dan@counsyl.com | |
4dc32d0c6c6b2b8fda0d981e5c9a94b11e9aa434 | 95767c1e942bfd2317ee054456114ebbe79504ba | /v26.py | b234189d62b4a0a5338efd554e915001f25c5af1 | [] | no_license | daiyeyue/spider | 18bfe067fb2c165ce6680afcaa81a7f3294745e0 | a644de5280591b6148da0333a2764db6d8234441 | refs/heads/master | 2020-08-17T16:51:17.795115 | 2019-12-11T09:53:44 | 2019-12-11T09:53:44 | 215,689,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | '''
findall案例
'''
import re
pattern = re.compile(r'\d+')
s = pattern.findall("i am 18 years odl and 185 high")
print(s)
print(type(s))
for i in range(0,len(s)):
print(s[i])
s = pattern.finditer("i am 18 years odl and 185 high")
print(type(s))
for i in s:
print(i.group())
| [
"150064328@qq.com"
] | 150064328@qq.com |
e29ef4412b50fbe121445d5211425dc1706fbad8 | 9994a95e09ed1be281774b19e216fb450712af72 | /query_careportal.py | e06c77dd2ad89abb56082e4a7de5d7473179a7ce | [] | no_license | dkaygithub/care_portal | f0edb065564006b7005c481242db4dcbfb1e0daf | 8ed4cd706f1d95a8f3352ada82e3dae85547c9c2 | refs/heads/master | 2020-08-02T17:42:50.115171 | 2019-09-28T05:44:21 | 2019-09-28T05:44:21 | 211,450,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | import requests
import redis
class UnexpectedDataFormat(Exception):
pass
class DataSource():
def __init__(self):
self._r = redis.Redis(host='localhost', port=6379, db=0)
def get_test_text_blob(self):
return """
Single mother, age 25, is in need of a mattress for her 6 year old daughter. Mother has sheets, pi... | [
"danielkay@danielkay-macbookpro2.roam.corp.google.com"
] | danielkay@danielkay-macbookpro2.roam.corp.google.com |
45a7c7aafd20a7a3e40e45f4a0ad15a4ad827ce7 | 8da9355b0d9d1b3c8f789f3d28e5e8a26231359c | /FindAngle.py | a7987a7b35d04e67a63b674d25c71bbaa15e2dda | [] | no_license | anshi-gupta/udemy-python | b4c06c38b6a5ad15d700096ebf01d933a5ed4f6b | 8207e89ef3a550965c0b6066c1d096ab27955224 | refs/heads/master | 2022-12-11T07:37:19.564750 | 2020-09-03T17:39:53 | 2020-09-03T17:39:53 | 271,995,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | ## Given a right angled triangle ABC.
## M is the mid-point of hypothenus,AC.
## INPUT - The other two sides of the triangle ABC, AB and BC.
## OUTPUT - Angle MBC
import math
AB = int(input())
BC = int(input())
AC = math.hypot(AB, BC)
MC = AC / 2
MBC = math.acos(0.5 * BC/MC)
result = math.degrees(MBC)
print(round... | [
"anshiisgupta@gmail.com"
] | anshiisgupta@gmail.com |
8f5e58e91fc324e0f41b0111b14cd986a341d83c | 14341032e732da1364ba3bfef71bd03852033e65 | /theWall/forms.py | 0476eed64ae3e432eb36a9d5291bf2ba4a601ce2 | [] | no_license | VargasDevelopment/WallOfSecrets | 8ed8f5b02a72d857fb969b2229a6a9dfbd1dc93b | ff181f677bc4d881aafc97267e1a236c5b23e0bd | refs/heads/master | 2021-08-29T10:20:20.363876 | 2017-12-13T17:13:06 | 2017-12-13T17:13:06 | 111,593,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | from django import forms
from theWall.models import Post
'''
Class: PostForm
Description:
this is a django specific class. It is used to create the structure of a web form. It has built in restrictions
for length and such. This particular form is for the user to post their message to the site. it integrates with the... | [
"vargman54@gmail.com"
] | vargman54@gmail.com |
0892d9bab185899dcb03871b351d68cabb417b2f | 1d065a530eb33a4910c4d0a5daed195a07fbc016 | /program.py | 95b2bbd3e0a4c9a180dfbe2243a7bce6fe6d0325 | [] | no_license | Gavin-McQuaid/distinct_powers | a3cd4ec314876021495058650198a4d5614ef694 | 949da17ba7d575d6400df9327b8a7be942944f5a | refs/heads/master | 2021-01-13T13:15:09.569199 | 2016-11-02T20:42:02 | 2016-11-02T20:42:02 | 72,679,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | terms = []
a = 2
while a <= 100:
b = 2
while b<=100:
if a ** b not in terms:
terms.append(a**b)
b += 1
a += 1
print len(terms)
| [
"noreply@github.com"
] | noreply@github.com |
d1f021aed0da004a08fc23bf7bdf1e623de53b8b | 60e201a4fa5ffd376f3228194312a9439c4ddbf7 | /fizzbuz.py | e50901a89d7848e235966ce1b0cb219b768b23b5 | [] | no_license | W0lvRine007/python-prog | 955ae52f607f0200925e4cccefd370aad6010d53 | 8bc6f27e4fb8f0b6208ddb9a22232bcc213c705f | refs/heads/master | 2023-09-04T22:12:58.658453 | 2021-11-08T11:41:02 | 2021-11-08T11:41:02 | 425,803,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | series = 0
for num in range(1, 101) :
if num % 3 == 0 and num % 5 == 0 :
print("FizzBuzz")
elif num % 3 == 0:
print("Fizz")
elif num % 5 == 0 :
print("Buzz")
else:
print(num)
print(num)
| [
"89771948+W0lvRine007@users.noreply.github.com"
] | 89771948+W0lvRine007@users.noreply.github.com |
cd8e5beecbad13a32c6f29cd3358bdceda58b63c | 97b47b7f5bbafdac51979c17cddb56bd14a75153 | /week02/course_code/exception.py | 79cd7bf9d488c7c20cba0ffe265976c7eae90e7c | [] | no_license | shmilyvidian/Python001-class01 | e11f5db5f64976f573d9a7733d637ddf28675103 | 7a40fada0fbb8f4a860c0d7d5fa96db68a10b818 | refs/heads/master | 2022-12-07T22:49:18.728598 | 2020-08-28T03:27:01 | 2020-08-28T03:27:01 | 272,919,545 | 0 | 0 | null | 2020-06-17T08:28:27 | 2020-06-17T08:28:27 | null | UTF-8 | Python | false | false | 281 | py | import pretty_errors
def a():
return b()
def b():
return c()
def c():
return d()
def d():
x = 0
return 100/x
try:
a()
except Exception as e:
try:
1/0
except Exception as f:
print(f'f{f}')
print(f'e{e}')
print('-----')
| [
"shmilyvidian@youyi.onaliyun.com"
] | shmilyvidian@youyi.onaliyun.com |
ff20a5d5d335d86f94ecc89c9539f6ed52fa51f6 | 13c74b781a36fb45da43c4a4d4644330be2c6d5c | /APS0/enlaceRx.py | 89fd4bf3a09f0d5eeef6d6537d5bb029b0d4e284 | [] | no_license | CEDipEngineering/DataTransmission | d07bc50188b73be239221c42875abcd523770c57 | af0926c7b58ba1351e07555cf54fe065ae985643 | refs/heads/master | 2022-12-23T09:05:16.361784 | 2020-10-01T18:18:41 | 2020-10-01T18:18:41 | 291,329,086 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#####################################################
# Camada Física da Computação
#Carareto
#17/02/2018
# Camada de Enlace
####################################################
# Importa pacote de tempo
import time
# Threads
import threading
# Class
class RX(object):
... | [
"cadudip@hotmail.com"
] | cadudip@hotmail.com |
791eb993af56cf5aec4afabde7268016b06c5b20 | 235ce20a1a4af284d69c887df87bf975baf26b45 | /random.py | 10f3b3352f926f1c3f2442a5c37f4a0f68213826 | [] | no_license | raviputtar/pycharm_repo | e890815bce40bfde17673419d4c82fa319bf035a | ed23ee2a23100b9dfbafaf285e03c9a66c63fea7 | refs/heads/master | 2021-08-08T23:44:38.462758 | 2020-04-22T14:16:41 | 2020-04-22T14:16:41 | 162,283,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | def myfunct(a,b,c):
if c=="sum":
return(a+b)
elif c=="mul":
if a < 0 or b < 0:
raise ValueError("a or b should be greater than 0")
else:
return(a*b)
else:
return(a-b)
| [
"ravinder267@gmail.com"
] | ravinder267@gmail.com |
9a0418b89a5bb0098df725447e0ea8b7fad4457d | 2334ce5d9f1a151262ca6822e166ae5074f7e7b8 | /boj_lecture/bf/permutation/boj10971.py | 3aa4b7f435bc2bbc8acc91fd019f987f7e484a30 | [] | no_license | passionCodingTest/Injeong | 6c9330360c7ef11d6dc05b1990db7d5b20bf3443 | b812f19b8733bc64e319ad81ee53edaf5290989f | refs/heads/main | 2023-06-22T16:33:22.509163 | 2021-07-27T12:55:31 | 2021-07-27T12:55:31 | 341,564,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | import sys
n = int(input())
graph = []
for _ in range(n):
graph.append(list(map(int, input().split())))
min_value = 1e9
def recur(start, index, cost, visited, count):
global min_value
if min_value <= cost:
return
if count+1 == n:
if graph[index][start] != 0:
cost += gr... | [
"injeong410@gmail.com"
] | injeong410@gmail.com |
581c1c342c42a3ecf0e961beeb1f303e93af8e5c | 00c3354abfae93bb158eef810281aee94a299437 | /recomments/migrations/0003_auto_20201208_0731.py | f54abe0a9d40c330c56b12324fc769a024f08158 | [] | no_license | supersymmetry-TEAM/FOR_FUCKING_NAVER_SERVER | 569b17ff15371e393f4f52b05d1a75376216f133 | 32ce3dabfb323df51c172f8476f17573666d6d61 | refs/heads/master | 2023-04-09T11:42:22.047813 | 2021-04-21T08:00:14 | 2021-04-21T08:00:14 | 360,077,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | # Generated by Django 3.1.1 on 2020-12-08 07:31
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('recomments', '0002_auto_20201208_0715'),
]
operations = [
migrations.RenameField(
model_name='refoodcomment',
old_name='comm... | [
"zx0596@naver.com"
] | zx0596@naver.com |
5678f135a6ae2b4c9c866e1ef468fe49bddb0b1e | e0db43feb3cd9c26d4a471ff403665e235949a0c | /fixture/orm.py | 4d3c3aa90166c49fcde76a8e9b30ac2e51848442 | [
"Apache-2.0"
] | permissive | leg020/python-training | 04dd716399bd74d48eb400b6d1f1722421c9f141 | f595b8b836ff60c68bdff9d881ca50c026762457 | refs/heads/master | 2020-05-15T18:05:13.714162 | 2019-06-28T06:28:34 | 2019-06-28T06:28:34 | 182,416,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,585 | py | from pony.orm import *
from datetime import datetime
from model.group import Group
from model.address import Address
from pymysql.converters import decoders
class ORMFixture:
db = Database()
class ORMGroup(db.Entity):
_table_ = 'group_list'
id = PrimaryKey(int, column='group_id')
nam... | [
"leg020@inbox.ru"
] | leg020@inbox.ru |
e298430c3a51927247f45adfe3c933f198f032c6 | 37ef6aa4f1ced4d64250721ae6dbefac11f0b25b | /lists/models.py | 4b0373f307231fc0d210e6f44f7e3779f63bb226 | [] | no_license | Xiaven/MyPython | e17ce8fd349a2f31dea9550ddf36b9d6d6c3ebe8 | c8e5bf989cc55dd30ab3d6813ab48d0fb40afe18 | refs/heads/master | 2021-05-29T17:30:34.359740 | 2015-10-23T09:09:42 | 2015-10-23T09:09:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from django.db import models
# Create your models here.
class List(models.Model):
pass
class Item(models.Model):
text = models.TextField(default='')
list = models.ForeignKey(List, default=None)
| [
"305858610@qq.com"
] | 305858610@qq.com |
6e77ca48be1d1df21ac1321e5fccc14f63ca2be1 | 6ef49533a149e6d2d08fc2d86af112ce16b05c96 | /users/apps.py | 283b233e9cefe09f2a25975011c52bc2ebd4266a | [] | no_license | neet-lord/mangapoint | 7cdb260696289ce69817c9d7d58d9b8f084297fd | bfc993320d4c8b548194c5f9fcbc0cd16966a71d | refs/heads/master | 2021-05-18T18:18:46.386479 | 2021-04-06T15:44:43 | 2021-04-06T15:44:43 | 251,355,709 | 1 | 0 | null | 2020-04-03T11:58:24 | 2020-03-30T15:58:33 | CSS | UTF-8 | Python | false | false | 445 | py | # users/admin.py
from django.contrib import admin
from django.contrib.auth import get_user_model
from django.contrib.auth.admin import UserAdmin
from .forms import SiteUserCreationForm, SiteUserChangeForm
from .models import SiteUser
class SiteUserAdmin(UserAdmin):
add_form = SiteUserCreationForm
form = Site... | [
"lusayohendy@gmail.com"
] | lusayohendy@gmail.com |
efe1d980a6834306b2d79a335a44192d81ab9a81 | b80a187951eafdc90aefc939c5b06c0361fa32ab | /onlineshop/shop/migrations/0004_auto_20180424_1503.py | a67f8700f5955c957ff318308501543a0a72575e | [] | no_license | MindTheGap1/Django-ComicStore | 541d49c3b93959225c4331971477db9b8eeeb862 | 39b9e9de2f846d6e0ac83ccf26bb7261b133d2ac | refs/heads/master | 2020-03-13T01:01:46.581952 | 2019-02-19T14:34:07 | 2019-02-19T14:34:07 | 130,897,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-04-24 14:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0003_auto_20180424_1457'),
]
operations = [
migrations.AlterField(
... | [
"george.browning258@gmail.com"
] | george.browning258@gmail.com |
514d5365b2f638bbfc687fd0cb97a24fc3aa17e3 | 8cf6545a9006a9c6037b515bb829c97cad1e2a6e | /e89_push_messaging/websockets.py | 4e91248bc2dfd203b36e66cd36d705c1bf4c0ff0 | [] | no_license | estudio89/e89-push-messaging | 5f9d0a448ecb54f749153a158b5a806f6940d806 | 8af82a9b7093ced11eaeee54855e2182e0f63d49 | refs/heads/master | 2021-07-14T02:17:02.160280 | 2021-03-04T21:17:43 | 2021-03-04T21:17:43 | 30,656,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | from __future__ import unicode_literals
from django.conf import settings
from django.apps import apps
import e89_push_messaging.push_tools
import requests
import json
def send_message_websockets(owners, data_dict = {'type' : 'update'}):
if e89_push_messaging.push_tools.is_id(owners[0]):
OwnerModel = apps.get_model(... | [
"luccascorrea@estudio89.com.br"
] | luccascorrea@estudio89.com.br |
bf48ee24a79d6831b15b183f076b3c08931588b5 | 40ee5a2ad5a8589d6073be4911be71574a43183e | /get_all_links.py | 1c84fcbbea153b4fb74935d56ad59f572f19165c | [] | no_license | Bietola/py-corpus | de24d57fa0c5ab951d24a9fc557ac18a57cc470f | df2a5696fe6ee60d91a5a3c414ff521a4cad6edf | refs/heads/main | 2023-02-25T07:03:30.123264 | 2021-02-07T21:15:01 | 2021-02-07T21:15:44 | 336,890,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | import fire
from bs4 import BeautifulSoup
import urllib
from urllib.request import Request, urlopen
import re
from operator import iconcat
from itertools import chain
def get_all_links(url):
soup = BeautifulSoup(
urlopen(Request(url)),
'lxml'
)
try:
return list(map(
lam... | [
"dincio.montesi@gmail.com"
] | dincio.montesi@gmail.com |
5278a40997403b8fe50fbca202b2cebd559ce593 | a029a45c42e499d137f28f50af248ab033435f46 | /baekjoon/1707.py | 47439876a1c49895a312c5e246070ce10e4b42e5 | [] | no_license | Korimse/Baekjoon_Practice | 561f7670566419d84e9be2642b94218c8487407f | d506aa6957c8a5ffdac5448633bbba015dc58778 | refs/heads/master | 2023-08-13T20:45:20.669848 | 2021-09-21T16:15:45 | 2021-09-21T16:15:45 | 326,729,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | from collections import deque
import sys
input = sys.stdin.readline
k = int(input())
def bfs(i):
global isTrue
queue = deque()
queue.append(i)
visited[i] = 1
while queue:
v = queue.popleft()
for s in graph[v]:
if visited[s] == 0:
if visited[v] == 1:
visited[s] = -1
qu... | [
"korimse@gmail.com"
] | korimse@gmail.com |
6c3f82cc3fe400d3a571f94c2a6e0ed176ac98f1 | 58f7ce0a511301f0c66f74c02614ffd5c15c8d42 | /loopuntil.py | 74c3cc9cca9601d0833327ec2d8823453ba57474 | [] | no_license | Samson1907/guvitask | 4fb344988c08ab67785d134c3294db5c91a6bf1f | 22c8bf4c5b06cfac5b2361dcae1ef8c261de1a45 | refs/heads/master | 2020-12-22T18:59:01.116130 | 2020-01-29T09:50:13 | 2020-01-29T09:50:13 | 236,899,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | A=""
while not(A=='Q' or A=='q'):
A=input("Enter a value ")
| [
"noreply@github.com"
] | noreply@github.com |
88bc916493945a5154f7af6cf905769a302cb058 | a6b3aecf6c584a343e77730d6d4ea2c9505c7968 | /RoomManagement/migrations/0011_auto_20190216_2307.py | 20fc6058b3e40b4f172cb3e67a6f6ded98006a9e | [] | no_license | PratibhaShrivastav/IncubatorManagement | 72c45dbda7159104df897f7a3c1f94a9a670c390 | a3bbbfcf06eb6be55b65d50e499fe144e223f48b | refs/heads/master | 2020-04-22T16:40:56.791919 | 2019-02-18T13:50:14 | 2019-02-18T13:50:14 | 170,516,785 | 1 | 1 | null | 2019-02-18T07:28:49 | 2019-02-13T13:56:54 | HTML | UTF-8 | Python | false | false | 1,160 | py | # Generated by Django 2.1.7 on 2019-02-16 23:07
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('RoomManagement', '0010_a... | [
"sumit7engineer@gmail.com"
] | sumit7engineer@gmail.com |
ac0fe8c66366f3b2605755bc6ff7f90266308011 | ea695945f1d1c0a5c5e71dad54f2df0fc2acc1e8 | /flask_blog/routes.py | 7478b153183076e68487a95584b246c60cfd8938 | [] | no_license | gaomingruc/flask_blog | d0856feda3bfe14fc74f0d83f3b6ca7025453895 | f0d321716db05085cdcb366c6276266683a1ec30 | refs/heads/master | 2023-07-02T20:39:49.418037 | 2021-08-03T13:43:47 | 2021-08-03T13:43:47 | 388,085,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,763 | py | import os
import secrets
from PIL import Image
from flask import render_template, flash, url_for, redirect, request, abort
import flask_login
from flask_login.utils import login_required
from flask_blog import app, db, bcrypt
from flask_blog.forms import LoginForm, RegistrationForm, UpdateAccountForm, PostForm
from fla... | [
"gaomingshs@126.com"
] | gaomingshs@126.com |
feacf3805c44b105604a8ea1cc63023fc31b7fc9 | d5214b1331c9dae59d95ba5b3aa3e9f449ad6695 | /quintagroup.ploneformgen.readonlystringfield/tags/0.2/quintagroup/ploneformgen/readonlystringfield/widget.py | 00302377141fb1b5999d689ea55c52d3fe8b96c9 | [] | no_license | kroman0/products | 1661ee25a224c4b5f172f98110944f56136c77cf | f359bb64db22f468db5d1e411638790e94d535a2 | refs/heads/master | 2021-01-10T07:58:04.579234 | 2014-06-11T12:05:56 | 2014-06-11T12:05:56 | 52,677,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | from Products.Archetypes.Widget import StringWidget
from Products.Archetypes.Registry import registerWidget
class ReadonlyStringWidget(StringWidget):
_properties = StringWidget._properties.copy()
_properties.update({
'macro' : "readonlystring",
})
registerWidget(ReadonlyStringWidget,
... | [
"piv@4df3d6c7-0a05-0410-9bee-ae8b7a76f946"
] | piv@4df3d6c7-0a05-0410-9bee-ae8b7a76f946 |
58092b9643add9f053d684e9c3d3b666accf1586 | 625ff91e8d6b4cdce9c60f76e693d32b761bfa16 | /example-config/scripts/localStation.for_training.py | 4b11d7726101a7a58597a0f2b03d01837e6a7909 | [] | no_license | openGDA/gda-core | 21296e4106d71d6ad8c0d4174a53890ea5d9ad42 | c6450c22d2094f40ca3015547c60fbf644173a4c | refs/heads/master | 2023-08-22T15:05:40.149955 | 2023-08-22T10:06:42 | 2023-08-22T10:06:42 | 121,757,680 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,617 | py | print "Performing beamline specific initialisation code"
from gdascripts.pd.dummy_pds import DummyPD
from gdascripts.pd.dummy_pds import MultiInputExtraFieldsDummyPD
#from gdascripts.pd.dummy_pds import ZeroInputExtraFieldsDummyPD
from gdascripts.pd.time_pds import showtimeClass
from gdascripts.pd.time_pds import sho... | [
"dag-group@diamond.ac.uk"
] | dag-group@diamond.ac.uk |
6eaa6f30275cef6561a8ebfb36f1c62e2eb4f955 | 42dd96960a252398db3be1dc0aa9416664cfc7c5 | /water/migrations/0012_auto_20161228_1840.py | ee7f1dfabd1930262b21c043a67fe3e0d4500855 | [] | no_license | 2ncs/thepartners | ef70be73735bd19909c0e93c0d1b27fd612325e8 | fc5bb2e4ddc38c64e9b166af522bd58cd8886850 | refs/heads/master | 2021-01-25T07:07:06.477978 | 2017-02-02T04:39:40 | 2017-02-02T04:39:40 | 80,694,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-12-28 18:40
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('water', '0011_auto_20161228_1824'),
]
operations = [
migrations.AlterModelOptions(
... | [
"greekou@gmail.com"
] | greekou@gmail.com |
c8a2b443799a24f71a8d5e13898b2a65f36122e2 | 3f742d4ce80f50481df6030304cfa9d7eedce09a | /jumpGame1&2.py | 2f4a07ad515f3795422258f2c92e051d26f1e14b | [] | no_license | guangyi/Algorithm | 12c48206ddb560bd11b7e3f68223ee8cc8f436f0 | 7e747ed1b11a06edc117dd5627ede77409b6a259 | refs/heads/master | 2021-01-10T21:08:15.867142 | 2014-08-26T05:44:44 | 2014-08-26T05:44:44 | 20,144,855 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | class Solution:
# @param A, a list of integers
# @return a boolean
def canJump(self, A):
if A == []: return False
if len(A) == 1: return True
result = False
lastPosition = len(A) - 1
for testPosition in range(len(A) - 2, -1, -1):
if A[testPosition] >= last... | [
"zhouguangyi2009@gmail.com"
] | zhouguangyi2009@gmail.com |
f1ce1dee2a20fd49352ccc7e512fde53dbf34f99 | 93227fd3848ae505a6c10b62fdf8ebcdf0ba0b29 | /addvaluearray.py | d3a03bc8138f7ce1bbebd376492b421b56d056d2 | [] | no_license | noobpython403/noob1 | 949cfde4913b43436a650b7876b971c94db830d9 | c098b92ec376383ba916a8f8045edb4ae26696de | refs/heads/master | 2020-12-14T18:27:07.207123 | 2020-01-22T09:47:10 | 2020-01-22T09:47:10 | 234,839,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | import array as array
import numpy as np
arr1 = array.array('i', [])
x = int(input('Enter the length of array\t'))
for i in range(x):
x = int(input('Enter the value\t'))
arr1.append(x)
print('The entered array is\t', str(arr1)[10:-1])
y = int(input('Enter the value to be added\t'))
for j in range(x):
ar... | [
"singharun820@gmail.com"
] | singharun820@gmail.com |
09fc2d543241c8646aa21fc97ddc14a55d2bcd6b | 33c818fbbec36728ed19200fd069d3bf1c2dcb37 | /week13-1/lab42/rmon/rmon/app.py | 4d9a48cf76dbbeac4fc5eac5c6f0213ca9838b23 | [] | no_license | myday56/shiyanloutest | 8d69cd77d56d8e9d98df43d84ddefad7176fd4f2 | 3b0dafbe56919e0c4771c7889e0a66660992af23 | refs/heads/master | 2021-03-24T13:57:13.609487 | 2019-05-08T16:21:59 | 2019-05-08T16:21:59 | 118,872,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | import os
from flask import Flask
from rmon.views import api
from rmon.models import db
from rmon.config import DevConfig,ProductConfig
def create_app():
app = Flask('rmon')
env = os.environ.get('RMON_ENV')
if env in ('pro','prod','product'):
app.config.from_object(ProductConfig)
else:
... | [
"leletou56@live.com"
] | leletou56@live.com |
d544b9616da5429c24d2a54e72571196885fbcbf | 288884c9a28cda5c78ccc5dc4e1d3f54f584689d | /__init__.py | 75dcfd3b408436e5fc3135085b866af369542964 | [] | no_license | sharpevo/mplayer_resumer | 9f2bfd6640645226c783606e0a8d193f1e0907d9 | f5673618bc706261d1b18b95cb4281292ae34e3e | refs/heads/master | 2021-01-01T20:35:58.786854 | 2014-09-22T13:04:37 | 2014-09-22T13:04:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py |
from mplayer_resumer.src.main import Player, History
__all__ = [
Player,
History]
| [
"sharpevo@gmail.com"
] | sharpevo@gmail.com |
fbe9e116e1b96900fc518493e979891f1cdf33b3 | f6641c552622e1446d913d50f561ff14c524e885 | /base_model.py | 1fa403e26db69d5d5f78ebd8a53b47155706e000 | [] | no_license | yangyi02/video_motion_synthetic3 | 939d1ddd3a4caada87e0e2ef3ed430dae9b2447e | e732d3641c555422b977648211683cb21186bcdb | refs/heads/master | 2021-01-01T06:46:55.553125 | 2017-08-04T00:19:28 | 2017-08-04T00:19:28 | 97,509,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,715 | py | import math
import torch
import torch.nn as nn
import torch.optim as optim
from torch.autograd import Variable
import torch.nn.functional as F
class BaseNet(nn.Module):
def __init__(self, im_height, im_width, im_channel, n_inputs, n_class, m_range, m_kernel):
super(BaseNet, self).__init__()
num_hi... | [
"yangyi02@gmail.com"
] | yangyi02@gmail.com |
b580ad8db2a386d642351069114b1a743e4e0673 | 5badb035ec0a60527859349314da313392425879 | /testing/scripts/run_gtest_perf_test.py | f2923c483bd62c953bbe3defe08b93e56741d90f | [] | no_license | youminxue/gndemo | c3b1697e78bb6d1fa14675a4657267490138c22e | d3b7d6c7e67a0146fad125da5662fa7821d33453 | refs/heads/master | 2020-03-18T19:32:31.234857 | 2018-06-05T03:47:36 | 2018-06-05T03:47:36 | 135,160,324 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,255 | py | #!/usr/bin/env python
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Runs an isolated non-Telemetry perf test .
The main contract is that the caller passes the arguments:
--isolated-script-test-out... | [
"youzhenyu@vipkid.com.cn"
] | youzhenyu@vipkid.com.cn |
aa644a0faa6511052d7ad76b16dca0e1c9a8f2b9 | be11f055ded8ca3338163288b691c589a3ec07b3 | /faceRecognition.py | 53bfa0ea409ddadf800856a28fbc778c978392fe | [] | no_license | Nursefa-Elias/Project | 50c70e08c104585ba99c91a0126756976c818a09 | 13ec18ab5e9925770cc40fd9f6de5c8c3b68a7f2 | refs/heads/master | 2022-09-09T03:09:41.750795 | 2020-01-06T18:27:49 | 2020-01-06T18:27:49 | 228,553,158 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | import cv2
import os
import numpy as np
def faceDetection(test_img):
gray_img=cv2.cvtColor(test_img,cv2.COLOR_BGR2GRAY)
face_haar_cascade=cv2.CascadeClassifier('LOCATE HARR ALGORITHM PATH')
faces=face_haar_cascade.detectMultiScale(gray_img,scaleFactor=1.2,minNeighbors=3)
return faces,gray_img
def labels_... | [
"abdulkerimnur21223143@gmail.com"
] | abdulkerimnur21223143@gmail.com |
54ba5a28a9b4692239c4d13c910faa451911be4b | 705a5e28d15752cd26cfcf8e7abeab429994b0a1 | /process_farmer_data.py | 5647de26a3bcb76580ab12165e55ca6ce50c703e | [
"MIT"
] | permissive | Abhi001vj/mlops | 4bdcec2b8f3e57406faed0a967a90cad120a6ca4 | 22ac9b861fc43b2d0885e3018997a987e7a4b44b | refs/heads/main | 2023-04-30T14:57:54.229589 | 2021-05-21T06:27:46 | 2021-05-21T06:27:46 | 368,819,108 | 0 | 0 | MIT | 2021-05-21T06:32:34 | 2021-05-19T09:46:33 | Python | UTF-8 | Python | false | false | 898 | py | import pandas as pd
df = pd.read_csv("data_raw.csv")
all_features = df.columns
# Let's drop some features
names = [feat for feat in all_features if "net_name" in feat] # excluded for privacy reasons
useless = ["info_gew","info_resul","interviewtime","id","date"] # features that we expect are uninformative
drop_list ... | [
"abhilash001vj@gmail.com"
] | abhilash001vj@gmail.com |
137fb8ba913ac5c15bb699924a122ceeaf4817bd | 10a1647d6ca3922e2f6f9657c52695a0d406a17b | /NYC_Algos/Berserker_Rush/gamelib/game_state.py | 5207e8f3e90b2a730994f6f5ffde76f61fcbe40e | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | apetri/C1GamesStarterKit | ee4dcd039990dd1daa7abae9dc16dfbf760db19f | cf6d6a297c3a6acc81e3c5c1cd31cebafd5cb83c | refs/heads/master | 2020-06-29T02:13:03.995889 | 2019-08-07T01:19:37 | 2019-08-07T01:19:37 | 200,407,908 | 0 | 0 | NOASSERTION | 2019-08-03T18:22:50 | 2019-08-03T18:22:50 | null | UTF-8 | Python | false | false | 16,555 | py | import math
import json
from .navigation import ShortestPathFinder
from .util import send_command, debug_write
from .unit import GameUnit
from .game_map import GameMap
def is_stationary(unit_type):
return unit_type in FIREWALL_TYPES
class GameState:
"""Represents the entire gamestate for a given turn
Pro... | [
"anthony.lam@equitymultiple.com"
] | anthony.lam@equitymultiple.com |
05d488ac281d514b6c5752247da245e798281c00 | c7586cda99c1b9853b828ae98aa39314957a4fc1 | /HW05/main.py | 6105cd7b3798e4c77699ea6e9270febe4c3d23e9 | [] | no_license | RenjieWei/Deep-Learning | 60d9a9c7644f8d20166662676c2d5b4a7aa7c12b | 906fd90b2c6f67d73e6b8d79eabeea551ec9a0b8 | refs/heads/master | 2021-08-07T08:58:19.675742 | 2019-01-03T03:21:46 | 2019-01-03T03:21:46 | 148,950,667 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,810 | py | import torch
import torch.nn as nn
import torch.optim as optim
import torch.backends.cudnn as cudnn
import torchvision
import torchvision.transforms as transforms
from torch.utils import *
import os
import argparse
import numpy as np
import pickle as pkl
from tripletImageNetDataset import TripletImageNetDataset
fro... | [
"noreply@github.com"
] | noreply@github.com |
20af6a6869eac42cf2d3986818dac68af1589c26 | 4820b92d4c437721914a8fe5d600ad92c058caf0 | /src/hack_sols/dexTapSol.py | e33ef52e64a6db186668dbc952ed0ba792fdd92b | [] | no_license | MRzNone/SAPIEN-dexterous-bench-env | 1619b335fa78b03eead933c09e292253282f576d | 38e1128874a0f9f843526e45e61ddcae744d635d | refs/heads/master | 2022-12-20T07:39:49.906586 | 2020-10-05T09:04:04 | 2020-10-05T09:04:04 | 261,099,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,035 | py | import enum
from sapien.core import Pose
from transforms3d import euler
import numpy as np
from agent import PandaArm, Box
from env.dexEnv import DexEnv, ARM_NAME, BOX_NAME
from hack_sols import DexHackySolution
from sapien_interfaces import Task
from task.dexTapTask import DexTapTask
class Phase(enum.Enum):
ro... | [
"whzeng98@gmail.com"
] | whzeng98@gmail.com |
31b4a5e0c1dd49a8f66081d6748f580551d702a7 | 172428d6aa567dddf190d2c49d1c868dd9fbc81e | /utils/html_utils.py | 7a85def1e2576afa7d502dac7b5045343229423a | [
"MIT"
] | permissive | Densol92/denton | a7049a93aaee5d9ef46d795cf4d34312fe9da876 | 4842389cd96aa42f32c04dd70e9baa37855470f0 | refs/heads/master | 2020-03-25T21:18:28.875137 | 2018-08-09T17:14:59 | 2018-08-09T17:14:59 | 144,169,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | from io import TextIOWrapper
from random import randint
from zipfile import ZipFile
import requests
from requests.auth import HTTPBasicAuth
def download_file_from_url(file_url, credentials=None):
local_file_path = 'report_%s_%s' % (randint(100000, 1000000), file_url.split('/')[-1])
local_file_path = local_fi... | [
"densolovev@plesk.com"
] | densolovev@plesk.com |
3610dd0bc1f7916d6c185ebc48d433d6e0015bde | d125d84481016fa92cb7384edc7b92ac9a1b06e8 | /myproject/libreria/admin.py | f38de41e8880dc0567a870de9bf76f62fe8951d6 | [] | no_license | JEnriquePS/Poll_tutorial_django | c15680b3c8df8ba472dfa58b5090c5893e6fdd94 | a850123535985b5924740008952fc225b68510ed | refs/heads/master | 2021-01-01T20:35:07.232448 | 2014-08-16T04:06:14 | 2014-08-16T04:06:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from django.contrib import admin
from models import Publisher, Author, Book
admin.site.register(Publisher)
admin.site.register(Author)
admin.site.register(Book)
| [
"jenrique.ps@gmail.com"
] | jenrique.ps@gmail.com |
b02d7064564e7b569a0eac9e509a3da5856679fa | 63928bbe0f65b57c94e12517ba82bd43cf41570b | /source/webapp/views/__init__.py | d0d5999dc23ae2e306ffce8c0be4c86f6e95e616 | [] | no_license | York5/Issue-Tracker-2 | 041c20874d2e7549fc1706a2293bb3a89fb93c52 | 20c080bfe6d48af22bf564a3e943c573210054dc | refs/heads/master | 2022-12-16T08:17:22.107345 | 2019-12-09T10:53:58 | 2019-12-09T10:53:58 | 219,488,695 | 0 | 0 | null | 2022-11-22T04:47:51 | 2019-11-04T11:46:11 | HTML | UTF-8 | Python | false | false | 481 | py | from .issue_views import IndexView, IssueView, IssueCreateView, IssueUpdateView, IssueDeleteView, IssueForProjectCreateView
from .type_views import TypeIndexView, TypeView, TypeCreateView, TypeUpdateView, TypeDeleteView
from .status_views import StatusIndexView, StatusView, StatusCreateView, StatusUpdateView, StatusDel... | [
"mikhailvishin2@yandex.com"
] | mikhailvishin2@yandex.com |
44601a2978b50b5c542de3c2f08dfd75df766a6f | 1f8a82ec1d738dc50d2002e32d06a9827aa4a260 | /pnlscripts/makeRigidMask.py | 504c28c6035f59049d2a0bd405a4d9a8f951ffed | [] | no_license | reckbo/pnlpipe | a4c52d621aa41e90ab6c5b9f28998f720b5b920b | b585fc2980357f74acf33b26fde4e862f1f4ec17 | refs/heads/master | 2021-09-26T16:31:46.532052 | 2017-09-09T19:24:22 | 2017-09-09T19:24:22 | 83,028,976 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | #!/usr/bin/env python
from __future__ import print_function
from util import logfmt, TemporaryDirectory
import util
from plumbum import local, cli, FG
from util.antspath import antsRegistrationSyN_sh, antsApplyTransforms
import sys
import logging
logger = logging.getLogger()
logging.basicConfig(level=logging.DEBUG, fo... | [
"reckbo@bwh.harvard.edu"
] | reckbo@bwh.harvard.edu |
388b58106827d5e413873c9668ddd32ff9493c75 | 97a00f723f5457d4dd3cf0d2474159076f79f5ca | /geotrek/zoning/management/commands/loaddistricts.py | f0f38f15e88c3de601800fccf43f073e9f971924 | [
"BSD-2-Clause"
] | permissive | Cynthia-Borot-PNE/Geotrek-admin | dd720c168ca792af06bb9f7d33c38fe274fb7b80 | abd9ca8569a7e35ef7473f5b52731b1c78668754 | refs/heads/master | 2020-06-03T23:40:53.946379 | 2019-06-04T14:25:11 | 2019-06-04T14:25:11 | 191,779,849 | 0 | 0 | BSD-2-Clause | 2019-06-13T14:35:42 | 2019-06-13T14:35:41 | null | UTF-8 | Python | false | false | 3,479 | py | # -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand, CommandError
from django.contrib.gis.gdal import DataSource, GDALException, OGRIndexError
from geotrek.zoning.models import District
from django.contrib.gis.geos.polygon import Polygon
from django.contrib.gis.geos.collections import MultiPolyg... | [
"timothee.de_montety@isen.yncrea.fr"
] | timothee.de_montety@isen.yncrea.fr |
b5bae295d3a0646d16e76a7d1304ced474182760 | 3c1fd6cc5214c005b010ecde147ce596fc500464 | /Utility/urls.py | 5a452e3e4b92e433b98b2a7518f279256c1cafdd | [] | no_license | rjking20/currency-convertor | a607fd8a56bacb47fd6201a45b8bfac28cbab704 | 476a95055b2a3fa03938845537c1638ba2df093d | refs/heads/master | 2023-03-10T07:41:11.683455 | 2021-02-18T15:25:28 | 2021-02-18T15:25:28 | 340,009,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py |
from django.contrib import admin
from django.urls import path,include
urlpatterns = [
path('',include('Curconvertor.urls')),
path('admin/', admin.site.urls),
]
| [
"rjkinghatta@gmail.com"
] | rjkinghatta@gmail.com |
ca4c784e77d9ceb9dfb4705c24768931dd51fe50 | 766ebd84886c9d86a56d95cf529976eb0f7d0b1d | /accounts/forms.py | ab809db03d481865270af4e65a185c8793b10a77 | [] | no_license | EdinburghFreeCodeCamp/todo_list_with_api | ceb654d69d876941d036f594a9abd47c9bf9f44a | 037be49761e8582072228c3d6299f5d3479e46af | refs/heads/master | 2021-01-23T04:09:11.591459 | 2017-05-11T22:35:22 | 2017-05-11T22:35:22 | 86,160,003 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | from django import forms
from django.contrib.auth.models import User
class EditUserForm(forms.ModelForm):
class Meta:
model = User
exclude = ["password", "user_permissions", "groups", "last_login", "is_superuser", "user_permissions", "is_staff", "date_joined"]
| [
"k.a.z.mcc95@gmail.com"
] | k.a.z.mcc95@gmail.com |
8d09e15c59f85008ef777e555e895a491c05ed49 | cbf1d90a16a46f7072005652177be788deb552c5 | /fluent_comments/templatetags/fluent_comments_tags.py | 8251ea8eff37b3148008f30c8ab6e36cfe9c8f2c | [
"Apache-2.0"
] | permissive | rchrd2/django-fluent-comments | a4181703ccb7ed7192068de160b8e47239e3d5f0 | f799247d2ce311691e9033f613f1fac8cbf288bb | refs/heads/master | 2021-01-18T10:55:26.929178 | 2015-01-28T01:06:11 | 2015-01-28T01:06:11 | 10,698,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,993 | py | from django.conf import settings
from django.template import Library
from django.core import context_processors
from django.template.loader import get_template
from fluent_comments import appsettings
from fluent_comments.models import get_comments_for_model
from fluent_comments.moderation import comments_are_open, comm... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
613b792680347f686d4688247cd143081358fb26 | ff8ec937d9e5bef6d527f91ec4c8a2248063e9f8 | /Flask_Projects/zlbbs/utils/restful.py | 7cabea78ca738a6154bfe13ca084a59c208ab756 | [] | no_license | zyxyuanxiao/Python-Framework-Study-Resources | 3c7743946b828dbd4c0a5b530363d36e54319e9c | cff0f9cefa36afa9fb43f0af5478b7428795d718 | refs/heads/master | 2020-09-04T15:00:06.987122 | 2019-08-19T10:07:29 | 2019-08-19T10:07:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | # encoding: utf-8
from flask import jsonify
class HttpCode(object):
ok = 200
unautherror = 401
paramserror = 400
servererror = 500
def restful_result(code, message, data):
return jsonify({"code": code, "message": message, "data": data or {}})
def success(message="", data=None):
return rest... | [
"yang6333yyx@126.com"
] | yang6333yyx@126.com |
a92df2bb4c3e8253898a9cf3a14a0b8cef4d47e8 | 322c282ff00244b95383ac7bc39d102c9a955529 | /dialog_bot_sdk/groups.py | 4a15b481679fcfa6ff0a396277b49804aea62a3c | [] | no_license | artrslpnv/Supporting_polls_FTL | 1dadacf0759e3ec2aa1e16d44f85d8b545af80e5 | 48ac645dfd731748b1bbc37cd0a06dcbfd81ac0d | refs/heads/master | 2020-08-29T20:27:09.339215 | 2019-10-31T12:17:52 | 2019-10-31T12:17:52 | 218,166,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | from google.protobuf import wrappers_pb2
from .service import ManagedService
from dialog_api import search_pb2, groups_pb2
class Groups(ManagedService):
"""Class for handling groups
"""
def create_group(self, title, username, users=None):
"""Create group
:param title: title of group
... | [
"ArTuRsl2000"
] | ArTuRsl2000 |
b83d5bf357cac905fe80e2ab646221b2a5ed16d7 | 39e7041ed36f87a1a8c23df9d2c607726fcf0a1a | /data/data_column.py | 6dff515ea2e1681704403aa13480b4eae7215ad9 | [
"MIT"
] | permissive | willbelucky/FleetSalesPricingAtFjordMotor | fad2b65cddcca79c881d7290bcf5d7dd3ff5ba78 | 5899b75363cf6b8a3ae598e88069374cfb35bc3e | refs/heads/master | 2021-09-07T06:48:39.092756 | 2018-02-19T02:12:51 | 2018-02-19T02:12:51 | 119,624,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | # -*- coding: utf-8 -*-
"""
:Author: Jaekyoung Kim
:Date: 2018. 1. 31.
"""
UNIT_NUMBER = 'unit_number'
UNIT_PRICE = 'unit_price'
TOTAL_PRICE = 'total_price'
WIN = 'win'
DISCOUNT_RATE = 'discount_rate'
UNIT_MARGIN = 'unit_margin'
UNIT_SOLD_NUMBER = 'unit_sold_number'
TOTAL_MARGIN = 'total_margin'
POLICE = 'police'
| [
"rlakim5521@naver.com"
] | rlakim5521@naver.com |
6a80f09d9da6b0b26b722d9e5a0f62a26142920a | c34d8a2ae4d5d34ec64f59047101f5adc04ab458 | /data/generate_train_samples.py | a1f3844ee7d6ab1be22994a36995e7e512300011 | [] | no_license | hermit0/gradualDetector | b5ac1d6b24b0a4f6ec3be3fca41dc57c91fece26 | 78928541874b1488320a79cf0e063cdc9f068aee | refs/heads/master | 2020-04-27T06:53:17.069148 | 2019-03-27T01:40:52 | 2019-03-27T01:40:52 | 174,120,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,124 | py | #-*- coding:utf-8 -*-
'''
根据train.json中的渐变标注生成渐变用训练集
'''
import json
from numpy import random
import pdb
'''
主函数,
输入:
gts_json_path -- str, groundtruth json 文件
samples_in -- int, 单个渐变过程中的采样帧数
rate -- float, 渐变过程前后的采样帧数和m的比值。即渐变过程前(后)采样rate*samples_in帧
skip_frames -- int, 跳过紧贴着渐变过程的skip_frames帧进行采样
... | [
"gucciqqting@126.com"
] | gucciqqting@126.com |
85a60a7ffb26a2e4eefac730a32b0916e982a7e4 | c6b9e8cba0c91a03184fef2171f0df131f66ee25 | /setup.py | b08cec8fffe1f3d7e4839ef9270d724b25bc06f9 | [
"BSD-3-Clause"
] | permissive | waltherg/data-structures-algorithms | 41af71ed20a83d17aba6633471970ee43fd58208 | 09e106b84da5879b255ecfb83d25a3e8b40eb777 | refs/heads/master | 2021-01-02T08:19:52.800912 | 2014-02-15T21:56:39 | 2014-02-15T21:56:39 | 16,871,052 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | from setuptools import setup
setup(name='dsa',
packages=['dsa', 'dsa.tests'],
test_suite='dsa.tests')
| [
"georgwalther@gmail.com"
] | georgwalther@gmail.com |
26d93a5357ff0b72b49b771ac58cfeda86ba6b2d | 5692e8a3357f7afe6284b43c4a9770d81957a511 | /accounts/signals.py | ac98bea95d81fb783c4a9b66b5703e53f64bf59c | [] | no_license | OmarFateh/student-management-system | 49bcfbdf15a631cf7f64ff200d530a44a44409ac | 2c53f81a55fe631406b642365a68de19501c0f17 | refs/heads/master | 2023-07-16T00:02:54.796428 | 2021-08-25T01:54:02 | 2021-08-25T01:54:02 | 355,033,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | from django.dispatch import receiver
from django.db.models.signals import post_save
from .models import User
from student.models import Student
from staff.models import Staff
from adminhod.models import AdminHOD
@receiver(post_save, sender=User)
def create_user_profile(sender, instance, created, **kwa... | [
"66747309+OmarFateh@users.noreply.github.com"
] | 66747309+OmarFateh@users.noreply.github.com |
aaffa49e059f35db72dcc20e75717a416a19f9aa | 9b979d872e1fa81dfc32420272cb7e1676c38bb5 | /Moves/King.py | 0f96157e8bece14a92edf471381354c8fef507c2 | [] | no_license | SusyVenta/Chess | d4b293bc7ce26f21538088290bf3b318b4507b37 | 960351b4f756d8b176d536a56876dad947bbfe86 | refs/heads/master | 2021-06-02T00:41:27.698562 | 2020-07-06T17:32:34 | 2020-07-06T17:32:34 | 148,921,146 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,570 | py | from Chess.Utils import Utils
class King:
def __init__(self, piece_moving):
self.utils = Utils()
self.piece_moving = piece_moving
def move_is_possible(self, start_tag, end_tag, all_turns_pieces_position, max_turn):
return end_tag in self.get_all_allowed_moves(start_tag=start_tag, max_... | [
"susanna.ventafridda@gmail.com"
] | susanna.ventafridda@gmail.com |
4cb2247360ef74f6bd9fbb08214eb5e7f782b7a3 | 465f8c4575a48e2da00605664424de688a2ff582 | /exchange/admin.py | 792ef0af5f06e22525c030662c02612c883c9100 | [] | no_license | Upendrasg/AutomatedJobProcess | c242b6a9018256d8ecb3e1fcf1014e0cdda07dc8 | 8b6823980e580f65ce80ef3b32210a5b4ef24e0e | refs/heads/master | 2020-05-25T12:43:13.704779 | 2019-03-13T11:13:13 | 2019-03-13T11:13:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from django.contrib import admin
from .models import Report
class ReportAdmin(admin.ModelAdmin):
"""
"""
list_display = (
'id',
'user',
'vacancy',
'result',
)
admin.site.register(Report, ReportAdmin)
| [
"developer@developers-MacBook-Air-2.local"
] | developer@developers-MacBook-Air-2.local |
5a091300753b2a3257045d18ee390647f1cd7eb5 | bece503909072c9e70cfa8d8d88fdfaab50be8b5 | /configure/migrations/0016_auto_20210502_0607.py | 566cb9134b19e9de23269af6de4fbccafc2104a0 | [] | no_license | yra3/configurator | 2c9a6d7bb410f7108a771bc59a80963c4bc856d3 | cc773f2f31936164a69e172917e2647ea58792d8 | refs/heads/master | 2023-06-12T04:44:15.434496 | 2021-07-05T05:02:04 | 2021-07-05T05:02:04 | 362,072,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | # Generated by Django 3.2 on 2021-05-02 01:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('configure', '0015_auto_20210502_0506'),
]
operations = [
migrations.RenameField(
model_name='hard35',
old_name='eature... | [
"64928855+yra3@users.noreply.github.com"
] | 64928855+yra3@users.noreply.github.com |
15668f5164fee40889b4cea03738350bc4d556c4 | 8449f44991409dac5fa936c9a17fdf9c7d6387a9 | /anyos_clean.py | 1035fc948f31cb7afded7e490bf4e910d6b9d7a8 | [] | no_license | emilio-carrasco/sharkstattack | ba8b67571e0b0ae47b55b15e16bf491eeb6962fd | 81853480b2c402a507e3edf8ab530a902b7a805b | refs/heads/master | 2023-04-11T19:40:36.544870 | 2021-04-05T18:23:49 | 2021-04-05T18:23:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | import pandas as pd
import src.limpieza_texto as lt
pd.options.mode.chained_assignment = None # default='warn'
srk = pd.read_csv("./data/attacks.csv",encoding = "ISO-8859-1")
column_years='Years'
srk = lt.year_cleaner(srk,column_years)
pais = 'AUSTRALIA'
srk_country = lt.clean_one_country(srk, pais)
temp = l... | [
"emilioemail@gmail.com"
] | emilioemail@gmail.com |
426c6fa3b64b44c80c5d6aa54bfe409e0d0adf9b | 960ab2de7274f9ac590ab4d1e68d4e7aaecb28a4 | /lib.py | 632bb3b0581e40bc78d27c9434fe14bb54a75159 | [] | no_license | apollinaria-sleep/MatrixCalculator | cd4ffee31e124da75291a7a3ace15c8f897eac7d | 20577b3aab3c5027a838c2799b9c7ea18db308eb | refs/heads/master | 2022-08-02T22:06:00.503501 | 2020-05-24T10:04:25 | 2020-05-24T10:04:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,814 | py | import numpy as np
def change_type(matrix):
values = list(map(int, matrix.split(' ')))
return values
def check(matrix):
if matrix.first_matrix.rows == matrix.second_matrix.rows and matrix.first_matrix.col == matrix.second_matrix.col:
return True
else:
return False
class Matrix:
... | [
"Nikitina.PV@phystech.edu"
] | Nikitina.PV@phystech.edu |
d3cf0950e795914002185f0928273b3fd1359d3a | 0ee975e4c7d595149620f8e3a657e11bb6b103b3 | /dn_api_14/models/__init__.py | 1e3a53d16df494d756a2b0af3e37f7f39655f2ff | [] | no_license | WithHookahOrg/dn_api_14 | c3a43bdf8eef0bfde1592932b1323e4e2d6632ab | 506f3cb673afb84235aaa35c1de7dc8f3da69c89 | refs/heads/master | 2023-01-07T17:39:28.508282 | 2020-11-09T03:54:46 | 2020-11-09T03:54:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | # -*- coding: utf-8 -*-
from . import models
from . import access_token, ir_model | [
"rayci232@gmail.com"
] | rayci232@gmail.com |
5cd64f75881986daf487add822ea662152537e7e | d72f59fc301bd0dde25d2486f09fd450b7504705 | /acmicpc/10171.py | 9af4d44a533c2214c1b8e6dadd00c31e1c61c731 | [] | no_license | jinwoo2516/TIL | a743aa2848425e4b7d1bd41e078a0ec240a6948f | f07cd42e628a40fddf7ac0b40ebd1e287049f6c2 | refs/heads/master | 2023-03-27T05:48:19.066249 | 2021-03-29T17:36:47 | 2021-03-29T17:36:47 | 349,032,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | print("\\ /\\ ")
print(" ) ( ')")
print("( / )")
print("( / )")
print(" \\(__)|") | [
"jinwoo2516@naver.com"
] | jinwoo2516@naver.com |
9567c834436dde5f332d3855a2e98b5e4fe95f8b | 0bab87d3d3bc6f790f6d924330acf7ae1c6ebc30 | /kunyi/bfs/course_schedule_iii.py | 405a72df87a3fb540d0091318268d364e6a92a6e | [] | no_license | KunyiLiu/algorithm_problems | 2032b9488cd2f20b23b47c456107475f609b178f | b27a1d4d65429101ef027f5e1e91ba2afd13bd32 | refs/heads/master | 2020-04-26T15:29:43.875656 | 2019-10-21T19:09:01 | 2019-10-21T19:09:01 | 173,648,702 | 0 | 0 | null | 2019-07-21T19:15:23 | 2019-03-04T00:48:02 | Python | UTF-8 | Python | false | false | 967 | py | class Solution:
"""
@param courses: duration and close day of each course
@return: the maximal number of courses that can be taken
"""
def scheduleCourse(self, courses):
"""
贪心法 Greedy
课程按照 deadline 排序,从左到右扫描每个课程,依次学习。如果发现学了之后超过 deadline 的,就从之前学过的课程里扔掉一个耗时最长的。
因为这样可以使得其他的课程往前挪,而往前挪是没... | [
"noreply@github.com"
] | noreply@github.com |
c415424d926d5a9bee303bdee2da12cf084d45d6 | 2bc470936d9648e3937de2a1dd980fe1c2dabea0 | /helpers/playlists.py | 082e428dd6257988580cf38f7f78f29828b9eaa8 | [
"MIT"
] | permissive | navrudh/youtube-music-helper-scripts | 40e026f11e1fac3ff55616bd2488de625d490e34 | 7bae74d698e15e11bac427e42bd0a21e08163f88 | refs/heads/main | 2023-02-02T22:39:20.139562 | 2020-12-22T20:47:17 | 2020-12-22T20:47:17 | 317,985,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | from ytmusicapi import YTMusic
from dataclazzes.playlist import Playlist
from dataclazzes.track import Track
def get_playlist_info(ytm_client: YTMusic, id: str):
playlist = ytm_client.get_playlist(id)
raw_tracks = playlist["tracks"]
return Playlist(id='id',
title=playlist['title'],
... | [
"navrudh@gmail.com"
] | navrudh@gmail.com |
4c0a87671652fb0e9964fba421c988acf539a937 | e727005dd121706584df613fb471b39fd62c389a | /textBoxes.py | de47c469f36e866bcfc180fc91a7f15680a4121e | [] | no_license | ajaydheeraj/David-Go-Project | 2666d7b5195a2e281c3f8d1198239e64d6309c41 | 3ed6577aba1f5803800b7d7d07a9a120ec73fa20 | refs/heads/master | 2021-08-24T02:55:10.308915 | 2017-12-07T18:59:01 | 2017-12-07T18:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,755 | py | ### text boxes that appear when a player is trying to undo a move, pass the turn
### or reset the game
import pygame
from static import *
# object for using text boxes
class TextBox(pygame.sprite.Sprite):
bounds = (50, 200, 500, 200)
def __init__(self, action):
self.action = action
text =... | [
"and38@duke.edu"
] | and38@duke.edu |
597501eb53ae1bbe66a77ec3ae75ed19c99eeceb | f2ccfabd0f16ae2d799be5c3b7e7717364d5a01a | /ospurge/tests/resources/test_octavia.py | 2cac78093c07c9e44262548d86df47d04d2eff8d | [
"Apache-2.0"
] | permissive | inovex/ospurge | fc3fe6d6ec14d13cf0eb8e61ad01905f9de59a76 | 6f24c90a1d6a0c8470e02abba039c8ac2a28cb54 | refs/heads/master | 2020-06-11T20:57:11.387821 | 2019-06-27T11:49:47 | 2019-06-27T11:49:47 | 194,083,267 | 1 | 0 | null | 2019-06-27T11:30:59 | 2019-06-27T11:30:58 | null | UTF-8 | Python | false | false | 5,230 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed u... | [
"sreinkemeier@inovex.de"
] | sreinkemeier@inovex.de |
1ee8b842df61cffe0f5d60740c8942db1efb422b | d5ad13232e3f1ced55f6956bc4cbda87925c8085 | /cc_mcc_seq/20sSV/jumpy/5-format.py | b65a5ce28d9392de067c64373184c4ea98e47851 | [] | no_license | arvin580/SIBS | c0ba9a8a41f59cb333517c286f7d80300b9501a2 | 0cc2378bf62359ec068336ea4de16d081d0f58a4 | refs/heads/master | 2021-01-23T21:57:35.658443 | 2015-04-09T23:11:34 | 2015-04-09T23:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | import re
def reads(inF):
D = {}
inFile = open(inF)
for line in inFile:
line = line.strip()
if line.find('>')==0:
head = line.lstrip('>')
D.setdefault(head,[])
else:
D[head].append(line)
inFile.close()
D2 = {}
for k in D:
if k.... | [
"sunhanice@gmail.com"
] | sunhanice@gmail.com |
a60935f4cf48e25e5bd527a6e85976d93d2910f2 | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/grades/scores.py | 9c4da6a8b786e2cedb7472d1c05c310c57c5f6d4 | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 12,149 | py | """
Functionality for problem scores.
"""
from logging import getLogger
from numpy import around
from xblock.core import XBlock
from openedx.core.lib.cache_utils import process_cached
from xmodule.graders import ProblemScore
from .transformer import GradesTransformer
log = getLogger(__name__)
def possibly_score... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
d0ece7f20306187b9863262eb39d15656ad4555d | 52c7ad17f4be984038ab387448e459eabbda49ea | /authApp/models/user.py | c02c994ade6794e906868b31e400351b545d5bdd | [] | no_license | DavidCastro88/ProyectoG3MinTicLamarca | 0f1c755352a364b8ebaf69ae526d3b921a8c32da | e18d734c0fe9719f21866b730ac7c97e76ba6518 | refs/heads/main | 2023-08-26T15:21:37.521615 | 2021-11-08T15:18:37 | 2021-11-08T15:18:37 | 414,810,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, BaseUserManager
from django.contrib.auth.hashers import make_password
class UserManager(BaseUserManager):
def create_user(self, username, password=None):
"""
Creates and saves a user with the give... | [
"dcastrot@unal.edu.co"
] | dcastrot@unal.edu.co |
d72f89aa4b1d9d12ecb32034365378c5cf8a0232 | 9c22ec3666da0d84b51a40d1ad0167ea485647c3 | /models/tf_mlp.py | 6d567ab89a7091e84c4148a203aac7a78a2e593a | [
"Apache-2.0"
] | permissive | ihaeyong/tf-example-models | 9bca0da58330b24903f4b0d643dbfe79d9621c6e | 40b32991a76cb8d7201f9a5851789847db310b79 | refs/heads/master | 2020-04-08T14:38:30.100115 | 2018-05-31T12:39:26 | 2018-05-31T12:39:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,148 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
LOCAL_FOLDER = "MNIST_data/"
IMAGE_PIXELS = 784
NUM_CLASSES = 10
HIDDEN1_UNITS = 500
HIDDEN2_UNITS = 300
LEARNING_RATE = 1e-4
TRAINING_STEPS = 2000
BATCH_SIZE = 100
def dense_layer(x, in_dim, out_dim, layer_name, act):
"""Cre... | [
"adnan.akhundov@gmail.com"
] | adnan.akhundov@gmail.com |
1fb01961e84f5053db377ba87858c99906099bdd | 2481cde6506743565dff2b405a2396daf208ab3e | /src/notification/migrations/0022_auto_20220110_0112.py | 336ca943dcffebbbf325cf2160bde50efe6cce2d | [
"Apache-2.0"
] | permissive | aropan/clist | 4819a3036d179595e4df8c646aff2ed593b9dad3 | 5c805b2af71acee97f993f19d8d4e229f7f5b411 | refs/heads/master | 2023-08-31T11:15:17.987776 | 2023-08-27T21:51:14 | 2023-08-27T21:52:16 | 187,111,853 | 276 | 35 | Apache-2.0 | 2023-09-06T18:42:53 | 2019-05-16T22:57:03 | Python | UTF-8 | Python | false | false | 1,360 | py | # Generated by Django 3.1.14 on 2022-01-10 01:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('true_coders', '0047_coder_is_virtual'),
('notification', '0021_auto_20220110_0109'),
]
operations = [
... | [
"nap0rbl4@gmail.com"
] | nap0rbl4@gmail.com |
7a2f26c9fa94c65e34fe91f092289ad81c01b001 | 0cd93652202e105f8aed68092510482c28977358 | /base/kml.py | f1a1d812b30c0d862cdf76fe5376a0d92b1a7569 | [] | no_license | xuejiekun/sky | b9cddb3775a17d757078b52f1194e1f3b4195d93 | 6d69eeb9ba3994f25a9c5c4b2c16bc0a9483e3ee | refs/heads/master | 2020-03-23T20:02:31.124053 | 2018-08-20T10:07:49 | 2018-08-20T10:07:49 | 142,017,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | # -*- coding: utf-8 -*-
from lxml import etree
from pykml.factory import KML_ElementMaker as KML
class KmlMaker:
def __init__(self):
self.pm_list = []
self.fld = None
# 创建 <Placemark> 节点, 并追加到pm_list
def bulid_pm(self, address_name, lng, lat):
coor = '{},{}'.format(lng, lat)
... | [
"512559733@qq.com"
] | 512559733@qq.com |
a2de05b6487902033f547e9704b8d3061cd021a5 | 995514f414eee6bbe9083ec39ecd3027cf9fd7d8 | /2.4/19/percplot.py | ab33f0b3ed89a43616b8303be70d80b33e966bd2 | [] | no_license | j16949/Programming-in-Python-princeton | e02376ebb714264a1329aacad30347e4ae79f909 | 392391b98815cc1ae2b49e1057a10bc5b37e801f | refs/heads/master | 2023-08-08T11:52:04.362780 | 2023-08-01T13:02:41 | 2023-08-01T13:02:41 | 313,943,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | #-----------------------------------------------------------------------
# percplot.py
#-----------------------------------------------------------------------
import sys
import stddraw
import estimate
#-----------------------------------------------------------------------
# Plot to standard draw a graph within the... | [
"kkwert@sina.com"
] | kkwert@sina.com |
e9ba3889c0184468de51e855a62ad899ac1f3615 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Shapely_numpy/source/numpy/core/tests/test_half.py | 56b574ae8183e697ee30e9afee723f9f919664a9 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 18,534 | py | from __future__ import division, absolute_import, print_function
import platform
import numpy as np
from numpy import uint16, float16, float32, float64
from numpy.testing import TestCase, run_module_suite, assert_, assert_equal, \
dec
def assert_raises_fpe(strmatch, callable, *args, **kwargs):
try:
... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
20fa77aace3853f5c71e23e3c6be7508ad320949 | 6efc2eb23678741263da7ac6bd868a9f3a37d38b | /01.stock_investment/01.corporate_analysis/test_financial_info.py | dce0c5420177e4b76fd50d68f704692953f44398 | [] | no_license | predora005/business-research | c6272b129353a302673cf8a13c1629b5ade4a50e | 96743cc6a0b592c87e6d0f2de341fc3bbb3ef3b1 | refs/heads/main | 2023-06-18T08:08:24.537951 | 2021-07-22T04:19:09 | 2021-07-22T04:19:09 | 314,985,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,600 | py | # coding: utf-8
from stinfo import *
##################################################
# メイン
##################################################
if __name__ == '__main__':
# matplotlibの日本語フォント設定
plt_font_init()
codes = {
'JR東日本' : 9020,
'JR東海' : 9022,
'JR西日本' : 902... | [
"46834065+predora005@users.noreply.github.com"
] | 46834065+predora005@users.noreply.github.com |
6054b7c0a200370ed5aaef9854cf3554aa123b53 | 9dac88cf52f688d7c6730f379a1eb9d607bd9d51 | /PCC8_2.py | 25bc9018de9c3a9d5022d3114b464d0c457e2907 | [] | no_license | nurack/eric-pcc-solutions | adcf5f127ea1a7d07b904558edec7a6e8c73209b | 2bc5386b2e7422645f5df9ec758777827a473786 | refs/heads/main | 2023-08-21T08:37:17.853433 | 2021-11-01T18:19:59 | 2021-11-01T18:19:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | def favourite_book(title):
print(f"My favourite book is {title.title()}")
favourite_book('the rat eaters') | [
"noreply@github.com"
] | noreply@github.com |
f5e755293a4515477c5281d9da4ce88995cdd6e7 | 6b37deabac3116e65bc869035cf8cfa50f22590c | /abc/abc197/a_rotate/main.py | 7258af0629e32643f188709c3782ab05b7c79b75 | [] | no_license | hiromichinomata/atcoder | 92122a2a2a8b9327f4c8dc0e40889e8dc0321079 | 82216622d9040e95239b4a21e973cb12e59d7f6e | refs/heads/master | 2022-10-05T04:00:44.509719 | 2022-08-14T04:46:49 | 2022-08-14T04:46:49 | 176,891,471 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | #!/bin/python3
import sys
input = sys.stdin.readline
def main():
s = list(map(str, input().strip().split()))[0]
print(s[1] + s[2] + s[0])
main()
| [
"git@hiromichinomata.com"
] | git@hiromichinomata.com |
ea2564cdc374876529e98701b0a447feb6ff2403 | 7704dfa69e81c8a2f22b4bdd2b41a1bdad86ac4a | /nailgun/nailgun/db/sqlalchemy/models/base.py | e2f797464e5e381181bfd006fd7451bde3579e9f | [
"Apache-2.0"
] | permissive | andrei4ka/fuel-web-redhat | 8614af4567d2617a8420869c068d6b1f33ddf30c | 01609fcbbae5cefcd015b6d7a0dbb181e9011c14 | refs/heads/master | 2022-10-16T01:53:59.889901 | 2015-01-23T11:00:22 | 2015-01-23T11:00:22 | 29,728,913 | 0 | 0 | Apache-2.0 | 2022-09-16T17:48:26 | 2015-01-23T10:56:45 | Python | UTF-8 | Python | false | false | 1,173 | py | # -*- coding: utf-8 -*-
# Copyright 2013 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | [
"akirilochkin@mirantis.com"
] | akirilochkin@mirantis.com |
66bb050d598ed9c6d34aac08f8a02ad47aa5e985 | f659347de6f37b023b780586461886de60950a3d | /final/temp/config.py | 0e27b2b8850a4b52636303e3ee24a4b4fafd5dbd | [] | no_license | cubarco/SDN-2015 | 3acf72e09d29c087fa852e6e9c20fbc2e7332432 | e2f36cb1133cfaa60b18a658109d3854ce2440eb | refs/heads/master | 2020-12-11T06:05:30.770694 | 2015-08-26T06:25:24 | 2015-08-26T06:25:24 | 34,156,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | #!/usr/bin/env python
# coding=utf8
modules_path = '/home/cubelin/Documents/sdn/2015/problems/final/modules/'
enable = ['test']
| [
"marco.l.here@gmail.com"
] | marco.l.here@gmail.com |
7426f3c1ffb131aff189892e9dbc8c7632ac9f91 | cb0cb69914a6f9789c1c431882eb7d4911791803 | /src/motor.py | 59d7063b91f591e480e47e2d08548a4abaa83445 | [] | no_license | Nicolasgr22/venus | 4cb0acb5ff7812cc11272092bfb440131d5419c4 | 37fb473bdea0509f4fea9e8b88af31c6853ef4d2 | refs/heads/master | 2020-05-25T08:26:11.450888 | 2019-05-19T22:23:19 | 2019-05-19T22:23:19 | 187,710,164 | 0 | 0 | null | 2019-05-20T20:39:52 | 2019-05-20T20:39:52 | null | UTF-8 | Python | false | false | 509 | py | #!/usr/bin/python
import sys
import time
import RPi.GPIO as GPIO
GPIO.cleanup()
Forward=26
Backward=20
sleeptime=1
GPIO.setmode(GPIO.BCM)
GPIO.setup(Forward, GPIO.OUT)
GPIO.setup(Backward, GPIO.OUT)
def forward(x):
GPIO.output(Forward, GPIO.TRUE)
print("Moving Forward")
time.sleep(x)
GPIO.output(Forward, GPIO... | [
"jato.25@hotmail.com"
] | jato.25@hotmail.com |
083533dc83abff57679089d9aeb640325a3e250f | 159fe0a86dbff5b16951ded77c5ad796e14b7a7b | /src/main/conf/res/scripts/showAdvice.py | 249fb1d4f5c58c7db10b2bdeed5b610694e31520 | [
"Apache-2.0"
] | permissive | juniper-project/modelling-environment | 9b023c05c2f5b3dadc40bf24bc9b92caf6387a02 | 34fa002e1beb1da25ba9de15e694cf49c2ea8d23 | refs/heads/master | 2021-01-10T09:30:53.765665 | 2015-12-03T16:17:30 | 2015-12-03T16:17:30 | 45,916,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,610 | py | #
# Copyright 2014 Modeliosoft
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | [
"MAURELIO1234@GMAIL.COM"
] | MAURELIO1234@GMAIL.COM |
b67377362af4d569f225ef9a8f12aa72e8327e8c | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_2_00/policy_map/class_/scheduler/strict_priority/__init__.py | c8a5ab6f9041a09b0eaf1860331977bd6d378423 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65,476 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
d8903c407c47754f512bd6fb9124f70132544489 | 02d26f67c233288b26408797d239e0127d229a67 | /fire.py | 301eae1e3ffeaf315174c19ff5e5ecc3a3f1212a | [] | no_license | sd-james/fire-demo | 27b16ed0c6911c9fab1eaa7c0817143f57415b15 | 7355221cb1abb195785927ce893b13f109a5d191 | refs/heads/master | 2021-03-05T06:24:19.496393 | 2020-03-09T17:45:46 | 2020-03-09T17:45:46 | 246,102,382 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,794 | py | import pygame
from pygame.constants import DOUBLEBUF, K_q
import random
width = 300
height = 100
zoom = 3
screen = pygame.Surface((width, height))
# set the pixel value at a particular location. This is a special set to make things look more fire-like
def draw_pixel(x, y, value):
red = value
green = value *... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.