blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8b5f46f03fd3acf298116d84ec5c3e44a9f3af84 | a8750439f200e4efc11715df797489f30e9828c6 | /CodeForces/login.py | 785f5e468166714bb35241f17932e9b1ce0d062a | [] | no_license | rajlath/rkl_codes | f657174305dc85c3fa07a6fff1c7c31cfe6e2f89 | d4bcee3df2f501349feed7a26ef9828573aff873 | refs/heads/master | 2023-02-21T10:16:35.800612 | 2021-01-27T11:43:34 | 2021-01-27T11:43:34 | 110,989,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | a, b = [x for x in input().split()]
ans = a[0]
i = 1
j = 0
while i < len(a) or j < len(b):
if i >= len(a) or b[j] < a[i]:
ans += b[j]
j += 1
break
else:
ans += a[i]
i += 1
print(ans)
| [
"raj.lath@gmail.com"
] | raj.lath@gmail.com |
767a6dd112009fd8aff53556497a3da6699bf4ea | fd94f0f140e6437753a058e4849bfb79f8a69d7e | /Codes/PodoSighter_cnn_folder/xmltojson.py | 44a14327f32163b49734f58a5842f79457fb4cc3 | [] | no_license | SarderLab/PodoSighter | 6234e19ab269a3f6f739e3cbbe2650d40dcd54a1 | aa00c4848ba7ac99723a63cf2be4a5291f398e7f | refs/heads/main | 2023-06-17T03:23:14.633302 | 2021-07-04T18:24:43 | 2021-07-04T18:24:43 | 348,821,788 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,888 | py | import json
import xml.etree.ElementTree as ET
import logging
logging.basicConfig()
def xmltojson(root):
colorList = ["rgb(0, 255, 128)", "rgb(0, 255, 255)", "rgb(255, 255, 0)", "rgb(255, 128, 0)", "rgb(0, 128, 255)",
"rgb(0, 0, 255)", "rgb(0, 102, 0)", "rgb(153, 0, 0)", "rgb(0, 153, ... | [
"noreply@github.com"
] | SarderLab.noreply@github.com |
d4f0c626e2bd451c7704118209afe8adf6d93c47 | 93b88de2ae87c4d7bed4d545fe38c502e84e1ba6 | /table/models.py | dee20de09b8933b6cbaa0e3a4cfd8823273031b1 | [] | no_license | jod35/empdata-table | b77fb8394f74cb71d50aeb1c2d5183d39f9fd5dd | 4bda87eb8f54b4e53c3adc534002f50a7e46c5f8 | refs/heads/master | 2020-12-20T05:23:17.126355 | 2020-01-25T05:49:20 | 2020-01-25T05:49:20 | 235,975,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from . import db
class Employee(db.Model):
id=db.Column(db.Integer(),primary_key=True)
name=db.Column(db.String(40),nullable=False)
age=db.Column(db.Integer(),nullable=False)
gender=db.Column(db.String(10),nullable=False)
salary=db.Column(db.Integer(),nullable=False)
residence=db.Column(db.Str... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
0d6d50fe03634a9956397e0cd037cd9f4ae7634e | 607e1b1ec5a41fd5f6cf83e7e20a1372717d2486 | /leetcode/62.py | a6d0a7914195cf7602733f2e272dab0afe4cdedd | [] | no_license | histuckyi/algorithm | 067e627e1672e858b3143440200262e0e5db495c | fb04bbd8cdb3ead707bb07abbc1688b99f7505a7 | refs/heads/master | 2023-07-08T05:22:49.049599 | 2023-06-24T07:00:25 | 2023-06-24T07:00:25 | 147,614,786 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | """
LeetCode 62. Unique Paths
blog : https://daimhada.tistory.com/131
problem : https://leetcode.com/problems/unique-paths/submissions/
"""
class Solution:
def uniquePaths(self, m: int, n: int) -> int:
r = n
c = m
field = [[0]*c for i in range(r)]
rd = [0, 1]
cd = [1, 0]
... | [
"histuckyi@gmail.com"
] | histuckyi@gmail.com |
74706744083239e8a580d5554f9d9b44a42f4f86 | 1b10005fa38e07bbd61b97442879c4039fa1518e | /facts/models.py | 10a6cb7af093ddc37a6ffa4c679f891cc35d62a4 | [] | no_license | maltefl/xsperm | 6ee7ca4c708f09be77007a1d3f549560726554c9 | 6a78c421f3fab82b972c2e240167459367917cff | refs/heads/master | 2021-01-17T22:22:06.808113 | 2010-01-15T13:35:25 | 2010-01-15T13:35:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | from django.db import models
class Fact(models.Model):
text = models.CharField(max_length=140)
rating = models.IntegerField(default=0)
class Meta:
ordering = ('-rating',)
def __unicode__(self):
return self.text
| [
"mrbichel@mrbichel-laptop.(none)"
] | mrbichel@mrbichel-laptop.(none) |
f21bc2bcf384944f2a661bcb346820b772c9659e | 2eb93e87db7e55dd1b97975f1c45025d5bb438e9 | /type_info.py | 2c221151fe98ab017f9f604c458c495c7df909bb | [
"MIT"
] | permissive | Hirmuolio/ESI-type-ID-attributes | 106d8f603b06a44e9bda20c5da71069e10ca2cf0 | 320d386f3348c3e2dfccbe85260a0ca30dd2b54f | refs/heads/master | 2021-05-26T07:19:31.008750 | 2020-05-17T13:02:39 | 2020-05-17T13:02:39 | 127,891,373 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,052 | py | #!/usr/bin/env python3
#This python script gets you attributes for any object
import json
import gzip
import esi_calling
#Uncomment the one you want to use.
#TQ
datasource ='tranquility'
#SISI
#datasource ='singularity'
esi_calling.set_user_agent('Hirmuolio/ESI-type-ID-attributes')
def print_normal_attributes... | [
"noreply@github.com"
] | Hirmuolio.noreply@github.com |
d5f310040aecfb186ec0eeaf080f2b884502218d | 1d3b49f5ea70a24393290fe07212df2aac36cda5 | /pythonProject11/main.py | 4dc966db69ab976d8060167775f505790b3e6b51 | [] | no_license | uykykhj/Hometask | b7f02d0e45481ce20972e537e2edd0b87de934e2 | a3cba07afdeaa9d617b20ab833f818e49ee97ded | refs/heads/main | 2023-08-24T11:45:13.508216 | 2021-10-21T14:01:47 | 2021-10-21T14:01:47 | 419,738,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | str=input('ведите первую строку любого стихотворения')
n1=int(input())
n1-=1
n2=int(input())
n2-=1
print(len(str))
print(str[n1:n2]) | [
"sanyaostapu4ok@gmail.com"
] | sanyaostapu4ok@gmail.com |
026c1164d905258ebd9724af53ff47a96b83f0aa | 826f3403b997296874757fb96b4f2bd893f6f0a0 | /jobsapp/apps.py | da3fe0655ccad9ce82d1bef2ed41177ae83efcd4 | [] | no_license | harishramuk/fakerproject | 122a8dc80d6571ae9c5a42c4a7c569dbb7bca20e | 8992edad8694208e5105861f11b523e349da45e8 | refs/heads/main | 2023-02-07T07:01:49.962450 | 2020-12-27T07:49:28 | 2020-12-27T07:49:28 | 324,710,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from django.apps import AppConfig
class JobsappConfig(AppConfig):
name = 'JobsApp'
| [
"noreply@github.com"
] | harishramuk.noreply@github.com |
aa2eaf1175b8b181761fce2ae6f5256beafa5e3c | 259b81f2a6d02947cd95c1fbdac4ea182592d331 | /mySE server/setupDB.py | 7f05234387561525cff55e10ed8f1703c6fe7121 | [
"MIT"
] | permissive | Arthurdw/mySE | 58ee59c982266b1d4ff0a53e01b882820125a71f | 0100c2a4e8fd5006e170ca8a2890080ed96d0153 | refs/heads/master | 2020-12-08T20:48:54.380742 | 2020-05-03T11:56:29 | 2020-05-03T11:56:29 | 233,091,191 | 0 | 0 | MIT | 2020-01-16T20:06:44 | 2020-01-10T16:52:39 | Python | UTF-8 | Python | false | false | 2,042 | py | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# API created for mySE by Arthurdw #
# mySE stands for My Secure Environment! #
# mySE was created for GO-Atheneum Oudenaarde #
# This project and all it files are under a MIT licence. #
# Project (mySE) sta... | [
"arthur.dewitte@gmail.com"
] | arthur.dewitte@gmail.com |
848daa1b7f69e0cfa889d5f7a5c7cfa3fc9f2b92 | 12e6723f9bc5b7fc3993e584c837469ce565e70f | /client.py | e35385956fd8274c12344c0b0d8b49e57222693f | [] | no_license | maujordan/meMusicPersonal | 779233810452e0ea7b21690e3ba428c9b77cf57f | 074dd4b83df55aa0a5e98367e00611b4fed53010 | refs/heads/master | 2020-08-16T00:27:45.975453 | 2019-10-29T23:57:03 | 2019-10-29T23:57:03 | 215,430,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | import time
import socket
import json
client_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
client_socket.settimeout(1.0)
addr = ("127.0.0.1", 12000)
str_data = {
'color': 'rojo',
'x': -3,
'y': 1
}
message = json.dumps(str_data).encode('utf-8')
client_socket.sendto(message, addr)
| [
"noreply@github.com"
] | maujordan.noreply@github.com |
2ef032bab20a1fd7af7aa08e330c93a4a5a3865a | c1fa73c6589df48aced3b1cbdbc30fb237b007fc | /code/scrapers_crawlers/vox/scrape_vox.py | 57f703b6009188501efd942eb2b94a7beadcb8f0 | [] | no_license | slee981/mnir_news | 0690b974a0b47bc2ca46cc69182e9b6db3735aed | 6746bd4afb754d156c30bbd6a201ef5e2982a8e3 | refs/heads/master | 2022-04-05T12:08:23.352478 | 2020-02-04T00:37:33 | 2020-02-04T00:37:33 | 207,697,300 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,664 | py | ########################################
# Imports
########################################
import requests as req
from selenium import webdriver
import sys
import os # os.chdir('/home/stephen/...')
# os.getcwd()
########################################
# Constants
####################################... | [
"smlee.981@gmail.com"
] | smlee.981@gmail.com |
2f4e456870305284bd134826e6bf1cf2ac4e66dc | 6078520160f17b7e57bd232bd09d9c7cfb7324b1 | /nagios/libexec-/check_dns_srv.py | c465fcf94dd5dfec8874554c689b11ef8937f539 | [] | no_license | juniorkalvin7/nagios-2 | 12bee5ff4c35313b42b61b073e8e710ea47acf4f | 223a796ed073bfd97da36fca046ae5e05b0a8c87 | refs/heads/master | 2021-01-17T14:48:36.650222 | 2017-03-06T16:49:24 | 2017-03-06T16:49:24 | 84,097,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,310 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
* Copyright (c) 2005 Gemayel Alves de Lira (gemayellira@gmail.com.br)
* All rights reserved.
* Intechne Information Technologies
* version 0... | [
"juniorkalvin7@gmail.com"
] | juniorkalvin7@gmail.com |
1fcc1e4dc5331ee16b5a22ff7eeede6cdb9460bb | e8e67a0b6d1259a8588181b733393303f661a843 | /python_examples/control_mapping_framework/excel_utils.py | 8ec023625c6eef08768fa1052be219dd532c49d6 | [
"MIT"
] | permissive | CyberGRX/api-examples | 7019b0930e4b427df5bce71205cf65cb412a0d9e | 3ae16c023a6f217748d3e8acfdb8f2d9611f91ad | refs/heads/master | 2023-05-27T02:36:31.506462 | 2023-01-20T17:54:28 | 2023-01-20T17:54:28 | 228,675,512 | 1 | 1 | MIT | 2023-05-22T21:44:10 | 2019-12-17T18:13:45 | Python | UTF-8 | Python | false | false | 3,627 | py | #########################################################################
# _________ ___. ______________________ ___
# \_ ___ \___.__.\_ |__ ___________ / _____/\______ \ \/ /
# / \ \< | | | __ \_/ __ \_ __ \/ \ ___ | _/\ /
# \ \___\___ | | \_\... | [
"noreply@github.com"
] | CyberGRX.noreply@github.com |
88ac7eaa07a6e60ea86b3a2c3c89d5bdf3800eed | 7a0f0c2107019c82b693e809c1a9b912bee9d9b1 | /app/chap3_2_2/models/mkqueries.py | a6ed847f49085fe78b1ee60cf6cf84fe8ca6cc7b | [] | no_license | petershan1119/Django-Official-Practice | 352f17a4c0b03abe81af7471c4823f096868a4b5 | a24f626c28bda6024e1b5380f1f8a3c436ba5a0d | refs/heads/master | 2021-01-24T01:28:46.044910 | 2018-02-26T00:32:55 | 2018-02-26T00:32:55 | 122,808,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,955 | py | from django.db import models
__all__ = (
'Blog',
'Author',
'Entry',
)
class Blog(models.Model):
name = models.CharField(max_length=100)
tagline = models.TextField(blank=True)
def __str__(self):
return self.name
class Author(models.Model):
"""
## ManyToMany의 경우 add 이용해서 업데이트 ... | [
"peter.s.han.1119@gmail.com"
] | peter.s.han.1119@gmail.com |
eecc3418673eb2435b8bd870ebdd648b9fba9d7e | 1cde1ef47cb6ab401e11d0c26d73db6fd3c43b41 | /workit/model/Offer.py | 8d0626619508344a7dfd9ac95fb101d8519e2211 | [] | no_license | Mluszczewski/WorkIT | 0fce4edd1f23065603fdba2a939faf71990713f0 | 657e2ae3758d8babe032c692ff20eed36d193782 | refs/heads/master | 2023-05-12T13:27:35.441661 | 2020-06-15T12:23:38 | 2020-06-15T12:23:38 | 216,622,088 | 1 | 1 | null | 2023-05-01T21:18:13 | 2019-10-21T17:07:18 | Python | UTF-8 | Python | false | false | 4,675 | py | from workit.const import CATEGORIES, CURRENCIES, LOCATIONS
from uuid import uuid4
from re import sub
from fuzzywuzzy import fuzz
from unidecode import unidecode
class Offer:
def __init__(
self,
title,
company,
city,
url,
salary,
techstack,
experienc... | [
"pjedrzejczak@sigma.ug.edu.pl"
] | pjedrzejczak@sigma.ug.edu.pl |
b481585589990d5f721f1f523af73b0e12effd35 | 67b6f1433649af979ecf14049a783127ed16799d | /pilingUp/pilingUp00.py | 32b79d91c5de07d9b635dbe30179a461c202b0ea | [
"MIT"
] | permissive | tnkteja/notthisagain | bdb919f9b713b9abe5dde76af000186d1b3bd896 | 85e2b2cbea1298a052986e9dfe5e73d022b537f3 | refs/heads/master | 2021-01-22T22:13:16.421008 | 2017-05-24T15:56:14 | 2017-05-24T15:56:14 | 85,519,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
from collections import deque
T=input()
for _ in xrange(T):
N=input()
cubes=deque(map(int,raw_input().split(' ')))
stack=[]
ans="Yes"
while cubes:
index=0 if cubes[0] > cubes[-1] else -1
if stack and cubes[index] ... | [
"ntadiko@ncsu.edu"
] | ntadiko@ncsu.edu |
c03eaa16a3e0a5b7f3a46d2d94e6d83848e0d6e8 | 4f972877da14226125440b3da9bdb058764d8a54 | /pandasStudy/temp_opt.py | f108619a26d725634c493b10c9b32adf500d1dee | [] | no_license | ZhiYinZhang/study | 16c29990cb371e7e278c437aa0abc7c348614063 | 8c085310b4f65e36f2d84d0acda4ca257b7389af | refs/heads/master | 2021-07-09T16:05:02.925343 | 2020-06-30T07:53:05 | 2020-06-30T07:53:05 | 153,767,096 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | #-*- coding: utf-8 -*-
# @Time : 2019/3/9 14:37
# @Author : Z
# @Email : S
# @File : temp_opt.py
import pandas as pd
import json
# df.to_json(,orient="records",force_ascii=False)
# path="e:/test/json/shaoshanshi.json"
#
# df=pd.read_json(path,orient="records",lines=True)
#
# print(df)
# df.to_json("e:/test/j... | [
"2454099127@qq.com"
] | 2454099127@qq.com |
c8b547b5c2825f3a201e760acb128b8fc94edaca | 14cc70fa60dfaa441aab34b083cff1bf59574264 | /opencivicdata/legislative/models/session.py | 397d1f240810a4a6ecba6cda44895ce9e76871cc | [] | permissive | tubaman/python-opencivicdata | 85434672bea6b40a417104d9381097df58b8a7b2 | 010cd72bdd806e76f342195a1f1e20acbed5a431 | refs/heads/master | 2020-07-26T13:32:22.452022 | 2019-08-20T05:56:12 | 2019-08-20T05:56:12 | 208,660,220 | 0 | 0 | BSD-3-Clause | 2019-09-15T21:33:06 | 2019-09-15T21:33:06 | null | UTF-8 | Python | false | false | 1,192 | py | from __future__ import unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from opencivicdata.core.models.base import RelatedBase
from opencivicdata.core.models import Jurisdiction
from ...common import SESSION_CLASSIFICATION_CHOICES
@python_2_unicode_compatible... | [
"james.p.turk@gmail.com"
] | james.p.turk@gmail.com |
18355aa0f6375e11796880df007410c7b767cc84 | 111212d14fe7344a8635f0f8b392a657b5db27d8 | /trabajo/migrations/0001_initial.py | c32bbbabe988780ebcaa511d59900c57eef5bca3 | [] | no_license | sebasgoldberg/agencia | c83acd2cbdd2097e65c9dfb85fafbd31ed2fa8e8 | dc837d8d40183cb22231a13e408bf56b8ce168e0 | refs/heads/master | 2021-01-25T03:48:18.591880 | 2014-05-19T10:21:30 | 2014-05-19T10:21:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,493 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as 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 'Productora'
db.create_table(u'trabajo_productora', (
... | [
"sebas.goldberg@gmail.com"
] | sebas.goldberg@gmail.com |
320977639dd32cd223a315df756e2a387a62bd39 | 670702ad2673ad36b6349949f626e4ed6ca79d1f | /simplesocial/groups/models.py | 6aa93c31c4d45612b688019c19223a6f7a3df120 | [] | no_license | abduyevelvin/django-social-media-project | 6ed4b593652062e5949d05b29a49d67706a6827e | 384e8a7259dab837ceb555c8387c29c062954e88 | refs/heads/master | 2022-04-15T01:18:54.640615 | 2020-04-11T21:53:59 | 2020-04-11T21:53:59 | 254,933,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | from django.db import models
from django.conf import settings
from django.urls import reverse
from django.utils.text import slugify
import misaka
from django.contrib.auth import get_user_model
User = get_user_model()
from django import template
register = template.Library()
class Group(models.Model):
name = models... | [
"elvin.abduyev@bertelsmann.de"
] | elvin.abduyev@bertelsmann.de |
bd92e49c54aae1b8b2bbf08a3841dafdafbf905f | 07f18080703f71444c0a60deec67474a9b113c71 | /algo/binary_search.py | f1ae55d0dacf1b5beac5c2809b4f5df563ba7275 | [] | no_license | ksuarz/hundred-days | 674002c57f5e0372cf2875a2314c6e8828c2f1b0 | a502ac227c8331734b65a58f67bbf5e6b982ff6b | refs/heads/master | 2020-05-18T16:53:55.328823 | 2014-03-23T03:43:21 | 2014-03-23T03:43:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | '''
A simple implementation of binary search on primitive types.
'''
def binary_search(list, target):
'''
Returns the index of the target in the array, or -1 if the item is not
contained in the list.
The binary search algorithm only works on sorted lists.
'''
if not list:
return -1
... | [
"ksuarz@gmail.com"
] | ksuarz@gmail.com |
4f086d0abd4fee89dc9252a3a4212d6653a80f19 | 2dc17d12ff6ea9794177c81aa4f385e4e09a4aa5 | /archive/1467. Probability of a Two Boxes Having The Same Number of Distinct Balls.py | 5becc6fac00c3d0f19e7da6a06a9d4ace6447378 | [] | no_license | doraemon1293/Leetcode | 924b19f840085a80a9e8c0092d340b69aba7a764 | 48ba21799f63225c104f649c3871444a29ab978a | refs/heads/master | 2022-10-01T16:20:07.588092 | 2022-09-08T02:44:56 | 2022-09-08T02:44:56 | 122,086,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | from typing import List
from functools import lru_cache
class Solution:
def getProbability(self, balls: List[int]) -> float:
self.num = 0
N = len(balls)
space_in_each_box = sum(balls) // 2
@lru_cache(None)
def comb(x, y): # x<=y
res = 1
for i in r... | [
"19241008o"
] | 19241008o |
b90c7a68490243757448c83d51d4eae5a3c86fad | 8f6cc0e8bd15067f1d9161a4b178383e62377bc7 | /ppo_baseline_DMB/WORKINGON/easy_ppo_v2/storage.py | 0bd79023734c597fa209870d6297b8372a5c8253 | [] | no_license | humorbeing/python_github | 9c4dfc61a3cefbb266fefff335f6b28d05797e5e | e4b4b49bee7e7e3843c6874717779ce8d619bd02 | refs/heads/master | 2023-01-22T21:51:20.193131 | 2020-01-26T21:47:23 | 2020-01-26T21:47:23 | 163,707,778 | 0 | 0 | null | 2022-12-27T15:37:48 | 2019-01-01T01:58:18 | Python | UTF-8 | Python | false | false | 7,531 | py | import torch
from torch.utils.data.sampler import BatchSampler, SubsetRandomSampler
import numpy as np
def ss(s=''):
print()
print(' ---' * 15)
print(' ---' * 15)
print()
# print(' >>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<<< ')
print(s)
print()
print(' -... | [
"geemguang@gmail.com"
] | geemguang@gmail.com |
66b1f7ab8b33518cd88195b541716565248d3e8e | 2734b77a68f6d7e22e8b823418ad1c59fe1a34af | /opengever/document/behaviors/__init__.py | 203ebd83e1f3d6ecb246888b2fffc589e66ad832 | [] | no_license | 4teamwork/opengever.core | 5963660f5f131bc12fd0a5898f1d7c8f24a5e2b1 | a01bec6c00d203c21a1b0449f8d489d0033c02b7 | refs/heads/master | 2023-08-30T23:11:27.914905 | 2023-08-25T14:27:15 | 2023-08-25T14:27:15 | 9,788,097 | 19 | 8 | null | 2023-09-14T13:28:56 | 2013-05-01T08:28:16 | Python | UTF-8 | Python | false | false | 174 | py | from zope.interface import Interface
class IBaseDocument(Interface):
"""Marker interface for objects with a document like type
(og.document, ftw.mail.mail) etc."""
| [
"lukas.graf@4teamwork.ch"
] | lukas.graf@4teamwork.ch |
472e0b5db22596d4271a9578e19737f679e5bee6 | 6ff626cace2bd401b1acb9e300d4aaa7e141dffb | /tools/tb_maker/tb_maker.py | 730e375901ac7b8b785b20f585b34467cfc1451d | [
"Unlicense"
] | permissive | Bruno02468/ghdlfiddle | c8c5678ece645565faa7bf08b00fe43c4aca432f | 9d94f31e68bda6d0f2dc2122e2fc444117c68a18 | refs/heads/master | 2023-02-21T13:07:16.716351 | 2023-02-10T18:28:57 | 2023-02-10T18:28:57 | 209,203,289 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,406 | py | #!/usr/bin/env python3
# coded by bruno, 2019
# all in all, I consume a "specs" file and generates testbenches based on good
# submissions. it uses tricks such as not doing tests which good submissions
# give different results to, for instance.
# basically, the specs file gives me the following information:
# - na... | [
"bruno@paschoalinoto.com"
] | bruno@paschoalinoto.com |
8dc55a36cc1b76e0e45e81f5a28b9927cd6368ee | 4ed02f7fa19a3a9c582341cb4267ff9176910940 | /day_2/super_sum.py | 5f1b622ec7c616368e666d5f314338a7fded375d | [] | no_license | maureengithu/bootcamp_7 | d65d996bd43c1f875e78457835cef2cabb041a22 | 1d93502c5571a6e445fedaa2fedef1792b447b2f | refs/heads/master | 2016-09-13T08:16:43.952553 | 2016-04-29T12:51:03 | 2016-04-29T12:51:03 | 57,123,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | def super_sum(A):
'''
Takes a list A, and:
-Halves every even number
-Doubles every odd number
And returns the sum of all.
'''
total = 0
for i in A:
if i % 2 == 0:
total += (i / 2)
else:
total += (i * 2)
return total | [
"maureengithu90@gmail.com"
] | maureengithu90@gmail.com |
a81fb41b633aa98a866ecd73ff4b9eb63c984f45 | 4705f5c0d89298c961e80b229b9819b77fb81f37 | /julian.py | 9d9dbb0be2b91754ac3ce97286f36dd8c2426e99 | [] | no_license | farahnorma/Homework5 | b92a3d8afd3c0f9f2fa0f4146b07063dbf6ce9a8 | 8de33ec522c75c5ecd09c5587e44de1b112d7d72 | refs/heads/master | 2020-09-10T19:04:28.131288 | 2019-11-15T00:02:49 | 2019-11-15T00:02:49 | 221,808,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | py | #Norma
#julian.py
def valid(month, day, y):
if y <0:
print("Invalid date")
else:
if month<1 or month>12:
print("Invalid date")
return False
elif month == 1 or 3 or 5 or 7 or 8 or 10 or 12:
if day<1 or day >31:
print("Invali... | [
"noreply@github.com"
] | farahnorma.noreply@github.com |
13a71a23c0d1e9a332b61b7e0427ead5f585fdbe | bb443e34a83820bb3d3cf75298f82d165c14b6dd | /Chapter07_whileLoops_userInput/rollercoaster.py | 1abfdf60fccc8fd8aec17ce12abff6dc39f5952c | [] | no_license | ashishkchaturvedi/Python-Practice-Solutions | 9e61fe2d53b4ed4366947aab1db783c31247ddb6 | 64f5557b132dbe4700e999ae5fa006dda31f27d0 | refs/heads/master | 2020-07-23T04:40:31.327415 | 2019-09-16T00:28:42 | 2019-09-16T00:28:42 | 207,448,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | '''
Created on Sep 11, 2019
@author: achaturvedi
'''
height = input("how tall are you in inches?")
height = int(height)
if height >= 36:
print("\nYou are tall enough to ride")
else:
print("\nYou will be able to ride when you are little taller") | [
"achaturvedi@agmednet.com"
] | achaturvedi@agmednet.com |
9bfeaa039908e00614a520fcf51a8d6beca7c8e9 | 40c029a40c3a1ff3f254bf18c1ceb11569ab0ceb | /tes2.py | b732fdcf0cc83a7e472a0101ded31391a4c63037 | [] | no_license | Tri334/batik-classification-resnet | 02167943bbbdf6133fc7608a4cbfc9f7c27c31d3 | 6f09964cde28eb509557d0f58ae243f468034649 | refs/heads/main | 2023-09-03T12:19:58.238525 | 2021-11-05T14:02:58 | 2021-11-05T14:02:58 | 411,088,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | from new_main import *
transform = {
'train': transforms.Compose([
transforms.Resize((224, 224)),
transforms.ToTensor(),
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
]),
'val': transforms.Compose([
transforms.Resize((224, 224)),
trans... | [
"meranggi04@student.ub.ac.id"
] | meranggi04@student.ub.ac.id |
eee7ec285cd7388f875f56772700086dae4b10e5 | ed603eeff3333dc906c54777d10912c74f27a348 | /t1.py | b53257a18688344a4081bafd46ac02dabdf7de3a | [] | no_license | fzea01/deteccar_pp2 | 3a0f399bda1f50f871e7b5c57b77db707768cc5a | 39c23ef9aeb63ae78fe5ae0893ab6efac4083255 | refs/heads/master | 2020-04-27T07:44:41.666689 | 2019-05-08T20:50:53 | 2019-05-08T20:50:53 | 174,146,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | import cv2
import numpy as np
import matplotlib.pyplot as plt
cap = cv2.VideoCapture('./videos/cars.MP4')
ret, frame1 = cap.read()
prvs = cv2.cvtColor(frame1, cv2.COLOR_BGR2GRAY)
hsv = np.zeros_like(frame1)
hsv[..., 1] = 255
[R,C]=prvs.shape
count=0
while (1):
ret, frame2 = cap.read()
next = cv2.cvtColor(fr... | [
"nuttahpon_best@hotmail.com"
] | nuttahpon_best@hotmail.com |
afd9cd1e18d33e0a540173296f0d60db260c1efb | fd83602e34b8bde0f179753defa314859e9c5d9d | /指导书及实例/color.py | d63d927a6af30a5a3f6c1e9b6649af820ed1bea0 | [] | no_license | HIT-five/2020Picture_project | 5467ccca8b2752954429a10c8ff4444c357e24f2 | 4c17d88b0d0c1b7a652cb56ce18c0d9ae7808501 | refs/heads/master | 2022-11-16T00:51:02.041817 | 2020-07-13T19:14:51 | 2020-07-13T19:14:51 | 279,364,686 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import cv2 as cv
filename = r'F:\test\images\season.jpg'
img = cv.imread(filename)
gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY)
cv.imshow('source image', img)
cv.imshow('gray', gray)
cv.waitKey()
hsv = cv.cvtColor(img, cv.COLOR_BGR2HSV)
cv.imshow("Hue", hsv[:, :, 0])
cv.imshow("Saturation", hsv[:, :, 1])... | [
"958476238@qq.com"
] | 958476238@qq.com |
c674165dd2f415ded8e82f1710a6d698e2b5271e | 5ba6f0053cbd1156750124ad7c5def1c99d3457a | /SpMarket/apps/goods/search_indexes.py | 11028713b3ebe3a6d46412d24ca593d221f271c3 | [] | no_license | TangTT-xbb/python1116 | 208c0d1aff7cc2610daf408e02eabecea94b98e6 | 447a661f0fc72dacc084c80a17268fe0660e927d | refs/heads/main | 2023-04-22T17:16:36.714672 | 2021-05-07T01:42:13 | 2021-05-07T01:42:13 | 313,237,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | # 导入全文检索框架索引类
from haystack import indexes
from goods.models import GoodsSKU
class GoodsSKUSearchIndex(indexes.SearchIndex, indexes.Indexable):
# 设置需要检索的主要字段内容 use_template表示字段内容在模板中
# 用与指定主要索引字段的,索引字段在模板中指定
text = indexes.CharField(document=True, use_template=True)
# 获取检索对应对的模型
# 返回模型类
def g... | [
"1349905607@qq.com"
] | 1349905607@qq.com |
3a6ecf79f1d71f56398219969add0d7eaa07bd92 | 908bba8bdc246d665d6b22e3a8b91720c34054e7 | /whatsapp-sentiment.py | e7af36895172fa9f736ffba1bc4ba56d53798139 | [
"Apache-2.0"
] | permissive | yogithesymbian/whatsapp-sentiments | 24874ab055522b8733c500a104d218b205c054a8 | d15d4a44282ecfc9b28fc0d16f2714f0f6ed7d2b | refs/heads/master | 2020-05-25T00:33:48.165911 | 2017-03-19T17:27:15 | 2017-03-19T17:27:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | from textblob import TextBlob
from plotly.offline import plot
import plotly.graph_objs as go
import random
user1 = "Bob"
user2 = 'Alice'
with open('chat_sample.txt', 'r+') as f:
samples = f.readlines()
d = {user1:[], user2:[]}
for line in samples:
time, *text = line.split('-')
text = ''.join... | [
"wasi0013@gmail.com"
] | wasi0013@gmail.com |
a57890656dff0d9937db97759a303f9fd7159333 | 5d136796e63aad250c0f61c09a296b1210044d86 | /Program166.py | dfbba6a2c5d83984abc948d26493f97f33097251 | [] | no_license | ArunKarthi-Git/pythonProject | b2fe041fba91c785870df8754bae530c3443d498 | 31f917dd8197f0b684a94be29488366aa85544cd | refs/heads/master | 2023-08-10T18:27:01.379898 | 2021-09-21T14:42:17 | 2021-09-21T14:42:17 | 405,416,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | class BigThree:
def __init__(self,a,b,c):
self.a=a
self.b=b
self.c=c
def callBig(self):
d=self.a if self.a>self.b else self.b if self.a >self.c else self.c
return d
a=int(input("Enter a 1st No."))
b=int(input("Enter a 2nd No."))
c=int(input("Enter a 3rd No."))
big=Big... | [
"arunkarthimail@gmail.com"
] | arunkarthimail@gmail.com |
85be4894c22fe78fd141820268bb10ace74cc3f9 | 66adcd42f0eae6e708ad493a7e9367385ea1a0a5 | /exercises/exe81 - 90/exe084.py | aadd904a5c92104b82f5be6a6cbd6ecda106eb28 | [
"MIT"
] | permissive | thomas-rohde/Classes-Python | 9850227b2c1aff15ae77619ba0cc8875b0558a6e | f862995510b7aabf68bc14aecf815f597034d8a1 | refs/heads/main | 2023-05-20T12:49:46.407674 | 2021-06-06T22:43:21 | 2021-06-06T22:43:21 | 357,386,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | nu = [[], []]
n = 0
for c in range(0, 7):
n = int(input('Digite um valor: '))
if n % 2 == 0:
nu[0].append(n)
else:
nu[1].append(n)
nu[0].sort()
nu[1].sort()
print(f'''A lista par é {nu[0]},
Enquanto a lista ímpar é {nu[1]}''') | [
"thomasrohde45@gmail.com"
] | thomasrohde45@gmail.com |
9defdbe58eb8621560cf99e568ba0bc43cd9c862 | f3ef9e48f78e2b023c0c8d648dd34037d1daf741 | /Topology.py | bbc663bdd23e7adc097b299573c797b0fde8111f | [] | no_license | tngo0508/cpsc558-final | 6797f0d453bbc64742eb1e39912648aee4e9957b | 722c2b3d26c6c261520a7b41909db58241e8effc | refs/heads/master | 2022-09-14T05:58:30.227804 | 2020-05-12T00:48:54 | 2020-05-12T00:48:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,490 | py |
from Logger import Logger
import graphviz
from mininet.net import Mininet
from mininet.topo import Topo
from mininet.link import TCLink
from mininet.node import OVSSwitch
import os
import subprocess
class Topology(Topo):
"""
Topology initializer for CPSC 558 Final Project
"""
__net = None
__logger = ... | [
"Info@MikePeralta.com"
] | Info@MikePeralta.com |
971435e6c398230a141cfe52dc82313acdca9172 | 0ead8495edbecf55ad0cd8163f41f3edd9ade50b | /start.py | d1bb2ffd2e36a963f6ffb9d59cd604921ea004b9 | [] | no_license | NikiPans/googlePlayData | d6e41586270cdc1db8674e655c3509d90e350aa6 | 594cb6a6fb0afb85bcd5d6969de66f423a1b64e0 | refs/heads/master | 2020-04-06T08:06:42.305933 | 2018-11-13T00:25:07 | 2018-11-13T00:25:07 | 157,295,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | # import pandas
def customsplit(string):
quoteopen = False
weirdsep = ""
for char in string:
if char == '"':
quoteopen = not quoteopen
elif char == "," and quoteopen == False:
weirdsep = weirdsep+"****"
else:
weirdsep = weirdsep+char
return weirdsep.split("****")
def tofloat(val):
try:
retu... | [
"shashank.gopikrishna@gmail.com"
] | shashank.gopikrishna@gmail.com |
1d5bb223c6121a9c989bd2d35276a8ad1523baef | b2c3c8a45282c30821cc8c3d6a9f8b6b652ee182 | /Code/data_handlers/generators.py | 601173d45ef5111d81b5ef71272c30479e897fa6 | [] | no_license | TimRepke/adaptive-landscape | 1735dde96ce1c737c028cb53973c1e9ae07dd236 | 90025a112a5c7cec4d53485cefa49a2bf6f009c8 | refs/heads/master | 2023-03-20T10:02:37.347225 | 2021-03-16T19:33:52 | 2021-03-16T19:33:52 | 330,475,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,386 | py | import random
from datasets import DataSet
from typing import Union, Dict, List, Tuple
import numpy as np
import time
import enum
import logging
logger = logging.getLogger('generators')
class SamplingReference(enum.Enum):
LABEL_COUNT = enum.auto()
ITEM_COUNT = enum.auto()
def temporal(dataset: DataSet,
... | [
"tim@repke.eu"
] | tim@repke.eu |
1c7d91fb0d46f9dce0ee7d4982c471f100e95da7 | 0101728fcbd7c60f0a6499f215b48df030261051 | /CNN/cnn.py | 069f794851179fde6ebc1b5b16ac4d5a59e7241a | [] | no_license | nainys/Machine-Learning | 7ed207f6b21bd07d560a0140f081c8df85b49d2a | 7858c7db2f93322ccea63f45a302bc5bd97faa3d | refs/heads/master | 2020-03-16T21:12:24.918483 | 2018-05-11T05:54:44 | 2018-05-11T05:54:44 | 132,988,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,001 | py | import numpy as np
from PIL import Image
from scipy.ndimage import gaussian_filter
from scipy.ndimage import convolve
img = Image.open('car.png').resize((32,32))
data = np.asarray(img)
print "Input image shape = ",data.shape
filter_size = 5
stride = 1
def relu(x):
return np.maximum(x,0)
def sigmoid(x):
ret... | [
"sharmanainy1711@gmail.com"
] | sharmanainy1711@gmail.com |
237146708050ca5d37c5f06d79988bd1e0536000 | 7c5993d6c41fad0497ca6eae6466cdd328a7fad3 | /website/views/forms/audition_signup.py | 73fc934e11ff7a07f2655f952b70677ff857346a | [] | no_license | cloverlime/ulso-django | 57b235a4cd5d697cf2fd62ad20d4f1142a9ca46a | 5dad84d4f24cd2a9f2357fd9ef7f14fd8b99f2ee | refs/heads/master | 2020-03-17T19:47:44.804871 | 2018-08-27T18:34:04 | 2018-09-29T15:12:25 | 133,878,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,509 | py | import datetime
from django.contrib import messages
from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.template.defaultfilters import slugify
from django.views import View
from django.urls import reverse
from status.models import Status
from ulsosite.utils import academic_... | [
"wenye.zhao@gmail.com"
] | wenye.zhao@gmail.com |
6a58387a396d96bfd5733140648664f333506bdd | 96985a1fe69a5a3fb582bb684e1b7820430af524 | /rain/rain.pyde | 782e9c928548d3a426dd59419b1e3dc22ec763a4 | [] | no_license | sowmya-nittala/GenArt-using-Processing | 1a4e591a818297b43b289b05e27abed2bca5a791 | d96ccffaa8c496bff06870625cf4a269a8495177 | refs/heads/master | 2022-12-29T16:14:08.904478 | 2020-10-10T22:26:29 | 2020-10-10T22:26:29 | 302,999,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | pyde | nighttop = color(0, 0, 51)
nightbottom = color(0, 51, 102)
rainc = color(96, 96, 96)
#linesize = 40
def setup():
size(800, 500)
frameRate(20)
def draw():
setgradient(0, 0, width, height, nighttop, nightbottom)
rain(width, height)
def setgradient(x, y, w, h, c1, c2):
for i in range(y, ... | [
"sowmya.nittala@gmail.com"
] | sowmya.nittala@gmail.com |
70a6c42d42cac8fc9c14ca46b10126e41061fcd9 | 76daffafffacf0d3cee3a21a7e45f2c3a5872750 | /A4/decode.py | 0c90f438efc481e86206c10b647089baa38e9fde | [] | no_license | abhigoyal1997/Artificial-Intelligence | 3c12e5d655c279f6f3124927196a528cc1570b65 | 899446e521a6a10d7ce26d0e739dd0933c9fb352 | refs/heads/master | 2020-04-15T21:22:44.040593 | 2019-01-10T09:27:25 | 2019-01-10T09:27:25 | 165,027,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | import sys
gridFile = open(sys.argv[1], 'r')
policyFile = open(sys.argv[2], 'r')
grid_data = [x.split() for x in gridFile.readlines()]
policy = [x.split()[1] for x in policyFile.readlines()[:-1]]
nStates = 0
actions = ['N', 'E', 'S', 'W']
nRows = len(grid_data)
nCols = len(grid_data[0])
north = 0
east = 1
south =... | [
"agabohar@gmail.com"
] | agabohar@gmail.com |
c74ff5aebde1796318888f8c56bc6f5e35ea053a | 12c520c4f485dca125f4a7f8103c056a78c3a816 | /kolorki.pyde | 6c49680c89361ce951ca9deb927c9b60f1b2fa03 | [] | no_license | Wojowniczka1/kolorki | 393e6940dc1f4953756c47c5f995816e7803b76c | 8caaa9684a3feda592dff2a198d932da4f1a73a0 | refs/heads/master | 2020-04-30T11:57:37.821228 | 2019-03-20T20:48:58 | 2019-03-20T20:48:58 | 176,814,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | pyde | def setup():
frameRate(60)
size(400, 400)
background(255, 255, 170)
strokeWeight(2)
global krotka0
global krotka1
global krotka2
krotka0 = (149, 230, 163)
krotka1 = (220, 135, 220)
krotka2 = (255, 168, 149)
global krotka3
global krotka4
global krotka5
krotka3 = (1... | [
"48254319+Wojowniczka1@users.noreply.github.com"
] | 48254319+Wojowniczka1@users.noreply.github.com |
f648a0cb1508abb94a8ece9baa571ce1f7de2e9f | 6c6dde254df4072a2e8dd66b22375eab9d009f9b | /A3rcs/projects/A3rcs/virtual_cron_NV.py | ddcfa64bc9c050d52641bed4d5414ea918148cb3 | [] | no_license | aymin91/bigPy | 63e45b2e270a57a573a55db278f3239497d5dd0d | 5269ccfe0162920e1db79b6b90610c5201ddafad | refs/heads/main | 2023-06-21T18:48:22.750817 | 2021-07-22T07:07:12 | 2021-07-22T07:07:12 | 388,362,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | from time import localtime
import time
import NV_Crawler_Generator as NV_crawler
weekdays = ['월', '화', '수', '목', '금', '토', '일']
while True:
interval = 60
t = localtime()
# if t.tm_hour > 0 and t.tm_min > 0 and t.tm_sec%5==0:
if t.tm_hour == 1 and t.tm_min == 0 and t.tm_sec == 0:
... | [
"mayell9115@gmail.com"
] | mayell9115@gmail.com |
b23de1013a86b7bc80b2a76e200a8db9522b2306 | 6ab852a8acb6adf317eeffb98871d6adae18b1a0 | /venv/bin/launch_instance | 2bbfab70f1d3424587fe31500bc61d7b2516ce54 | [] | no_license | DwarkeshAhuja/KahootIt | dae7931743bd1628b4ae9055f945e5b8f07fb323 | e5523b8fb2329df04debf1e418ebf792b6a0077b | refs/heads/master | 2023-04-16T02:35:53.448382 | 2021-04-26T05:58:47 | 2021-04-26T05:58:47 | 359,279,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,648 | #!/Users/vivinahuja/PycharmProjects/Sem2_begins/venv/bin/python
# Copyright (c) 2009 Chris Moyer http://coredumped.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, ... | [
"dwarkeshahuja994@gmail.com"
] | dwarkeshahuja994@gmail.com | |
bc7f9575fac3c7ebcd14bc998bd920b8498a8942 | 99e583312e680cf7b8f9b07d0d582a6d6a063524 | /modules/m_functools/with_timer.py | 649ca663e9b7e4357f798b8439086a22404466d3 | [] | no_license | negiper/my_python | 23d2d2fe111d7c8d85a4f3fa1b036e843ee64092 | 14e61ed3840a99097031113f4ab9e857444f94f2 | refs/heads/master | 2021-01-23T00:20:32.270159 | 2018-02-25T07:59:20 | 2018-02-25T07:59:20 | 92,808,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | #coding=utf-8
#将time封装为一个计时器,用于with语句
#即定义一个计时上下文管理器(必须定义__enter__和__exit__方法)
import time
class Timer(object):
def __init__(self, verbose=False):
self.verbose = verbose
def __enter__(self):
self.start = time.time()
print 'Starting...'
return self
def __exi... | [
"noreply@github.com"
] | negiper.noreply@github.com |
bc4e473ea85b92d569a80bd6aeb76464a501dc4b | 590bd2b272aac6fea2ec4128818b9f8dc732b819 | /TP6/TP6.py | b53b537b1f6046a29591fe741c50be29a1de2ab6 | [
"MIT"
] | permissive | cedced19/tp-mpsi | 6ce6f2988297bab4f2d59fcdef0712178ebdb569 | bc1b57b6af63aa3db6e4f019b44ce3b872939b85 | refs/heads/master | 2020-04-13T16:56:21.625790 | 2019-08-20T10:56:27 | 2019-08-20T10:56:27 | 163,334,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,522 | py | #!/usr/bin/python3
import math
import matplotlib.pyplot as pl
# pi
def f(x):
return(4/(1+x**2))
# 0.693147
def g(x):
return(1/x)
# pi
def h(x):
return(6/(math.sqrt(1-x**2)))
def rectangle(f,a,b,n):
s=0
d = (b-a)/n
xk=a
for i in range(0,n):
s+=f(xk+d/2)
xk+=d
return (s*d)
print(rectangle(f,0,1,10... | [
"cedced19@gmail.com"
] | cedced19@gmail.com |
b278f7784694cab7b0f6e4c0ae2aa4bf7f6d02af | 0e083f405af00029c9ec31849f0f7f81c56844b5 | /configs/mmseg/segmentation_sdk_dynamic.py | bfb033efed815d9f803ec76bca1feeee792fd4fd | [
"Apache-2.0"
] | permissive | open-mmlab/mmdeploy | 39b9e7b611caab2c76a6142fcb99f0bf1d92ad24 | 5479c8774f5b88d7ed9d399d4e305cb42cc2e73a | refs/heads/main | 2023-09-01T21:29:25.315371 | 2023-08-31T09:59:29 | 2023-08-31T09:59:29 | 441,467,833 | 2,164 | 605 | Apache-2.0 | 2023-09-14T10:39:04 | 2021-12-24T13:04:44 | Python | UTF-8 | Python | false | false | 307 | py | _base_ = ['./segmentation_dynamic.py', '../_base_/backends/sdk.py']
codebase_config = dict(model_type='sdk')
backend_config = dict(pipeline=[
dict(type='LoadImageFromFile'),
dict(type='LoadAnnotations'),
dict(
type='PackSegInputs', meta_keys=['img_path', 'ori_shape', 'img_shape'])
])
| [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
3af8f7899082114e830510e4f0d6b11dc64eba1b | a700baf4c3cfc072a6e0d8c4d78cfd5b9f1af122 | /bin/python-config | 63ce8e96496ae205c4f622051dff732488f50811 | [] | no_license | agatakaczmarek12/Integration-project | 642ba4ae3c257d8769c6fe46395a6b9e1ece9cf9 | d6cfbfc68c9341560582ee8aa1e3d5d80cc99057 | refs/heads/master | 2022-12-14T15:33:14.634784 | 2019-03-26T13:21:53 | 2019-03-26T13:21:53 | 177,791,487 | 0 | 0 | null | 2022-12-08T02:30:43 | 2019-03-26T13:13:28 | JavaScript | UTF-8 | Python | false | false | 2,356 | #!/Users/agatakaczmarek/my_dash_app/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.ver... | [
"noreply@github.com"
] | agatakaczmarek12.noreply@github.com | |
714ca93fdeb2a55695bb540870749022fa4ce69c | f5c55128fa59e185a85b2bd795efe3259c309aa3 | /catkin_ws/build/turtlebot_simulator/turtlebot_gazebo/catkin_generated/pkg.installspace.context.pc.py | 7a7a058b8ca0d272001525bf91d21a7e3fa3392a | [] | no_license | phil-ludewig/Navigation-Project-Home-Service-Robot | 8a4d29db1b916b13487da5a747635d4972f3d0ca | 3f14d35a32ea3b6d432e6729cfbb1363e423311b | refs/heads/master | 2020-05-20T09:17:19.297879 | 2019-05-10T16:28:11 | 2019-05-10T16:28:11 | 185,496,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | 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 = "turtlebot_gazebo"
PROJECT_SPACE_DIR =... | [
"ph.ludewig.shp@gmail.com"
] | ph.ludewig.shp@gmail.com |
b6002bc250faf4ddfd8640d2a7ed44bf9176c3ec | 36785c0893ab1e2c81c6a03305f42459776a84e0 | /ambra_sdk/request_args.py | e29318245d880cd3dec5ab930e8d16a232ac1280 | [
"Apache-2.0"
] | permissive | dicomgrid/sdk-python | 06589f87f33850bd15e6e99fb683bada6492775f | 2618e682d38339439340d86080e8bc6ee6cf21b5 | refs/heads/master | 2022-08-28T14:50:35.864012 | 2022-08-22T12:36:50 | 2022-08-22T12:36:50 | 253,867,502 | 11 | 6 | Apache-2.0 | 2022-04-13T10:06:38 | 2020-04-07T17:36:56 | HTML | UTF-8 | Python | false | false | 5,637 | py | """Request args."""
from datetime import date
from json import JSONEncoder
from json import dumps as json_dumps
from typing import Any, Dict, Iterable, Mapping, Optional
import aiohttp
from aiohttp.helpers import sentinel
class Encoder(JSONEncoder):
"""Ambra arguments Encoder."""
def default(self, el: Any)... | [
"akapustin@ambrahealth.com"
] | akapustin@ambrahealth.com |
5df36ad7d20f34bdef546bfc788a807fa43b62dd | fafc8f3e7bce2f4a5e7eb4284615432e20d70724 | /user_profile/models.py | d019b508f88ec7c5e4de8be25f28bcf6009082f8 | [] | no_license | manirajyadav/Review_This | 524f0e88fd2dda1e9beb0713d60ca1981165f528 | f5a0694b78eeb0d63609de052c0e800caf616877 | refs/heads/master | 2021-01-01T19:12:47.133432 | 2017-08-08T16:27:25 | 2017-08-08T16:27:25 | 98,537,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py |
from __future__ import unicode_literals
from django.db import models
import uuid, datetime
# creating model to make a new signup and save details
class UserModel(models.Model):
name = models.CharField(max_length=120, null=False, blank=False)
email = models.EmailField(null=True)
username = models.CharFiel... | [
"maniraj.yadav96@gmail.com"
] | maniraj.yadav96@gmail.com |
b7919cb9f4fb2f39862de1e0735712377e38f585 | b49cfcb4727ebc525561eaea672d614558b3c609 | /telegram-bot/api/v0/routes/api.py | 94672f83b2c62e9f7d31ea8bcdaac25278c06bbd | [
"MIT"
] | permissive | lacmus-foundation/sharp-in | 77d579423b258eab90eec755ed727d8647a63bf6 | d1f30cbeed12c89016113e7c0f81a634fdd3b859 | refs/heads/master | 2021-02-25T23:50:02.471921 | 2021-01-22T09:09:18 | 2021-01-22T09:09:18 | 245,478,151 | 3 | 4 | MIT | 2020-06-23T20:21:01 | 2020-03-06T17:20:19 | Jupyter Notebook | UTF-8 | Python | false | false | 225 | py | from fastapi import APIRouter
from api.v0.routes import ping
from api.v0.routes import predict
router = APIRouter()
router.include_router(ping.router, tags=["ping"])
router.include_router(predict.router, tags=["predict"])
| [
"2326wz@gmail.com"
] | 2326wz@gmail.com |
24aa177bffbefe30593f636267f6ed4a2bbc8b73 | 3a6d382503e11753dd81b291145847a2eabb8ec6 | /experimental/compilers/reachability/llvm_util_test.py | 1b152a96e77ea6c4ead37e28fb642958074c3e74 | [] | no_license | QuXing9/phd | 7e6f107c20e0b3b1de2b25eb99e0b640a4a0bfcf | 58ba53b6d78515ed555e40527f6923e28941cc19 | refs/heads/master | 2022-02-27T03:29:05.126378 | 2019-10-22T02:46:57 | 2019-10-22T02:46:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,354 | py | """Unit tests for //experimental/compilers/reachability:llvm_util."""
import sys
import pyparsing
import pytest
from absl import app
from absl import flags
from compilers.llvm import opt
from experimental.compilers.reachability import llvm_util
FLAGS = flags.FLAGS
# Bytecode generated by clang using the following ... | [
"chrisc.101@gmail.com"
] | chrisc.101@gmail.com |
d4e55138a9716437c8d40bfe037e255c935053c5 | b1969b629718d7fd6a6b2a11619eae78b94449b3 | /message.py | 85389e067fbce56eb40b681d2e1c0695f57a9712 | [] | no_license | lchsk/lf2server | 80d76afbb3f87a017ddbf6ec1f84502c6e7f8e63 | ffa182a435fd81868dd868f7bcc18ef82b8ae6f6 | refs/heads/master | 2021-01-19T00:11:54.752177 | 2014-01-04T15:47:00 | 2014-01-04T15:47:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,676 | py | # -*- coding: utf-8 -*-
import json
import traceback, sys
import datetime
import time
import random
class MessageInterpreter(object):
def __init__(self, factory):
# Incoming string
self.raw_message = ''
# Incoming message in json format
self.message = {}
... | [
"mjlechowski@gmail.com"
] | mjlechowski@gmail.com |
a5063362194b242a21296389b20c2120b0384e9d | 56270ab66c1979f4b0029217ee8d1936d0e174e0 | /untitled0.py | bd829e807a31e92b4e7f1538a2737365a0fbd7e7 | [] | no_license | aJamesjr07/Assignment-1 | 7c583712fa7e1f7beca6ae724dae84a89a3eaf43 | 2fc08dbe4fb2faf1fe839be98cbd75300d7764f3 | refs/heads/master | 2022-12-03T21:56:39.084832 | 2020-08-11T14:21:53 | 2020-08-11T14:21:53 | 286,761,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,842 | py | # -*- coding: utf-8 -*-
"""Untitled0.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1SBXv6vFt7OuPxjUJeNOxiEGOLt4141Bs
"""
import numpy as np # linear algebra
import pandas as pd # data processing
import cv2
import matplotlib.pyplot as plt
import... | [
"noreply@github.com"
] | aJamesjr07.noreply@github.com |
436317d5e2aff0f9ed457bd3beaadfe87ff38b4d | 8104f04c4a31232962f82c9f237f87f7be3909b0 | /project-3/optim/PolyScheduler.py | ca90d3e3a5ce3d008dd6604541bd32195a7c21f6 | [] | no_license | AndrewZhou924/Digital-Image-Processing-Course-Design | 6624d4c819a0f980ddda103577de0677f134b38c | f3a4a29fd7c4dda25d249c2c36fd43efda2d8460 | refs/heads/master | 2021-07-07T00:49:24.584572 | 2020-03-31T07:35:37 | 2020-03-31T07:35:37 | 241,303,727 | 0 | 1 | null | 2021-06-08T21:07:18 | 2020-02-18T07:57:59 | Jupyter Notebook | UTF-8 | Python | false | false | 802 | py | from .Scheduler import Scheduler
class PolyScheduler(Scheduler):
def __init__(self, epoch_num, base_lr, power=2, warmup_epoch=0, final_lr=0.0, warmup_begin_lr=0.0):
super().__init__()
self.lr = 0.
self.epoch_num = epoch_num
self.base_lr = base_lr
self.power = power
... | [
"vealocia@gmail.com"
] | vealocia@gmail.com |
2b887ca5322df9eb742eec5d14620c6a8c37621d | b5921afe6ea5cd8b3dcfc83147ab5893134a93d0 | /tl/contrib/tweepy/auth.py | 51ed3d90ae2fd53d749c402f1806617c2846a51b | [
"LicenseRef-scancode-other-permissive"
] | permissive | techdragon/tl | aaeb46e18849c04ad436e0e786401621a4be82ee | 6aba8aeafbc92cabdfd7bec11964f7c3f9cb835d | refs/heads/master | 2021-01-17T16:13:18.636457 | 2012-11-02T10:08:10 | 2012-11-02T10:08:10 | 9,296,808 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,226 | py | # Tweepy
# Copyright 2009 Joshua Roesslein
# See LICENSE
from urllib.request import Request, urlopen
from urllib.parse import quote
import base64
from tweepy import oauth
from tweepy.error import TweepError
from tweepy.api import API
class AuthHandler(object):
def apply_auth(self, url, method, headers, paramete... | [
"feedbackflow@gmail.com"
] | feedbackflow@gmail.com |
87f68bcf618d998027044494849ca6cc6cbdb568 | b488060127559a3910ad5bf6642061019cc5f7df | /app/auth/views.py | f16dd5a46f53c65e4f7cb58c19eb52ce58c65ca7 | [] | no_license | hypnopompicindex/flasky | 1cf4e104bf68a192348049d651ddf7e35c6c6e0d | 2131bb49decd8a17d25078ab37205f12e22aefa1 | refs/heads/master | 2016-09-05T16:04:45.933010 | 2014-08-29T22:25:55 | 2014-08-29T22:25:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,999 | py | from flask import render_template, redirect, request, url_for, flash
from flask.ext.login import login_user, logout_user, login_required, current_user
from . import auth
from .. import db
from ..models import User
from .forms import LoginForm
from ..email import send_email
from .forms import LoginForm, RegistrationForm... | [
"hypnopompicindex@gmail.com"
] | hypnopompicindex@gmail.com |
a0647338bf9bf7f1b4ad381078643e483422723e | 825930f372fdf8c9c42cd2f9b1f424ab9de90b38 | /accounts/migrations/0003_order_note.py | 92701e816ce3c74d2368fbed83add82c8b9acf2c | [] | no_license | Xasanjon/crm2 | 56cbfa05d910144c75a3cdfe7423ba68fd576534 | 52279925e64e4268830fbeae6af897aef14b64d0 | refs/heads/master | 2023-07-02T04:13:33.928305 | 2021-08-16T14:53:43 | 2021-08-16T14:53:43 | 395,755,429 | 0 | 0 | null | 2021-08-16T14:53:44 | 2021-08-13T18:30:32 | Python | UTF-8 | Python | false | false | 392 | py | # Generated by Django 3.2 on 2021-08-02 20:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_auto_20210725_0252'),
]
operations = [
migrations.AddField(
model_name='order',
name='note',
... | [
"xasanboy99akaxon@gmail.com"
] | xasanboy99akaxon@gmail.com |
1b803449349f7c2d236f15348e6db398d826631f | 504344fc66e8d54081a17306d3012a16bbb81ee7 | /1_start_main.py | f5b040ad17b8d6c087939daec2d577d8e233f917 | [] | no_license | Ryanshuai/auto_pubg | 814753644a8e8e7aa3d7ca3c346a9e05b825c00d | 696f33f888efc441a74e142db878e836bbf3efee | refs/heads/master | 2022-09-21T12:13:24.155393 | 2020-11-12T20:03:43 | 2020-11-12T20:03:43 | 153,748,441 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | from PyQt5 import QtCore, QtGui, QtWidgets
from screen_parameter import show_position_y, show_position_x, show_size_y, show_size_x
from press_gun.robot import Robot
from state.all_states import All_States
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.re... | [
"1018718155@qq.com"
] | 1018718155@qq.com |
e3dcf09841e745cba160d63eb1c9356f434ba51f | bef6c39a273d3d6ff96ce22f5457310a9392df47 | /venv/Scripts/django-admin.py | de18f95c90277a1418fdb8e6319cdad6df4835bf | [] | no_license | genesis80013/holamundo2 | c59c20a378df50a3accfa8e5a3458e0beee80bdd | 2cfc9311728a4ea812393cf5f036f1a7a9e62c20 | refs/heads/master | 2023-02-03T06:48:11.287946 | 2020-12-17T01:35:46 | 2020-12-17T01:35:46 | 322,136,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | #!C:\Users\Genesis\Documents\UTEQ\tesis\practicas\holamundo\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"45234703+genesis80013@users.noreply.github.com"
] | 45234703+genesis80013@users.noreply.github.com |
802889fdf2a2055d19fb5e5785c6887a118bc1c1 | 9442b97a4bfdd0cdc90e5f498e8d16d8483aa5a1 | /ProblemSolverCentral/urls.py | 4c9be1e5559c97710521715b04d7564fd3c6e3a8 | [] | no_license | nauman-pucit/problem_solver | 9af25cf1507e28b76caf08df10818ee9ed0ca331 | 4da7f1d7f02695504887287db28f808c637a2286 | refs/heads/master | 2021-09-03T08:13:28.734243 | 2018-01-07T11:17:21 | 2018-01-07T11:17:21 | 116,555,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,155 | py | """ProblemSolverCentral URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='ho... | [
"nauman.pucit@gmail.com"
] | nauman.pucit@gmail.com |
729df1668f38187379126774eb98b50fe086bc12 | 57b1e8d4265c2985ded9bd033592f94bb16123d1 | /Python_2017_summer/Study_Day3/D3_01_input.py | 65c8b229dfc04efe21006e977116886ed3922e5b | [] | no_license | cloud-cloudbooks/Python_2018 | 0fd035184b0e31c6ab06ef5c83c67dc40cdb0ece | ba711f7f23367c5a6db2d8919d2ef87aad713a0f | refs/heads/master | 2021-08-30T18:52:09.124973 | 2017-12-19T02:12:42 | 2017-12-19T02:12:42 | 114,704,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # 입력 처리 input 명령어
#
name = input("이름이 무엇입니까? ")
print("안녕하세요", name, "님")
# input으로 숫자 두 개를 사용자한테서 입력받기
x = input("x값을 입력하세요 : ")
a = int(x)
x = input("y값을 입력하세요 : ")
b = int(x)
print(a*b) | [
"cloud@cloudbooks.co.kr"
] | cloud@cloudbooks.co.kr |
a8854b058391a3e400e059150fc9e2444400ab81 | d4b049d91795b5f8899f5ee60151a04be8890af9 | /litapplications/candidates/migrations/0037_auto_20170604_1531.py | 673c7eb72fcbdf9751afa92d8101506c0ee2c1c1 | [] | no_license | thatandromeda/litapplications | 3ab879c6edee1fd8424c3546eead47659699655a | d8b67d0b82ea14fb71b871f7563b7096640e4c25 | refs/heads/master | 2020-05-21T23:59:07.004211 | 2017-12-08T03:25:24 | 2017-12-08T03:25:24 | 64,570,749 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-06-04 15:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('candidates', '0036_auto_20170410_0025'),
]
operations = [
migrations.AddFiel... | [
"andromeda.yelton@gmail.com"
] | andromeda.yelton@gmail.com |
cf7998ad81daa62c4fba1aad1cf014844efd51c8 | c532e4d7466188ebbcca32413f592491eac9d7f8 | /leetcode/392.is-subsequence.py | e6cd21e9c3757a79129f956abc34459736ec87de | [] | no_license | Zedmor/hackerrank-puzzles | a1ff8601ea6d2bb3d2095909dfe00ef32346b74f | 2cc179bdb33a97294a2bf99dbda278e935165943 | refs/heads/master | 2023-01-10T13:57:26.649360 | 2023-01-04T03:27:05 | 2023-01-04T03:27:05 | 68,768,901 | 0 | 0 | null | 2017-03-05T18:24:18 | 2016-09-21T01:46:35 | Jupyter Notebook | UTF-8 | Python | false | false | 1,609 | py | #
# @lc app=leetcode id=392 lang=python3
#
# [392] Is Subsequence
#
# https://leetcode.com/problems/is-subsequence/description/
#
# algorithms
# Easy (47.97%)
# Total Accepted: 233.6K
# Total Submissions: 474.3K
# Testcase Example: '"abc"\n"ahbgdc"'
#
# Given a string s and a string t, check if s is subsequence of ... | [
"zedmor@gmail.com"
] | zedmor@gmail.com |
8ee4bb76f96e2354994b15cfc2903c1056a63de8 | 29df72553575c6d18241109ffd9e3bb02c21cf8c | /rl/agent.py | 12f283a20394ca097889a3f40a2a3b61eae27659 | [] | no_license | vladhc/rl-udacity | 3678e944feebb3c4f00b337a45340a897e6e973a | 22326031d2465a62a5f0d540cece5ec4adba87be | refs/heads/master | 2020-05-09T18:48:28.566816 | 2019-07-14T13:09:27 | 2019-07-14T13:09:27 | 181,355,384 | 1 | 2 | null | 2019-09-06T15:36:34 | 2019-04-14T18:59:24 | Python | UTF-8 | Python | false | false | 2,835 | py | from rl import Reinforce, QLearning, ActorCritic, PPO, MultiPPO
def create_agent(env, args):
action_space = env.action_space
observation_shape = env.observation_space.shape
print("Action space: {}".format(action_space))
print("Observation space: {}".format(env.observation_space))
agent_type = ar... | [
"vladhc@gmail.com"
] | vladhc@gmail.com |
b5e97ffee6a1cf13d2ddcebf6237fca2dfb79d96 | 24c94bc45940e119d47e94d5e68e988ea6e6fae7 | /pydoctor/test/__init__.py | cbfcf25c97caebc7b5950c06ef3e6caf76833a2a | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | The-Genius-Thories/pydoctor | 9e247f6c234fd18cfeac52d6440b707903152f92 | 5e20f51ae0a34183ee41c1068a5b5aac506628d5 | refs/heads/master | 2021-01-23T05:18:50.971558 | 2017-03-14T07:42:54 | 2017-03-14T07:42:54 | 86,296,525 | 0 | 0 | null | 2017-03-27T05:55:59 | 2017-03-27T05:55:59 | null | UTF-8 | Python | false | false | 29 | py | """PyDoctor's test suite."""
| [
"michael.hudson@canonical.com"
] | michael.hudson@canonical.com |
56a53cf0a36b5b36076f79e659a49128f7fa1265 | ada026a8588611f18a0bae44619aea6dc89c07a7 | /backend/event/models.py | 94899bc08145ed779dc022f61534cb2e63f156b5 | [] | no_license | crowdbotics-apps/iqraa-25096 | 5a363ec49766352d23de9348bfddcaed187b98c8 | 42def0722c287182c100ef46a4284236fbd2f04e | refs/heads/master | 2023-03-22T23:40:21.685747 | 2021-03-18T09:17:50 | 2021-03-18T09:17:50 | 349,008,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,882 | py | from django.conf import settings
from django.db import models
class Vendor(models.Model):
"Generated Model"
name = models.TextField()
logo_image = models.SlugField(
null=True,
blank=True,
max_length=50,
)
type = models.TextField(
null=True,
blank=True,
)... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
56f214efda239288f6fcf2f4b2a0c34393d2b28e | fbfd802dfbad2efa660b1554c634d9b96a20f220 | /rest/sessions_start.py | 8551ac31dc222d780d394f859842bc3a33ad87e6 | [] | no_license | laser-me/cassandra_python | a448e4b0cdb7e739555d2b77b257979078f9f7b1 | 28c67ce6d40d0c2f21a27540f2eb754adc66f485 | refs/heads/master | 2020-03-23T08:29:06.341376 | 2018-07-19T13:25:11 | 2018-07-19T13:25:11 | 141,329,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | from flask import jsonify
from flask_restful import Resource
from datetime import datetime, timedelta
from helpers.cassandra import execute
# SELECT * FROM events_start_by_country where ts >= '2016-11-22T20:40:50' ALLOW FILTERING;
class SessionsStart(Resource):
def get(self, hours):
hours_ago = datetime.... | [
"laser.me@yandex.ru"
] | laser.me@yandex.ru |
a65a5fe2737f2506964095d71631ff9e74b89d51 | 1b7f4cd39bf7e4a2cf667ac13244e5138ee86cb2 | /agents/displays/human_display.py | 4ad2949060ec0816a46e1db1e5ae89c9fd33bade | [
"MIT"
] | permissive | cjreynol/willsmith | 02f793003a914a21b181839bbd58108046f312d6 | 39d3b8caef8ba5825f3a0272c7fd61a2f78ef2b5 | refs/heads/master | 2020-07-15T13:25:57.613707 | 2018-06-12T00:18:19 | 2018-06-12T00:18:19 | 205,572,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | from tkinter import Button, Entry, Label, END
from willsmith.gui_display_controller import GUIDisplayController
class HumanDisplay(GUIDisplayController):
"""
Creates a Tkinter GUI that allows the user to input their moves.
"""
WINDOW_TITLE = "Human Agent"
LABEL_FONT = ("Courier New", 14)
... | [
"cjreynol13@aol.com"
] | cjreynol13@aol.com |
cf011e7785fadb13add387804237a74bc4a3c4e5 | 152ea447e7b665bd795f84dd8e7e73ff2eeeb864 | /video_facial_landmarks.py | 92fffda8793513364e4e84f176e7085beee70ad1 | [] | no_license | angel-stha/Facial-Landmarks | be86a66394514cc4dc46126987b5d4b9a90392ba | 23a7da053ce38a264e19e5b7ac90d4f0df8cd051 | refs/heads/master | 2023-05-11T06:10:22.372849 | 2021-05-26T12:08:37 | 2021-05-26T12:08:37 | 370,675,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,298 | py | # USAGE
# python video_facial_landmarks.py --shape-predictor shape_predictor_68_face_landmarks.dat
# python video_facial_landmarks.py --shape-predictor shape_predictor_68_face_landmarks.dat --picamera 1
# import the necessary packages
from imutils.video import VideoStream
from imutils import face_utils
import datetime... | [
"angelshrestha33@gmail.com"
] | angelshrestha33@gmail.com |
2a4ebee7a17396272a25195c34485eee9ed82a04 | d53d253ae49cd0497cb58f10a2e5b305d0d98cec | /code/handlers/local_handler.py | f753debb505d2689221ee3e0cd08215b866a5afe | [
"MIT"
] | permissive | hfiuza/ApartmentFinder | 9a7cc00b2f62538166103a170a5683bd2cc7acf7 | 476b5364f9ea807037e374934b0b14959143addd | refs/heads/master | 2020-07-06T08:44:24.192414 | 2020-03-09T18:33:32 | 2020-03-09T18:33:32 | 202,959,672 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | import pandas as pd
import os
from constants import LOCAL_PATH, APARTMENTS_FILENAME
def basic_write(df):
df.to_csv(os.path.join(LOCAL_PATH, APARTMENTS_FILENAME))
def basic_read():
return pd.read_csv(os.path.join(LOCAL_PATH, APARTMENTS_FILENAME))
| [
"henriquegfn@gmail.com"
] | henriquegfn@gmail.com |
9999bb084c19897bd8e0f40f1449c5ab8305baec | 2a6d385c7737aea3c6b49eef9252babb7557b909 | /MCTools/test/lheTreeMaker.py | 7c6aa48eac2b99e552e3669d2e943613a8222e6a | [] | no_license | Sam-Harper/usercode | 1b302a4b647e479d27a9501f9576bd04b07e111a | fa43427fac80d773978ea67b78be58d264f39ec8 | refs/heads/120XNtup | 2022-08-26T12:59:53.388853 | 2022-07-12T16:52:46 | 2022-07-12T16:52:46 | 15,675,175 | 1 | 11 | null | 2022-07-21T13:27:57 | 2014-01-06T13:54:22 | Python | UTF-8 | Python | false | false | 2,051 | py | # Import configurations
import FWCore.ParameterSet.Config as cms
# set up process
process = cms.Process("PDF")
# initialize MessageLogger and output report
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.MessageLogger.cerr.FwkReport = cms.untracked.PSet(
reportEvery = cms.untracked.int32(10000),
... | [
"sam.j.harper@gmail.com"
] | sam.j.harper@gmail.com |
6fdc4e0fca38fb80ce40e5680d102692c83e94c8 | 815b69743fa7fe21e60416f322e13a280e34340c | /messageEvent.py | 731ab264e01f0a57e56d26dc4ed914725c7f1905 | [] | no_license | MohammedAdain/gui-Using-Python | a3ed4d2703e3e19ebb1a5fb06620b1e8da51f5be | a9662f11ad87bd9fd16730411fb1728a39bc2754 | refs/heads/master | 2023-03-14T16:37:42.873077 | 2021-04-04T04:15:55 | 2021-04-04T04:15:55 | 354,452,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | from tkinter import *
def motion(event):
print("Mouse position: (%s %s)" % (event.x, event.y))
return
def hello(event):
print("Single Click, Button-l")
def quit(event):
print("Double Click, so let's stop")
import sys; sys.exit()
master = Tk()
whatever_you_do = "Whatever... | [
"adain@edsoft.com"
] | adain@edsoft.com |
ce73b02605176f3517e6fef78e667b56270a8591 | 18145f775eb9421d6b7e931bc101dc32b08844c9 | /genCSV.py | 901e6ce670371193516c7042758a63ca59bf0057 | [] | no_license | bloomcyber/trust-simulation | 806b57193a66640ad9dd4cf826126543bf205f38 | 8224abc22bb2ee0c4dde22870bf57476e015e05a | refs/heads/master | 2022-12-27T15:43:16.744897 | 2020-10-02T08:42:40 | 2020-10-02T08:42:40 | 294,372,900 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | from subprocess import check_output
import pandas as pd
import sys
def get_one_line(filepath, line_number):
return check_output([
"sed",
"-n",
"%sp" % line_number,
filepath
])
def getdata(filename,readfor):
arr=[0,1,2,3]
if(readfor=='-usr:pre_trusted'):
arr[0]=int(get_one_line(fil... | [
"noreply@github.com"
] | bloomcyber.noreply@github.com |
80766577f6aacb94547926a5d8d96a7835dae62f | 2b068c9c81bb1972418ab86efdae04a732dcf3c4 | /newsApp/views.py | 077d08b871c4d2bbb3352bd212a1aa150762df99 | [] | no_license | lharvey2142/newsRank | 69faa35e114bb84cb4dbc9581e11e89eb6d54975 | 5435df0ff94482f609783731b944adfa6c6400ba | refs/heads/master | 2021-01-20T02:37:20.461462 | 2018-02-28T23:17:22 | 2018-02-28T23:17:22 | 89,428,133 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,681 | py | from django.shortcuts import render
# Create your views here.
from django.core.urlresolvers import reverse
import sys
sys.path.append('/Users/froyvalencia/newsRank')
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE','mysite.settings')
import django
django.setup()
from django.contrib.auth.models import User
use... | [
"froyvalencia@gmail.com"
] | froyvalencia@gmail.com |
5ad5a813c1c775a599ada42dbdfdc2a84f76dd34 | 0438eaa48bd5aa4363f9fbc3980cabdd57051610 | /test/lib/opensocial-python-client/build/lib/oauth/__init__.py | 37a30fc0c855a95a528ca80c0f065808e66877ec | [
"Apache-2.0"
] | permissive | mozilla/weaveserver-identity | 4d4261a0d2a00f4588867ac87a85881122d14da8 | cc4b5651710dbc2941ebc5c15a1b5aeac7a09abf | refs/heads/master | 2023-08-22T01:48:38.650181 | 2010-03-10T19:32:13 | 2010-03-10T19:32:13 | 875,480 | 2 | 2 | null | 2019-03-28T03:37:37 | 2010-08-31T18:15:46 | Python | UTF-8 | Python | false | false | 18,619 | py | import cgi
import urllib
import time
import random
import urlparse
import hmac
import base64
VERSION = '1.0' # Hi Blaine!
HTTP_METHOD = 'GET'
SIGNATURE_METHOD = 'PLAINTEXT'
# Generic exception class
class OAuthError(RuntimeError):
def __init__(self, message='OAuth error occured.'):
self.message = message
... | [
"mhanson@mozilla.com"
] | mhanson@mozilla.com |
e988f8b8da91a7a855a13291c4bc74d81d30bdc1 | cce9b0564353cb8060a616ff685c73a16467def1 | /flask-blog/blog.py | c8ced379579d9638fe27efa7567b6fc4303cdad8 | [] | no_license | xirain/realpython-test | 381cb9cb2bb11b610b4caf239b29e1a03388c612 | e7d34b0f2e364c2c623b88f141508fbfc3e2e2f4 | refs/heads/master | 2021-01-19T10:31:18.938779 | 2015-08-05T08:45:04 | 2015-08-05T08:45:04 | 39,760,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py | # blog.py - controller
from flask import Flask, render_template,request, session, flash, redirect, url_for, g
import sqlite3
from functools import wraps
# configuration
DATABASE = 'blog.db'
USERNAME = 'admin'
PASSWORD = 'admin'
SECRET_KEY = "\x9e\xfeS\xf7`\xb5\xe0\xb8\x0b\x1c_\xbe'\xaeB\xa0\x91\xdaFtYl\xf0\xea"
a... | [
"wangy675@163.com"
] | wangy675@163.com |
1ac20949699cae64ef0396dfd3214cf9042edb6c | c4a9c2686c876a5a54e02de07c32a830edccab49 | /TestCases/test_FetchUser.py | 6ba199c5db6b8332a1228ed378d2c3f5d270ea9b | [] | no_license | idrismys/Mobiquity | 1175067e5d836c1b70abd518e0db475c9db02513 | c269b32016f982d1c5fc9a48b1a4641dc047584a | refs/heads/main | 2023-04-05T16:55:25.599298 | 2021-04-05T15:01:24 | 2021-04-05T15:01:24 | 354,870,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | import re
from GET_request import userdata
def test_status():
'''To fetch the user Delphine details and validate if Delphine is the user'''
assert userdata.get_request()
def test_user():
'''To get the user details'''
assert userdata.get_user()
def test_posts():
'''To get the posts return by... | [
"noreply@github.com"
] | idrismys.noreply@github.com |
8e1660ff5cde5328e6f3aad787189e00c9d6364f | 2bbca3a523961a92399037a34bf8f7970c78226f | /pymcaspec/__init__.py | a160ceb03bd995ad0053bfcb96956fef1b48f422 | [] | no_license | siddharth-maddali/pymcaspec | 9fc7a6a01531bd0e288468b1ca1de0f49914f115 | f1cf69ee445e7953a68f0959168644cbb9bf2010 | refs/heads/master | 2023-06-26T08:02:53.931894 | 2021-07-31T16:14:33 | 2021-07-31T16:14:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | from pymcaspec.pymcaspec import specfile
| [
"mpmdean@gmail.com"
] | mpmdean@gmail.com |
479c4005bc40c5356945d77fee28e62ea2ed1a73 | 5f06aed9d2daf802c30a3145407cc505f517a7a3 | /lqr.py | 70e79013ec887ce78364edad418fe2027f8e718e | [] | no_license | bloom1123/ae504-project | f90b2ddffef40c859516511650a3360e686050fb | 74d6a444eb2ddc5fb5ab63627c42793c4747b6a4 | refs/heads/main | 2023-05-27T23:19:26.694416 | 2021-06-04T20:53:10 | 2021-06-04T20:53:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | import numpy as np
from control import StateSpace, lqr
from scipy import linalg
class LQR():
def __init__(self, A, B, C, D, Q, R):
sys = StateSpace(A, B, C, D)
K, S, E = lqr(sys, Q, R)
P = linalg.solve_continuous_are(A, B, Q, R)
K = np.dot(np.linalg.inv(R), np.dot(B.T, P))
... | [
"rupaln@Rupals-MacBook-Pro.local"
] | rupaln@Rupals-MacBook-Pro.local |
6bc9a2e642545ddc7f78dfd07ec3bae2d3ce5618 | 8294b6c63e95ec6d70bef1ef3f4304766dcc52fa | /tf_learning/t2_loading video source.py | 2606f21affffb465e1f1a06cf357ce6181a74d4a | [] | no_license | Foundream/ML_practise | 789b1ba9925dde6f2e3a0f086bd3fb7e177caeb6 | 346fafbdedb8497a18f753216a4d7451d11df0ce | refs/heads/master | 2023-03-19T02:15:09.511826 | 2019-10-18T09:56:27 | 2019-10-18T09:56:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | #-*- coding: utf-8 -*-
import cv2
import numpy as np
cap = cv2.VideoCapture('F:/python/image/video_sample.mp4')
#0 表示打开笔记本的内置摄像头,如果参数为路径则 按路径打开视频
fourcc = cv2.VideoWriter_fourcc(*'XVID') #指定编码器
#fourcc = -1
out = cv2.VideoWriter('F:/python/image/output.avi', fourcc, 20.0, (640, 480))
while True:
ret, fra... | [
"LybCrystal@163.com"
] | LybCrystal@163.com |
f30268df793ae4ebb2f3520f3a02abd6ca852d76 | 33f7a383760442d437592f367d3a5b6d5100088b | /venv/bin/pip2.7 | 07bda9241c2f900489d67de26049ba4059135eb8 | [] | no_license | kreyyser/SwampDragon-Messenger | 935837771a7c2b1eb75e0cbc042666664f3202a7 | 72db670b7df61304f1b072637a08eeb8d0f2791d | refs/heads/master | 2021-06-02T12:48:29.713445 | 2016-06-13T08:37:52 | 2016-06-13T08:37:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | 7 | #!/home/vagrant/conference/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"kreyser2007@mail.ru"
] | kreyser2007@mail.ru |
22fcbd946d08b1b0360883cebf92843acdabaae0 | 853c6a09af16fd4dd8a53efa8bde631e63315b59 | /Programmers/correct braket.py | 0936aa47db0765ce63be6d8daa769dea7d790e1b | [] | no_license | Areum0921/Abox | 92840897b53e9bbab35c0e0aae5a017ab19a0500 | f4739c0c0835054afeca82484769e71fb8de47c8 | refs/heads/master | 2021-12-13T11:16:33.583366 | 2021-10-10T08:09:50 | 2021-10-10T08:09:50 | 176,221,995 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | def solution(s):
answer = True
stack = []
for i in s:
if (i == '('):
stack.append(i)
else:
if (stack):
stack.pop()
else:
return False # 짝이 안맞을때
if (stack): # 스택에 남아 있는게 있을때
return False
return True | [
"a90907@gmail.com"
] | a90907@gmail.com |
af1df097bd547ba10773333cd95a29217a8fcd38 | 54f2617410e95fa7c07e5acaa45dbdf1e7bf7c8a | /tasks/sortinghat | 884aafdedb355852f0df9f45680735b7cd3beafa | [
"MIT"
] | permissive | daniel-j-h/pegasus | 368fb6251c887ba33a346d926c94a4e01585d962 | db01738c73ae9ed85772f25f1a7af72fcc6caa71 | refs/heads/master | 2021-01-16T22:13:20.303729 | 2016-05-02T21:51:41 | 2016-05-02T21:51:41 | 58,081,999 | 0 | 0 | null | 2016-05-04T20:29:35 | 2016-05-04T20:29:34 | null | UTF-8 | Python | false | false | 746 | #!/usr/bin/env python3
from collections import namedtuple
import random
def main():
Wizard = namedtuple('Wizard', 'name house')
houses = ['Gryffindor', 'Hufflepuff', 'Slytherin', 'Ravenclaw']
myhouse = random.choice(houses)
me = Wizard('Jane Doe', myhouse)
print("Welcome to Hogwarts! This year, new... | [
"mariam.mrf@hotmail.com"
] | mariam.mrf@hotmail.com | |
4b3961aa5d8906bd87af450467577e695d335f83 | b0c0008213c633e6d32d8536a98934047f38ba17 | /consumer.py | e8cd2071c6864f984bb83cc67f04e9e66677ddc7 | [] | no_license | benthomasson/kafka-test | 8363f6a880544a6037e88d01b33954524b3b38ac | 95b1e89dd5a009b47a35ac5886c1980e2c5d5fcc | refs/heads/master | 2020-06-13T17:34:55.464840 | 2019-07-01T19:49:22 | 2019-07-01T19:49:22 | 194,734,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Usage:
consumer [options]
Options:
-h, --help Show this page
--debug Show debug logging
--verbose Show verbose logging
"""
from docopt import docopt
import logging
import sys
from kafka import KafkaConsumer
logger = logging.ge... | [
"bthomass@redhat.com"
] | bthomass@redhat.com |
54a2e50782bfdc0adbf20311b66314e4309644e5 | 7b0d877a8155cee067eeb29edb48b1f0e72bf5ff | /sdofNewmexico.py | 78d4f1e719c8f7fcdf20653ac14544dd87ec8201 | [] | no_license | nancysackman/oscillator | 14a370fb697c7901121e77c75f1c49d4ec4e48e9 | 7557e2a315fc9d1d4d0e91ae3327edb9f152addf | refs/heads/master | 2021-06-17T01:35:46.500361 | 2019-05-26T04:55:55 | 2019-05-26T04:55:55 | 135,765,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,942 | py | import math
from numpy.linalg import inv
import matplotlib #.pyplot as plt - for crash
matplotlib.use("TkAgg")
from matplotlib import pyplot as plt #added for crash
import numpy as np
import sys
#for frequency domain
import obspy
from obspy import read
from obspy.signal.tf_misfit import plot_tfr
from obspy.clients.fds... | [
"noreply@github.com"
] | nancysackman.noreply@github.com |
02b1b111c99cf004798da0c8d0f6d0586e524c1d | dd7c7f19d1599669dd39af3e9b6e2bd198ad4ed4 | /backend/tests/blockchain/test_hex_to_binary.py | 0acf03c0d1d9f69499be572bde56822461680995 | [] | no_license | komfysach/komfykrypto-pychain | 46fe47d337ba6aff804f6c810cebeb94e15578d4 | 119c3978b819d8def705f7d35074b9334c596770 | refs/heads/main | 2023-05-06T13:30:40.344383 | 2021-05-24T09:30:21 | 2021-05-24T09:30:21 | 370,708,574 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | from backend.util.hex_to_binary import hex_to_binary
def test_hex_to_binary():
original_number = 789
hex_number = hex(original_number)[2:]
binary_number = hex_to_binary(hex_number)
assert int(binary_number, 2) == original_number | [
"sach@getkomfy.net"
] | sach@getkomfy.net |
00c911e4c527233070ba2fa5de35f5171b0ca8aa | f9b047b25184787af88fd151f2a6226b6b342954 | /investmentTornadoServer/job/utils.py | 581a1d268a82693f0a2333452e34f3017c4a5356 | [] | no_license | CallMeJiaGu/TonrnadoRecomendServer | 4bfc3dd6d6a432321f80b12d66bb424fbc1a0911 | 54bb21191b16da27c20ce64ab14762bc777e30ca | refs/heads/master | 2020-03-23T19:31:43.291995 | 2019-07-04T03:04:58 | 2019-07-04T03:04:58 | 141,984,920 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
def l2m_str(l):
return '{%s}' % ','.join(['"%s":'%a + str(b) for a,b in l])
if __name__ == '__main__':
l = [('227948d3-b19a-11e6-8836-005056b3f30e',0.123787622),('fa4d2d6d-b199-11e6-8836-005056b3f30e',0.93)]
print l2m_str(l)
| [
"646696382@qq.com"
] | 646696382@qq.com |
7491ded17babba2e25a320468b4c7f2d03ec8014 | 2d67afd40a0425c843aa8643df9f7d5653ad0369 | /python/leetcode/836_Rectangle_Overlap.py | 07a9c93dabe68189566acdbdd57f7dd25eead09a | [] | no_license | bobcaoge/my-code | 2f4ff5e276bb6e657f5a63108407ebfbb11fbf64 | 70bdd75b6af2e1811c1beab22050c01d28d7373e | refs/heads/master | 2022-12-23T22:38:10.003058 | 2020-07-02T03:52:43 | 2020-07-02T03:52:43 | 248,733,053 | 0 | 0 | null | 2022-12-10T05:41:57 | 2020-03-20T10:55:55 | Python | UTF-8 | Python | false | false | 683 | py | # /usr/bin/python3.6
# -*- coding:utf-8 -*-
class Solution(object):
def isRectangleOverlap(self, rec1, rec2):
"""
:type rec1: List[int]
:type rec2: List[int]
:rtype: bool
"""
return not (rec2[0] >= rec1[2] or rec2[1] >= rec1[3] or rec2[2] <= rec1[0] or rec2[3] <= re... | [
"378082326@qq.com"
] | 378082326@qq.com |
9407844ed952f899533179be6b9a92d0a84e728d | 77197c85cd53ea6f20a8646ca6969a40a5620ea4 | /billing_system/manage.py | cc242699be306fa52272a8e4ffc6a46fa5d6dcce | [] | no_license | gowrishankkar/Learning-Django | cb54b11c784f8eb433127443856a50c031173d84 | 948eba5d7d7c505886c4a54ccd53305995972338 | refs/heads/master | 2023-05-04T13:09:10.675197 | 2020-01-12T11:55:18 | 2020-01-12T11:55:18 | 222,991,681 | 0 | 0 | null | 2023-04-21T20:45:41 | 2019-11-20T17:29:09 | Python | UTF-8 | Python | false | false | 634 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'billing_system.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise... | [
"shankarg.kvsulur@gmail.com"
] | shankarg.kvsulur@gmail.com |
cbea43460a977b85a009490bc47d6af3c5e1144f | 319731c4788fb82813f81a63cac3f23171285815 | /config/settings/local.py | c9429ceadfc5025320a07b57849834cb9379a74c | [
"MIT"
] | permissive | seankim84/djangoproject | 2171abac27c2fc41d5d2ac8a0f86fa6772c10439 | dc442098d8e17beff086f3acd325f8fca3b41583 | refs/heads/master | 2022-12-13T23:01:53.078813 | 2018-05-16T13:19:50 | 2018-05-16T13:19:50 | 130,310,410 | 1 | 0 | MIT | 2022-12-09T08:30:55 | 2018-04-20T04:49:40 | Python | UTF-8 | Python | false | false | 2,621 | py | from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = env.bool('DJANGO_DEBUG', default=True)
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET... | [
"rebekahpark@Rebekahs-MacBook-Pro.local"
] | rebekahpark@Rebekahs-MacBook-Pro.local |
8f73960e9cd985f473f88967aa7424ab07f7bcbe | aa692f369966074141873a473894362913750e01 | /reportform/asgi.py | 52f03e6cc3a8f2461ec7170e6d02e3bf734d97bc | [] | no_license | yashacon/Progress_form | d8747d6ba28266cabd2c88ecfdcf4816c7350569 | 0f26733383f79e9e34992cd12a308a410c27f37f | refs/heads/master | 2022-04-22T14:47:05.119632 | 2020-04-19T15:14:16 | 2020-04-19T15:14:16 | 257,029,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for reportform 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_SE... | [
"17dcs017@lnmiit.ac.in"
] | 17dcs017@lnmiit.ac.in |
20688f9fbecd94fef4e8a70dc5432eb3034c6c26 | 0f8ead88551d6da281410924ba00b6940d24cd7d | /BipedalWalkerHardcore-TD3-FORK/model.py | 1682897cda862725a921607ab69d3d922d89ce9c | [] | no_license | jianyunli/Deep-Reinforcement-Learning-Algorithms | 398d4e40730edc52cc2a2c6da1d9a71bb43d19e5 | 85b1148de13cd5a2a46cce016412f783163e50a0 | refs/heads/master | 2023-06-02T06:23:12.131703 | 2021-06-17T21:58:26 | 2021-06-17T21:58:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,212 | py | ## import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
class Actor(nn.Module):
def __init__(self, state_size, action_size, seed, fc_units=400, fc1_units=300):
super(Actor, self).__init__()
self.seed = torch.manual_seed(seed)
self.fc1 = nn.Linear(state_size,... | [
"klivlend1@yahoo.com"
] | klivlend1@yahoo.com |
c33743585b9a553e3d3858a7fff83eb8abfe4436 | 7f1d31cf00f8a1fc175d67c7be6e11367179d3f6 | /tests/nlu/extractors/test_extractor.py | b0739e047c43aac5b670854f89971dc56ef5e29e | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"MIT"
] | permissive | russosanti/rasa | 226ec14e3a326ba2ad9cb0aae57c79465c88b5ab | 21fb0cc8e92cf270e4228438cb386f1d6f364563 | refs/heads/master | 2023-04-07T13:25:53.848512 | 2020-04-16T21:59:58 | 2020-04-16T21:59:58 | 256,278,604 | 0 | 1 | Apache-2.0 | 2020-04-16T17:05:06 | 2020-04-16T17:05:05 | null | UTF-8 | Python | false | false | 7,622 | py | from typing import Any, Text, Dict, List
import pytest
from rasa.nlu.tokenizers.tokenizer import Token
from rasa.nlu.training_data import Message
from rasa.nlu.extractors.extractor import EntityExtractor
@pytest.mark.parametrize(
"text, tokens, entities, keep, expected_entities",
[
(
"Aa... | [
"tabergma@gmail.com"
] | tabergma@gmail.com |
eaf21fc64fa4a9963db8428a6d85332bb1f68acf | d2fc4d45b115fb861097657d00b3c5cb08e8a3ad | /scenarios/bank_account_delete/executable.py | 22c888baa03eda9722fd271e2a6f2c9a58e213cb | [] | no_license | jess010/balanced-python | 81b39f0e9d3ce52d60f2453b8c98e77f07ee3acb | b7a6bf0430ad0299d96de15ea97d3d4ccfb4c958 | refs/heads/master | 2020-12-25T16:13:35.626111 | 2013-09-20T00:14:58 | 2013-09-20T00:14:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | import balanced
balanced.configure('b5de51921b2d11e389c4026ba7cac9da')
bank_account = balanced.BankAccount.find('/v1/bank_accounts/BA5YXVcU9ExcM8jXQhQt7ZY6')
bank_account.delete() | [
"ben@unfiniti.com"
] | ben@unfiniti.com |
6cc365c4f9acf9409c990e5df987800c17b73dca | c9cf7ed6dc1974b9f051d1727d6344be3b413ac8 | /product/migrations/0013_productvariant_options.py | 5d1884bdceb560d1b59bb6a66e1dc5a8a66480ed | [] | no_license | Samuelyip74/alcatelconfigurator | f4dbd1eabb40645b92a80d438bf82a1572db3fe1 | f7cc2bda2b9504fc3708e9cd08db69d611700a6a | refs/heads/master | 2020-08-02T04:24:52.822370 | 2019-10-24T16:32:32 | 2019-10-24T16:32:32 | 211,232,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # Generated by Django 2.2.3 on 2019-09-23 06:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0012_auto_20190923_1405'),
]
operations = [
migrations.AddField(
model_name='productvariant',
name='optio... | [
"samuel.yip@live.com"
] | samuel.yip@live.com |
86ba2b6052d3e743fb070ef7f0e05d157df3fe4d | 0dee7cc69ae44e30c5cb372eb17f2e469635056b | /AirBnB_clone_v3/api/v1/app.py | 3b75dd5b7cb112990fe65ac206b8bb1c37bb41c1 | [
"LicenseRef-scancode-public-domain"
] | permissive | HausCloud/Holberton | 00cd25b4a489041e041551ea8f87674d53f43713 | b39c5978698e02b9e746121d6c55d791b73e6d9b | refs/heads/master | 2022-12-13T01:06:18.968047 | 2020-09-05T18:23:00 | 2020-09-05T18:23:00 | 293,129,232 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | #!/usr/bin/python3
''' py file to connect to API '''
from os import getenv
from models import storage
from api.v1.views import app_views
from flask import Flask, Blueprint, jsonify, make_response
from flask_cors import CORS
app = Flask(__name__)
app.register_blueprint(app_views)
cors = CORS(app, resources={"/*": {"or... | [
"hauscloud.me@gmail.com"
] | hauscloud.me@gmail.com |
4a63a1397166ed0b69110d3d9acb6fe269d7b0bd | c961141266376129d446382b24cf98022667e8d9 | /transDocx_20200914.py | 9c5c2e0eed9156a5f9bed4361a138f547c9937ec | [] | no_license | zilongxuan001/LearnPythonhandbook | a130081fdf11680070e866783094542054940867 | b5b37aecaf7a757cb2c7ae9f5448eb9b30437215 | refs/heads/master | 2023-01-19T08:29:15.837931 | 2020-11-24T06:25:23 | 2020-11-24T06:25:23 | 315,538,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # transDocx.py
# 更改肉菜周报的运维数据
from docx import Document
from docx.shared import Cm
from docx.enum.text import WD_ALIGN_PARAGRAPH
import re
document=Document(r"d:\ex\肉菜20907.doc")
paragraphs = document.paragraphs
text = re.sub('159308','235',paragraphs[18].text)
document.save()
ERROR: No matching distribution found ... | [
"zilongxuan001@163.com"
] | zilongxuan001@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.