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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c49f30d5d4ee6b00020e6753de6d3dfc98a5d402 | 0296c284ba64ee538f90171ef9d031ce41b27634 | /Lab4/core/loadSensor.py | c46bff34e4570154af8b47397148ac8bb3673ffb | [] | no_license | paloitsingapore/Lab3AgritechCron | 1961092872897b2d279efc25ae9c81e8d24f8baf | 0111c7d8b4d7c6b63237c6573ef3d5e29ca76e83 | refs/heads/master | 2021-06-28T18:11:43.510439 | 2021-03-08T07:11:22 | 2021-03-08T07:11:22 | 221,591,549 | 0 | 2 | null | 2020-06-24T03:33:04 | 2019-11-14T02:11:45 | Python | UTF-8 | Python | false | false | 1,858 | py | import os
import json
from datetime import datetime
from azure.cosmosdb.table.tableservice import TableService
import access
import logging
import sys
sys.path.insert(1, '/home/pi/Lab3AgritechCron/')
import logHandler
logHandler.run("azure_ml_sensors")
account_name= access.get_name('1')
account_key = access.get_key('... | [
"pkesavan@palo-it.com"
] | pkesavan@palo-it.com |
35fc120289bb20eb079c1ccbcdc423567dccaa9c | 76f0e9fb49690d5b099aa67d310183a93eb7dcf6 | /project2-mad libs.py | f6e6d5d4ea0cf3e3ce5e299dbe8f527d5f0583ff | [] | no_license | IAmJustSomeRandomGuy/Hello-World | 2770dce48820491f42d0531d6d2e584e9bc8d5ac | 14b3beca55f5eed61179d311165a6265f71d3f7c | refs/heads/main | 2023-08-18T09:09:27.216643 | 2021-10-05T18:22:19 | 2021-10-05T18:22:19 | 413,927,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | n1 = input("comparative adjective: ")
n2 = input("adjective: ")
n3 = input("plural noun: ")
n4 = input("adjective: ")
n5 = input("noun: ")
print("\"Everybody knows that Donald Trump is " + n1 + " then the Corona virus, because of his " + n2 + " tweets and "
+ n3 + "\" says his self proclaimed " + n4 + " " +... | [
"noreply@github.com"
] | noreply@github.com |
36532ee5c85b919df895937c26f85572f220875a | 6a4e1e4f320ae81a8069fbe2587d62420976dbf1 | /mysite/polls/urls.py | 949fd485050af7d1c38bb5918e4fc6677c444057 | [] | no_license | YuriiKhomych/First-Django-App | 2f192ec00be6f84318905d4b18595b1cbad2b955 | 440a4618053adddf3b647975218bb6a003260243 | refs/heads/master | 2020-03-18T16:17:20.352467 | 2018-08-22T06:44:13 | 2018-08-22T06:44:13 | 134,957,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | from django.urls import path
from . import views
app_name = 'polls'
urlpatterns = [
path('', views.IndexView.as_view(), name='index'),
path('<int:pk>/', views.DetailView.as_view(), name='detail'),
path('<int:pk>/results/', views.ResultsView.as_view(), name='results'),
# ex: /polls/5/vote/
path('<i... | [
"yuriykhomich@gmail.com"
] | yuriykhomich@gmail.com |
ebc22e699980c3f5b7b8234f2aad220fa055e67a | 7f0548b7191b7589712af19baebafddae1d0505f | /dojoassignments/python/django/full_stack_django/bad_travel_buddy/apps/login_registration/migrations/0004_auto_20170627_1628.py | cb00a717c150b7df258a975ef221794b3969c1e7 | [] | no_license | mtjhartley/codingdojo | dd8eab1bd61fb847e44766e89fe3db2340468102 | 65dc558d19adbe62f85ad61c32cb1c392b56567c | refs/heads/master | 2022-12-14T23:06:11.927445 | 2017-08-16T21:08:35 | 2017-08-16T21:08:35 | 92,218,728 | 1 | 5 | null | 2022-12-07T23:59:48 | 2017-05-23T20:46:03 | Python | UTF-8 | Python | false | false | 581 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-06-27 16:28
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('login_registration', '0003_remove_user_birthday'),
]
operations = [
migrations.Rename... | [
"mtjhartley@gmail.com"
] | mtjhartley@gmail.com |
a961e5012524167cb669c64c86afbaa4d9707ed2 | c104dbd09a853725cb4f4b17df7c5dd59d47e04e | /test/opsgenie_swagger/models/amazon_ses_integration.py | 270f9fd25ff796979da446388dc26a706331bae3 | [
"Apache-2.0"
] | permissive | bm-lab/opsgenie-python-sdk | 5a64e2c24f1b9168ecadf482ba8084ba27a659fc | 244c4c40ddcc25e70df5ba4425ab8d7c8da59c18 | refs/heads/master | 2021-10-09T03:18:48.101672 | 2018-12-15T01:03:36 | 2018-12-20T15:13:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,335 | py | # coding: utf-8
"""
OpsGenie REST API
OpsGenie OpenAPI Specification # noqa: E501
OpenAPI spec version: 2.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from opsgenie_swagger.models.integration import Integration # ... | [
"c.chary@criteo.com"
] | c.chary@criteo.com |
505e44b07ae47951dbd2c52b70321a8456b2258a | be2a109c49d4571ded376e9d5aab47540b221102 | /cascade_v3.py | 6d7909d2374003e93e4ace967c462241e0d9417d | [] | no_license | ammar-bitar/brain-data-deep-learning | 4cbbee22184d2fec46cdd78f288c32dd17d257ea | f39cb299f4304fa79337891385c752bcf7e2d550 | refs/heads/master | 2022-07-01T11:03:46.951625 | 2020-03-22T17:19:22 | 2020-03-22T17:19:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | import numpy as np
from tensorflow.keras.models import Model
from tensorflow.keras.layers import Conv2D, MaxPool2D, LSTM, Dropout, concatenate, Flatten, Dense, Input
import tensorflow
class Cascade:
def __init__(self):
self.model = self.cascade_model()
def cascade_model(self):
inputs = []
... | [
"c.sahinli@student.maastrichtuniversity.nl"
] | c.sahinli@student.maastrichtuniversity.nl |
0b2d748e251d874ac3698205a67fcbe62158aaa9 | 1156b7cde01b0cc467c22cfb75cde0a74887da1a | /bin/mongrey_web_sqlite.py | 13ddaaf630e27e50d70faab7f82756f995022afd | [] | no_license | davidpolet/mongrey-build | d1ee2e12ffbbd8061f4f2faa753572b3e328291f | 8782b0e87474f2662cf35b3cb545516d76d9340d | refs/heads/master | 2021-01-21T09:34:07.283966 | 2015-05-26T19:00:31 | 2015-05-26T19:00:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import itsdangerous
import passlib
import flask_babelex
import babel
import blinker
import six
import flask
import redis
import arrow
import pygeoip
import regex
from werkzeug.contrib import cache
import peewee
import playhouse
import wtforms
import wtfpeewee
import simple... | [
"stephane.rault@radicalspam.org"
] | stephane.rault@radicalspam.org |
cb822087b5a162b2e253bc4b3688dee92f87dc61 | dafee61bc82cd5255989d41f3ebc8d688e60e582 | /加减相间.py | 30cbb299663a4e8987ade694c9f744472e1ccff7 | [] | no_license | sunreader/home | 5f2546d480a14f0cab582fa0294fd07100ae6461 | 3ef917f5210a81e4b4222d1fc3d159db151cbcf4 | refs/heads/master | 2020-04-08T19:57:18.558778 | 2018-11-30T02:40:39 | 2018-11-30T02:40:39 | 159,677,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | sum1=0
for i in range(1,967):
if i%2==1:
sum1=sum1+i
else:
sum1=sum1-i
print(sum1)
s = 0
count = 1
while count <=966:
if count%2 == 0:
s -= count
else:
s += count
count += 1
print(s)
| [
"noreply@github.com"
] | noreply@github.com |
321561a6db87b3ba65ab9e899d105a1cb50f9113 | 6ce40c0f29e008a9e26c3007cc878cb65836412b | /venv/bin/pip3.7 | 66e069605fcef85ea081e147c4f87dda3a43ac27 | [] | no_license | skharlamov/Data_Mining | 5dcdb0610bb3239d0905a9d93903ca4913b03f42 | 665cdc2e63efff3ee4a15c0298fe8a8e5a60cd9f | refs/heads/master | 2022-08-24T01:28:02.488132 | 2020-05-22T13:21:25 | 2020-05-22T13:21:25 | 266,114,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | 7 | #!/Users/mihailcahnin/Desktop/DataMining/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"mchakhnin@list.ru"
] | mchakhnin@list.ru |
f261f5a1db764a67ca1856010f72f2f566155c6d | 4e8fbcbbaac494618ca0a7ce8337b1375651db1c | /TriangleQuest.py | d16e7157c3410ec8e5c983e8a9ae807365d2ef47 | [] | no_license | Bsmith1997/HackerRankPython2 | 2f9516dc592fade8ff125b756a948b14c3b1e626 | c52ade3bc13eed27d114b8ff4db4cb675caebce5 | refs/heads/master | 2020-05-31T19:00:55.511890 | 2019-07-18T17:51:38 | 2019-07-18T17:51:38 | 190,448,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py |
for i in range(1,input()): #More than 2 lines will result in 0 score. Do not leave a blank line also
print i * (10**i - 1) / 9
| [
"noreply@github.com"
] | noreply@github.com |
07def9c8834cf3d3182985e4c1f845c551a78cdc | 5877a6915aa001b7b822ae34f26dae6b414ea7a2 | /django-rest-framework-user-registration/accounts/migrations/0008_profile.py | 00f228ecce74674287f4cdd0c285069dfcdab877 | [] | no_license | tushar-chaudhary/lawfacto-api | 3117ef153ae6f563354e20e8fd737315515bcc55 | dff4e869d13bf69245ed8e2cdaa2da038db827d1 | refs/heads/master | 2021-01-24T02:11:42.991101 | 2018-02-25T13:53:23 | 2018-02-25T13:53:23 | 122,840,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-02-21 18:46
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"noreply@github.com"
] | noreply@github.com |
80c576d5d209206e6331ae90eb60ec6b46958211 | 2aba3c043ce4ef934adce0f65bd589268ec443c5 | /atcoder/ABC/033/A.py | 9aec5d2d637f9b56938a2a336fe5925fe380c571 | [] | no_license | kambehmw/algorithm_python | 4f66593b77039d90515d1fcbecacdab8c811b92f | 17222399dcc92fd8f908e5774a9883e2e89c486e | refs/heads/master | 2020-06-02T12:44:11.322356 | 2020-05-18T13:22:05 | 2020-05-18T13:22:05 | 191,157,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | N = input()
if len(set(N)) == 1:
print("SAME")
else:
print("DIFFERENT") | [
"kanbe.hmw@gmail.com"
] | kanbe.hmw@gmail.com |
1a2a79c4c2018e104f9467715ad305e56df8cec2 | ad6cd0aa5d96ef7a4116ec20737a3026082b9e16 | /src/test/directory_lister_test.py | d3008e8dc00832476b28d24880a822d71170e5c7 | [
"MIT"
] | permissive | pgecsenyi/router-fs | 0a00ad9f5cb5995048aa7fe08c20ee7eaf0621b7 | 1d4f579fb3cccd022fe1ab0e61aa00693e7234c1 | refs/heads/master | 2020-04-19T06:47:26.791739 | 2019-04-15T18:21:13 | 2019-04-15T18:21:45 | 168,028,417 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | import unittest
from unittest.mock import patch
from filesystem.transformation.directory_lister import DirectoryLister
class DirectoryListerTest(unittest.TestCase):
@patch('os.walk')
def test_list_directory(self, mock_walk):
dirpath = '/home/root/doc/fruits'
expected_files = [dirpath + '/app... | [
"pgecsenyi@protonmail.com"
] | pgecsenyi@protonmail.com |
71d5adb1747bad4cca8ec9f7600b3d14e37cc9ae | 41960a07a8118cf99236972c1e94a36ef00c55c9 | /jvbhw/Lib/site-packages/pre_commit/languages/python.py | 634abe58734a922aacd2036baa2f2306690c2c32 | [
"MIT"
] | permissive | wahello/jvb | 7288f3fc8099dbbdfa5cdac86b251d4d739f4dca | c87fdf49ae040668323d1a034aa407cfe23c4a1d | refs/heads/bug/aa_ranges/chart2 | 2022-11-29T12:58:37.561674 | 2019-06-17T10:50:17 | 2019-06-17T10:50:17 | 211,479,327 | 0 | 1 | MIT | 2022-11-19T02:54:15 | 2019-09-28T09:52:28 | null | UTF-8 | Python | false | false | 2,582 | py | from __future__ import unicode_literals
import contextlib
import distutils.spawn
import os
import sys
from pre_commit.envcontext import envcontext
from pre_commit.envcontext import UNSET
from pre_commit.envcontext import Var
from pre_commit.languages import helpers
from pre_commit.util import clean_path_on_failure
fr... | [
"saumyagarg@gmail.com"
] | saumyagarg@gmail.com |
9f8d54f121a90a42448f65ab026c8618e7e70a56 | e3d10f0976db42c48b86b0431cfd25358116bee5 | /Python 3/Графический интерфейс/GUI Button/GUI_Button.py | fea1c7bb23464bbca94d08d6c15f1398486bf4dd | [] | no_license | Anton0593/Programming | a81be20ee85c8f5c4d7cd7ee677272573ae38def | eb6c200122c6e7cb8b72a9c06d804bcb7be951c3 | refs/heads/main | 2023-08-29T08:43:26.935011 | 2021-10-18T17:24:59 | 2021-10-18T17:24:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | import tkinter
from tkinter import messagebox
top = tkinter.Tk()
def helloCallBack():
messagebox.showinfo( "Hello Python", "Hello World")
B = tkinter.Button(top, text ="Hello", command = helloCallBack)
B.pack()
top.mainloop() | [
"noreply@github.com"
] | noreply@github.com |
9d129a1819c357b811f4967b18a18fa1429f1b0e | 0c4e234a0f17453d4ac0b29aed7701745b3360ed | /fairseq_master/fairseq/data/round_robin_zip_datasets.py | d8ac04651b431be1839054ed38b16174147894e5 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | nlp-team/CL_NMT | 02b9ac7bfe3aa3632aaa0356dc1dcfcfdf81c2dc | fa5a7d10d89a2ba06fff5f51307a44b897aefc42 | refs/heads/master | 2022-11-06T16:19:20.007737 | 2020-08-10T08:38:08 | 2020-08-10T08:38:08 | 286,420,530 | 2 | 1 | MIT | 2022-10-25T08:05:19 | 2020-08-10T08:34:49 | Python | UTF-8 | Python | false | false | 4,261 | py | # Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the LICENSE file in
# the root directory of this source tree. An additional grant of patent rights
# can be found in the PATENTS file in the same directory.
from collections import OrderedDic... | [
"liujianfeng@huawei.com"
] | liujianfeng@huawei.com |
f8495be34c3979a0e985bcdf780fbda82b62b9a6 | 6f18929046d4c2631f96c9689b9a2c469ccfd076 | /prediction.py | 93e8da33409714f0be392d362664251440f45200 | [] | no_license | prithvikg/mlcsProject | 86dbb01f414039442471954da54fbc637f59d59e | bc77f359332a6a2e5152da50057f9f61a9d0fffb | refs/heads/master | 2021-01-01T03:51:11.643507 | 2016-05-14T21:30:49 | 2016-05-14T21:30:49 | 57,274,970 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,604 | py |
import logging
import sys
import matplotlib.pyplot as plt
from sklearn.cross_validation import train_test_split
from sklearn.linear_model import Ridge
import time
from scipy.optimize import minimize
import pickle
import util
import collections as col
from itertools import izip, tee, islice
import pandas as pd
import ... | [
"prith5vi@gmail.com"
] | prith5vi@gmail.com |
6f61113c8e1794d040a37e220f229649e6e84527 | cae519d5e8c92ae1250b879a869a473b8b60e53e | /udp.py | 7bc2e1e39c9b43986c22919c6a1a1a15b11245d0 | [] | no_license | tanopanta/dummy-packet | dde6f3135f9e67e906cd58f6f2deee2959e655d8 | 86f5093602a2e6fb92096a636fb4587273be9494 | refs/heads/master | 2020-03-09T19:05:37.832621 | 2018-06-04T15:21:16 | 2018-06-04T15:21:16 | 128,949,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | """
send dummy packet(UDP)
"""
import socket
import time
def send(ip, port, size=1000, interval=1, times=10, index=False):
"""
send function
ip: to ip address,
port: to port address,
size: packet data length(Byte),
interval: send interval(s),
times: number of sending,
index: True => ad... | [
"rainstorm2525@gmail.com"
] | rainstorm2525@gmail.com |
8d498e582bc84115a724d04de93593ecc84f14da | 746d0d112d245bbaaba60714f5a9e1a832bf1b96 | /examples/update_data.py | 4c83172b86920ca3aa23a1e9afaece7e8d303ebf | [
"MIT"
] | permissive | pchtsp/UdacityStackFound | c41e09bdcf17e0cf466da671e7c8ff65e0db7dd9 | f017d5a8768f9260d7ede7fdcdec0d94224f350a | refs/heads/master | 2021-01-19T17:17:47.810290 | 2015-03-03T23:03:28 | 2015-03-03T23:03:28 | 31,469,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Restaurant, MenuItem
engine= create_engine('sqlite:///restaurantmenu.db')
Base.metadata.bind= engine
DBSession= sessionmaker(bind= engine)
session= DBSession()
#how to use a session:
#newEntry= ClassName(pro... | [
"pchtsp@gmail.com"
] | pchtsp@gmail.com |
a1ea1ab2fe1c8928ba2f2471965c5005a359734e | 80a443b71dccee8b92020a816d3f4127e80d2aa0 | /uslc.py | 6783f479738a43edf2f518c22d264128b9940696 | [] | no_license | tacoman/guardbook-scrapers | be42ebb3079d9f3ef9d6f02d724639f5e4faed3a | dfce7e1fee671b50a05f7c8c35eaf62ebe451c78 | refs/heads/master | 2022-05-15T06:53:44.856474 | 2022-04-30T14:20:38 | 2022-04-30T14:20:38 | 207,665,029 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,254 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.color import Color
from pymongo import MongoClient
import json
import os
import re
def atoi... | [
"Sam.L.Shrum@gmail.com"
] | Sam.L.Shrum@gmail.com |
17e23071e1107ae08f77200b82db87c0be5f516e | 925fa0208e07ac2aeb64f9201249a91f48b900fa | /LeetCode/DP/MaxProductSubarray.py | a7f24f03a8350ba8ed682a2ef192a351af047334 | [] | no_license | Sanchi02/Dojo | 984eb3cba26e43a8f6f0ef9c93f7aed24527b3ae | b25288c42a67d8639195f3fddef698f5cd179aac | refs/heads/master | 2022-03-18T02:58:27.506082 | 2022-03-13T12:11:18 | 2022-03-13T12:11:18 | 197,040,319 | 0 | 0 | null | 2019-07-15T17:14:20 | 2019-07-15T17:06:36 | null | UTF-8 | Python | false | false | 1,033 | py | # https://leetcode.com/problems/maximum-product-subarray/
# Given an integer array nums, find a contiguous non-empty subarray within the array that has the largest product, and return the product.
# The test cases are generated so that the answer will fit in a 32-bit integer.
# A subarray is a contiguous subsequence ... | [
"sanchibadkas@gmail.com"
] | sanchibadkas@gmail.com |
fd7fbe9305e8c97a1583ff8cca810219a350cbec | 2c38d196f1e0596b35249900ec1ef99ccbad599d | /migrations/versions/63ba238291cf_add_users_table.py | d2b4ce5007a2ad0ee3fac618cebf6a0416df14de | [] | no_license | matyasmihalka/Flask-potfolio-app | 556a4a16a76d6a64c6174a0f07db00bd1b24f9f8 | 2de251cea98fbe92efc80f4038abb6535e4b3eb0 | refs/heads/master | 2023-08-14T07:36:28.758374 | 2021-10-13T19:20:57 | 2021-10-13T19:20:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | """add users table
Revision ID: 63ba238291cf
Revises: 12f4511c1863
Create Date: 2021-02-15 20:36:13.034496
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '63ba238291cf'
down_revision = '12f4511c1863'
branch_labels = None
depends_on = None
def upgrade():
... | [
"odusseus.development@gmail.com"
] | odusseus.development@gmail.com |
e4a172c5bf1b0af81a283f0d632c2a671e769ddb | a58c725dc69e73c1b7809ec65f88815ac963f5b7 | /envs/__init__.py | 7ddc18d12b5a54b078ec72355da0617f06140608 | [] | no_license | HeyuanMingong/iwies | 520652869ae7fb50b6e67dff6ac09adf3c14879c | dc23dfb810e4ba366021062c66372be684536f27 | refs/heads/master | 2022-05-07T08:33:21.964359 | 2022-04-26T13:50:35 | 2022-04-26T13:50:35 | 167,362,275 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 10 15:52:14 2018
@author: qiutian
"""
from gym.envs.registration import register
# 2D Navigation
# ----------------------------------------
register(
'Navigation2D-v1',
entry_point='envs.navigation:Navigation2DEnvV1',
max_episode_steps... | [
"njuwangzhi@gmail.com"
] | njuwangzhi@gmail.com |
81f53efce9db821c16d6185fef3803fcafecd142 | c5e6f0445ecbfa128c1149393740f650f3d8102b | /1/4/4.4.1.2.py | 495af531e16321cd121f18d9985d9c6c26b38456 | [] | no_license | xyz-to/Imagetoken | 6eb4cd35a40b002f69c04820a5c8b43b91a9537e | 19d61d9c826bdfeb58eeb5523c8fd6433a5bd3ee | refs/heads/master | 2023-08-01T02:42:18.860506 | 2021-09-12T15:44:26 | 2021-09-12T15:44:26 | 405,266,390 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | """Butterworth低通滤波, 加上增强"""
import numpy as np
import matplotlib.pyplot as plt
import math
from skimage import data, color
def butterWorthPassFilter(image, d, n):
"""低通滤波处理"""
f = np.fft.fft2(image)
fshift = np.fft.fftshift(f)
rows = fshift.shape[0]
cols = fshift.shape[1]
row = rows / 2 # 中心... | [
"2282661074@qq.com"
] | 2282661074@qq.com |
130d4e939a057d3bea2c37adaaad3e76602c2b6c | 9f1ede07d5f028f324112a29f9c2dcbc387c3b13 | /session11/thief.py | a693f492577f13cccfddf04ccdf65a908667c9ff | [] | no_license | atsung1/mis3640 | 9c26d98ce1b10f9e378ebaba26fefe2cdf7c56b5 | a0e8dfb3c2c5b3456d1b6563cf8188c13acc4e8d | refs/heads/master | 2020-03-27T16:41:42.407318 | 2018-11-01T05:56:00 | 2018-11-01T05:56:00 | 146,800,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py |
"""
Four suspects; one of them is a thief. In interrogation
John said: I am not the thief.
Paul said: George is the thief.
George said: It must be Ringo.
Ringo said: George is lying.
Among them, three are telling the truth while one is lying.
Could you find out who is the thief?
"""
suspects = ['John',... | [
"atsung1@babson.edu"
] | atsung1@babson.edu |
eb9457a67d8be720ee3dc1559bdd5b10e5e23ebc | 7dd2122fa7ac6cdde50a06ae381a623fe0ff3bcd | /mytabular/runner/time_purchase_kfold.py | 84afccb553fedfd24b78b0591e1c0749df95d6d7 | [] | no_license | cfiken/mytabular | fa097f81cb437c30c3ce4f9e6d66d99fee367ddb | 15d4f0c333ea54b09fa1357645b93090aa3cdf45 | refs/heads/master | 2021-03-15T00:26:50.994698 | 2020-09-13T16:01:04 | 2020-09-13T16:01:04 | 246,807,619 | 0 | 0 | null | 2020-09-13T16:01:05 | 2020-03-12T10:35:50 | Python | UTF-8 | Python | false | false | 9,280 | py | # from typing import List
# import pandas as pd
# import numpy as np
# from sklearn.model_selection import KFold
# from sklearn.metrics import roc_auc_score
# import lightgbm
# import report
# from mytabular.runner.base import BaseRunner, Result
# from mytabular.feature.feature import (
# create_user_label,
# ... | [
"cfiken@gmail.com"
] | cfiken@gmail.com |
4dfd047c301995c55f6708521634af7a8edb0fcf | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/azurestackhci/azure-mgmt-azurestackhci/generated_samples/put_extension.py | bfff134a861b2f0791e6f673fdd6721b86ca5f88 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 2,073 | 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.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
a4523d04d79a2270fc27804ff1d7958b47125de7 | 96e38b89fa057fa0c1cf34e498b4624041dfc6e2 | /BOJ/Implementation/Python/9816.py | 08902f566b9df267a88b9d25bfa3f4149acf31de | [] | no_license | malkoG/polyglot-cp | 66059246b01766da3c359dbd16f04348d3c7ecd2 | 584763144afe40d73e72dd55f90ee1206029ca8f | refs/heads/master | 2021-11-24T13:33:49.625237 | 2019-10-06T07:42:49 | 2019-10-06T07:42:49 | 176,255,722 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | while True:
s=input()
if s=='-1':
break
print("N={}:".format(s))
if s==s[::-1]:
print("No!!")
continue
counter = 0
while True:
if s=='6174' or s=='0':
break
ss=sorted(list(s))
rs=reversed(ss)
n1=int(''.join(ss))
n2=in... | [
"rijgndqw012@gmail.com"
] | rijgndqw012@gmail.com |
ec2c08e3fe4aac19c68edf585d6c25970fbf03f1 | cac5f46f09cd87c799757a4bf792b142df91a29f | /assignment6/web_visualiztion.py | b63b3da1a11b9ab421f65bcd2f85869251552971 | [] | no_license | g0ve/IN3110 | 9d49b8110deec5f996ed9a8ea51be3226bb3139c | eef9978d268da1fbaee4707f962cbeb0c53c2702 | refs/heads/master | 2022-11-28T18:26:56.885631 | 2019-11-26T13:49:29 | 2019-11-26T13:49:29 | 286,041,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from visualize import *
from flask import Flask, render_template, url_for, request
app = Flask(__name__)
@app.route('/')
def main():
return render_template('')
| [
"patrikg@student.matnat.uio.no"
] | patrikg@student.matnat.uio.no |
2ddd9be0f036fa40215e8c8322269c3e6d45f82f | bf5a0ed265d0e9b012403202f83ba0cc91a44ed3 | /demo/migrations/0040_auto_20210609_0840.py | ece2e0d9792094391cc691ff959ccdbf590531ad | [] | no_license | peulsilva/clarissa_api | 280a5754e785bc16884cc182cd0006b592c2e22e | a727ac422751de9596d943579657d5c8b06cf98a | refs/heads/main | 2023-06-08T08:07:39.406513 | 2021-06-25T18:26:08 | 2021-06-25T18:26:08 | 373,656,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | # Generated by Django 3.2.4 on 2021-06-09 11:40
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('demo', '0039_alter_planta_name'),
]
operations = [
migrations.AddField(
model_name='planta',
name='i... | [
"peulsilva9@gmail.com"
] | peulsilva9@gmail.com |
cc52b3e3d8f14a3a38726bf19dbd85b7b8c7d351 | fc948981497ccbf47dcc8f039845ffb153a41140 | /03_Bigdata/02_Standardization_Analysis/2. Excel/2excel_introspect_workbook.py | 31e4aaaa19941801c9629ec772eb955e4db193ec | [] | no_license | jeongwoohong/iot_python2019 | 683b8d46b4035991700ae2caaee17d5db0743bd6 | 799733e845ab8eea3a6f9fa6a4c5acce66fce6f7 | refs/heads/master | 2022-03-04T17:17:15.456408 | 2019-11-08T00:10:57 | 2019-11-08T00:10:57 | 195,142,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | import sys
from xlrd import open_workbook
from xlwt import Workbook
input_file = sys.argv[1]
output_file = sys.argv[2]
output_workbook = Workbook()
output_worksheet = output_workbook.add_sheet('jan_2013_output')
with open_workbook(input_file) as workbook:
worksheet = workbook.sheet_by_name('january_2013')
fo... | [
"you@example.com"
] | you@example.com |
feecb38437132197dbacf099ac714456d66c13d2 | db584c2073e4d0594f79d620f696f73bced22d56 | /meegkit/utils/auditory.py | bc193190c8c3c847f28477dfebf81497e16b77c6 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause"
] | permissive | romquentin/python-meegkit | 5c3278304f3d97b23a4cb42df3f266b7c493ddf7 | 2f00ffba873df6b308a01923aa11dbf1eddb0433 | refs/heads/master | 2023-04-22T06:44:50.058949 | 2021-04-30T11:11:15 | 2021-04-30T11:11:15 | 346,707,540 | 0 | 0 | BSD-3-Clause | 2021-04-30T11:13:49 | 2021-03-11T13:16:13 | Python | UTF-8 | Python | false | false | 6,788 | py | """Tools for working with auditory signals."""
import numpy as np
import scipy.signal as ss
def erb_bandwidth(fc):
"""Bandwidth of an Equivalent Rectangular Bandwidth (ERB).
Parameters
----------
fc : ndarray
Center frequency, or center frequencies, of the filter.
Returns
-------
... | [
"noreply@github.com"
] | noreply@github.com |
35ebdd70b290507dd6e029bb470ffb95b3fe1609 | 6c0a13ba5c90f29009dc0046fee5495ea2d1d8bb | /Assignment 7.5/cart/urls.py | 20c0219d9ac89f0f2cd43714f50ef93171bb78f1 | [] | no_license | Giorgiemar/Assignment-7.5 | 315f90babfdad5e0f20b5620348696b1e12587b1 | 48cad844d3c14a94891eba064d5d73f5fd25cf00 | refs/heads/main | 2023-01-18T17:35:39.112530 | 2020-11-15T00:17:03 | 2020-11-15T00:17:03 | 312,926,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | from django.urls import path
from . import views
app_name = 'cart'
urlpatterns = [
path('', views.cart_detail, name='cart_detail'),
path('add/<int:product_id>/', views.cart_add, name='cart_add'),
path('remove/<int:product_id>/', views.cart_remove,
name='cart_... | [
"noreply@github.com"
] | noreply@github.com |
3222a59c30fe7f9fc231fc5f7b6660c8f20228f1 | 034f1eaae2c84659096f68c03c323eafc763da55 | /venv/Scripts/pip3-script.py | c67978e2ee032a57145952d4e8851a3ed5ef4258 | [] | no_license | Luke-set/djangohf | cd90012de953683fc13bc9df1b5fbe0e834d41d4 | fa49a6bd35f9d720cd292f6b7316573553e1f6e7 | refs/heads/master | 2020-09-19T03:32:13.082948 | 2019-11-26T13:20:41 | 2019-11-26T13:20:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | #!D:\djangohf\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
l... | [
"13152301087@163.com"
] | 13152301087@163.com |
a2e1f941dc9b95bda6d24830e3ff6c5fcbd4db85 | 2219a083f5cd8d387c38a16c0b9886af76324c57 | /cv2/test.py | 373901c89808c37d02fab4a00984190f30552d57 | [] | no_license | leadkj/rasp | bd43914c126d106992ba6f98e77593e8de57f804 | edeff49a3f08b77d8467845ecbd37e1819026027 | refs/heads/master | 2020-06-26T23:14:44.091051 | 2019-11-29T02:08:48 | 2019-11-29T02:08:48 | 199,783,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py | #coding:utf-8
import cv2
import numpy as np
from matplotlib import pyplot
#最简单的以huidu直方图作为相似比较的实现
def classify_gray_hist(image1,image2,size = (256,256)):
#先调整大小
image1 = cv2.resize(image1,size)
# cv2.imshow("im1",image1)
image2 = cv2.resize(image2,size)
# cv2.imshow("im2",image2)
hist1 = cv2.c... | [
"wjx010107@163.com"
] | wjx010107@163.com |
c9e40167565b06b7278440ba15f8c57c606277f2 | c65d512975feed7dfe74f1117cdd1337293d9d60 | /python/my_py_notes_万物皆对象/db_and_数据持久化/sqlite3/hm_cards/cards_main.py | d1dfa4992d1e534df7edb53c99e41041e76f22ad | [] | no_license | Rockyzsu/StudyRepo | e5c6420e325917c2df7dc51d606be5fa3c2ee1b8 | 385785c09bebb56df156fd149a088043f38d0aab | refs/heads/master | 2022-12-09T13:45:38.332899 | 2020-09-15T09:56:09 | 2020-09-15T09:56:09 | 295,388,871 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | # 处理app的主要业务逻辑
# coding: utf-8
import os
import cards_utils
def init_menu():
while True:
print('欢迎使用<名片系统> v0.1beta'.center(35, '*'))
print('1.新建名片'.center(35, ' '))
print('2.显示全部'.center(35, ' '))
print('3.查询名片'.center(35, ' '))
print('4.删除名片'.center(35, ' '))
prin... | [
"jinweizsu@gmail.com"
] | jinweizsu@gmail.com |
df96841e31aa8bf22d0f716ebf9aeaba8d969f1e | 9beaf67df5185014c4dfeff183d3f22fe968a128 | /UI/__init__.py | 4f9d1ce0b795b557f4348b2b8bde7a3de5c38c55 | [
"Apache-2.0"
] | permissive | amentis/Rexi | 3017ebb3270e837126dec01afcbbf893449bec25 | d83401df95838d357d7371bc0d6639caba9febd9 | refs/heads/master | 2021-01-25T04:02:37.105401 | 2014-10-28T14:20:54 | 2014-10-28T14:20:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | __author__ = 'amentis'
"""
User interfaces
"""
__all__ = ['Login', 'Console']
from UI import Console
from UI import Login | [
"ivan.g.bratoev@gmail.com"
] | ivan.g.bratoev@gmail.com |
b1b1f54391b2a5f8200c801c360e8755e1ea223b | c5d79eb6acb52f37e36db863c59a8b35a29c315e | /02_python分支/hm_05_偶数sum.py | a840f59a99db8abe79e51378cbd2c5aecaed044f | [] | no_license | taurusyuan/python | 1bef863572f06d25dce97a1541d84b3bec9965a4 | 248b7dc3d15a4ab9dbbb9c8c26d126bcc3073269 | refs/heads/master | 2020-04-17T00:14:06.473725 | 2019-04-25T08:49:55 | 2019-04-25T08:49:55 | 166,042,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | i = 0
s = 0
while i <= 100:
s += i
i += 2
print("1-100之间的偶数数字求和为%d" % s)
| [
"linyuanjie514@gmail.com"
] | linyuanjie514@gmail.com |
880a2df2d3d1755a6ff36d820d80fb38e477f1db | a4ef1b6881d6d325127bebcab5d7813c6ee380e1 | /main.py | 22abc607c62cdc0fb73c4e89334440f46878514d | [] | no_license | ZhangShanxiu/ControlSystem | 9d0c0621af954bf8e3c242098387c7cc57cff459 | 749c4ea2349db265e2e32368bdd0850e5a9a0aad | refs/heads/master | 2023-06-05T19:51:39.540342 | 2021-06-29T14:22:45 | 2021-06-29T14:22:45 | 381,382,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,756 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2021/5/29 11:58
# @Author : Zhang Shanxiu
import sys
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5 import uic
from camera import Camera
from graph import Graph
from picture import Picture
import numpy as np
from ... | [
"sx.zhang1@siat.ac.cn"
] | sx.zhang1@siat.ac.cn |
df502f19fac96b409412e8704e0bf66beb9018a3 | 8a2f24bfcee9830f09dc67f7c86d26d7b9952358 | /challengeone.py | 5675b0c91ea67a3819ff53fe34c9e6151721eed6 | [] | no_license | 7737709/cn-python | c508d5da56f053ee9e96f431947df5cb41ba9ecf | a011a495243ac445362e771e35dad2b00136671b | refs/heads/master | 2020-12-19T18:07:37.472059 | 2020-01-23T14:27:16 | 2020-01-23T14:27:16 | 235,810,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | time = 1645
place_of_work = "highview"
town_of_home = "manchester"
travel = "commuting"
if time > 1830:
print ("I am in {}".format(town_of_home))
elif time > 1800:
print ("I am {}".format(travel))
elif time > 900:
print ("I am at {}".format(place_of_work))
elif time > 800:
print (... | [
"noreply@github.com"
] | noreply@github.com |
8a35a52ab3a5fd8a1fb31950f70ae0225c8b86a7 | b2dafed279db93561417fe3464b00f51df4c719e | /controls/messagebox.py | c56dbaf9f42084df712c8899f4f7f871f52a174d | [] | no_license | andatogua/FaceMaskDetect | ce58abff7fc4d69b4a1f0d2ff1eceb56292f9569 | 389d38cb6d1437d0be46cd08e77ba8a764cabae5 | refs/heads/main | 2023-07-27T16:34:37.352026 | 2021-08-26T15:45:21 | 2021-08-26T15:45:21 | 337,914,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | from PyQt5 import uic
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
class TimerMessageBox(QMessageBox):
def __init__(self, timeout=3, parent=None):
super(TimerMessageBox, self).__init__(parent)
self.setWindowTitle("Atención..!!")
self.setIcon(QMessageBox... | [
"andres.tomalaguaranda@upse.edu.ec"
] | andres.tomalaguaranda@upse.edu.ec |
8c5d509625b213b8ae113801a56e30bd42d42b30 | 3eaf86664b015014cfa4543a63e2c09a8986b40a | /play/demo.py | 6301c18728c3ce65a3404de2304d14f099c285fc | [] | no_license | MoravianCollege/BlockedTrafficVisualization | 97c4803500e6a81f9a2a5c2ef1a67aeda64b3328 | 709ad05214edda3b5ca55904f5c0dee4894a046e | refs/heads/master | 2021-01-25T04:26:44.637719 | 2018-11-27T17:50:52 | 2018-11-27T17:50:52 | 93,440,599 | 0 | 4 | null | 2018-11-26T18:31:12 | 2017-06-05T19:49:41 | Python | UTF-8 | Python | false | false | 1,109 | py | from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
from matplotlib import animation
import numpy as np
fig = plt.figure()
m = Basemap(projection='merc',llcrnrlat=-60,urcrnrlat=70,\
llcrnrlon=-180,urcrnrlon=180,resolution='c')
m.drawcoastlines()
bethlehem_lat, bethlehem_lon = 40.6552... | [
"colemanb@moravian.edu"
] | colemanb@moravian.edu |
89384c946bc98181b410bdbd2524b8ff13b12143 | 40af81296e8f07788f8b613643a62ae23b2063d6 | /hw0_release/.env/share/doc/networkx-2.0/examples/graph/words.py | 065a96678d591b179a1ffc957c0f82e9c26c53ad | [
"BSD-3-Clause",
"MIT"
] | permissive | ChienyehLin/Computer_Vision_CS131 | 97b6c89d86b747deb80b2d643bdb66f6f5432a4a | de23015ac08a899adfd03ff28485c7b6a74d4d1e | refs/heads/master | 2022-11-28T08:49:06.345587 | 2020-02-28T07:29:54 | 2020-02-28T07:29:54 | 228,156,278 | 3 | 0 | NOASSERTION | 2022-11-22T02:10:30 | 2019-12-15T09:01:31 | Python | UTF-8 | Python | false | false | 2,816 | py | """
=====
Words
=====
Words/Ladder Graph
------------------
Generate an undirected graph over the 5757 5-letter words in the
datafile `words_dat.txt.gz`. Two words are connected by an edge
if they differ in one letter, resulting in 14,135 edges. This example
is described in Section 1.1 in Knuth's book (see [1]_ and ... | [
"linchienyeh_jaden@outlook.com"
] | linchienyeh_jaden@outlook.com |
821885c333f39e248c3b4d48680946323bb48106 | 0fb3b73f8e6bb9e931afe4dcfd5cdf4ba888d664 | /myapi/fullfeblog/webdev/urls.py | 975db698ce1d8db571ad43d6fed54ff0e576c3a5 | [] | no_license | mrpal39/ev_code | 6c56b1a4412503604260b3346a04ef53a2ba8bf2 | ffa0cf482fa8604b2121957b7b1d68ba63b89522 | refs/heads/master | 2023-03-24T03:43:56.778039 | 2021-03-08T17:48:39 | 2021-03-08T17:48:39 | 345,743,264 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | from django.contrib import admin
from django.urls import path,include
from django.conf import settings
from django.conf.urls.static import static
from django.contrib.sitemaps.views import sitemap
from blog.sitemaps import PostSitemap
from django.conf.urls import url, include
# from .. import core
sitemaps={
'posts'... | [
"rp9545416@gmail.com"
] | rp9545416@gmail.com |
b0a123cf6c2621279d5a96f58ca86274001fbb83 | 2d4380518d9c591b6b6c09ea51e28a34381fc80c | /CIM16/CDPSM/Geographical/IEC61970/Wires/LoadBreakSwitch.py | f2ffb57bbe01797bc0ff4c7e1a391185331dd6af | [
"MIT"
] | permissive | fran-jo/PyCIM | 355e36ae14d1b64b01e752c5acd5395bf88cd949 | de942633d966bdf2bd76d680ecb20517fc873281 | refs/heads/master | 2021-01-20T03:00:41.186556 | 2017-09-19T14:15:33 | 2017-09-19T14:15:33 | 89,480,767 | 0 | 1 | null | 2017-04-26T12:57:44 | 2017-04-26T12:57:44 | null | UTF-8 | Python | false | false | 1,653 | py | # Copyright (C) 2010-2011 Richard Lincoln
#
# 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, including without limitation the
# rights to use, copy, modify, merge, publish... | [
"fran_jo@hotmail.com"
] | fran_jo@hotmail.com |
5c7920e431a13e5debf7f18977506ff67a0dc341 | 68ffa85cb6bd8974ef9b12279419d25e415eaae0 | /IntroductionBigData/lab3/lab3_text_analysis_and_entity_resolution_student.py | c64835c9fc34094c34fe83a3bd6a7b69139908c0 | [] | no_license | jesuisnicolasdavid/Spark | 0a0e0df44a8d586c96be91e01d04f550e15dc0a7 | 429c17403ed20b1b1e55bf7dc0aa22d8a2532563 | refs/heads/master | 2021-01-10T09:04:08.733219 | 2015-11-25T17:24:57 | 2015-11-25T17:24:57 | 46,879,249 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63,661 | py |
# coding: utf-8
# # version 1.0.3
# # + 
# # **Text Analysis and Entity Resolution**
# ####Entity resolution is a common, yet di... | [
"jesuisnicolasdavid@gmail.com"
] | jesuisnicolasdavid@gmail.com |
9216cdb40ef5e1eb0ed05d01e645f8aa233560ae | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/recovery/reconcilenode.py | f4bbdb7e9340f5a7a571edb9da7bfda459899c5c | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,756 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
a31c2e5de3c9406acd2f191929fa9a8d36a71c77 | 8a9de0c3692e82286815dc28c48a9a03cb4a9f15 | /ProjectEuler/050-100/59.py | 8430cbf3dfb631ee2bf5d118b3ce13ebadf6fc17 | [] | no_license | antoshkaplus/CompetitiveProgramming | 49f6660fa5fdb6e41764e2989f7e10b5b03dda36 | fccbf0e5c1dc64c68edc1ba14cfb177cff473c47 | refs/heads/master | 2023-06-09T01:22:42.220841 | 2023-06-06T02:27:39 | 2023-06-06T02:27:39 | 24,638,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,016 | py | """
Each character on a computer is assigned a unique code and the preferred standard
is ASCII (American Standard Code for Information Interchange). For example,
uppercase A = 65, asterisk (*) = 42, and lowercase k = 107.
A modern encryption method is to take a text file, convert the bytes to ASCII,
then XOR each b... | [
"antoshkaplus@gmail.com"
] | antoshkaplus@gmail.com |
b3337f038c0d0beab33e9d4d79a6151c08668cc0 | f47a1c59fb69e2005c6e87db254b156f2b49ad65 | /trajan/core/urls.py | 79f7c2ecaa96f671a939cb277bbeb7635c6e2a5b | [] | no_license | wd5/trajan | ac1206345bd359b01aa8312641ed5f545d844dc3 | cd7b48c38c31cf63dabf19cee3d76cd6c09d887d | HEAD | 2016-09-10T03:25:50.199591 | 2012-12-26T19:39:49 | 2012-12-26T19:39:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | from django.conf.urls.defaults import patterns, include, url
from trajan.core.api import PageResource
from tastypie.api import Api
from django.views.generic.simple import direct_to_template
v1_api = Api(api_name='v1')
v1_api.register(PageResource())
urlpatterns = patterns('',
url(r'^$', direct_to_template, {'templat... | [
"dstegelman@gmail.com"
] | dstegelman@gmail.com |
8993e224fbae79032ccd18aebf3257469ecf128d | a0ad7e4681843eb019f9efd19966755e27219c21 | /venv/bin/pilfont.py | 88251a21696ba959254c675c7987ef0a0db182be | [] | no_license | gxicxigouxa/OpenstackCloudStorage | a764f18f55b032a9f55fc67be908f7f97393106d | b8a07930e6f3df8387e93b5e60a96a0b58fd7d3e | refs/heads/master | 2020-12-02T08:09:57.019011 | 2017-10-13T11:22:47 | 2017-10-13T11:22:47 | 96,776,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | #!/home/gxicxigouxa/myproject/venv/bin/python3.6
#
# The Python Imaging Library
# $Id$
#
# PIL raster font compiler
#
# history:
# 1997-08-25 fl created
# 2002-03-10 fl use "from PIL import"
#
from __future__ import print_function
import glob
import sys
# drivers
from PIL import BdfFontFile
from PIL import PcfFo... | [
"gxicxigouxa@localhost.localdomain"
] | gxicxigouxa@localhost.localdomain |
dc9dd1df5858514655630a90085c7ea503acbf26 | a29d7e30cac41aaa120455933d848e7ea00f7b14 | /Read_Predict_mnist.py | 68d04d2692b3292bcf9750661265a2c3c2d3c228 | [] | no_license | AlanXia0118/MNIST_DIY | ef3be5ede9dc99a20974f23a7b2856b08c8b6fe0 | cd1ddcb6c1d8a084e490696b43d88e5c73da0198 | refs/heads/master | 2021-04-15T17:41:35.120082 | 2018-03-27T15:30:40 | 2018-03-27T15:30:40 | 126,859,271 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | import cnn_mnist as cnn
import cv2
import tensorflow as tf
import numpy as np
# Input the path of target picture
img_path = input('Input the path of your image please:\n')
img = cv2.imread(img_path, 0)
size = (28, 28)
shrink = cv2.resize(img, size, interpolation=cv2.INTER_AREA)
ret, th1 = cv2.threshold(shrink, 150, 2... | [
"noreply@github.com"
] | noreply@github.com |
1279a0cef6482bd7c047fe05ad3f1b488ed3388f | 6ceea2578be0cbc1543be3649d0ad01dd55072aa | /src/fipy/meshes/pyMesh/grid2D.py | 193a3d348a7be54653662f81bb8ef78cfb142fc6 | [
"LicenseRef-scancode-public-domain"
] | permissive | regmi/fipy | 57972add2cc8e6c04fda09ff2faca9a2c45ad19d | eb4aacf5a8e35cdb0e41beb0d79a93e7c8aacbad | refs/heads/master | 2020-04-27T13:51:45.095692 | 2010-04-09T07:32:42 | 2010-04-09T07:32:42 | 602,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,607 | py | #!/usr/bin/env python
## -*-Pyth-*-
# ###################################################################
# FiPy - Python-based finite volume PDE solver
#
# FILE: "grid2D.py"
#
# Author: Jonathan Guyer <guyer@nist.gov>
# Author: Daniel Wheeler <daniel.wheeler@nist.gov>
# Author: James Warren <jwarren@n... | [
"regmisk@gmail.com"
] | regmisk@gmail.com |
ed05bc18d7adf3c153ad434d317b3b0cd24cf240 | 8831987f10e4931c0f9835f3b31a4a1abdfaa010 | /treeCreator.py | 5c851f45387e059e17ab8527fc1760c575d301c0 | [] | no_license | COUNTERKILL/DBMSC | bea0c3ca9427809dc17065f4420d5bf0ac09d7e7 | 7e6f0a014e3cac54c15d757278225692155265c1 | refs/heads/master | 2020-12-24T18:55:50.018881 | 2016-05-26T09:37:26 | 2016-05-26T09:37:26 | 58,801,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | #!/usr/bin/python
print '<?xml version="1.0" encoding="utf-8"?>'
print '<!DOCTYPE node SYSTEM "DCHinput.dtd">'
print '<!--Database Multiprocessor Markup Language (DMML)-->'
print '<DCH-Tree name="NODES">'
print '<node id="99999" parentId="0" devType="S" weight="1342"/>'
for i in range(0, 15):
print '<node id="' + str... | [
"COUNTERKILL@inbox.ru"
] | COUNTERKILL@inbox.ru |
b2243c835b70774e98af5df9721c5b25d3714aa0 | a458263a375a9825734628dd5c5c0ff5ebcb90d9 | /code(for developers)/commands.py | b88ad9b001afe04022a48f161c21a5448fbe5978 | [] | no_license | fcklklfc/engtrain | 40a899f58e2f34450eae9211590a362865528fb1 | cd51902b299cee2ce97fbef7e0e5e6a035db4c56 | refs/heads/master | 2020-06-06T14:27:17.144864 | 2019-06-21T12:44:59 | 2019-06-21T12:44:59 | 192,763,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | import functions
commands_list = {
'move':'moves word to the oldwords and removes it from newwords',
'remove':'removes word from newwords',
'show':'shows all words from newwords',
'exit':'exit',
'add':'adds a words to the list',
'train':'runs a training game',
'help':'shows a list of commands'
}
def command... | [
"fcklklfc@gmail.com"
] | fcklklfc@gmail.com |
ee13bae0a2856bbe83667b47a495f87d833616f9 | f93bd699df6c133696b32c77d3fd0cfd6e1c3241 | /account/views.py | b46513fdfc95312d5ae3699f994a15024a074580 | [] | no_license | lukdro/URLCutter | 4ebe557099c6370c7102c6ef6bb9ec1d371c2988 | c73500b04103ac2722f9973dc8d80be9935c7e5a | refs/heads/master | 2023-02-04T09:35:06.813801 | 2020-12-29T15:04:38 | 2020-12-29T15:04:38 | 325,314,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,974 | py | from django.shortcuts import render, HttpResponseRedirect
from django.contrib.auth import logout, login, authenticate, get_user_model
from django.contrib import messages
from .forms import LoginForm
def login_view(request):
if request.method == 'POST':
form = LoginForm(request.POST or None)
... | [
"lordlukasz433@gmail.com"
] | lordlukasz433@gmail.com |
89ab992187e60be88d01bfba397b4ee8c1480ade | 5574e2d1320a49ccc63ab5e1fe22a7452b9f350f | /snake.py | 2800f8760b2392861431f79ac6e46347c1796e26 | [] | no_license | masiunnisa/snake_game | f752851ff7ed91a3dfa89dc374d7caa2eb0d8c77 | 5e5e2d4646a057e2549541103d23934bd1d99b13 | refs/heads/master | 2023-05-31T08:32:25.883874 | 2021-06-29T11:06:40 | 2021-06-29T11:06:40 | 381,335,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | from turtle import Turtle
STARTING_POSITIONS = [(0, 0), (-20, 0), (-40, 0)]
MOVE_DISTANCE = 20
UP = 90
DOWN = 270
LEFT = 180
RIGHT = 0
class Snake:
def __init__(self):
self.segments = []
self.create_snake()
self.head = self.segments[0]
def create_snake(self):
for position in ... | [
"masiunnisa.13@gmail.com"
] | masiunnisa.13@gmail.com |
1ed41d7140f4b9cced03e4023891bfa08b9c9fe4 | 065d632ea4ccfacf44006d61f5fba8a203ec4396 | /main.py | 6c7cae4c72dcc2739351a2a0f1e2acb52691cb71 | [] | no_license | aafaaq/Machine_learning_CCTV_cameras | df20df18637e85f22aaa2ae0699e01e573fa90ad | 5c4b25175d4a71a9a929c6da4d56494b8b164d8d | refs/heads/master | 2022-12-24T21:15:21.944770 | 2020-09-30T16:09:55 | 2020-09-30T16:09:55 | 273,332,376 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | import setup
import get_frame
import cv2
import ml_model
if __name__ == '__main__':
# getting name,password,ip,camera number from user
info = setup.list_maker()
while True:
# getting frame from cv2 video capture function using rtsp protocol
stream_frame = get_frame.get_frame(info)
#... | [
"39995591+aafaaq@users.noreply.github.com"
] | 39995591+aafaaq@users.noreply.github.com |
01042166fe451d5c75ebc88522d486384b1a75b5 | 4c9739b0742b57084bb33328ea52ea1e39f40ed9 | /Imagefilter.py | a7974672ca32ffe33f4993f30681ec1204dbd6cb | [] | no_license | Sonalphulwani66/Image_Filter_Python | 6f20db7b457139f622bce2cb615a9b2ff73f8f19 | 4dd4bd5bd45bd4f51b010c867cd2f25db43bb0ca | refs/heads/master | 2022-07-20T06:33:47.274366 | 2020-05-23T14:25:00 | 2020-05-23T14:25:00 | 266,095,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,114 | py | from PIL import Image
path = input("please provide path to image") or 'child.jpg'
img = Image.open(path).convert("RGB")
width,height = img.size
pixels = img.load()
def red(r,g,b):
newr = r
newg = 0
newb = 0
return (newr,newg,newb)
def darkpink(r,g,b):
newr = g
newg = b
... | [
"noreply@github.com"
] | noreply@github.com |
afc4371f818665f0cfbd65626b38b6969124a5db | 4ee6be3783ee1ed35411f5d72eb3cc10de8914f0 | /src/sanitizers/__init__.py | 1bd94efa1bb3d770b7e5ae08d6a2476a01f65a3f | [
"MIT"
] | permissive | Joffreybvn/alan-dashboard | e6e541106552e4c40108c9985498a0185ba29646 | f9d0a5b33249358a25ce23477910ed1270da6cc8 | refs/heads/master | 2023-03-15T21:24:02.046741 | 2021-03-04T09:24:42 | 2021-03-04T09:24:42 | 344,099,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py |
from .settings_login import SettingsLoginRequest
from .settings_update import SettingsUpdateRequest
| [
"joffreybvn@gmail.com"
] | joffreybvn@gmail.com |
fcb4615ea3d1c2f22d029cad3e4f73a185db48ae | 3152fd9ec9ccd83b6e0d2ea40aa36a4b145aea2e | /temp/test_打印正方形.py | 69d148e2251622402e2f8c77af081ab51a935b17 | [] | no_license | derekduan1028/hm_python | cf1b6037ac1cde8dcac393453a291c39b5a936c2 | ae79f817a55d1b3bfdbdf1b50d5147946c8b7401 | refs/heads/master | 2023-01-21T00:33:00.927709 | 2020-11-27T00:00:35 | 2020-11-27T00:00:35 | 291,869,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | #!/usr/bin/python
# coding:utf-8
"""
@author:derek
@contract:derek_duan@sina.com
@file: test_打印正方形.py
@time: 11/18/20 4:45 PM
"""
def print_lines(str1, str2, wide):
print(str1, end=" ")
for i in range(wide):
print(str2, end=" ")
print(str1, end=" ")
for i in range(wide):
print(str2,... | [
"derek@Derek-Mbp"
] | derek@Derek-Mbp |
ae78afbd5d7364b1b0f03645d1d1d6ca47cd0ec9 | d6716aade568d34adc4152aa83be2b19df30b58f | /yt_pb71_cs/str_repr_diff.py | ee2311e00ec53b10a27d2e89e63b07b6c7c48594 | [] | no_license | salma-shaik/python-projects | a47e7ba79284b6ae9d3cf9489f1d21c12d573ce5 | ba0234844e1ad938271486ec8c0aac0954326ad5 | refs/heads/master | 2021-01-19T22:46:46.433144 | 2018-09-03T19:43:42 | 2018-09-03T19:43:42 | 88,865,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py |
# The goal of __repr__ is to be unambiguous
# The goal of __str__ is to be readable
# a = [1, 2, 3, 4]
# b = 'sample string'
#
# print(str(a))
# print(repr(a))
#
# print(str(b))
# print(repr(b))
import datetime
import pytz
a = datetime.datetime.utcnow().replace(tzinfo=pytz.UTC)
b = str(a)
print('str(a): {}'.format(... | [
"salmashaik1611@gmail.com"
] | salmashaik1611@gmail.com |
f805830a20c2ba67d1a4bd9b2b0a978cc9522401 | 8f736b5cc28cc1d46506abf1b001eb41cc1f9423 | /apps/users/signals.py | 77ba064c53a024e746d0ffa4db5b81f43702a965 | [] | no_license | tang1323/MxShop | 6ac68502f59ae07b483b6145e1b557399192e3dd | 831b5bdd8abdf7d6e547b0bd3fff9341261e4afa | refs/heads/master | 2023-04-04T07:09:32.759476 | 2021-04-14T14:36:00 | 2021-04-14T14:36:00 | 357,937,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | from django.db.models.signals import post_save
from django.dispatch import receiver
from rest_framework.authtoken.models import Token
from django.contrib.auth import get_user_model
# 返回此项目的用户模型(model),这是内置的
User = get_user_model()
# 这是一个装饰器,而sender就是接收哪个models传递过来的
@receiver(post_save, sender=User)
def create_auth_t... | [
"1171242903@qq.com"
] | 1171242903@qq.com |
a2c4e00cc9893aec31293d0c7f869e7464ff291c | a6e0327fbb77f52cd690ca999724530bd2c3678b | /migrations/versions/b37be0a205d4_added_user_table.py | 3147d1f128e83bf5955c638bd2b8a2b5e1c6d3eb | [] | no_license | encode/hostedapi | 467cb92cc88ff80fe078126402feb564ca557cff | af5944b1d598842314a6480a37a3491c5f8d3d7a | refs/heads/master | 2023-05-31T07:08:17.006831 | 2020-02-13T11:05:31 | 2020-02-13T11:05:31 | 212,104,393 | 96 | 11 | null | 2023-03-21T22:32:15 | 2019-10-01T13:33:55 | Python | UTF-8 | Python | false | false | 1,788 | py | """Added user table
Revision ID: b37be0a205d4
Revises: c609270e720d
Create Date: 2019-11-13 16:41:18.112039
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b37be0a205d4'
down_revision = 'c609270e720d'
branch_labels = None
depends_on = None
def upgrade():
... | [
"noreply@github.com"
] | noreply@github.com |
d323193a129f5452ec5e5ffd404febc317d0d738 | a285ba15c4cbec0e5b72381e539d50aafb888b05 | /test/test_ballquerry.py | 949b7b986b1e67b9b36bdf8742df8a4bc1df0b1f | [
"MIT"
] | permissive | humanpose1/torch-points | 43cc50c9e22a9d180449a4ba66ab68dc1f5d7839 | ebac5f9c690870f099d77e470ac10326e8858152 | refs/heads/master | 2020-12-06T05:35:39.175337 | 2020-01-05T20:24:51 | 2020-01-05T20:24:51 | 232,361,628 | 0 | 0 | MIT | 2020-01-07T16:01:59 | 2020-01-07T16:01:58 | null | UTF-8 | Python | false | false | 474 | py | import unittest
import torch
from torch_points import ball_query
import numpy.testing as npt
import numpy as np
class TestBall(unittest.TestCase):
def test_simple(self):
a = torch.tensor([[[0, 0, 0], [1, 0, 0], [2, 0, 0]]]).to(torch.float).cuda()
b = torch.tensor([[[0, 0, 0]]]).to(torch.float).cud... | [
"nicolas.chaulet@gmail.com"
] | nicolas.chaulet@gmail.com |
1d9c950d2875c17dc783d82bfa5876cc154de3d9 | 15871c25ffb92b222889bcfb1c995c94e4cfb2d7 | /page/page_home.py | 1127e23a7e5d103b54c0e2b37783dc8d8e9e79e6 | [] | no_license | xiaoyufu411/baidu_demo004 | 60c105c1789e766dd410164a1e1815d51279e727 | 093939f79246af539b14e62ca1adef18d54ff512 | refs/heads/master | 2020-07-23T15:16:09.667111 | 2019-09-10T16:37:48 | 2019-09-10T16:37:48 | 207,608,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | from selenium.webdriver.common.by import By
from base.base_action import BaseAction
class PageHome(BaseAction):
search_file_text = By.ID, "kw"
search_button = By.ID, "su"
def input_search(self, text):
self.input(self.search_file_text, text)
def click_search(self):
sel... | [
"meiyufu88@163.com"
] | meiyufu88@163.com |
01e446a609db0526090f5b1995e14dd418a820e1 | 1a5851851bce81510d7bf29247f44d9991fbdcf1 | /src/tests/conftest.py | 28d679c9669a5b34a67cef76bd74f7979f0c56e4 | [] | no_license | halexx7/flask_restx_sample_todoapp | 984d4e3471b9e07451834dfc272b7b8f741bfdc4 | d7b8debd1ccdb2a38c625f2253f201864dc9a4e9 | refs/heads/master | 2023-01-29T14:56:46.130342 | 2020-12-15T06:19:38 | 2020-12-15T06:19:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | import pytest
import boto3
from moto import mock_dynamodb2
from ..app.model import TodoDAO
@pytest.fixture
def TodoDAOMock():
with mock_dynamodb2():
conn = boto3.resource('dynamodb')
conn.create_table(
TableName="Todos",
KeySchema=[{'AttributeName': 'id', 'KeyType': 'HASH'... | [
"st6502st@gmail.com"
] | st6502st@gmail.com |
f7bd26ea793722fe091a402dffc96ba3891fd5bc | 7dfd0a99a0546c947c0b23b277fe76f499ad3d70 | /mywebsite/blogapp/migrations/0003_auto_20210120_2043.py | 5d783a2769dc562a5c4262c47d2ac692f2e3ffe8 | [] | no_license | ignaciodiazb/myblog | 49055303aff1faa3536bbdc7cb59043877b5f608 | 4afe2d0816586bace86a2f93a06f0e4d496e30eb | refs/heads/master | 2023-08-09T15:30:12.636097 | 2021-01-28T00:39:04 | 2021-01-28T00:39:04 | 331,166,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | # Generated by Django 3.1.5 on 2021-01-20 23:43
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('blogapp', '0002_post_title_tag'),
]
operations = [
migrations.AddField(
model_name='post',
... | [
"ignaciodiazbarraza@gmail.com"
] | ignaciodiazbarraza@gmail.com |
06dca00fa6a330d2a68438a2972b67d9f16a64a1 | 426521e1689f70732222efd5f98675014e361964 | /youtube_dl/extractor/afreecatv.py | 518c61f67eb0befa0ce59fb393d10d8ebd4dcc03 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain",
"Unlicense"
] | permissive | DalavanCloud/youtube-dl | 8b6f34e8e8dc296df6ee7c12fdf91688092f2df7 | c8f45f763cac3c0d0e4ca35ba072d8d321957e85 | refs/heads/master | 2020-04-13T06:36:38.023940 | 2016-09-27T16:03:00 | 2016-09-27T16:03:00 | 163,026,015 | 1 | 0 | Unlicense | 2018-12-24T22:04:42 | 2018-12-24T22:04:42 | null | UTF-8 | Python | false | false | 4,991 | py | # coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import (
compat_urllib_parse_urlparse,
compat_urlparse,
)
from ..utils import (
ExtractorError,
int_or_none,
xpath_element,
xpath_text,
)
class AfreecaTVIE(InfoExtractor):
IE... | [
"peter@pmrowla.com"
] | peter@pmrowla.com |
88e07364d82188f3d72bd929b38d3ef1008e5d7c | 8b39393897cd4cdf47d6520607aac094ec535779 | /workflows/tests/cosmo/celery.py | 635c70b01d5db27cf9013967a775b89b3b12fea8 | [] | no_license | yishaibeeri/cosmo-manager | d4debde3ff20e82b70514aea6991c7fd036f6bf3 | 9bc2b80cc360098939d6a6efe726d5df59f6982a | refs/heads/master | 2021-01-21T18:21:29.711024 | 2014-01-13T09:13:37 | 2014-01-13T09:13:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | ########
# Copyright (c) 2013 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | [
"idan@gigaspaces.com"
] | idan@gigaspaces.com |
d29ea6a4b70b18045596cac5be897f10e1022dac | 6203410b2039449f530a4f9b9b3066a90de0d376 | /Shoppingmall/sellers/admin.py | a5e9ecbd4a8539cee9528cf44d4ee0032f46ff17 | [] | no_license | kwhyo/JM_shop | 4957e59c0113720f8238e6eb54f8fdcf077cbe91 | 1302f080cd7d90a4aeca4bfd5ef6bab11db90036 | refs/heads/main | 2023-02-03T14:17:35.297632 | 2020-12-17T16:38:30 | 2020-12-17T16:38:30 | 310,212,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | from django.contrib import admin
from .models import * # 같은 경로의 models.py에서 User라는 클래스를 임포트한다.
# Register your models here.
# admin DB에 데이터 등록
admin.site.register(Seller)
admin.site.register(Item)
admin.site.register(Category)
@admin.register(Notice)
class NoticeAdmin(admin.ModelAdmin):
list_display = ('id', 'ti... | [
"rkgmlgygml@naver.com"
] | rkgmlgygml@naver.com |
89c9367e5ce5ce182588895802faeb0ed40cd067 | 7d94d8b98302fce2ae78e97c1c14705132d61e9c | /plugins/treksum/treksum.py | 08048660e025b701c2085fddb1916ec9002543f7 | [] | no_license | ewe2/homero | f739455f0f815f834c110a8202ec246d864a50ff | e0d08a635bf44178c946217b6c1773d9f6a0a8c2 | refs/heads/master | 2021-01-15T13:19:48.967978 | 2014-08-30T11:52:11 | 2014-08-30T11:52:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,136 | py | #!/usr/bin/env python
import pickle
import random
import os
import argparse
# Got rid of lines = None up here....
_ROOT = os.path.abspath(os.path.dirname(__file__))
def get_data(path):
return os.path.join(_ROOT, 'data', path)
def generate_sentence(word_count=None, character=None):
"""
Returns a 'sentenc... | [
"contact@alligatr.co.uk"
] | contact@alligatr.co.uk |
cf36a196e55d8f95b64a061d2c6f6a26228ef58f | 3f0b90fd8d81cbc544f6e80a7ed0c254ff71a199 | /PyTorch/nlp/transformer/fairseq/fairseq/options.py | f31b209ab284887a6bb0b6ace4b8b538debc54ed | [
"MIT"
] | permissive | omrialmog/Model-References | f25b7c432c36795dcffa6e54fb93bd07d6decffc | 45922211087567baada46f6356dd8bd00f2faff8 | refs/heads/master | 2023-08-16T03:47:39.674059 | 2021-10-26T23:47:54 | 2021-10-26T23:47:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,491 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# Copyright (c) 2021, Habana Labs Ltd. All rights reserved.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import argparse
from pathlib import Path
from typing import Callable, List, Optio... | [
"mpandit@habana.ai"
] | mpandit@habana.ai |
865f36902e30ffdcf2ccdb5821d9a76f4432dac7 | fa17746a67ade18907eb74f8771dfaa118d7eb1d | /tutorial/env/bin/pip2 | 2d92073aac8b1d9e1d83fc15dc2e13f80eeb1270 | [] | no_license | NOTzeroday/django-prac | d0b42eca81dd34b99b660964433d89757cca39b0 | b2e2ee238856392433ea0208258613b942fb1dd8 | refs/heads/changes | 2020-06-28T04:46:57.403840 | 2017-07-17T07:33:19 | 2017-07-17T07:33:19 | 97,088,156 | 0 | 1 | null | 2017-07-20T07:34:08 | 2017-07-13T06:31:35 | Python | UTF-8 | Python | false | false | 250 | #!/home/kim/codelocker/savannah/django/tutorial/env/bin/python2
# -*- 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())
| [
"kenneth.murugu@savannahinformatics.com"
] | kenneth.murugu@savannahinformatics.com | |
53d9e269abcbb7807c4765e8621cb68122da7e66 | a597fa8c9c5fabf65e5be8ed2b30ecb3b5b92ff7 | /monoex/modeling/heads/build.py | 0b01d821e96724d68999cbb90d84f1463fe3a67f | [] | no_license | gujiaqivadin/MonoEX | 55a28732bdbd0d08b404ffafa9024572758fe5fd | e42f2573c157d8399e4aa137050f5d0104aa0bde | refs/heads/master | 2023-08-25T13:11:06.928417 | 2021-10-28T04:32:03 | 2021-10-28T04:32:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | from monoex.utils.registry import Registry
HEAD_REGISTRY = Registry("HEAD")
def build_head(cfg, in_channels):
"""
Build a head from `cfg.MODEL.HEAD.NAME`.
"""
head_name = cfg.MODEL.HEAD.NAME
head = HEAD_REGISTRY.get(head_name)(cfg, in_channels)
return head
| [
"excitohe@gmail.com"
] | excitohe@gmail.com |
4fe49b4538b78e6aef54b68010f7bf3670fe30d9 | 8a53b6e78ee6bc66bbf83d78fedef20e44e40809 | /braceyourselfassignmentsarecoming/sudoku.py | 00a3b61d94dbf5681019330623f67e0699604bba | [] | no_license | chintanbetrabet/ChessAI | cc5c6dfa91c0ba5a0b6de1cc705092cf996bcdcb | 3d9ebd96330623ab48f7f758cc8ad3b61eb79d55 | refs/heads/master | 2021-07-02T05:57:58.524808 | 2017-09-22T09:32:50 | 2017-09-22T09:32:50 | 104,456,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,450 | py | import copy
import os
import time
class Square():
def __init__(self,show,row,col,legal):
self.show=show
self.row=row
self.col=col
self.legal=copy.deepcopy(legal)
def update(self):
if len(self.legal)==1:
self.show=str(self.legal[0])
else :
... | [
"chintanbetrabet@gmail.com"
] | chintanbetrabet@gmail.com |
b77c2a2d23ce3a8fe3f2d0a6917cb7d07d0047ff | 835e3bd2afd6ea11ef4c42b0155e78d1a37ac13e | /courses/machine_learning/asl/open_project/cloud_composer_automated_ml_pipeline_taxifare/airflow/dags/taxifare_multi.py | 0c384a3e3f87199089cf46cf1ce6037ae8f9a271 | [
"Apache-2.0"
] | permissive | kartik-nighania/training-data-analyst | e1e5ae96d3d506894a4a8692d979f54baf14b1eb | ba1dea1646ef0f5197a89e32d8c0bb158897a5b4 | refs/heads/master | 2020-07-26T11:57:39.811468 | 2019-09-15T19:14:12 | 2019-09-15T19:14:12 | 208,635,891 | 1 | 1 | Apache-2.0 | 2019-09-15T18:09:21 | 2019-09-15T18:09:21 | null | UTF-8 | Python | false | false | 16,014 | py | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | [
"ryangillard@google.com"
] | ryangillard@google.com |
6e1b036b63fdffa4e222c6caf46831a6503c2e5c | 115fe5430550c7cd22d3e8e9196c93287e0b73c4 | /venv/Scripts/pip3-script.py | df86f008ee4968d6f5dbd1c0282991747ce08049 | [] | no_license | siddeshvinay/MyOwnFW | b1c952db2616df99089bd92cb73a86e16796e904 | d878fb54d845ccd1d16e01fbe3ebc48f41231fe6 | refs/heads/master | 2020-04-15T21:34:08.462786 | 2019-01-10T10:17:42 | 2019-01-10T10:17:42 | 165,037,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | #!C:\Users\Dell\PycharmProjects\DJFW\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"siddeshvinay@gmail.com"
] | siddeshvinay@gmail.com |
62c86946bd35096e59efdd673f88673fc50b9f53 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp/sblp_ut=3.5_rd=0.5_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=80/params.py | 805a7c663cc5294f124978200a747eb82a7c714a | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.527714',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.5',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'RUN',
'trial': 80,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
62204aa625906842ccced44fdf50596c95ec552b | de4d88db6ea32d20020c169f734edd4b95c3092d | /aiotdlib/api/functions/add_network_statistics.py | b94694668600633ed7ff2c3fce21c7ade2450981 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | thiagosm/aiotdlib | 5cc790a5645f7e4cc61bbd0791433ed182d69062 | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | refs/heads/main | 2023-08-15T05:16:28.436803 | 2021-10-18T20:41:27 | 2021-10-18T20:41:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | # =============================================================================== #
# #
# This file has been generated automatically!! Do not change this manually! #
# ... | [
"pylakey@protonmail.com"
] | pylakey@protonmail.com |
6cdf6b7fcbe2d102c9bb25bec23d4b48509c5436 | 27610a2de51c8e19dadf1ee91e2e19373ec98ceb | /listmethods/listmeth02.py | 12c4fcd9d7e774f5dee61d560272af1d7b367a42 | [] | no_license | capjr86/mycode | 2cd7202a981384f5d3c56c4f582669b42f044dd9 | 61571719f49ec751889f2675143017d37c17501e | refs/heads/main | 2023-02-17T19:21:44.163071 | 2021-01-07T16:53:17 | 2021-01-07T16:53:17 | 326,742,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | #!/usr/bin/env python3
proto = ["ssh", "http", "https"]
protoa = ["ssh", "http", "https"]
print(proto)
proto.append("dns") # this line will add "dns" to the end of our list
protoa.append("dns") # this line will add "dns" to the end of our list
print(proto)
proto2 = [ 22, 80, 443, 53 ] # a list of common ports
proto.ext... | [
"indianachamp@gmail.com"
] | indianachamp@gmail.com |
f16260fe03cb277aaa8dea4bfdf3f76e59a896a7 | c1af9ddc1013774b9af18eb2cb52cb5e74b9ffea | /users/permissions.py | 285afa00f82c66d75fd032499bc0fb638807021e | [] | no_license | daviddetena/AGBO_Frikr_Django | a91fedf120605a3fb446c0e7515a4cf80d6db299 | f93a565af0918dd0b61152701b56686120945bfe | refs/heads/master | 2021-01-19T18:10:18.024013 | 2015-07-15T18:51:27 | 2015-07-15T18:51:27 | 38,453,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,948 | py | #-*- coding: utf-8 -*-
from rest_framework.permissions import BasePermission
class UserPermission(BasePermission):
"""
En esta clase definiremos nuestra propia política de permisos de usuario:
- Un superusuario podrá ver/añadir/modificar/eliminar cualquiera
- Un usuario no autenticado sólo podrá añadir... | [
"daviddetenacalvo@gmail.com"
] | daviddetenacalvo@gmail.com |
9c15d394fd6b99aa3d6bc0d05671cbe053dda4a1 | 4c43fb0220bc0c12e8fa21f8cca2618d64b03425 | /lab11/OrderRecordServicePS_RS/message_puller.py | 5518536f8a9d4b8f8d9469421c1eac6611052f57 | [] | no_license | dayanach/IS | fddf0a8b95e6535ca9222ebfd535dc01f581d3bd | d5bab2729a5a6fd03280a62cc0132e7f9d72ba37 | refs/heads/master | 2022-05-26T09:46:56.543883 | 2020-05-02T16:18:18 | 2020-05-02T16:18:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | import json
from threading import Thread
import pika
import requests
def callback(ch, method, props, body):
print(" [x] Received %r" % body)
payload = json.loads(body.decode('utf-8'))
msg = requests.post("http://127.0.0.1:5002/orders/", json=payload)
connection = pika.BlockingConnection(pika.Connecti... | [
"ipkumarawd@yahoo.com"
] | ipkumarawd@yahoo.com |
86e376b736eaa848be95d32e9225fd597cd3eea9 | e870e26bb2207d616fd000af4f0960c3237d2ff6 | /abako/rdsdb.py | a2f0323d1801961dac37b5d27eac3e1f904f2c5c | [
"MIT"
] | permissive | qba73/abako | df7de4f9d4b9c990f26e90b2202c0bd5801aab04 | 5188794f99cb5ccebae9cb6c2caf5e61a0804593 | refs/heads/master | 2021-01-01T18:04:18.096886 | 2017-07-26T22:26:40 | 2017-07-26T22:26:40 | 98,235,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | # -*- coding: utf-8 -*-
import pprint
import boto3
def rdsclient():
client = boto3.client('rds')
return client
def get_instances():
client = rdsclient()
instances = client.describe_db_instances()
return instances
def main():
instances = get_instances()
pprint.pprint(instances)
if __... | [
"jakub.jarosz@postpro.net"
] | jakub.jarosz@postpro.net |
cdf83d46c866bb0fd896c3d3359f95a1100fee01 | 4018ede0bb90d621a1002073529304d942ba4322 | /backend/vehicle/migrations/0001_initial.py | 41e9f437055310feb82188c190808790ea8ccfd8 | [] | no_license | crowdbotics-apps/uber-19759 | 82ee6d2cd616c1fa699d426f85a964af40b4cb44 | 17331bfcdfc29a20c2d986e796df2db88a2b5ed1 | refs/heads/master | 2022-12-27T05:29:15.759136 | 2020-10-05T01:17:32 | 2020-10-05T01:17:32 | 289,784,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | # Generated by Django 2.2.15 on 2020-08-23 23:37
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('taxi_profile', '0001_initial'),
]
operations = [
migrations.CreateModel(
n... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
cebc1e7c2b1375b27bdc7477bd45bd93f1086dfa | 23657d3bb78947c1aadeac8d6d75dd273a035787 | /build/catkin_generated/generate_cached_setup.py | 792a4d87c99636f705c5367f9f920a55a60baefa | [] | no_license | badmanwillis/proj515-March | 5d38cd7b45efc618839e15fdf88da6488eb419ff | 91fe4f4757d4bafb1e0173a9736f67b3c0fe0175 | refs/heads/master | 2020-04-30T09:48:50.469896 | 2019-03-20T15:09:13 | 2019-03-20T15:09:13 | 176,758,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"olly.smith1994@gmail.com"
] | olly.smith1994@gmail.com |
b10de8ff0fb2ef65693c60ec641ea5286c7197d8 | cc70af69d62bc608eb15fc44cfd1d657eb07a873 | /Chapter31.DesigningWithClasses/listinherited2.py | b48fc09ad95ff1aee7d8ba95f9438621944bcb9c | [
"MIT"
] | permissive | mindnhand/Learning-Python-5th | bb6ed6688323b2e8583fbc6f89c9f1735f17aacf | 3dc1b28d6e048d512bf851de6c7f6445edfe7b84 | refs/heads/master | 2023-04-01T21:00:52.829871 | 2021-04-14T14:05:56 | 2021-04-14T14:05:56 | 341,275,622 | 0 | 0 | MIT | 2021-03-02T08:49:31 | 2021-02-22T17:08:52 | Python | UTF-8 | Python | false | false | 1,489 | py | #!/usr/bin/env python3
#ecoding=utf-8
#-----------------------------------------------
# Usage: python3 listinherited2.py
# Description: mix-in class
# File listinherited.py (2.X + 3.X)
#-----------------------------------------------
class ListInherited:
"""
Use dir() to collect both instanc... | [
"albertqee@163.com"
] | albertqee@163.com |
5dd70d08793681bebe4b61d73fad6776c233f17f | 86a8ed335d03d12674015d725bbb9ad3e1fe0b13 | /deep-neural-nets/ann-tensorflow/ann.py | 1ef717d57c8e1f038e213505b5cd2fd817213c5c | [] | no_license | mbastola/neural-nets-in-python | 68dbe58b1f90b9268f2ccb5e162020f8f9b4b820 | a80145c757a5176d52e7641fde4d22f7bc8d2905 | refs/heads/master | 2021-06-23T05:40:50.479153 | 2020-11-14T19:37:52 | 2020-11-14T19:37:52 | 207,213,671 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,857 | py | from utils import *
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
from sklearn.utils import shuffle
class ANNLayer(object):
def __init__(self, _id, M1, M2, drop_out = 0, activation="relu"):
self.id = _id
self.M1 = M1
self.M2 = M2
self.activation_func = a... | [
"mbastola@wustl.edu"
] | mbastola@wustl.edu |
f00c33148461da1256e8407c602096d2a7daadb8 | ccd7ab4eb8758ca860728615575ec70c7b6d75df | /07_filter.py | 6c886cd64fd3cf06f80f6004b50f0a33afe074a2 | [] | no_license | yunxinzhang/pandas | dd5818be6504e35d6a97463d0f32cc0df1ba8a8d | faf6ec7cbf7530f26f62f731aa93d687cd90bfec | refs/heads/master | 2020-04-17T07:09:06.986598 | 2019-01-18T06:39:04 | 2019-01-18T06:39:04 | 166,356,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 17 16:05:52 2019
@author: zyx
"""
import pandas as pd
movies = pd.read_csv('imdb_1000.csv')
type(movies.duration > 200)
long_movie = movies[movies.duration > 200]
long_movie.title | [
"675941375@qq.com"
] | 675941375@qq.com |
c5891f67e52d5a463f47c2b26c56e2fb6e680910 | 3e518f9efe880740b766f7daa79f893755204bd8 | /main.py | 639a88dee1763ef58a3cd3553b659822201423a9 | [] | no_license | shraman-biswas/generate_marker | 0df47cbb3d40fd9c271df956528945e4beaa3301 | 1f31fc449ef0e7bfedec36652db85ee5a528b1a9 | refs/heads/master | 2021-01-10T03:17:20.840216 | 2016-03-03T18:21:06 | 2016-03-03T18:21:06 | 53,057,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,843 | py | import cv2
import numpy as np
import time
# basic marker generation parameters
x = 20 # scaling parameter (pixels)
w_img = 500 # image width (pixels)
h_img = 500 # image height (pixels)
char = "T" # alphanumeric character
# marker rotation parameters
rotx = 0 # x-axis image rotation angle (degrees)
roty ... | [
"shraman-biswas@users.noreply.github.com"
] | shraman-biswas@users.noreply.github.com |
29895f0c2eeb67ecae346f82381ef66a1b4f1bd5 | 711164029d43d70c9ca83cf888f0674f5664daa2 | /tensor2tensor/models/transformer_sketch.py | e8fe796a8749bff1526ef18d8fe3de8ef0bf2a79 | [
"Apache-2.0"
] | permissive | fengrussell/tensor2tensor-hvd | 31bbe539875de6e1d3a4b23f5b1cda0089f9b7eb | 03234bb6b73ff72f0e4525226ed508d70a0d5808 | refs/heads/master | 2022-12-02T19:53:34.147491 | 2019-06-21T01:27:24 | 2019-06-21T01:27:24 | 193,008,576 | 2 | 3 | Apache-2.0 | 2022-11-21T18:37:18 | 2019-06-21T01:20:18 | Jupyter Notebook | UTF-8 | Python | false | false | 5,490 | py | # coding=utf-8
# Copyright 2017 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"fengtaolue@xiaomi.com"
] | fengtaolue@xiaomi.com |
48f8e8eba227169cb1d30fccd737725750b85b67 | e0d9a87b0fb3a207d118421c43af70e0e2b22ba2 | /K2102/code.py | fe4bd7c7438f67f960ff8194287585b34c92a992 | [
"MIT"
] | permissive | DokySp/acmicpc-practice | f20c9341aa114d8c7f5d733ba888925052d81768 | 2fa967ad4cd30797f195796f1371f7017cbc06c5 | refs/heads/master | 2023-04-08T08:17:46.890732 | 2023-04-04T08:06:23 | 2023-04-04T08:06:23 | 252,925,188 | 0 | 0 | MIT | 2020-04-04T06:30:52 | 2020-04-04T06:21:27 | null | UTF-8 | Python | false | false | 2,417 | py | import copy
class Dirr:
up = 0
right = 1
down = 2
left = 3
board = []
def dfs(i, j, dirr, depth, memtable):
global board
# 특별한 경우가 아니라면 메모이제이션 하기!!
memt = copy.deepcopy(memtable)
# print(i, j, depth, board[i][j])
memt[i][j] = True
if depth != 0 and board[i][j] == "P":
... | [
"uhug@naver.com"
] | uhug@naver.com |
c3ff7aa615daaf31c4e84e1399de3988430d34e1 | bf977912c9fdd6a6b515fa14fc082a7312669305 | /Introdução à programação com Python/Cap 5/5.17.py | 0eb5f312ebd329511b108a7710c2023472f656c9 | [] | no_license | thsimoes/Codes | a5f0d999fa3204d535d394520d5e1f9265f52156 | 5227d6f27cb513d0e5808bc7657f21a0920975e9 | refs/heads/main | 2023-09-06T03:54:07.754689 | 2021-11-24T18:33:38 | 2021-11-24T18:33:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | valor = int(input("Digite o valor a pagar: "))
cedulas = 0
atual = 50
a_pagar = valor
while True:
if valor == 0:
print("0 cédula(s) de R$ 50")
print("0 cédula(s) de R$ 20")
print("0 cédula(s) de R$ 10")
print("0 cédula(s) de R$ 5")
print("0 cédula(s) de R$ 1")
break
... | [
"simoesthsa@gmail.com"
] | simoesthsa@gmail.com |
ef7b69970c24ebd5fb27e70c24d43226b5f62552 | 92b2a0c4abda4cef23c2b28fbe030aaf6f20abaa | /test/products.py | 3935983cc306c26ab1e68091074e51b6ad0f93cd | [
"Apache-2.0"
] | permissive | aaronwald/coypu | 6fd7587c86abb8efe6b5526e247203c1ecd0dc57 | 9371736309d3d205a43bd7e8972ea4a5621c176f | refs/heads/master | 2021-03-27T15:29:17.714887 | 2019-08-13T13:13:24 | 2019-08-13T13:13:24 | 35,335,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | import urllib.request, json, sys
data = json.load(sys.stdin)
for x in data:
print (x['id'])
| [
"aaronwald@gmail.com"
] | aaronwald@gmail.com |
e9b16c80258ae328972b1a66f590751c25508eb0 | 272aff93c6f399cd834835970891696e605a1e31 | /dsp_ws/build/hector_navigation/hector_costmap/catkin_generated/pkg.installspace.context.pc.py | 9203dd9dc86536536a7e49eceaa03f0ccbd62473 | [] | no_license | dingjianfeng/dsp_ding2 | 18c99958a022d2e2fae3aa5888fd07fa279568d6 | a3327a1db4635865a07390023c5cc2932456b367 | refs/heads/master | 2020-05-02T12:41:26.516325 | 2019-03-27T10:10:26 | 2019-03-27T10:10:26 | 177,964,602 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/dsp/dsp_ws/install/include".split(';') if "/home/dsp/dsp_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != ... | [
"dingjianfeng"
] | dingjianfeng |
b72a8bf8270d11b063eb37da36df04d28073ced4 | 95fe33ef1e4e5571d19e2c993e3d71a487925429 | /temp_system/tools/lib/libstdc++.so.6.0.27-gdb.py | 90ffe1f04ea322b1fd699adb7c0b2bb845ecf025 | [] | no_license | feather973/lfs9.0 | d36c8f9621b56128ba9baea535b37afe46a461e4 | 1879e0157fa3739704a764eba8c654fcda2e01a4 | refs/heads/master | 2022-09-01T22:00:55.471310 | 2020-05-30T05:54:33 | 2020-05-30T05:54:33 | 260,391,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,387 | py | # -*- python -*-
# Copyright (C) 2009-2019 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later versio... | [
"feather973@naver.com"
] | feather973@naver.com |
0281cb274d98f10d3c23d1a833d29109d117e0c0 | fe2e1fa7e7e4fe3eda4e1069190ddb03bff7e7d1 | /apps/base/views_department.py | 97757b6fa54f1ebbb7a2936a46c17ad1f8db8a5b | [] | no_license | designreuse/SchoolOABase | f2f17901973f7c7e1949308b222231b9f90d3d81 | a78489364140848f1df2c4e7c664e840775bdb37 | refs/heads/master | 2020-08-06T16:20:49.759360 | 2019-10-05T02:45:24 | 2019-10-05T02:45:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,967 | py | # -*- coding: utf-8 -*-
"""
@File : views_department.py
@Time : 2019-08-27 13:09
@Author : 杨小林
"""
import json
from django.shortcuts import render, HttpResponse, get_object_or_404
from django.views.generic.base import View, TemplateView
from django.http import HttpResponseRedirect
from django.contrib.auth import... | [
"sdlgyxl@163.com"
] | sdlgyxl@163.com |
7b3a80399f925636af6425245743c95bcadcf42d | 6a730375ce4b5af3d832f9b81a9164edd2cd2880 | /igdb_match_names.py | 2bc32d2990ffdbb6ecb7a6422fef92ee02bc1d57 | [
"MIT"
] | permissive | woctezuma/metacouncil-goty | b20fc76e8e8c4b15c159663b6181db0c31045682 | bbbc718b2ae171d92bfb360527e0d6f41c332594 | refs/heads/master | 2023-09-04T09:50:35.309976 | 2023-02-05T18:48:57 | 2023-02-05T18:48:57 | 163,838,387 | 1 | 0 | MIT | 2023-09-14T17:51:15 | 2019-01-02T12:30:02 | Python | UTF-8 | Python | false | false | 20,395 | py | import copy
import time
from disqualify_vote import is_a_noisy_vote
from extend_igdb import extend_both_igdb_databases, extend_igdb_match_database
from igdb_databases import (
load_igdb_local_database,
load_igdb_match_database,
save_igdb_local_database,
save_igdb_match_database,
)
from igdb_look_up imp... | [
"woctezuma@users.noreply.github.com"
] | woctezuma@users.noreply.github.com |
d0973225d34cf0f9d20c61197abc289a75ef9710 | 11661cead762d9befbac1673a9858e1d2eaf5710 | /stripe_api/migrations/0007_auto_20200822_1744.py | 85e2e75fc73c5e40b0e3ace113da049659237fab | [] | no_license | fabio-gond/ranks-analyzer | 1098262ae952ab2549df1b2e21a231346d9614b0 | a105f386efbeb793d906e0c46ad1da9d5f2b1793 | refs/heads/master | 2022-12-21T21:32:47.379356 | 2020-09-22T02:45:35 | 2020-09-22T02:45:35 | 297,512,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,148 | py | # Generated by Django 2.2 on 2020-08-22 15:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stripe_api', '0006_plan_days_duration'),
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
... | [
"fabio.gondolo@gmail.com"
] | fabio.gondolo@gmail.com |
90f371715ee021773b7ca9da6fec0febc3eafcbc | 36e3d735e06d0642f1e8c26bff57305a01cc627c | /apClient/net_data/migrations/0007_auto_20160428_0551.py | 1ab204fe96c50f574cb4f7620bc8e1d1f6d23978 | [] | no_license | WilsonWangTHU/ipv6_server | 5c768cdaeaf22ee508c5fff162b208481a42f95d | 5088f58ab25061e65127699ed328ddaab24f9aac | refs/heads/master | 2021-01-18T21:18:39.653994 | 2016-05-27T04:22:23 | 2016-05-27T04:22:23 | 55,656,523 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-28 05:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('net_data', '0006_auto_20160427_0806'),
]
operations = [
migrations.RemoveFie... | [
"wode406@hotmail.com"
] | wode406@hotmail.com |
6ad5a9e8436151053eaba2c919b4e6cc59a775e8 | ce3fba91d9d94f81da765fc2e9a5965c9ff3f6ad | /aiaiplay-api-master/data/admin.py | 51d741bb44481401b330e39df281e027585775da | [] | no_license | JihwanGo/ai-api-master | 3ccad3b29475d8591ad6419b02a3ed3bd355f2aa | fa4cfb5156a2d539e93b858ad44e8478285828a8 | refs/heads/master | 2021-05-05T05:23:44.612649 | 2018-01-24T03:47:21 | 2018-01-24T03:47:21 | 118,708,161 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | from django.contrib import admin
from .models import Log
@admin.register(Log)
class LogAdmin(admin.ModelAdmin):
list_display = (
'__str__',
'timestamp',
'type',
'description',
'license',
'launcher_version',
'content_version',
)
| [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.