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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19a873e4e3896df4714cebbd65d8a78cd02da923 | 773aef0de494fde01ea5a444b0cfdf57deb88b10 | /puchowebapp/urls.py | 925ea082cf610643223dc59a8d2e26160968a8dc | [] | no_license | gk90731/Pucho_Web | 44c509f92950dc7f35cd5dfd6cf3e42fb6b2d720 | 041239934cd9303120e67d613b2ae90f23c17f20 | refs/heads/master | 2022-12-10T19:47:43.400760 | 2020-04-04T14:28:29 | 2020-04-04T14:28:29 | 253,017,818 | 0 | 0 | null | 2022-12-08T03:59:01 | 2020-04-04T14:26:52 | HTML | UTF-8 | Python | false | false | 383 | py | from django.urls import path,include
from . import views
urlpatterns = [
path('',views.index ,name="home"),
path('what_we_do/',views.what_we_do ,name="what_we_do"),
path('about/',views.about ,name="about"),
path('protfolio/',views.protfolio ,name="protfolio"),
path('gallery/',views.gallery ,name="ga... | [
"gk90731@gmail.com"
] | gk90731@gmail.com |
f1cac7d37380b930cbd540fd2d90c8714420e176 | 1a53448d510a2b348f013eaee020a5075bb99652 | /learning_users/basic_app/migrations/0001_initial.py | 0903addc62c58340f2442566bec4dd7855e0eea8 | [] | no_license | bluedragon0/django-deployment-example | 876085158e95a8d8f2bebcb13561e67a94cb45cb | 1420f5cb623f31f6211b62ebd84f4c44642b6d67 | refs/heads/master | 2021-05-13T23:23:52.839853 | 2018-01-06T18:01:26 | 2018-01-06T18:01:26 | 116,513,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-01-04 12:48
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... | [
"eng.abdodragon653@gmail.com"
] | eng.abdodragon653@gmail.com |
40739e13d7c1efdb70cc5b1f49df8dea03cd6bdb | c71d6c6699c535011569dadb41a7bb7f904793c6 | /inference_top10.py | 4c88faab5ded0ae9927ffddfaafcc955cee5d671 | [] | no_license | Pyligent/Fashion-Image-Text-Multimodal-retrieval | 6a195c0a02264962f5c7cf837cd26d8587e9021b | 64b8d02a788e3fcf50d242408b3303bde9cc7256 | refs/heads/master | 2021-05-25T17:22:19.863240 | 2020-04-07T18:23:44 | 2020-04-07T18:23:44 | 253,841,451 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,566 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
import numpy as np
import torch, torchvision
from tqdm import tqdm as tqdm
import PIL
import skimage.io
import datasets
import img_text_composition_models
from matplotlib.pyplot import figure, imshow, axis
from matplotlib.image import imread
def infer_top10(opt, mo... | [
"noreply@github.com"
] | noreply@github.com |
c0cf0962495662ae563a1a6b07d1ec6c2b8f5619 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/9549174/snippet.py | 312f68f442a31f1ee8acc642c7594905cdeb8ac0 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 3,652 | py | import random
import sys
def print_grid(grid):
print ("\n%s\n" % "+".join([('-' * 4)] * 4)).join(
["|".join(["%4d" % item if item > 0 else " " * 4 for item in line]) for line in grid])
def get_available_cells(grid):
return [(y, x) for y in range(4) for x in range(4) if not grid[y][x]]
def insert_n... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
94cc000a99b3c4cdc30e64ea23c2f5594a106539 | 3c32a798c0a3b4872c69a5ea08ed1132b337c5a9 | /max_api/max_api/utils.py | ea08cc429f08f4caae052f8879746c80da4f1356 | [] | no_license | Flushot/max_test | 21e2bf36db354a092859a9da5b6480c10e98b33a | ec3bd6579580ba6b50c36d2a4ab24b2c92712eaa | refs/heads/master | 2020-09-15T12:54:12.630179 | 2017-06-16T18:43:49 | 2017-06-16T18:43:49 | 94,478,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | from __future__ import absolute_import, division, print_function, unicode_literals
from max_api import cache, config
def transform_artist(artist):
"""
Transform Spotify artist record into MAX artist record.
:param artist: artist record to transform.
:return: transformed artist record (dict).
"""... | [
"flushot@gmail.com"
] | flushot@gmail.com |
7095dbaf424df3e7cbf035214bbf5420c6a56b5a | 9f7e29502e9d964eb83297dd11e7d6d74ccc34ce | /code/bad_class_classifier.py | 70eaae263fa52670426b0ed78a35625f904d3d84 | [] | no_license | ash567/ml_contest | f31ad655312c839ecd6d5cd3d5e7cad514b13661 | d071c50ab32ba6b08bc533a6c3eacd36ea186a96 | refs/heads/master | 2021-01-19T17:26:38.138985 | 2017-08-22T11:56:06 | 2017-08-22T11:56:06 | 101,057,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,343 | py | from get_data import *
import numpy as np
from sklearn import metrics
from sklearn import cross_validation
from sklearn import preprocessing
from sklearn import cross_validation
from sklearn import naive_bayes
# from sklearn.neighbors import NearestCentroid
from sklearn import datasets
from sklearn.semi_supervised im... | [
"ishugarg567@gmail.com"
] | ishugarg567@gmail.com |
ee483b5ae0918e738f3aea8d490f8fcc70edf57a | f179d37ae430e5c338de156a0fcff563532ef12e | /test.py | 1e076c97108bd7293eaf7d9c99f95d11860a4285 | [] | no_license | LLaner/testpycharm | dc20b8b0c253b7fc1a34bef6efb26ace2709357a | eb6d5f34587958402f9fb658ed5bef0df834a864 | refs/heads/master | 2020-03-31T12:52:28.341975 | 2018-10-10T02:26:17 | 2018-10-10T02:26:17 | 152,232,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | class Animal(object):
pass
dog = Animal()
| [
"wangwenqin@jd.com"
] | wangwenqin@jd.com |
d0b8df90a505c6ce70739548052cf57d31f3c545 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/422/usersdata/328/89006/submittedfiles/lecker.py | 646555fee493b246ee37fbf271bb339645a2e877 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | n1=int(input('n1:'))
n2=int(input('n2:'))
n3=int(input('n3:'))
n4=int(input('n4:'))
if n1 >n2 and n4<n3:
print('S')
elif n2 >n1> n3 and n4<n3 :
print('S')
elif n3>n4>n2 and n1<n2:
print('S')
elif n4>n3 :
print('S')
else:
print('N') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
11e4459bd5cac23d61d48b48aa304483301f533e | a442742df11b6781cc61fb91ebf5713d137cd703 | /sine/pendulum.py | cff5d3f8ad610b29c4da30fe60f9b54f36f13007 | [] | no_license | ianflitman/combinatoria | 4291f467907fbff4e9d533969f969488d4d32797 | f29921b6bb404ae1290845560ff85250171f48aa | refs/heads/master | 2016-09-05T19:27:30.728833 | 2015-09-02T20:43:19 | 2015-09-02T20:43:19 | 26,325,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,341 | py | __author__ = 'ian'
# Double pendulum formula translated from the C code at
# http://www.physics.usyd.edu.au/~wheat/dpend_html/solve_dpend.c
from numpy import sin, cos, pi, array
import numpy as np
import matplotlib.pyplot as plt
import scipy.integrate as integrate
import matplotlib.animation as animation
G = 9.8 # a... | [
"ianflitman@gmail.com"
] | ianflitman@gmail.com |
a47b22ebabdf38d2e34e8f8243241fedfd974f97 | fc90d2109094b025fc4432a1a0e4c5de35e61fbe | /wall.py | 9eb52ac76dda92b712ad9bf89133c0be9334db33 | [
"MIT"
] | permissive | mostafa-elhaiany/blobVolleyBallAi | 969980b975f4be9fb7743dbe058a96c2c933816f | c25e6c042d262c7f6c48b8078a4f85b1f482a83c | refs/heads/master | 2022-03-25T14:45:59.999535 | 2020-01-01T19:14:07 | 2020-01-01T19:14:07 | 231,140,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | import pygame
import os
WALL_WIDTH=50
WALL_HEIGHT=250
wallImage= pygame.transform.scale( pygame.image.load( os.path.join( "imgs","wall.png" ) ),(WALL_WIDTH,WALL_HEIGHT) )
class Wall:
def __init__(self,x,y):
self.x=x
self.width=WALL_WIDTH
self.y=y
self.height=WALL_HEIGHT
self... | [
"mostafa_elhaiany@outlook.com"
] | mostafa_elhaiany@outlook.com |
87481f971aab378f0cea55dabcddcedecfdce3f5 | 4c704c60dcd8bba658f4e0cdc85f299c01f2058e | /002/for1.py | 9727ffbd6c0fcc9cbb45013575fc2759408bb8fa | [] | no_license | steveq1/py2016 | acd6c80595637fb3be7f1f3378bbdca8d2dcf8cc | fb9b2708d49790efe03d84315442d7e93a7cc6d6 | refs/heads/master | 2021-01-17T13:00:25.787387 | 2016-07-18T16:28:07 | 2016-07-18T16:28:07 | 63,125,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | for x in range(0,10):
if x >=3:
is_break = False
break
print('x={0}'.format(x))
if is_break:
break
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
91f683f5ae10fa0d17fac5d8d2ed8efc7e5b63a8 | fc1c1e88a191b47f745625688d33555901fd8e9a | /meraki_sdk/models/universal_search_knowledge_base_search_enum.py | eeb90cdd62bbd16c19b2fcca21e1750437564fb5 | [
"MIT",
"Python-2.0"
] | permissive | RaulCatalano/meraki-python-sdk | 9161673cfd715d147e0a6ddb556d9c9913e06580 | 9894089eb013318243ae48869cc5130eb37f80c0 | refs/heads/master | 2022-04-02T08:36:03.907147 | 2020-02-03T19:24:04 | 2020-02-03T19:24:04 | 416,889,849 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | # -*- coding: utf-8 -*-
"""
meraki_sdk
This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ).
"""
class UniversalSearchKnowledgeBaseSearchEnum(object):
"""Implementation of the 'UniversalSearchKnowledgeBaseSearch' enum.
The universal search box always... | [
"api-pm@meraki.com"
] | api-pm@meraki.com |
28434428c5ffef0e0b6e89f84912783421e0ee76 | 2f9891bc21d9f06c1460473f5b3dea4a0f8ac976 | /_emailSystem/delete.py | 53c19e4031cd6e8da19cdcf169a3f317f7b7b70e | [] | no_license | ajays8273/MailingSystem | 59962fb3fa5a0767ae1d19f557ae33d3e0da8935 | 9be6f40e18bd78711cfc5654bbd73b1f6d9e3ff7 | refs/heads/master | 2021-01-10T14:54:05.514278 | 2015-10-01T18:30:38 | 2015-10-01T18:30:38 | 43,513,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | #!/usr/bin/python
import time;
import cgi, cgitb
import os
from os import environ
import Cookie
import hashlib
from sql import *
ldb = sqldb();
unique = os.environ.get('QUERY_STRING')
unique_id = str(unique)[5:]
#print unique_id
values = str(unique_id).split('@');
#print values
to = values[0]
from_ = values[1]
time ... | [
"ajaypal1iitg@gmail.com"
] | ajaypal1iitg@gmail.com |
b3a1e79a93921130ab94d9a78260910679d0c7d1 | 769b34b86f385789cce0e192317d15a847c92bca | /ml_little_elephant/py2/4.7.Benford.py | 510a653276c288120eb5432aa0fd1aef7b86d69b | [] | no_license | Blueyonder00/machine-learning2 | 8c08e6bae5cca54c205bdd7cb6db875b063caffe | cf009003e0c8181dcdadc0ea063e276309d4d642 | refs/heads/master | 2021-07-09T23:11:22.946659 | 2017-10-11T02:33:41 | 2017-10-11T02:33:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,207 | py | # -*- coding:utf-8 -*-
# /usr/bin/python
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
from time import time
from scipy.special import factorial
import math
mpl.rcParams['axes.unicode_minus'] = False
mpl.rcParams['font.sans-serif'] = 'SimHei'
def top1(number, a):
number /= a
wh... | [
"yc2739@nyu.edu"
] | yc2739@nyu.edu |
b23e293d98f34c501f22bf53408b9ce36345b1a5 | 3ee5bf329a2e58eb9f775ec5ee6a329fd3541e36 | /tests/CrawlerProcess/twisted_reactor_poll.py | b2ca046725745e77cc901ca338b3681caa6663e4 | [
"BSD-3-Clause"
] | permissive | scrapy/scrapy | 53bd79e500e2cb7441d33bfd61ba003962d5fb46 | cddb8c15d66831dc4e1bc4b745fcc6c534bb03dc | refs/heads/master | 2023-08-31T04:08:06.193342 | 2023-08-30T18:29:54 | 2023-08-30T18:29:54 | 529,502 | 47,472 | 12,120 | BSD-3-Clause | 2023-09-14T12:08:07 | 2010-02-22T02:01:14 | Python | UTF-8 | Python | false | false | 295 | py | import scrapy
from scrapy.crawler import CrawlerProcess
class PollReactorSpider(scrapy.Spider):
name = "poll_reactor"
process = CrawlerProcess(
settings={
"TWISTED_REACTOR": "twisted.internet.pollreactor.PollReactor",
}
)
process.crawl(PollReactorSpider)
process.start()
| [
"noreply@github.com"
] | noreply@github.com |
d355432f129370a16a64f113b98baaaa5509eb2f | 6162da15532484d6579c45691b2f1779ced5352f | /standardize_data.py | 49e9478c765853dc611fa51e13991a2b647b0c6e | [] | no_license | SyedTanzimAlam/DS_Python | d20dc6e65a2605fecdcff68bf17198dbc5749b72 | 5b339aef6383098f1929e8f00eeb39f1115530ed | refs/heads/master | 2020-03-18T00:31:23.863405 | 2018-06-06T06:38:53 | 2018-06-06T06:38:53 | 134,098,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | """@author: Tanzim"""
# Standardize data (0 mean, 1 stdev)
import pandas as pd
filename = "PUT THE .csv file"
colnames = ['Column names in quotes seperated by comma']
dataset = pd.read_csv(filename, names=colnames).values
# separate array into input and output components
X = dataset[:,0:8] # rows:columns
Y = dataset[:,... | [
"syedtanzimalam88@yahoo.com"
] | syedtanzimalam88@yahoo.com |
d3df2a9c6e7610fa9979b874da473c7708eec89a | b5cff0ace71ed81fc14735fb9ba63792fa6c2baa | /com/zk/demo/pydemo13_range.py | 684555576bc2a65df2eae269cc3c0b574f8cd406 | [] | no_license | xuantian868/pythonDemo | fc7f7d1b2f44de8ce6bbe53a823b96453b40760d | 591c44249e4acbfd437f1e5f9db72e180e7358f9 | refs/heads/master | 2021-03-16T03:31:55.116136 | 2017-06-21T00:52:36 | 2017-06-21T00:52:36 | 91,522,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | # -*- coding: utf-8 -*-
'''
Created on 2017-5-17
列表生成式 列表生成式即List Comprehensions,是Python内置的非常简单却强大的可以用来创建list的生成式
@author: Administrator
'''
L = list(range(10)) #[0,9]
print (L)
L = list(range(1,11)) #[1,10]
print (L)
#但如果要生成[1x1, 2x2, 3x3, ..., 10x10]怎么做?方法一是循环
L = []
for i in range(1,11):
L.append(i*i)
... | [
"897312944@qq.com"
] | 897312944@qq.com |
50e591b01a2f7fd8b0b2c7d4f8d37c4060acdc33 | 528c81bff7c5943c528e0d66f400eb0147d1de85 | /tests/test_user.py | 492040f6a602b9e0b677fc7b1db966b4abf4a345 | [
"MIT"
] | permissive | Akumucollins/Personal-Blog | 83c5ef51d4e3093f3c160d1b933ad5008ad77b48 | 92bd3fcfe167ba979908a4f2f7c747a68ed02e7b | refs/heads/master | 2022-12-25T14:44:22.764149 | 2020-10-01T14:20:51 | 2020-10-01T14:20:51 | 299,817,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | import unittest
from app.models import User,Role
from manage import app
class UserModelTest(unittest.TestCase):
'''
Test class to test behaviours of the User class
Args:
unittest.TestCase : Test case class that helps create test cases
'''
def setUp(self):
'''
Set up method t... | [
"akumucollins@gmail.com"
] | akumucollins@gmail.com |
21cb7af509a12efcab699223841fcdfe4cf32d1c | 881351f9fb0d0ae3a7bfc33ee1bb25cb8847a3c9 | /sample/migrations/0016_product.py | 8d069263625e6b0746e975f08e3638ec128b0b80 | [
"MIT"
] | permissive | ptrck/django-clone | fe2a1cdeb59f19d4c5c987eee15e30c07672cbee | 5c868b65ac6a3e3367595f8aa54abc42ef0d0144 | refs/heads/main | 2023-05-03T14:58:32.220072 | 2021-05-28T15:41:05 | 2021-05-28T15:41:05 | 372,395,918 | 0 | 0 | MIT | 2021-05-31T05:48:11 | 2021-05-31T05:48:10 | null | UTF-8 | Python | false | false | 692 | py | # Generated by Django 3.2.3 on 2021-05-17 12:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("sample", "0015_auto_20210423_0935"),
]
operations = [
migrations.CreateModel(
name="Product",
fields=[
... | [
"noreply@github.com"
] | noreply@github.com |
fd11696f5320f7e94e1d3b3c9d0c3b398a6bee0b | 7a90f09b9db357430c14eb6d9186e0d472a93520 | /pick_up_oordinate.py | 51b9bff074ff98ed01d0d97cd03511c491aa3709 | [] | no_license | zhangguo7/pick_up_coordinates | b68758bce2308888ef90472010bc63b86ef6e78e | 6996da6d6039b3597b16e8ad208846c3f7a1fe35 | refs/heads/master | 2021-01-21T07:04:18.674840 | 2017-03-07T01:01:00 | 2017-03-07T01:01:00 | 82,878,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,013 | py | # -*- coding: UTF-8 -*-
import MySQLdb
import requests
import time
from numpy.random import chisquare
class PickUpCoordinates(object):
"""拾取经纬度坐标
从数据库中获取没有经纬度的样本
传递到百度api获取经纬度
将获取结果回写数据库
"""
def __init__(self, conn,ak):
self.conn = conn
self.ak = ak
def pick_ll_main(self)... | [
"zhangguo7@aliyun.com"
] | zhangguo7@aliyun.com |
08e64277223c06c607a305f6816878e91c7112f9 | 3b6b76aae93eb8a2c738a1364e923d3bad20e0a6 | /articles/wsgi-intro/twill-wsgi-example.py | c8d9450fb8f6a4c7610666f7a9687e7e5a2e8ccb | [] | no_license | ctb/ivory.idyll.org | 24e4a0f67fbbde399118aff3c27a03bac304aa8f | 88df5f33361e6e13eda248ee55f1e4e460b998d9 | refs/heads/master | 2020-04-10T10:42:00.111811 | 2018-12-08T19:54:05 | 2018-12-08T19:54:05 | 160,973,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | #! /usr/bin/env python
import twill
def simple_app(environ, start_response):
status = '200 OK'
response_headers = [('Content-type','text/plain')]
start_response(status, response_headers)
return ['Hello world!\n']
if __name__ == '__main__':
print '*** installing WSGI intercept hook ***\n'
twill.add_w... | [
"titus@idyll.org"
] | titus@idyll.org |
f59015df0fd96a8dc9105e2b9aec3f31d216ca8f | df7b40e95718ac0f6071a0ba571b42efc81cf6de | /configs/dnlnet/dnl_r50-d8_512x512_160k_ade20k.py | 5305689d09b944f6e37aa85567ce3f29fc6974a7 | [
"Apache-2.0"
] | permissive | shinianzhihou/ChangeDetection | 87fa2c498248e6124aeefb8f0ee8154bda36deee | 354e71234bef38b6e142b6ba02f23db958582844 | refs/heads/master | 2023-01-23T20:42:31.017006 | 2023-01-09T11:37:24 | 2023-01-09T11:37:24 | 218,001,748 | 162 | 29 | Apache-2.0 | 2022-11-03T04:11:00 | 2019-10-28T08:41:54 | Python | UTF-8 | Python | false | false | 249 | py | _base_ = [
'../_base_/models/dnl_r50-d8.py', '../_base_/datasets/ade20k.py',
'../_base_/default_runtime.py', '../_base_/schedules/schedule_160k.py'
]
model = dict(
decode_head=dict(num_classes=150), auxiliary_head=dict(num_classes=150))
| [
"1178396201@qq.com"
] | 1178396201@qq.com |
9cd9159062c4df5c69d0f0a0021668b9d1cef742 | a5c550725c0707b6ad62f2015f7979aa0eadd1d0 | /mysite/blogging/urls.py | 09ca2df59882e5bcf36991febd32983e120e68af | [] | no_license | colephalen/mysite01 | 313445d606446503243c96a111b0919e44208661 | f71be9c01d7903976972faf43d4e8fe6e26215b6 | refs/heads/master | 2020-09-06T08:18:25.235983 | 2019-11-08T02:47:04 | 2019-11-08T02:47:04 | 220,373,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | # blogging/urls
from django.urls import path
from blogging.views import list_view, detail_view
urlpatterns = [
path('', list_view, name="post_index"),
path('posts/<int:post_id>/', detail_view, name="post_detail"),
] | [
"colephalen@gmail.com"
] | colephalen@gmail.com |
5f5b4e4172a9aafe394060657cf1b1bd9a055427 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5631572862566400_0/Python/ugo/c.py | fc210345694d8b61a3644358a93468fbce72a716 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,899 | py |
def get_candidates(bffs):
ret = []
for i in range(len(bffs)):
for j in range(i+1, len(bffs)):
if bffs[i] == j and bffs[j] == i:
ret.append((i, j))
return ret
def longest(n, dontgo, edges):
print 'longest', n, dontgo
ret = 1
for nb in edges[n]:
if nb != dontgo:
ret = max(ret, longest(nb, dontgo, ed... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
5de35e142d78a609467672c03e9ce01600cf7b4f | 60fda86d4df5a209e5a1503f45e9abfbbbcd5ed9 | /NestedRouters2/NestedRouters2/settings.py | 2e6064fe84d1edf3920168dacd9445e33b214d99 | [] | no_license | jkvishwanath/django_conceptwise_samples | ee8554ffe3c1c1342906eec18850f2ec4f7a5e6e | 017a0ddb14aaf293b8792220bd87b8d7107ef8c2 | refs/heads/master | 2022-11-07T16:57:37.735472 | 2020-06-18T10:26:16 | 2020-06-18T10:26:16 | 268,430,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,225 | py | """
Django settings for NestedRouters2 project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
impor... | [
"jkashivishwanath5@gmail.com"
] | jkashivishwanath5@gmail.com |
a5a86bbd328a499a96f39f3d75c3be98c09f07af | 3eeb484cff8e36f5588e887e7d6f22538b0d8c98 | /leetcode/editor/cn/[69]x 的平方根.py | 8deb95193f4ee32ca6ebd12efcbb9a59cd422357 | [] | no_license | chendingyan/My-Leetcode | 37fad8ba989280b416bbc30fb1de57269be6b0ea | 7bcba42556475f56fad995b97a37b98f4981da8c | refs/heads/master | 2022-11-04T15:10:57.787717 | 2022-09-23T06:47:15 | 2022-09-23T06:47:15 | 178,884,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | # 实现 int sqrt(int x) 函数。
#
# 计算并返回 x 的平方根,其中 x 是非负整数。
#
# 由于返回类型是整数,结果只保留整数的部分,小数部分将被舍去。
#
# 示例 1:
#
# 输入: 4
# 输出: 2
#
#
# 示例 2:
#
# 输入: 8
# 输出: 2
# 说明: 8 的平方根是 2.82842...,
# 由于返回类型是整数,小数部分将被舍去。
#
# Related Topics 数学 二分查找
# 👍 722 👎 0
# leetcode submit region begin(Prohibit modification... | [
"dingyan.chen96@gmail.com"
] | dingyan.chen96@gmail.com |
dc3863c80f79d6451076cad50b43b6d12da5df23 | 9a0bd4288a4785562ee912173869bf3956ab2fc4 | /Code/resources/proxyfinder.py | 48d2853182afe2010f9c50d2c04adcc28ee8cd3b | [] | no_license | shrey-agarwal/question-quality-analyser | 0e9c017f7a9cbc2006ea39d6ee6055c2b772fb63 | ae24295fc82762fc274c6cbcc354bb4a44b25c00 | refs/heads/master | 2021-04-27T12:11:23.344427 | 2018-02-23T04:44:44 | 2018-02-23T04:44:44 | 122,574,189 | 0 | 0 | null | 2018-02-23T04:41:24 | 2018-02-23T04:41:24 | null | UTF-8 | Python | false | false | 1,395 | py | # Invocation: python3 proxy_finder.py 1000 500 (mines 1000 http and 500 https proxies)
import asyncio
import json
import re
import sys
from proxybroker import Broker
def __get_proxies(protocol, limit):
proxy_list = []
async def save(proxies):
while True:
proxy = await proxies.get()
... | [
"mohit.surana95@gmail.com"
] | mohit.surana95@gmail.com |
87e82915ecd4164bd64f8577b7cddd41cc5493fa | b90ee7486ee91e6ee11a628bf961f463e2858d16 | /RES_Scripts/LSS_RankScript_WestGalvestonBay.py | 8d0d18a7737722c7c8a6b293d590ca852a56902a | [] | no_license | sjtouzel/UMCodeShare | 0eaff14703a7abd843d8da1af6465fa600cd9573 | 09a026bf98acdf57d49848ea15886074022debca | refs/heads/master | 2023-02-04T15:52:04.850643 | 2023-01-31T23:20:44 | 2023-01-31T23:20:44 | 129,941,069 | 0 | 1 | null | 2018-04-17T21:00:01 | 2018-04-17T17:26:52 | Python | UTF-8 | Python | false | false | 11,171 | py | import arcpy
import time
"""
========================================================================
LSS_RankScript_Alabama.py
========================================================================
Author: Joe Touzel
========================================================================
Date Modifier Descriptio... | [
"37873145+sjtouzel@users.noreply.github.com"
] | 37873145+sjtouzel@users.noreply.github.com |
59252af12c8239b80dc9d1744afb5a51b53726b7 | eddc1543ea682d348420f3fd1b4396348e82efc2 | /back-end/FriendManagement/FriendManagement/Management/migrations/0002_auto_20200609_1035.py | cc78f01cc889b8b789bbce074cf715d1aa8347d1 | [] | no_license | ChinhPV1293/StudyReactJS | 68a7375901168992e2580dc9d70d3b8241b5e4cc | f0fe6c718dc5dbb3d50504d9c65ca969ae03acf8 | refs/heads/master | 2021-03-20T09:48:49.533232 | 2020-06-23T08:02:30 | 2020-06-23T08:02:30 | 247,199,529 | 0 | 1 | null | 2021-01-06T04:30:33 | 2020-03-14T02:44:24 | JavaScript | UTF-8 | Python | false | false | 1,475 | py | # Generated by Django 3.0.4 on 2020-06-09 03:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Management', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='FriendInfomation',
fields=[
... | [
"chinhpv1293@gmail.com"
] | chinhpv1293@gmail.com |
23688473d73c3ad4e76facc9d7ed5015fc9eea25 | 00b93e4359464cc8f6c8fa634d6351208a668eeb | /parismaps.py | 215fe26ddc600f9f16474cac27bf469743e16ff0 | [
"MIT"
] | permissive | davidferguson/mactutor-converter | ebab1b20fcb1bfda0f2b0b48c5da75d32c8a4dfa | 288fd7934f6a9c0185e7d8c07ea81bf6539ff08c | refs/heads/master | 2021-09-08T07:26:51.071104 | 2021-09-05T12:51:09 | 2021-09-05T12:51:09 | 191,822,213 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | import json
import glob
import os
import shutil
import regex as re
import lektor.metaformat
DATASHEET_DIR = '/Users/david/Documents/MacTutor/actual-work/datasheets/'
CONTENT_DIR = '/Users/david/Documents/MacTutor/actual-work/dev/mathshistory-site/content/'
SERVER_FILES = '/Users/david/Documents/MacTutor/actual-work/fr... | [
"davidferguson@users.noreply.github.com"
] | davidferguson@users.noreply.github.com |
7cc7c5fa0da86735bf9a7b0efcdbfe8eb1e7cd4c | 6f8fb8c7a7dd06be1d05a8dde3106daa46a27d6e | /Missing Multipliers.py | 5783d32638c6e197a53830f31aba46ee432530a3 | [] | no_license | laughtLOOL/GrokLearning | b2d6147b3deb32ed8f0851ccdb165cfd60943649 | cee864d170dc86931b2f6ed0f193ec65a806a444 | refs/heads/master | 2023-03-27T00:00:04.290067 | 2021-03-13T10:45:15 | 2021-03-13T10:45:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | times, step = int(input("Times table: ")), int(input("Step: "))
curstep = 3
while 3 <= curstep <= 12:
print(f"{times} x [ ] = {times * curstep}")
curstep += step
| [
"lkc364636722@gmail.com"
] | lkc364636722@gmail.com |
59673ace5224787385a1a946cb7ea56655ce1dee | 35e731c868d29f2a609b55de8a72656b6b60ecd0 | /boa.py | f773bf4a9a64d4632a9eb5e918190ddd62d45c41 | [] | no_license | nobody4678/BOA | 63590b236e2b507a2732a57a5d86959cbe06397f | 961821071a16b495a31aeca13b806016e7631755 | refs/heads/main | 2023-01-20T14:09:41.903227 | 2020-11-24T09:28:23 | 2020-11-24T09:28:23 | 315,557,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,112 | py | import sys
sys.path.append('.')
import os
import cv2
import copy
import time
import torch
import random
import joblib
import argparse
import numpy as np
import os.path as osp
import torch.nn as nn
from tqdm import tqdm
import learn2learn as l2l
from torch.utils.data import DataLoader
from torch.utils.tensorboard impor... | [
"noreply@github.com"
] | noreply@github.com |
3e103b2a850638d5d07d6e6ac73cc1650f6650cf | 82e74e1fccf0c83f45063bd781e768abaa9a01c0 | /credentials.py | d9be023de8e6fdc1bedba57db1025ef54f095754 | [
"Apache-2.0"
] | permissive | msgpo/amzn-music-skill | c966c29fad5ea8abdc7b61b732474fbacca513e2 | 418e5ddc37730dbb7fcd83cd38898459b1bb4827 | refs/heads/master | 2022-02-19T12:46:23.791937 | 2019-09-17T08:29:28 | 2019-09-17T08:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | #!/usr/bin/env python
import base64
import pickle
from getpass import getpass
try:
input = raw_input
except NameError:
pass
e = base64.b64encode(str(input('Login/Email: ')).encode('ascii'))
p = base64.b64encode(getpass('Password (input is hidden): ').encode('ascii'))
credentials = {'e': e, 'p': p}
with open... | [
"dkreutz@t-online.de"
] | dkreutz@t-online.de |
bd7f88508e67dbfcf5ecffbf0562f7a05eb1619b | e49a07ad215172e9c82cb418b10371bf0ce1c0f7 | /第1章 python基础/Python基础08/10-异常传递.py | a53af9d709038f15ce320e9490696f4377f4e232 | [] | no_license | taogangshow/python_Code | 829c25a7e32ead388c8b3ffa763cb9cf587bfd7b | 4b3d6992ec407d6069f3187ca7e402a14d863fff | refs/heads/master | 2022-12-16T01:26:17.569230 | 2018-11-16T10:07:59 | 2018-11-16T10:07:59 | 157,832,985 | 0 | 1 | null | 2022-11-25T09:55:32 | 2018-11-16T08:00:13 | Python | UTF-8 | Python | false | false | 405 | py | def test1():
print("---test1-1---")
print(num)
print("---test1-2---")
def test2():
print("---test2-1---")
test1()
print("---test2-2---")
def test3():
try:
print("---test3-1---")
test1()
print("---test3-2---")
except Exception as result:
print("捕获到了异常,信... | [
"cdtaogang@163.com"
] | cdtaogang@163.com |
a29d2ab349ac923e658f543633ecbc7e9198ccb7 | df8c8fe6349cb649f941835944c4cc69beb9ae00 | /chapter 6/bookmarks/actions/models.py | 9d7ff1981b98a1c63cfc0d4560097f3707786e2c | [] | no_license | ravikings/myshop | b1ea8605158939be9bcca6f1c3db97324149b135 | f56c2573dcef15dfe95c6aa271c71125a12cbae8 | refs/heads/master | 2023-01-19T09:00:46.891087 | 2020-11-23T23:01:57 | 2020-11-23T23:01:57 | 315,460,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
# Create your models here.
class Action(models.Model):
user = models.ForeignKey('auth.User',
related_name='actions',
... | [
"39674414+ravikings@users.noreply.github.com"
] | 39674414+ravikings@users.noreply.github.com |
dc5bd990874448e61a81eef868a5fb3c6c5ba6db | 600ef5fed15109bd894d3e8c7fe7956bd9278594 | /SeleniumWebDriverTests/test_edit_allele.py | a3d661a49e8e07422d73b983e9c0ec205aefaade | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | phac-nml/ngstar | f7bc702e6a311bf81a0391776e808ba9ac70b949 | 34f9c8d4d40fa0e9836071fabab19114f0ac399a | refs/heads/master | 2021-01-09T05:27:09.285010 | 2017-02-02T21:54:11 | 2017-02-02T21:54:11 | 80,771,682 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,354 | py | import constants
import unittest
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.webdriver.support.wait import WebDriverWait
CLASS_NAME = "TestCaseEditAllele"
class TestCaseEditAllele(unittest.TestCase):
DRIVER=None
... | [
"sukhdeep.sidhu@phac-aspc.gc.ca"
] | sukhdeep.sidhu@phac-aspc.gc.ca |
15424b23819be3293d71f6569139a936467bd8ca | d1ae4f79e505d5bb3a8401017c343260d1582ab9 | /mgmt/migrations/0017_auto_20210708_1225.py | 6ca91b7b1a01ed47bfe9a26a1f9bd82fd69ad25b | [
"CC0-1.0"
] | permissive | AndreDrDre/AviationStockManagement | af0edd438503f90f935fc38e3f18e8296a2a6ca3 | 8331edbacc936919ede04da12d7e529e5e38be1c | refs/heads/master | 2023-07-03T22:46:16.832584 | 2021-08-08T11:12:40 | 2021-08-08T11:28:37 | 392,350,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | # Generated by Django 3.1.7 on 2021-07-08 12:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mgmt', '0016_auto_20210708_0725'),
]
operations = [
migrations.AddField(
model_name='parts',
name='breadth',
... | [
"originsgrand@gmail.com"
] | originsgrand@gmail.com |
b3cb46437c638706e438609c9ce6a94d3b03e0c0 | fa1d763e8ca852048de2c344d6642c8655d91f8a | /EnsambleTraining.py | 518eb9d6dbcc41e015e24045122eaabd67168b67 | [
"MIT"
] | permissive | wuhao1938/RadiativeTransportPinns | 9f389dc6af4354c033bfc8296db5acbfdef58ef0 | 11a9ecd0086d8fc87c634e0a87be144988a112e5 | refs/heads/master | 2023-01-03T12:29:42.337325 | 2020-11-03T09:26:40 | 2020-11-03T09:26:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,472 | py | import itertools
from ImportFile import *
rs = 0
N_coll = int(sys.argv[1])
N_u = int(sys.argv[2])
N_int = int(sys.argv[3])
n_object = 0
ob = "None"
folder_name = sys.argv[4]
point = "sobol"
validation_size = 0.0
network_properties = {
"hidden_layers": [8, 12, 16, 20],
"neurons": [20, 24, 28, 32, ... | [
"roberto.molinaro@sam.math.ethz.ch"
] | roberto.molinaro@sam.math.ethz.ch |
def00a2abdbb12ba52b231da7124685b93516b93 | 23ef81cb94356fd321c07f06dab2877e04131b4d | /yiyuanduobao_shop/migrations/0058_item_proxy_sale_qr_code.py | da3d99780c61df4a84d1c939d53fdc4bb41fd205 | [] | no_license | dongshaohui/one_dolor | 0c688787d8cee42957bec087b74b5ea353cc80fc | 13dea458568152a3913c6f70ecd9a7e1f6e9514e | refs/heads/master | 2020-07-03T03:12:22.409542 | 2016-11-21T08:15:06 | 2016-11-21T08:15:06 | 74,202,604 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('yiyuanduobao_shop', '0057_item_winner_customer'),
]
operations = [
migrations.AddField(
model_name='item',
... | [
"405989455@qq.com"
] | 405989455@qq.com |
27c911a05a5069e2b072829435f0c67bc36b9c08 | 143dcd5d562a2016d77fb39f8996babd66bc2ab5 | /PokerLib/Deck.py | 8480434bb5cec6f3769adb998b186d731a41b263 | [] | no_license | EmotionalPoker/MAS_SimulationOfEmotions | 320c4888a0f9f5df62f4e7b688980feaab23d8ac | 4ab7003f0103777fac7bbdb09ec1b3fb50bc4459 | refs/heads/master | 2020-07-26T09:44:01.412436 | 2020-01-14T21:49:31 | 2020-01-14T21:49:31 | 208,606,980 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | # -*- coding: utf-8 -*-
"""
Created on January 1 2020
@author: Hari Vidharth
"""
from PokerLib.Card import *
import random
class Deck:
"""
Deck class builds the deck of cards consisting of card objects in straight
and/or shuffle format.
"""
def __init__(self):
self.cards =... | [
"noreply@github.com"
] | noreply@github.com |
67062b58ee7a9698f0a4144b3ffecee350a032fe | 735f7827a79adebd97b44db5149d5f35dadf2d1b | /backend/world/settings.py | 0fa4392578891a1071617f48fd83edc33c81241d | [] | no_license | letsgogeeky/django-react-world-navigation | b920347290694fb686615e93f18afda4763d0ccb | bccb0458a3432049d67fc611de6af2c0e84de9aa | refs/heads/master | 2023-01-29T14:18:13.203711 | 2021-05-09T16:35:35 | 2021-05-09T16:35:35 | 249,480,773 | 1 | 0 | null | 2023-01-05T17:00:15 | 2020-03-23T16:13:47 | PLpgSQL | UTF-8 | Python | false | false | 3,751 | py | """
Django settings for world project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# B... | [
"ramy_master99@hotmail.com"
] | ramy_master99@hotmail.com |
991bf09321be69f3c8fa52619262fea573f8454b | 1ec6fe8811cb2b21b68eca7d75ac6b3c88e0f8ba | /Week_07/G20200447010071/sinaComments/sinaComments/settings.py | 73e937a6840e6729277c585f95ea5eb7da5430a8 | [] | no_license | hopeqpy/Python000-class01 | 5f0aa8f3aaba7da97819ec073fd9d16c0cd902e8 | 73b8f8606c5cce0ea8982aed3705ad4cfc70cc70 | refs/heads/master | 2022-06-26T13:36:58.766271 | 2020-05-07T07:24:24 | 2020-05-07T07:24:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,284 | py | # -*- coding: utf-8 -*-
# Scrapy settings for sinaComments project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/lates... | [
"musiteam@musiiot.top"
] | musiteam@musiiot.top |
ec1ef633d00e9670270fe396e2434e18e0fc41ea | 3763802d04372963fdef84f1bd699f08d1a0fc62 | /dm_console.py | a5e0529f4fda4abf7e9fea69abb40fcf4086b73d | [] | no_license | AidanHelmboldTBD/Data_Mining | 4d86ee32abc5c53d54fe9bc1cf370712535bee09 | 39d3d731c6a7379fdd1ed4c19b3183cdda4e20be | refs/heads/master | 2021-01-19T23:26:22.663155 | 2017-04-24T09:07:26 | 2017-04-24T09:07:26 | 88,985,360 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,931 | py | from dm import g_barplot, g_histogram, g_scatter, g_chi2, g_kde
import argparse
import sys
import logging
from pyspark import SparkContext, SQLContext, SparkConf, HiveContext
import pyspark.sql.functions as F
import pyspark.sql.types as T
from pyspark.sql.types import StructType, StructField
from itertools import co... | [
"helmboa@telkom.co.za"
] | helmboa@telkom.co.za |
e7e3f19d55f167659b9939895e3c7c8b47ad52da | c6818c06aacb1eca1fffa8bbc51b6f3aac25c177 | /acre/asgi.py | 7a5ee240ac0ce6bd5657ed8a2e6ac3c7e5f609cc | [] | no_license | Acon94/ACRE | 2d0769780c9f81eba05085ffd8b0af225666d6de | 73622a6dc4ba0f30e8d3e90b02d23c8efd14a5e1 | refs/heads/master | 2022-08-02T02:07:53.004308 | 2020-05-29T15:25:50 | 2020-05-29T15:25:50 | 267,840,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
ASGI config for acre project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"andrew@Andrews-MacBook-Pro.local"
] | andrew@Andrews-MacBook-Pro.local |
ad415f804534293782b6644669084ae9324a02ec | c3b7a8fe4bc39002b30cce9202b9c6a4e7b8a921 | /twitter_bot/scripts/check_followback.py | 557971d243c1832db6be390c24a6a559489ba42c | [
"MIT"
] | permissive | Phosphorus-M/Awesome-twitter-bot | a90489bb1e3b6bcaf053f8e8c137aa038bf8bf0f | 483d26b62b46816b741f99c7641beb5cc8f000a0 | refs/heads/main | 2023-08-11T03:49:05.839801 | 2021-09-14T07:25:30 | 2021-09-14T07:25:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | import json
from django.conf import settings
from twitter_data.models import User, Feature
from twitter_data.twitter_bot import TwitterBot
from datetime import datetime, timedelta
def run():
feature_config = Feature.get_feature("TWITTER_CONFIG")
sleep_time = feature_config.get("sleep_time", 1)
feature_co... | [
"hectorandrespp@gmail.com"
] | hectorandrespp@gmail.com |
fc4f46a7c5fcfbcef821e98ce66427ec860721bc | 152f163da48e75ae1175621020771b1d2f1e5167 | /c_integration_example/mylib.py | 610958cfd640e9ab4aeec7ea362b82c27990be7b | [] | no_license | jerryhan88/BNC_py | a674d880f30587d157fc120a3abdf6da3e806c7e | 5cab88648f8d51a06baae89677d2ad5eaa3580d4 | refs/heads/master | 2020-07-12T13:01:32.605623 | 2020-02-19T05:54:33 | 2020-02-19T05:54:33 | 204,825,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | import sys, os
import os.path as opath
import ctypes, ctypes.util
mylibC_path = './mylib.c'
mylibO_path = './mylib.o'
mylibD_path = './mylib.dylib'
def create_dylib():
os.system('clang -c -fPIC %s -o %s' % (mylibC_path, mylibO_path))
os.system('clang -shared %s -o %s' % (mylibO_path, mylibD_path))
os.syst... | [
"chungkyun.han@gmail.com"
] | chungkyun.han@gmail.com |
bc770a4a78f1a3e117c15af7a3ea4c7b4937bf1e | 63b0fed007d152fe5e96640b844081c07ca20a11 | /ABC/ABC200~ABC299/ABC291/c.py | 468e2709c60f01b71d7144cca09a88563e9ae6c3 | [] | no_license | Nikkuniku/AtcoderProgramming | 8ff54541c8e65d0c93ce42f3a98aec061adf2f05 | fbaf7b40084c52e35c803b6b03346f2a06fb5367 | refs/heads/master | 2023-08-21T10:20:43.520468 | 2023-08-12T09:53:07 | 2023-08-12T09:53:07 | 254,373,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | from collections import defaultdict
N = int(input())
S = input()
d = defaultdict(lambda: False)
d[(0, 0)] = True
nx, ny = 0, 0
ans = 'No'
for i in range(N):
s = S[i]
if s == 'R':
nx += 1
elif s == 'L':
nx -= 1
elif s == 'U':
ny += 1
else:
ny -= 1
if d[(nx, ny)]:
... | [
"ymdysk911@gmail.com"
] | ymdysk911@gmail.com |
bf0641beb73b4e0752e6d0ccef6dbc7a58ac5397 | e2fc43e14c90bb853d67a92bdebf772231ec4c9f | /app/helpers.py | 447f25b23094433d5278368885593f31f58e5701 | [] | no_license | aorticweb/hatchway-backend | fcad4b9d579e01bd68456e0153bbf8a4b003bb15 | 439256ce0b18c04b0e27fe22a444a89d223292c8 | refs/heads/master | 2023-04-29T18:56:16.479272 | 2021-05-11T18:05:24 | 2021-05-11T18:05:24 | 354,562,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,465 | py | import itertools
from typing import List
import ray
import requests
import requests_cache
from app import config
if not ray.is_initialized():
ray.init()
requests_cache.install_cache("hatchway_cache", backend="sqlite", expire_after=180)
class Source:
"""
Wrapper around url calls to data source
"""
... | [
"williamkamgne@gmail.com"
] | williamkamgne@gmail.com |
b4e0bf30738df3d12eacd8276d511194095699dd | 0a544baa0c37d53714dcbdeb1bef602ad2899d98 | /pySOT/experimental_design.py | 940ab34b8e8e42085e2110ec012d99f34f2dfb85 | [
"BSD-3-Clause"
] | permissive | evayang234/pySOT | ace424171d6af06ad3a085bc652b93a1e954d06b | d0899e82a386415ffa2550ea0a56c5de7bffefb1 | refs/heads/master | 2020-12-28T14:48:35.310695 | 2015-10-29T03:49:29 | 2015-10-29T03:49:29 | 45,196,595 | 0 | 0 | null | 2015-10-29T16:40:11 | 2015-10-29T16:40:11 | null | UTF-8 | Python | false | false | 3,758 | py | """
.. module:: experimental_design
:synopsis: Methods for generating an experimental design.
.. moduleauthor:: David Eriksson <dme65@cornell.edu>,
Yi Shen <ys623@cornell.edu>
:Module: experimental_design
:Author: David Eriksson <dme65@cornell.edu>,
Yi Shen <ys623@cornell.edu>
"""
import numpy ... | [
"dme65@cornell.edu"
] | dme65@cornell.edu |
f4c50198426a22de4657d97af5065df4920d777b | 4f111dfacab0acc93900e7746538f85e0b3d8d78 | /day3/01关系运算符.py | 7daa883448340f101de2cd7477971865e50ce034 | [] | no_license | ljxproject/basecode | 5541f25cfe90d5fad26eac0b6e72802aa1fad1f4 | 485e4b41593839bfc61e67261247fb88dc80cc1d | refs/heads/master | 2020-03-26T16:16:26.422617 | 2018-08-17T08:05:11 | 2018-08-17T08:05:11 | 145,091,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | '''
关系元算符与关系表达式
关系运算符有:
> < == != >= <=
格式: 表达式1 关系运算符 表达式2
功能: 运算表达式1与表达式2的值,
值: 如果关系成立,则返回True,否则False
'''
num1 = 2
num2 = 5
mum3 = num1 != num2
print(mum3)
print(num1 != num2)
| [
"403496369@qq.com"
] | 403496369@qq.com |
8e4afde0ad3d7cdf9500900a9d52568869e8ccec | b9d7194bb50a01e7e56d19ba2f3c048084af54b5 | /_OLD_/bottle.py | 8171ee3221df8251f6911cd57ccc179a1fc2edcf | [] | no_license | BernardoGO/TCC---2017 | 099e72d788974446b58fe5f409a2df25e3613cc5 | 75025e095956624470c22d8f3118441d5c28bdd7 | refs/heads/master | 2018-12-04T10:53:07.809161 | 2018-09-06T04:59:30 | 2018-09-06T04:59:30 | 64,803,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,571 | py | import numpy as np
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers import Dropout, Flatten, Dense
from keras import applications
from keras.models import save_model, load_model
# dimensions of our images.
img_width, img_height = 150, 150
top_model_weights... | [
"bernardo.godinho.oliveira@gmail.com"
] | bernardo.godinho.oliveira@gmail.com |
204577af9b5d3ab3153806385f5886097d1e9c0c | 0753b80a7c3289c6239764b75704cd11d070ff39 | /python/hand_write.py | d10d2db56506a951bbcdf31ced5f87f23eadf167 | [] | no_license | cristianfreire/workspace | de4b7b485cf8a4f0af60094e30dcd4c6727a757f | 3acc8aef96235fcc1a1b730cd785821a0b751248 | refs/heads/master | 2023-08-23T00:57:43.011187 | 2021-10-30T19:23:07 | 2021-10-30T19:23:07 | 422,774,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | from pywhatkit.chr_to_handwriting import text_to_handwriting
texto = input('enter the text here: ')
#pywhatkit.text_to_handwriting(text, rgb=[0,255,0])
| [
"cristianpassos51@gmail.com"
] | cristianpassos51@gmail.com |
0b231fcc73526c6bd8bb5185239f91dd9e68d7cf | 13edd8f1bc3b86fd881f85fbeafe94811392d7fc | /fourth_module/多线程多进程/new/多线程/01 开启线程的两种方式.py | cbdb541d1193f3e8f003cc5d85896cfbaa111812 | [] | no_license | ryan-yang-2049/oldboy_python_study | f4c90c9d8aac499e1d810a797ab368217f664bb1 | 6e1ab7f217d9bf9aa7801266dee7ab4d7a602b9f | refs/heads/master | 2022-07-22T23:49:28.520668 | 2019-06-11T13:26:25 | 2019-06-11T13:26:25 | 129,877,980 | 0 | 1 | null | 2022-07-18T17:12:54 | 2018-04-17T09:12:48 | HTML | UTF-8 | Python | false | false | 643 | py | # -*- coding: utf-8 -*-
"""
__title__ = '01 开启线程的两种方式.py'
__author__ = 'yangyang'
__mtime__ = '2018.02.07'
"""
from threading import Thread
import os,time
# def task(name):
# print("%s is running,PID: %s" % (name,os.getpid()))
#
# if __name__ == '__main__':
# p = Thread(target=task,args=('ryan',))
# p.start()
# pri... | [
"11066986@qq.com"
] | 11066986@qq.com |
26e94e33c7d3dda0924333d6df8e6e72572d6ac1 | a842f224d1b0c2e74b2043e8d03f49e3298086df | /grep_scales.py | 2b83cfe14e04d138314104c9309a15a7056c7411 | [] | no_license | ronsengupta/grep-scales | 68f8037171cdfd3f43c02d3d77f4f633e4196856 | 5740902b4694ae8d1cdee04e213f41c3d99bc428 | refs/heads/master | 2020-06-12T23:00:48.071262 | 2016-04-10T08:48:04 | 2016-04-10T08:48:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,232 | py | from shutit_module import ShutItModule
class grep_scales(ShutItModule):
def build(self, shutit):
afile = r'''THIS LINE IS THE 1ST UPPER CASE LINE IN THIS FILE.
this line is the 1st lower case line in this file.
This Line Has All Its First Character Of The Word With Upper Case.
Two lines above this line is empty.
... | [
"ian.miell@gmail.com"
] | ian.miell@gmail.com |
26e48b27df9cabe1bcb4e3351346367719f93918 | f5881267633bf6cc24752c397d4a598ee9015883 | /legendre.py | e2c06acb81c7694f366f6b5dcddd93db332b8651 | [] | no_license | Deveshnie/Tutorials | a27bda3abed0f10f305b83f36412b9ee1d643afc | ce0c2cb8060d46f0258d262266a83f03ae356149 | refs/heads/master | 2021-01-21T04:35:30.068446 | 2016-06-21T11:19:39 | 2016-06-21T11:19:39 | 55,842,881 | 0 | 0 | null | 2016-04-09T14:30:50 | 2016-04-09T12:21:41 | null | UTF-8 | Python | false | false | 738 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 15 14:17:20 2016
@author: Deveshnie
"""
import numpy as np
def get_legendre(x,order):
mat=np.zeros([x.size,order])
mat[:,0]=1.0
if order>1:
mat[:,1]=x
for i in range(1,order-1):
mat[:,i+1]=((2.0*i+1)*x*mat[:,i]-i*mat[:,... | [
"noreply@github.com"
] | noreply@github.com |
d48b8afce0c65c253461d749a9f39c508502e23b | cbf70512796ba1bbf0c89897691e3ab107399c79 | /mmpose/datasets/datasets/mesh/mosh_dataset.py | 40692575a5b6fbf797c5f4a3b9fa1890d3478ab4 | [
"Apache-2.0"
] | permissive | yaochaorui/mmpose | 0294f39a596d091746a9220eff0c473bfdc5c875 | 056d8db55373e933a971eadc66f92f1d1e773332 | refs/heads/master | 2022-12-26T04:33:26.296987 | 2020-10-04T14:24:29 | 2020-10-04T14:24:29 | 296,587,521 | 0 | 0 | Apache-2.0 | 2020-09-18T10:20:06 | 2020-09-18T10:20:05 | null | UTF-8 | Python | false | false | 1,961 | py | import copy as cp
from abc import ABCMeta
import numpy as np
from torch.utils.data import Dataset
from mmpose.datasets.builder import DATASETS
from mmpose.datasets.pipelines import Compose
@DATASETS.register_module()
class MoshDataset(Dataset, metaclass=ABCMeta):
"""Mosh Dataset for the adversarial training in ... | [
"noreply@github.com"
] | noreply@github.com |
dc9f52ec800d1c7438118f86a1ffb7ec303d5138 | 26f27599e989d1b970150e87ceb5befa460fff3e | /run_case.py | 2fd5906a01370594b65e90aab79c70b309532d61 | [] | no_license | zhaozhiquan/iOS-ui-automation | 740dbb72ae5200fc291503e3b5f7313a10cfd09e | 09e2ac4efc163ad3f7768a38d4b7baa12db1b542 | refs/heads/master | 2021-06-17T03:36:40.883619 | 2017-03-28T10:48:18 | 2017-03-28T10:48:18 | 83,384,286 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import unittest
import HTMLTestRunner1 as HTMLTestRunner
import time
import os
import shutil
casepath = ".//TestCase"
#casepath = '/Users/zhaozhiquan/automation/AndroidSdk/TestCase'
def Creatsuite():
#... | [
"zhaozhiquan@zhaozhiquandeMac-mini.local"
] | zhaozhiquan@zhaozhiquandeMac-mini.local |
0646a4549b39129de0a15f26baa43501a289a487 | 498a2557e9c3a2c6b276d65cb711f5820a55b4e1 | /pybb/migrations/0001_initial.py | 0e2df21edaad1953fa81edc925ac0426b9d9dd9c | [
"Apache-2.0"
] | permissive | Burrito-Bazooka/logos-v2 | 3084f1eeeff6b3038b3c9f9c943a6e185f8a7b16 | 4046044fdc21da824e940334f25392fbd9b82181 | refs/heads/master | 2020-04-08T17:45:48.989475 | 2016-05-24T19:02:14 | 2016-05-24T19:02:14 | 61,166,115 | 0 | 0 | null | 2016-06-15T00:49:44 | 2016-06-15T00:49:43 | null | UTF-8 | Python | false | false | 1,160 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Category'
db.create_table('pybb_category', (
('id', self.gf('django.db.models.fi... | [
"kiwiheretic@myself.com"
] | kiwiheretic@myself.com |
00d288a2b6044bd45e41cb8a04842120a28cf531 | 90047daeb462598a924d76ddf4288e832e86417c | /chromecast/browser/DEPS | c273dc2c7d0751e9b9e547fd0285090933fa1b4b | [
"BSD-3-Clause"
] | permissive | massbrowser/android | 99b8c21fa4552a13c06bbedd0f9c88dd4a4ad080 | a9c4371682c9443d6e1d66005d4db61a24a9617c | refs/heads/master | 2022-11-04T21:15:50.656802 | 2017-06-08T12:31:39 | 2017-06-08T12:31:39 | 93,747,579 | 2 | 2 | BSD-3-Clause | 2022-10-31T10:34:25 | 2017-06-08T12:36:07 | null | UTF-8 | Python | false | false | 990 | include_rules = [
"+cc/base/switches.h",
"+chromecast/common",
"+chromecast/graphics",
"+chromecast/app/grit/chromecast_settings.h",
"+chromecast/app/resources/grit/shell_resources.h",
"+chromecast/media",
"+chromecast/net",
"+chromecast/service",
"+components/cdm/browser",
"+components/crash",
"+... | [
"xElvis89x@gmail.com"
] | xElvis89x@gmail.com | |
da7ad20af508871997836695e88be46cea160ed8 | d5481fc03a8b243312e5bcf67d44f6c7788a7081 | /coursework/services/scrapper/__init__.py | 7f9df60d8c13c2b78fc92b451d17d49f237ebbfa | [] | no_license | yklym/databases-2 | c2bea85f209cf4e2cb08517e335d43840674196f | af0304cb2fd3eeef34306e4d41f60d18f547008e | refs/heads/main | 2023-05-22T07:59:20.097891 | 2021-06-11T21:11:37 | 2021-06-11T21:11:37 | 336,562,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | from .scrapper import Scrapper | [
"yaroslav.klymenko@binary-studio.com"
] | yaroslav.klymenko@binary-studio.com |
e249ef353906868c69319e6708152df045730d43 | 728c2b90fc4b0b017a8a7b0f4262a18bb9c4a82d | /hello | 4ee0a44122ec326e9137c49e39fd29bed11a0b78 | [] | no_license | jasonBirchall/ecs-codepipeline | 91def43c0252f46fc03f112f13e7e54b06e0b3d1 | 100e1732f7edc0f36023e936ca0be380fa35c6de | refs/heads/master | 2021-05-15T03:20:42.927958 | 2018-01-02T10:58:51 | 2018-01-02T10:58:51 | 115,045,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | #!/usr/bin/env python
from socket import gethostname
from circuits.web import Server, Controller
class Root(Controller):
def index(self):
return "Hello Presentation!"
def hostname(self):
return gethostname()
def main():
(Server(("0.0.0.0", 80)) + Root()).run()
if __name__ == ... | [
"jason.birchall@digital.justice.gov.uk"
] | jason.birchall@digital.justice.gov.uk | |
61302f16e42eb705b67baa1b9802ba9c5a24bfc9 | 68ed2de5e338321e8ba789fc00bf2ddd649cbc66 | /MediaCenter/views.py | 81fb84e5b8cbc0a9f26340e8daad83d8453919c9 | [] | no_license | jonmetz/piHomeServer | 3ece86a67cf47833da5fbc8dda0f8bfc15f8efec | 2aadc6deed142395fe88e9f7130ff231a7f06449 | refs/heads/master | 2021-01-20T02:15:39.023520 | 2013-10-13T10:26:35 | 2013-10-13T10:26:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,884 | py | from django.shortcuts import render
from subprocess import Popen, PIPE
import eyed3
import os
# Since the player process's stdin is going to be written to by functions that are called independent of one another, they cannot be pure
# player_process will be passed between functions as a global variable
player_process ... | [
"jon.metzman@gmail.com"
] | jon.metzman@gmail.com |
00728e4101b62fa2bf7ba2c3784d4576344c6cc3 | d5b3de6729e165bddcc17b8c3c285df808cd9fd0 | /application/modules/fonction/views_fct.py | 209fd03dd4976dbac54b11d2915ca69f51eb9231 | [] | no_license | wilrona/Gesacom | 907848d44d9fa1a285b5c7a452c647fc6cbbc2fa | 31ec26c78994030844f750039a89a43a66d61abf | refs/heads/master | 2020-04-06T15:00:36.522832 | 2016-09-08T13:19:06 | 2016-09-08T13:19:06 | 49,956,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | __author__ = 'Ronald'
from ...modules import *
from models_fct import Fonction
from forms_fct import FormFonction
# Flask-Cache (configured to use App Engine Memcache API)
cache = Cache(app)
prefix = Blueprint('fonction', __name__)
@prefix.route('/fonction')
@login_required
@roles_required([('super_admin', 'fonctio... | [
"wilrona@gmail.com"
] | wilrona@gmail.com |
6a5206bf620b8cc36abb77da8111418a16762c14 | 3845a30f9c37994855d1dfe866276f9c2569d78f | /p3.py | a55a6c453cfb2ecb57a7d349ef97a24e01273f4f | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | nabilhassein/project-euler | 767200f9a4595cf967ea453817e648fe0a812a1c | ed01886a2d87ad93ade7b9f87da3b07f8dec0f2a | refs/heads/master | 2020-04-25T03:53:04.766538 | 2013-08-26T23:18:46 | 2013-08-26T23:18:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | # Largest prime factor
# Problem 3
# The prime factors of 13195 are 5, 7, 13 and 29.
# What is the largest prime factor of the number 600851475143?
### END PROBLEM STATEMENT; BEGIN MY COMMENTARY
# This is the first result I found by searching the Web via Google for
# "factor prime number python":
# http://stackove... | [
"nabil.hassein@gmail.com"
] | nabil.hassein@gmail.com |
44ba4fddbe998c26c1153ddcb13928ea9af0115c | 6a53e107ab4bbef6d955dd466c7b61650bf9b3c5 | /Fonction_de_chargement.py | c22e2bf4c20a8f56344de50c518edeebd04bb9ba | [] | no_license | Oreobliton/Projet-Rpg | 3da051f40b92b310d08a7153e98bcaf9849037f4 | 0d7b4968668eeeed2d5a2754062f1365cfa7fc1c | refs/heads/master | 2020-03-23T23:03:57.933893 | 2018-07-24T04:45:05 | 2018-07-24T04:45:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,774 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Dec 9 10:48:43 2017
@author: Zorino, Flywalker, mornviir
"""
#Importation de gros modules colombiens
from Classes_Monstre_Perso_Item_Armes import *
from Fonction_de_sauvegarde import *
from Fonction_de_chargement import *
from Fonction_du_menu import *... | [
"noreply@github.com"
] | noreply@github.com |
f76d667d0fdea002d1fd512d3a7f98728174a0a4 | 2ece848b37f7fa6f13ce0e94ddfd0fbd46c72b8f | /backend/utils/crawl_mode.py | c0224bad7279761898d0187465fdb7edceb18649 | [
"Apache-2.0"
] | permissive | rockeyzhu/eastmoney | 1a2d2db18bd658abe8e65875bf863f1cfcefd545 | c8aa33a69ebee54c64f22a8edbcf30ed0f29b293 | refs/heads/master | 2023-03-06T12:20:03.896607 | 2021-02-20T07:20:53 | 2021-02-20T07:20:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | import configparser
def get_crawl_mode():
config = configparser.ConfigParser()
config.sections()
config.read("config.ini")
return config['CRAWL_MODE']['crawl_mode']
| [
"1397991131@qq.com"
] | 1397991131@qq.com |
860e1b6b4199edd993d0f6b16cdc645e43a2bee9 | 4cef505611a04383310ce6556fac7acb02dbc8a1 | /Unmapped content SE/Unmapped content SE/checking_unmapped_content_SE_api_new1.py | 9ba60d429c9bc2219b1ffb1ca9dea5b0474b5f8b | [] | no_license | Sayan8981/Projectx | 9d8727eec144da35f2acffc787f3c769beef02e1 | bcf93fe885e4cd68bb2c30c408a3b03e785965c3 | refs/heads/master | 2022-03-26T18:13:02.831185 | 2020-01-16T06:52:31 | 2020-01-16T06:52:31 | 187,637,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,452 | py | """writer:Saayan"""
from fuzzywuzzy import fuzz
from fuzzywuzzy import process
import MySQLdb
import collections
from pprint import pprint
import sys
import urllib2
import json
import os
from urllib2 import HTTPError
from urllib2 import URLError
import csv
import urllib
import os
import pymysql
import datetime
import ... | [
"noreply@github.com"
] | noreply@github.com |
840afe04e363b8a9e7f6c02c693b8349fd79a76f | 7c7e2576f38b8cf9600d578eacaa4478cf8a1ea7 | /tfy/tfy/doctype/accounting_dimension_default/test_accounting_dimension_default.py | 9e7b1918417fd9c059a41d42971133ce5c8d55fc | [
"MIT"
] | permissive | deepeshgarg007/TFY | 5efdd1dde94a12e1a802254f41af3508d15d8def | 5309d369ad3c4ab3386798011d5ee7a14a503cf4 | refs/heads/master | 2020-10-01T11:32:35.386952 | 2020-01-24T12:47:08 | 2020-01-24T12:47:08 | 227,528,048 | 0 | 0 | NOASSERTION | 2019-12-12T05:35:26 | 2019-12-12T05:35:25 | null | UTF-8 | Python | false | false | 238 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, hello@openetech.com and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestAccountingDimensionDefault(unittest.TestCase):
pass
| [
"pawan@erpnext.com"
] | pawan@erpnext.com |
450daccea38af6db92113e915deff3244bbba285 | 90c180c3bcac46f38e559c190598b7d5e0535e7f | /ch3/ch3-11.py | 835b0082a6d27aa8b257e3961d8fadedde6d07d0 | [] | no_license | q10242/pythone-practice | ac1883d314008d7a566a1d5053fbef366470b662 | 2d7d725d3d9267a416fccf68fc9019e0d95cf2bb | refs/heads/master | 2020-03-18T02:47:25.114712 | 2018-05-22T03:18:11 | 2018-05-22T03:18:11 | 134,207,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py |
x = True
print(x)
print(type(x))
print(int(x))
y= False
print y
print(type(y))
print(int(y))
| [
"q10242@gmail.com"
] | q10242@gmail.com |
b33bd4048606496e909cb4c89b8e8ab970602f37 | 3fa59b149e61137fe72ed2587c0becf5324e1071 | /setup.py | fe6a94ab1f54dcf524f0c9e1e5215d0e25f26d90 | [
"MIT"
] | permissive | jpjanet/citsampler | b26c2d9d82b5d20d294535a5da10e7d0d64c029b | 1c395efa648871cebc994729bc50155fad998553 | refs/heads/master | 2020-05-17T19:47:22.261455 | 2019-04-29T01:16:35 | 2019-04-29T01:16:35 | 183,926,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | #!/usr/bin/env python
from setuptools import setup, find_packages
# Package meta-data.
NAME = 'citsampler'
DESCRIPTION = 'simple rejection sampling MCMC'
URL = 'https://github.com/jpjanet/citsampler.git'
EMAIL = 'jp@mit.edu'
AUTHOR = 'JP Janet'
REQUIRES_PYTHON = '>=3.6.0'
VERSION = '0.1.0'
REQUIRED = ['pyclustering... | [
"jpjanet@mit.edu"
] | jpjanet@mit.edu |
1c701b7f82a26d6edc9e76f2f086ad91478e6738 | c0fc2932d1d358d77b2475c31ab48cbfaba26c95 | /offsets_day5.py | 786a4806b947d46ca590aa9c9a6784ed14c73288 | [] | no_license | eirikbsu/Advent2017 | 74518a50fb7631e5df71f8a9348cc34e0e62e004 | 2f2e3e0aa8cc49661b6996f46a5d0a02e014b058 | refs/heads/master | 2021-08-31T07:28:36.749287 | 2017-12-20T16:30:35 | 2017-12-20T16:30:35 | 113,969,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | """
Day 5 - offsets
"""
instructions = []
with open("day5_input.txt", "r") as file:
for line in file:
line_int = int(line)
instructions.append(line_int)
numberofsteps = 0
escaped = False
currentposition = 0
instructionlistlength = len(instructions)
while escaped == False:
if currentposition ... | [
"ebsundmark@gmail.com"
] | ebsundmark@gmail.com |
87cbb71f345b15df29bc16293a3a4183a2d5e827 | 934371d2df9c92087f6997ead546170ddf60f21e | /src/data_manager.py | 783807af91af5186428abbb6ffa9e26cbd67c27e | [] | no_license | mferrato/CISC844FinalProject | ca28e65180b9e6aeac1c7b215ea1ed25816994e9 | 69c4068fdb2fe548cb916fb92c87474cb7221a1b | refs/heads/master | 2022-07-18T20:03:04.826453 | 2020-05-22T04:47:30 | 2020-05-22T04:47:30 | 265,935,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,110 | py | import pandas as pd
data_directory = f'../dataset/'
class Dataset():
def __init__(self):
self.dataframe = None
self.labels = None
def load(self, path):
# Reads dataset from excel file
new_dataframe = pd.read_excel(data_directory + path)
# Gets rid of the first two inst... | [
"mferrato@udel.edu"
] | mferrato@udel.edu |
c5a5e944bd41c1e4cfadd2c3c620774ec34c22e1 | 31e41995dea5e4a41bc9b942da7e5266cd686757 | /learning/training/python/py2/pgms/sec4/outputparams.py | 5894f5ae44a48540fe4caeee5abca53df43f5154 | [] | no_license | tamle022276/python | 3b75758b8794801d202565c05d32976c146beffd | 4fec225d1e5e2bf0adac5048f7f9f3313ac76e23 | refs/heads/master | 2020-04-01T21:03:01.458768 | 2017-03-13T20:47:35 | 2017-03-13T20:47:35 | 64,878,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | #!/usr/bin/env python
# outputparams.py - simulate output parameters
def assign(m, n):
m = 10
n = [3, 4]
return m, n
a = 5; b = [1, 2]
(a, b) = assign(a, b) # updates a, b
print a, b
#####################################
#
# $ outputparams.py
# 10 [3, 4]
#
| [
"tam.le@teradata.com"
] | tam.le@teradata.com |
da0c2a1cf4183a389e9a794b268a35920914e270 | 226be49a7396e7c6004ba4de567f6c22b5b245c0 | /packaging/fremantle/.py2deb_build_folder/gread/src/opt/GRead/views/basic/utils/toolbar.py | ce31b63c1a91f4abdca09d651a501e4d2d0b2425 | [] | no_license | twidi/GRead | 0e315c0c924fa169cb5d16e927c6b54e79e25bd9 | 51429189762b706fbe8ca1b927d89071a556d51e | refs/heads/master | 2021-01-10T19:54:43.098022 | 2010-11-23T00:41:17 | 2010-11-23T00:41:17 | 1,146,572 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,891 | py | # -*- coding: utf-8 -*-
"""
Lib to manage toolbars which appear on mousedown(maemo) or mousemove(not maem0)
and stay visible a few seconds
"""
from PyQt4.QtGui import *
from PyQt4.QtCore import *
import time
class ToolbarOwnerEventFilter(QObject):
def __init__(self, *args, **kwargs):
super(ToolbarOwnerEv... | [
"s.angel@twidi.com"
] | s.angel@twidi.com |
7fc78a96811a0f46faa2e7fdc489c6ccfdf5de20 | b7f1b4df5d350e0edf55521172091c81f02f639e | /components/arc/video_accelerator/DEPS | be1c9c99ce26a0e5b89f2611421f734fc2f70e77 | [
"BSD-3-Clause"
] | permissive | blusno1/chromium-1 | f13b84547474da4d2702341228167328d8cd3083 | 9dd22fe142b48f14765a36f69344ed4dbc289eb3 | refs/heads/master | 2023-05-17T23:50:16.605396 | 2018-01-12T19:39:49 | 2018-01-12T19:39:49 | 117,339,342 | 4 | 2 | NOASSERTION | 2020-07-17T07:35:37 | 2018-01-13T11:48:57 | null | UTF-8 | Python | false | false | 296 | include_rules = [
"+components/arc/common",
"+gpu/command_buffer/service/gpu_preferences.h",
"+media/video",
"+media/base/video_frame.h",
"+media/base/video_types.h",
"+media/gpu",
"+mojo/edk/embedder",
"+services/service_manager/public/cpp",
"+ui/gfx",
"+ui/ozone/public",
]
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
62ef588765d6c7e6b84af0dc6cae39a3959746b4 | 9787395b9f6ffe27753067862112c21f79ffa25f | /lab4/generals/message_queue_to_propagate.py | 11203373d96fa9ec9e3be071f63370bd9139cf2b | [] | no_license | mrfaiz/distributed-system-ws20-21 | f6b397dd7d710a21dc48bc626bffd10afab22eca | a92434ea960dcaaea57acb36a656a1177ee4689f | refs/heads/master | 2023-03-21T13:16:41.017653 | 2021-03-10T23:27:04 | 2021-03-10T23:27:04 | 313,585,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | from queue import Queue
from threading import Lock
from propagate_message_info import PropagateMessageInfo
class MessageQueueToPropagate:
def __init__(self):
self.queue = Queue()
def getData(self):
return self.queue.get()
def putData(self, data: PropagateMessageInfo):
self... | [
"khulna22@gmail.com"
] | khulna22@gmail.com |
7ed8d7af33e5f1067a316bbf43e6b0b05e27818a | 832e56f182baceb19037e55ab1b4180e121065fe | /build/hector_slam/hector_trajectory_server/catkin_generated/pkg.installspace.context.pc.py | cd2eba0b70034f53bd53f7f65b2b39be5e18acff | [] | no_license | Automated-Aerial-Cinematography/hec_ws | 8127989967ca713d049a77843fd61e3638775245 | 89bede36ac09a60de119d5fb9ec504910957c77e | refs/heads/master | 2020-04-10T15:32:05.815875 | 2018-12-10T03:47:55 | 2018-12-10T03:47:55 | 161,112,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "hector_trajectory_server"
PROJECT_SPA... | [
"sanjuksha@gmail.com"
] | sanjuksha@gmail.com |
2dcb1660882ed55001083899c2ed586bd7c9d624 | 091b91a631520db2af9a935cb571258d3fd0ce63 | /Python/6x/1029.py | 76277e3ca3d243d4cce10ebf36ce3ff61a2d9f0c | [] | no_license | victorhundo/URI | 75fec1efe959e5ad8e366cba91a3374ddedb1228 | f7547b187303d386d7ace577644eb1f2d864e97a | refs/heads/master | 2018-10-09T19:49:27.540405 | 2018-08-01T19:26:44 | 2018-08-01T19:26:44 | 108,522,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | testes = int(input())
for i in range(testes):
n = int(input())
valor = [0] * (n + 1)
chamadas = [0] * (n + 1)
for i in range(n + 1):
if (i == 0):
valor[i] = 0
chamadas[i] = 0
elif (i == 1):
valor[i] = 1
chamadas[i] = 0
else:
... | [
"victorhundo@gmail.com"
] | victorhundo@gmail.com |
0753aa3356700a799716e651ae0e43a81566ad1d | c20c7d658218f30521048bce11bf5a6e16384b27 | /f_10_字典.py | 98b8fcf90013ec921cb5094995f685d4f3931b34 | [] | no_license | fjf3997/study_python | e6d5a5717250dd37b27a1933fc22ae08c9df3539 | 2ae6d335bba478e05f2427bd11653d500249d6f7 | refs/heads/master | 2020-07-02T15:35:39.752721 | 2019-08-19T09:25:39 | 2019-08-19T09:25:39 | 201,574,792 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | fjf = {"name": "樊家富",
"age": 18,
"gender": True,
"height": 185,
"weight": 70}
# 取值
print(fjf["name"])
# 修改增加
fjf["hobby"] = "basketball"
fjf["name"] = "cxk"
# 删除
fjf.pop("name")
# 求取键值对的长度
print(len(fjf))
# 更新字典
temp = {"country": "china",
"age": 20}
fjf.update(temp)
# 情况字典
fjf.clea... | [
"1763994902@qq.com"
] | 1763994902@qq.com |
478bd1be33ce309931c2ad4f54f7c5793a151e68 | aa142e6a319ba4cccbc1c00008a00ff19a2a6ce3 | /src/metrics/surfaceEstimation.py | 1db97c1ea2d4edf7e7d805f5c0a478f90cd83951 | [] | no_license | elhamAm/PlantPhenotyping | 20f1599e811f90888de0be4282771d019554469d | d96103c4fba337f42728e6bb50b95fcbda017689 | refs/heads/master | 2023-07-26T02:11:23.506189 | 2021-09-06T14:30:47 | 2021-09-06T14:30:47 | 403,652,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | import numpy as np
import open3d as o3d
from numpy.linalg import norm
import trimesh.graph as trimesh
def findAreaOfTop(meshPath):
mesh = o3d.io.read_triangle_mesh(meshPath)
#sumNew = mesh.get_surface_area()
tris = np.asarray(mesh.triangles)
vers = np.asarray(mesh.vertices)
mesh.compute_vertex_normals(normalized=... | [
"eaminmans@cnb-d102-56.inf.ethz.ch"
] | eaminmans@cnb-d102-56.inf.ethz.ch |
5ebdc3a4b1499d03dc0954911ba0248fd4c5dfb8 | e254a1124bbe6be741159073a22898b0824e2a4f | /customuser/admin.py | 6c225a0579ce6bb67949bffc24b32ad6df83f3a0 | [] | no_license | skiboorg/stdiplom | 0df83b8e42e999abc43a01157cb24cffd10d0666 | 13101381c7db8a4b949048e8cbfcf9673cf7ecde | refs/heads/master | 2022-11-12T23:55:21.136176 | 2020-06-29T05:57:03 | 2020-06-29T05:57:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin
from django.utils.translation import ugettext_lazy as _
from .models import User,Guest
@admin.register(User)
class UserAdmin(DjangoUserAdmin):
"""Define admin model for custom User model with no email field."""
... | [
"ddnnss.i1@gmail.com"
] | ddnnss.i1@gmail.com |
f9144fedb5cc9fddb71593c4a93abd6afdf370cf | bdac4e8a4624b6e963f698eaa7589c048a503658 | /Momentum.py | f5964bf5c1bfbb2e44e733cd7bc02141fcfaa8b8 | [] | no_license | June2552/Deep_learning_reposit | 6bd17dc4342cc5747b65b38890ecf89f1ef87b90 | 37d08f2ad168897b5b064a9cc930b83f4d78cd34 | refs/heads/main | 2023-03-31T08:33:16.339282 | 2021-04-13T13:55:38 | 2021-04-13T13:55:38 | 355,958,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | class Momentum:
def __init__(self, lr=0.01, momentum=0.9):
self.lr = lr
self.momentum = momentum
self.v = None
def update(selfself, params, grads):
if self.v is None:
self.v = {}
for key, val in params.items():
self.v[key] = np.zeros_like(... | [
"junhyeogj04@gmail.com"
] | junhyeogj04@gmail.com |
fb4e50c6e9fca9fa04f4da9e14ac7568cc02f627 | c13f9a89dece8d24492a834aeefa730db9542006 | /p007.py | 03d69a8ed944a79f0d6aa2eecd3ac7dae6e59d53 | [] | no_license | ilya-il/projecteuler.net | 6f5bbc96afe806e56b009523e84e21a2d2080dc1 | 0cf00ceadeab332d7a6dd497462bdc4541c5ae48 | refs/heads/master | 2021-09-07T02:00:33.226681 | 2018-02-15T12:25:47 | 2018-02-15T12:25:47 | 110,359,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | #!/usr/bin/python3
# coding: utf-8
# IL 30.10.2017
"""
ProjectEuler Problem 7
"""
__author__ = 'ilya_il'
import time
def get_prime_numbers(upper_bound):
prime_numbers = [2, ]
for n in range(3, upper_bound, 2):
for pn in prime_numbers:
if n % pn == 0:
break
... | [
"il.khimki@yandex.ru"
] | il.khimki@yandex.ru |
5242e3b788b825eca2903c994d8d2e0fb3c67c25 | f1aab3818e194882348a9bed0bc6d9dee1d0c894 | /NPP/process_spec.py | 7ec4905f47b5b59e346ece781fa3944b0adc029b | [
"MIT"
] | permissive | cbchoi/nppsim | 73b6ef3a66f12686eaac94209c0f8884c4952ab4 | 4d096f9d2fdb5ebf3e3e83be7b1974bfc92554c1 | refs/heads/master | 2021-02-14T14:15:29.319118 | 2020-03-04T07:00:21 | 2020-03-04T07:00:21 | 244,810,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,995 | py | from collections import OrderedDict
from evsim.behavior_model import BehaviorModel
from evsim.system_message import SysMessage
from evsim.definition import *
from config import *
class ProcessSpec(BehaviorModel):
def __init__(self, name):
BehaviorModel.__init__(self, name)
self.init_state = None
... | [
"cbchoi@Changbeomui-MacBookPro.local"
] | cbchoi@Changbeomui-MacBookPro.local |
aaa7031c4835b8beaa1ff181be57e0baa1bc6fda | 39461655ed7f8daf6fcc442d9508f37929bbc4e4 | /chapter3/3.3.2-1_logit_and_sigmoid.py | 0dd2ba5d7a9305fccabbc2acbf759c7ccd2dfb1f | [] | no_license | mkomatsu-0223/Study_Machine-Learning | 79d03d368758b2ef66092ed38d6de69e4a4c27a1 | 0787ca4a419788935e1ad04ff936860532f4317f | refs/heads/main | 2023-06-21T14:39:13.117132 | 2021-08-05T13:37:24 | 2021-08-05T13:37:24 | 381,750,677 | 1 | 0 | null | 2021-08-05T13:37:24 | 2021-06-30T15:34:05 | Python | UTF-8 | Python | false | false | 1,791 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 24 21:54:13 2021
@author: KOMATSU
"""
import numpy as np
import matplotlib.pyplot as plt
# シグモイド関数を定義
def sigmoid(z):
return 1.0 / (1.0 + np.exp(-z))
# y=1のコストを計算する関数
def cost_1(z):
return - np.log(sigmoid(z))
# y=0のコストを計算する関数
def cost_0(z):
return - np.... | [
"komatsu_milkyway@yahoo.co.jp"
] | komatsu_milkyway@yahoo.co.jp |
a91672d089cb0c860f05281b2ef3658478439521 | 4baa202014ceb55863ac43001ff1082da65ccffc | /userPortal/migrations/0016_auto_20160825_1954.py | 28adb76837743f334e931924f232699a536960be | [] | no_license | danielsbonnin/b_and_d | 03ab745ad921e0802e3615596086ee34b359b4bc | f0edf44b9a69bd7ed78ca7d668c1223d0fadfc43 | refs/heads/master | 2021-05-15T00:30:34.234741 | 2017-10-04T23:33:13 | 2017-10-04T23:33:13 | 103,151,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-26 00:54
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('userPortal', '0015_dailyrequirementsreport_user'),
]
operations = [
migrations.Remove... | [
"danielsbonnin@gmail.com"
] | danielsbonnin@gmail.com |
3b01ac301331ea9f6f0296f4f7b0d38b3eca0120 | 40bd0c4e5b5f44adceeb7586418833394edaaa9c | /blog/migrations/0001_initial.py | b30f556d8e3aa2bf79bd6d418762da92b2c17c97 | [] | no_license | uzay00/ilk-blogum | 522d94c9baf1ac6df8e42d3b2d9f6e27443fd23a | c7896e1fffad591dea67798ad8d3b70e88ed04d1 | refs/heads/master | 2020-12-31T00:30:43.581675 | 2017-03-29T11:47:39 | 2017-03-29T11:47:39 | 86,560,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-29 08:57
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"uzay00@gmail.com"
] | uzay00@gmail.com |
d5851cdf090e446c4ab7873e0849f31e475286aa | bc8f716ee07e3a9762ac248e7188d56b62417d0d | /KmeansScreen.py | 4cf8026abb89e72cdc1c6f9368e02e701d58dca6 | [] | no_license | silvavn/thesiswork1 | 98b759037a72d89dc81476cdf3360c86d3b28046 | 510b8dd1e4282dc6559b27202cdef26e18fb85f9 | refs/heads/master | 2021-07-02T19:41:26.825894 | 2017-09-22T16:30:59 | 2017-09-22T16:30:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,011 | py | #!/usr/bin/env python
import tkinter as tk
from tkinter.simpledialog import *
#Screen that controls the Click on distribution
#numpy.random.normal(loc=0.0, scale=1.0, size=None)
class DistributionScreen(tk.Frame):
def __init__(self, master):
tk.Frame.__init__(self, master)
self.grid()
master.titl... | [
"victor_grego@msn.com"
] | victor_grego@msn.com |
02988134999579f39f20f4c3022896d4181260f2 | 801b8ca51c656a7b5dd6f31c72ef6878d51e4c0e | /feed/v1/api/serializers.py | be840689180935c8519c027b524f524e75539e31 | [] | no_license | adamgrossman/peer_post | 265242d682e822cf1a2594ea3299f439eb24a343 | 6b553dae372909a0e20302bca61da32ea1e6ff5e | refs/heads/master | 2021-01-17T08:58:17.363439 | 2016-03-27T22:31:23 | 2016-03-27T22:31:23 | 28,731,532 | 1 | 1 | null | 2016-03-27T22:31:24 | 2015-01-03T01:25:55 | Python | UTF-8 | Python | false | false | 2,517 | py | from rest_framework import serializers
from feed.models import Member, Group, Link, Comment, Vote
class MemberSerializer(serializers.ModelSerializer):
posted = serializers.SlugRelatedField(many=True, read_only=True, slug_field='title')
comments = serializers.StringRelatedField(many=True)
date_joined = ser... | [
"adam.grossman08@me.com"
] | adam.grossman08@me.com |
2b66aa65a56259e78f6982af2c65f86099041989 | 5ca4a9526cceb69d653fde083b07422a5bf65e78 | /env/bin/epylint | f07770b7ee332a8ca6ee9d59f2e1dc4f3a11b2a2 | [] | no_license | hgyoon/M-DICE-REACT-DJANGO | 679fec6849baa3d28c83869dc6e99457a3baf2b9 | 6cf1006f7bad2c3122b7d6ad34bd311ec01d1a00 | refs/heads/master | 2023-03-06T11:01:49.194562 | 2021-01-28T02:40:45 | 2021-01-28T02:40:45 | 304,380,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/Users/panda/jsDev/PavementProj/djangoV2/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_epylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_epylint())
| [
"hgyoon@umich.edu"
] | hgyoon@umich.edu | |
0dde26ff06a5f5bdf0da66bdea5403aae187b87e | 95ed3c52785461503c2443f3fd8c5dad4757a191 | /scripts/sbstest.py | 993bfaf338646056095fd4b2af4a91b6dc4b0565 | [] | no_license | dunsword/lsapp | 39af9d7f727ceabb388f025d23fbaf45e1abdb6e | 8c4e1d9ab5af2163515a2ca8db5f43d442c405bd | refs/heads/master | 2021-01-10T12:26:42.123828 | 2013-10-12T14:08:18 | 2013-10-12T14:08:18 | 8,550,942 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | # coding=utf-8
'''
Created on 2012-11-29
@author: DELL
'''
import api.sbs.api
oauth= api.sbs.api.OAuthRequest()
result=oauth.auth(u'100',u'accessTest7118jqq54113accessTest',u'猪猪侠',u'pass123')
print result.decode('gbk'),
blist= api.sbs.api.BoardThreadListRequest()
r2=blist.getBoardThreadList(u'100', u'accessTest7118... | [
"dunsword@163.com"
] | dunsword@163.com |
d6522db0345b146f5c997b5624fec7901716705a | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/zope.server-Zope-3.2.1/zope.server/linereceiver/linetask.py | b6e21554887b4b549e2db8b1c9d3414ff467116b | [
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,064 | py | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# T... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
a0e7fb644e67152d9a01b4d7110b100bf035ea8f | 743b85b69266ed58040d24fc8d6df57f62c1c958 | /scripts/test.py | cf53eaf4e5876fa6d639c412b80aa95da0cd8867 | [] | no_license | theRealSuperMario/imm | 125d82798d965acaac92378fa8706d47edb239b0 | 261ed40616069f16281b56be0395030d64073259 | refs/heads/master | 2021-08-05T20:56:08.585547 | 2020-08-18T13:09:17 | 2020-08-18T13:09:17 | 210,142,517 | 0 | 0 | null | 2019-09-22T12:21:17 | 2019-09-22T12:21:17 | null | UTF-8 | Python | false | false | 6,911 | py | # ==========================================================
# Author: Tomas Jakab
# ==========================================================
from __future__ import print_function
from __future__ import absolute_import
import numpy as np
import os.path as osp
from imm.eval import eval_imm
from imm.models.imm_model ... | [
"tomas.jakab.64@gmail.com"
] | tomas.jakab.64@gmail.com |
1ecda05effcd112594905dd6c1737795add64c5f | 04e75bae29029c2b79730f0749ef9be543c48824 | /database.py | 5e7e9439b918fb9d7caa19b2dc58ca97cb5f8621 | [] | no_license | venky252003/Python_Flask | 3cd2b8018e9a50e6f069d5daaeb7e0ccfd5e92d8 | 705afc5a910ce37f708cc6cb439773b6829b6645 | refs/heads/master | 2022-04-21T15:34:15.769515 | 2020-04-04T11:17:34 | 2020-04-04T11:17:34 | 236,959,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | #!/usr/bin/env python
"""
Author: Nick Russo
Purpose: A simple Flask web app that demonstrates the Model View Controller
(MVC) pattern in a meaningful and somewhat realistic way.
"""
class Database:
"""
Represent the interface to the data (model). Uses statically-defined
data to keep things simple for no... | [
"venky25@gmail.com"
] | venky25@gmail.com |
c61065937a7d81c532e4c6f752dd3cd2a339f82c | 0ac67fd1be569ee10bb07febdc756d80454c7887 | /main.py | 3e22505ca687dc00fc6e5b0548385643a160d626 | [] | no_license | b-thebest/pixel-detector-and-evaluator | db7ef6251cd3c42d6c3cf7a69956da0b64f8114d | 75f8db7e35c29c7cf85e26752c8591856764a6f2 | refs/heads/master | 2022-11-23T10:52:16.094621 | 2020-07-08T16:06:16 | 2020-07-08T16:06:16 | 282,961,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,852 | py | import win32ui
from PIL import Image
from ctypes import windll
from win32 import win32gui
from time import sleep
def capture_screen(hwnd, w, h):
# https://stackoverflow.com/questions/19695214/python-screenshot-of-inactive-window-printwindow-win32gui
hwndDC = win32gui.GetWindowDC(hwnd)
mfcDC = win32ui.Crea... | [
"bmoizali90@gmail.com"
] | bmoizali90@gmail.com |
e5798a30289cb14e434258ef6f5991871653b614 | 444c493405f94aaf261acc8c3f9a45d97406459f | /book/migrations/0003_auto_20200328_2235.py | 192b25a5a53dfd3fdaf8b4cc92e2799ae582babe | [] | no_license | eyluldnz/DjangoProjem | 6e8bf30c842d2127b46f590e0da233673e557b39 | 70d10fb471d542c3e8518aa4c7c98665ccbf16ee | refs/heads/master | 2022-10-31T01:27:12.342987 | 2020-06-17T22:58:54 | 2020-06-17T22:58:54 | 251,072,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | # Generated by Django 3.0.3 on 2020-03-28 19:35
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('book', '0002_book'),
]
operations = [
migrations.AlterField(
model_name='book',
nam... | [
"eyluldnzcn@gmail.com"
] | eyluldnzcn@gmail.com |
b09c853ed3a8f42a9e13c2c95955b062cd69f4fd | 7b059fc1b18bcad469e49dbd991a8ba7be21b423 | /ros/src/twist_controller/twist_controller.py | 2acfdb71d64837e78d42bf716d0cc4afe90cbb0d | [] | no_license | koosha-t/carnd-capstone | e2382ecc773b57c132fa918cf270cf2e3b2f9f7d | 3e6d558b6bc31e1f0c432e61dfbda012820de79c | refs/heads/master | 2021-08-23T03:17:20.697679 | 2017-12-02T20:48:07 | 2017-12-02T20:48:07 | 112,555,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | import rospy
from yaw_controller import YawController
GAS_DENSITY = 2.858
ONE_MPH = 0.44704
class Controller(object):
def __init__(self, *args, **kwargs):
# TODO: Implement
# wheel_base, steer_ratio, min_speed, max_lat_accel, max_steer_angle
self.wheel_base = None
self.steer_ratio = None
self.min_spe... | [
"koosha.sbuces@gmail.com"
] | koosha.sbuces@gmail.com |
aff439be5207e0f11177cb64be552d6e34acda4b | fda64ad75ffa65f3e3a4c09972ae6b9a0268383f | /21_API.py | a07a295aa26cecb552fffa043a14dac9619a1876 | [] | no_license | dhruv611/Python | 260ce9e189380d49c54a8d57a26b9441e5472848 | 011cd6a3b67f85e98760c8ea9015733e169f1753 | refs/heads/master | 2021-05-16T21:41:54.455601 | 2020-07-14T06:14:20 | 2020-07-14T06:14:20 | 250,480,631 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | import json
import urllib.request,urllib.parse,urllib.error
#This code will execute with API_KEY only, which i dont have, so the code is not executing.
serviceUrl = 'http://maps.googleapis.com/maps/api/geocode/json?'
while True:
address = input('Enter address: ')
if(len(address)<1):
break
... | [
"noreply@github.com"
] | noreply@github.com |
c5c4b6f0b936cd29d654915642a877ac48a21b78 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03806/s696918602.py | 35f161589d7dd759d0031fd48f8415a6aae2215a | [] | 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 | 666 | py | def main():
INF = 100 * 40 + 1
MX = 4000
N, Ma, Mb = map(int, input().split())
dp = [[INF] * (MX * 2 + 1) for _ in range(2)]
i, j = 0, 1
for _ in range(N):
ai, bi, ci = map(int, input().split())
x = Ma * bi - Mb * ai # Σai:Σbi=Ma:Mb<->Ma*Σbi-Mb*Σai=0
for k in range(-M... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
09748ed4d962cf5b7f4a079ab8e5b4811299f4c0 | 99b062cb9f5f3ff10c9f1fa00e43f6e8151a43a6 | /Django/PROJECT02/PROJECT02/jobs/models.py | 5d8ee670119eeaf75fc29f8879c7f9b7d6106061 | [] | no_license | HSx3/TIL | 92acc90758015c2e31660617bd927f7f100f5f64 | 981c9aaaf09c930d980205f68a28f2fc8006efcb | refs/heads/master | 2020-04-11T21:13:36.239246 | 2019-05-08T08:18:03 | 2019-05-08T08:18:03 | 162,099,042 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from django.db import models
# Create your models here.
class Job(models.Model):
name = models.CharField(max_length=20)
pastjob = models.CharField(max_length=30)
def __str__(self):
return self.name | [
"hs.ssafy@gmail.com"
] | hs.ssafy@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.