blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fcdd844f805ea4a7bd79824935397e4ae355b4f3 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4052/354004052.py | c318eb1028c5e6c2d9a7772e6ec4c9f7cf7069da | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 453 | py | from bots.botsconfig import *
from records004052 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'AY',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'M10', MIN: 1, MAX: 1},
{ID: 'P4', MIN: 1, MAX: 20, LEVEL... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
8294fce530b848259f949592831c9de1c760dbad | 14a913fce4b538b22f28409645cd6abe3455808f | /bigquery/cloud-client/natality_tutorial.py | 5bfa8f1d27a9736075f271b77657e9342df6d688 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | iamLoi/Python-Random-Number-Generator | 8da7dbd37cb13a01232c8ed49b9df35a99c63d73 | 7579e8b15130802aaf519979e475c6c75c403eda | refs/heads/master | 2022-08-29T19:05:32.649931 | 2019-09-14T14:48:58 | 2019-09-14T14:48:58 | 208,454,877 | 2 | 1 | Apache-2.0 | 2022-08-05T21:57:49 | 2019-09-14T14:51:05 | Python | UTF-8 | Python | false | false | 2,926 | py | #!/usr/bin/env python
# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | [
"noreply@github.com"
] | noreply@github.com |
4c93f47cd69318effc5cf74239c4b736aa398aa8 | ca5bb7322d0286bb748f19b9d1b33102294ba664 | /Javbus/Javbus/spiders/kyj344.py | 8e89b45e539199ba581123338e388a315a482999 | [] | no_license | yy0827-mengjiang/Javbus-Crawler | cd6d6c2a69c722a109813eb505bf90f4975a2281 | 3c8c2e571cfa1ca6e2cb8e45b93874a1ed92e78e | refs/heads/master | 2020-04-16T17:12:56.132234 | 2019-01-10T16:18:34 | 2019-01-10T16:18:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,648 | py | # -*- coding: utf-8 -*-
import json
import time
import scrapy
from scrapy.http import Request
"""
快妖精App的视频以及视频信息抓取
"""
class Kyj344SpiderItem(scrapy.Item):
#视频id
id = scrapy.Field()
#标题
title = scrapy.Field()
#封面
thumb = scrapy.Field()
#视频
video = scrapy.Field()
#喜欢
likes = s... | [
"ailoli2333@ll.edu.pl"
] | ailoli2333@ll.edu.pl |
0618850a5db7746378ebd7c6d18fc84b9305a5e3 | 05324b134108e0e0fde392e0ae0fc22bfa1fb75f | /df_user/islogin.py | d2149c4633a4871adc7f90b232f8ccc8e25afcec | [] | no_license | 2339379789/zhang_ttshop | 2c8d546b9ed3710fd1f48d6075ea01955247d34f | 44f9eb998182f4aa027d5d313b4957410b54a39d | refs/heads/master | 2020-03-06T15:40:54.261769 | 2018-03-27T09:23:52 | 2018-03-27T09:23:52 | 126,960,140 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from django.http import HttpResponseRedirect
def islogin(func):
def login_fun(request, *args, **kwargs):
if request.session.get('user_id'):
return func(request, *args, **kwargs)
else:
red = HttpResponseRedirect('/user/login')
red.set_cookie('url', reque... | [
"2339379789@qq.com.com"
] | 2339379789@qq.com.com |
5a2b2ec5508970f8dfe45e339cc965b96a058dd1 | 50ace7c481762a690feee64bdd29f44f663c12da | /recipeBuilder/recipeBuilderApp/forms.py | 92a330c93821bf3c04cec736641d25e370762731 | [
"MIT"
] | permissive | Clemson-Software-Engineering/Recipe-Builder | 5e883a936fdab5d13eee9b349c3eef6241f9a9cd | 74577a3728a73885af60bd5a2d0a8697cb383b0a | refs/heads/main | 2023-04-14T08:22:10.211535 | 2021-04-20T02:31:42 | 2021-04-20T02:31:42 | 331,667,839 | 0 | 0 | null | 2021-02-02T01:13:39 | 2021-01-21T15:21:02 | null | UTF-8 | Python | false | false | 236 | py | # forms.py
from django.forms import modelformset_factory
from .models import Ingredient, Recipe, UserSettings
# A regular form, not a formset
RecipeFormSet = modelformset_factory(
Recipe, fields=("name", "ingredients"), extra= 1
)
| [
"dcathapermal39@gmail.com"
] | dcathapermal39@gmail.com |
92424c76b578d96e49388d373e478cf886d9d185 | 1e54cf3206e44fa4a49ab6701a4adc016f445036 | /intake_notebook/notebook.py | 7611848917cf970531ab359a2380ec3e0be2eb54 | [] | no_license | uk-gov-mirror/informatics-lab.intake-notebook | 36d6b0a86a42ee941c7701866e92af53ed202197 | 737045d83bd9d81e8b287a0f1086d7a99667a269 | refs/heads/master | 2022-03-23T20:41:36.784183 | 2019-12-04T16:35:38 | 2019-12-04T16:35:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,807 | py | from papermill import iorw
from papermill.iorw import load_notebook_node, write_ipynb, get_pretty_path, local_file_io_cwd
import copy
import nbformat
import ast
import json
from papermill.iorw import load_notebook_node
from collections import ChainMap
from makefun import create_function
import types
from uuid impor... | [
"mor582@csiro.au"
] | mor582@csiro.au |
5b003f23c1b35a2c73797215c600c719c0507525 | 25b1485e00f96de90253655dcad9edbf729c7f57 | /emilabrahamdotcom/urls.py | e4334a50fd8116249297dec95de4fb2900e8c5ae | [] | no_license | emilabraham/emilabrahamdotcom | 91eb89fbd673a4cdc3c180166d89694499bafe6e | 0c79f7766049080d130731f13bc152b2225863c9 | refs/heads/master | 2021-01-10T20:51:29.161247 | 2014-04-14T17:29:23 | 2014-04-14T17:29:23 | 16,820,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | from django.conf.urls import patterns, include, url
from django.conf import settings
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'emilabr... | [
"honestemu@workhorse.resnet.neu.edu"
] | honestemu@workhorse.resnet.neu.edu |
1d64d31f87fa693a3ba3032bee37ccf79b2bcf2e | a4fc636285a430295e14e383689d0bc43c908b23 | /2019_08_Advanced/20190901_socket/2文件上传/客户端/客户端.py | b36e362d89401df9dc3b0021381f57a3bd77d8a1 | [] | no_license | DenzelLee/python2019 | 649ac58f92ed99a7dd33f75d8f621ccca2b6aa59 | 1f62e0588bee6cd78ce394de0390845b40525903 | refs/heads/master | 2020-07-22T16:26:26.521032 | 2020-02-20T03:51:41 | 2020-02-20T03:51:41 | 207,260,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | # -*- coding: utf-8 -*-
# __author__:lenovo
# 2019/8/30
# 建立连接
import os, socket
sk = socket.socket()
sk.connect(("127.0.0.1", 13001))
# 定义文件格式
def post_file(sk_obj, file_path):
"""
上传文件
:param sk_obj: socket 对象,有对象才可以发送和接受信息
:param file_path: 文件的路径
:return:
"""
# 发送文件大小
file_siz... | [
"270981551@qq.com"
] | 270981551@qq.com |
11621d00b4d604049ce1d4b556534676a14e2c4b | b37a2b86cb49684ef77ec5a729de6e5a96bf2baa | /api.py | 4acd175792d8cdba36fe11b0b1cb2e91cbe85d08 | [] | no_license | dibyanshu12/face-recognition | a259960063f270756dfee0adc5aa5ef57d83c38d | 1e3cfac3cd1593db13c0cf28c4684c227e7b0baf | refs/heads/main | 2023-04-25T02:14:28.219110 | 2021-05-16T19:11:25 | 2021-05-16T19:11:25 | 367,952,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,161 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 16 23:16:14 2021
@author: dibya
"""
from flask import Flask, jsonify, request
from flask_restful import Api, Resource
from pymongo import MongoClient
import bcrypt
import numpy
import tensorflow as tf
import requests
import subprocess
import json
import p... | [
"noreply@github.com"
] | noreply@github.com |
c3b06571705e3d42ea421dbcc6cb94538267f247 | 078533ce919371451564646e3c311c8dd6fca7ea | /app/settings/prod.py | 1425b25dbaa062e89c3c39a5947da1224923cd03 | [] | no_license | cr8ivecodesmith/djdraft | cf5415a967dc7fc6f4f8d191def9c2b687c0d744 | 364ded3ea43acc874de367cd679c4bddfb64d837 | refs/heads/master | 2020-04-05T23:07:20.690873 | 2016-10-06T05:11:29 | 2016-10-06T05:11:29 | 23,010,461 | 2 | 1 | null | 2016-10-03T13:42:04 | 2014-08-16T04:17:23 | Python | UTF-8 | Python | false | false | 1,558 | py | from .base import *
DEBUG = False
ALLOWED_HOSTS = [
'{{ project_name }}.dev',
]
###### APP CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
INSTALLED_APPS += [
]
###### DATABASE CONFIGURATION
# https://docs.djangoproject.com/en/dev/ref/settings/#databases
DATABASES = {... | [
"matt@lebrun.org"
] | matt@lebrun.org |
6bf70e1bf011fa7a4aa4350fb88c201b9efe06c8 | dc5a2f10d312069c2895053ca4a546c5010069a2 | /Assignment2f.py | 8a075e96204add9382e84188a7ba6010ee95eb45 | [] | no_license | VijayYada/Assignment2 | 14deaa21f38243764196f38c3fb91260efdd329e | 1ac89e2810843a08690bea2c733318f811978f94 | refs/heads/master | 2020-03-20T02:25:32.981722 | 2018-06-12T18:31:26 | 2018-06-12T18:31:26 | 137,112,519 | 0 | 2 | null | 2018-10-31T18:06:40 | 2018-06-12T18:30:55 | Python | UTF-8 | Python | false | false | 70 | py | name=("Tonny Strak")
salary=int (1000000)
print("%s,%d"%(name,salary)) | [
"rishabhr605@gmail.com"
] | rishabhr605@gmail.com |
f8c111790eeefdd36e601c1c61f5fd1f0a9123c5 | 161fa261303342543f22a9dfe007ce0dab662606 | /build/navigation/move_base/catkin_generated/pkg.develspace.context.pc.py | c3b777b442116201dba58b31123991e303c500de | [] | no_license | HaoYejia/MyCar | 81fac51ccecfcd5b86dbabbc63d33053c1632618 | b7b20e6cafeb6a7312e876ff9ad59f72118e364e | refs/heads/master | 2020-06-24T01:11:36.119110 | 2019-07-25T10:02:12 | 2019-07-25T10:02:12 | 198,803,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/tianbot/tianbot_ws/devel/include".split(';') if "/home/tianbot/tianbot_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "dynamic_reconfigure;geometry_msgs;move_base_msgs;nav_msgs;roscpp".... | [
"haoyejia@outlook.com"
] | haoyejia@outlook.com |
0af0e6aeb4bf93bb5c2c00acba6daf1feb4788c2 | 0566cf76b456518875edecece15e763a36a4795f | /scrapers/tv_showsonline_com.py | 6208f8a041fec633df9bb9e2989a3db26e001ce2 | [] | no_license | theclonedude/Scraping_BeautifulSoup_phantomjs | 684b1f7a993e0d2555daa7a5455cf19bd29b0b1b | faf653feae46c21a72d13b2123cdebdb2f7c05d8 | refs/heads/master | 2023-03-16T19:36:14.867361 | 2018-06-14T14:21:02 | 2018-06-14T14:21:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,148 | py |
from sandcrawler.scraper import ScraperBase
from sandcrawler.scraper import SimpleScraperBase
class TvShowsOnline(SimpleScraperBase):
BASE_URL = 'http://www.7stream.pro/'
OTHER_URLS = ['http://tv-showsonline.com', ]
def setup(self):
self.register_scraper_type(ScraperBase.SCRAPER_TYPE_OSP)
... | [
"stryokka@gmail.com"
] | stryokka@gmail.com |
585c1f38e68fa896e9f1b91523d7cde15f833d05 | 544fe02a27cc4d987724b1bf45c2ba2994676521 | /Q6.3_brain_teasers.py | c42fb93923fdbb832381c85a4fbe252f28b128c3 | [
"Unlicense"
] | permissive | latika18/learning | 1e7a6dbdea399b845970317dc62089911a13df1c | a57c9aacc0157bf7c318f46c1e7c4971d1d55aea | refs/heads/master | 2021-06-16T19:20:28.146547 | 2019-09-03T06:43:28 | 2019-09-03T06:43:28 | 115,537,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | #You have a five quart jug and a three quart jug, and an unlimited supply of water (but no measuring cups).
How would you come up with exactly four quarts of water?
#NOTE: The jugs are oddly shaped, such that filling up exactly ‘half’ of the jug would be impossible.
_
___________________________________________________... | [
"noreply@github.com"
] | noreply@github.com |
4ae12ef960e4ef38070c413ed3f34ffc7f0246fc | 96966e7b464bace59156af16a5696db5046f71c5 | /emd_test.py | e2a05a694a8eb737c37f9a7ae453cf78cb8bf80a | [
"MIT"
] | permissive | narroyo1/sffnn | 8b67e32fcbc6b1ee5549b4e1c8d23c4d8cdffeaa | a3d7d8dd7eec76c0dca3aa57e18844b30b75b3b1 | refs/heads/master | 2023-02-21T23:59:02.694591 | 2021-01-28T07:07:44 | 2021-01-28T07:07:44 | 281,561,876 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,438 | py | """
This module contains class EMDTest.
"""
# pylint: disable=no-member
import numpy as np
import torch
from scipy.optimize import linear_sum_assignment
from scipy.spatial.distance import cdist
from utils import to_tensor
# The number of points in X to test for goal 1.
EMD_TEST_POINTS = 50
# This constant specifi... | [
"nicolas.arroyo.duran@gmail.com"
] | nicolas.arroyo.duran@gmail.com |
291d1999c28d03d41238113d8fc8be14dd5c62de | 988a7505b7a976df6d5cbdeba1571bf8dcea1b69 | /main.py | 19aa5e1fa8898ce3d0c3ef8b2585dc48bc52d5e0 | [] | no_license | aaronchall/arandabot | 9b879be78c0689c3fa0fcecb026c5337b38491ac | 4c595fb678113b64dab6c47081a5095d7ff8972c | refs/heads/master | 2020-12-03T10:38:58.168537 | 2015-05-03T20:13:37 | 2015-05-03T20:13:37 | 34,998,941 | 0 | 0 | null | 2015-05-03T20:03:50 | 2015-05-03T20:03:50 | null | UTF-8 | Python | false | false | 849 | py | '''
Created on 17 Mar 2015
@author: Damian Shaw [@notatallshaw]
I would like to thank Aaron C Hall [@aaronchall] for fixing a very difficult
to spot bug in calling the oauth modules that was stopping me from publishing
'''
import arandabot
import botsettings
import time
def main():
settings = botsettings.botse... | [
"damian.peter.shaw@gmail.com"
] | damian.peter.shaw@gmail.com |
88ce9e52637ad879196406540c97898debdc5127 | 0d1e284900c6a934883dc739ff6ec5a038362b52 | /lesson6/mul_satus.py | 374ab16a6f6408f7bd063d830cd2f7da83394a60 | [] | no_license | Devin1016/Python3_learn | 50bf913274887be1553158bc662db1a3c547c077 | 137094ca98e85da5c8642e9d9f4b13ed0a3be327 | refs/heads/master | 2020-03-16T02:53:34.799671 | 2018-05-22T07:56:04 | 2018-05-22T07:56:04 | 132,475,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | class Animal:
def eat(self):
print('animal吃饭')
class Dog(Animal):
def eat(self):
print('dog吃饭')
class Cat(Animal):
def eat(self):
print('cat吃饭')
def show_eat(obj):
obj.eat()
wangcai = Dog()
show_eat(wangcai)
tom = Cat()
show_eat(tom)
| [
"frisell@vip.qq.com"
] | frisell@vip.qq.com |
9a6b2c6928a16aabd37ec60009debf3929fa70cc | 7c161cb836be36593c89a4dc4bceaed9830ded24 | /kierros02/2.2 Onko tylsää virhetarkastelu.py | f515113e1b9d021474a1a51c35162629a41b4900 | [] | no_license | laurila2/tie-02101-ohjelmointi-1 | 7cb8f191c3e5a15109dd2802daaeb5596bee9ab0 | 7a97b224566dd275615e859d8e526e00aafdfda9 | refs/heads/main | 2023-07-20T05:28:25.236029 | 2021-07-19T15:18:25 | 2021-07-19T15:18:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py |
found = False
while not found:
d1 = input('Please answer with Yes or No.\n')
if d1.lower() in ('yes', 'no'):
found = False
else:
print("Mmmm")
print("Good, let's begin.") | [
"santeri.laurila@tuni.fi"
] | santeri.laurila@tuni.fi |
8fc5714e3bfbcae42b26834c59820779965d48e7 | 668a438a8a2c776da4fdcd94aa21049a40ec2a5b | /zinstance/bin/postrelease | 589f132bf222c3844e39288579b401681a89e417 | [] | no_license | nilbacardit26/plone_prova | d1bc2767e854e4d84fb3a67b0074a93b601e6552 | a90ae42820092cdbdf11b06dc4c4d59f5ce27ae1 | refs/heads/master | 2020-06-10T17:38:23.256021 | 2016-12-10T20:05:30 | 2016-12-10T20:05:30 | 75,927,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | #!/home/nil/plone_prova/zinstance/bin/python2.7
import sys
sys.path[0:0] = [
'/home/nil/plone_prova/buildout-cache/eggs/zest.releaser-6.6.4-py2.7.egg',
'/home/nil/plone_prova/buildout-cache/eggs/zest.pocompile-1.4-py2.7.egg',
'/home/nil/plone_prova/buildout-cache/eggs/python_gettext-3.0-py2.7.egg',
'/home/nil/... | [
"n.bacardit@iskra.cat"
] | n.bacardit@iskra.cat | |
6fc66953a4af207b919666545abe34b892f3e3e0 | 8d2b93b1ecbe90cd2b848442ca0f8d6268f102b4 | /weather.py | dbf50dea8809b3bf75bf01e6680dc01ae653ed24 | [] | no_license | WenQiangW/Weather | 1d3efb535a5e04160b02bea2cc5e6a84b93313fe | cacedf9e239a97ad8ecc296b7bb614136700cacf | refs/heads/master | 2021-01-01T15:26:13.849381 | 2017-07-18T15:42:54 | 2017-07-18T15:42:54 | 97,616,218 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,215 | py |
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from weather_ui import Ui_MainWindow
import sys,time
import urllib.request
import gzip
import json
class mywindow(QMainWindow,Ui_MainWindow):
def __init__(self):
super(mywindow,self).__init__()
self.setupUi(self)
sel... | [
"wenqiang1208@126.com"
] | wenqiang1208@126.com |
133dcd4af2c3acaabfea4e7b5618fd6b6ee5b9af | b78ba543e1ad1cc39bf0349e6fd99df0448cb1c3 | /poo_avancada/multipla.py | 128719d25a7500849acb823f4fee749285153bc6 | [] | no_license | Possebas/Python3 | b78d27ae9287e185a91fa7d511cb20a06cfa0f28 | 9ec9ac0d88c797c9f7e3f506d695e6f83f4d172a | refs/heads/master | 2022-12-15T17:02:49.517727 | 2020-01-06T22:07:33 | 2020-01-06T22:07:33 | 232,193,131 | 0 | 0 | null | 2022-04-22T22:56:43 | 2020-01-06T22:00:19 | Python | UTF-8 | Python | false | false | 787 | py | #!python
class Animal:
@property
def capacidades(self):
return ('dormir', 'comer', 'beber')
class Homem(Animal):
@property
def capacidades(self):
return super().capacidades + ('amar', 'falar', 'estudar')
class Aranha(Animal):
@property
def capacidades(self):
return su... | [
"gustavo.possebon@acad.pucrs.br"
] | gustavo.possebon@acad.pucrs.br |
618a4e2853e81450bfcb9a86a09ddda21551527e | 441edaba5de550f619f8824dfbb9c810c148f25b | /scmapp/apps.py | 0b9d09d8f1544a77678efb97f4a5213b942686dd | [] | no_license | afna34/Build-from-home | d9ff13c20e8c32d2b0bab09480a5bcd00860e956 | 00b009db2ff44906e3a6714d1358516383a518f2 | refs/heads/master | 2023-05-10T04:30:48.587921 | 2021-05-26T09:14:54 | 2021-05-26T09:14:54 | 367,935,966 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from django.apps import AppConfig
class ScmappConfig(AppConfig):
name = 'scmapp'
| [
"khadeejaminha2002@gmail.com"
] | khadeejaminha2002@gmail.com |
7f284a6ba903225c6ca426be8bc3c1b5a94fbdcf | 69b8fb9728e47948250973328b40ec1e7798a012 | /fu/single/test/PhiRTL_test.py | e3261ecb15904f54b88baf7df74a85af7a2f3831 | [
"BSD-3-Clause"
] | permissive | zhang-xun/OpenCGRA | d6b824f506695109facc1f03cc8cdfb1eff1a52b | 8a00db3b51994e5706c6129c02fbdbe2a974ad9b | refs/heads/master | 2022-12-03T22:59:14.480555 | 2020-08-25T00:41:02 | 2020-08-25T00:41:02 | 292,053,726 | 3 | 1 | null | 2020-09-01T16:44:02 | 2020-09-01T16:44:01 | null | UTF-8 | Python | false | false | 2,897 | py | """
==========================================================================
PhiRTL_test.py
==========================================================================
Test cases for functional unit Phi.
Author : Cheng Tan
Date : November 27, 2019
"""
from pymtl3 import *
from pymtl3.stdlib.... | [
"tancheng1990@gmail.com"
] | tancheng1990@gmail.com |
e2e7d5b9b92f7a0b1b6801b43db9c95bca9229f0 | 1d159ff6d4d72b1a2399916ec1e28ef885b59323 | /solutions/module_3/01_guess_my_number.py | 4b9c9b119b0c1c64362318c3850d074b0c21f484 | [] | no_license | Zerl1990/python_essentials | 4e329b6e36b36ff340d505b26608d2b244ad2d09 | ce257c25072debed9717960591e39c586edd7110 | refs/heads/master | 2023-02-28T17:42:17.465769 | 2021-02-02T23:39:41 | 2021-02-02T23:39:41 | 297,385,479 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | import random
print((
"+=========================================+\n"
"| Guess my number! |\n"
"| Please, select a numbers between [0-100]|\n"
"| Let's start you have 10 opportunities |\n"
"+=========================================+\n"
))
my_number = random.randint(0, 100... | [
"luis.m.rivas@oracle.com"
] | luis.m.rivas@oracle.com |
ff44d5d6e8557668d19ff1114b8ff88d52bf0cdb | 6f45d929ce0aa0749c38ded68bfe3fbae79a37b7 | /indentity.py | 3b9ffa2c5918fb226b9392ccaaa6c6869612363c | [] | no_license | saquibfortuity/python_github | 4c8975209e97e3b55afb4bdfdce11f0ad6cdadce | 883c54b69ac265628daf3a5862e05ec6f9b0dac6 | refs/heads/master | 2023-04-17T02:14:40.998650 | 2020-12-07T20:45:08 | 2020-12-07T20:45:08 | 308,374,078 | 0 | 1 | null | 2021-04-30T20:24:23 | 2020-10-29T15:41:26 | Python | UTF-8 | Python | false | false | 124 | py | x = 10
y = 20
print(x is y)
list1 = [10, 20, 30]
list2 = [10, 20, 30]
x = list1
print(x is list1)
print(list1 is list2)
| [
"saquibfortuitycorps@gmail.com"
] | saquibfortuitycorps@gmail.com |
b9720250993fe5fd5941bb120072aec0ddec2e1b | 52802cd3c6744f8162e7f3a053a5e6d6c5a6e9e9 | /forum/migrations/0008_delete_answer.py | dc86d19af9d1d13979a78bb8ef5564a4016d4b96 | [] | no_license | marcos-P-R/web_forum_django | 22d273a378a000adec72ded277827965cdf0f40f | 541d9881c36e2a94e6d2e600430dc05662b969e4 | refs/heads/main | 2023-04-01T21:12:08.561232 | 2021-04-12T22:42:46 | 2021-04-12T22:42:46 | 356,742,210 | 0 | 0 | null | 2021-04-12T23:24:04 | 2021-04-11T01:50:23 | Python | UTF-8 | Python | false | false | 279 | py | # Generated by Django 3.2 on 2021-04-12 18:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('forum', '0007_answer'),
]
operations = [
migrations.DeleteModel(
name='Answer',
),
]
| [
"marcos.p.mcruz@outlook.com"
] | marcos.p.mcruz@outlook.com |
208faa3eca1c5f3283ff673fdf3772c5ee49cd88 | 016a3829d0996497ed1001e684d0d8311a466af1 | /ROS/cpr_mover_ws/build/catkin_generated/order_packages.py | 0e2bbe9681b100d5b2c15f803fb5ea18a70cc5a3 | [] | no_license | robotArmProject/robotarm | a572fae93e0c1b2167d0bb6e00db98301bb79ac7 | 6e2f5549d8b01e2376d77c70f184bdfe1a301c96 | refs/heads/master | 2020-04-11T21:15:42.713963 | 2019-01-10T13:14:50 | 2019-01-10T13:14:50 | 162,099,937 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = "/home/bobo/cpr_mover_ws/src"
whitelisted_packages = "".split(';') if "" != "" else []
blacklisted_packages = "".split(';') if "" != "" else []
underlay_workspaces = "/home/bobo/robot_pkg/devel;/home/bobo/catkin_ws/devel;/opt/ros/kine... | [
"johhki-4@student.ltu.se"
] | johhki-4@student.ltu.se |
343ba4734ba6ab5cea95195a3dc1e26ef1287308 | 07748bbd47ffd6790b95a4de08e3458ae4513609 | /2016-12-02/workshop_08.py | 06d5081e3b28513c75392415bfde4e286b71059a | [] | no_license | CarloLoffredo/ggpl | 14639236222ed4b8374aeabf78556996a223dab2 | c200d73f4e760f1b98cce7473f411be6a9b372f9 | refs/heads/master | 2021-05-04T09:04:21.844786 | 2017-01-13T08:44:46 | 2017-01-13T08:44:46 | 70,397,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | import csv
import sys
from pyplasm import *
lines = []
line = []
A = []
B = []
f = open('theFinal.lines', 'rt')
try:
reader = csv.reader(f)
for row in reader:
for a in row:
line.append(float(a))
lines.append(line)
line = []
finally:
f.close()
scene = CUBOID([0.0001,0.... | [
"carlettof@yahoo.it"
] | carlettof@yahoo.it |
6c917b754065175b7d636faebe063cfe3303aaea | 3a34bdc6357ed214a094616cbc1a1d7fb261558c | /fashionai/ipynb/Hansoluo/ssd_fashion_crop/ssd_utils.py | 56f36b37a064bea0243d7c22a8418ff9d93d8c83 | [] | no_license | quuhua911/AiCompetitions | 9c198f056940f7d5474e8dc5227e3a7b8fa42086 | 8ffa49f9fd803c51de933dd87ca434860479ef5c | refs/heads/master | 2020-05-24T08:30:23.105733 | 2018-12-04T13:06:06 | 2018-12-04T13:06:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,538 | py | """Some utils for SSD."""
import numpy as np
import tensorflow as tf
class BBoxUtility(object):
"""Utility class to do some stuff with bounding boxes and priors.
# Arguments
num_classes: Number of classes including background.
priors: Priors and variances, numpy tensor of shape (num_priors, ... | [
"yzhjsw520@gmail.com"
] | yzhjsw520@gmail.com |
3972d6d7840538ecae880e9e1fda6b25c54b8bb0 | db12b990924703cd74748d8585cd9c11fafa6746 | /h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2oas_list.py | 3e7ec87a09dad726385a034be07e5ed147db3d49 | [
"Apache-2.0"
] | permissive | h2oai/h2o-3 | 919019a8f297eec676011a9cfd2cc2d97891ce14 | d817ab90c8c47f6787604a0b9639b66234158228 | refs/heads/master | 2023-08-17T18:50:17.732191 | 2023-08-17T16:44:42 | 2023-08-17T16:44:42 | 17,371,412 | 6,872 | 2,345 | Apache-2.0 | 2023-09-14T18:05:40 | 2014-03-03T16:08:07 | Jupyter Notebook | UTF-8 | Python | false | false | 727 | py | import sys
sys.path.insert(1,"../../../")
from tests import pyunit_utils
import h2o
from h2o.utils.typechecks import assert_is_type
def h2oas_list():
"""
Python API test: h2o.as_list(data, use_pandas=True, header=True)
Copied from pyunit_frame_as_list.py
"""
iris = h2o.import_file(path=pyunit_utils... | [
"noreply@github.com"
] | noreply@github.com |
a5c869904b387c9cd1683326f0988cd0ea2fc5cb | fd8c1b6e7ddbb9ba784056b24370a8c87690d597 | /ex19.py | 797ba569fdf3efaf354258199432357ce9c2d8dd | [] | no_license | andrv11/mappe | 801362f6a1469ccc69e149a29b24b3c2c06acf6a | 6e2569ffc1a766ec20d98c258f9fb6c369ae0af4 | refs/heads/master | 2021-01-02T09:38:55.535503 | 2013-11-29T11:14:57 | 2013-11-29T11:14:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | def cheese_and_crackers(cheese_count, boxes_of_crackers):
print "You have %d cheeses!" % cheese_count
print "You have %d boxes of crackers!" % boxes_of_crackers
print "Man that's enough for a party!"
print "Get a blanket.\n"
print "We can just give the funcion numbers directly:... | [
"andreas_Vangstad@hotmail.com"
] | andreas_Vangstad@hotmail.com |
ae3450610d3f4a3c4469aa2562e125c8a4c0108f | 475e2fe71fecddfdc9e4610603b2d94005038e94 | /Facebook/moveZeroes.py | f41fef3843fc872dc295c4699bbbe39783028f77 | [] | no_license | sidhumeher/PyPractice | 770473c699aab9e25ad1f8b7b7cd8ad05991d254 | 2938c14c2e285af8f02e2cfc7b400ee4f8d4bfe0 | refs/heads/master | 2021-06-28T20:44:50.328453 | 2020-12-15T00:51:39 | 2020-12-15T00:51:39 | 204,987,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | '''
Created on Oct 8, 2020
@author: sidteegela
'''
'''
Input: [0,1,0,3,12]
Output: [1,3,12,0,0]
Input: [0,0]
Output: [0,0]
'''
'''
A two-pointer approach could be helpful here. The idea would be to have one pointer
for iterating the array and another pointer that just works on the non-zero elements
of the array.
... | [
"sidhumeher@yahoo.co.in"
] | sidhumeher@yahoo.co.in |
67ef90d72d34c5d2b83548c47e8342452a2fbd61 | 7a80c75041aa5d801b1f9a715d8a29c6dbdc101d | /restaurants.py | f9085387cdec5350d564b44b8a316f00f78f6100 | [] | no_license | ggacusan10/finalTamuHack | 54f5a42feea30eb511fc95eeabdd65c3769d83e4 | 29bee031a6eea519c7d7b7320d4dfe5f3b948a1e | refs/heads/master | 2020-03-11T09:54:06.157721 | 2018-04-17T15:36:36 | 2018-04-17T15:36:36 | 129,926,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | import csv
import random
class restaurantData():
def __init__(self):
self.city = []
self.restaurantName = []
self.outputRestaurants = []
with open("r.csv") as csvDataFile:
csvReader = csv.reader(csvDataFile)
for row in csvReader:
se... | [
"noreply@github.com"
] | noreply@github.com |
e99d21889825736ba32a12fdaa4a2fadfcee31e4 | 50d8f7a805546edd768a245a544d3a362b674a73 | /09.text_recognition/text_shot.py | bc5a4b3c11fcb2a89660d47d59deec9537044196 | [
"MIT"
] | permissive | Taishuaibo/pycv-training | 0d3f812a7e57acc8496ced9ada5879ee9f8a33f5 | a9ad8755c82bff62e907099ebac7587422b28ccd | refs/heads/main | 2023-05-05T15:51:19.394705 | 2021-05-30T01:08:17 | 2021-05-30T01:08:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,728 | py | # 此项目在开源项目上进行开发
# 原项目地址:https://github.com/ianzhao05/textshot
# 使用EAST深度学习模型执行文本检测
# USAGE
# python text_shot.py [-s 1] [-p 0.05]
import io
import sys
import cv2
import numpy as np
import argparse
from imutils.object_detection import non_max_suppression
import pyperclip
import pytesseract
from PIL import Image
fr... | [
"coscyber@gmail.com"
] | coscyber@gmail.com |
f90c1c3ca57fdac5172a246df5732586c02d0583 | d847738241d3f6accd94e6109053d8279bcc4580 | /blog/models.py | 4b90ea5e27f3323332cc5867f04c062675691de1 | [] | no_license | MirasK/AdAstraX | cdea8a549843434ca258fe644d0cf2dc3b24b883 | 0488da031ad683c3e680c66314915613c531ed14 | refs/heads/master | 2023-01-02T00:13:52.126979 | 2020-10-07T10:57:07 | 2020-10-07T10:57:07 | 293,473,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
class Post(models.Model):
content = models.TextField(max_length=1000)
date_posted = models.DateTimeField(default=timezone.now)
author = models.ForeignKey(User, on_dele... | [
"mirkrokok0@gmail.com"
] | mirkrokok0@gmail.com |
16d9d89ebcca3b9cacc288bb52734eaa661b3b36 | 00505eb872afdba28dfeed28cb18d66945cb884b | /recipes/migrations/0009_auto_20210116_0147.py | 46748c242114d610b1ce47ca724fe109ad564ce4 | [] | no_license | zmilens/IP_Recipe2 | 1f7e917e5424acdd5b84fd1230a4b5b283fea4b4 | 347ddf05ecf669ee558210ba9c6127977b34b5f7 | refs/heads/main | 2023-06-17T01:03:47.299523 | 2021-07-10T19:24:12 | 2021-07-10T19:24:12 | 330,760,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | # Generated by Django 3.1.5 on 2021-01-15 22:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recipes', '0008_author_level'),
]
operations = [
migrations.AlterField(
model_name='author',
name='level',
... | [
"milenabariat@mail.ru"
] | milenabariat@mail.ru |
c79d336c33025ee87041b0924dfe4af9287a02f3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03087/s875530520.py | c6f926255e87de91fe2fee869e4c531b1ffd87e1 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | N, Q = map(int, input().split())
S = str(input())
li = []
cnt = 0
for i in range(N-1):
if S[i]=='A' and S[i+1]=='C':
cnt += 1
li.append(cnt)
else:
li.append(cnt)
for i in range(Q):
l, r = map(int, input().split())
if l > 1:
ans = li[r-2] - li[l-2]
else:
ans = li[r-2]
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4ccde3cf7c1504688638936d937c4a501fab3cf0 | 9733a04a573641a1fbfb91c6d64a842121d4a2a9 | /search_unit_tests.py | ee5a90ea944cb7c269b3ea35e884e2c020bf6e93 | [] | no_license | harsha-mandadi/map_search_AI | a4ea2d41669bbbf6434c6405d00e59193fc1d2d1 | 4908f637ce9f9c956c0b8c8f0c5f496e2f9b8bb9 | refs/heads/master | 2021-02-17T20:43:40.070711 | 2020-03-05T09:59:21 | 2020-03-05T09:59:21 | 245,126,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,056 | py | # coding=utf-8
import itertools
import pickle
import random
import unittest
import networkx
from explorable_graph import ExplorableGraph
from submission import a_star, bidirectional_a_star, \
bidirectional_ucs, breadth_first_search, euclidean_dist_heuristic, \
null_heuristic, haversine_dist_heuristic, tridire... | [
"noreply@github.com"
] | noreply@github.com |
16d806ed7bb7721136f1534dbe98b1aaa13ec985 | b15c47a45207e854fb002d69f7e33f8943a5e2b3 | /cluster/preprocess/pre_node_merge_text2seq.py | c25a02debf845bcb7cf7835b41e46d424efd847a | [
"Apache-2.0"
] | permissive | yurimkoo/tensormsa | e1af71c00a6b2ec3b3ed35d5adad7bafc34c6fbe | 6ad2fbc7384e4dbe7e3e63bdb44c8ce0387f4b7f | refs/heads/master | 2021-07-22T13:41:45.110348 | 2017-11-02T07:13:31 | 2017-11-02T07:13:31 | 109,469,204 | 1 | 0 | null | 2017-11-04T05:19:51 | 2017-11-04T05:19:50 | null | UTF-8 | Python | false | false | 2,165 | py | from cluster.preprocess.pre_node import PreProcessNode
from master.workflow.preprocess.workflow_pre_merge import WorkFlowPreMerge as WFPreMerge
class PreNodeMergeText2Seq(PreProcessNode):
"""
"""
def run(self, conf_data):
return True
def _init_node_parm(self, key):
"""
:ret... | [
"tmddno1@naver.com"
] | tmddno1@naver.com |
29a58c721ddca6fa8e48a59150ed2cfadac404b7 | 67af12743c42a8c63d7945665a2257aad9c6770a | /Practice/ridge_practice7.py | 7fd7ce6f9037756ea5e696dbc4e7e87d6b09f89d | [] | no_license | JeremyNixon/algorithms | a24734f7788e35703ede19e509283486f56cd305 | 4345d44da0ccd929b09388d7e59200c4b697bab4 | refs/heads/master | 2021-01-21T11:45:06.053233 | 2016-03-19T15:43:42 | 2016-03-19T15:43:42 | 29,284,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | import numpy as np
import pandas as pd
file = "/Users/jeremynixon/Dropbox/python/Ultimate Frisbee/Indoor.csv"
dataset = pd.read_csv(file)
for_cluster = dataset[['Games','Goals','Assists','Ds','Turns','Drops']]
for_cluster = np.array(for_cluster)
def ridge_regression(x_train, y_train, lam):
x_train = np.array(x_train... | [
"jnixon2@gmail.com"
] | jnixon2@gmail.com |
cc9defcc4d87c051ceb16afb8890e28ee99c6f64 | ba1c248965d2ab0233c7143a684f23735a2d3f8a | /ispermutation_me.py | 6c7ef1d51c6577592bfea21d38e388f5cce33def | [] | no_license | felicia9820/coding-interview-practice | 717e2911cc57662ff2306f18bc87c70336e4c064 | 13e1166e3b22b6f4bae2db94909aa36a68694f11 | refs/heads/main | 2023-07-11T18:41:13.645721 | 2021-08-19T11:55:57 | 2021-08-19T11:55:57 | 397,925,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | from collections import Counter
def ispermutation_set(str1, str2):
if len(str1) != len(str2):
return print(False)
return print(set(str1) == set(str2))
def ispermutation_dictionary(str1, str2):
if len(str1) != len(str2):
return print(False)
char_dict = {}
for i in str1:
... | [
"feliciaroman2@gmail.com"
] | feliciaroman2@gmail.com |
75b2f382a7fb433e24909b932aa1d7c2c84c9a31 | 6ccecd76bc526c35dd45c90aaf36746d563d4acf | /main.py | c6baebdc09ccf96933975b7f43a58f22f38ec8e5 | [] | no_license | Foliik/PsswdLckr | 0fc261a8f4a7a8816fbcb520e8c915cfbb45db6a | faff6748dded78272de9156db3d683ffa15ab9cd | refs/heads/master | 2020-12-05T14:30:31.591772 | 2020-01-22T15:51:22 | 2020-01-22T15:51:22 | 232,139,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,330 | py | #!/bin/python3
"""
Script para almacenar cuentas.
Opcion de copiar nombre de cuenta y clave al clipboard.
TODO: crear una GUI.
"""
import os
import sys
import pyperclip as pc
from cryptography.fernet import Fernet
from getpass import getpass
def opcion1(key):
os.system("clear")
flag = False
psFlag = Fa... | [
"noreply@github.com"
] | noreply@github.com |
7dfd576a456d42e9a4d3c529f7a602b71519c6c3 | 8d5b75f128b4e8446576edd4a343d6ef7aa28fd8 | /paper_scripts/annotate_variants/pam_pos_hg19.py | 1362878d4659383b5266245d681a2e4763d2b768 | [
"MIT"
] | permissive | allgenesconsidered/ExcisionFinder | 878d071b40799e63bd24aee47520885bc49f6b71 | a0b3cc5fc8d7302a746f00b8ef59d42f02ed7be5 | refs/heads/master | 2021-09-13T15:53:40.314930 | 2018-04-24T01:12:35 | 2018-04-24T01:12:35 | 120,040,975 | 0 | 0 | null | 2018-02-06T17:12:22 | 2018-02-02T23:07:01 | Jupyter Notebook | UTF-8 | Python | false | false | 1,151 | py | # get PAM positions for each chromosome in hg19
import crisprtools
import numpy as np
import sys
from pyfaidx import Fasta
# keep track of chromosome since this will be run with bash script
chrom = sys.argv[1]
# get access to hg19
hg19 = Fasta('/pollard/home/kathleen/ref_dat/ref_genomes/grch37/grch37.fa',as_raw=Tr... | [
"keoughkath@gmail.com"
] | keoughkath@gmail.com |
2ae73fa529d6a5d8123828c55ea1d50f63660ebd | 4a43cded9d76bd05ca87f037de19ff921a60e151 | /13day/07-线程多任务.py | 4669c5331f43b6623bc152dc6442a8ad57e8eec5 | [] | no_license | lishuang1994/-1807 | f7d54c3c93d41539747fc77529d56e73a931676f | 23ee6d351a2797d3f5ba7907954d1a93d2745c10 | refs/heads/master | 2020-03-25T10:09:39.333264 | 2018-08-22T10:53:49 | 2018-08-22T10:53:49 | 143,685,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | import time
from threading import Thread
def saysorry():
print("亲爱的,跪安了")
time.sleep(1)
for i in range(5):
#t = Threadinng(target=saysorry)
#t.start()
saysorry()
| [
"840948928@qq.com"
] | 840948928@qq.com |
05775d40a355affc0d469888ee93da9447189954 | c11675e62d0e7848b94e7f16cfec6d6dd8284dd8 | /jtyd_spider_run.sh | 6b63683cc85262a904e63e695d3919a2893bb70e | [
"MIT"
] | permissive | mylove1/jtyd_python_spider | 2545e0847d85208b4db9e00539616e89416434e2 | fb51263bd4698110c7c024ae7dc072ae17b4c499 | refs/heads/master | 2021-01-23T08:49:22.765310 | 2017-08-27T03:27:47 | 2017-08-27T03:27:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | sh | #!/usr/bin/python3.5
gunicorn -b :5000 -w 1 -t 120 jtyd_spider_run:app >> service.log 2>&1 &
ps x | grep jtyd_spider_run | grep -v grep | cut -c 1-5 | xargs kill -9
nohup python -m celery worker -l INFO -c 5 -A apps.celery_init.celery -B &
ps x | grep celery | grep -v grep | cut -c 1-5 | xargs kill -9
# 创建虚拟环境
vir... | [
"yaowu@pinkuaixian.com"
] | yaowu@pinkuaixian.com |
7ab04b9912bfcb7f3c4c7260ea3b26981e932f71 | 41960a07a8118cf99236972c1e94a36ef00c55c9 | /fitbit/migrations/0001_initial.py | 915c804a5900fdee34108fe73e35d0b7e5fb9dec | [
"MIT"
] | permissive | wahello/jvb | 7288f3fc8099dbbdfa5cdac86b251d4d739f4dca | c87fdf49ae040668323d1a034aa407cfe23c4a1d | refs/heads/bug/aa_ranges/chart2 | 2022-11-29T12:58:37.561674 | 2019-06-17T10:50:17 | 2019-06-17T10:50:17 | 211,479,327 | 0 | 1 | MIT | 2022-11-19T02:54:15 | 2019-09-28T09:52:28 | null | UTF-8 | Python | false | false | 943 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2018-03-09 06:37
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"dileepk@s7inc.co"
] | dileepk@s7inc.co |
ac9209674467e164bb9b6fb0fc5d31b1378494bf | af6bf85d1f8c3583f8c3b60fa86228660585462c | /Level 2/Greedy.py | e7c34cddd9668657b462d39123ac18a8ea75d323 | [] | no_license | hungcn/Robot-Path-Finding | b1d621ca648d0f5cb4c1d78a0b68b484a82a3ea2 | 1236dae61e3ad016693bd3ae8bbfc869055b674c | refs/heads/master | 2022-12-09T09:38:06.845434 | 2020-09-02T04:21:04 | 2020-09-02T04:21:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,321 | py | import cv2
import numpy as np
import math
import queue
nP=0
m=0
n=0
S=[19,16]
G=[2,2]
q=queue.Queue()
matrix=np.zeros((25,25))
def box(img,p,color):
cv2.rectangle(img,(21*p[0]+1,21*p[1]+1),(21*p[0]+20,21*p[1]+20),color,-1)
def box2(img,p,color,m):
box(img,(p[0],m-p[1]),color)
... | [
"1712475@student.hcmus.edu.vn"
] | 1712475@student.hcmus.edu.vn |
08d79dfe171d9a2e3ee2b01224f7e1f98113933d | 5af55c55703e234def16e40b9a7714091d8c1ea9 | /app/email.py | ef0984613e2c7f429bb841825a458687802c0e0a | [
"MIT"
] | permissive | mukjos30/Blog_Project | dc7b935e7b3b94c7c188dbfc56403f8a30d6c2a7 | 22ec4eb6ce3f16e173e94c1412142c3e3f7d4013 | refs/heads/master | 2020-08-04T06:23:52.789816 | 2019-10-03T17:08:34 | 2019-10-03T17:08:34 | 212,037,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from . import mail
from flask_mail import Message
from flask import render_template
def create_mail(subject,template,to,**kwargs):
message = Message(subject,sender="mukjos30@gmail.com",recipients = [to])
message.body = render_template(template + ".txt", **kwargs)
mail.send(message)
| [
"mukjos30@gmail.com"
] | mukjos30@gmail.com |
2ff02576828483feb35dafe118dc773c7fb9f7a0 | da19363deecd93a73246aaea877ee6607daa6897 | /xlsxwriter/test/comparison/test_page_breaks05.py | fb2c64036f0be6ae53d7ae0229ca42202a630f17 | [] | no_license | UNPSJB/FarmaciaCrisol | 119d2d22417c503d906409a47b9d5abfca1fc119 | b2b1223c067a8f8f19019237cbf0e36a27a118a6 | refs/heads/master | 2021-01-15T22:29:11.943996 | 2016-02-05T14:30:28 | 2016-02-05T14:30:28 | 22,967,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTes... | [
"lealuque.tw@gmail.com"
] | lealuque.tw@gmail.com |
5053884460dc3aec3edf0411afdf51a5668c1caf | 78b0c3d09778938e24082e715ce7375f67fe402e | /F21/dheeraj-thikkamaneni/codeReview.py | cb5325f5cf88dc72283d6b76030f1e2a3b737637 | [] | no_license | GadeManasa/5030 | 8fbefd3ce3df9ef8b5b073994d5cb1d75e6b6c76 | 2e44c0ffbb6c00ee1760c09a0a48d24a7712ac61 | refs/heads/master | 2023-08-25T17:17:07.314180 | 2021-11-01T18:37:04 | 2021-11-01T18:37:04 | 412,723,793 | 0 | 0 | null | 2021-10-06T16:31:22 | 2021-10-02T07:28:36 | null | UTF-8 | Python | false | false | 3,854 | py | class convertLowerCase():
def lc(self, text): # methid that converts languages without any special cases
return text.lower()
def tr(self, text): # for turkish
lowercase = ""
turkish_dict = {'I':'ı', 'İ':'i'}
for word in text:
if word == 'I' or word =... | [
"noreply@github.com"
] | noreply@github.com |
236ac309b0705861ad5ed08ae4e8389dc6b3ec01 | 49f959ce7174d36371627f36b8b6a2720ef10ec2 | /mit_semseg/config/defaults.py | c7bd56ab2694e67369fae3615fcac1db37044702 | [
"BSD-3-Clause"
] | permissive | AGMahmoud/Indoor_Segmentation | 59fd3e2b1ba9d783dd784dcd02282f053d54d1ed | d99e502f99cb74000483974d931c2da058071bec | refs/heads/main | 2023-02-26T05:24:35.450014 | 2021-02-03T04:34:14 | 2021-02-03T04:34:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | from yacs.config import CfgNode as CN
import numpy as np
# -----------------------------------------------------------------------------
# Config definition
# -----------------------------------------------------------------------------
_C = CN()
_C.DIR = "ckpt/ade20k-resnet50dilated-ppm_deepsup"
# -----------------... | [
"nave94@naver.com"
] | nave94@naver.com |
ee4927b0a45c771e15e6b2708abebb97860843c8 | d8c468d1119a8ac85a9da833f9759c5c78aac655 | /venv/bin/odfimgimport | 5edae94c15530be817d98690e5190ba1bab531e6 | [] | no_license | sreesankar97/cir-portal | be9bd2c2a071d5053d9e15cbe8e95e1c35e04293 | d042e8ad955c0e58af1581b91b2c492bcbff27a0 | refs/heads/master | 2021-01-20T20:32:10.083781 | 2016-06-10T10:15:51 | 2016-06-10T10:15:51 | 60,768,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,689 | #!/root/Downloads/mysite/cir-portal/venv/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2007-2009 Søren Roug, European Environment Agency
#
# This is free software. You may redistribute it under the terms
# of the Apache license and the GNU General Public License Version
# 2 or at your option any later version.
#
... | [
"sreekichu97@gmail.com"
] | sreekichu97@gmail.com | |
cc9eae73a0bebee70d55a11158f3ddc1d18a24b2 | bba5fba866d367a717d9700a580be52e159a1cd0 | /Semana 6/19. transformaciones morfologicas/labeling.py | 90581c0a3eaae2f96d0ce684328e1838f5aa7cd9 | [
"MIT"
] | permissive | NSnietol/Introduccion-vision-computador-opencv-edx | 10c49849ecd0fba434dcae99edaedd46cbd94f94 | 93f6f3989d9320fb6be9b28c687ea3ae337ba8c5 | refs/heads/master | 2020-03-15T08:42:58.835137 | 2018-05-19T12:42:15 | 2018-05-19T12:42:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import cv2
import numpy as np
file='Clase1.jpg'
img = cv2.imread(file)
if(img.size<1):
print("Error")
else:
imgray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
ret,thresh = cv2.threshold(imgray,130,255,0)
image, contours, hierarchy = cv2.findContours(thresh,cv2.RETR_LIST,cv2.CHAIN_APPROX_NONE)
cnt = con... | [
"nilson-sn@outlook.com"
] | nilson-sn@outlook.com |
e34d413a8c1c98d6d21b693a46353b5a9c8d1190 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2819/60731/291725.py | 8bfd0a4aca43e95e2c7b094a9d0e61a6a52acd4a | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | n=int(input())
data=list(map(int,input().split()))
numof1=data.count(1)
numof2=data.count(2)
numof3=data.count(3)
numof4=data.count(4)
ans=0
ans+=numof4
num1=int(numof1/4)
ans+=num1
numof1-=4*num1
num2=int(numof2/2)
ans+=num2
numof2-=2*num2
if (num2+numof3)>=numof1:
ans+=(numof2+numof3)
else:
ans+=numof1
print(... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
9add44556624cce70e61fc0e44b96622417024e4 | f78e3399b81fc6337f90284f08f47ac5b15abe8d | /codes/idd_training_codes/parse27k_train_net.py | eae48412151cea94ffd117a27a984aafaf50233e | [] | no_license | kbkartik/obj-det | 96e7d424eb81d309ae776ad9b9833e760061104d | 4cc0907dc1f8f29157d162ede1192c91314d23a2 | refs/heads/main | 2023-05-09T18:00:47.560401 | 2021-06-07T04:19:33 | 2021-06-07T04:19:33 | 374,518,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,352 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
"""
Detectron2 training script with a plain training loop.
This scripts reads a given config file and runs the training or evaluation.
It is an entry point that is able to train standard models in detectron2.
In order to let one script support tra... | [
"noreply@github.com"
] | noreply@github.com |
56e7a6002a1b13179f7eeff237b55cbc56349463 | ca2b93910a308b92712cd81ac12e7345ddb7c9d1 | /r_venv/bin/chardetect | a7917fbfdbafa7afbe83d9a730a5833521b87b66 | [] | no_license | KeksikProg/rrs_site | e90eb146573b4dfc8a3a7d082febb43e4f904e9e | 41fcbbc052b89bf5d16604b5b6a6dc14ab74ad69 | refs/heads/master | 2023-06-27T03:59:36.984418 | 2021-01-02T21:31:40 | 2021-01-02T21:31:40 | 315,104,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | #!/home/maxek/python/rrs_site/r_venv/bin/python3.8
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"fvvfvfvf.vfvfvfv@yandex.ru"
] | fvvfvfvf.vfvfvfv@yandex.ru | |
8cc901361d55f79ee3f7ce40e5f13d9154bb9753 | f018cc330609eb76ab570d07eb2f5d218db60bcb | /get_user_info.py | 05ddf23be66c44eb550ab71fcc220352f89da836 | [] | no_license | vishavgupta97/instabot | c117f9e9fee613b2524b377af7c9bd183a94f968 | fca9d4351e0abfc687b868c906368be21ac19db7 | refs/heads/master | 2020-12-02T20:55:53.048778 | 2017-07-14T10:46:23 | 2017-07-14T10:46:23 | 96,230,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | from get_user_id import get_user_id
import requests
from constants import BASE_URL,APP_ACCESS_TOKEN
from colorama import *
#Mehod FoR Getting information of a particular user
def get_user_info(insta_username) :
user_id=get_user_id(insta_username)
#If Nothing is recieved from server
if user_id == None:
... | [
"vishavgupta988@gmail.com"
] | vishavgupta988@gmail.com |
1349c8cade097b09659a7d9f728f84daa3ee69ee | 80d2d8ff0bf02b906bf06e72c36a83c247fb82e6 | /Evolução produtos unicamente energéticos.py | 752e3076b48dde92c09cb2220d4dddf6bcd41d0b | [
"MIT"
] | permissive | username-png/Producao-de-produtos-energeticos-e-nao-energeticos-derivados-do-petroleo | 47ac145f7bf513be7b2950fa8efb9b698492f0b2 | b4ed7592dc0b1edad0609121b328a67af56115a1 | refs/heads/master | 2022-04-06T22:28:19.255086 | 2020-02-21T21:06:20 | 2020-02-21T21:06:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,768 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
''' Aqui vamos fazer um histograma com a produção de produtos unicamente energéticos derivados do petróleo entre os anos de 2009 a 2018, e fazer a sua comparação (isolados e juntos).
Produtos energéticos - Gasolina Aditivada, Gasolina de a... | [
"noreply@github.com"
] | noreply@github.com |
964309d35484479200e5d5e41a9147920efa0336 | 87e89fbc0b19b88d09cfc51b220c14ad6f2a61c2 | /PCA-metric-inverted-file.py | 8db4cc644c306a24a6617aaea76aaad1f6155635 | [] | no_license | pranav-data/pca-metric-inverted-file | e7d463db612338119b50c6669d2179988aa76e8d | e33e167dfb14e1fe219b928c81c334c97b10c62f | refs/heads/master | 2020-11-30T06:59:37.439528 | 2019-12-30T18:28:14 | 2019-12-30T18:28:14 | 230,340,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,708 | py | # %% codecell - Implementing PCA algorithm along the Principal component with highest explained variance
#Nomenclature: object = row in dataset, reference = subset of objects to aid in querying
from sklearn.decomposition import PCA
import pandas as pd
import numpy as np
import random
#Importing all objects as a Data... | [
"pranavkumar.iitm@gmail.com"
] | pranavkumar.iitm@gmail.com |
56390cf28d674c62ccbe1a752ed094f6acc2089b | 8987e276c7f7112a3c378d5cb74e55e2d15ad385 | /22 for.py | c3a57a1777a329dade541a7020245ba28cddd617 | [] | no_license | Leshens/Pytong | 358bd8a139fc61031151131070bd0e744948f889 | f99d827fa06e28302be271f0cec7d63afdbe2652 | refs/heads/main | 2023-08-22T19:47:05.186228 | 2021-10-06T10:23:34 | 2021-10-06T10:23:34 | 414,162,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | x=int(input("podaj liczbę"))
i=2
s=0
for x in range(x):
s+=i
i+=2
print(s) | [
"kacper.kamm@gmail.com"
] | kacper.kamm@gmail.com |
55782bca4fc53bfb30a3d26d1336c6538a21a16a | 6b8c3974d3ce5f7841e51dcb406666c0c5d92155 | /heat/heat_integrationtests/common/clients.py | c7a7f60e6cf45d26c6119542ab40388bb7cfed8a | [
"Apache-2.0"
] | permissive | swjang/cloudexchange | bbbf78a2e7444c1070a55378092c17e8ecb27059 | c06ed54f38daeff23166fb0940b27df74c70fc3e | refs/heads/master | 2020-12-29T03:18:43.076887 | 2015-09-21T07:13:22 | 2015-09-21T07:13:22 | 42,845,532 | 1 | 1 | null | 2015-09-21T07:13:22 | 2015-09-21T05:19:35 | C++ | UTF-8 | Python | false | false | 5,888 | 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
# d... | [
"kiku4@kinx.net"
] | kiku4@kinx.net |
16a781c955ca74d6f7f63d8bf22a675b21dc89a3 | 3a31ca26eef2c050e1eff73d4e8fd15201615931 | /iv/Stacks_Queues/count_valid_parenthesis.py | 64828f8e292f66fe931513c4362db72f8d29ab02 | [
"MIT"
] | permissive | paramita2302/algorithms | 1737f8501ce367218d1b404aa5424d188cb50cad | 0604b5eee51209d35295e7e397ce4126e0513610 | refs/heads/master | 2023-01-02T14:18:36.247596 | 2020-10-02T22:28:12 | 2020-10-02T22:28:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | class Valid():
def longest_valid_parenthesis(self, A):
# n = len(A)
s = []
pair = 0
maxpair = 0
for i in A:
if i in "({[":
s.append(i)
if i in ")}]":
if len(s) > 0:
top = s[-1]
else:
... | [
"suman_banerjee@intuit.com"
] | suman_banerjee@intuit.com |
c20a76b0607e8b127a48905729d43f027af7747e | f4ced1f73a8b6fb7304746505e81355594da6dc4 | /Pandas/Notebook2.py | 00c6a8d6b659002702aa754eadb1f329079ade4e | [] | no_license | TapanManu/Applied-ML-NoteBook | 78e8ea4ec6fd86dd932e51f39c2ab832f5ebf015 | da1398a19891109e2ebdf5d4a0e590dd97af65b7 | refs/heads/master | 2021-05-24T13:42:57.699453 | 2020-08-23T08:47:37 | 2020-08-23T08:47:37 | 253,588,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,845 | py |
# coding: utf-8
# ---
#
# _You are currently looking at **version 1.5** of this notebook. To download notebooks and datafiles, as well as get help on Jupyter notebooks in the Coursera platform, visit the [Jupyter Notebook FAQ](https://www.coursera.org/learn/python-data-analysis/resources/0dhYG) course resource._
#
... | [
"noreply@github.com"
] | noreply@github.com |
e6c4441e2e87d731f8d9d4819d894c13479ecec6 | b4aa80fd4af805f31c139eca68963ceb56863dfb | /app/models/follow.py | ea5471ce614852a532fe455dce75cc5da1b52b49 | [] | no_license | COrtaDev/bl3-companion-updated | aff7911f38804cef2ba47f474c084204f494c5d4 | d531971fa249679965258ba835e697d6b0e73587 | refs/heads/main | 2023-03-19T15:07:55.062168 | 2021-03-11T01:37:48 | 2021-03-11T01:37:48 | 335,014,880 | 1 | 0 | null | 2021-03-11T01:37:48 | 2021-02-01T16:37:42 | CSS | UTF-8 | Python | false | false | 678 | py | from .db import db
# from .user import User
from sqlalchemy.sql import func
class Follow(db.Model):
__tablename__ = 'follows'
id = db.Column(db.Integer, primary_key=True)
follower_id = db.Column(
db.Integer, db.ForeignKey('users.id'), nullable=False)
followed_id = db.Column(
db.Intege... | [
"conradorta@gmail.com"
] | conradorta@gmail.com |
1e029d2709ab09d94b6a3a2caec403e0ee713bf0 | b6eb712bed776262972672ee5448b2cdf713af63 | /0046.py | 38b17590f592f96a19ce2ba11f404158244a2ef9 | [] | no_license | hulian425/aizu | 873ef64ef540a50b163782adab635ec480565d4d | 948219100c4c58f5b04b3480aa64bce8c951e1a1 | refs/heads/master | 2020-08-16T11:50:04.681754 | 2019-10-17T14:08:27 | 2019-10-17T14:08:27 | 215,498,392 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | m={'A':0,'B':1,'C':2}
a = 'A'
b='B'
while True:
try:
a, b = list(input().split(','))
except:
break
m[a],m[b]=m[b],m[a]
if m['A']==0: print('A')
elif m['B']==0: print ('B')
elif m['C']==0: print('C')
| [
"noreply@github.com"
] | noreply@github.com |
e5f28de8d36b7fe9419201e9c48adec23ac188c1 | 96fb9c10b697528ae171a71f20c3de09938d005e | /dyform/wsgi.py | e22d8b50919b8246394293fa0c8f13fc34e8770e | [] | no_license | GDThumar2409/dyform | efbf4aebe176ed9ef8ec233d6ea2441769097bed | 30b64974a3ea6ff88663740510cff58ac3f2ed77 | refs/heads/master | 2022-05-26T04:58:10.840368 | 2020-04-29T14:39:02 | 2020-04-29T14:39:02 | 259,951,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for dyform project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"47185326+GDThumar2409@users.noreply.github.com"
] | 47185326+GDThumar2409@users.noreply.github.com |
a0c7ffbc2b8b323aaf0df3752796182fa2ad9aa5 | 0d0cf0165ca108e8d94056c2bae5ad07fe9f9377 | /12_Dimensionality_Reduction_in_Python/2_Feature_selection_I_selecting_for_feature_information/visualizingTheCorrelationMatrix.py | 219bc39cbbc113f94d69e038232a34aa880c624e | [] | no_license | MACHEIKH/Datacamp_Machine_Learning_For_Everyone | 550ec4038ebdb69993e16fe22d5136f00101b692 | 9fe8947f490da221430e6dccce6e2165a42470f3 | refs/heads/main | 2023-01-22T06:26:15.996504 | 2020-11-24T11:21:53 | 2020-11-24T11:21:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | # Visualizing the correlation matrix
# Reading the correlation matrix of ansur_df in its raw, numeric format doesn't allow us to get a quick overview. Let's improve this by removing redundant values and visualizing the matrix using seaborn.
# Seaborn has been pre-loaded as sns, matplotlib.pyplot as plt, NumPy as np an... | [
"noreply@github.com"
] | noreply@github.com |
987487fdb35b017168fc42b6be59a9afb9de7135 | f28f56a35ce5c92959926283afd06c7e3da41be7 | /LearnKeras/02_Deep_circles_classifier.py | f4e33411273b556c8e108f7d04f0564675918e5a | [] | no_license | gsailesh/Learnings_2018 | f402e8c17aa9c9a798dfc5d5ea83660027b581f7 | 32764ce3280cf011b15af8346a4b1b1a4ed15dfb | refs/heads/master | 2020-03-22T16:59:41.276306 | 2019-01-06T06:13:53 | 2019-01-06T06:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | # Imports
from sklearn.datasets import make_circles
from sklearn.model_selection import train_test_split
from keras.models import Model
from keras.layers import Input, Dense
from keras.optimizers import Adam
from keras.callbacks import EarlyStopping
# Data read and train/test split
X,y = make_circles(n_samples=10000, ... | [
"sailesh.ganeshan@gmail.com"
] | sailesh.ganeshan@gmail.com |
7b56fc22aa32b03fb0cfa39a1d0b49bca82553d5 | 59d5a801dd8361fe2b68f0cdfc1a0c06bbe9d275 | /Competition/fast-flux域名检测/backup/v1/feature_engineering.py | 70c7ab417fa009bb50ad40233fda391a9e85cdb7 | [] | no_license | HanKin2015/Machine_to_DeepingLearning | 2ff377aa68655ca246eb19bea20fec232cec5d77 | 58fa8d06ef8a8eb0762e7cbd32a09552882c5412 | refs/heads/master | 2023-01-25T01:16:41.440064 | 2023-01-18T08:23:49 | 2023-01-18T08:23:49 | 134,238,811 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,016 | py | # -*- coding: utf-8 -*-
"""
文 件 名: feature_engineering.py
文件描述: 特征工程
作 者: HanKin
创建日期: 2022.10.18
修改日期:2022.10.18
Copyright (c) 2022 HanKin. All rights reserved.
"""
from common import *
def exception_value_processing_by_delete(dataset, feature, lower_threshold, upper_threshold):
"""异常值处理(删除)
... | [
"1058198502@qq.com"
] | 1058198502@qq.com |
e3c587cf4a2d905939a4c7e8750bc6d0ff07f00c | 4c718d78039ca97e1a9b18897642e8bc5cd394d9 | /Python code of quizzes/Lesson 6/TagTypes.py | e4bdc42307b8303b26cd8b79cf4aa17d2960ee3f | [] | no_license | aish27/data-wrangle-openstreetmaps-data | 81a3fa4a1a06ea8972f6e98af77e9e71350a65bc | 9e5eedf49ca67b480bb969ebe4db77df62bf238d | refs/heads/master | 2020-12-02T19:26:04.726496 | 2015-06-12T17:38:37 | 2015-06-12T17:38:37 | 37,049,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | #Determines the problematic tag types that exist in a dataset and their numbers.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import xml.etree.cElementTree as ET
import pprint
import re
lower = re.compile(r'^([a-z]|_)*$')
lower_colon = re.compile(r'^([a-z]|_)*:([a-z]|_)*$')
problemchars = re.compile(r'[=\+/&... | [
"root@ip-10-47-174-141.ec2.internal"
] | root@ip-10-47-174-141.ec2.internal |
09edd08f6e622fb9dca0bede1cd1303a06efd40d | d5a647e1c5dad8543854a07e10bdc22748d31ef1 | /007_텍스트 및 재시작 기능 추가, 겹침 버그 수정, 함수화 추가.py | b82db4f2a466486151eb638967aa07d98752d9ac | [] | no_license | peter9167/Save-your-kind-from-the-labor-camp- | 9f3f94420081a62f717797b8c173a992dfba62fa | 87462fde05b5f45350427ce3aef7fccff7b9d29c | refs/heads/main | 2023-08-03T07:56:10.464093 | 2021-09-14T10:50:48 | 2021-09-14T10:50:48 | 406,146,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,512 | py | import pygame as pg
import random
# 이미지 초기화
def 스프라이트_생성(이미지):
스프라이트 = pg.sprite.Sprite()
스프라이트.image = 이미지
스프라이트.rect = 스프라이트.image.get_rect()
return 스프라이트
# 게임 요소 초기화
def 게임요소초기화():
global 게임시간, 게임여부, 개리시작높이, 점수
global 개리뛰기상태, 개리뛰는흐름, 개리동작업데이트시간, 점프기본속도, 점프속도, 점프상태, 개리위치
global 요소들속도, 돌멩... | [
"peter9167@naver.com"
] | peter9167@naver.com |
22333f24e36f7de94f303b98576d2fb4166f585b | e91fe9c77c39ab855383839820867d5dda27cfdd | /posts/api/pagination.py | feb17a52e7d48c1ab4073025106caa309455469e | [] | no_license | chutchais/Blog-API | 6a69580c1f97ecce01e500de56e730864f1e519a | 8402d638832703aa4ede7e7e05ac47a902320cd9 | refs/heads/master | 2021-01-12T03:19:36.874801 | 2017-01-12T14:48:42 | 2017-01-12T14:48:42 | 78,195,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from rest_framework.pagination import (
LimitOffsetPagination,
PageNumberPagination,
)
class PostLimitOffsetPagination(LimitOffsetPagination):
default_limit =2
max_limit=10
class PostPageNumberPagination(PageNumberPagination):
page_size=2
| [
"chutchai.s@gmail.com"
] | chutchai.s@gmail.com |
ce2110dd808121a47a77919f6af2e6105c28628f | ccc84ed36338924dc3bd00e0e4760937e656c338 | /Variables/workingWithNumber.py | 3ea66dbc43394bcf9cd7da6710ab4ab1d0e3d6fd | [] | no_license | gekif/CompletePythonProgrammingCourseForBeginners | f52ad63e4a0d1a705c75164972c7818adca545b8 | ce92ef416d758483c79b8ba08658482610915e06 | refs/heads/master | 2020-09-26T13:16:23.366985 | 2019-12-09T04:51:38 | 2019-12-09T04:51:38 | 226,262,393 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | import math
print(round(2.9))
print(abs(-2.9))
print(math.ceil(2.2)) | [
"dzulfikar.maulana@brainworx.co.id"
] | dzulfikar.maulana@brainworx.co.id |
2d461f2dabe587556719d690d96c080d2851adc6 | 6d8440ce32deb7fb5c1897cbf3e29ce58e133484 | /populate_rango.py | 6640fc85f1b42e116e10e9f922b5c25865df8048 | [] | no_license | 2199216K/tango_with_django_project | 44a2803e0edb1994bb976de9700dd1eed920bb77 | 12f270c2e5628777afece5da148bd0f7875c80d7 | refs/heads/master | 2021-04-30T17:29:08.378216 | 2017-02-10T03:18:55 | 2017-02-10T03:18:55 | 80,219,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,076 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
'tango_with_django_project.settings')
import django
django.setup()
from rango.models import Category, Page
def populate():
# First, we will create lists of dictionaries containing the pages
# we want to add into each category.
... | [
"jordan.kalfas97@gmail.com"
] | jordan.kalfas97@gmail.com |
379dca7908fab3776ab6235fdd6f70599ab59d66 | b08f0f08d551e710c354e8170bc9788d6be723c8 | /train_model.py | ecc113b64c9b0557c4e2a4d7ef22bb1e356cd739 | [
"MIT"
] | permissive | xys1985/Faster-RCNN-WIDERFace | 4b968e711730d865699d0554a7c4ad2eec4d811a | 0542b4651dce9e5bf81d7ecce16a868b10f170be | refs/heads/master | 2022-03-02T22:24:39.840662 | 2019-10-26T06:27:11 | 2019-10-26T06:27:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,951 | py | import os
import tensorflow as tf
from tensorflow import keras
import numpy as np
from matplotlib import pyplot as plt
import visualize
from detection.datasets import coco, data_generator
from detection.datasets.utils import get_original_image
from detection.models.detectors import faster_rcnn
os.e... | [
"vietanh@vietanhdev.com"
] | vietanh@vietanhdev.com |
9557debf60b326bde3fa9c49cc704ac5f54aa070 | a100f834774e011cdd103b5e26b855d3fab46768 | /decimalMTU.py | 43a6249250f8903bf85f7a67c5d6f6076cf8518a | [] | no_license | Ander20n/ITC2020 | 16612a89e43061f76695c5cfd1b8f6f5c88984d5 | bf0386fd2286cdabfae8ab9e04e72ee68d09f72e | refs/heads/master | 2023-01-19T18:19:46.549923 | 2020-11-16T18:09:49 | 2020-11-16T18:09:49 | 278,759,614 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,608 | py | # coding: utf-8
import sys
'''
Código que transforma um número decimal nas transições
O código deve ser rodado via prompt de comando, como o seguinte exemplo:
python decimalMTU.py 450813704461563958982113775643437908
Caso o valor informado gere máquina sem transições, o retorno será: Não existe máquina para o núme... | [
"andersoon_12@hotmail.com"
] | andersoon_12@hotmail.com |
5e42d40a98ea8097ac32122c8033cffb57ed7f5b | 742898b50eda87c17513724e1f54474fec37c6c6 | /1. Algorithmic toolbox/week6_dynamic_programming2/2_partitioning_souvenirs/partition3.py | 8430f31b812ec2a3358691efb85a0af675586d43 | [] | no_license | Kirill-Tamogashev/Data-Structures-and-Algorithms | b8b6005f7f1ad13147f0278bfdb1dbffcfa8ff83 | 66091d5b67e22b75f4eb167ae13502b3c009d233 | refs/heads/master | 2022-12-18T17:29:45.853242 | 2020-09-20T15:30:47 | 2020-09-20T15:30:47 | 297,072,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | # Uses python3
import sys
import itertools
def partition3(W):
w = sum(W)
if w%3 != 0:
return 0
n = len(W)
if n < 3:
return 0
w = w // 3
value = []
for _ in range(w + 1):
m = [0] * (n + 1)
value.append(m)
count = 0
for i in range(1, w + 1):... | [
"noreply@github.com"
] | noreply@github.com |
4a08d9456e89cd765f8ec1e5aa9e4c3bbdec557d | b204b9eb0677fdab1d909354994ab4ffbfc6f2ee | /building_nn_model.py | 9ee43eac23a10250f3f8aadb0f53e0a9597ea75d | [] | no_license | e23099/BlackJack_experiment | e46bd9b41774a7e6bc6645a588d20195741f8e99 | ffd80fe575a330fc5d8d53080e2a23255b634b35 | refs/heads/master | 2020-04-14T03:08:17.026353 | 2019-10-12T03:47:37 | 2019-10-12T03:47:37 | 163,600,581 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,944 | py | import numpy as np
import pandas as pd
import keras
from keras.models import Sequential
from keras.layers import Dense, Flatten
from keras.optimizers import SGD
from keras.metrics import categorical_accuracy
import pickle
dt1 = pd.read_csv('processed_deck_1_round_2000.csv', header=None)
dt1.columns = ['nCards', 'nTen'... | [
"e23099@gmail.com"
] | e23099@gmail.com |
f765a53567eb4d535fe4f1d1fd0c6899ff8f27de | 4edbeb3e2d3263897810a358d8c95854a468c3ca | /python3/psutil/count1.py | 2930af68edad4e73b64927a1ebaa37e2c82cd7d6 | [
"MIT"
] | permissive | jtraver/dev | f505d15d45b67a59d11306cc7252114c265f388b | 2197e3443c7619b856470558b737d85fe1f77a5a | refs/heads/master | 2023-08-06T02:17:58.601861 | 2023-08-01T16:58:44 | 2023-08-01T16:58:44 | 14,509,952 | 0 | 1 | MIT | 2020-10-14T18:32:48 | 2013-11-19T00:51:19 | Python | UTF-8 | Python | false | false | 233 | py | #!/usr/bin/env python3
#!/usr/bin/python
import time
import sys
def main():
# for count in xrange(10000000):
for count in range(10):
print("%s" % str(count))
sys.stdout.flush()
time.sleep(1)
main()
| [
"john@aeropsike.com"
] | john@aeropsike.com |
666bf4622648bec755a4fd03c317f5dbb5fe0f2f | f5758072873cd0c7b1014eeb0b695c7027d89db6 | /simpledjango/settings.py | 4c5b2b0300d854732d9f64f7f020214a51e467f7 | [
"Apache-2.0"
] | permissive | mohibJV/djangobluemix | fe12199581a47de5ab1f8838ae7ab4c328a064c6 | 8d0a212eeda9df17d53aa493afb0c503097d9b88 | refs/heads/master | 2021-01-17T22:02:59.374784 | 2016-03-21T16:09:47 | 2016-03-21T16:09:47 | 54,403,721 | 0 | 0 | null | 2016-03-21T16:08:08 | 2016-03-21T16:08:08 | null | UTF-8 | Python | false | false | 2,989 | py | """
Django settings for simpledjango project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ..... | [
"carlos.ferreira@us.ibm.com"
] | carlos.ferreira@us.ibm.com |
fe9cce4ba0960074eabf5b0e31aa35a2bd0406c3 | 123d72c838b70d68687d3e52704439950ff8c462 | /footer-section/mango.py | 216d3699a9d485dad604cb24e59807ed28ad6077 | [] | no_license | justalearner1/git-and-github | 35b4eae5b1a700a40e93e565fe58b3acebae6200 | aeb82a86c3bc8102e36a4c4f051feeb473497373 | refs/heads/master | 2020-07-02T19:13:53.063713 | 2019-08-23T16:56:22 | 2019-08-23T16:56:22 | 201,635,089 | 0 | 0 | null | 2019-08-23T17:53:46 | 2019-08-10T13:39:03 | Python | UTF-8 | Python | false | false | 23 | py | print('this is mango')
| [
"teemakai@gmail.com"
] | teemakai@gmail.com |
848e22f57c458f6d6b6d62ebfd4d38411ec32a4d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03623/s878257952.py | 3b621e177a4b3597998ce1dffd6331ec72409b90 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | import numpy as np
x, a, b = map(int, input().split())
ans = 'A' if np.abs(a-x) < np.abs(b-x) else 'B'
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8243e48756acbb76e59a314c42e70c58e2656965 | 2fded77fc7028f6c7ae11233f8162e5adae3dadb | /vtkVisualizer/inc/vtk/Common/Core/Testing/Python/TestOverloads.py | 206fb3260410c3e465eae4d2d510f2a581e9766e | [] | no_license | nagyistge/MedicalVisualization | ab70c38100c487fb9fa94beb6938530de913813e | 40bcd54f465f1acdb18ccd641105a6002374fe05 | refs/heads/master | 2020-04-11T23:46:30.450284 | 2016-01-18T16:30:55 | 2016-01-18T16:30:55 | 52,168,821 | 2 | 0 | null | 2016-02-20T18:34:11 | 2016-02-20T18:34:11 | null | UTF-8 | Python | false | false | 2,341 | py | """Test overloaded method resolution in VTK-Python
The wrappers should call overloaded C++ methods using similar
overload resolution rules as C++. Python itself does not have
method overloading.
Created on Feb 15, 2015 by David Gobbi
"""
import sys
import vtk
from vtk.test import Testing
class TestOverloads(Testi... | [
"gguayaqu@purdue.edu"
] | gguayaqu@purdue.edu |
b878c8557764a724f1d3aeb71971de4a8a664095 | 2fac796fa58c67fb5a4a95a6e7f28cbef169318b | /python/connecting-graph-ii.py | 8dd9c83c7a70a19f748db2b7a41f9c71f45adecf | [] | no_license | jwyx3/practices | f3fe087432e79c8e34f3af3a78dd10278b66dd38 | 6fec95b9b4d735727160905e754a698513bfb7d8 | refs/heads/master | 2021-03-12T20:41:59.816448 | 2019-04-14T06:47:30 | 2019-04-14T06:47:30 | 18,814,777 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | class ConnectingGraph2:
# @param {int} n
def __init__(self, n):
self.father = [0 for i in xrange(n + 1)]
self.counter = [1 for i in xrange(n + 1)]
def find(self, a):
if self.father[a] == 0:
return a
self.father[a] = self.find(self.father[a])
return self.... | [
"jwyx88003@gmail.com"
] | jwyx88003@gmail.com |
6aee45a3408c1a981d520501728a10861006b5d6 | aead98c4acb57cf0b6343f2e3071601539691561 | /api/create.py | 8c078028278ecbd5f53231a10124b5fd3b0d376d | [] | no_license | awsomefunc/python-mockservice | 6fe0af41ef26965e007fc28980a735ec9e7731d9 | 135a6e3c0f9c7cec0affe0b29a28c11efe818b02 | refs/heads/master | 2023-02-03T04:55:23.816597 | 2020-12-24T08:33:45 | 2020-12-24T08:33:45 | 324,100,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | import json
import logging
import os
import time
import boto3
dynamodb = boto3.resource('dynamodb')
from botocore.exceptions import ClientError
def create(event, context):
data = json.loads(event['body'])
timestamp = str(time.time())
table = dynamodb.Table(os.environ['DYNAMODB_TABLE'])
pathId = even... | [
"saurabh.singh2005@gmail.com"
] | saurabh.singh2005@gmail.com |
586a01efea32bd532363b4b61e78f444b310b1d5 | 1018293fcf0ac780e1db09a7b112bee031ed957b | /app.py | 1517914e4eabb47fb45aa6974f3f09bc818797dd | [] | no_license | rtranguy/rtranguy.github.io | c238b3987ba1e976a58af4812c1573a9f933dbf4 | cb728c19d776bea6c72644371311b9b6b6c0e133 | refs/heads/main | 2023-06-26T09:02:53.759982 | 2021-07-30T02:37:24 | 2021-07-30T02:37:24 | 390,905,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | from flask import Flask
from flask import render_template
from flask import request
from flask import make_response
from flask import abort, redirect, url_for
from flask import Flask, flash, redirect, render_template, request, url_for
import pickle
import numpy as np
app = Flask(__name__)
model = pickle.load(open('ny... | [
"rtranguy@gmail.com"
] | rtranguy@gmail.com |
924e5c9d7afee7712e776e2c5e500dfb02c9140d | 21d800d6dab9beccc8bc0fec3337ef5c18958ea8 | /07.selectHerbAgent/selectHerbAgent.py | c86b45ff29728396f00fa34c0ea74686d7fc3f33 | [] | no_license | numvarn/TextMining | 583ef452064f5e6dbe2d48dbbffc97350a10a6a9 | 50aa7a4b60f00ab795cf37b86adb26375bec368d | refs/heads/master | 2021-01-09T20:41:09.337854 | 2016-06-21T15:50:29 | 2016-06-21T15:50:29 | 61,636,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | import csv
def main():
# Read data from original source
fileCSV = csv.reader(open("/Users/phisanshukkhi/Desktop/TF-IDF.csv", "rb"))
herbStartPoint = 379
herbEndPoint = herbStartPoint + 1006
rowCount = 0
# Prepair CSV file to write result
targetOutput = open("/Users/phisanshukkhi/Desktop/TF... | [
"phisanshukkhi@Phisans-Mac-mini.local"
] | phisanshukkhi@Phisans-Mac-mini.local |
f55ab383a4da5d265d12af5c33efd15143468f09 | 30c0880c626a6e5c40333752cbff9a452949ec44 | /data_analysis/generate_test_file.py | cb6e259084a37151fd2a015cb6126770980cc20f | [] | no_license | weizhang3678/pythonstudy | f3b03d3dd04a007fa1d33709b8538e59520d2354 | cac8a0411ef57562680d363cdc86460dab0e927f | refs/heads/master | 2020-12-29T19:58:34.068262 | 2020-05-06T20:19:11 | 2020-05-06T20:19:11 | 238,714,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | import csv
import random
file = open("data.csv",'w',newline='')
try:
writer=csv.writer(file)
writer.writerow(('id','name','class','score-math','score-language'))
for i in range(10):
name = 'name'+str(i)
score = str(random.randint(40,100))
score1 = str(random.randint(40,100))
... | [
"wei.zhang3678@gmail.com"
] | wei.zhang3678@gmail.com |
f2c85728d070f3762e6043686a6efed784bc6e28 | 0d550dca4a6a9f531c01d08c1198d5577d836f4f | /generatingDBScripts/generateTraits.py | a819174700a66ab99acb90d9b1d073727d760f3b | [] | no_license | Harp0n/PaperRPG-Project | 0ed59a7d9d4b96529134f8bd1082379fb5349432 | 8d6fb8b4876f05c39f84d4122dcbffae2c658e32 | refs/heads/master | 2020-09-06T16:03:30.398742 | 2019-11-21T21:24:55 | 2019-11-21T21:24:55 | 220,473,484 | 2 | 0 | null | 2019-11-14T22:44:07 | 2019-11-08T13:34:27 | Python | UTF-8 | Python | false | false | 647 | py | from connectDB import db, cursor, saveDB, closeDB
import json
def generate():
with open("data/5e-SRD-Traits.json", "r") as read_file:
query = "INSERT INTO traits VALUES(NULL,%s, %s);"
data = json.load(read_file)
for traits in data:
parameters = []
_name ... | [
"41492536+Reevo55@users.noreply.github.com"
] | 41492536+Reevo55@users.noreply.github.com |
ec1c59e9ee6b6c1612ce63a62d3c49bc71f9c1a9 | fcda540a48ecf626451c020ff040592bf677891f | /state_machine/scripts/dummy_task_client.py | 3942f1a2654378ae42b6f4e024eb69ad42534f44 | [] | no_license | ignaciotb/smarc_planning | a4861bc7e0747d38d91de2a2fb911c280203179c | 1e0303a12e217ada7b6d102f67d14c5415a4d489 | refs/heads/master | 2020-03-29T02:20:28.531994 | 2018-09-18T16:06:34 | 2018-09-18T16:06:34 | 129,094,322 | 0 | 0 | null | 2018-04-11T13:01:18 | 2018-04-11T13:01:18 | null | UTF-8 | Python | false | false | 1,680 | py | #!/usr/bin/env python
import rospy
import actionlib
from smarc_msgs.msg import SMTask
from smarc_msgs.srv import AddTask, AddTaskRequest, AddTaskResponse
from smarc_msgs import sm_task_utils
from geometry_msgs.msg import PoseStamped
def dummy_task():
"""
Create an example of a task which we'll copy ... | [
"torroba@kth.se"
] | torroba@kth.se |
eed34c1af04c4f77efda7c34f59a69e96c8dbdad | 7a782df2cc1b176435f5f94af4d95c8795ea32a9 | /checkin_app/apps.py | da1aec1de7d933733a636b832024b7e14f874bfa | [] | no_license | EmilyDai/checkin | 0deb3b6651e4c4a3f9c16e1d0e833dcb93472382 | 2efe18371581f4dce64da4da5db6d02f763a57b1 | refs/heads/master | 2021-01-19T13:36:04.055373 | 2017-10-07T11:59:36 | 2017-10-07T11:59:36 | 100,505,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from django.apps import AppConfig
class CheckinAppConfig(AppConfig):
name = 'checkin_app'
| [
"daijing_emily@163.com"
] | daijing_emily@163.com |
10f6230475b7cd896a058d46d101b08a3ccd9aa9 | 1885e952aa4a89f8b417b4c2e70b91bf1df887ff | /ABC163/D.py | 618f915abc6ca69fb1b9175433ddb970de9c633a | [] | no_license | takumiw/AtCoder | 01ed45b4d537a42e1120b1769fe4eff86a8e4406 | 23b9c89f07db8dd5b5345d7b40a4bae6762b2119 | refs/heads/master | 2021-07-10T12:01:32.401438 | 2020-06-27T14:07:17 | 2020-06-27T14:07:17 | 158,206,535 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | import sys
readline = sys.stdin.buffer.readline
MOD = 10 ** 9 + 7
def main():
N, K = map(int, readline().rstrip().split())
ans = 0
m = (N * (N + 1)) // 2
for k in range(K, N+2):
mi = ((k-1) * k) // 2
ma = m - ((N-k) * (N-k+1)) // 2
ans += (ma - mi + 1)
print(ans % MOD)
if... | [
"w.tak.1229@gmail.com"
] | w.tak.1229@gmail.com |
7cdd4598f5208b64b7efecf60bb4b6493ce2b96e | 0b6718aaf22ecca35b3f4926a3360bf4d11ae6a5 | /github-dirtree.py | d8dedd54fbf4aacd511aa4e15ac1481ae70adb0b | [] | no_license | westronham/github-dirtree | 4672c92fac62d8f23cf6b9afa6ac05713acc298f | 5b064b6aca79673b73f405894e296978941b80ea | refs/heads/master | 2021-01-01T17:46:43.913876 | 2017-07-24T07:17:46 | 2017-07-24T07:17:46 | 98,157,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | import requests
import json
import sys
input_regex = sys.argv[1].replace("https://github.com/", "")
website = "https://api.github.com/repos/" + input_regex + "/git/trees/master?recursive=1"
response = requests.get(website)
a = response.json()
for b in a['tree']:
print(b['path'])
| [
"noreply@github.com"
] | noreply@github.com |
2a4c302414674e7a3ffc8430affc57cc46d3d636 | 1df10548b3a557a87a5979a2d4c3a40e9bcb7610 | /emojis.py | ab6712900ed195ba3d9ab6aed192bff5fc5435cd | [] | no_license | Pdgraham/DragonBotRecognition | 88759bb45ff5c05eb7a07527de48ea00c0fb8da2 | f4901beb94281ba465cfab46e2197db0d60687c2 | refs/heads/master | 2021-01-01T16:31:16.716607 | 2015-05-30T19:55:55 | 2015-05-30T19:55:55 | 34,464,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,524 | py | import cv2
import numpy as np
def identifyEmoticons(image, emoticons, showEmojis = False):
imageGrey = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
imageThresh = cv2.adaptiveThreshold(imageGrey, 255, cv2.ADAPTIVE_THRESH_MEAN_C, cv2.THRESH_BINARY, 11, 5) # 9,3
correctEmoticons = []
correctEmoticons2 = []
for j in range... | [
"pdgraham@mit.edu"
] | pdgraham@mit.edu |
d55198c565776af266afc2d6ec76c472c3e79919 | fa3463cbbd7e06d4559ad97d7c8ccdc881a35111 | /api/app.py | 6a5765d246cf1524ff1c13cdc5146bf97a40c5a5 | [] | no_license | sangramch/notes-react-flask | bc9e591258d8e0fc73113cb88465b1644e9e6b6b | 15380337c491abdd8111818f331d0a684e237fe4 | refs/heads/master | 2020-06-22T03:28:29.219000 | 2019-07-21T20:47:38 | 2019-07-21T20:47:38 | 197,621,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from flask import Blueprint,session
from flask_restful import Api
from crud_ops import *
from authentication import *
api_bp = Blueprint('api', __name__)
api = Api(api_bp)
api.add_resource(Notes, '/getnotes')
api.add_resource(AddNote,'/addnote')
api.add_resource(UpdateNote,'/updatenote')
api.add_resource(DeleteNote,'... | [
"chsangram99@gmail.com"
] | chsangram99@gmail.com |
33f056391e83925927ed0a1ee7622d51726e6f1b | 8baa00a8c04f64e983532fa4a420c68f490bdaa8 | /devel/lib/python2.7/dist-packages/controller_manager_msgs/srv/__init__.py | 0d59dd77bd5bfaae8a46f01276a690a4799e786e | [] | no_license | samuel-cavalcanti/TIAGo | e52c778f40ba8e03af21ba275b45b7faac5625b3 | 575533f713338b28ee5709279a874c9e374d77bd | refs/heads/master | 2021-04-06T01:32:09.090002 | 2018-03-10T23:51:45 | 2018-03-10T23:51:45 | 124,707,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | /home/samuel/tiago_public_ws/devel/.private/controller_manager_msgs/lib/python2.7/dist-packages/controller_manager_msgs/srv/__init__.py | [
"scavalcanti111@gmail.com"
] | scavalcanti111@gmail.com |
ec4f2122626664f7c6bb439ac540dc86363e818f | c6b9588904ce4cf2ef8d62a8a59e9499800d88f8 | /feedback/reviews/migrations/0002_rename_reivew_text_review_review_text.py | 6c5f8fb60f27947a4a71950c0e1379d9c860ad15 | [] | no_license | patelmukundn/website | f0b258b99f261929a20cfc214f789de8d19c10cf | 0fcd041f8b7e576d6415ed22ff9450f9b618c11c | refs/heads/master | 2023-06-22T23:21:33.654129 | 2021-07-07T12:36:08 | 2021-07-07T12:36:08 | 379,911,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | # Generated by Django 3.2.3 on 2021-07-07 12:31
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('reviews', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='review',
old_name='reivew_text',
... | [
"patelmukundn@gmail.com"
] | patelmukundn@gmail.com |
ef0db917b1bbab79d78938f1bf221265acaaa620 | 2dfa4c7a076d6678a81fddaf7663ad0876642d8b | /scrapy_sample copy 5/scrapy_sample/spiders/tests.py | 73c876e3156e01f44597a68ec456e9cd86a9d7e8 | [] | no_license | sushilovinfun/scrapytests | 26952b1e11c8c431fa202a03fbfa47de7cfd3dd7 | ba47339622bb7d7b94ea2f82c92b13b2d54d2efb | refs/heads/master | 2016-09-05T22:31:14.359426 | 2013-05-07T13:40:31 | 2013-05-07T13:40:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,618 | py | from scrapy.spider import BaseSpider
from scrapy.selector import HtmlXPathSelector
from scrapy.http.request import Request
from scrapy_sample.items import ScrapySampleItem
class ScrapyOrgSpider(BaseSpider):
name = "scrapy"
allowed_domains = ["bushwickdaily.com"]
start_urls = ["http://www.bushwickdaily.com/"]
def ... | [
"m.foxman@gmail.com"
] | m.foxman@gmail.com |
78ceb669efd476b37e638363e08047a53d19a248 | 2ef73026be3e830d4d272c67dc09977383b17a31 | /new_python/kmltools.py | 9c31df4146b23662cadd6a31cfe76ceff807764b | [
"BSD-3-Clause"
] | permissive | rjleveque/new_features_for_v5.7.0 | 8af89593879eb56cfb097773de59f6ca01d8afdd | b939d18c3e6ff58b7f3a1b96ce4f553a3babbda9 | refs/heads/master | 2020-12-09T01:46:22.336135 | 2020-01-26T00:21:06 | 2020-01-26T00:21:06 | 233,155,725 | 0 | 0 | null | 2020-01-11T00:57:09 | 2020-01-11T00:57:08 | null | UTF-8 | Python | false | false | 38,490 | py | r"""
kmltools module: $CLAW/geoclaw/src/python/geoclaw/kmltools.py
Tools to make kml files to overlay on Google Earth.
Note that color is in KML format, BGR with 2 hex digits for each, e.g.
FF0000 is blue, 00FF00 is green, 0000FF is red, 00FF00 is yellow.
Actually it's an 8 hex digit number, where the first two d... | [
"rjl@uw.edu"
] | rjl@uw.edu |
98f34bd285853c9a0f372b57e593f8b104bb22ef | e5981639cd71e6793c3d417946350e7160159020 | /prob102_solution.py | d2ce932083328ea62d183c0c64b4f88e57c2fae4 | [] | no_license | erikkrasner/Project-Euler | 0a5598956c77858262a89de50c05d40ebe6d6083 | 74b750073ad5a3a3f326dc0dff611a087ef15e56 | refs/heads/master | 2021-01-23T11:08:11.646054 | 2011-06-06T20:18:42 | 2011-06-06T20:18:42 | 1,546,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | #!/usr/bin/env python
class Vector(tuple):
def dot(self, other):
return self[0] * other[0] + self[1] * other[1] + self[2] * other[2]
def cross(self, other):
return Vector((self[1] * other[2] - self[2] * other[1],self[0] * other[2] - self[2] * other[0],self[0]* other[1] - self[1] * other[0]))
def __add__(self,ot... | [
"erik.krasnerkarpen@gmail.com"
] | erik.krasnerkarpen@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.