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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aebc4e50014de1c5ec9615171ee463e06d6eb574 | b64b90241b86b943b70fc5192e47e0d9671c81e2 | /Loops examples.py | dd35266f3e0388af26a5e698d9825b3d0d91f4c7 | [] | no_license | KosgeiLawrence/Learn-Python-2 | dc292caec39b7bb04e978efdacbde25803a3afc4 | c18309bdfbc0c03e65ea0a1cf76101b098819e15 | refs/heads/main | 2023-04-07T09:10:55.240407 | 2021-04-15T20:43:02 | 2021-04-15T20:43:02 | 358,386,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | # -*- coding: utf-8 -*-
"""
Created on Thu May 30 21:58:28 2019
@author: Lawrence
"""
import turtle
for colour in ['red','blue','green','black']:
turtle.colour(colour)
turtle.forward(90)
turtle.right(90)
| [
"noreply@github.com"
] | noreply@github.com |
21cdcb8d9d1af2ba903130bc071b213aa24cf2fc | 2f8dce59ce62fb981e26a81ee939cf141e6eebda | /examples/reservation/createReservations/createReservation.py | 4be527d98b9157ffa7b850696022b970cda669e8 | [
"MIT"
] | permissive | torchedplatypi/vra7_rest_wrapper | 2cae0d7870174f938e113e98b002c2bbb00a2062 | 11553fbba8037f7131a50247d9478a75265b42f9 | refs/heads/master | 2021-01-01T18:04:41.229575 | 2017-11-02T17:25:30 | 2017-11-02T17:25:30 | 98,237,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | #!/usr/bin/python
import getpass
import json
from globalconfig import passwd, url, usr
from vraapiclient import reservation
client = reservation.ReservationClient(url, usr, passwd)
with open('reservationTemplate.json') as json_data:
payload = json.load(json_data)
reservation = client.createReservation(payload)... | [
"craiggumbley@gmail.com"
] | craiggumbley@gmail.com |
8db79c9a273b1cf103453d785a36dac40873619a | 928c53ea78be51eaf05e63f149fb291ec48be73e | /Linked_List_Cycle_II.py | 38b7ef80851bbce59fda03879bef014eaff77462 | [] | no_license | saurabhchris1/Algorithm-Pratice-Questions-LeetCode | 35021d8fc082ecac65d7970d9f83f9be904fb333 | ea4a7d6a78d86c8619f91a75594de8eea264bcca | refs/heads/master | 2022-12-10T16:50:50.678365 | 2022-12-04T10:12:18 | 2022-12-04T10:12:18 | 219,918,074 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | # Given a linked list, return the node where the cycle begins.
# If there is no cycle, return null.
#
# There is a cycle in a linked list if there is some node in
# the list that can be reached again by continuously following
# the next pointer. Internally, pos is used to denote the index
# of the node that tail's next... | [
"saurabhchris1@gmail.com"
] | saurabhchris1@gmail.com |
28d9e4f8593aad49f91e29b3793e7a52f9fe9314 | ff85be84c08cbec8024d0f71a01d3c562a94b5fd | /Trees and Graphs/is_balanced.py | b2b27afc8386f090e61238cd7e43c6faf4020b09 | [] | no_license | parastooveisi/CtCI-6th-Edition-Python | 7579d3d6ba635e7f8f83d9b01108b4391cea1720 | 05c6448685605ea90c24c541d83509eb4e92ac30 | refs/heads/main | 2023-04-03T04:54:53.815074 | 2021-03-23T23:51:19 | 2021-03-23T23:51:19 | 313,457,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | class Node:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
def is_balanced(node):
if node is None:
return 0
left_height = is_balanced(node.left)
if left_height == "NOT BALANCED":
return "NOT BALANCED"
right_height = is_balanced... | [
"parastoo.veisi@gmail.com"
] | parastoo.veisi@gmail.com |
ba1c4d07119c91897306b7f5dd4ac2b869964b5b | b17583937358d7c5aae0bd22089716b165eb3731 | /swann/bids/__init__.py | b5b64d5e5f9c109cebaba4bbd0600b9bb94b508e | [
"BSD-3-Clause"
] | permissive | alexrockhill/SwannLabResources | 3171c7c50b65005d4d12a3f0333868d604edc60e | 8f49683a073feb3e23919c1faa365e7f04390b0f | refs/heads/master | 2020-10-02T02:41:45.642684 | 2020-07-07T02:01:27 | 2020-07-07T02:01:27 | 227,682,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | from .edf2bids import edf2bids, anat2bids | [
"aprockhill206@gmail.com"
] | aprockhill206@gmail.com |
62a775a81d7fa30ec96c7601550b7d7b0344b6e9 | 569dacc986ffe19e58829a93ac66711bd43159b2 | /learning_users/basic_app/urls.py | ebe738c43e529af7219246f73e05a33721867a63 | [] | no_license | Gene2017/django-deployment-example | 4518220ae63fe896a848018cdcf3e237a5280f06 | a88c14f0ed2a7e7af564b2ddbcc8db9a8cc182a3 | refs/heads/master | 2020-05-01T04:42:51.846195 | 2019-03-23T11:56:06 | 2019-03-23T11:56:06 | 177,282,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from django.conf.urls import url
from basic_app import views
app_name = 'basic_app'
urlpatterns=[
url(r'^register/$', views.register, name='register'),
url(r'^user_login/$', views.user_login, name='user_login'),
]
| [
"JingzhuFeng@Jingzhus-MacBook-Pro-1387.local"
] | JingzhuFeng@Jingzhus-MacBook-Pro-1387.local |
38bf1d5eda263becdd439d4b030c740676472703 | 49fab6be8e2cb6583f8d45a7d2d7330477a97777 | /main.py | 1c19b3b8e9010eff3fe09e589c77c3e961ae842b | [] | no_license | juneldnerosa23/python-flask-helloworld | 0a90ca4197350896352206db8b44d6232102fa8b | d3f7ef55cdf85076140d1e2aecdcda8ef0717e66 | refs/heads/master | 2020-04-10T20:41:46.327952 | 2018-12-11T09:59:51 | 2018-12-11T09:59:51 | 161,275,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hey Its Python Flask application!!!'
@app.route('/awesome')
def awesome():
return 'Hey its Python Flask application Test!'
if __name__ == '__main__':
app.run()
| [
"juneld.nerosa@detailonline.tech"
] | juneld.nerosa@detailonline.tech |
53936e9c55c9346b878a5b66f09e8a07f6d5344c | fc8c6e12b9eec2455262003044510c678792ac7d | /python数据分析与挖掘/test.py | d24a13c1eed0bc7f8bf628c07d9402678eafdc4e | [] | no_license | hx794883019/python | 56b9c20f6a10fd2fd533e39f23e9d813abdadd42 | 370deb0537e9a26fbae25078a84fc5de01b44637 | refs/heads/master | 2020-05-13T21:09:21.021913 | 2019-11-29T04:48:43 | 2019-11-29T04:48:43 | 181,660,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,489 | py | # -*- coding: utf-8 -*-
from __future__ import print_function #兼容
import pandas as pd
catering_sale = './data-analysis-master/data_exploratory/data/catering_sale.xls'
data = pd.read_excel(catering_sale, index_col = u'日期') #读取数据,指定“日期”列为索引列
print(data.describe())
print(len(data))
# -----------------------... | [
"794883019@qq.com"
] | 794883019@qq.com |
9ba038b71bd4698882fb9d73e0eab6760b7f8c0e | 8ef4cc756b8ade947e4ba658814c81fca05769ca | /algorithms/path_planning/state_lattice_planning/state_lattice_planner.py | 8c05e49f106e3253674c960fb1fad4c8e0385349 | [] | no_license | vhgnguyen/Robotic-Algorithms | f9c5d5ac83038361d9b7fb42ff613a1bdf98ba45 | 60aa966ec130622015c4d25cd045c76867b465d0 | refs/heads/master | 2023-05-27T07:19:41.473909 | 2021-06-07T12:51:18 | 2021-06-07T12:51:18 | 328,672,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,880 | py | import sys
import os
import matplotlib.pyplot as plt
import numpy as np
import math
import pandas as pd
import bicycle_motion_model as bmm
import trajectory_generation as planner
show_animation = True
table_path = "lookup_table.csv"
def search_nearest_from_lookuptable(tx, ty, tyaw, table):
mind = float("inf")
... | [
"43420326+vhgnguyen@users.noreply.github.com"
] | 43420326+vhgnguyen@users.noreply.github.com |
d5f9369867e20157a003d0ba60186ef147640bd8 | 3b26574e63da30fd6149124bc8c76de1a5aad17a | /serverFlask/app/models.py | 69c3d36df2dffaa8d197644093d94dbac3437e80 | [] | no_license | Anvar28/ControlBackup2 | 27b3b5e4ee0c9b3eb10b5256f543f4388ff275e5 | 7ce1bdfa540753d068a7ced8ea577f5f170aee4e | refs/heads/master | 2020-04-28T22:50:35.779872 | 2019-04-01T10:34:01 | 2019-04-01T10:34:01 | 175,631,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py |
from app import db
ROLE_USER = 0
ROLE_ADMIN = 1
class User(db.Model):
id = db.Column(db.Integer, primary_key = True)
nickname = db.Column(db.String(64), index = True, unique = True)
email = db.Column(db.String(120), index = True, unique = True)
role = db.Column(db.SmallInteger, default = ROLE_USER)
... | [
"apxi2@yandex.ru"
] | apxi2@yandex.ru |
6468449498d437e380393fdbc460ee74de9a5e36 | 36f8b600c40ce52c94b77e1d689f81949c80a73e | /ElevatorClient.py | 76d5bd80c816f4be052fb957449d038e7fbe8a58 | [] | no_license | MortenFr/project-group-3-aka-the-team-works- | 97b1be17e7fad2f87ef5d4adacce2873c24efb39 | 9235d1c96ba429ea605c74ff17c6dc16e417aeae | refs/heads/master | 2020-05-03T23:27:45.619520 | 2019-04-01T13:13:18 | 2019-04-01T13:13:18 | 178,866,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,095 | py | import sys
import threading
import ElevatorClient
from Actuator import Actuator
from Elevator import Elevator
from Event import Event
from Network import Network
def get_direction(current_floor, target_floor):
if current_floor == target_floor:
return Actuator.DIR_STOP
elif target_floor > current_floo... | [
"william.tfalch@gmail.com"
] | william.tfalch@gmail.com |
330fa17e9db4bfe1934db52c2da83856fd0001cd | 2672228cd79938f112802a7d3c6209e907c46935 | /testsuite/tests/performance/smoke/test_smoke_app_id_query.py | 9f9329ddacfbb4cb354234d41e201c08a0de6e2f | [
"Apache-2.0"
] | permissive | Hchrast/3scale-tests | 82233d4015fc5ec9f1cad82ce411e6d48f3c056f | ab64592f1438a6cb878b81897164a0e495fed961 | refs/heads/main | 2023-08-27T21:04:35.108744 | 2021-11-08T10:08:59 | 2021-11-08T10:08:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,055 | py | """
Smoke test that will create 3scale objects for performance testing.
Fill necessary data to benchmark template.
Run the test and assert results.
This test shows usage how to write test where 3scale product is secured with app id
and app key combination.
"""
import asyncio
import os
from concurren... | [
"drajnoha@redhat.com"
] | drajnoha@redhat.com |
1a6e1c38cec81d1f6d0ee6be95f110c34a4f3ec2 | 4b9bd4f385b94e5ebdda02911cd2a0fcc0fc8116 | /WeatherPy/api_keys.py | 710addf24cf9c8d2f5f51c6ce47cc09b9ee9b040 | [] | no_license | namvanluu27/python-api-challenge | 2987fdbfe3f0e3c3591d4d01b938392d2295dcfa | 60e1cb487fb074237367d1f6e9364444ff107e78 | refs/heads/master | 2020-12-04T13:51:48.148354 | 2020-01-23T22:38:05 | 2020-01-23T22:38:05 | 231,789,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | # OpenWeatherMap API Key
api_key = "214de314d0892802001526c95e99dc9c"
| [
"namvanluu27@gmail.com"
] | namvanluu27@gmail.com |
f6374b1dbcfbb9a24dd8e484aeb710751501a714 | 7742b635b174ab22077e7895c38f3719daf70daf | /experimental/tensorboard.py | 4ec6a38a8c546138f28fb6a0b7757e4d58ca2372 | [] | no_license | ashigirl96/rl_snippets | 1d94306c25e2920fdf27d248a1a34879bfa78d52 | 7ff35b726053e96ab2106d5d297d8b074d807229 | refs/heads/master | 2020-03-07T23:18:58.261657 | 2018-06-23T11:55:04 | 2018-06-23T11:55:04 | 127,777,955 | 0 | 1 | null | 2018-06-14T10:55:03 | 2018-04-02T15:52:48 | Python | UTF-8 | Python | false | false | 1,995 | py | """TensorBoard"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import tensorflow as tf
def make_session(num_cpu=6):
sess_config = tf.ConfigProto(
allow_soft_placement=True,
inter_op_parallelism_threads=num_cpu,
... | [
"reon@mma.cs.tsukuba.ac.jp"
] | reon@mma.cs.tsukuba.ac.jp |
d7633155ab4d28900845422fa81131cefe4c6eb1 | bb6db68ac8ce0ee3b1458e7bb75f06fa197666a9 | /service/http_utils/packing/__init__.py | c04479cf92af4737b789bd3dfa9c1a58b78d1d70 | [] | no_license | s70c3/searchmachine | 288e38cc512e31aa73be292c982941d8242c65ec | 57767827e6c90f91d8a611d594427601bcec74d7 | refs/heads/master | 2023-05-05T15:58:10.414539 | 2021-05-30T10:02:12 | 2021-05-30T10:02:12 | 371,707,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from .rectangular import PackRectangular
from .svgnest import PackSvgNest
from .hybrid import PackHybrid | [
"shamovia@yandex.ru"
] | shamovia@yandex.ru |
724d42efc164f460aadf422bde792465cd5a9eb8 | d4129d743b958e6ed71af445c0dd7baa7f2ad6e4 | /teambeat/admin.py | 3be24de4fad0c0b5aac5759d5cef320a24ead2c2 | [] | no_license | astromitts/team-beat | f2077bdeaa457bb8cd11094f14a75bdf170a9b0e | a49608890e4fe2b238cbec9c0e3d9629aae51c55 | refs/heads/main | 2023-08-10T16:11:14.231042 | 2020-12-09T14:20:04 | 2020-12-09T14:20:04 | 319,043,973 | 0 | 0 | null | 2021-09-22T19:42:46 | 2020-12-06T13:48:36 | Python | UTF-8 | Python | false | false | 439 | py | from django.contrib import admin
from teambeat.models import (
Organization,
OrganizationInvitation,
OrganizationUser,
Team,
TeamAdmin,
TeamMember,
TeamMemberStatus
)
admin.site.register(Organization)
admin.site.register(OrganizationUser)
admin.site.register(OrganizationInvitation)
admin.si... | [
"morinbe@gmail.com"
] | morinbe@gmail.com |
5210c210f00f1b76e907af9abfca0de60f36059d | b30b2fd781be7b075985bc8554ee86a88cce2677 | /employee_join/__manifest__.py | 76b92563e198c19ca017b14b096ce054ee05989e | [] | no_license | kishanbhaliya/Odoo-Modules | f963ad6d93da3ca9366038954be08fa7ef84225d | f6257bc5701e5c5fc5495854df9516bbf0275681 | refs/heads/master | 2020-12-05T05:33:17.337358 | 2020-01-06T04:10:57 | 2020-01-06T04:10:57 | 232,021,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | # -*- coding: utf-8 -*-
{
'name': "Employee Joining",
'summary': """
Now easily Manage employee with few clicks""",
'description': """
Manage Every details of Employee in few touch
""",
'author': "Erp Harbor",
'website': "http://www.erpharbor.com",
# Categories can be use... | [
"bhaliyakishan80@gmail.com"
] | bhaliyakishan80@gmail.com |
92d6235b58cd040b12597c0b1364fa0dfa1dd1a3 | 97f44762f0e16dc992cee9c12836eb1959427c55 | /DB/DB-17-Django_4/learning_users/basic_app/models.py | c29db26774176688ac4233d2b54a7f6f9d06c839 | [] | no_license | dominikb2006/Django | a087db357980c9d75a17b5144c7c9f5550ee6c80 | 9e89ca36a953f50ea76106f6f63be8529efbb737 | refs/heads/master | 2021-02-15T21:17:42.279369 | 2020-06-04T11:51:04 | 2020-06-04T11:51:04 | 244,926,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | from django.contrib.auth.models import User
from django.db import models
# Create your models here.
class UserProfileInfo(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
portfolio = models.URLField(blank=True)
picture = models.ImageField(upload_to='profile_pics')
def __str... | [
"dominikb2006@gmail.com"
] | dominikb2006@gmail.com |
fecf32182e6b14c20f5d9aef781f0ca171c65782 | 67a4b532034917fb2d58504df86534ad9e110464 | /Building Machine Learning Models in Spark 2/python/m1_demo01_WineData_SparkMLLib.py | 134ebf8d4f6be592c6f23f86c6497cb4e4bbf260 | [] | no_license | tommypratama/ds | 7bb915c76283c1ac457b3bc22f4f4923b6ecaa1d | ea131155402ef04962efa048290bb4ce9dbb818e | refs/heads/master | 2020-04-20T06:54:46.597229 | 2019-05-11T23:54:26 | 2019-05-11T23:54:26 | 168,697,233 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 5,374 | py |
# coding: utf-8
# ### Check the Spark Context
# Spark context sets up internal services and establishes a connection to a Spark execution environment
# In[3]:
sc
# <b>Dataset location: </b>https://archive.ics.uci.edu/ml/machine-learning-databases/wine/wine.data
# In[1]:
rawData = sc.textFile('../datasets/wine... | [
"tommyhpratama@gmail.com"
] | tommyhpratama@gmail.com |
36e2f269fe6ccdb5d19dd03f80e60e2d02320e90 | df6492e0243dc07a946837f427ceccb5b3272dab | /geoPlot.py | 1fbdfa616ebeaaf07b29551210749d570592a288 | [] | no_license | kamalshadi/NDT | 13c33730662df75bd5fed84c7d0551c4627ac3e6 | fc6a57fa4a64a82975863472e800da3d320b164b | refs/heads/master | 2021-01-25T07:08:38.775251 | 2013-12-11T08:49:10 | 2013-12-11T08:49:10 | 15,102,030 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,219 | py | #!/usr/bin/env python
from myParser import *
from ipCluster import cluster2sub
import csv
import os
import sys
import subprocess
import statvfs
import urllib
from myBasic import *
def usage():
return """
Summary:
./geoUoS -p False/True -f <filename>
locate the UoS in city resolution
"""
def header2id(fName,key)... | [
"kamal.shadi85@gmail.com"
] | kamal.shadi85@gmail.com |
5ca5396e7e9e6058085893cdf33e810e187ad30d | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/storagecache/v20200301/storage_target.py | 3694ea282ed82b03a402dd9a6a13f5cfb2ccad63 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 17,683 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | noreply@github.com |
22ee1291f7c8806b76361ad8a451f24e1c1d6079 | e573161a9d4fc74ef4debdd9cfd8956bdd1d0416 | /src/products/models/order.py | 4c07332ebf2b2204eeff6db64f51f087e3f38f77 | [] | no_license | tanjibpa/rx-verify | a11c471afc628524bf95103711102258e6e04c19 | 3947fd2f9a640b422014d1857b9377e42d8961a5 | refs/heads/main | 2023-02-23T08:16:43.910998 | 2021-01-23T07:07:43 | 2021-01-23T07:07:43 | 331,103,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | from django.db import models
from base.models import BaseModel
from .raw_material import RawMaterial
from .product import Product
class Order(BaseModel):
raw_materials = models.ManyToManyField(RawMaterial)
product = models.ForeignKey(Product, on_delete=models.CASCADE)
quantity = models.IntegerField(defau... | [
"ikram.tanjib@gmail.com"
] | ikram.tanjib@gmail.com |
180794ca6993fce07565545189adf777cfe6c703 | c242cebfe0ad9608ecd56c6e4472413e01be07ad | /Vibesite/UserAuth/apps.py | 1ffd04a5c8ebd122766aceedf25975a33fd97248 | [] | no_license | lihaodi1995/studentProject | eb8de7f067f10c175244f372db3e686486e51806 | 0797a5a5d1198bdc3cfc55c26f6f9ec8d8ca31bc | refs/heads/master | 2020-04-06T13:52:30.131044 | 2018-11-24T07:33:43 | 2018-11-24T07:33:43 | 157,517,862 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.apps import AppConfig
class UserauthConfig(AppConfig):
name = 'UserAuth'
| [
"1762382493@qq.com"
] | 1762382493@qq.com |
6c459b34f8f0ab75e9f04a8db8d170bea67c1736 | 39e647e9ec8524a1cee90ef15f37a3d3bbf8ac43 | /poet/trunk/pythonLibs/Imaging-1.1.7/Scripts/pilconvert.py | 71b1fe3830cf45b22540f16176b2ca141291253c | [
"LicenseRef-scancode-secret-labs-2011"
] | permissive | AgileAdaptiveTools/POETTools | 85158f043e73b430c1d19a172b75e028a15c2018 | 60244865dd850a3e7346f9c6c3daf74ea1b02448 | refs/heads/master | 2021-01-18T14:46:08.025574 | 2013-01-28T19:18:11 | 2013-01-28T19:18:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,366 | py | #! /usr/local/bin/python
#
# The Python Imaging Library.
# $Id$
#
# convert image files
#
# History:
# 0.1 96-04-20 fl Created
# 0.2 96-10-04 fl Use draft mode when converting images
# 0.3 96-12-30 fl Optimize output (PNG, JPEG)
# 0.4 97-01-18 fl Made optimize an option (PNG, JPEG)
#... | [
"ssaltzman@mitre.org"
] | ssaltzman@mitre.org |
328ae953d1241d177cd632306190037e5ea3a1da | 1078c61f2c6d9fe220117d4c0fbbb09f1a67f84c | /paws/lib/python2.7/site-packages/euca2ools-3.4.1_2_g6b3f62f2-py2.7.egg/EGG-INFO/scripts/euare-servercertlistbypath | 5273dd6177c560a319e8eaa8198e7b0d60df4f5c | [
"MIT"
] | permissive | cirobessa/receitas-aws | c21cc5aa95f3e8befb95e49028bf3ffab666015c | b4f496050f951c6ae0c5fa12e132c39315deb493 | refs/heads/master | 2021-05-18T06:50:34.798771 | 2020-03-31T02:59:47 | 2020-03-31T02:59:47 | 251,164,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | #!/media/ciro/LOCALDRV/A_DESENVOLVIMENTO/AWS/receitas/paws/bin/python -tt
import euca2ools.commands.iam.listservercertificates
if __name__ == '__main__':
euca2ools.commands.iam.listservercertificates.ListServerCertificates.run()
| [
"cirobessa@yahoo.com"
] | cirobessa@yahoo.com | |
4691826a0ebf8857674ad4b5c8e0aa40a596470d | 3ddeb31315f917469f3a90347725efba7b14d8e9 | /utilities/camera.py | 32fa0f6d0ba512a5fa566784debd5ad8a386d590 | [] | no_license | markmester/picamera | 7479686eb952be3e878fe6121c34816f29cbad1a | b2c8e897c181053678b6829784e6ff1f4676d979 | refs/heads/master | 2021-07-16T12:36:58.693775 | 2017-10-14T23:04:30 | 2017-10-14T23:04:30 | 106,969,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | import subprocess
def start_camera_feed():
p = subprocess.Popen(
"/opt/vc/bin/raspivid -o - -t 0 -hf -vf -w 640 -h 360 -fps 25|cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h26",
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
... | [
"admin@quadrint.com"
] | admin@quadrint.com |
e74457c0c58813616881e9d64c3a8320e2e88c3e | d8b1362113e4f3302ab1d04d5f57c1b4c8c44b6a | /leetcode_py2/Medium 73. Set Matrix Zeroes.py | 18cf03f8dbfd6347ba627f0749d6d0ea7e565484 | [] | no_license | mohki890/Danny-Huang | 06d12b2e1ac110684cbf114db46079cda5a380eb | 3eb27b793b5a819f3fb5e166b02e04d593f1bf37 | refs/heads/master | 2020-05-16T00:22:11.602739 | 2019-03-29T15:00:14 | 2019-03-29T15:00:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | # -*- coding: utf-8 -*-
# !/usr/bin/env python
"""
This module is provided by
Authors: hxk11111
Date: 2019/1/5
File: Medium 73. Set Matrix Zeroes.py
"""
'''
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place.
Example 1:
Input:
[
[1,1,1],
[1,0,1],
[1,1,1]
]
Output:
... | [
"huangxiangkai@baidu.com"
] | huangxiangkai@baidu.com |
86678aa8acbd5afd83d241327c07aca5d42f7d33 | b67b63ecb22e3d83db65ecd325bcccefbdbd2dbc | /pyscripts/main/for_train/result_combination_final.py | 8c0d91c9cc335788dfbcb8be600c6f2b7365d85d | [] | no_license | GodCedric/KDDCUP2017 | 120fd425c5ed35d2b1609fdc7daf565d374545c7 | 34c90b81b70bcb303aa6c04812d15cd2b8ffd7c4 | refs/heads/master | 2021-01-23T10:57:56.142294 | 2017-06-02T01:42:52 | 2017-06-02T01:42:52 | 93,114,724 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,850 | py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
import numpy as np
import pandas as pd
mean_time_result = pd.read_csv('/home/godcedric/GitLocal/KDDCUP2017/submission_result/phase2.5/Mean/travel_time_submission.csv')
xgboost_time_result = pd.read_csv('/home/godcedric/GitLocal/KDDCUP2017/submission_result/phase2.5/xgboo... | [
"850313810@qq.com"
] | 850313810@qq.com |
35418b217181a0478eb1d238b23420bc0c421bbf | 5154dbf4eee6ea6499957bd1e6b6860abcb3d85a | /Face-Recognition/recognize_faces_image.py | b53c526e33bc593d8f67f4668ff14dcfb3734ed7 | [] | no_license | sayands/opencv-implementations | 876c345a6842335d70b2d9b27e746da5a6fd938f | c8f0c7b9dca5e6d874b863bd70e4ec3898f6e7d5 | refs/heads/master | 2020-03-19T11:51:54.513186 | 2018-12-22T05:48:48 | 2018-12-22T05:48:48 | 136,481,409 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,537 | py | # import the necessary packages
import face_recognition
import argparse
import pickle
import cv2
# construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-e", "--encodings", required = True, help ="Path to serialized db of facial encodings")
ap.add_argument("-i", "--image... | [
"sayandsarkar.1997@gmail.com"
] | sayandsarkar.1997@gmail.com |
929fa0c552653308fd6cb109a18055dc16bc93d5 | 2ebc0ea98255fa52e0ccdcc76ccfbddf8269a975 | /GUI-CSV.py | 596dcc56bba10504b0d36c331952234b10aeae83 | [] | no_license | Pie-R-Square/ExpenseRecorder1 | 857569f40b1448d71333683e388cfa38e7adc73e | 5620d85dcb6a8573f50c5d92de14ebd1f4005ddd | refs/heads/main | 2023-06-11T00:22:00.231838 | 2021-06-26T14:35:25 | 2021-06-26T14:35:25 | 375,349,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,085 | py | from tkinter import *
from tkinter import ttk, messagebox
import csv
from datetime import datetime
##########
import sqlite3
# create data base
conn = sqlite3.connect('Expense.db')
# create operater
c = conn.cursor()
# create table
'''
'Details(details)'
'Rate(rate)'
'Quantity(quantity)'
'Discou... | [
"noreply@github.com"
] | noreply@github.com |
05ccedc28827e7f52859760007d3d503f13ebc10 | c3d36ee056348cd0270c0a5149aa88c9e93cb7cb | /vlasov/run/run_nonlinear_iterative_split_mp.py | b3b685ef055a4848ae6a59db71fb0d000cf82723 | [
"MIT"
] | permissive | DDMGNI/viVlasov1D | 8a458f26670eec6c0f97540f3822301eb4bfd5fa | 901dd058711f6943eb6497b941bc115a64e822de | refs/heads/master | 2019-07-31T19:57:46.611459 | 2018-01-10T20:05:04 | 2018-01-10T20:05:04 | 117,005,066 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,692 | py | '''
Created on Mar 23, 2012
@author: Michael Kraus (michael.kraus@ipp.mpg.de)
'''
import argparse, time
from petsc4py import PETSc
# from vlasov.solvers.vlasov.PETScNLVlasovArakawaJ1 import PETScVlasovSolver
# from vlasov.solvers.vlasov.PETScNLVlasovArakawaJ2 import PETScVlasovSolver
from vlasov.solvers.vla... | [
"michael.kraus@ipp.mpg.de"
] | michael.kraus@ipp.mpg.de |
546e4b087f69f7492fd6fac4dcc8876da6caa164 | a5d507d89171870596c0dd1ccc20f012fe1fafc9 | /blog/migrations/0001_initial.py | 512ce2df8a75832f68d1768a4369662eab418f68 | [] | no_license | fd008/django-stack | fe1c8ef1168c79cffbfc3743121eb8fe2c0568f2 | dd03b2fcf8a4075286a56591c0a813a6d879f7de | refs/heads/master | 2023-08-17T19:04:22.409206 | 2020-02-25T00:25:23 | 2020-02-25T00:25:23 | 233,486,947 | 0 | 0 | null | 2021-09-22T18:34:01 | 2020-01-13T01:29:47 | Python | UTF-8 | Python | false | false | 783 | py | # Generated by Django 3.0 on 2020-01-01 19:57
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | [
"applefan@apples-iMac.local"
] | applefan@apples-iMac.local |
84871eb3cdc22dcffd5ec76d2aae86071a404e50 | f06cf6738ff47a9ac2d77debc89d6fa8681a186e | /Code/cmp/startup8181.py | fec9b927bbf01272e38cd42a96c481eac1faea2e | [] | no_license | carrascoMDD/acv4cmp_web | 25cbb46b902365d8e099f5dec51e001ba8646a8b | 9628f3679d75a4c9bc7e85be26ffd9070f13309f | refs/heads/master | 2021-05-27T03:52:19.953665 | 2014-03-25T03:45:01 | 2014-03-25T03:45:01 | 17,854,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,018 | py | from __future__ import with_statement
import os, xmlrpclib, datetime, sys, SocketServer
sys.path.insert(0, os.path.join(os.path.normpath(os.path.dirname(os.path.abspath(sys.argv[0]))), 'lib'))
from DocXMLRPCServer import DocXMLRPCServer, DocXMLRPCRequestHandler
from SimpleXMLRPCServer import SimpleXMLRPCServer
from S... | [
"carrascoGitHub@ModelDD.org"
] | carrascoGitHub@ModelDD.org |
70c65abc0e75486f545d81bc39a91df9ade8c174 | 1412aa3e244d1cc2f413f52ecfa8dd74db184267 | /cart/views.py | 6d4fad7e35f0b8d052d4af5f76db33d8dcf67391 | [] | no_license | YuriyOlovets/MyShop | ddb59b4427972b8e2f45793e6b6e98da9b9a1059 | 0ca8727b9e812d5d45a1f3bb47855a0fc04ecf27 | refs/heads/main | 2023-02-21T23:43:36.518944 | 2021-01-20T17:29:01 | 2021-01-20T17:29:01 | 330,904,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | from django.shortcuts import render,redirect,get_object_or_404
from django.views.decorators.http import require_POST
from shop.models import Product
from .cart import Cart
from .forms import CartAddProductForm
@require_POST
def cart_add(request,product_id):
cart = Cart(request)
product = get_object_or_404(Prod... | [
"74701895+YuriyOlovets@users.noreply.github.com"
] | 74701895+YuriyOlovets@users.noreply.github.com |
1bb4c3bc30449498a83dfe0238e130712e4845c6 | a42b2b4e979e3e7b95fb71a4fce46d4e945e5c9b | /hello_app/__init__.py | 8feeaca8d10b81e8ffe5c228dc7b780ca3e17104 | [] | no_license | sagayev/vscode_flask_tutorial | f5ddc7e85e0b722f84cdc1720077c06a33efa3d4 | b605904fc019777d35aa6887776aa84737d6dc68 | refs/heads/master | 2021-06-26T23:32:46.918207 | 2019-11-08T06:17:30 | 2019-11-08T06:17:30 | 220,234,767 | 0 | 0 | null | 2021-03-20T02:07:47 | 2019-11-07T12:43:03 | HTML | UTF-8 | Python | false | false | 38 | py | import flask
app=flask.Flask(__name__) | [
"Samir_Agayev@cbar.az"
] | Samir_Agayev@cbar.az |
f4f16e0aed94288f25b1a7cbcc39162959543704 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4194/codes/1644_2711.py | 77e78d3042d279f2c36b818186c04f26f7708ed1 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | valor = float(input("Qual o seu valor disponivel?"))
tickets = int(input("Quantos tickets deseja comprar?"))
vt = float(input("Quanto custa um ticket?"))
passes = int(input("Quantos passes de onibus deseja comprar?"))
vp = float(input("Valor dos passes"))
if(valor >= tickets*vt + passes*vp):
print("SUFICIENTE")
else:... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
8bff300d086acab98831b5fb00493d2aeabaa4a0 | 8c7ccb6d38f75391e04ac421ee1885aa7b54e52e | /ludmin/tokens/token.py | 194cdd58c0a67a91b31ebb654e1aaa8a8262b9ee | [] | no_license | cristianszwarc/ludmin | d1c5c3287d3c9ff05d26569c091db92a253c7c5b | 1c3ee1b60158852aed135f4abf048e6f1dade95e | refs/heads/master | 2021-01-19T12:37:09.020888 | 2017-03-13T07:27:40 | 2017-03-13T07:27:40 | 82,348,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | import jwt
from datetime import datetime, timedelta, timezone
class Token:
"""Token functions"""
def __init__(self, config, token):
if token:
token = token.replace("Bearer", "").strip()
self.token = token # store the token
self.config = config # stor... | [
"cristianszwarc@gmail.com"
] | cristianszwarc@gmail.com |
506fb47d1bff8cf2385fe642e25b7f08b9059884 | 5be9d461559eb565b5d9c9f297f7328e9fd0fd63 | /dglib/network/patch.py | 5e874f844995fd252409113b83252db31dd5f758 | [
"MIT"
] | permissive | ddcatgg/dglib | c98963d417fbbb3b3e5ea037c36cb15ebc742fbd | bcdd8eb60147c81f2eac76484c4c5e4492e9f5a9 | refs/heads/master | 2022-11-12T07:19:18.235015 | 2022-10-23T06:07:43 | 2022-10-23T06:07:43 | 46,962,231 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | import socket
import ssl
def getaddrinfo_ipv4(host, port, family=0, socktype=0, proto=0, flags=0):
family = socket.AF_INET
return socket._origin_getaddrinfo(host, port, family, socktype, proto, flags)
def patch_getaddrinfo():
if not getattr(socket, '_origin_getaddrinfo', None):
socket._origin_getadd... | [
"ddcatgg@gmail.com"
] | ddcatgg@gmail.com |
e1c8620a560ca4069bcc80749ec00da1a6b6bace | 87277cddfc489dd7d3837ffccda2f11bb4ad43cc | /py/Task198.py | 5b0fbec9bf247b0e9b9e05389fafae6b23ba0644 | [] | no_license | rain-zhao/leetcode | 22c01d1803af7dd66164a204e6dc718e6bab6f0e | 8d47147f1c78896d7021aede767b5c659cd47035 | refs/heads/master | 2022-05-29T10:54:14.709070 | 2022-05-14T09:38:05 | 2022-05-14T09:38:05 | 242,631,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | class Solution:
def rob(self, nums: [int]) -> int:
if not nums:
return 0
if len(nums) == 1:
return nums[0]
# init
dp = [[0, 0] for _ in range(len(nums))]
dp[0] = [0, nums[0]]
for i, num in enumerate(nums[1:], 1):
dp[i][0] = max(dp[... | [
"rangeree@foxmail.com"
] | rangeree@foxmail.com |
04fee69442ca13e5bdfde4e93b1fdd06b5b40cb3 | 965e5ff934be67b8a1c79c0caa648de7986f8402 | /Features/steps/DeleteFileTestSteps.py | 63a6d9492498f251ae16d0208184aef654ee4653 | [] | no_license | senthilkumar369/MegaNzUITest | 07350c8fc0a8acd23c0c28aa81782db4a795741a | 5685a00556cbd102975a906d6dc34998f78b877d | refs/heads/main | 2023-07-04T20:32:09.052089 | 2021-08-29T22:39:35 | 2021-08-29T22:39:35 | 400,974,001 | 0 | 0 | null | 2021-08-29T07:21:55 | 2021-08-29T07:00:35 | null | UTF-8 | Python | false | false | 828 | py | from behave import given,when,then
from pages import HomePage,FileManagerPage,LoginPage
"""
Given a text file with filename as <filename>
When Search AND Delete the file in FILE_MANAGER
Then it should be deleted successfully
"""
@given('a text file with filename as {filename}')
def delete_TC_001_001(contex... | [
"senthilkumar369@gmail.com"
] | senthilkumar369@gmail.com |
3b68fa12d0f5750f87d4df8afceef44c9d498e1d | 7ebc5c0c6fdb61542262ae4da4dbfdc2fe8a502c | /maskrcnn_benchmark/modeling/roi_heads/relation_head/model_motifs.py | b0a849d58578ea020b3f79e09222bfef0188fca8 | [
"MIT"
] | permissive | gyy8426/SGG-G2S-1 | 6e581312997b4ca09e907ffb18c28f68954cf78f | 367f3e1be46d77e7bf9b475dd15544e5564c0925 | refs/heads/main | 2023-07-22T09:31:36.817366 | 2021-08-17T07:53:41 | 2021-08-17T07:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,616 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from maskrcnn_benchmark.modeling import registry
import numpy as np
import torch
from torch import nn
from torch.nn.utils.rnn import PackedSequence
from torch.nn import functional as F
from maskrcnn_benchmark.modeling.utils import cat
from .utils_m... | [
"nobody-y"
] | nobody-y |
c0575b433a8c29ab70c35a0583f8cb5f3bc796c3 | e28a97aed712db9734e52c1c3a268582847d0ce6 | /django_five/django_five/wsgi.py | ccb9f902e4152b692b847d94594ddd05f0fd7571 | [] | no_license | Kasilokesh/django-deployment-example | a12d6dc532a8f0b9cd7ff2e7c48d7e8da96b11b1 | 8f5b62cdfa6c55d4a963680728cf5c3a19240f0d | refs/heads/master | 2023-07-29T09:17:52.348422 | 2021-09-10T13:07:46 | 2021-09-10T13:07:46 | 405,081,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for django_five project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"kasi_lokesh@tecnics.com"
] | kasi_lokesh@tecnics.com |
581477f217c0de64acb027fb57b07564e4b2d1eb | 0df898bf192b6ad388af160ecbf6609445c34f96 | /middleware/backend/app/alembic/versions/20201021_001556_.py | ad0a9945ac1de56f57047d383df661ef635fc9e4 | [] | no_license | sasano8/magnet | a5247e6eb0a7153d6bbca54296f61194925ab3dc | 65191c877f41c632d29133ebe4132a0bd459f752 | refs/heads/master | 2023-01-07T10:11:38.599085 | 2020-11-13T02:42:41 | 2020-11-13T02:42:41 | 298,334,432 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | """empty message
Revision ID: 20201021_001556
Revises: 20201021_001530
Create Date: 2020-10-21 00:15:57.520730
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '20201021_001556'
down_revision = '20201021_001530'
branch_labels = None
depends_on = None
def upgra... | [
"y-sasahara@ys-method.com"
] | y-sasahara@ys-method.com |
015aa65f99e5c66be2de2bce1dfbfcc46744a7ae | bd87e41b695b7d6c04fc4e273729ef574a4a5840 | /10.自定义窗口小部件和类-记住对象/sound_panel1.py | e040304059abd338b088f7f8fb9497b4016f3771 | [] | no_license | knight-peter/item-python-HeadFirst | 95e0cd3159a3e4259e6a70fe747e19870ede49d6 | 665e5aedce5a69d9e54c3fa8fb3afdfc1d9f7130 | refs/heads/master | 2020-12-25T08:10:23.972193 | 2016-07-01T09:28:18 | 2016-07-01T09:28:18 | 60,601,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | from tkinter import *
import pygame
# 当这个函数被调用时,它需要三个参数
def create_gui(app,mixer,sound_file):
# 这是“create_gui()”函数内的一个局部函数
# “track_toggle”函数根据复选框的状态播放或者停止歌曲
def track_toggle():
if track_playing.get() == 1:
track.play(loops=-1)
else:
# 这些代码需要在调用“app.mainloop()”之前加到你的... | [
"xuqipeter@qq.com"
] | xuqipeter@qq.com |
b84502e337ccc1e235c0b7c3552421eed05b4437 | 03927f42983f61ecf001855d2c775209733558b2 | /Python/DailyInterviewPro/13_Stairs.py | 0f0ed596cef5d169eaed700e427c8ea3f3fd1249 | [] | no_license | ashok052/code_snippets | 573c481816058fc5924987d14f3a4758595c0806 | 9b2ae6d0977eb18d2bea5079f64c204057e501a9 | refs/heads/master | 2023-05-27T08:06:51.881169 | 2021-06-10T14:22:55 | 2021-06-10T14:22:55 | 289,623,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | """
Hi, here's your problem today. This problem was recently asked by LinkedIn:
You are given a positive integer N which represents the number of steps in a staircase.
You can either climb 1 or 2 steps at a time.
Write a function that returns the number of unique ways to climb the stairs.
Challenge: Can you find a so... | [
"ashokkumarvadde@gmail.com"
] | ashokkumarvadde@gmail.com |
a395b580244b142aed88453bc740a4d78ac26421 | 074e2815a0c3dbb03cae346560c27e409a4444e4 | /drivers/ssd1351/ssd1351_16bit.py | 9d2c75c185149003b96bc9cac270e8e172672775 | [
"MIT"
] | permissive | maysrp/micropython-nano-gui | 9127e1cbb024810ac2920c8227a448d6cf4678b1 | 5dbcc65828106cfb15c544bb86cc7380a9a83c47 | refs/heads/master | 2023-01-19T18:06:52.286059 | 2020-11-29T10:26:11 | 2020-11-29T10:26:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,266 | py | # SSD1351_16bit.py MicroPython driver for Adafruit color OLED displays.
# Adafruit 1.5" 128*128 OLED display: https://www.adafruit.com/product/1431
# Adafruit 1.27" 128*96 display https://www.adafruit.com/product/1673
# For wiring details see drivers/ADAFRUIT.md in this repo.
# This driver is based on the Adafruit C+... | [
"peter@hinch.me.uk"
] | peter@hinch.me.uk |
330e07bdf968f62e39aaa20a6f533d1b93f4ee54 | 6d90149fae29407fe84665a0bffef66510b82826 | /graph_navigation/src/starter.py | 47b22178da50acf50c524f04fa6986d92358b270 | [
"MIT"
] | permissive | Norihiro02/graph_navi | f7c1dfaba0ab67566375617e7123c313d6448309 | a5f1ad986539cf00f4a7596fc1ec1dc495e1e2e9 | refs/heads/master | 2020-03-29T15:25:34.415901 | 2019-08-09T09:50:43 | 2019-08-09T09:50:43 | 150,062,452 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | #!/usr/bin/env python
import rospy
import actionlib
from graph_navigation.msg import*
rospy.init_node("graph_navi_starter");
c=actionlib.SimpleActionClient('graph_navi',graph_naviAction);
c.wait_for_server()
goal=graph_naviGoal()
goal.start=0
goal.goal=4
goal.checkPoint=[3]
c.send_goal(goal)
c.wait_for_result()
| [
"s1876011BF@s.chibakoudai.jp"
] | s1876011BF@s.chibakoudai.jp |
e207e8460215041552640cba1dd67c59d79db97c | 956fd28ea7a7ec83b62cd85691c512e735e60b3a | /bin/azure/mgmt/eventgrid/operations/__init__.py | e7dcca6122851fa842b7b3ecff4c908c0301d34f | [
"MIT"
] | permissive | zdmc23/bash-lambda-layer | 5517a27809d33801c65504c11f867d0d511b2e1c | e762df0189cfb894dab2d96bae1655b8857d5efb | refs/heads/master | 2021-01-05T02:32:20.765963 | 2020-02-16T09:41:47 | 2020-02-16T09:41:47 | 240,846,840 | 0 | 0 | MIT | 2020-02-16T06:59:55 | 2020-02-16T06:59:54 | null | UTF-8 | Python | false | false | 1,000 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# C... | [
"191707+zdmc23@users.noreply.github.com"
] | 191707+zdmc23@users.noreply.github.com |
2b2c6b7638437e02b0260d7de4e57a5d05946764 | 0dbe9398b65d4f44c9be370101a1319a457311ee | /Python-Basic(local)/OddorEven.py | 8688ef1a0745fb86c48794ec90de98f326290b6a | [] | no_license | puneet87m/Python-Basics | 6a102160b9bbaaa38c74a7b4d35e74b96be9b7c1 | 8bd8de050646272fad11957cf715d7cae05b10e6 | refs/heads/master | 2020-12-24T05:38:43.672372 | 2020-01-14T17:40:28 | 2020-01-14T17:40:28 | 62,440,391 | 0 | 0 | null | 2020-01-14T17:40:30 | 2016-07-02T07:52:39 | Python | UTF-8 | Python | false | false | 361 | py | #!/usr/bin/python3
num = int(input("Enter a numbers"))
check = int(input("Enter a numbers(denominator)"))
if num % 4 == 0:
print("Its an multiple of four")
elif num % 2 == 0:
print("Its an even number")
else:
print("Its an odd number")
if num % check == 0:
print("divides evenly"... | [
"puneet87m@gmail.com"
] | puneet87m@gmail.com |
1ba86a36df6e577c04e6e0b98b3b7482039ff05c | 50a5741e3299d80305fe2ee8250f9a6fe241b669 | /HolaMundo.py | dcedd49e7e94cfb9e7d78f6af83d1e71b540a64c | [] | no_license | charlypaz/Repository1 | e4097566374e426dcaba8dd115874308eeabf56a | a28a2ab256eb92d86486ee9b69577be0217d42ed | refs/heads/master | 2021-01-20T18:01:17.171045 | 2016-08-06T17:53:44 | 2016-08-06T17:53:44 | 64,631,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> print "hola carlos bienvenido a Phyton"
hola carlos bienvenido a Phyton
>>>
| [
"noreply@github.com"
] | noreply@github.com |
27d62c4fbc916972187fd5386c81dd8aa755842a | a403ba18685893d149744b160537caa39e256073 | /tests/proc_003.py | 3201fa0d6a7c7672aa1f12167a14f85922c8e93a | [
"BSD-3-Clause"
] | permissive | meisterluk/taptaptap | f0fa7cb55c3148387b6a6241a85de9229bb5c6dc | 6fcd6d5cc098cdd29fb686d18f1f5f727b066ec8 | refs/heads/master | 2021-01-17T17:06:51.318888 | 2018-07-03T11:47:08 | 2018-07-03T11:47:08 | 17,810,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | #!/usr/bin/env python2
from taptaptap.proc import plan, ok, not_ok, out
plan(tests=10)
ok('Starting the program')
not_ok('Starting the engine')
not_ok('Find the object')
not_ok('Terminate')
out()
## validity: -1
## ok testcases: 1 / 10
## bailout: no
## stderr: program
## stderr: engine
## ... | [
"admin@lukas-prokop.at"
] | admin@lukas-prokop.at |
20f271fee3a725b13f710ea9f07881395a941c91 | 49f8d8c9b3267426511ac7baa9f0829711d30538 | /1051.py | 124b6f95d9d7a004468ddaaf7cd592836555d1cf | [] | no_license | LinconRozendo/URI | d9130205692de688678246bb7973d53686a4eeb6 | e0ac404d87e581b082098e8dc52c90d9bd952449 | refs/heads/master | 2022-12-12T03:31:14.813971 | 2020-09-07T07:06:42 | 2020-09-07T07:06:42 | 291,596,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | #include<stdio.h>
n = float(input())
aux = 0
if n > 2000:
if (n - 2000) > 1000:
aux = (1000 * 0.08)
else:
aux = (n - 2000) * 0.08
if n > 3000:
if (n - 3000) > 1500:
aux += (1500 * 0.18)
else:
aux += (n - 3000) * 0.18
if n > 4... | [
"noreply@github.com"
] | noreply@github.com |
5ac73a00ee05e85c6502d4a5358501fc0386fdb8 | e2c9fe6397a7d99b3d880d24597157a846248f46 | /send_email.py | a18db1607cfd11fc9b6bc5ba3da04e27fe8b3735 | [] | no_license | AlphaArslan/Smart_Door_Camera | b75c99c6420f878cff8ec95a472f413cf8de8a49 | 40c0736f3a97276e871d13016d90a63b9320e2bd | refs/heads/master | 2022-07-19T23:16:21.979110 | 2019-11-23T19:38:02 | 2019-11-23T19:38:02 | 218,103,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import smtplib, ssl
import email.mime.text
SMTP_PORT = 465 # For SSL
SMTP_SERVER = "smtp.gmail.com"
_SENDER_EMAIL = "dev.script.21@gmail.com"
_SENDER_PASS = "0.9millidev"
EMAIL_CONTENT = """\
Subject: Smart Camera System Alarm
There is an unauthorized person at the door.... | [
"arslan.alpha21@gmail.com"
] | arslan.alpha21@gmail.com |
e0d543ec7e07e6f380ac3f15857fdf3679ff2001 | 120b42f3c61e30218966ebf5a6e218540987ecbf | /members/views.py | cf546d5034959df149fc006bdf4c7e49bf07fe5b | [] | no_license | theag/life-long-learning | 4d6f819c9462e1062b919b8e85945efe844bbc89 | 91d4e249cbb7ab171d486330b71b6f36702702a5 | refs/heads/master | 2021-02-15T22:15:00.003554 | 2020-03-12T17:06:02 | 2020-03-12T17:06:02 | 244,935,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,344 | py | from django.shortcuts import render, redirect
from .models import Member, MemberForm, Year, Course, CourseForm, Class, ClassForm, Location
import datetime
def do_year_check():
now = datetime.datetime.now()
try:
y = Year.objects.get(value=now.year)
except:
y = Year(value=now.year)
y.... | [
"TGegenberg@nbpower.com"
] | TGegenberg@nbpower.com |
501484f359e376b8840d2bb7babef1f3061bd15c | 658d4fa39cea001b2d098dfd1979be61c92732de | /node_modules/socket.io/node_modules/engine.io/node_modules/ws/build/config.gypi | 40a32f104d3b9e64186f2160052692a7d5b8c0f4 | [
"MIT"
] | permissive | bindlzhu/eb | f1ad5f7571f0aa21a820191c965d9500caa18696 | d7d770bb8385f0f05399de953ad6f5fbd3a299cf | refs/heads/master | 2021-04-03T04:34:11.882720 | 2018-03-08T12:21:15 | 2018-03-08T12:21:15 | 124,363,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,665 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 44,
"host_arch": "x64",
"icu_data_file": "ic... | [
"bin.dl.zhu@hotmal.com"
] | bin.dl.zhu@hotmal.com |
c5b79ec3430cee9cdb261dc38c2cdd58cd6a83c0 | a4f3c0bcad077fccb4478c8ec9311bf5c89ba862 | /hangman.py | 28917b7fe766e364a02b150db1a18d26834c7056 | [] | no_license | shadowaryan/Hangman_Game | e049cc884196f1349ae63934954386ff5df065bb | f4a7e4f460dcc1c62ce83dc3a9be4c7971c5ce12 | refs/heads/main | 2023-08-22T08:03:08.138332 | 2021-09-28T13:55:14 | 2021-09-28T13:55:14 | 411,302,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,109 | py | import random
print("Its Hangman World :]")
print("enter the number of words stages you wanted to play must be greater than 3")
print("note:-made it below 10")
Stage=int(input())
if(3< Stage <=15):
words=[]
i=0
'''input'''
global point
point=0
num=[]
global health
health=3
l=1
for x... | [
"borntodevelop77@gmail.com"
] | borntodevelop77@gmail.com |
cf72caa0cc36c32a4847ba0d26769b6309e70b58 | 74061a6ac7cbd321c4dfd86d9265619b4cc1b2ad | /network.py | a741850ddb7920d3d133c71618dd4e0d1f761fed | [] | no_license | midasscheffers/ai_learns_battle_royale | 549d422508786929296a631c61c6a2e47a0868d7 | 2ef5eb183c3edad56fc940155057f4e3b1a495a0 | refs/heads/master | 2021-02-28T17:52:03.664126 | 2020-03-07T23:19:40 | 2020-03-07T23:19:40 | 245,719,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,012 | py | import random as r
from node import *
import math as mth
class Network:
def __init__(self, layers):
self.layers = layers
self.nodes = []
self.cost = []
for i in range(len(self.layers)):
self.nodes.append([])
for j in range(self.layers[i]):
... | [
"midassceffers@gmail.com"
] | midassceffers@gmail.com |
4b1ca7273e81c86d22e8a9d51fd766da183b9f06 | f288f81e239d60ecb94ed455cf006418548c9702 | /venv/bin/pylint | bbd8d3acaf96c8c680533381d29f41834df74845 | [] | no_license | GSIL-Monitor/test_source_import | ac1b84bdd055fc31837cf9e6b4c2ebd0bc231d11 | 5256352af2d4e9e6e462960608a62b7d781acb57 | refs/heads/master | 2020-04-24T14:07:56.117085 | 2018-05-23T17:20:16 | 2018-05-23T17:20:16 | 172,009,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | #!/Users/gesteves/sources/crawler-python-github/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pylint())
| [
"esteves.gean@gmail.com"
] | esteves.gean@gmail.com | |
edacf9cfce5b069972303074f24fded09f89fe81 | 19c2f173d3d5384710b9271853fc3e1e60a054e2 | /env/bin/pip | 28e2a8a511905191e3cd014074c7318b9333df4b | [] | no_license | rahonur/hellosisters | 8cd1332ccb7a347c00383bb643bd14a27f781b9f | 94da959d4be276e280ca5e1049a1c566523c9d60 | refs/heads/main | 2023-01-24T02:57:31.518942 | 2020-11-30T22:53:59 | 2020-11-30T22:53:59 | 314,942,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | #!/home/vagrant/src/hello-sisters-master/env/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm | |
e2fe714bb3d00b6ae53efd2431b00c1a3ed70786 | b56ca08eb67163d3ccb02ff0775f59a2d971d910 | /backend/moderation/migrations/0009_merge_20191003_0725.py | f5847052ee467c5c2157709054ed2f2005b4a4ae | [] | no_license | globax89/dating-work | f23d07f98dcb5efad62a1c91cdb04b1a8ef021f7 | bb3d09c4e2f48ecd3d73e664ab8e3982fc97b534 | refs/heads/master | 2022-12-11T22:45:19.360096 | 2019-10-16T07:01:40 | 2019-10-16T07:01:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | # Generated by Django 2.2.4 on 2019-10-03 07:25
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('moderation', '0008_auto_20190930_2116'),
('moderation', '0008_auto_20190930_0958'),
]
operations = [
]
| [
"zdimon77@gmail.com"
] | zdimon77@gmail.com |
67cd3a9addeb01f7471dfbc81c253851ceff58ec | 686f3fec1aeff15c4040d15757c5c9be90d5da5e | /dataLoaderCdiff.py | 68dfc6f59caf4a35dcd3c9b5975f85eb0976d505 | [] | no_license | jendawkins/cdiff_metabolomics | 6ef3a9b572002591e9f5ddc91daa5660698b08dd | 0f53949b0ce762a441ed3be741d9327ec094eeca | refs/heads/master | 2022-11-10T11:16:34.306032 | 2020-06-26T01:11:25 | 2020-06-26T01:11:25 | 265,290,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,381 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import colors
import copy
class cdiffDataLoader():
def __init__(self, file_name="CDiffMetabolomics.xlsx", file_name16s='dada2-seqtab-nochim.xlsx'):
self.filename = file_name
self.xl = pd.ExcelFile(self.file... | [
""
] | |
915597ed60c80192a3ea7c652ca9ce6cd0a4d85d | 9fcc0fc4e8fe9fd2618ad9506594811685cbe065 | /lt_cmu.py | 73895d53c24cfe4949402d2e2e037a74250b57ba | [] | no_license | cheezebone/Timit_Phoneme_Recognition | 36a1617a02449184c1cc6f5f4b91c8f30bf1b20f | b7fc8318d160828d03371fee3424ca494387a102 | refs/heads/master | 2023-01-19T02:17:11.012204 | 2020-11-23T12:33:06 | 2020-11-23T12:33:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from persephone import corpus
from persephone import corpus_reader
from persephone import rnn_ctc
lt_corpus = corpus.Corpus("fbank_and_pitch", "phonemes", "lt")
lt_corpus = corpus_reader.CorpusReader(lt_corpus, batch_size=32)
model = rnn_ctc.Model("exp_cmu/", lt_corpus, num_layers=3, hidden_size=256)
# model.train(max... | [
"virtuoso.irfan@gmail.com"
] | virtuoso.irfan@gmail.com |
d514abdeb1b8e523cb8eb2e8c85d22dddd5b1abb | 7182765088646ef1730ee3c21cc8d6a7a6899979 | /plainTextMessage.py | 7ae06911f1e152a13d6dc99c1dfb3b1a21a7ebc1 | [] | no_license | 4others/MIT_6.01.1x | cd09b9613a20e64d71954b6e09eff6e8f1c653c2 | 56e48962842894d9d777c0d105d9033f494c2fec | refs/heads/master | 2020-04-03T22:45:41.461087 | 2018-11-05T21:42:37 | 2018-11-05T21:42:37 | 155,608,886 | 0 | 0 | null | 2018-11-05T21:37:00 | 2018-10-31T18:58:28 | Python | UTF-8 | Python | false | false | 2,604 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 31 22:47:42 2018
@author: xxx
"""
class PlaintextMessage(Message):
def __init__(self, text, shift):
'''
Initializes a PlaintextMessage object
text (string): the message's text
shift (integer): the shift as... | [
"noreply@github.com"
] | noreply@github.com |
f88d208695bc93feef493bc8bdacc7d236166cc0 | c924904e8753b7b61e4a5d049db26e24b63c02d1 | /virtualenv/passOrganiser/passwords/views.py | 26622743e9c381c9e52c284e1c7455351d6b18c9 | [] | no_license | DanielAves/Password-Organiser | 940c2f5416ce5d52f8f33c7bbf43886144e95f14 | b6dbed4d9a28cfe0ce5585ad264f35b2f502ad00 | refs/heads/master | 2023-01-31T00:50:50.887085 | 2020-12-17T20:35:14 | 2020-12-17T20:35:14 | 287,767,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,251 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
from .models import *
import base64
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
from cryptography.fernet impo... | [
"sc16da@leeds.ac.uk"
] | sc16da@leeds.ac.uk |
e7299984bcff986df9c36aebf4ee981f632ba1d0 | a84fc4500b8b5ec8d80ccb52ae34811790a462e9 | /alexa.py | baab488ae0e4995e65b7a522d3e85400cb8dcab0 | [] | no_license | appu32/alexa | 50ef8c6e21a0ad37fcabe7dbdf9702f7cd0432a7 | dab858658fc35a08870612ea1526b4893f04a629 | refs/heads/main | 2023-06-04T11:30:00.488018 | 2021-07-05T07:07:38 | 2021-07-05T07:07:38 | 383,046,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,259 | py | import pyttsx3 # pip install pyttsx3
import datetime
import speech_recognition as sr # pip install SpeechRecognition
import wikipedia # pip install wikipedia
import smtplib
import webbrowser as wb
import os
import pyautogui # pip install pyautogui
import psutil # pip install psutil
import pyjokes
import pywha... | [
"noreply@github.com"
] | noreply@github.com |
6ea78f9ff0470b0749a857243842078fe6ab300d | 5f817df8aab6ad5e0208447a4f847637d71e8bd6 | /opi2_1.py | 177d042318485548f0b1c505b9c5ab5e81e5ecba | [] | no_license | mrVandermond/education | 18d492141d6263233b8ca2fd20203b1de42ebca5 | 315007b7a85319f9ad782a29c0f4d60481c4703e | refs/heads/master | 2021-04-28T13:10:18.347293 | 2018-05-15T06:30:45 | 2018-05-15T06:30:45 | 122,098,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,353 | py | #method NewTon
import numpy
x0 = [1.5, 0.1]
eps1 = 0.05
eps2 = 0.25
M = 100
def nabla(x):
res = []
res.append(2 * x[0] - x[1] + 1)
res.append(16 * x[1] - x[0])
return res
def f(x):
return x[0] ** 2 + 8 * x[1] ** 2 - x[0] * x[1] + x[0]
def fi(x, t):
nabla_res = nabla(x)
return (x[0] - t *... | [
"kirill.guyda32@gmail.com"
] | kirill.guyda32@gmail.com |
0e3e892d28c69731125eab1f400dfb5cdf382315 | e0b5a869c687fea3c9dda138734d25b3c5e68b88 | /9. Decorators/9. 2 Exercises/Problem 1- Logged.py | 22f6e5741de525740b650eedb601357d66b590f8 | [] | no_license | asen-krasimirov/Python-OOP-Course | b74de5f83fb3e287cb206d48c3db79d15657c902 | c6df3830168d8b8d780d4fb4ccfe67d1bb350f7e | refs/heads/main | 2023-02-01T04:09:33.796334 | 2020-12-15T14:56:59 | 2020-12-15T14:56:59 | 309,389,119 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py |
def logged(func):
def wrapper(*args, **kwargs):
func_name = func.__name__
parameters = args+tuple(kwargs.keys())
result = func(*parameters)
information = f"you called {func_name}{parameters}\nit returned {result}"
return information
return wrapper
@logged
def func(*a... | [
"68907559+asen-krasimirov@users.noreply.github.com"
] | 68907559+asen-krasimirov@users.noreply.github.com |
195afab436487bab16ad2129e56c10b58ecdeaaa | 41b84970d2c2e7a2ec76c11fc40e074017b27b14 | /ex6 (Sockets)/tcp/echoserver.py | 3d6398565385ee5cd02bcd1298fcee56c5797dd7 | [] | no_license | noblejoy20/python-tutorial-college | 4614693252ba793db4f0a4855ba7a42991e5e47f | be5b578e143471c14c4af34f42aff19d1ca87734 | refs/heads/master | 2021-07-01T10:16:41.887106 | 2017-09-22T07:09:06 | 2017-09-22T07:09:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | import socket
import sys
import time
from threading import Thread
def sockforconnection(connection,client_address):
print "In a seperate thread for the connection"
try:
print >>sys.stderr, 'connection from', client_address
# Receive the data in small chunks and retransmit it
while True... | [
"lokesh.slg06@gmail.com"
] | lokesh.slg06@gmail.com |
311986559dd1ca8ad579265deb5d9f1b8fd537e1 | 52c432d0dec301ce7eed3dd355cd306ca96a0beb | /stable_baselines3/dqn/dqn.py | bd3ad4b796825adad11cab95661f35374a799e7d | [
"MIT"
] | permissive | lenroe/stable-baselines3 | a8ef497b8f681aa6f91460c4159cb668ff6cd453 | fd0cd82339511b54cd3907df228a656f2a32f0b8 | refs/heads/master | 2023-05-20T14:23:02.975272 | 2023-05-08T11:48:26 | 2023-05-08T11:48:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,838 | py | import warnings
from typing import Any, Dict, List, Optional, Tuple, Type, TypeVar, Union
import numpy as np
import torch as th
from gymnasium import spaces
from torch.nn import functional as F
from stable_baselines3.common.buffers import ReplayBuffer
from stable_baselines3.common.off_policy_algorithm import OffPolic... | [
"noreply@github.com"
] | noreply@github.com |
b4e1ebbc795815ff08d8939927b0ced162c3d4cc | ef46adcd3bed245807f169db788f4bb183b87f51 | /sklearn/preprocessing/label.py | 6afaae035444606946018cb807257351a880070b | [] | no_license | auroua/aurora_detection | b35cddee8c77dafc70ee3869e51df8cc9a742d2d | ad4f940dccf9280a6efc9e2528285ec76042d6e6 | refs/heads/master | 2021-01-10T13:20:56.933107 | 2016-01-04T14:23:48 | 2016-01-04T14:23:48 | 44,159,924 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 26,702 | py | # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Mathieu Blondel <mathieu@mblondel.org>
# Olivier Grisel <olivier.grisel@ensta.org>
# Andreas Mueller <amueller@ais.uni-bonn.de>
# Joel Nothman <joel.nothman@gmail.com>
# Hamzeh Alsalhi <ha258@cornell.edu>
# Licens... | [
"auroua@yeah.net"
] | auroua@yeah.net |
77d8342e70673e1db3c501fe558bc7e3fc2372d8 | a19240d75d36ad2cd8dc1b06fbdb47f7a4898351 | /model/detection/protos/optimizer_pb2.py | c7f64cd7af715a9314c52752bf9ae2c310007e2f | [] | no_license | Zumbalamambo/deepcv | eec2346f3b570123d33532461ec2730cd527529c | 1c79798d329732857d6bca19b4ec32b2f1fd1f61 | refs/heads/master | 2021-06-20T17:31:38.400692 | 2017-07-06T10:05:51 | 2017-07-06T10:05:51 | 97,392,294 | 1 | 0 | null | 2017-07-16T15:24:36 | 2017-07-16T15:24:36 | null | UTF-8 | Python | false | true | 21,908 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: model/detection/protos/optimizer.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf im... | [
"sjsanlang@qq.com"
] | sjsanlang@qq.com |
e5227a2f96a845d429c096342f226ebed73b2584 | ea2fbfc84693d88608e5271c4ce3647cddbdadda | /flask-movie/apps/controllers/theaters/controllers.py | d4e2725e0942c8d9cb04420eeb607e63f8a50293 | [
"Apache-2.0"
] | permissive | gureuso/first_flask | 8943896b681ba1a831674394e8cd11ff4c2dbd26 | 0ee839bb269fcf1dfd0880b38c76e0e7bab92e86 | refs/heads/main | 2023-07-08T19:27:01.526126 | 2021-08-10T04:53:46 | 2021-08-10T04:53:46 | 394,528,580 | 10 | 10 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from flask import Blueprint, redirect, url_for, render_template
from flask_login import current_user
from apps.common.auth import signin_required
from apps.database.models import Showtime, Theater, TheaterTicket
app = Blueprint('theaters', __name__, url_prefix='/t... | [
"wyun13043@gmail.com"
] | wyun13043@gmail.com |
2b9acdd2649c3b8ede22e1943f256787fcb0885d | 183ae402622e1455f4f0be497880a8d33eeb9878 | /env/bin/python-config | 4a487edef71dfbe470a7f3fb92872332f72a8912 | [] | no_license | techtona/new_django_app | ce1ad653e6a590b4ff71bd029ff05dcd1232c1ba | 03bcf00b468eec65b2b578116d1f29a3dc964310 | refs/heads/master | 2021-01-21T10:34:28.634135 | 2017-02-28T16:46:29 | 2017-02-28T16:46:29 | 83,456,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,350 | #!/home/techtona/projectDjango/env/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.version_i... | [
"jati.pikukuh@mail.ugm.ac.id"
] | jati.pikukuh@mail.ugm.ac.id | |
ee5b2aec4843d1965c0ff178c5674442651f6460 | 38e2d7b8e09d9bcd5eb0cd9ac223a47fdae9b178 | /Sx4/cogs/status.py | 54a489198ff9055fbfa94f60ddc90000a0369d75 | [] | no_license | itspapi/Sx4 | 72f9277e034cfa8a28db27aab1b12fa218368a2a | 9ac21e1fd913920828c6567639d27a70114123a1 | refs/heads/master | 2020-03-26T18:33:05.053787 | 2018-08-17T13:31:14 | 2018-08-17T13:31:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | import os
import discord
from discord.ext import commands
from discord.utils import find
from random import randint
import asyncio
class statuses:
"""Bot Status"""
def __init__(self, bot):
self.bot = bot
async def display_status(self):
i = 0
while not self.bot.is_closed():
... | [
"sc4gaming@gmail.com"
] | sc4gaming@gmail.com |
5d0c0e70a2c52249e45511283e53cdf7c94a047d | 4fbf061b645ce1b0e493072c5b5f71e39ba94315 | /4. Median of Two Sorted Arrays.py | 7155e2ad0b73acf38b5075c619548a326abdaaad | [] | no_license | chenshenyuan/leetcode | 2bc6442be3a693b7838da44b15c98f77ba414611 | 1d1bf79ed85218999038e5d661cb7fba508520b1 | refs/heads/master | 2021-04-12T06:30:21.079965 | 2017-09-27T03:22:42 | 2017-09-27T03:22:42 | 94,503,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,532 | py |
# check if two list add to odd number elements list
def sum_as_odd(a, b):
total = len(a) + len(b)
if total % 2 == 1:
return True
else:
return False
# find out the index needed, 2 index for odd
def find_target(list1, list2):
target_index = []
len1 = len(list1)
len2 = len(list2)
... | [
"chenshenyuan1990@gmail.com"
] | chenshenyuan1990@gmail.com |
253e032a7578b0693751dc6c07b7ec26f2937f27 | 3fe96227e910eb3ef13b80ded266da924d32cb86 | /pump/main/models.py | 26fe322b093b7cff7fe553bf16ab51637c5d9dc2 | [] | no_license | akingon/pump | b974054c54d12b8efa644a161e3ab9acb9b82601 | 6ce07a9b3faf7e1ed97062f854f57624a896e8a7 | refs/heads/master | 2021-01-18T06:32:25.974631 | 2015-05-01T14:27:22 | 2015-05-01T14:27:22 | 31,909,188 | 0 | 0 | null | 2015-03-09T16:18:46 | 2015-03-09T16:18:46 | null | UTF-8 | Python | false | false | 3,054 | py | from django.db import models
from django.template import Context
from django.template.loader import get_template
from .criteria import Houghton, ABC, PassFail
class Response(models.Model):
added = models.DateTimeField(auto_now_add=True)
# Houghton
q1 = models.TextField(blank=True, default="")
q2 = mod... | [
"anders@columbia.edu"
] | anders@columbia.edu |
04f7bc385f1b8ac6d86d0e075bc5edae8a51d202 | bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6 | /AtCoder/abc/158a_2.py | 048e2b8a5c7f0c3a977f8d7b8756d1db030f8749 | [] | no_license | y-oksaku/Competitive-Programming | 3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db | a3ff52f538329bed034d3008e051f30442aaadae | refs/heads/master | 2021-06-11T16:14:12.635947 | 2021-05-04T08:18:35 | 2021-05-04T08:18:35 | 188,639,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | S = set(list(input()))
print('Yes' if len(S) == 2 else 'No')
| [
"y.oksaku@stu.kanazawa-u.ac.jp"
] | y.oksaku@stu.kanazawa-u.ac.jp |
f92d2c704f7a53697f0353b26fd71bd638ce6705 | f9c70725a374d7704f6d974cf0cc7cf72a5e7d66 | /losses.py | 9bfff14158c821fb7fd0f35e0be3ebd4be88ab6e | [] | no_license | ChocoWu/offensive-language | a6c99ba002a6d539040efa675c27a444a617b88a | c8f50ceec4bb449d75e118632a09d1538cf64580 | refs/heads/master | 2021-07-24T16:38:41.618069 | 2020-06-27T10:06:28 | 2020-06-27T10:06:28 | 190,844,499 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,418 | py | #!/user/bin/env python3
# -*- utf-8 -*-
# author shengqiong.wu
import torch
import torch.nn as nn
import torch.nn.functional as F
class TripletLoss(nn.Module):
"""
Triplet loss
Takes embeddings of an anchor sample, a positive and a negative sample
"""
def __init__(self, margin):
super(Tr... | [
"wushengqiong@hotmail.com"
] | wushengqiong@hotmail.com |
d52622fe2fb7eff983b5ceae2d482060b27eeab7 | d3cfb8e7de6747776e5e03f5285ec4fd288481a3 | /d_girls/bin/pip | 495a3d8722236c0bf12432ffc22b7004ea71bc73 | [] | no_license | andreayully/DjangoGirls- | 095e5825990b8c719bf8463ecf56145449b3cd88 | 031ad4d4a292e8918193131cab886cab9266dc1f | refs/heads/master | 2020-06-10T01:18:03.329612 | 2016-12-10T17:17:25 | 2016-12-10T17:17:25 | 76,118,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | #!/home/andreayully/Django_girls/d_girls/bin/python3
# -*- 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())
| [
"yully.guzman@correounivalle.edu.co"
] | yully.guzman@correounivalle.edu.co | |
7283b577fcf57b22afbd30f5d695d80a80436a2d | 1a6becf811ae864a3d2ff8341f9345cdac9ba7b1 | /src/apps/profiles/tests/test_views.py | b10ea2221162afa5b493b261f8578779b5c00330 | [] | no_license | dselivanovskaya/MathHelp | b230d925d9d0959f115366441789a6e89fb71324 | ab31200671e0d1d7742360c1e365cbba2d69e6cb | refs/heads/master | 2022-11-23T22:03:32.421600 | 2020-12-19T13:58:17 | 2020-12-19T13:58:17 | 238,467,311 | 1 | 1 | null | 2022-11-22T05:50:14 | 2020-02-05T14:18:14 | Python | UTF-8 | Python | false | false | 1,560 | py | from django.test import TestCase
from django.urls import reverse
from tests.data import MALE_USER
from profiles.views import ProfileUpdateView
class ProfileDetailViewTest(TestCase):
@classmethod
def setUpTestData(cls):
cls.user = MALE_USER.create()
cls.profile = cls.user.profile
cls... | [
"defytheflow@gmail.com"
] | defytheflow@gmail.com |
2a932c10245098c0fb373ff5ce2a4dc2c19eace9 | e08214388c46eabdcdcaecc4958db30ca2e5bfe8 | /download_audio_and_video.py | 764a0f328ebff7f124cacfa62cbf4f24fa39b3bf | [
"MIT"
] | permissive | openmindednewby/Extract-YouTube-content-with-python | 978deb5f769ff6590c785560294bf39737078b3f | a677658700da2bb652982d123a77e8bfa0570c90 | refs/heads/master | 2022-08-06T16:19:21.844398 | 2020-05-24T15:14:35 | 2020-05-24T15:14:35 | 266,495,352 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | '''Downloa YouTube audio and video using youtube-dl'''
import module_youtube_extract
# specify desired youtube URL
URL_I = 'https://www.youtube.com/watch?v=Tx-qXGGlF6k'
# specify desired file name
FILE_NAME_I = '%(title)s.%(ext)s'
# Specify desireable download formats if Function 5 is executed.
# The list of avai... | [
"noreply@github.com"
] | noreply@github.com |
57ef82412c8a9413d3ccc8095f0f5d21c99f0814 | 6697e41e91090f0eec532d46abd1415930130e7f | /sub.py | 076e7e2c2d8703b4940dcbb0aa77962b6174df4f | [] | no_license | vaishcan/math | 019fd59ad091874c9ebb3fdf79586ed04f12bd89 | a814475c2e7c9669b79683931533f03db624e2c4 | refs/heads/master | 2021-01-11T17:21:32.023432 | 2017-01-23T01:38:47 | 2017-01-23T01:38:47 | 79,759,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,763 | py | #!/usr/bin/python
from random import randint
from datetime import datetime, timedelta
import time
import sys
(correct, wrong, tottime)=(0,0,0)
MAXQUESTIONS=30
FILENAME=".reports/subtractionsreport.txt"
##if (len(sys.argv) > 1):
# MAXQUESTIONS=int(sys.argv[0])
#print MAXQUESTIONS
#exit()
def genReport():
d = datetim... | [
"vaishvan@outlook.com"
] | vaishvan@outlook.com |
f67841dd742b3d42f0408cb963d27b825d155ab1 | 29f8aa5b6e2262de905e4a40eb3e8f47d22a4738 | /api/tests.py | 5e53face1549a0ba9445dd01c5777eb2416722d5 | [] | no_license | beskorsy/lom_server | b18988b310389317647a8bb0a513599f8cc5f270 | 97de06d64caf223b53f111e664b88691f6e1701c | refs/heads/master | 2021-05-01T12:12:00.964837 | 2018-07-13T21:28:52 | 2018-07-13T21:28:52 | 121,060,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,560 | py | from django.test import TestCase
from api.models import Customer
class ModelTestCase(TestCase):
"""This class defines the test suite for the bucketlist model."""
def setUp(self):
"""Define the test client and other test variables."""
self.customer_name = "Write world class code"
self... | [
"besn1989@gmail.com"
] | besn1989@gmail.com |
651b41477eb783e43838a7e8f5453534df8966d6 | 3df39118dcdbdb479720ccefc1e0ad84999fa544 | /scripts/helper.py | 788e98e59a4d6dba9a4a0135d129d9a6e34e7792 | [] | no_license | ajcj151/ecdl | 1b9d2aca171e44222509bbf40b373e7b02aa8b33 | 974f0674acd71d81685c2aa5dbf1b62e31b81e79 | refs/heads/master | 2020-03-28T15:22:04.766104 | 2017-07-08T20:34:13 | 2017-07-08T20:34:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py |
def parseInt(n):
return int(n, 0)
def read_int(prompt):
s = raw_input(prompt)
s.rstrip("0x")
return parseInt(s);
def read_string(prompt):
return raw_input(prompt)
def main():
p = read_int("p:")
a = read_int("a:")
b = read_int("b:")
n = read_int("n:")
gx ... | [
""
] | |
4579354e9fef8529b99b4ddb1052d47e9dd7a0a4 | a1cfa30e706c284d97b7343a9dc4350629ee7c1a | /dataParser/dataParser/settings.py | 4c09a2a1beb2a716cb85645dab4d3a78ea4aa588 | [] | no_license | ssg1990/MySpider | 71356378d599f8622fd0eacb6fd89f6bdee3db9e | 8fcd664845b5fa4417d4bed13e35a0c78bef8f12 | refs/heads/master | 2021-01-01T06:53:16.970677 | 2017-07-18T02:14:16 | 2017-07-18T02:14:16 | 97,541,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,540 | py | # -*- coding: utf-8 -*-
# Scrapy settings for dataParser project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/lat... | [
"dawn@xmind.org"
] | dawn@xmind.org |
7fdd918d071dc5f3107673de40b29f0065b5ccae | 19520a36d028445af908d5240cd317b9a53019dd | /tests/basic/playback/test_rtc9798_tc_ply_007_playback_subtitles.py | 13713f5b1fc9a8eede92c7df39428a3e0baa4e09 | [] | no_license | rrajeshm/test-project | 0e9f2fe844f2b7e8679eedbc460d81d626156dec | 02360a3908fe84fb9fcf0d8a6ddf938f32329110 | refs/heads/master | 2022-05-09T02:26:29.025730 | 2019-07-24T07:30:40 | 2019-07-24T07:30:40 | 198,578,089 | 0 | 0 | null | 2022-03-29T21:57:24 | 2019-07-24T07:04:11 | Python | UTF-8 | Python | false | false | 3,112 | py | import logging
import os
import pytest
import requests
import yaml
import helpers.constants as constants
import helpers.models.recording as recording_model
import helpers.notification.utils as notification_utils
import helpers.utils as utils
import helpers.vmr.a8.a8_helper as a8
import helpers.vmr.rio.api as rio
impor... | [
"makkadr@cisco.com"
] | makkadr@cisco.com |
840164d5a14a0caf4c19930e425304128403178c | 41ede4fd3bfba1bff0166bca7aee80dcf21434c6 | /suvari/gtk2chain/reverses2/libgsf/actions.py | a7de56c2638edd3d8d8dcf8cb916ee27fd666874 | [] | no_license | pisilinux/playground | a7db4b42559a21cc72fd4c8649e0231ab6a3eb3c | e4e12fff8a847ba210befc8db7e2af8556c3adf7 | refs/heads/master | 2022-08-12T23:03:27.609506 | 2022-08-11T18:28:19 | 2022-08-11T18:28:19 | 8,429,459 | 16 | 22 | null | 2022-08-11T18:28:20 | 2013-02-26T09:37:11 | Python | UTF-8 | Python | false | false | 678 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
autotools.configure("--disable-static ... | [
"suvarice@gmail.com"
] | suvarice@gmail.com |
9a0dea09a403ff056bcb820328729f83c27e4587 | 9c93bc66ad54af85580c4238ec332d85200218e6 | /smartapi/migrations/0013_auto_20210414_1638.py | 1a956b6beb54317687dda4632e5f5226c0eacc73 | [] | no_license | andoedo94/smartdjango | ce01876389327cc31d36bf62796d9259c4a7ecb2 | bf0dfff2596be79faec1868fda9702e9d5f74f44 | refs/heads/master | 2023-05-10T22:53:12.222675 | 2021-06-02T02:33:58 | 2021-06-02T02:33:58 | 372,676,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # Generated by Django 3.1.6 on 2021-04-14 21:38
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('smartapi', '0012_tweet_tweet_id'),
]
operations = [
migrations.RenameField(
model_name='usertweet',
old_name='usuarios_id',
... | [
"eduardoandrespaternina@gmail.com"
] | eduardoandrespaternina@gmail.com |
dbffe0154bc07e3e8416502de5c23ab330d083b1 | 7b60c00eb1a45fb8fb58aefaf786a5c29700ed7e | /payment_gateways/migrations/0010_auto_20180828_1359.py | 8d6ce36b12732ee6fe2536c64631d11c09c2feff | [] | no_license | kshutashvili/mfo | 521b126146b7582ca6b56bc6bb605f4aee79dfc2 | 663662dd58ee0faab667d5e9bb463301342cb21a | refs/heads/master | 2022-12-15T20:00:44.759395 | 2019-06-23T17:06:13 | 2019-06-23T17:06:13 | 203,863,751 | 0 | 0 | null | 2022-11-22T02:24:17 | 2019-08-22T19:56:43 | Python | UTF-8 | Python | false | false | 992 | py | # Generated by Django 2.0.2 on 2018-08-28 10:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('payment_gateways', '0009_auto_20180828_1259'),
]
operations = [
migrations.AlterModelOptions(
name='city24payment',
... | [
"phonxis@gmail.com"
] | phonxis@gmail.com |
6674da9d098fafc27683b5faa3cb173b173dca4f | 437c29e53f2c20d41b134b6f49e2abb15da7f48a | /tama.py | 263bb1e405829d060cb4a25cc153fa049d3ccd13 | [] | no_license | messyv/classwork | fe170f8ba2c60e0734618dad9417b26f951b950b | e7ea8ae4da31d94822faa29299e0d6c3e72508e2 | refs/heads/master | 2022-12-28T11:25:27.551237 | 2020-10-19T17:16:31 | 2020-10-19T17:16:31 | 296,388,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py |
szomjas = 0
ehezes = 0
cmd = ''
while cmd != 'vége':
cmd = input("Tamagochi:")
ehezes += 1
if cmd == 'etet':
ehezes -= 7
if ehezes > 7:
print("Éhezem!")
szomjas += 1
if cmd == 'itat':
szomjas -= 7
if szomjas > 7:
print("Szomjazom!")
if ehezes > 10:
print("Meghaltam.")
cmd = 'vége'... | [
"noreply@github.com"
] | noreply@github.com |
a6155469c7847c6cf0ccc2729c4d9592933d03f9 | b634d405072b2013e47d5fdfb585807695acd276 | /work1-mapprocess.py | c3632a40f1b018ecfdaf05f0c3e5d97beec8fbfa | [] | no_license | uvcyclotron/miniDEM | 0f902db23936eb603457d4c90b899e38742b8d89 | 3097339a8448fcd1228dcf8de6424043ea7c3c6e | refs/heads/master | 2021-01-23T07:26:05.477495 | 2014-04-24T20:52:25 | 2014-04-24T20:52:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,734 | py | '''
Assignment for the Multimedia Project
Utkarsh Verma
2011A7PS137P
Map Image Processing Module
'''
from __future__ import print_function
import numpy
import cv2 as cv
from matplotlib import pyplot
import json
from colorama import init, Fore, AnsiToWin32
import sys
#load the contour map
img = cv.im... | [
"utkarsh.nvm@gmail.com"
] | utkarsh.nvm@gmail.com |
53114fee0e98b0bbf00e07b2d7eede989c2ddcab | 108b27b9882261150c56bf2dfe21b4ad6f03e5c1 | /Cap 8/1_op_morf.py | 6675a9c3bf48dc9877967cc39e18bb130f984811 | [] | no_license | hugosousa111/opencv-studies | 9dfd93dc4e8a63d4040fe412be65f875b187f218 | 2e1b0e0b65bb127330d2eb8bd99fd05741c6907f | refs/heads/master | 2020-05-26T15:37:03.268191 | 2020-01-26T12:37:20 | 2020-01-26T12:37:20 | 188,289,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | import cv2
import numpy as np
#retangular,elipse e cruz.
print(cv2.getStructuringElement(cv2.MORPH_RECT,(5,5)))
print(cv2.getStructuringElement(cv2.MORPH_ELLIPSE,(5,5)))
print(cv2.getStructuringElement(cv2.MORPH_CROSS,(5,5)))
#criando um elemento estruturante
elementoEstruturante = np.matrix([
[0, 0, 1, 0, 0],
[0, 1,... | [
"hugosousa111@gmail.com"
] | hugosousa111@gmail.com |
5fde33f81980c6a116e4ad56f66585cead51eb71 | 3477093df6f27c9a0ae27e05462b832a43c6fbf5 | /basic-python/docstring.py | 8ff6fbff8e87d80a9a18f0e5354c3ea9c4bae447 | [] | no_license | giabao2807/python-study-challenge | d18d320471c8577d26f44f9afa804494549fd078 | b88dd3bde351d7c0e955c71912572b2c20a54b36 | refs/heads/master | 2023-08-17T23:29:45.188611 | 2021-09-22T14:24:45 | 2021-09-22T14:24:45 | 402,494,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | def sum_range(start: int, stop: int, step: int = 1) -> int:
'''Tính tổng các số trong khoảng [start, stop)
start: giá trị đâu khoảng
stop: giá trị cuối khoảng
step: khoảng giữa hai giá trị liền nhau
'''
sum = 0
for i in range(start, stop, step):
sum += i
return sum
sum_range(1, ... | [
"102190252@sv1.dut.udn.vn"
] | 102190252@sv1.dut.udn.vn |
6356e396e1f06ad96c207c3352e9b02ce7c69163 | 95be1f0ae00227c465f5d290f15f27ac623b273c | /DecisionTree.py | 8f1845082949eeacd9dfd0a6fa94060cf040c6ac | [] | no_license | kaushiknk98/Decision_Tree_From_The_Scratch | 653b1b004043c1451d86fe238185f587da912b93 | dfd1a3ad3cd7c18cc29e5d2968068c4673092cd1 | refs/heads/master | 2020-09-01T02:59:29.489320 | 2019-10-31T21:22:19 | 2019-10-31T21:22:19 | 218,864,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,500 | py | from __future__ import print_function
import math
def unique_vals(rows, col):
"""Find the unique values for a column in a dataset."""
return set([row[col] for row in rows])
def class_counts(rows):
"""Counts the number of each type of example in a dataset."""
counts = {} # a dictionary of label ->... | [
"32977878+kaushiknk98@users.noreply.github.com"
] | 32977878+kaushiknk98@users.noreply.github.com |
856cafc1cb397a949b9b66f141fd903d80ae32a8 | a2b8d3dd6455687d92daa0ef212d09a9a2b09052 | /mySinaSpider/mySinaSpider/spiders/tweetsSpider.py | dbfe588366e2981c8b0933558f0a5d870fb3e33f | [] | no_license | gpf951101/spider | f21a3a9d8f8e6ce180c0c13ca9b7eb63df6cd57d | cd49e4cc7c22fdb37164ced2e2485e05e3082b2e | refs/heads/master | 2020-03-10T20:14:00.409970 | 2018-04-15T01:37:50 | 2018-04-15T01:37:50 | 129,565,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,714 | py | # -*- coding: utf-8 -*-
# @Time : 2018/3/7 18:08
# @Author : gpf
# @Email : gpf951101@163.com
# @File : tweetsSpider.py
# @Software: PyCharm
from scrapy_redis.spiders import RedisSpider
import re
import requests
from scrapy.http import Request
from mySinaSpider.weiboID import weiboID
import dateti... | [
"gpf951101@163.com"
] | gpf951101@163.com |
7879ca81348c624f31155cb54edc381e6820a388 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02602/s085786581.py | 99dcc1901822553bf70ab6c5531a4412172e6f36 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | n, k = map(int, input().split())
A = list(map(int, input().split()))
for i in range(k, n):
if A[i-k] < A[i]: print('Yes')
else: print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
894470565632c354601a1f2e8da3fe816265ca36 | 7b33d6f68e4b6dc419495858718345a39146dab8 | /bin/todo.py | 0e5515a817c960eb79adea98c5455932943c4c77 | [] | no_license | santiwanti/todobot | 170f4b69b00df4ab695200eb12e5765b61d08310 | 610f529388a3edd196397983e75085a5b90f554f | refs/heads/master | 2021-04-28T17:46:25.542913 | 2018-02-22T17:08:41 | 2018-02-22T17:08:41 | 121,856,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | class Todo(object):
def __init__(self, id_num, description, sender=None, recipient=None):
self._id_num = id_num
self._sender = sender
self._recipient = recipient
self._description = description
@property
def id(self):
return self._id_num
@property
def sender... | [
"santi.dtord@gmail.com"
] | santi.dtord@gmail.com |
ad9198743be7a0ae888193f9bebc1dc7ab8ac99d | 696858827d63ae86e8952bfa07e665264a01a964 | /Code/Python/Resistance_Measurements/Beta/Plot_Generation_v2.py | c9cd301601a29df3816cb99694c04ff7996f4ee3 | [] | no_license | teddylew12/NIST_Measurements | 4798e042fe1e4f4569978626ff7559147a8cd332 | 15f527b4032ca0b037f07d492cc80a87234f02c1 | refs/heads/master | 2020-06-24T20:38:53.709590 | 2019-07-26T21:47:50 | 2019-07-26T21:47:50 | 199,077,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,918 | py | # -*- coding: utf-8 -*-
"""
Have functions to generate plots showing data
Created on Tue Sep 5 17:29:30 2017
@author: Soroush
"""
import numpy as np
from pyqtgraph.Qt import QtGui
import sys
import Live_Plot_Functions as lpf
from scipy import stats
import database_v4 as d
import pdb
def initializati... | [
"noreply@github.com"
] | noreply@github.com |
b439c84adf990acd44f64d602d38e3a94fe18c25 | 8ac37df1a153ae6d0191c82a3176344ea0be8e09 | /functions/windows/CommentView.py | 0f7db6cdf37b2f4afb2e95dca63516f400d60b85 | [] | no_license | rcardo35/Beat-Team-12 | f7993e680b4a9b5331fad671a9e7e3444c0772d0 | 5b01a99e6c141e068e43e1b0e48341987b99257a | refs/heads/master | 2020-09-22T06:33:53.317135 | 2019-10-26T01:12:28 | 2019-10-26T01:12:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,086 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'CommentView.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.set... | [
"42951440+bacardiel05@users.noreply.github.com"
] | 42951440+bacardiel05@users.noreply.github.com |
e83c32f3031150d7e8b24c162d99cb0b8819dddb | c61fa80dfba722e1017dad2bbf99cd4f612c71bc | /build/android/pylib/perf/perf_control_unittest.py | bd30a4eea7af9e0472dc4ddd91f390aec27abdf3 | [
"BSD-3-Clause"
] | permissive | RayHuo/chromium | dcd7bd281ff709732eb275cc35d600b9e9c75d60 | f33ffcad1835b5cfdb0d65a35d83e98f5aa735dd | refs/heads/master | 2021-01-24T04:56:02.878963 | 2014-06-12T14:29:56 | 2014-06-12T14:29:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | # Copyright 2014 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 os
import sys
import unittest
sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir))
from pylib import android_commands
from... | [
"skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98"
] | skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.