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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4b076855d9faf7d4b9b52c1ba3bcabde38de220d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/3477.py | 445b282b68ddf7bc5304da572da944985b261730 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,508 | py | """
Problem B. Tidy Numbers
Problem
Tatiana likes to keep things tidy. Her toys are sorted from smallest to largest,
her pencils are sorted from shortest to longest and her computers from oldest to
newest. One day, when practicing her counting skills, she noticed that some
integers, when written in base 10 w... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
64309c48dc23fcf4e0244500c43fc8cc8d36779a | 618ff263c58557f7dbcd509b35b91555aef1f94d | /This-Day-Web/mycalendar/migrations/0003_auto_20190115_0752.py | fc019db1c0419c04abf260b71d7207858fb1c63a | [] | no_license | all0pen/This-Day-iOS | 33a78ad065373a12b7d9133d34eab0a44b70a403 | 43e311655ed054319770826c91c9aaa566ec45f2 | refs/heads/main | 2023-03-27T18:12:52.147617 | 2021-03-31T11:27:28 | 2021-03-31T11:27:28 | 353,315,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | # Generated by Django 2.1.5 on 2019-01-15 07:52
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('mycalendar', '0002_auto_20190115_0517'),
]
operations = [
migrations.RenameField(
model_name='calendarinfo',
old_name='user'... | [
"dadada1028@naver.com"
] | dadada1028@naver.com |
60606fec2139a4f63c1875b06161f26f583ba0f6 | f42fbea44f4d434d44367292c62f8e283e456373 | /leaderboard.py | f427560d982626c7812eb74d5d0a0bbffd7a5ea4 | [] | no_license | 2qar/pingbot | 4ead52191614255871f11acd83e841dbddbc3351 | b772df875bc7c7166f4d11fba5c70833ee542a97 | refs/heads/master | 2023-04-27T21:55:52.499572 | 2018-09-01T22:06:52 | 2018-09-01T22:06:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,011 | py | from config import error
from discord import Embed
from discord import Colour
import pingutils
import json
class Leaderboard:
colors = [Colour.gold(), Colour.light_grey(), Colour.dark_orange()]
async def check_server_leaderboard(msg_obj, client):
try:
data = None
with open("leaderboards/" + msg_obj.server.id ... | [
"tucker1014@hotmail.com"
] | tucker1014@hotmail.com |
b1b17de27b17b10b04b0d215f31b42d2845350ab | c31ee8136a57a96649196081e1cfde0676c2a481 | /larcv/app/arxiv/arxiv/LArOpenCVHandle/cfg/mac/arxiv/analyze.py | 1ff1c17fba6bd79428e15f9dc424c3ee27064942 | [
"MIT"
] | permissive | DeepLearnPhysics/larcv2 | b12b46168e5c6795c70461c9495e29b427cd88b5 | 31863c9b094a09db2a0286cfbb63ccd2f161e14d | refs/heads/develop | 2023-06-11T03:15:51.679864 | 2023-05-30T17:51:19 | 2023-05-30T17:51:19 | 107,551,725 | 16 | 19 | MIT | 2023-04-10T10:15:13 | 2017-10-19T13:42:39 | C++ | UTF-8 | Python | false | false | 1,113 | py | from larcv import larcv
import ROOT, sys
from ROOT import std
if len(sys.argv) < 2:
print 'Usage: python',sys.argv[0],'CONFIG_FILE [LARCV_FILE1 LARCV_FILE2 ...]'
sys.exit(1)
proc = larcv.ProcessDriver('ProcessDriver')
print "Loading config... ",sys.argv[1]
proc.configure(sys.argv[1])
print "Loaded"
print sys.... | [
"kazuhiro@nevis.columbia.edu"
] | kazuhiro@nevis.columbia.edu |
7e221de13be5313611640449392570d027655ac8 | 0a7d76af2d8dced3c65fbcbda9af6d17b1e429c0 | /tests/forms_tests/tests/test_media.py | 2b73a041becbfaf07ab7b9065f321e9886cac50a | [
"Python-2.0",
"BSD-3-Clause"
] | permissive | manhnd1112/GR | 607d4e9add987dd994c0fe20629b03631769c02a | 2ee9da122afeb33b3ee589a7f64d3f74d2654a1a | refs/heads/master | 2022-12-11T00:36:05.143147 | 2018-05-31T10:03:35 | 2018-05-31T10:03:35 | 125,654,350 | 0 | 0 | BSD-3-Clause | 2022-12-08T00:58:26 | 2018-03-17T17:42:34 | Python | UTF-8 | Python | false | false | 24,831 | py | import warnings
from django.forms import CharField, Form, Media, MultiWidget, TextInput
from django.template import Context, Template
from django.test import SimpleTestCase, override_settings
@override_settings(
STATIC_URL='http://media.example.com/static/',
)
class FormsMediaTestCase(SimpleTestCase):
"""Tes... | [
"manhnd@kaopiz.com"
] | manhnd@kaopiz.com |
ab0d84a6fac49ca7cccc019147bb426f5600a37a | d663659c446d13baefae58bb8207898349fc4bc0 | /Project Euler/3.py | 568ba13e8118d43108b353e6215406f27fc38f95 | [] | no_license | CanSevgi/Python | e1c9bcd6fd0220203aa514389a858f1286fd1dbf | 2afc6de29e3dfadf3da4431a6c64a3629c0ed754 | refs/heads/master | 2020-03-08T11:52:20.393579 | 2018-10-13T15:06:05 | 2018-10-13T15:06:05 | 128,110,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 4 19:02:01 2018
@author:Can Sevgi (github.com/CanSevgi)
We'll check for x%y==0 and y%z != 0 where y = (from x-1, to 0) and z = (from y-1, to 0)
"""
x= 600851475143
#i=0
#n=0
#m=0
c=0
a=0
for c in range (1,10000,1):
if x%c==0:
a +=1
... | [
"noreply@github.com"
] | noreply@github.com |
9efff393f901a81783cc42050f4002da07a3b111 | 657d7416d0639ec3c6f42aace7ee02324c7833cd | /web_app/main/apps.py | e2c08b95ba3268cefa35a202191f58936add33b6 | [] | no_license | v-skiff/blogs | 4e4bac096df0d69fc49bef830d264fdb411eb1fc | 5261e9fbd83e34e41e4af8184a230e1c0ef78c83 | refs/heads/master | 2023-04-28T16:18:05.746701 | 2020-03-17T21:40:37 | 2020-03-17T21:40:37 | 247,424,787 | 0 | 0 | null | 2023-04-21T20:54:12 | 2020-03-15T08:01:10 | Python | UTF-8 | Python | false | false | 167 | py | from django.apps import AppConfig
class MainConfig(AppConfig):
name = 'main'
verbose_name = 'Blog platform'
def ready(self):
import main.signals | [
"skiff.udev@gmail.com"
] | skiff.udev@gmail.com |
810ab3e5093004285645359f5b89fd224183d58f | 872e7437a22e684c0fecce76e679464bb68e434d | /Anna_old/database/old/py_scripts/trypa_new_functions.py | 1e5e98334cae68c54ea163cc33e71e861d2141df | [] | no_license | tskalicky/ngs | d9a3c4da69544c9d5ae72c71167f2078137d1775 | 6056c627cdf23eca357bbb7cba0465abf6398f43 | refs/heads/master | 2020-12-30T22:34:28.112079 | 2018-10-31T09:09:39 | 2018-10-31T09:09:39 | 80,538,797 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 106,391 | py | #!/usr/bin/python
trypa_new_functions={
"Tb04.24M18.150": "hypothetical protein, conserved",
"Tb09.v4.0018": "expression site-associated gene (ESAG) protein, putative, expression site-associated gene 3 (ESAG3) protein, putative, chrIX additional, unordered contigs",
"Tb10.v4.0045": "prohibitin, putative, chrX ... | [
"tomas.skalicky@seznam.cz"
] | tomas.skalicky@seznam.cz |
46f10627d989389d4136ee96d1c3b804dbc77652 | a4447a60b67798cd90cbf6c99dc18b7465ecbfae | /customize_offerings.py | 0fdb8acd467de667c8fe2bba5ed3b84b874d7e19 | [] | no_license | gowshalinirajalingam/K-Means-Clustering | a8320c3a7e1c14b28e2474c2bc275071abdcbae9 | 15c281a7ee7cfc57620319fac33c9a1e1603cb12 | refs/heads/master | 2020-05-01T16:36:01.598113 | 2019-03-26T11:44:05 | 2019-03-26T11:44:05 | 177,576,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sn
data = pd.read_csv('customize_offerings.csv')
data.info()
x=data.values
#scale the data
from sklearn.preprocessing import StandardScaler
scaler=StandardScaler()
x_scaled=scaler.fit_transform(x)
#Figure out optimal number ... | [
"gowshalinirajalingam@gmail.com"
] | gowshalinirajalingam@gmail.com |
4fe96ae1f1d4635374a86f592f2827175c26e759 | b4e257546367368b2a980366b53796a8176939b6 | /ShoppingWeb/asgi.py | 1e51a5d441284cfb2c9cf865386508bf98806c69 | [] | no_license | faizan352/Eshop-2021 | 548b5ee7eff6ccf3cd5fc221ff98920397104cc9 | ee78ae2ab7c9660a98ac87507ff193cd2f9da1f8 | refs/heads/master | 2023-07-01T02:30:41.645754 | 2021-08-04T08:02:07 | 2021-08-04T08:02:07 | 392,601,365 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
ASGI config for ShoppingWeb 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... | [
"faizanm352@gmail.com"
] | faizanm352@gmail.com |
9704f2152ae475830dc15c917f3fe61bda494b73 | 55ceefc747e19cdf853e329dba06723a44a42623 | /_CodeTopics/LeetCode/201-400/000387/000387.py | f9281d3ccb22db12c9f847e92d1c3e8f262be557 | [] | no_license | BIAOXYZ/variousCodes | 6c04f3e257dbf87cbe73c98c72aaa384fc033690 | ee59b82125f100970c842d5e1245287c484d6649 | refs/heads/master | 2023-09-04T10:01:31.998311 | 2023-08-26T19:44:39 | 2023-08-26T19:44:39 | 152,967,312 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | class Solution(object):
def firstUniqChar(self, s):
"""
:type s: str
:rtype: int
"""
def str_to_dict(s):
dic = {}
for ch in s:
if ch in dic:
dic[ch] += 1
else:
dic[ch] = 1
... | [
"noreply@github.com"
] | noreply@github.com |
117aa7ef39c815b04a798008549fece016b10341 | 7989b18da1fbbe4c78b6b858683f56fd8017331a | /API_Review/review/serializers.py | e88098491b4dde917ab47c4b0b8e1ae535b0c231 | [] | no_license | Skladkansaeng/ReviewTutorial | 0d9e6f42a7d43b10996a438b19c44f8229127366 | d27159ec0d09303a7561ee4a2cd5dec77569a4f2 | refs/heads/master | 2020-05-31T15:28:53.181395 | 2019-06-05T08:47:15 | 2019-06-05T08:47:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from django.conf import settings
from rest_framework import serializers
from .models import Review
class ReviewSerializer(serializers.Serializer):
user = serializers.CharField()
score = serializers.IntegerField()
review = serializers.CharField(max_length=255)
| [
"noreply@github.com"
] | noreply@github.com |
65d730747c16c944a0023b252b6f89c390b3257a | 1d496285bc93a6d30258868a0cb0af7d2a09f996 | /problem16/threeSumClosest.py | 36dbcd0e03cf9584af5537cc1aee30cbfd59f8ac | [] | no_license | hongtaozhang1/MyLeetCode | 5bb101bee65d7bc6c05e277feaa716b856df5fe5 | 315e85b13d80a861f1cf263e164bc30a4726e77e | refs/heads/master | 2020-05-02T19:36:04.225847 | 2015-08-23T23:15:14 | 2015-08-23T23:15:14 | 41,015,080 | 0 | 0 | null | 2015-08-19T05:35:22 | 2015-08-19T05:26:07 | Python | UTF-8 | Python | false | false | 664 | py | __author__ = 'hongtao'
class Solution:
def threeSumClosest(self, nums, target):
nums.sort()
mindiff = 10000000000
for i in range(len(nums)-2):
l = i+1
r = len(nums) -1
while l<r:
diff = target - nums[i] - nums[l] - nums[r]
i... | [
"zhang490@indiana.edu"
] | zhang490@indiana.edu |
05a469cc480e500bf829d0d976976b2b96478216 | 2d4af29250dca8c72b74e190e74d92f1467120a0 | /TaobaoSdk/Response/SimbaAdgroupOnlineitemsGetResponse.py | f660d7d21eb7fabf204fd071e5a8506e12f10f55 | [] | no_license | maimiaolmc/TaobaoOpenPythonSDK | 2c671be93c40cf487c0d7d644479ba7e1043004c | d349aa8ed6229ce6d76a09f279a0896a0f8075b3 | refs/heads/master | 2020-04-06T03:52:46.585927 | 2014-06-09T08:58:27 | 2014-06-09T08:58:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,175 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set ts=4 sts=4 sw=4 et:
## @brief 获取用户上架在线销售的全部宝贝
# @author wuliang@maimiaotech.com
# @date 2013-03-07 19:54:48
# @version: 0.0.0
from datetime import datetime
import os
import sys
import time
_jsonEnode = None
try:
import demjson
_jsonEnode = demjson.en... | [
"liyangmin@maimiaotech.com"
] | liyangmin@maimiaotech.com |
8a0d027cde859b98af687b1771f43aed9411ad40 | cd8af225356bd5bd97dbd032bb9001b43281b579 | /in-pr/aaaaaaaaaaa.py | dfcbe8defb2dd1cbc4995c369f5278d41dba3118 | [] | no_license | Forgetaccount/pythonfile | e8aca1ebd7b87746c11646562fe12be8d0ff428f | d94aacb6ddff44c8bf5030e4dd743805db10573f | refs/heads/master | 2022-12-19T23:28:58.650432 | 2020-09-18T02:13:39 | 2020-09-18T02:13:39 | 296,490,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,558 | py | from sklearn.model_selection import KFold
import numpy as np
from sklearn.model_selection import train_test_split
import math
f=open('node_num_n.txt','r')#1
node_num={}#node---num
node_n={}#node---asso
for line in f.readlines():
line=line.strip()
s=line.split()
x=s[0]
pinjie=s
node_num[s[0]]=s[1]
... | [
"yukito9@163.com"
] | yukito9@163.com |
68e4482c14a3dab16659aa7b39e7e1d5f4c639ed | edd1adb88112045d16d3e6417117d45ceed4a634 | /classical/tidybot-opt14-strips/api.py | fb141663dc9a4e046bd1d3dc18576e2df06bd7ef | [] | no_license | AI-Planning/classical-domains | 26de25bf23622f95c877960c1d52f444922d8737 | 4bd0b42d89ea02bd38af6f93cf20a0ab0cbda9d9 | refs/heads/main | 2023-04-27T07:55:55.832869 | 2023-03-29T01:46:11 | 2023-03-29T01:46:11 | 253,298,999 | 24 | 12 | null | 2023-04-18T01:45:39 | 2020-04-05T18:02:53 | PDDL | UTF-8 | Python | false | false | 2,822 | py | domains = [
{'description': 'The Tidybot domain models a household cleaning task, in which one or more robots must pick up a set of objects and put them into goal locations. The world is structured as a 2d grid, divided into navigable locations and surfaces on which objects may lie. Robots have a gripper, which moves r... | [
"christian.muise@gmail.com"
] | christian.muise@gmail.com |
86232a9f6b590d5de4eed9f2c2d9903e9cba69bc | 6f2bb5f2e628d1877f5c91d5f523837be96269cc | /users/models.py | deb8b8f802d03b0140d80d5ea45ab5e563151fac | [] | no_license | boryskuczkowski/django-react-tut | 54efa0c08e60af4efcbed617f4bf54698322cf27 | 19d3e47f22afe969f63cd87f16d9843816bd1666 | refs/heads/master | 2022-12-14T15:00:01.051710 | 2018-12-24T21:40:33 | 2018-12-24T21:40:33 | 163,010,578 | 0 | 0 | null | 2022-12-08T03:00:23 | 2018-12-24T17:11:54 | JavaScript | UTF-8 | Python | false | false | 418 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
class User(AbstractUser):
is_student = models.BooleanField(default=True)
is_teacher = models.BooleanField(default=False)
def __str__(self):
return self.username
class Student(models.Model):
user = models.OneToO... | [
"boryskuczkowski@gmail.com"
] | boryskuczkowski@gmail.com |
32751f05ccc8c3974aaefa29038d9385903ee1be | 1f237c3fde884789a8ed82ee877620c45c7efa0a | /2021-2-6/test.py | ea24c1cee5282e4aeb277058fd3e6a42d5814b4c | [] | no_license | shenxuehao/A-C-language-novice | 302cc708b78a31edd1a7870c35b1683692ca81d8 | af1a963d6e7857685f9ae3d846a286317c8a6763 | refs/heads/master | 2023-04-08T15:41:42.809758 | 2021-04-12T02:45:11 | 2021-04-12T02:45:11 | 303,631,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | import multiprocessing
import time
# 跳舞任务
def dance():
for i in range(5):
print("跳舞中...")
time.sleep(0.2)
# 唱歌任务
def sing():
for i in range(5):
print("唱歌中...")
time.sleep(0.2)
if __name__ == '__main__':
# 创建跳舞的子进程
# group: 表示进程组,目前只能使用None
# target: 表示执行的目标任务名(函数... | [
"2398444863@qq.com"
] | 2398444863@qq.com |
2b96a882466a0091c2c06f2b655f16faae4ba04a | c30e9b18ad1c3c08cc44b03bef94fbea15919724 | /emojilibrary.py | f92e8f743d873c90db247eb1f10ca04fb0a8cc2a | [] | no_license | jlollis/ranmoji | c335f055684fa67f2394ac2ba73467b47d473755 | 6996ed4fb65b9d88197726a220ecc82d9ed359a2 | refs/heads/master | 2020-03-26T10:32:49.593383 | 2016-10-29T23:49:10 | 2016-10-29T23:49:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,042 | py | # Thanks to the emoji library from @chazgiese found in emojigen
# https://github.com/chazgiese/EmojiGen/blob/master/emojigen.js
# as a part of the EmojiGen project, https://github.com/chazgiese/EmojiGen
emojis = [
"😀", "😬", "😁", "😂", "😃",
"😄", "😅", "😆... | [
"ghagata@hugeinc.com"
] | ghagata@hugeinc.com |
95ffdd80c52479f6f3280b20217f6b35e155403f | 818b8d509146545c6462f91eb67c2281228e9658 | /src/test/resources/PageObjectRepository/STG/TOIHomePage.spec | 0f8ab03d5797c197ac505f67fab10f4ffb972eb8 | [] | no_license | shaliniqa/TOI_Test_V8 | aef79664fb5e7138cc6534b651c5af458f7cea1b | 59c29c1ebd235f21e14eee5ecca659845fcd8da6 | refs/heads/master | 2020-03-23T00:11:04.243344 | 2018-07-16T11:41:42 | 2018-07-16T11:41:42 | 140,848,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | spec | Times of India
=======================================================
TOI_title xpath //img[@title='News']
PopUp_dactive xpath //a[@class='ntfc_dactive']
=======================================================
| [
"Shalinichaurasia@qainfotech.com"
] | Shalinichaurasia@qainfotech.com |
c0a8667cdf5331a1785f146d4e0cc61f940bbe1b | 65ff9281d4793a1ed3a38fa9d453ae870099be10 | /mysql_query_as_csv.py | e3060322d7bb472f8e80c57e456d09961fe5438d | [] | no_license | gooddestiny/test_script | 417753ebaecfeec338c732ea2f6f2b44c25f4d1d | f0cccfca17e9a75e3101a29755c86b9c19bfd77d | refs/heads/master | 2022-04-20T05:35:18.586864 | 2020-04-21T12:40:08 | 2020-04-21T12:40:08 | 257,578,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | -*- coding: utf-8 -*-_
!/bin/python
import csv
import MySQLdb
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
mysql_host = '127.0.0,1'
mysql_user = 'test'
mysql_passwd = 'yourpw'
dbname = 'db_table'
def main():
# 连接数据库
conn = MySQLdb.connect(
host = mysql_host,
user = mysql_user... | [
"noreply@github.com"
] | noreply@github.com |
00a5019f8170820d450523811adbc8132e5d6e18 | 7db050d1505ed83a820934e6a8593165df4a2659 | /log_food.py | 74dc3c460844d4b09f7693a13d3df9223c5f26a9 | [
"MIT"
] | permissive | closeAI/deepchef-deploy | 992e65fc7a289533602eb984ee01417644a0ee5d | 1ed4f106615b6fc0ccf40c7e1b46780e331c86ea | refs/heads/master | 2020-05-24T03:56:43.145825 | 2019-05-16T21:44:28 | 2019-05-16T21:44:28 | 187,082,959 | 0 | 0 | MIT | 2019-05-16T20:50:43 | 2019-05-16T18:41:24 | Python | UTF-8 | Python | false | false | 2,120 | py | import os.path
import json
from datetime import datetime
class LogFood:
"""Logs useful information for data analysis.
# Arguments
log_record: Dictionary which contains the information. Clears out after every request.
path: Path to the json file.
"""
def __init__(self, log_record={}, path=''):
self.log_recor... | [
"muriz.se@gmail.com"
] | muriz.se@gmail.com |
9e739f30c1f17d12582f91627d1ac5bc795c4cc8 | 6114855b02b3a7f8bf1dc233f80823e879b68076 | /d23_mulltilevel.py | b2d9b38d5a94dd58eb15d6e66c585ac2b9505f33 | [] | no_license | anilmondi/Python-Programs | 79bbf0305b4678779dff23492bbd6d8cd10e1257 | b64f3707fdbc802024522a5da022430766cce312 | refs/heads/master | 2022-11-26T06:48:17.903705 | 2020-07-31T12:17:30 | 2020-07-31T12:17:30 | 284,029,197 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | class A:
def x(self):
print("I am from class A")
class B(A):
def y(self):
print("I am from class B")
class C(B):
def z(self):
print("I am from class C")
class D(C):
pass
o=D()
o.x()
o.y()
o.z()
| [
"noreply@github.com"
] | noreply@github.com |
7b0209b5129a33a20957245a3ed25f1bda5ed1ce | e6d556d97081576da6469cf1e8c1dd14565db2da | /code/tkinter/icons.py | 32bdcc5c4a086dae60cb06cb946bb8bd9480cc34 | [] | no_license | Scotth72/codePractice | 0b7c795050d08a34dff2b99507b20094d233739a | 475482fab0d69f93d936dc1ba8c2511174089b7c | refs/heads/master | 2023-01-19T02:58:40.977634 | 2020-11-26T15:55:47 | 2020-11-26T15:55:47 | 313,863,106 | 0 | 0 | null | 2020-11-26T15:55:48 | 2020-11-18T08:00:39 | Python | UTF-8 | Python | false | false | 234 | py | from tkinter import *
from PIL import ImageTk, Image
root = Tk()
root.title("Learn to use Icons")
root.iconbitmap('../icons/mando.png')
btn_quit = Button(root, text="Exit Program", command=root.quit)
btn_quit.pack()
root.mainloop() | [
"you@example.com"
] | you@example.com |
b9b22331c0e74d708642b6e3f5ee2b5eae60c052 | 702c8d4b3778c97afacb7bb5d861a989e571d878 | /tests/test_http.py | 0354485994227a93cbb73c74db6e002195c2a8c9 | [
"MIT"
] | permissive | JeremyGrosser/clay | 1945b4d79b1a6429d48aae3b07d758531992458f | a54209b234ce195eba7a0dcf0c5ae884a3d83a58 | refs/heads/master | 2021-01-18T06:17:33.253383 | 2015-08-04T21:05:48 | 2015-08-04T21:05:48 | 40,208,420 | 0 | 1 | null | 2018-04-15T15:56:56 | 2015-08-04T20:50:42 | Python | UTF-8 | Python | false | false | 4,839 | py | from __future__ import absolute_import
import httplib
import mock
import clay.config
from clay import http
import urllib2
import tempfile
import shutil
import os.path
from unittest import TestCase
s = mock.sentinel
class RequestTestCase(TestCase):
def test_method_with_method(self):
req = http.Request(u... | [
"jbrown@uber.com"
] | jbrown@uber.com |
8c5267a13b73d13e3e212e033e0f7f72e9eb1be1 | 3657f1b941cf5343645f92179516ebf3e2a49e86 | /backend/core/urls.py | 2e3774c5632f987e2c597501a8cda6d3dc5f9ff2 | [] | no_license | Highoc/folder_explorer | e489c4d8ef4d6199c9ecaff58ee70bfa25244e47 | fa41c7fff2d1829f900ebbd6ff153b598a491158 | refs/heads/master | 2022-12-06T19:52:42.736145 | 2019-09-23T20:42:49 | 2019-09-23T20:42:49 | 209,986,254 | 0 | 0 | null | 2022-11-22T04:15:53 | 2019-09-21T13:03:53 | JavaScript | UTF-8 | Python | false | false | 737 | py | from django.urls import re_path
from .views import FolderCreateView, FolderUpdateView,\
ImageCreateView, ImageUpdateView, ImageDeleteView,\
SearchView, ImageDownloadView
urlpatterns = [
re_path(r'^folder/create/$', FolderCreateView.as_view()),
re_path(r'^folder/update/(... | [
"door0172@gmail.com"
] | door0172@gmail.com |
1398cabe4b4b3d902467f14f0abec5a76178baca | 6dc31356f9ee4bf984b54f1f00c6d249199a37ac | /No.448_Find All Numbers Disappeared in an Array.py | cf49d3ff95b6d91ed7a71826bb46444b9557fd0d | [] | no_license | miayuxin/leetcode | 0016af492744caab7717f9802e823739e64445eb | 0f565cc8a83c9f6143e0b7363a2bb47fb6dea7d0 | refs/heads/master | 2023-03-27T20:58:08.693006 | 2021-04-02T01:21:53 | 2021-04-02T01:21:53 | 261,366,360 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | class Solution:
def findDisappearedNumbers(self, nums):
i = 1
appeardSet = set(nums)
output = []
while i <= len(nums):
if i not in appeardSet:
output.append(i)
i += 1
else:
i += 1
return output
... | [
"ikuyuhsin@gmail.com"
] | ikuyuhsin@gmail.com |
eb6724585a47c16c7058930111a03405d5276fc7 | 69439004c494c2d56018468d3fec8c9e56036fc8 | /tests/zeus/utils/test_auth.py | 5c2197a339a137df799456193c58afdd897db536 | [
"Apache-2.0"
] | permissive | buchiputaobutuputaopi/zeus-1 | 6dbc54e65c925040b1c1e01683625cea49299b4e | 8a606642d9ef8f239df2e8d7079ea4d130d78cb3 | refs/heads/master | 2021-06-25T07:26:52.278251 | 2017-09-06T03:53:04 | 2017-09-06T03:53:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | from zeus import auth
def test_login_user(client, default_user):
with client.session_transaction() as session:
auth.login_user(default_user.id, session=session)
assert session['uid'] == default_user.id
assert session['expire']
| [
"dcramer@gmail.com"
] | dcramer@gmail.com |
4136dbd6bfdbf3a09a15f84027bfc86322f96d4c | eed07a6f822f032718a1b2edb3fef95323353ae6 | /app/views/v1/common.py | 0ffdf937f14538f0f3bf79cd69b652fe1b0acdd4 | [
"MIT"
] | permissive | daghan/Ostrich | 6ffdf586c719ab10ecf6b37ecd6a5e5ef12c2b9d | b12057bee7b8b92aedf09ec40edc97a60340527b | refs/heads/master | 2020-12-03T20:24:31.387673 | 2020-01-02T23:52:31 | 2020-01-02T23:52:31 | 231,474,913 | 0 | 0 | MIT | 2020-01-02T23:16:16 | 2020-01-02T23:16:16 | null | UTF-8 | Python | false | false | 2,277 | py | from app import webapp
from app.models import Search, Order, User, Collection, Utils
from flask import jsonify, request
from app.decorators import async
from pymongo import MongoClient
from app.scripts.related_items import getRelatedItems
import json
@webapp.route('/startSession')
def startSession():
if 'android_... | [
"anant718@gmail.com"
] | anant718@gmail.com |
88748e4c1737c0724d79ac3be6be3022e4666080 | 3247f3d9b24e680543cd2a11538e126c520b4c8c | /dictpy.py | 56addbdcfb7ac2f8447890fbee798022c275c7fd | [] | no_license | TheM4st3r/DictyPy | f5c804ce49624aa807550d57a4664f879ee23610 | 2fda4a6d859c4fb66e7fee25b0db6b07d266440f | refs/heads/master | 2021-08-26T07:07:36.916547 | 2017-11-22T03:15:47 | 2017-11-22T03:15:47 | 111,629,772 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#Por Derick Santos
from PIL import Image
import pytesseract
import urllib.request, urllib.parse, urllib.error
import platform
import time
import os
import re
#Banner
def banner():
if platform.system() == "Windows":
os.system("cls")
else:
os.system("clear"... | [
"noreply@github.com"
] | noreply@github.com |
6dc26d209cbda790e1095acf3e4839194eb290be | b3ce060c84549a0742393f4f0430a5e55b4cac29 | /backend/devices/migrations/0006_auto_20161222_1133.py | edf5eb771a0a4078aeebcfcb0c2a5b76e24e1658 | [] | no_license | aljazb/Website | 0443026d3ab631a5836fb02b9874ab3162ba9fbd | 88ea46883f95a87c5dce384e137848916e51d34e | refs/heads/master | 2021-01-13T08:06:18.907613 | 2017-01-14T12:11:04 | 2017-01-14T12:11:04 | 71,723,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-22 11:33
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('devices', '0005_auto_20161222_1132'),
]
operations... | [
"aljaz.blazej@gmail.com"
] | aljaz.blazej@gmail.com |
994c474893829f7b9975bc0918d1ea72557c4f24 | 2aa3560f607f4ba04f8e989a95c55f34a1464ebb | /project/Forms/models.py | 822d5e0d836338ec74ee132737868290ed2f9a75 | [] | no_license | amilalizada/metm_forms | 1822ac21a5fc037aed1943d0f52914d3c5821852 | c75f02fb13fcfaaf04bd635f69b84628afdbfd05 | refs/heads/master | 2023-06-13T21:59:43.584475 | 2021-06-30T22:17:11 | 2021-06-30T22:17:11 | 381,845,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,655 | py | from django.db import models
from datetime import datetime
from django.utils.safestring import mark_safe
import json
# Create your models here.
class Forms(models.Model):
name = models.CharField('Name',max_length=1024)
is_published = models.BooleanField(default=False)
created_at = models.DateTimeField(aut... | [
"elizade_amil@inbox.ru"
] | elizade_amil@inbox.ru |
c7eb94d3802446203c14a9fe04bd8e1df2843806 | 7f8cf59da8ade5ea3b6018722be1bbd70959dc4a | /main.py | 7441d446e830e290e73df09e03291d875c4fada3 | [
"MIT"
] | permissive | Amenkba/jackbot | 4d95462ad6c36a9c1b5506958e4e6bb0bd71ec9b | 9f1ef40f6a16d0d6a2fe34acda852ba846ee7d2b | refs/heads/master | 2023-01-30T01:35:39.981258 | 2020-12-10T17:00:02 | 2020-12-10T17:00:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,334 | py | #!/usr/bin/env python3
import discord # discord library
from discord.ext import commands # discord library extension to make stuff easier
import random
import minespy # library to make minesweeper boards
import ttt as tictt # library to help with tic tac toe
import c4 as con4 # library to help with connect 4
import r... | [
"lukebinkofsky@gmail.com"
] | lukebinkofsky@gmail.com |
e46adcbf04ac884ff740ca93934d7d39b5327460 | a48483634bc14ab1dbad3579c0f6bf5778235466 | /Mod 19 Naive Bayes/Spam Py.py | 9ca619449f0fd78ce377c32b249226ea00a93fd8 | [] | no_license | RajKumar1809/360DigitMG | 00a6d57aa9ad1a4d83744a43c413ab92b91e3cb3 | fd2c078ea29d1fe1f6b3f641bc39ca226d837108 | refs/heads/main | 2023-08-29T09:55:27.264523 | 2021-10-21T18:27:37 | 2021-10-21T18:27:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,779 | py | import pandas as pd #data manipulation
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer
from sklearn.naive_bayes import MultinomialNB
from sklearn.naive_bayes import GaussianNB
from sklearn.naive_bayes import BernoulliNB
import re #cleaning the data
sms_raw = pd.re... | [
"70655245+Gopal-Data@users.noreply.github.com"
] | 70655245+Gopal-Data@users.noreply.github.com |
074a6d628a6afadd4503afdd629125f1a3ede4c6 | ac681706a3170c20a315f779c570195ae90cf7c2 | /SEPP_Project/Menu/migrations/0002_product_details_special.py | 1f547fabe6db5b13919211690ca33ae5a59f7aa6 | [] | no_license | Vrundan28/SEPP-Project | 8f0c635f9414b7eea464004c5e39367b5e7682d1 | 3daf29bb7deb214ef9cb5f73347207715d0d1835 | refs/heads/master | 2023-03-28T18:06:59.279931 | 2021-04-02T12:04:27 | 2021-04-02T12:04:27 | 329,265,454 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # Generated by Django 3.1.5 on 2021-03-09 17:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Menu', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='product_details',
name='special',
... | [
"jainil04trivedi@gmail.com"
] | jainil04trivedi@gmail.com |
7df41672480b20260359890a5b467b6b881f32cc | 2872aeb06424b381204ee60a970be154cfa15c07 | /day3/part2.py | 69c97b27edb891110178a7e1cc89c27717d87072 | [
"MIT"
] | permissive | jwplante/adventofcode2019 | 9d099abc65a6e9f8f6fb058ba56a31dc12d2d257 | bd1728f7a93651104cd5f42af813b3cb77940146 | refs/heads/master | 2020-09-22T13:10:05.874140 | 2019-12-17T19:35:12 | 2019-12-17T19:35:12 | 225,211,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,559 | py | class Point:
# Constructor
def __init__(self, x, y):
self.x = x
self.y = y
def __str__(self):
return "Point(" + str(self.x) + ", " + str(self.y) + ")"
# Calculates the distance between two points
def distanceTo(self, p):
return abs(self.x - p.x) + abs(self.y - p.y)
... | [
"jplante@wpi.edu"
] | jplante@wpi.edu |
cb0efe63e46a6d718265b4dce800debafedace6d | d276defb88bfca8e4619f94df70531bdd41d8c8d | /tests/test_binary_search.py | a72b95b33d8dd4eb5b2b8885216bad8c96ed7b47 | [] | no_license | ArturMalkov/Algorithms-in-Python | 037549d5fad981e34a4613951087c79ad6b7e279 | 043137d8622594f0ae3180264db6d38453877a4e | refs/heads/master | 2022-01-15T04:23:06.728621 | 2019-01-29T15:12:21 | 2019-01-29T15:12:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | import random
from unittest import TestCase
from algorithms.search.binary_search import binary_search
class TestBinarySearch(TestCase):
arr: list
def setUp(self):
length = random.randint(10, 1000)
self.arr = range(0, length)
def test_find_value_in_array(self):
val = random.randi... | [
"peter.j.ullrich@gmail.com"
] | peter.j.ullrich@gmail.com |
96b9713d9cbdcfaf580b86638d5ce9c0f08f5285 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/GluGluToHToTauTau_M-100_8TeV-powheg-pythia6/Summer12_DR53X-PU_S10_START53_V7C-v1/AODSIM/PAT_CMG_V5_16_0_1377467448/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_4/run_cfg.py | d8c7fb4def9e957dabac9d51c5ec12ae8fa44d92 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/GluGluToHToTauTau_M-100_8TeV-powheg-pythia6/Summer12_DR53X-PU_S10_START53_V7C-v1/AODSIM/PAT_CMG_V5_16_0_1377467448/HTT_24Jul_newTES_manzoni_Up_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
e62a5a241308dfd1cd33f0003ec928e127b1c4f6 | 59509a21a049f50dbd43e109c51cc1b35cef9b81 | /ros/src/twist_controller/twist_controller.py | 2eaeabeb5e7e46a33342b908e5766b27f37fdba2 | [] | no_license | cooloney/system-integration-project | d8667add91e7ea940ca2107fbe68b82070f22e1a | 48ae6ce8127294c602a48550ce51f5465ee19cb7 | refs/heads/master | 2021-03-27T09:11:09.840227 | 2018-01-08T15:49:36 | 2018-01-10T05:59:49 | 116,696,187 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,242 | py | from pid import PID
from yaw_controller import YawController
import rospy
GAS_DENSITY = 2.858 # this is in kg / gallon it seems
MPH_TO_MPS = 0.44704
MAX_STEERING = 0.43 # 25 degrees in radians
class Controller(object):
def __init__(self, **kwargs):
self.vehicle_mass = kwargs["vehicle_mass"]
self.... | [
"bryan@xmotors.ai"
] | bryan@xmotors.ai |
bc1e4713048fff7e4cc96fdf6e7e0c26fb0e0f23 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/baiduads/dpacreativefeed/model/update_creative_feed_response_wrapper_body.py | b75f4e07354b58dd0fce557dbdad17c8b1b70fd0 | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 11,241 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from baiduads.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
ch... | [
"jiangyuan04@baidu.com"
] | jiangyuan04@baidu.com |
868b7ff049ad97d4c8b0eddbdb0bf75e9774f4a1 | 84ccc074405ff485f9a9f803358d3d08363e86b8 | /phylogenomics/generate_au_topologies.py | 38343ae3e2815b4ffea2310d503def513d7e7bb2 | [
"MIT"
] | permissive | maxemil/picozoa-scripts | dad98aba99eb2dd0804f5e553c7621b0531de255 | 89a4e961e9a9bdc298a7d73cc3f03122c4df4229 | refs/heads/master | 2023-04-09T20:19:19.787002 | 2021-08-17T13:44:23 | 2021-08-17T13:44:23 | 307,336,011 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,585 | py | import ete3
def get_ancestor(nodes):
ancestor = nodes[0]
for n in nodes:
ancestor = ancestor.get_common_ancestor(n)
return ancestor
def get_clade(tree, clades):
prr = [l for l in tree.get_leaves() if any([c in l.name for c in clades])]
return get_ancestor(prr)
def make_sisters(tree, clade... | [
"max-emil.schon@icm.uu.se"
] | max-emil.schon@icm.uu.se |
c126c43fda055ac72e8fe2b31e62891056509d59 | 8e7ab055201e6afd26a36686c9a806e41d34d099 | /Quiz/views.py | aaa8d25afe37a826705fa99e9c3955ed0afe6df1 | [] | no_license | grupo15quiz/QUIZ_CHACO | 98be3e56dbda81fc70652b666ce1d767eb7e94cb | 5430a655fb53d5993a2b9e3ded6c157e259676ec | refs/heads/main | 2023-07-14T21:35:04.881852 | 2021-09-08T18:35:51 | 2021-09-08T18:35:51 | 402,938,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,932 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth import authenticate, login, logout
from .forms import RegistroFormulario, UsuarioLoginFormulario
from .models import QuizUsuario, Pregunta, PreguntasRespondidas
def inicio(request):
context = {
"bienvenido": "Bien... | [
"carlaavaleria@gmail.com"
] | carlaavaleria@gmail.com |
c9a9244ebd51e60c2febd39b2b422a97a3369412 | 4152d8ee5c8fd172663938a70d595679078040f0 | /getter.py | de9cc397780f6513cb5bc1b3ab7ce97225810f71 | [] | no_license | jjapp/ibtrade | c6055afabb2852d7e05a3157aa0cc7027d3245fd | 574a4e7d8ea189eeb6366d25fc68d612ccea051b | refs/heads/master | 2021-01-19T00:43:57.680643 | 2016-11-11T23:57:53 | 2016-11-11T23:57:53 | 73,217,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | # -*- coding: utf-8 -*-
'''
file to get and print real time quotes from interactive brokers
'''
from ib.opt import Connection
def print_message_from_ib(msg):
print(msg)
def main():
conn = Connection.create(port=7496, clientId=100)
conn.registerAll(print_message_from_ib)
conn.connect()
#In future... | [
"appertjt@gmail.com"
] | appertjt@gmail.com |
5e58216533cbea36156578ada9e27bf29bc35781 | b51d62fff72dadb82a8aef037a2923e738d8399d | /ganttlogger/modules/WinObservePackages.py | 47941e9faece46e7f39b3c7170f90700a7bee469 | [
"MIT"
] | permissive | KagenoMoheji/GanttLogger | 58e3d96384b97e77192f07d99e49654b643ce558 | 2d7c88e1c48d56126904d14e780a2588c69336fc | refs/heads/master | 2022-01-18T06:25:12.793540 | 2019-08-07T16:11:33 | 2019-08-07T16:11:33 | 193,551,382 | 0 | 2 | null | 2019-08-07T16:11:34 | 2019-06-24T17:39:49 | Python | UTF-8 | Python | false | false | 3,399 | py | from datetime import datetime
import time
import psutil
import win32gui as wg
import win32process as wp
import ganttlogger.modules.Global as global_v
class ActiveTabObserver:
uuid = ""
data_process = None
def __init__(self, uuid, is_alone):
self.uuid = uuid
if is_alone:
... | [
"reeg.gold.vercerms@gmail.com"
] | reeg.gold.vercerms@gmail.com |
19656a2f3fca9bd207d78405f357aba554eddc54 | 4164f6b7908fe18892cf50693603d67ffeea88b8 | /pyWorkHorse.py | d46a26cdbca039912bcb21925f4e317eb26f64f3 | [] | no_license | cpaternostro/pyWorkHorse | c7cded1267a0b8dede4903ed839e843b9351ecb6 | b493dda31fa9442ab9d3ec19e2911ede7ec6624d | refs/heads/master | 2023-03-17T06:18:20.795669 | 2020-09-24T06:59:38 | 2020-09-24T06:59:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,278 | py | #!/usr/bin/python
#-*- coding: utf-8 -*-
import sys
import os
import struct as st
import argparse as ap
import datetime
from utils.pyGeneralClass import *
# convenience function reused for header, length, and checksum
def __nextLittleEndianUnsignedShort(file):
"""Get next little endian unsigned short from file"""... | [
"emmanuel.poizot@lecnam.net"
] | emmanuel.poizot@lecnam.net |
060f125f2240b9ac37d4ccf9903b17cea4f5ac6f | 89bac5c002bbf76547066ded9446de50355b3771 | /PythonSource/executionnode/components/base/pc.py | 233bec1bdfa8bff9aa83ee54532de50a56756422 | [] | no_license | Zylanx/TIS-100_EvalKit | c74aaae885182a92831461ebc8b2c3d1ae7ed357 | 651f3628edc5cc9859ec225834ca1ff0973c91e3 | refs/heads/master | 2021-05-01T10:12:32.984351 | 2018-03-05T08:14:57 | 2018-03-05T08:14:57 | 121,105,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | __author__ = 'Zylanx'
from myhdl import *
from executionnode.utils import PCControlInterface
@block
def PC(clk, rst, clkEnable, controlBits: PCControlInterface, dataLoad, pcOut):
""" PC (Program Counter).
inputs:
clk -- clock
rst -- reset
clkEnable -- clock enable
load -- load value into program counter
... | [
"zylanx@users.noreply.github.com"
] | zylanx@users.noreply.github.com |
fc0385958dcc0472b849ea4e05c33d17a5e4d777 | 23a636ea83b936e3f8ae4e45c4602647b352c591 | /src/receive/receive_aplication.py | 20c86ed45b90672497016a5a206fcef5e2135d2b | [] | no_license | enricofd/camada_fisica_client_server | d319864df0a814a97325e69c14ce51f6f53a2d8c | a383ab7a16fab356bcd350b5e50965315451f714 | refs/heads/master | 2022-12-09T18:40:16.713114 | 2020-09-04T22:08:32 | 2020-09-04T22:08:32 | 292,954,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,674 | py | # -*- coding: utf-8 -*-
# Enrico F. D.
# 09/03/2020
# Insper - Camada Física da Computação
from src.lower_levels.enlace import *
import time
serial_name = "COM7"
def receive():
try:
com = Enlace(serial_name)
com.enable()
rx_buffer, time_sent = com.get_data()
time_sent_main_ra... | [
"noreply@github.com"
] | noreply@github.com |
2e41be46d93b69388225a8069b630b3049d72b40 | 3cf11edf4468545e72bdada3121367a586fc5774 | /CustomContent/settings.py | 8bea5c3934dd99aa9444a5148414be2ec68855dd | [] | no_license | SharmaLlama/CustomContentAggregator | 0e6cdaf35584e1b84b81fb1441b997551e093058 | c5307c48ab81f9a4020ae3c33da50b7c85cb356a | refs/heads/master | 2023-03-29T05:55:13.681695 | 2021-03-31T15:02:05 | 2021-03-31T15:02:05 | 352,039,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,164 | py | """
Django settings for CustomContent project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"sharmautkarsh0504@gmail.com"
] | sharmautkarsh0504@gmail.com |
6429ff3a5cdd451090741ad95d4eb7c834662443 | 7ae0f100b49763f79b276260bbc0e87bd904da3e | /src/wdf/management/commands/prepare_dump.py | e65ea353701bb3108f1a5dec39c80cfd359756f9 | [] | no_license | wondersell/wildsearch-indexer | d88a5b3bce17acc1cb61d365f55ab5d9f63f61ae | 67d5f29f6d405c055cfa211ddf0b70521382a671 | refs/heads/master | 2023-07-19T00:33:34.371231 | 2020-12-31T11:20:00 | 2020-12-31T11:20:00 | 285,488,583 | 2 | 0 | null | 2021-07-19T06:26:44 | 2020-08-06T06:09:51 | Python | UTF-8 | Python | false | false | 1,339 | py | import logging
from django.core.management.base import BaseCommand
from wdf.exceptions import DumpStateError
from wdf.indexer import Indexer
from wdf.tasks import prepare_dump
class Command(BaseCommand):
help = 'Prepares job for importing' # noqa: VNE003
def add_arguments(self, parser):
parser.add_... | [
"artem.kiselev@gmail.com"
] | artem.kiselev@gmail.com |
5fc93e7f2f9831b87b87d703437ee1b48abb649a | 4348bd57a84f8cb25fa84595cc494f61ff78f56e | /bentoml/artifact/fastai_model_artifact.py | 4b0b5769b30f99356c8bf27fff13778d4fec339d | [
"Apache-2.0"
] | permissive | Korusuke/BentoML | 656db91e6e8ae61a24631a70add4ef8a52efab92 | 46267647e896006d436305f107422b7a96cdbec8 | refs/heads/master | 2022-12-02T03:03:45.449686 | 2020-07-22T05:35:59 | 2020-07-22T05:35:59 | 271,658,473 | 2 | 0 | Apache-2.0 | 2020-06-11T22:28:36 | 2020-06-11T22:28:36 | null | UTF-8 | Python | false | false | 4,027 | py | # Copyright 2019 Atalaya Tech, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | noreply@github.com |
604de96287cbc0f5d49f5b3f1962d89231a0d7f7 | 08a843580249deff3475c0585ed8d132c813b697 | /src/oomugi/model.py | 5639bd6f4c3cdfe59e0f6e977019d53c6a6e23d3 | [] | no_license | umeykato/omg_instance_segmentation | 854603afadd657f93c4a12f74ef0c910ff9b0656 | ef7b484f7a6ae36f1b7ab36710939e47e0b7df8e | refs/heads/master | 2020-04-07T06:51:16.827300 | 2018-12-26T02:07:31 | 2018-12-26T02:07:31 | 158,152,905 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,723 | py | """
This implementation is based on following code:
https://github.com/milesial/Pytorch-UNet
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
class double_conv(nn.Module):
'''(conv => BN => ReLU) * 2'''
def __init__(self, in_ch, out_ch):
super(double_conv, self).__init__()
... | [
"y_kato@umelab.jp"
] | y_kato@umelab.jp |
1eee8f7e222c26b2fd3155eedee17fd766f05e79 | a483fa5309fde5a915308c51791c2d34786e2035 | /bin/forward_ivec_ln_lstmp.py | a81f085fb144716a221a1a2e48b1f826bc96df84 | [] | no_license | gunkisu/asr | 699d3ce14b68aea0dab2024461a122e4b8e769b4 | 0244e9c91d69f51df1251afda2a4739e7dd81ac7 | refs/heads/master | 2021-07-06T21:49:45.744659 | 2017-09-27T19:50:50 | 2017-09-27T19:50:50 | 105,699,109 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,179 | py | from __future__ import print_function
import pickle
import sys
import argparse
import theano
from theano import tensor as T
import numpy
from lasagne.layers import get_all_params, count_params
from lasagne.layers import get_output
from libs.lasagne_libs.utils import set_model_param_value
from models.gating_hyper_nets... | [
"taesup.kim@umontreal.ca"
] | taesup.kim@umontreal.ca |
d1e8d70b961b1be945693a91169e369f2646ef5b | ac216a2cc36f91625e440247986ead2cd8cce350 | /appengine/findit/pipelines/test/send_notification_for_culprit_pipeline_test.py | 511524ebf3afcb0224df7cc05d4923d14340ae07 | [
"BSD-3-Clause"
] | permissive | xinghun61/infra | b77cdc566d9a63c5d97f9e30e8d589982b1678ab | b5d4783f99461438ca9e6a477535617fadab6ba3 | refs/heads/master | 2023-01-12T21:36:49.360274 | 2019-10-01T18:09:22 | 2019-10-01T18:09:22 | 212,168,656 | 2 | 1 | BSD-3-Clause | 2023-01-07T10:18:03 | 2019-10-01T18:22:44 | Python | UTF-8 | Python | false | false | 1,037 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import mock
from common.waterfall import failure_type
from pipelines.send_notification_for_culprit_pipeline import (
SendNotificationForCulpritPipeline)... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
3624b72aec7c47907590fc95a3e60425fa317756 | 6d0b699ccd256917999a75b1ea082f413528d607 | /Day 9: Recursion 3 | 3ea7c157fd6c8faf6f9753668a9bdd878e25234f | [] | no_license | usatya99/30-Days-of-Code | 80da412cee4e121392d8afe356cc9c09411c87b6 | d9a0d656d1b8c8c6475f776520d039d5174645dc | refs/heads/master | 2022-11-26T01:03:59.984712 | 2020-08-02T06:11:50 | 2020-08-02T06:11:50 | 277,282,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the factorial function below.
def factorial(n):
c=1
for i in range(1,n+1):
c*=i
return c
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
n = int(input())
result = factorial(n)
... | [
"noreply@github.com"
] | noreply@github.com | |
b8ecdf70b95876d080b65ecd3955f70116dff885 | 002b6fc2b459fe2b63c782aef80f3e1f851c9b39 | /myTeam2.py | 526a5d78a5eb746bdc0e2d5682236b728b19050c | [] | no_license | EricMLee/pacman | 0e4b2f0c2b368bab779b6786a0398adbc6a9220c | ef1f2d46c5e0bbd6ccab3fbab1d37fe18c539202 | refs/heads/master | 2023-03-31T20:29:37.494332 | 2021-04-08T04:13:01 | 2021-04-08T04:13:01 | 343,594,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,614 | py | from pacai.util import reflection
from pacai.core.directions import Directions
from pacai.util import counter
from pacai.agents.capture.reflex import ReflexCaptureAgent
from pacai.agents.capture.capture import CaptureAgent
from pacai.core import distanceCalculator
import random
import math
def createTeam(firstIndex, s... | [
"EricLee0497@gmail.com"
] | EricLee0497@gmail.com |
1b2603db33a6d30fc510ef9b6fd941c16bf4721d | c4750ec6eeda0092e3a5515d4878cfe42e117e90 | /test/test_inference/test_compiled.py | d863528604a3ebdc39f003c9c320c12eab01a952 | [
"MIT"
] | permissive | phgn0/jedi | 6e5e83778fe699d9735ab52a46ee94dec2a8be99 | eb9af151ea0f447ab9d5d00d14e8fee542bc09d1 | refs/heads/master | 2020-09-02T23:38:36.442447 | 2019-11-10T14:03:49 | 2019-11-10T14:03:49 | 219,332,443 | 1 | 0 | NOASSERTION | 2019-11-03T16:42:27 | 2019-11-03T16:42:26 | null | UTF-8 | Python | false | false | 5,139 | py | from textwrap import dedent
import math
import sys
from collections import Counter
from datetime import datetime
import pytest
from jedi.inference import compiled
from jedi.inference.compiled.access import DirectObjectAccess
from jedi.inference.gradual.conversion import _stub_to_python_value_set
def test_simple(inf... | [
"davidhalter88@gmail.com"
] | davidhalter88@gmail.com |
d1761605154de9ab4c388192b6d4be3b6ab6c031 | f4b75bdd45185b90a1037bc9e448933653ea086e | /conda_primer_db/primer_db_app/primer_db_site/tests.py | 576dd6a57f15debf93aadff6e94a6ce1ccca5ebb | [] | no_license | Ashley-Pritchard/Primer_Database_App | 9965a3f9deddb85d76053ec01a74a477946bee28 | e94a212a3d316bfd50d60d066cca9e669441ee4a | refs/heads/master | 2022-12-10T03:32:29.017526 | 2020-09-09T12:27:39 | 2020-09-09T12:27:39 | 231,628,505 | 3 | 1 | null | 2022-12-08T04:19:55 | 2020-01-03T16:51:47 | Python | UTF-8 | Python | false | false | 5,369 | py | from django.test import SimpleTestCase, TestCase, Client
from django.urls import reverse, resolve
from primer_db_site.views import *
from primer_db_site.models import *
import json
#unit tests
#url tests
class TestUrls(SimpleTestCase):
def test_search_url_resolves(self):
url = reverse('search')
self.assertEqu... | [
"ashley.pritchard@ouh.nhs.uk"
] | ashley.pritchard@ouh.nhs.uk |
f7ecb1e8ebd33827ff942b8c272360739540dd95 | 7fb1b5d89d4803c88d6da0adda7c913c9ceae884 | /KaggleLearn/DogVsCat/vgg16_getv.py | e13ef1e1f3fd70f48499813b2249c2f729e13082 | [] | no_license | hzy0110/PythonAI | 4102ba1f8a2ecace2bfa10e2c02534d11980a897 | f1f3d6c6ebd03ef70ea90ac67bfdf3b4289c7e9b | refs/heads/master | 2021-03-12T19:32:40.788382 | 2019-09-30T15:38:37 | 2019-09-30T15:38:37 | 102,879,764 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,665 | py | ########################################################################################
# Davi Frossard, 2016 #
# VGG16 implementation in TensorFlow #
# Details: ... | [
"hzy0110@163.com"
] | hzy0110@163.com |
c4e8dbc6684184e78245deb69b8a5f098817f5d9 | f6f632bee57875e76e1a2aa713fdbe9f25e18d66 | /python/CrackingTheCodingInterview_6/01_08_zero-matrix-lcci.py | 064080aa330c0cdb7f50aa9177f2c29ebc6ce08e | [] | no_license | Wang-Yann/LeetCodeMe | b50ee60beeeb3661869bb948bef4fbe21fc6d904 | 44765a7d89423b7ec2c159f70b1a6f6e446523c2 | refs/heads/master | 2023-08-07T05:31:23.428240 | 2021-09-30T15:33:53 | 2021-09-30T15:33:53 | 253,497,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : Rock Wayne
# @Created : 2020-07-12 00:02:47
# @Last Modified : 2020-07-12 00:02:47
# @Mail : lostlorder@gmail.com
# @Version : 1.0.0
"""
# 编写一种算法,若M × N矩阵中某个元素为0,则将其所在的行与列清零。
#
#
#
# 示例 1:
#
# 输入:
# [
# [1,1,1],
# [1,0,... | [
"wzy-511@163.com"
] | wzy-511@163.com |
ed8c41ec34cf718b87ecb1eb8f5ac9e984af1550 | 00f3468d8917ac0c1b4df8b4dc50e82c0d9be3fa | /hhalign_with_hmms.py | d7ff5f7a284a3efec299ba27c0e89dd5efbc57e9 | [] | no_license | berkeleyphylogenomics/BPG_utilities | 4e332bb401b8c057502a1a0a1d532396bfff9542 | bbf5df137a0a459598c3f9073d80f0086e5f7550 | refs/heads/master | 2021-01-01T19:21:13.740575 | 2014-11-05T18:40:31 | 2014-11-05T18:40:31 | 24,867,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,914 | py | #!/usr/bin/python
"""
run_hhalign_with_input_hmms.py Terry Farrah May 2008 Sjolander lab
Align 2 HMMs using HHalign.
Do not let HHalign generate HMMs; instead, provide HMMs.
Optionally, use PSI-PRED to generate secondary structure and
tell HHalign to use this info in its alignment.
Warnings:
Must run in same d... | [
"afrasiabi@berkeley.edu"
] | afrasiabi@berkeley.edu |
0c9f915ad0956041421ba3152c8f1d36b03896a0 | b0a64cf2d36c7da2c81f920cab6f67e8a8e5b2d4 | /models/VGG_mini_BN_PReLU.py | c0390f9195d03450ae354830944220579419c08a | [] | no_license | OminiaVincit/chainer-cifar10 | 69407a114e35b9100af56142092ee9e14577a423 | 449c55f205ea5fd59313598af0f27feb51b18da4 | refs/heads/master | 2021-01-19T06:31:02.379472 | 2015-07-15T20:29:14 | 2015-07-15T20:29:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,699 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from chainer import Variable, FunctionSet
import chainer.functions as F
class VGG_mini_BN_PReLU(FunctionSet):
"""
VGGnet for CIFAR-10
"""
def __init__(self):
super(VGG_mini_BN_PReLU, self).__init__(
conv1_1=F.Convolution2D(3, 64, 3... | [
"shunta.saito@gmail.com"
] | shunta.saito@gmail.com |
63352d406cc1efddc9d08d0be72f31fc7f1f32b9 | c16ce21d7ee508f1e4330a06fe211210f3bc0fcd | /sumlinkedlist.py | 3b3fa1d9a759581c91b36aeab62ffe7421ac7313 | [] | no_license | lavi09/Linked-Lists | 9e2e171408c5443852d22d08203ef7174e47d2a2 | 3d5ad3dee49553f31d2fbb6521c32927877f37b1 | refs/heads/master | 2020-06-03T03:27:58.037550 | 2019-06-17T04:42:18 | 2019-06-17T04:42:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 11 10:18:28 2019
@author: Lavi
"""
class Node:
def __init__(self,data):
self.data=data
self.next=None
class LinkedList:
def __init__(self):
self.head=None
def push(self,new_data):
new_node=Node(ne... | [
"noreply@github.com"
] | noreply@github.com |
b8432a646bf06d2c41da4bf584e5132b94d497b3 | bd9b3bab0573ea0740b9fad6f1964bee7e46cb65 | /cachehandler.py | dd5eae14653be931b318f8e3e12a5b11c0e547ab | [] | no_license | meain/cachehandler | de3140eadbf19271d22ce65eecd40b5c0c8395f2 | e0c392a2ec7bc792460e097801d1b5642e8fa39e | refs/heads/master | 2021-01-09T20:40:38.197453 | 2016-07-07T11:10:47 | 2016-07-07T11:11:11 | 62,623,966 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,389 | py | from unqlite import UnQLite
import datetime
import os
import urllib
try:
import pickle
except:
import cPickle as pickle
class apihandler:
'''
Apihandler:
* Cache data is stored in a NoSQL database
* On incoming api request check for availability in cache for those which can be cached, o... | [
"abinsimon10@gmail.com"
] | abinsimon10@gmail.com |
1a0cdef8bd9da9edcf9f2a4dd5a6df09997594fa | 7d23cbeaf8fae2dca34180d8fa084b14c28cd1fc | /src/test/common/browser.py | 187cfe84bc5d7f43e67989726a84ddecb5fe1a76 | [] | no_license | Cnnnnnnn/test-framework | e29dfb34474f8e8fe52a2007334cc1668d046077 | 73f6e8fb88b8dc38bb53d3a88b7ae2faa9aa3521 | refs/heads/master | 2020-04-03T09:52:25.326538 | 2018-10-30T05:27:40 | 2018-10-30T05:27:40 | 155,178,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,633 | py | import time
import os
from selenium import webdriver
from src.utils.config import DRIVER_PATH, REPORT_PATH
# 可根据需要自行扩展
CHROMEDRIVER_PATH = DRIVER_PATH + '\chromedriver.exe'
#FIREFOXDRIVER_PATH = DRIVER_PATH + '\geckodriver.exe'
TYPES = {'firefox': webdriver.Firefox, 'chrome': webdriver.Chrome}
EXECUTABLE_PATH = {'fir... | [
"cnn@thinkerx.com"
] | cnn@thinkerx.com |
45896edf844d2e31964bee92787f3b953bb9ff0b | 82b4ec4abbdcdf6a790fc91365e1863517a28e1c | /build/week4_moveit_config/catkin_generated/pkg.installspace.context.pc.py | b4b8a74ab0cc056862c8e4a053b9251357fedf23 | [] | no_license | SiChiTong/ROS_factory_picknplace | 5fb21b703852465c1f87e7994803344db54f13f7 | 1365d465889a9960fce0b7a6872ba403d7fd2626 | refs/heads/master | 2022-04-17T10:36:57.887468 | 2020-04-12T03:41:35 | 2020-04-12T03:41:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | 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 = "week4_moveit_config"
PROJECT_SPACE_DI... | [
"pring5@ford.com"
] | pring5@ford.com |
31dfa1864febcd5467c041ab7587d731a7dcf566 | 18ba42a5238a03c0ad651f30cff4fca324b8f0cf | /prediction_bias.py | 6e9aa60698beb6f81921183ded43c2d6af80bb85 | [] | no_license | nassimtaleb/feature_somellier | 381de7185490090197441cfc10c26824c187d62c | 67c90713a8e5d2c08b18c106e1c854b1b26fce99 | refs/heads/master | 2022-12-13T18:38:24.673292 | 2020-08-24T18:09:14 | 2020-08-24T18:09:14 | 289,996,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,464 | py | #prediction_bias.py
from .statistic_functions import *
import math
import scipy as sc
from scipy import stats
import pandas as pd
def object_columns(df):
return filter(lambda x: df[x].dtype == object , df.columns )
def continuous_columns(df):
return filter(lambda x: df[x].dtype in (int,float)... | [
"felibivortha@ar0fvfch1rbl415.ml.com"
] | felibivortha@ar0fvfch1rbl415.ml.com |
3e59bc00c410829dd3189f765d7800bbf2858f7b | a626636f537685b580662cdaba59df545443707f | /apps/brand/models.py | 0937c60f0fc229bd19309bd7212fbf3d4dab1a50 | [] | no_license | friacode/rambutan | a26e9575cba94d2d37416a268935f6a3ad196083 | cb00f850293e3ad5e1a997f4e6db409643dbeb8f | refs/heads/main | 2023-04-28T13:31:20.566681 | 2021-05-10T12:47:55 | 2021-05-10T12:47:55 | 355,410,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | from django.db import models
# Create your models here.
class Brand(models.Model):
name = models.CharField('상품 브랜드', max_length=100, null=False)
create_at = models.DateTimeField('Create Date', auto_now=False, auto_now_add=True)
updated = models.DateTimeField('Update Date', auto_now=True, auto_now_add=Fals... | [
"friacode@gmail.com"
] | friacode@gmail.com |
aee8c7382e9ef929fa8a4ad1ab7d892c274853c4 | aef3c65af32b823178b14849fd041a3b8c5af4bf | /logisticR_example.py | d36f024f7f04ec3c276720316d42fcfcdc1848e9 | [
"MIT"
] | permissive | endsley/sklearn_example | dd57fcc4df84fcd19aa34be7adb4f3b3bb5d7abe | cc16219c6ca1314106f8eb991479329b4fac532c | refs/heads/master | 2021-06-16T10:12:10.244605 | 2021-05-11T17:32:55 | 2021-05-11T17:32:55 | 176,625,922 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | #!/usr/bin/env python
import numpy as np
from sklearn.datasets import load_iris
from sklearn.linear_model import LogisticRegression
X = np.vstack((np.random.randn(4,2), np.random.randn(4,2)+5))
Y = np.hstack((np.zeros(4) , np.ones(4)))
clf = LogisticRegression(random_state=0).fit(X, Y)
clf.predict(X)
print(clf.score(... | [
"juliusctw@gmail.com"
] | juliusctw@gmail.com |
5e1a2a2c6ab177e2393c7ea72fd3730a6fa52ec4 | 83c585b9cb7318e5dfd2c13a1da25e1f32c41d2b | /SKIN_TEST/madgwickahrs.py | 56b9caa28e4dfa55345ac73336e6271a33a5f96e | [] | no_license | hehonglu123/IMU_3D_Tracking | d0f24252846406602311ae2325d033613392da33 | 1cae1d57413e810db9a73d170e00955365df051a | refs/heads/master | 2022-12-13T18:42:22.997290 | 2019-05-09T11:50:19 | 2019-05-09T11:50:19 | 181,344,661 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,041 | py | # -*- coding: utf-8 -*-
"""
Copyright (c) 2015 Jonas Böer, jonas.boeer@student.kit.edu
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(... | [
"ppng2@illinois.edu"
] | ppng2@illinois.edu |
2bff614c1249f3b2c78aa00f910b568a2f77cbb8 | 3ff503a22bfbe8dde11d5fc49cdafc38dab75117 | /lib/log_config.py | cb3621e6d42b63954a38c2cb31fe27fc9b545fcc | [] | no_license | CharnyshMM/python_tracker | 893958892aa3278bf55cdb335461e766b377ae0b | 619b460724974ecdb83132de2da2075a68188fbb | refs/heads/master | 2020-06-29T22:08:27.523135 | 2018-06-18T10:19:18 | 2018-06-18T10:19:18 | 200,637,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | import logging
import os
DEFAULT_DIR = os.path.join(os.environ['HOME'], 'py_tracker')
DEFAULT_LOGFILE = 'py_tracker_lib.log'
DEFAULT_LEVEL = logging.DEBUG
DEFAULT_FORMAT = '%(asctime)s - %(name)s : %(levelname)s : %(funcName)s : %(module)s : %(message)s'
LOGGING_ENABLED = True | [
"mr.nick.cher@gmail.com"
] | mr.nick.cher@gmail.com |
8b339010a4f7f37b45ff078b967f4f02cbb8b8d1 | 37138f86b2704a87c3840cf3a7e6fa0e169ebc81 | /diccionary_scrapper.py | 8a953317a70600da881a9a843775dbd20b9681d2 | [] | no_license | vmoreno014/Python-practice | 1f989a6f751e643dd180e8c9e35f3d7b530c356c | 91f4781525c9935f1dadbe32f61f5950d7f83055 | refs/heads/main | 2023-03-22T15:15:06.347758 | 2021-03-13T22:17:26 | 2021-03-13T22:17:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | import urllib.request, urllib.parse, urllib.error
fhand = urllib.request.urlopen("http://data.pr4e.org/romeo.txt")
counts = dict()
for line in fhand:
words = line.decode().split()
for word in words:
counts[word] = counts.get(word, 0) + 1
print(counts)
| [
"noreply@github.com"
] | noreply@github.com |
ee28104231e39d74f9252de0420dfa501e38557a | 6efacaed48c9c2015b20baae5b1e7812cf2614a0 | /Po/test/Abackground_mouse_one.py | 533335d6d971031ab7fe5f3398b20fcedabe8681 | [] | no_license | Felixshao/play | 53e12b7b592634a3e5515addde978e1b2a2a4591 | 4364cb91141bbbca835688d19bddb87aa0beb6b4 | refs/heads/master | 2021-05-23T19:49:56.095083 | 2020-04-07T06:09:10 | 2020-04-07T06:09:10 | 253,441,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | import pygame, os
from pygame.locals import *
from sys import exit
from config.GetProjectPath import get_project_path
path = get_project_path()
background_img_filepath = os.path.join(path, 'img', 'sushiplate.jpg')
mouse_img_filepath = os.path.join(path, 'img', 'fugu.png')
# 初始化pygame,未硬件做准备
pygame.init()
# 新建窗口, 传入参... | [
"shaoyufei1234@163.com"
] | shaoyufei1234@163.com |
cce0a2deb48c56ec7c0fa8038dd01ce051024d95 | d3a9701c70c296f7a6e1abda0defe87e0a697c65 | /app.py | 2f623da99cc625e0fcccb2b7ba2e7fb6aba72ac5 | [] | no_license | MikeKerkhove/BonjourLaBiere | ed0c1025add84ddc5ea479bd3cc88576954a713d | 8a3d7a23df192cea8aad5cd7104d2d39c92e96e7 | refs/heads/master | 2022-11-07T08:58:23.659869 | 2020-06-24T15:29:49 | 2020-06-24T15:29:49 | 274,091,364 | 0 | 0 | null | 2020-06-24T15:29:52 | 2020-06-22T09:12:00 | Python | UTF-8 | Python | false | false | 4,122 | py | from flask import Flask, render_template, request, redirect, flash, make_response
from flask_sqlalchemy import SQLAlchemy
from datetime import date
from werkzeug.security import generate_password_hash, check_password_hash
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///database/beerdb.db'
app... | [
"m.kerkhove92@gmail.com"
] | m.kerkhove92@gmail.com |
8cfa750d806ed9fc7f34c288b6df085114ffb7d0 | 4ab0b96b9dd131bb3ccffc3800699b94cd0f77fb | /Assignment-9.py | 3eea5f7fa6604df8729add5f814b13915ca7dcef | [] | no_license | pankajdeep/Assignment-9 | 9f53212d1ec1984642ae2a1a456b856d7c27598d | f11a93dba4031df8952a771598cccb70400cb067 | refs/heads/master | 2020-03-27T09:12:36.950460 | 2018-08-27T16:12:02 | 2018-08-27T16:12:02 | 146,322,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,674 | py | #Q.1- Name and handle the exception occured in the following program:
#a=3
#if a<4:
# a=a/(a-3)
# print(a)
a=3
try:
if(a<4):
a=a/(a-3)
print(a)
except ZeroDivisionError as msg:
print("The name of the exception is ZeroDivisionError and the message is:",msg)
#Q.2- Name and handle the excepti... | [
"pankajdeepsahota@gmail.com"
] | pankajdeepsahota@gmail.com |
1570ed0180207a321a0286bc17723f5f4ad582ad | 2fc6981c6ea90d8310b47be0b0cb5c41674ded63 | /test.py | 68fa407d2b0fba077166352521f020e96640b14f | [] | no_license | Akanksha461/Appium | 2a473f01a0407ee00921159a2720e5547706969b | 858aab9de66e672ab2bd978c6f2b9c9a5e383f8e | refs/heads/master | 2021-05-09T13:31:07.654707 | 2018-01-26T12:21:32 | 2018-01-26T12:21:32 | 119,037,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,104 | py | import os
from appium import webdriver
import time
web_contexts=[]
desired_caps={}
desired_caps['platformName']='Android'
#this is the android version you want to target- this should match the android version in the device
desired_caps['platformVersion']='6.0.1'
desired_caps['deviceName']='samsung'
desired_caps['... | [
"noreply@github.com"
] | noreply@github.com |
36000e3e071a83a02bce91911373d936ae50680c | c6c5db5310c61f7bd03691e48b89fb1f39d8533c | /src/rf/prediction.evolution.rf.bert.time.py | c756ba924a280d9531c7375a9562c0e1114c99a3 | [] | no_license | twoexponents/reddit | 1f5aab42aefd71e134c0f3489e54f906569a1097 | 9da7572424ff6f35f45f6c1d81921f05e279a1aa | refs/heads/master | 2020-05-05T01:48:02.928714 | 2020-01-17T04:58:20 | 2020-01-17T04:58:20 | 179,615,217 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | import tensorflow as tf
import numpy as np
import sys
from myrflib import runRFModel
from myloaddatalib import makeLearnTestSet
def main(argv):
exclude_newbie = 0; input_length = 1
if len(sys.argv) >= 3:
exclude_newbie = int(sys.argv[2])
if len(sys.argv) >= 2:
input_length = int(sys.argv[1])
print ('ex... | [
"twoexponents@gmail.com"
] | twoexponents@gmail.com |
765478bbc01b00211d961da6d0bd4bdab237f828 | 208baab269ddffab1a93e7dc70b052d07bf50560 | /hood/migrations/0002_auto_20200120_1140.py | a6e6fe56c70f1ee382edb53a3eebe174b83a3671 | [] | no_license | marysinaida/Neighborhood | a1035f09515ae9a24bed74ddf1263e06db134c94 | a285df5528bb99d6cb69f9ab41e320682422fe9d | refs/heads/master | 2020-12-13T23:29:18.148498 | 2020-01-21T15:04:53 | 2020-01-21T15:04:53 | 234,562,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,691 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2020-01-20 08:40
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):
dependencies = [
migrations.swappable_dependenc... | [
"marydorcassinaida54@gmail.com"
] | marydorcassinaida54@gmail.com |
795a6ff4fb0dad2d56d19872bbe9ead37d8f7856 | a10b295054c882972a24456ac3de13788d236872 | /server/server.py | 7e5b01eab5ab22fd324fc5aa79e3975626545b2e | [] | no_license | mayur1064/DSHousingProject | 0333be33f7723c3f2f6e196a71222f75b290868a | 683f8f076f532a116c95a2e6c8f9947fd0fa4140 | refs/heads/master | 2023-01-12T16:07:35.893410 | 2020-11-20T11:24:55 | 2020-11-20T11:24:55 | 311,639,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,664 | py | from flask import Flask, request, jsonify
import util
import dutil
app = Flask(__name__)
@app.route('/get_location_names', methods=['GET'])
def get_location_names():
response = jsonify({
'locations': util.get_location_names()
})
response.headers.add('Access-Control-Allow-Origin', '*')
return ... | [
"mayurtra@gmail.com"
] | mayurtra@gmail.com |
39a93553eb9938131e1ee184e2e28fc42ce5fa64 | ad0fd89e22230aff5f73503decea1d20ba37f106 | /prosb.py | 49bf4f45ee6fda00e01b8eb17343a6d5c77fed70 | [] | no_license | arifin0/Bot5 | 7874de48798206e337a8d8388944e36dea585d37 | 5d939928bf040ab429109a5e53907942f3de11a9 | refs/heads/master | 2020-04-10T12:24:28.766289 | 2018-12-09T08:59:04 | 2018-12-09T08:59:04 | 161,021,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152,433 | py | # -*- coding: utf-8 -*-
import linepy
from linepy import *
from akad.ttypes import *
from multiprocessing import Pool, Process
from time import sleep
import pytz, datetime, pafy, time, timeit, random, sys, ast, re, os, json, subprocess, threading, string, codecs, requests, tweepy, ctypes, urllib, wikipedia
from dateti... | [
"noreply@github.com"
] | noreply@github.com |
940da212b1914c6cfacdba04faedca860cb3c8db | 03d0e2c1c0557e2d7a229a3e149cc5c39fb1d019 | /application/application/models/Category.py | 9524afab04def769de0343e468cba6a2a73910d9 | [
"MIT"
] | permissive | Terkea/kiosk | 6b8441431dbc968ce5abada3ed3d00448a23f9ef | 86a6520f9d91d7bacca915d3740da802e3efb510 | refs/heads/master | 2022-06-14T22:06:57.655553 | 2020-06-26T01:25:04 | 2020-06-26T01:25:04 | 239,501,379 | 0 | 0 | MIT | 2022-05-25T05:12:48 | 2020-02-10T12:00:15 | CSS | UTF-8 | Python | false | false | 431 | py | from sqlalchemy import Column, Integer, String, Sequence
from sqlalchemy.orm import relationship
from application.database import Base
class Category(Base):
__tablename__ = 'category'
id = Column(Integer, Sequence('id_seq'), primary_key=True)
name = Column(String(255), nullable=False)
autoloa... | [
"terkeabt@gmail.com"
] | terkeabt@gmail.com |
a26d82926450e0d98d636e666521f79b6eb9e2d3 | 04091b59cad8c3aadf9cde04e50e4aceb6698789 | /temperature.py | c5d2994ee6cae967fb8bf012d2c94cea12f85d03 | [] | no_license | trent-hodgins-01/ICS3U-Unit5-01-Python | 8093bd2ce31ef10dddb3e2ac37729f5b25325bda | d66bb316cbb41415fbd7013635663ea340ed8eb2 | refs/heads/main | 2023-08-18T07:12:30.738185 | 2021-10-12T16:43:23 | 2021-10-12T16:43:23 | 416,400,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | # !/user/bin/env python3
# Created by Trent Hodgins
# Created on 10/12/2021
# This is the temperature program
# The user enters in the temperature in celsius
# The program displays the temperature in Fahrenheit
def celsius_to_fahrenheit():
# calculates celsius to fahrenheit
# input
celsius_as_string = i... | [
"ubuntu@ip-172-31-12-63.ec2.internal"
] | ubuntu@ip-172-31-12-63.ec2.internal |
a11e6a88e2df0cc8ed5a8508675ce893139ef5e2 | 9f3f0255e06cf399a6f2e984073c0dd401635e60 | /django/django_orm/LoginRegistrationCopy/apps/LoginRegistrationApps/migrations/0003_auto_20190918_0046.py | b4bf6a865dac09cb74e2a359e4294bfeb2366efd | [] | no_license | Nassertakkesh/Python | dd51ddeb7340060d1d31e1420b6beeae86ffdff7 | 23932ab6ee1d545cc022737e5cba8937e0ea1bba | refs/heads/master | 2022-10-09T01:19:47.895585 | 2019-10-21T04:09:02 | 2019-10-21T04:09:02 | 216,474,407 | 0 | 1 | null | 2022-10-02T20:27:50 | 2019-10-21T04:00:44 | Python | UTF-8 | Python | false | false | 430 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2019-09-18 00:46
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('LoginRegistrationApps', '0002_comment_post'),
]
operations = [
migrations.RenameField... | [
"Nasser@Nassers-MacBook-Pro.local"
] | Nasser@Nassers-MacBook-Pro.local |
7735edf0ede0e46b192766f22a139d6b3d34941b | 712a568549a854b1457a327992b6e77d3a80528e | /framework/migrations/0003_auto_20160612_0323.py | f5d98047c21a97faf32958f20bebf255cbc761d4 | [] | no_license | hugoren/drf_frame | 62b96516350906bb93aba9510d888fbc03179cd1 | 0124967817918fc93555ede40703fbbd7f90d0e3 | refs/heads/master | 2021-01-17T08:36:52.868610 | 2016-07-05T07:42:00 | 2016-07-05T07:42:00 | 60,762,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('framework', '0002_auto_20160612_0245'),
]
operations = [
migrations.AlterField(
... | [
"chenpengren@ymt.corp"
] | chenpengren@ymt.corp |
382bbfa2c7de9ffedc43567a39225596a5c39d23 | b88edefdc174435abac8692b309dc2a738117000 | /main.py | a8317f556834f5f6d9c775a06de2ce0e9b3de459 | [
"MIT"
] | permissive | chenneng/FashionAI | 17036196f2e8fdec91ad9276231290c20f85cd32 | a462bb2eafb70a4f3e6a59da5ba79046d6aef72f | refs/heads/master | 2020-04-19T10:42:30.425785 | 2019-02-19T11:43:44 | 2019-02-19T11:43:44 | 168,148,055 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,081 | py | import os
import sys
import os.path as osp
import argparse
import torch
import torch.nn as nn
import torch.optim as optim
from serialization import Logger
from model import creat_model
from dataset import fashionData
from train import train, evaluate
import torchvision.transforms as transforms
parser = argparse.Argume... | [
"beiluo1990@vip.qq.com"
] | beiluo1990@vip.qq.com |
b5ddb5c8af232999eb8ae226c25d305066c76157 | fddc2ed5301b00f668bcb772518e0348db459538 | /convokit/communityEmbedder.py | 143d36c2f5b9fefe78dddccf919d797401191a38 | [
"MIT"
] | permissive | deepthimhegde/Cornell-Conversational-Analysis-Toolkit | 289fd22a81d9d06c7aeb5270c11acc4ec40424bf | eb9a103f8d5e34d378b0b6d6bda3fa43587363a1 | refs/heads/master | 2020-05-29T11:16:01.765154 | 2019-05-17T18:29:27 | 2019-05-17T18:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,889 | py | import numpy as np
from sklearn.decomposition import TruncatedSVD
from sklearn.manifold import TSNE
from collections import defaultdict
from .transformer import Transformer
class CommunityEmbedder(Transformer):
"""
Must be run after threadEmbedder.fit_transform()
Groups threads together into communities... | [
"calebchiam@gmail.com"
] | calebchiam@gmail.com |
742366b9a5cef021a809ed02a8e8bfe456dc5b99 | 9244dcf5374761c00f87e3b1f16ba7346601bb7a | /PyPoll/Main.py | 2843fdea5c634bf36725882c9782768c77c7ead4 | [] | no_license | MikeT9/Python-Challenge | 017ea89561722d691dbb05123c73bf878baae107 | 3198c2dbf25c2f75868abfee1cc266f2cc6e446d | refs/heads/main | 2023-02-27T02:15:22.578614 | 2021-02-06T06:07:51 | 2021-02-06T06:07:51 | 334,793,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,171 | py | # Import the os module
# This will allow us to create file paths across operating systems
import os
# Module for reading CSV files
import csv
csvpath = os.path.join('Resources', 'election_data.csv')
# Improved Reading using CSV module
with open(csvpath) as csvfile:
# CSV reader specifies delimiter and variable... | [
"michaelraythomas.hou@gmail.com"
] | michaelraythomas.hou@gmail.com |
69c0254fc58677d9c90edb6ffe6b6a837050fef6 | 95aabdb737b611c9b228a15e625a702b5061c36d | /clickstream/oozie/throttle_ip_ua_ref.py | 79414a487cb0f6fade5c07248da0229cff5201e6 | [] | no_license | santhoshtr/wmf | 70f0cbcb9b07dbb532270abca1941e96c94ea8bf | 0d034c012176ae8510b701e73ac932ed39a90ffb | refs/heads/master | 2021-01-11T17:13:29.881896 | 2016-01-20T19:23:44 | 2016-01-20T19:23:44 | 54,969,878 | 1 | 0 | null | 2016-03-29T11:20:49 | 2016-03-29T11:20:49 | null | UTF-8 | Python | false | false | 2,348 | py | import sys
import math
"""
This script is used for removing traffic from fast moving crawlers.
It addresses the scenario in which the crawler requests a page
and then proceeds to requests pages linked from that page at higher
frequency than a human would, say, open tabs. It is myopic in the sense
that it only operat... | [
"ellerywulczyn@gmail.com"
] | ellerywulczyn@gmail.com |
f7584104cbead887604e66f450506be4fe13361b | 3cf1cd66536f020041f601137338b2378040f133 | /syp/subrecipes/validate.py | f9b3025d2620f4de8bb7761317cc0680e7be4898 | [] | no_license | carlosfranzreb/syp | 7e8b4f2b71cf6ef29b47097ca5a8ee7a80f755b4 | c4a33e7ab2741e1c63b8fad20c1d48977ea18654 | refs/heads/master | 2022-07-02T16:04:47.881506 | 2020-05-03T19:13:25 | 2020-05-03T19:13:25 | 232,362,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,626 | py | """ Help functions to validate subrecipes.
Name must be unique for each user.
Ingredients must be chosen from the list.
At least one non-empty step. Max. length of steps is checked by the form. """
from flask_login import current_user
from syp.models.subrecipe import Subrecipe
from syp.models.ingredient import Ingre... | [
"carlosfranzreb@gmail.com"
] | carlosfranzreb@gmail.com |
3983fd5b19edfe65dc64e462e25cb5f0984e844d | dcd6f098ad58b59277cc3de9ec665a16e16106c4 | /module/MyRBM.py | f5f01e7d10580250e5b56d2a8ad0263c086577e5 | [] | no_license | zanghu/MyDNNmodule | 37d956cceeeaaaa6dece51ca78ef24e6d4a8332b | 4cf776d7c110cc2979617a8e7c3d7fc6ce335b94 | refs/heads/master | 2016-08-04T02:16:31.277117 | 2014-03-08T04:01:59 | 2014-03-08T04:01:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,110 | py | import time
import os
from itertools import izip
import copy
import numpy
import theano
import theano.tensor as T
from theano.tensor.shared_randomstreams import RandomStreams
from theano.sandbox.rng_mrg import MRG_RandomStreams
from theano.compat.python2x import OrderedDict
from pylearn2.base import Block
from pylea... | [
"zanghu20080701@126.com"
] | zanghu20080701@126.com |
03a350f6bb5407dde0032e82c4975dac03d1e4e9 | 186c92eb8572fa1c6580b5171e71dac61175d246 | /pi_string.py | e80c43f88768406e1fbafab35c7ff2daa54dfb47 | [] | no_license | xieqing181/Pythowork-Chapter10 | a5807d3d4bdb8fa0b5a78c6449bb20465b9ec0b8 | 44c1e228f2fa8f993becebda527de1cf1ff34b27 | refs/heads/master | 2021-07-18T21:41:03.199357 | 2017-10-26T10:27:26 | 2017-10-26T10:27:26 | 108,112,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | file_name = '/Users/xieqing/Pythonwork/pcc-master/chapter_10/pi_million_digits.txt'
with open(file_name) as file_object:
lines = file_object.readlines()
pi_string = ''
for line in lines:
pi_string += line.strip()
'''
print(pi_string[:52] + '...')
print(len(pi_string))
'''
birthday = input("Enter you... | [
"33027473+xieqing181@users.noreply.github.com"
] | 33027473+xieqing181@users.noreply.github.com |
10296a2cb689ad888d9e13f671dcb33a755b3ac2 | 378e1e93cfc0c02aa347cd1682b019e5df17e746 | /tweets/forms.py | bae17f8b325f1775b8342d80c4fbe9bfa416f251 | [] | no_license | Robert0B0/TweetLite | d11dea6baab3b4ab21172b00590fa59bd57566cf | a797104603a89ae99e5229b27852ed258714fd5a | refs/heads/master | 2023-03-22T03:18:54.853446 | 2021-03-13T13:27:08 | 2021-03-13T13:27:08 | 347,006,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | from django import forms
from .models import Tweet
MAX_TWEET_LENGTH = 240
class TweetForm(forms.ModelForm):
class Meta:
model = Tweet
fields = ['content']
def clean_content(self):
content = self.cleaned_data.get('content')
if len(content) > MAX_TWEET_LENGTH:
rais... | [
"robert.balog000@gmail.com"
] | robert.balog000@gmail.com |
537e212b0035f18ca59d4d106ffba818be1a76a6 | f7751d01dce3d0ad2446bbf0ba6ca1e1ed652ecc | /forceDirected/views.py | c84e061c4ea6c568dbf2bfaccd011a0d5bbab848 | [] | no_license | LyonsLab/Blacktea | 3f2b497f40e9e01a5512e8fce8e2c7aff181ed20 | 421e1ab0970e6cc207f6fa6178606d88ded7f0c4 | refs/heads/master | 2020-12-24T15:50:00.873866 | 2016-03-09T23:46:15 | 2016-03-09T23:46:15 | 9,042,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | from django.http import HttpResponse
from django.shortcuts import render, get_object_or_404
from django.db.models import Count
import json
from .models import User, Log
# Create your views here.
def index(request):
return render(request, 'forceDirected/index.html', "text/html")
def users(request):
users = [u... | [
"rchasman@gmail.com"
] | rchasman@gmail.com |
579e3e2dec98370e537152c245c05df0dd77fa46 | 4ba58260d3e6fe7918324581be97aa01a3385804 | /main.py | 4c0abeb46aa822387e362ff8b17ee094785ff19e | [] | no_license | xvhaorong/lab2p | d937707aff05fc881c8eca7b65a73e371e4e5283 | 14beebaa5919871d9e7fec2701a47eba2ecb9d77 | refs/heads/master | 2022-12-17T09:21:52.442942 | 2020-09-10T20:57:50 | 2020-09-10T20:57:50 | 294,507,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | # Author: Haorong Xu hxx5086@psu.edu
# Collaborator: Joshua Chang jvc6690@psu.edu
# Collaborator: Christian Dell'Edera cmd6705@psu.edu
# Section: 12
# Breakout: 16
def getLetterGrade(gd):
if gd>=93.0:
lt="A"
elif gd>=90:
lt="A-"
elif gd>=87:
lt="B+"
elif gd>=83:
lt="B"
elif gd>=80:
lt="B... | [
"hxx5086@psu.edu"
] | hxx5086@psu.edu |
045ab7be275b2619843d30d15a97cd7736e1886b | 7729ca00624a6ed7125f1ee3d71fa12856ec7268 | /psarticles/psarticles/middlewares.py | 1c9f285aa8578a68c12ecba9cf8190f2a091f5fd | [] | no_license | AJszabo/dissertation | f8957485953b99b4b62e7bf7680239cb06ef849c | 4bd6c078cedde9eb28fa3b6465171e534dc33369 | refs/heads/master | 2020-05-22T11:05:35.659018 | 2019-05-13T08:09:53 | 2019-05-13T08:09:53 | 186,314,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,605 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class PsarticlesSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scra... | [
"noreply@github.com"
] | noreply@github.com |
cd1ed8d96f0e50c4d2a00bdb59e9d23fd8e220b3 | af05f5878780a085571cc4282ffd12ef943f61e8 | /main.py | f391055ec54276be7d6fe1a4a572143d28a3cf0e | [] | no_license | Introduction-to-Programming-OSOWSKI/2-4-closer-to-10-CarterWurst2023 | 2be2fa0cf49e71bd94e8638fb886f5e352b1f12b | c21a64e451fb6f72f344c23d3fc921112e34feb0 | refs/heads/master | 2023-08-30T15:16:39.709538 | 2021-09-28T14:38:07 | 2021-09-28T14:38:07 | 411,314,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | def close10(x,y):
if abs(10-x) < abs(10-y):
return x
elif abs(10-x) > abs(10-y):
return y
else:
return 0
print(close10(7,13))
| [
"816568@mystma.org"
] | 816568@mystma.org |
e23bd3752e533ae891a8a458e4234a537b1a2759 | 0495e863a73124ff8041f675247c6914034066a2 | /check_directory_files.py | f0ca199a10f258a8b78774d0ae9aa2750e8d3ec0 | [] | no_license | thomas-nguyen-3/python | 923b59ef4944609344186980da4addf6f652110a | 2703e90d31178fcd4fb863005f88e8b728001eaf | refs/heads/master | 2020-04-11T04:57:26.880037 | 2018-12-20T16:57:35 | 2018-12-20T16:57:35 | 161,533,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | import os,cgi,json,time,datetime,base64,MySQLdb,MySQLdb.cursors,paramiko
from pprint import pprint
"""
12/12/2018
goal: check path in FUSQA table and insert 1 or 0 if files exist
workflow note:
- query connect to FUSQA table (DFRandomForestHCCResponse.FUSQA to be exact)
- loop through the path and check if the path c... | [
"noreply@github.com"
] | noreply@github.com |
48d6e9a8f1cd30cb302f9c81eb5ca4370302e805 | c190538d85c00e03bf655af83629a5bddfd6d797 | /src/dcos_e2e_cli/dcos_vagrant/commands/install_dcos.py | 111fd161ceac49b9b4021c8e8b78de2ff50e1e44 | [
"Apache-2.0"
] | permissive | yankcrime/dcos-e2e | e8d52aa10ecfba029c28b269354fea9fe0f85f7b | 449ca9ebc98399efc00e424d9131d2634de0471c | refs/heads/master | 2020-05-30T00:00:07.725954 | 2019-05-30T15:57:37 | 2019-05-30T15:57:37 | 189,449,013 | 0 | 0 | Apache-2.0 | 2019-05-30T16:42:28 | 2019-05-30T16:42:28 | null | UTF-8 | Python | false | false | 2,927 | py | """
Install DC/OS on a provisioned Vagrant cluster.
"""
from pathlib import Path
from typing import Any, Dict, Optional
import click
from dcos_e2e.backends import Vagrant
from dcos_e2e_cli.common.arguments import installer_argument
from dcos_e2e_cli.common.create import get_config
from dcos_e2e_cli.common.doctor imp... | [
"adamdangoor@gmail.com"
] | adamdangoor@gmail.com |
d33535490a49ccc63731773d42cd5a17f661d234 | a2948d87a8f1901c6faf922f7b8cfba825f84d9b | /resources.py | c5484e2f0cc861b20e66986f69bf1105fbfacb38 | [] | no_license | sourcery-ai-bot/4x2d | 03360fdcd5cfb135acbe0dfbdf571fb1e4d98a5a | 68a5daf2410ae6ffe1220bb7ce85b95647097157 | refs/heads/main | 2023-03-11T10:38:01.353467 | 2021-02-28T06:57:06 | 2021-02-28T06:57:06 | 344,102,678 | 0 | 0 | null | 2021-03-03T11:25:28 | 2021-03-03T11:25:27 | null | UTF-8 | Python | false | false | 412 | py | import os
import sys
def resource_path(relative_path): # needed for bundling
""" Get absolute path to resource, works for dev and for PyInstaller """
base_path = getattr(sys, '_MEIPASS', o... | [
"morganquirk@gmail.com"
] | morganquirk@gmail.com |
52425699c2b0f3f4f3701d850f4388930fbaf38d | 62babb33b9bede95aac217db04636956279bb2e2 | /sort/topological sort/1385E Directing Edges.py | 269591b4f10d040c69bde6a7be642cc5a8b56613 | [] | no_license | tycyd/codeforces | 0322e31daf18544944c769fd2a50c6d006015e34 | e0773f069c6c5793f9d9a07b61878a589e375a5f | refs/heads/master | 2023-08-12T05:00:39.467404 | 2021-09-30T16:39:21 | 2021-09-30T16:39:21 | 266,847,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | from sys import stdin, stdout
if __name__ == '__main__':
def directing_edges(n, m, ind, dic, seq):
q = []
res = []
for i in range(n):
if ind[i] == 0:
q.append(i)
#while len(q) > 0:
while q:
#cnt = len(q)
#for i in range... | [
"tycyd@hotmail.com"
] | tycyd@hotmail.com |
60496ab10d5cda02c956024215be0374ea200b25 | c3b097df549aead765b92278e5fc948237c2e1bb | /app/controllers/api.py | f40541a0cdcd319c2e6093795030ddf2001e286d | [] | no_license | mareimorsy/genie | a8c5ff44945ecc7d3c17a868f5fcbaee3459ca8e | 571b7242d1b2a9827d479ee15d379610225ea183 | refs/heads/master | 2022-03-26T21:43:29.155665 | 2020-01-08T13:08:58 | 2020-01-08T13:08:58 | 232,563,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | from app import app
from flask import render_template, jsonify, request
from app.helpers.k8s.deployment import get_pods, pod_cmd
import json
from flask import session
from app.config import config
@app.route('/api/namespaces')
def namespaces():
return render_template("index.html")
@app.route('/api/pod/exec', met... | [
"mareimorsy@Marei-MacBook-Pro.local"
] | mareimorsy@Marei-MacBook-Pro.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.