blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
61cc4a9d0cc887096ff977014e927c9e400aa5d9 | abe55e1f32be6bf348858a48e0bea2d25c7d771a | /ProjectEuler/EP1.py | 8726cf79a94e56ffa2b82e7ddfd2fb12f5e31f1f | [] | no_license | Mariani-code/PythonProjects | 0ffab706f6abb85a967363b691a212700d195178 | cd9ed0aee366e91872b55c1f0a3b351ccc7d06f2 | refs/heads/main | 2023-03-14T10:03:58.531152 | 2021-03-05T01:06:12 | 2021-03-05T01:06:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | result = 0
for i in range(1,1000):
if i % 3 == 0 or i % 5 == 0:
result += i
print (result)
| [
"noreply@github.com"
] | Mariani-code.noreply@github.com |
c472632ff6182572bb539f30900c9f3a77f9fef4 | 5bf9cb2bef9a7bfa45028b958dae4e0783cc09f4 | /transrate/wsgi.py | 2988b77159f34db77651abb00cb5dc024f697b58 | [] | no_license | Satoito/transrate | 07b81807f8a617aeabb3a9301ffb732cabcc68fd | 5151fcf3bf7fd87317644bdef5d1cd9b656bde0b | refs/heads/master | 2023-01-31T00:59:52.321513 | 2020-12-08T05:46:08 | 2020-12-08T05:46:08 | 319,506,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for transrate 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"kwge.blue.hunter.5@gmail.com"
] | kwge.blue.hunter.5@gmail.com |
47ebb38d0980d1cf2f7ebaafb0ea6ad961156ebe | 8fb78ba826af20edd6f172be03681af9ab417ab8 | /PYTHON/foosball/foosball.py | 133d36f3e5113641dd95bbe8c2d80e413fa3b05a | [] | no_license | connor3johnston/kattis | 804f4f83f132b54f002126795e508f79e2beddf8 | 59b529ff3d9fbbc2d00958e6851da0c73c69e823 | refs/heads/master | 2021-06-17T19:36:51.032324 | 2021-03-03T19:13:09 | 2021-03-03T19:13:09 | 169,181,901 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | # Rating: ~ 4.0 / 10
# Link: https://open.kattis.com/problems/foosball
def main():
num = int(input())
players = input().split()
queue = players[4::]
scores = input()
dynastys = {}
WO = players[0]
WD = players[2]
BO = players[1]
BD = players[3]
dynasty = ''
count = 1
if scores[0] == 'W':
d... | [
"connor3johnston@gmail.com"
] | connor3johnston@gmail.com |
3d6e519d8173a542b6493ac848758d22a09e11a6 | c513008cacf5592e645e7da3652d90d12a11a988 | /program/niuke-python/Sprial_2.py | 3a59db5855032d2ff2e365c91cdbded357e65f20 | [] | no_license | PiKaChu-R/code-learn | f17cb5ad95d4e8b698320d23e472eb1687576bdc | b94814ac3c72da4c840758569005b7ac6589586a | refs/heads/master | 2020-07-01T02:42:40.235753 | 2019-09-17T13:06:50 | 2019-09-17T13:06:50 | 201,021,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,116 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
@File : Sprial_2.py
@Time : 2019/04/22 17:09:47
@Author : R.
@Version : 2.0
@Contact : 827710637@qq.com
@Desc : None
'''
'''
Sprial.py:可实现方法
'''
# here put the import lib
import itertools
def spiral(init):
stat... | [
"827710637@qq.com"
] | 827710637@qq.com |
61e3b909ab1ca70f4077a1f193cd2795edb13b58 | 7d2f933ed3c54e128ecaec3a771817c4260a8458 | /venv/Lib/site-packages/pandas/tests/indexing/multiindex/test_slice.py | 4bb71a3f58da28d68cb9bb93aa526aeaf087d7eb | [] | no_license | danielmoreira12/BAProject | c61dfb1d0521eb5a28eef9531a00e744bfb0e26a | 859f588305d826a35cc8f7d64c432f54a0a2e031 | refs/heads/master | 2021-01-02T07:17:39.267278 | 2020-02-25T22:27:43 | 2020-02-25T22:27:43 | 239,541,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,866 | py | import numpy as np
import pandas as pd
import pandas._testing as tm
import pytest
from pandas import DataFrame, Index, MultiIndex, Series, Timestamp
from pandas.core.indexing import _non_reducing_slice
from pandas.errors import UnsortedIndexError
from pandas.tests.indexing.common import _mklbl
class TestMultiIndexSli... | [
"danielmoreira12@github.com"
] | danielmoreira12@github.com |
3c3a6885e42c46b2529749d5f441383421fd75a3 | b2f9536c3c90aa85ae4b2e4557c5ec3049d37c80 | /Course_2/week1_graphs_and_SCC/CSS.py | 809ff338af74786e84b836034c0f8750cf34e305 | [] | no_license | KristianMSchmidt/Algorithms-specialization-stanford- | a48880d3643822980946181bb7534882870d998a | e39d62aa6401cc18d9289d28b34763aac447afb8 | refs/heads/master | 2022-12-01T06:24:43.803513 | 2020-08-14T15:43:41 | 2020-08-14T15:43:41 | 287,567,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,529 | py | import sys
#import resource
#resource.setrlimit(resource.RLIMIT_STACK, (2**29,-1))
sys.setrecursionlimit(2 ** 20)
class Node:
def __init__(self, value):
self._value = value
self._in_arrows = set()
self._out_arrows = set()
self._finish_time = None
self._explored = False
... | [
"34898026+KristianMSchmidt@users.noreply.github.com"
] | 34898026+KristianMSchmidt@users.noreply.github.com |
fb47985a1b027837da0c960872e7b6908eeb8201 | c524fa2c45bc7b79c4d9524aa340d6258ab650f3 | /file2.py | 5afed0f64ee13fa5c28f0f9f505c3fcb1c29e6bd | [] | no_license | sumitsmart/GitLearningHarryRahulShetty | 96253f66cd259a36ac49d1401f1f00c995acc246 | 8b0a83c906f3d061332eaf72ae0610a056625dd5 | refs/heads/master | 2022-12-03T23:45:25.951427 | 2020-08-09T09:39:28 | 2020-08-09T09:39:28 | 286,190,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | print("Hello world !!")
"this is copy branhc" | [
"sumit.shivhare29@gmail.com"
] | sumit.shivhare29@gmail.com |
a1c65ebb04b55d8463492a293d2cd3aef3a7db92 | a965a40aec1a89186a3128f7994652a9664127b8 | /jira_api/settings.py | 5746bbaaeb22559b47cb49644054fbbe9c5ca248 | [] | no_license | hiro08/jira_api | 5a58f4a2623465d0867f7b8381eee42dab53a0ac | 91cefceedc53dcd0582d6d590e247abb6038f49e | refs/heads/master | 2023-06-24T07:03:20.530679 | 2021-07-25T08:17:24 | 2021-07-25T08:17:24 | 389,296,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,725 | py | """
Django settings for jira_api project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"hiroakikawana@gmail.com"
] | hiroakikawana@gmail.com |
bda86544ba194e1200e3f7e3ab29002ae4159d3e | 9d7d600bb3e5b0556af5401f86821a701ea40ed9 | /python/asycio-usage/callback.py | 8c36a7a5199401b3459df85acdff58f87b379408 | [
"Apache-2.0"
] | permissive | bzd111/HelloWorld | 8d734b68247705a6493fc00226e0a0e19bc8666e | 70f31af4d5267ecdb66256ca36a26c6a3bc66172 | refs/heads/master | 2023-01-09T09:56:32.905937 | 2021-02-23T11:48:10 | 2021-02-23T11:48:10 | 230,203,562 | 0 | 0 | Apache-2.0 | 2023-01-07T23:24:04 | 2019-12-26T05:54:06 | Jupyter Notebook | UTF-8 | Python | false | false | 466 | py | import asyncio
from asyncio import Future
async def foo():
await asyncio.sleep(10)
return 'Foo!'
def got_result(future: Future):
print(f'got the result! {future.result()}')
async def hello_world():
task = asyncio.create_task(foo())
task.add_done_callback(got_result)
print(task)
await a... | [
"zxc@gogogozxc.xyz"
] | zxc@gogogozxc.xyz |
17507aad4331e9048db3cc88020bd421dc8350b6 | eada13056d3e11167981f0230a629dcccb08316e | /src/line_2d.py | 6ee5c04faf37c055d8e5b49651857f957ee118da | [] | no_license | dansonc/road_estimation | 4cf59a6c0e488f9dc78ff8d2713a8977bc9c0e33 | f08c1b1f25a816e2db677a7275fccf22a99d841d | refs/heads/master | 2022-04-10T07:23:13.456976 | 2020-03-25T17:23:44 | 2020-03-25T17:23:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,536 | py | """ Line in 2D
Author: Henry Zhang
Date:January 29, 2020
"""
# module
import numpy as np
from matplotlib import pyplot as plt
# parameters
# classes
class Line2D:
def __init__(self, a=0., b=0., c=0.):
self.a = a
self.b = b
self.c = c
self.normalize()
@classmethod
de... | [
"henryzhang19951213@gmail.com"
] | henryzhang19951213@gmail.com |
c28058258b64bddbea651c92421a387801c56023 | 888f87b1455d34ef5687c97f72c0f57eab7a5be7 | /07-exercises/10-grades.py | 6218fc8a09a6ca0be88137185e8ef8634818d660 | [] | no_license | josue0ghost/Python-Exercises | dd4fff287341af55fac4b9e0f453cd9628099625 | 11037ecbc77b4f516ed1ffa8be89621d2f630c22 | refs/heads/main | 2023-07-02T19:11:25.918071 | 2021-08-10T08:31:53 | 2021-08-10T08:31:53 | 356,730,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
- Ask X student's grades
- Show how many student's passed
- Show how many student's failed
"""
student = int(input("How many students are?: "))
passed = 0
failed = 0
for count in range(1, student + 1):
grade = float(input(f"Student {count} grade: "))
if grade > 60:
passed += 1
else... | [
"josue0ghost@gmail.com"
] | josue0ghost@gmail.com |
b6cf62297f6f5a18d8098fd663d50ceed6d2fb6a | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/playground/mnurolcay/2009/network/chat/gyachi/actions.py | 27982a32850ab05a787bda82f499cce34b776942 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
adfaf99ef9769ca17493fa95cf386acd2d5f018e | 63f046c8dd4bc4867fde6dd57ecb8e6b2d1e66b5 | /solutions/3rd-loops/l3_a7.py | 87eac1cc551ba0b26749224d2494ed4224b54c30 | [
"CC-BY-4.0"
] | permissive | Jhynn/programming-concepts-and-logic | a29dbd073425191ebed1c997d853f39e3f1a16a0 | 0ffa71c6259296813d3951f21e8d0d69dd523545 | refs/heads/main | 2023-06-27T16:53:51.192875 | 2021-08-02T21:41:40 | 2021-08-02T21:41:40 | 392,100,921 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | number = float(input('Type a number: '))
decreasingly = increasingly = unordered = False
previous = number
while number:
number = float(input('Type another number: '))
if number < previous:
decreasingly = True
elif number > previous:
increasingly = True
else:
unordered = True
... | [
"rock.matheus.mh@gmail.com"
] | rock.matheus.mh@gmail.com |
97b3a57cfd6020fc40c236296004864bb838d3b5 | a00f703ac6561ac99066c7220075dd4a420bb3ff | /goiteens/models/post_manager.py | 34947ba95b09a3a68bd37065db233d762cdb45c5 | [] | no_license | volodymyrhusak/goiteens_docker | 9c3e56091218f3e7633dc5d94816959254f5c8ca | 618722fce82e85fe13f8c60ee76216fbf13338a7 | refs/heads/master | 2022-12-22T02:01:43.589833 | 2018-03-14T20:55:26 | 2018-03-14T20:55:26 | 125,272,517 | 0 | 0 | null | 2022-11-04T19:17:52 | 2018-03-14T20:55:58 | Python | UTF-8 | Python | false | false | 1,172 | py | from models.model import PostModel ,UserModel ,CommentsModel
from models.base_manager import SNBaseManager
from models.user_manager import UserManager
class PostManager(SNBaseManager):
def __init__(self):
class_model = PostModel
super(PostManager, self).__init__(class_model)
def get_posts(... | [
"vovatrap@gmail.com"
] | vovatrap@gmail.com |
1ec71b82893c3f64ed495e2bf6673385d2f01c5a | c7d91529db199322e39e54fe4051a75704ea843e | /chaper01_list/t1.12.py | 52c5131518690d49becba7d34818301aad263a2f | [] | no_license | 2226171237/Algorithmpractice | fc786fd47aced5cd6d96c45f8e728c1e9d1160b7 | 837957ea22aa07ce28a6c23ea0419bd2011e1f88 | refs/heads/master | 2020-12-26T07:20:37.226443 | 2020-09-13T13:31:05 | 2020-09-13T13:31:05 | 237,431,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,342 | py | #-*- coding=utf-8 -*-
'''
给定一个有序链表,其中每个节点也表示一个有序链表,
实现flatten()函数,该函数将联保扁平化成一个单链表,扁平化后也是有序的链表
'''
class LNode:
def __init__(self,x,right=None,down=None):
self._data=x
self.right=right
self.down=down
class LList:
def __init__(self,data=[]):
self.head=None
if data:
... | [
"2226171237@qq.com"
] | 2226171237@qq.com |
69ffc4cc4bb8107d5bbd3bd703b1663141d92160 | e7407efb2f22a80d6288a5d15712500871a29f48 | /playground/htm-tensorflow/layers/layer.py | 50fb0e71660c19513a12b060fc645400ef06f86e | [] | no_license | Digi-Metal/HTM-AnomalyDetection | 8f2669d09f556b5b4cb3ca39741eac41bb395e68 | a0b4956c567208d6f62f6bcad1a02ddfeaa99215 | refs/heads/master | 2021-03-18T06:23:00.194638 | 2020-01-30T00:18:47 | 2020-01-30T00:18:47 | 247,052,644 | 1 | 0 | null | 2020-03-13T11:08:53 | 2020-03-13T11:08:52 | null | UTF-8 | Python | false | false | 726 | py | import tensorflow as tf
class Layer:
"""
Represents a layer of computation
"""
def __init__(self):
self.is_built = False
self.train_ops = []
def build(self, input_shape):
"""
Builds variables
"""
assert self.is_built == False
self.is_built = ... | [
"mingj2@student.unimelb.edu.au"
] | mingj2@student.unimelb.edu.au |
1f7bd12b7d36ffe0542a7777cfe6dee3c1098665 | 6d0f8af5a1158218552b40f1b829d2a9779cd196 | /contrib/wallettools/walletchangepass.py | 932d71f13ffbe562b5b9f494620c651b2e9763e0 | [
"MIT"
] | permissive | machtcoin/MachtCoin | 7f561c4b595f1d972b603387b2f9d4e37009ced0 | 3c54e3fac7c4942324db13dc705a56b16309b448 | refs/heads/master | 2021-04-28T20:43:56.037208 | 2018-02-19T13:51:07 | 2018-02-19T13:51:07 | 121,932,805 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | from jsonrpc import ServiceProxy
access = ServiceProxy("http://127.0.0.1:11333")
pwd = raw_input("Enter old wallet passphrase: ")
pwd2 = raw_input("Enter new wallet passphrase: ")
access.walletpassphrasechange(pwd, pwd2) | [
"dev@machtcoin.co"
] | dev@machtcoin.co |
0211cad70e308995dd063d46bfc12225bb255a31 | 8ca4819a8901fccce40b3ac8952f3d7c1b120356 | /apps/profiles/migrations/0004_auto_20190111_1332.py | fde18835a584411749504ff28c616f331cf4a32f | [] | no_license | AKSoniWorld/OnlineExamination | 83e316305272068c87c8e13ac1e49947652c857a | 49ef6af57e9015b20f1ab2ae5f8738298047a2cd | refs/heads/master | 2022-02-20T21:36:08.973145 | 2019-10-01T06:52:29 | 2019-10-01T06:52:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | # Generated by Django 2.1.1 on 2019-01-11 13:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0003_auto_20190110_1241'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='address',... | [
"noreply@github.com"
] | AKSoniWorld.noreply@github.com |
0f88cd48445d5fdbacba254c8ea1fd3aaa85b14f | cba7a3809c1d642d414f16c7b69e0d71aba9d029 | /project/migrations/0006_auto_20201209_2233.py | 8cdaf5b885a47d276f13f09c8ea60d40fcccfdf5 | [
"MIT"
] | permissive | Daniyal56/mysite | 9ead0adcda9b6a56928f46b2e9e64cfa2391cafb | 71c5eb9a63c16169b8f8fe0a6958fc5be4e9ab28 | refs/heads/main | 2023-01-23T01:25:44.228013 | 2020-12-10T09:28:04 | 2020-12-10T09:28:04 | 320,079,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2020-12-10 06:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('project', '0005_auto_20201209_2137'),
]
operations = [
migrations.AlterFiel... | [
"scdaniyalam@gmail.com"
] | scdaniyalam@gmail.com |
4da972c219b6cceac38a67295640152f8467a244 | d4738162bf2558abb01e7e67191dc63ca2bc39f2 | /software/1/lstm-model.py | 78aff583fef4db686b0af9a5fcbbec6edffa4d4c | [] | no_license | ahgalila/masters-thesis | 63b93fa157bb430883c96d8bc7fddfb79f55bc83 | 05362b0627e117deb97ed6e1c06487b64883a3c9 | refs/heads/master | 2022-01-17T07:40:24.579903 | 2019-08-09T05:06:08 | 2019-08-09T05:06:08 | 198,347,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | from __future__ import division, print_function, absolute_import
from keras.models import Sequential
from keras.layers import LSTM, Dense
from keras.models import load_model
class LSTMModel(object):
def __init__(self, time_steps, hidden_layers, n_inputs, n_outputs):
# Model Parameters
... | [
"mail@ahmedabada.com"
] | mail@ahmedabada.com |
32de413aeb5cf0e0c6a5e8ba621fb4d62f92ef03 | e872e1136887cd6753ae292939e4656130c8f7d9 | /api/urls.py | f68962bb645e1c84bfe889e90658576f6e1b915b | [
"MIT"
] | permissive | florimondmanca/personal-api | 92e9d3ba8e3b16466ba54f5e9ea0493030e9cf95 | 6300f965d3f51d1bf5f10cf1eb15d673bd627631 | refs/heads/master | 2020-03-22T14:48:06.087822 | 2019-11-16T15:31:05 | 2019-11-16T15:31:05 | 140,206,398 | 4 | 1 | MIT | 2019-10-21T19:24:44 | 2018-07-08T22:16:47 | Python | UTF-8 | Python | false | false | 423 | py | """API URLs."""
from django.urls import path
from rest_framework.routers import DefaultRouter
import blog.views
from .views import obtain_auth_token
# Enable view names as 'api:...'
app_name = "api"
router = DefaultRouter()
# Blog endpoints
router.register("posts", blog.views.PostViewSet)
router.register("popular-... | [
"florimond.manca@gmail.com"
] | florimond.manca@gmail.com |
48ccc216138119b969d7df098ef310ee39a70b0e | f443d6eebab070bfd4f47a2dfbcb76988b0f12f0 | /chat/migrations/0001_initial.py | fccd53ca4eb1e14b11ed07e86fe1252b189a746a | [] | no_license | mkawsar/django-community | b903d09c48ee2fdcedd7790daf674ab42768ba02 | 9af80452cd4dbe87f5f53396cd192cb27ceaee30 | refs/heads/master | 2022-12-10T12:39:48.874638 | 2019-09-06T06:18:59 | 2019-09-06T06:18:59 | 171,521,326 | 0 | 0 | null | 2022-12-08T06:02:50 | 2019-02-19T17:48:46 | JavaScript | UTF-8 | Python | false | false | 924 | py | # Generated by Django 2.1.7 on 2019-08-20 04:40
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),
]
ope... | [
"kawsar.diu888@gmail.com"
] | kawsar.diu888@gmail.com |
2579e1ddd9447025a1155119df8e7f7ec3185f44 | 73c639d3c4b3fc1975a7498fe50bb3736b6fe532 | /swift_ceilometer/rpmbuild/BUILD/ceilometer-2013.1.2/build/lib/ceilometer/objectstore/swift_middleware.py | 0a99a3354266573ac2d6f21f45e2acf7cfc8dcf1 | [
"Apache-2.0"
] | permissive | ironlumberman/OpenStack | 60cdb65849d61c93f6785d57d0d9e2ade946daf6 | d42dab5ab927e55bb723fee8defab48f3691d0ec | refs/heads/master | 2021-01-13T16:10:01.855668 | 2013-09-03T07:38:43 | 2013-09-03T07:38:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,572 | py | # -*- encoding: utf-8 -*-
#
# Copyright © 2012 eNovance <licensing@enovance.com>
#
# Author: Julien Danjou <julien@danjou.info>
#
# 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://w... | [
"root@dmb.site"
] | root@dmb.site |
c877f808dbb3fa4ebcca5d32e1280451d71e0b3f | e89f17acda8291939f220cc8c30a244da93914b6 | /python code/Karatsuba Multiplication.py | 8f9be525bc5b5125c26d79d57eb5b62307aa5b29 | [] | no_license | atrothman/Data-Structures-and-Algos-from-scratch | 55907ffc1de92e4c4b62b6359beea0a7d34dae25 | 68e7b56414bbd8d2eb564c5238881d92eb43e02e | refs/heads/master | 2020-05-30T13:58:44.106824 | 2019-06-07T21:12:16 | 2019-06-07T21:12:16 | 189,773,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 6 22:59:42 2019
@author: Andrew
"""
import math
def Karatsuba_mult(X, Y):
x_s = str(X)
n = len(x_s)
y_s = str(Y)
m = len(y_s)
if(n==1 or m==1):
return(X*Y)
else:
A = int(x_s[0:math.floor(n/2)]) ... | [
"noreply@github.com"
] | atrothman.noreply@github.com |
6db549ebb8e3a9588b1d1169df9916f01a844799 | 859e2fe29ea8007b1af8a1840a8ac577935c98b6 | /chapter6/ex_5_1-1ex.py | efe0c7f572972c3487ba0a4f98187137b176b42f | [] | no_license | Heansum/pythonStudy | 1b79e26b352e931d3633fa401c1de504a9932cad | 098c4076fc439b5b34e736331eb3e405d839a61f | refs/heads/master | 2023-03-27T21:33:20.462666 | 2021-03-30T03:12:48 | 2021-03-30T03:12:48 | 348,167,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | num = int(input())
if num == 0:
print("프로그램 종료")
elif num > 0:
while num >= 1:
if num % 3 != 0:
print(num)
num -= 1
elif num < 0:
while num <= 1:
if num % 3 != 0:
print(num)
num += 1
| [
"heansum1556@gmail.com"
] | heansum1556@gmail.com |
b990bc7023853d6e1a96e80d4c0ed33956cde054 | e4e60524c428dae00ab84eff7b539f9f8196bf94 | /server.py | 8a503333f7c3261d3fde28d95abd0daa12af6a77 | [
"Apache-2.0"
] | permissive | gsundeep-tech/split-expense-api | 78a63218cfb4d2e06b2ed99eff105548082040eb | e02ae83d2dfd3009d66f6ef218660412cc868be0 | refs/heads/development | 2023-04-30T05:14:10.773315 | 2021-05-08T03:24:47 | 2021-05-08T03:24:47 | 339,639,343 | 0 | 0 | Apache-2.0 | 2021-05-18T07:24:41 | 2021-02-17T07:08:38 | Python | UTF-8 | Python | false | false | 350 | py | import os
from split_expenses_api.api.app import create_app
use_debugger = os.environ.get("DEBUG", False)
host = os.environ.get("HOST", "0.0.0.0")
port = os.environ.get("PORT", "5000")
app = create_app()
if __name__ == "__main__":
app.run(use_debugger=use_debugger,
use_reloader=True,
host... | [
"gsundeep.tech@gmail.com"
] | gsundeep.tech@gmail.com |
f5e95a313a5064d77f6ad31f07fc88b901837797 | dacf6265da9885171199a1dbf994922d069ae0d7 | /test_assignment/groups/migrations/0011_pairingmodel_hero1name.py | bc9a3518c177b717fa7fa72881eea35a1a08390e | [] | no_license | Gulaabihaathee/Test-Assignment | 54b92562de31bac4dc40e875b1b5ef344f184b4f | d004f86fd60dcdeffb32864f65d43872d219e07c | refs/heads/master | 2020-03-19T21:31:48.584173 | 2018-06-18T19:23:00 | 2018-06-18T19:23:00 | 136,941,497 | 0 | 0 | null | 2018-06-18T19:21:17 | 2018-06-11T14:56:33 | Python | UTF-8 | Python | false | false | 410 | py | # Generated by Django 2.0.5 on 2018-06-17 14:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('groups', '0010_pairingmodel'),
]
operations = [
migrations.AddField(
model_name='pairingmodel',
name='hero1name',
... | [
"gulaabihaathee@gmail.com"
] | gulaabihaathee@gmail.com |
04b8e691392e846516e006193bd07cee2f36da38 | 66e6055af50dabb073079e3776c9d7add6aed7ce | /api/utils.py | 6c9c4e9ae48faaf68896778270173023f6292537 | [] | no_license | anisimovkv/aiohttp-rest-api | dc248aeedd3f1c4bf489c193f56fc2b1e8b958a2 | f93825acd575cbc15b4512389b3bbede13bd3229 | refs/heads/master | 2023-03-03T17:15:39.095226 | 2021-02-07T20:45:04 | 2021-02-07T20:45:04 | 336,886,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | from aiohttp import web
def login_required(func):
async def wrapper(request):
if not request.headers.get('user', None) \
and not request.headers.get('Authorization', None):
return web.json_response({'Error': 'Auth required'}, status=401)
return await func(request)
r... | [
"konstantin.anisimov@eosda.com"
] | konstantin.anisimov@eosda.com |
5bb04287c575be93c1e557c81ce7f1c39e2ea1ad | 1119017958cb7b3cacba073723c9bbe6f20d273c | /evaluate.py | 7d5e4071843d8bde721ac4f031e4db6d01db7ae9 | [] | no_license | zhangbanxian123/pytorch_demo | 958dcf79f901001148a1236ebbeb29e4f2c3e9aa | fbe79d0e7429161289e35f133bb5f8be50ab1d05 | refs/heads/master | 2021-04-16T18:31:41.087680 | 2020-03-31T03:51:04 | 2020-03-31T03:51:04 | 249,375,486 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,850 | py | import argparse
import logging
import os
import numpy as np
import torch
from torch.autograd import Variable
import utils
import model.net as net
import model.data_loader as data_loader
def evaluate(model, loss_fn, dataloader, metrics, args):
"""验证模型.
Args:
model: (torch.nn.Module) 网络结构
los... | [
"1793605580@qq.com"
] | 1793605580@qq.com |
13a78f57434e22741935fbd9e1d8636b48323f32 | 78a5be52f65e9bdd45db56a50b240f4068c6273d | /docs/conf.py | 821b47c53eaa68d964092e35d2850524012f5213 | [
"MIT"
] | permissive | markpasc/arghlog | d844c0668795e8d15a100e4868fe6d6ae82fa88c | 268c5936922b6b5e1f91acaf0390c1bf85d90dd9 | refs/heads/master | 2016-09-08T00:42:53.009140 | 2013-09-04T16:09:20 | 2013-09-04T16:09:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,230 | py | # -*- coding: utf-8 -*-
#
# termtool documentation build configuration file, created by
# sphinx-quickstart on Sat Jun 4 22:59:19 2011.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | [
"markpasc@markpasc.org"
] | markpasc@markpasc.org |
64682ce640e5e4b715a0e6e3a0633fb768d09b7e | 14d3156d52b3d0f92b8c4d35dd6991768441322e | /spice_1_0_spyware_win32/spice/SendEmail.py | 8a3455b75233f7b7c768a350effb2d3501fc1a46 | [] | no_license | zunayedhassan/spice_spyware | 77b3245a28de6f75548363fd61e755a1f44b489f | 0bd924f21bf4d507933b8f196734c6cd47b44529 | refs/heads/master | 2021-01-10T01:50:43.116427 | 2016-03-22T11:14:42 | 2016-03-22T11:14:42 | 54,468,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,582 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Zunayed Hassan'
import time
import os
import threading
import smtplib
from email.mime.multipart import *
from email.utils import *
from email.utils import COMMASPACE
from email.mime.text import *
from email.mime.base import *
from email.encoders import *
from... | [
"ZunayedHassanBD@gmail.com"
] | ZunayedHassanBD@gmail.com |
84185395f885534267ea776398ebec7972940bfc | c33e2687611ed31435230fec97e19af9216fbcc0 | /經典題庫百題/分類題庫/ZeroJudge.tw/version.py | daae71ba2aff1e7f3e38188f799edfa0ad99cacf | [] | no_license | jiangsir/107-HighSchoolPython | e44ff5ee6d4c0468c789fb126b9da174b437448c | a04634de9866d16f3805a2e724766647de67eeab | refs/heads/master | 2020-04-13T17:29:01.249234 | 2019-06-14T08:41:05 | 2019-06-14T08:41:05 | 163,349,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,781 | py | # 比較版本 #比較 #list比較
# versions = ['3.2.1', '3.2.12', '3.12.0',
# '3.2', '3.1', '3.2.0', '3.2.20', '3.1.3']
def compareall():
for i in range(len(versions)):
for j in range(i, len(versions)):
compare2(versions[i], versions[j])
def compare1(s1, s2):
'''
l1, l2 長度不一定一樣 比如 3.2... | [
"jiangzero@gmail.com"
] | jiangzero@gmail.com |
356845675830efe2d5824c21600fcad33f696ed9 | 370102662418eaa5bb841e23d4253242ad1caecb | /WebScrap.py | 637b6a07bc5c300083421d90aab1888c7a542e8e | [] | no_license | DipalModi18/Fake-News-Detection | 43992ddf3fdd354b273faba0b92b9f105f8e47c2 | b8d3aa852242410464637c42a36fdd754c843530 | refs/heads/master | 2022-11-28T02:03:28.978685 | 2020-08-10T05:27:39 | 2020-08-10T05:27:39 | 283,576,713 | 0 | 0 | null | 2020-08-10T05:19:59 | 2020-07-29T18:45:36 | Jupyter Notebook | UTF-8 | Python | false | false | 221 | py | from newsplease import NewsPlease
article = NewsPlease.from_url('https://www.nytimes.com/interactive/projects/cp/opinion/election-night-2016/paul-krugman-the-economic-fallout')
print(article.title)
print(article.maintext) | [
"arpitkpatel@yahoo.com"
] | arpitkpatel@yahoo.com |
641cf3b122ff8250505462e1748406e61cd668ae | cd052f960846ea33e22abdded3106fb492f16c31 | /爬虫项目/spider/spiders/pdd_scroll_activity_v1.py | d403d0e6762fc4b10a4003e7d587fa88ba3abacb | [] | no_license | byst4nder/his_spider | 2d96457b70894c36506e8061d8a3201ac337a5d0 | a51e31acff41292e568ac22b0e213e6cb48218fa | refs/heads/master | 2020-07-21T12:06:28.952083 | 2019-09-06T14:25:58 | 2019-09-06T14:25:58 | 206,857,595 | 1 | 0 | null | 2019-09-06T19:04:02 | 2019-09-06T19:04:02 | null | UTF-8 | Python | false | false | 13,470 | py | # -*- coding: utf-8 -*-
# 首页滚动栏活动信息
import logging
import os
import scrapy
import json, time, sys, random, urllib, pyssdb, re
from spider.items import CategoryItem
from urllib import parse as urlparse
##import mq.mq as mq
##import ssdb.ssdbapi
class PddScrollActivityNewSpider(scrapy.Spider):
name... | [
"mac@macdeMacBook-Pro.local"
] | mac@macdeMacBook-Pro.local |
6adf53cebb80d1772bed5402847ef50ba0f46646 | 21429212ed7a5ac5b272f22896bed04f401b17cc | /pokemon_entities/migrations/0005_auto_20210412_2157.py | c3e926838942927f2ee61dfb66494e5aac94da88 | [] | no_license | fdrov/pokemon_map | 3e50497d0b0bdd465ac463e4127ae158c32ea090 | 74e3d754fae7220a559bfa39e25abb9ff50d7075 | refs/heads/master | 2023-04-05T04:56:15.982222 | 2021-04-20T17:41:40 | 2021-04-20T17:41:40 | 355,661,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | # Generated by Django 3.1.8 on 2021-04-12 18:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pokemon_entities', '0004_pokemon_description'),
]
operations = [
migrations.AddField(
model_name='pokemon',
name='ti... | [
"oldgot@gmail.com"
] | oldgot@gmail.com |
01fa6bacbb73a2d447e30cf4b8e4920c7f051557 | 50a6f90c46ee83e667de08be9c74acbaa792dbc5 | /python/timeseries.py | 70d73e0ca869e4e62d52871ce0b2a56e246504b9 | [
"MIT"
] | permissive | cpausmit/Kraken | e8f51a46e5d181e855bb9d2276b66c67e5842888 | e79a19f6a4570e10ae52e543a5af9b2a3414c965 | refs/heads/master | 2023-08-16T21:36:54.426014 | 2023-08-15T14:11:08 | 2023-08-15T14:11:08 | 75,231,636 | 0 | 2 | MIT | 2018-02-08T14:25:53 | 2016-11-30T22:09:47 | Python | UTF-8 | Python | false | false | 9,050 | py | import os
import datetime,time
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mlp
from optparse import OptionParser
import jsum
BASE = "%s/moni"%(os.getenv('KRAKEN_WORK'))
EXT = "moni"
NOW = datetime.datetime.now().strftime("%m/%d/%y, %H:%M")
class Timeseries:
"Time series of job summari... | [
"paus@mit.edu"
] | paus@mit.edu |
0071f6d25357b403c468cee9f14e317f1172b23f | a0488ed86f297f5f18864bf3f317dbed48b3b00d | /setup.py | 1dafa036d3e90c0bcceec24674af2c2720c35ab2 | [
"MIT"
] | permissive | DamianArado/moya-techblog | 7aefeea5bb74fa410e7cf896a83c0af0f4b0d25c | 4f7d606b22773db40850b742945e83e328c63bb7 | refs/heads/master | 2021-12-22T02:53:40.535675 | 2017-10-09T14:07:59 | 2017-10-09T14:07:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | from setuptools import setuptools
VERSION = "0.1.0"
setup(
name='techblog',
version=VERSION,
description="Blog for Coders and Photographers",
zip_safe=False,
license="MIT",
author="Will McGugan",
author_email="willmcgugan@gmail.com",
url="https://github.com/moyaproject/moya-techblog",
... | [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
1b2565db6961fe05e8795c79a40302080b830284 | 68b4cf94a24ed40b69153e60c8973d6f73a85ec1 | /ex009.py | abd394a533b954edbba8523ad11c801797ecbe85 | [] | no_license | vbuzato/Exercises-Python | 9cf1175fd5cd3267669dd0882402d70c8fdb910f | ea0dd93741ac557b0e59ff52a488506e428765f4 | refs/heads/main | 2023-01-28T05:09:45.957518 | 2020-12-05T21:37:31 | 2020-12-05T21:37:31 | 318,892,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | n = int(input('Digite um número: '))
print('{} x 1 = {}'.format(n, n*1))
print('{} x 2 = {}'.format(n, n*2))
print('{} x 3 = {}'.format(n, n*3))
print('{} x 4 = {}'.format(n, n*4))
print('{} x 5 = {}'.format(n, n*5))
print('{} x 6 = {}'.format(n, n*6))
print('{} x 7 = {}'.format(n, n*7))
print('{} x 8 = {}'.for... | [
"viniciusbuzato@gmail.com"
] | viniciusbuzato@gmail.com |
7ef9b4ebe1ab76118e00c6bcb1b77e997ca3dd90 | adb11e15d796ff522cd00730244e07efb59b6887 | /Services/Facebook/facebookService.py | a083240e284b94b73857080701f91944145bbcfe | [
"MIT"
] | permissive | miguelfoliveira/TeamUp | e13535ffcefb6127f869351ed0c1c103e7412dcf | 6f911fa4980c681707d01cad801964af5b306b34 | refs/heads/master | 2020-04-14T12:07:25.116377 | 2018-05-22T14:22:25 | 2018-05-22T14:22:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,792 | py | from facebook import GraphAPI, GraphAPIError
from flask import Flask, request, abort
from flask_restful import Api, Resource, reqparse
from flask_sqlalchemy import SQLAlchemy
from flask_oauthlib.provider import OAuth2Provider
from configurationParser import Configuration
from cryptography.hazmat.backends import default... | [
"oibaf3@live.com.pt"
] | oibaf3@live.com.pt |
61d025793e52cb79db17b160d78316d83b396cea | 4923baa67b0eb7038214c5140d38a724a4e382aa | /users_data_clean.py | 3b9a2796bc987e195f95971b9fb3634248fe532e | [] | no_license | ianmacomber/kaggle-airbnb | f1392144ed2e69b30db81aa2e377c020c0ca6a9d | 6494dbf96b3f503a9cd9229148c000d5d2abde74 | refs/heads/master | 2021-01-10T10:13:25.169699 | 2016-02-15T03:44:49 | 2016-02-15T03:44:49 | 49,469,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,392 | py | # Kaggle Users Data Clean
# I'm going to break out my python files based on what I use them for
# This is where I clean all my user data
'''
In this challenge, you are given a list of users along with their demographics, web session records,
and some summary statistics. You are asked to predict which country a new us... | [
"ian.d.macomber@gmail.com"
] | ian.d.macomber@gmail.com |
1161c88b6f97450eb92ecddc96a9913d4b4cdca6 | 6609c26b4ed72c156104ce282c3cf88c6aac59f6 | /chapter09/example02.py | 65652c91aa68ad1a2e42702ecbcabdda16ed64fc | [
"MIT"
] | permissive | yordanivh/intro_to_cs_w_python | 4ab9dbbc2963b285b22cacb6648d1300fded18ce | eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a | refs/heads/master | 2020-09-06T12:25:23.362118 | 2020-02-14T14:07:07 | 2020-02-14T14:07:07 | 220,423,698 | 0 | 0 | MIT | 2020-02-14T14:07:08 | 2019-11-08T08:41:25 | Python | UTF-8 | Python | false | false | 179 | py | #variable holding the last value of the loop
speed = 2
velocities = [0.0, 9.81, 19.62, 29.43]
for speed in velocities:
print('Metric',speed, 'm/sec')
print('Final:', speed)
| [
"yordan@hashicorp.com"
] | yordan@hashicorp.com |
8ff11b15220758d6e15ed630012105fb58803a5a | 60a76c1840323939cefd7ab52d427f1d8355f169 | /kdtest/pointprint.py | 3eba1062cff6faf5cd20aa274f4e09202843ed0b | [] | no_license | davidmoreno/waiwhereami | 736d1a072955d94f87930ad3bfb0a9fa4b3e1600 | 65691b37f6bfba486380acaa3b3553d3a5ca7124 | refs/heads/master | 2020-04-25T10:33:51.216214 | 2008-12-06T17:02:26 | 2008-12-06T17:02:26 | 34,042,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,759 | py | #!/usr/bin/python
from data import data
print 'loaded points'
minx=min(map(lambda x:x[0],data))
miny=min(map(lambda x:x[1],data))
maxx=max(map(lambda x:x[0],data))
maxy=max(map(lambda x:x[1],data))
print 'calculated mins and maxs'
print len(data)
print minx,miny,maxx,maxy
def remap(resx,resy):
return map(lambda x... | [
"monjemono@c62e0308-b7f0-11dd-a720-8bda5143708b"
] | monjemono@c62e0308-b7f0-11dd-a720-8bda5143708b |
ac343e0155b60ec2f81762e1c5236728c265ab91 | 7fe7c83f20b111bd66369029a06aca1b49026e92 | /dangdang/log_reg/views.py | f61fc7d74c5ed38fe6e72af666ba206da2936800 | [] | no_license | 520zhangjie520/175dangdang | ba9d8e12098d897cbd9d7d22119faae57833fee5 | e30658f673fdf4e9bfc276f47ae893367911ccf5 | refs/heads/master | 2020-09-08T01:21:27.948065 | 2019-11-16T11:32:28 | 2019-11-16T11:32:28 | 220,969,545 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,134 | py | import random
import string
from django.db import transaction
from django.http import HttpResponse
from django.shortcuts import render, redirect
from index.models import TUser
n=0
# Create your views here.
# 加密算法
import hashlib
def go_pwd(pwd):
pwd=hashlib.sha256(pwd.encode())
pwd=pwd.hexdigest()
return pw... | [
"508610057@qq.com"
] | 508610057@qq.com |
010eb71c6dba502bbd8bac02f93c78a83c2d7e0f | ccda7b39e2b4ce1f3c0869f2390712867b65b026 | /source code/ex07.py | 251c87a792875ec31de6fc203fac3ba04c180d0d | [] | no_license | ltc1996/lpthw | 008f784b9cd3fb3deac59623a12f3e724ef10ef7 | 522bbf2a59204aa7bc41b3fcb3aca0e317978f18 | refs/heads/master | 2020-04-24T01:28:54.967356 | 2019-03-24T13:27:21 | 2019-03-24T13:27:21 | 171,599,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | print("mary had a little lamb")
print("its fleece was white as {}.".format('snow'))
print("and everywhere mary went")
print("." * 10)
end1 = "C"
end2 = "h"
end3 = "e"
end4 = end3
end5 = "s"
end6 = end3
end7 = "B"
end8 = "u"
end9 = "r"
end10 = "g"
end11 = end3
end12 = "r"
print(end1 + end2 + end3 + end4 + end5 + end6,... | [
"543869424@qq.com"
] | 543869424@qq.com |
a2c26d53f59e4315f0c13f9eb58dbb953426439d | 4d264aa58879ef0dc2de8b4fc1f451e9a5d07ddf | /modules/urban.py | cef0c24e07f3a2bf2dcc4e7abf82ac8789bd027f | [
"MIT"
] | permissive | andimiller/twistedbot | 6d74822db6be56fd3f538615f7afa2675c3a1482 | f462385ab951f1b74e19a2ebb6b3d58da4e2a03f | refs/heads/master | 2021-01-10T14:30:55.694947 | 2017-10-12T16:36:20 | 2017-10-12T16:36:20 | 45,875,119 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | #!/usr/bin/env python
import urllib
import re, htmlentitydefs
from BeautifulSoup import BeautifulSoup
def unescape(text):
def fixup(m):
text = m.group(0)
if text[:2] == "&#":
# character reference
try:
if text[:3] == "&#x":
return unichr(i... | [
"andi@andimiller.net"
] | andi@andimiller.net |
43d16f0988ab455337fcb6202e1a6eb4f5ad6498 | 91691cc37997ab4c7311399db5a1b1f7a7a90e39 | /shibadopt/shibadopt/urls.py | 62db449bafad2ef06a79b5d4d6a4dac06760f53a | [] | no_license | hector323/django-example | eaeee140efb44675ab9ee7fe0a1140ee778e4a8a | 576e630ee1268af6d6cdf6c93a02d1fdad3ae83e | refs/heads/main | 2023-02-07T13:15:24.451029 | 2020-12-30T02:01:41 | 2020-12-30T02:01:41 | 324,910,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | """shibadopt URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"53808824+hector323@users.noreply.github.com"
] | 53808824+hector323@users.noreply.github.com |
0d27750ce99c8c18a5923c64632244d105516aa3 | b82dfda86d628dc54af67efe95b39073a8523f24 | /snakeGamePython/homepage.py | 657d2d20643dad9f88c834f913f4789dfeff0a0f | [] | no_license | ShaheensWeb/PythonCode | 3b2e167a2db42aa7b93498d7309672e0c974df8d | 359c6c3fa8648ed1c35eb43d7387090778e9730c | refs/heads/master | 2020-04-05T23:17:24.822097 | 2014-03-28T02:38:07 | 2014-03-28T02:38:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,438 | py | '''
Name: Shaheen Ghazazani
Class: Comp1405b
Date: Nov 11th, 2013
Assignment: Make a PYGAME A#8
Prof: Pat Morin
Due Date: Nov 18th, 2013
'''
from __future__ import division
import pygame, random, sys
from pygame.locals import *
#from snakegame import *
import math
class Start_Screen(object):
def... | [
"shaheenghazazani@gmail.com"
] | shaheenghazazani@gmail.com |
c6cb8ca5ce4ef25527c5bf4e208fb801b958a222 | 71bd7e5cee407f27ea601eba99431a7d71c0ca18 | /marks/urls.py | cbff57042b104c1cc07156d9b4c5aa92f8038f38 | [] | no_license | tinashemahwenda/django-exam-position-app | 3fa9ad0af8695943e6f49c693e4a26ef2d2f023c | 787f501ffb55c1f6dc52ade8c84e3a04a7bebe13 | refs/heads/master | 2023-03-19T22:43:34.829722 | 2021-03-20T14:07:37 | 2021-03-20T14:07:37 | 183,702,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.table,name='marks-table'),
] | [
"40965708+tinashemahwenda@users.noreply.github.com"
] | 40965708+tinashemahwenda@users.noreply.github.com |
8d506e901341ca9f597b8e0d69a411d5cffd3adc | fdb950317e348baa10975a4b0fff55e4e39eb040 | /htdocs/plotting/auto/scripts100/p125.py | a7b5022c90e03c56ab1ff9b6ce200b8bfb8a8e1a | [
"MIT"
] | permissive | MediaPlex/iem | 5d4938f14d0c1b5c1ea4f46f8e05c84a88727fed | b6bcb1c0cedc8a75740b78f830742a765e21ab8b | refs/heads/main | 2023-04-26T10:40:50.786980 | 2021-05-30T11:43:28 | 2021-05-30T11:43:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,361 | py | """Maps of averages"""
import calendar
from collections import OrderedDict
import datetime
import numpy as np
from pandas.io.sql import read_sql
from pyiem.plot import MapPlot, get_cmap
from pyiem.util import get_autoplot_context, get_dbconn
from pyiem.exceptions import NoDataFound
import cartopy.crs as ccrs
PDICT = ... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
6a1c3d479ea9cc372e24d01b041009b9a14cc59b | 1a26938f9a9f6375804b1671e050bc32a933fcbc | /estaciones/admin.py | 5814623b2714cf9cc5e96aa9a1e366716761105f | [] | no_license | RicardoBurboa/cyber-gamer | f6c475e8bb7191bbc88fdcbcee19c12824d20909 | e1cdc17b6833ccba5be4fe871c541280f93aad5a | refs/heads/main | 2023-03-31T04:51:00.118789 | 2021-04-03T17:27:07 | 2021-04-03T17:27:07 | 354,349,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from django.contrib import admin
from .models import Estacion
admin.site.register(Estacion) | [
"noreply@github.com"
] | RicardoBurboa.noreply@github.com |
15a1b24d286fc19043e60ed5c1e76bdc7b0136fe | 66c72be1e369df2289715905db4ec5b3f7f4e48c | /funcs/patch_loader.py | f7a2c9e05b45e44a86d720805ad6e3c76a6e4b67 | [
"Apache-2.0"
] | permissive | wenchenhui/research | eb4cd54091b8c61540692cba057c6cbcadb7e036 | 22d7b7aad2aa892f1090418f58ebc0ec8759cf9c | refs/heads/master | 2021-07-25T21:05:26.934329 | 2017-11-07T11:56:35 | 2017-11-07T11:56:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,536 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 19 16:29:21 2017
@author: eduardo
"""
import glob
import os
import random
import threading
import numpy as np
from scipy.misc import imread
classes = ["positive","negative"]
directories = ["train","validation"]
initial_path = "/home/eduardo/dataset_test/"
list_of_files... | [
"edux300@gmail.com"
] | edux300@gmail.com |
5493707f3aa5a58f2e02912d4cd175ca13ecf03d | 54fb9de920fd7d64520c7251b108ad1a5dabafc2 | /tweet/models.py | 64e57fd3ec792b06cd0fd64ee161bbae78d39d46 | [
"MIT"
] | permissive | jkube38/twitterclone | 4bd2b3cd8450dfe0e50e5f412060f822fd2e46e6 | f25f2cdd81dcb0e2f12e8511c31f46cd0f1ea40f | refs/heads/main | 2023-04-23T09:17:58.683684 | 2021-05-14T15:06:44 | 2021-05-14T15:06:44 | 367,244,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | from django.db import models
from twitteruser.models import Tweeter
from django.utils import timezone
# Create your models here.
class Tweet(models.Model):
body = models.CharField(max_length=140)
author = models.ForeignKey(
Tweeter,
related_name='tweet_author',
on_delete=mo... | [
"jkube29@gmail.com"
] | jkube29@gmail.com |
55975b35d008f8b4dddbc1c5c47ae99ff5a4998d | 04e1c60ac7864a0bdcdd41026a2336b1ff699613 | /model/ll.py | f5098ecc5ce3319e31d675292eb699f307ed938b | [] | no_license | jianzhnie/RetinaNet_Pytorch | 00ec318d2e57c6b646f193e4d3a066f9891762b3 | 03679766847757f28bb9410c31ddaf99adf524c8 | refs/heads/master | 2020-09-22T00:09:18.617565 | 2019-11-30T08:27:36 | 2019-11-30T08:27:36 | 224,981,680 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,015 | py |
from __future__ import print_function
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
class FocalLoss(nn.Module):
def __init__(self, num_classes):
super(FocalLoss, self).__init__()
self.num_classes = num_classes
def _one_hot_embeding(sel... | [
"jianzhnie@126.com"
] | jianzhnie@126.com |
423162c1f2fef26ab7a32077a515e55f169f1bde | 5d3f7337e2a999ea5a026f0c3893f286096d63a5 | /workshops/scv/exploit.py | 7303363378feba9c6760a01a3e7341a75b286165 | [] | no_license | Helithumper/ctfs | 03f260b4f8d7837cafd47f09213e5c8434a9d4a5 | 352e54019f1ebf7f6ad8b22c45cb147b5fe9e5f2 | refs/heads/master | 2023-03-18T04:31:34.148834 | 2018-05-22T23:14:14 | 2018-05-22T23:14:14 | 111,434,729 | 5 | 0 | null | 2021-03-19T23:14:03 | 2017-11-20T16:24:06 | Python | UTF-8 | Python | false | false | 495 | py | from pwn import *
target = process("./svc");
gdb.attach(target)
target.recvuntil(">>");
target.sendline("1");
print target.recvuntil(">>");
payload = 168*"0"
target.sendline(payload);
print target.recvuntil(">>")
target.sendline("2");
print target.recvuntil("[*]PLEASE TREAT HIM WELL.....\n")
print target.recvl... | [
"peyton.duncan45@gmail.com"
] | peyton.duncan45@gmail.com |
f0ff4f0567586c4dc9dd54b5497b4819f77b2378 | 855416c669f765e4cd0f5a749e82c112641a9e11 | /Interest.blog-1.1/utils/public.py | 9cdb4342017ac3c51968c900609d649d1726535b | [
"MIT"
] | permissive | chenzhenpin/my_flask | a2f63422921d4b73c25a8e093ad09e6a48f8b568 | 0c101b7a1aa01283a0b8e3ef9b7555750ea03ecb | refs/heads/master | 2022-11-28T20:16:35.854225 | 2018-11-27T16:04:29 | 2018-11-27T16:04:29 | 159,362,205 | 0 | 0 | null | 2022-11-22T01:37:36 | 2018-11-27T16:02:52 | CSS | UTF-8 | Python | false | false | 5,254 | py | # -*- coding:utf8 -*-
import requests
import hashlib
import datetime
import random
import upyun
from uuid import uuid4
from log import Syslog
from config import SSO, MYSQL, PLUGINS
from torndb import Connection
from flask import g
#Something public variable
md5 = lambda pwd:hashlib.md5(pwd).hexdigest()
tod... | [
"1595347682@qq.com"
] | 1595347682@qq.com |
d3c12ecc3bf557c52a384c93b97f64646bb713d1 | 871fde211d04008ff03c4bafe55cca4a5ecbab39 | /BacHelp Discord Bot/src/threads/CommandsHandlerThread.py | 516351ac6acb7d6498b138f1c7286491bfd7617a | [] | no_license | alinursu/resume | 8f12cb38bf8a5a54715a91bcf5664420fdca52c9 | 2f5905681e24f593cd8a728e239c886c25ac0602 | refs/heads/master | 2023-06-03T17:35:13.884113 | 2021-06-13T11:09:56 | 2021-06-13T11:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | import discord
from discord.ext import tasks
from src import Globals
from src.commands.Adauga import adauga, adauga_error
from src.commands.Punctaj import punctaj, punctaj_error
from src.commands.Kick import kick, kick_error
from src.commands.Ban import ban, ban_error
from src.commands.Avertisment import avertisment, ... | [
"33602125+ursualin7890@users.noreply.github.com"
] | 33602125+ursualin7890@users.noreply.github.com |
aaf6b5286be9fd90854b5eead1839224c83e2099 | 92c7e8450e87af623b1147d96c4b820afea27faf | /myenv/bin/pip2.7 | 1d3d0e92f02d3800957a14b74ad958a402e3d8ea | [] | no_license | pg12575/PythonOpenHAB | fd53930ee77c5fdb3bb535b96fbbe084ed7fedb9 | bf9dc68eb14cd651c527fa7416dd1df03c5372fb | refs/heads/master | 2021-09-08T08:21:55.280702 | 2018-03-08T15:28:22 | 2018-03-08T15:28:22 | 87,992,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | 7 | #!/home/p-gupta/Documents/AssistedLivingStudio/PythonUI/myenv/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())
| [
"prankit.gupta@brl.ac.uk"
] | prankit.gupta@brl.ac.uk |
21cd65c90c50f8100dd54c7bcf1d088ca1c98afd | 634b694fdb70fd409a7a1523e6bccfc183bc1cc8 | /day_or_night.py | 35355f7daa36bb50726c55fe8d37f74153e39659 | [] | no_license | Royz2123/Project-Delta | c68113a690dcee086ccdef488898357b04ca3e24 | 8d9a4045e5b4d386087e88eb8826fc1bd1eb8c2d | refs/heads/master | 2020-05-07T16:18:43.931527 | 2019-06-20T05:56:19 | 2019-06-20T05:56:19 | 180,660,963 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | import numpy as np
def is_night_mode(img):
return np.allclose(img[:,:,0],img[:,:,1]) and np.allclose(img[:,:,1],img[:,:,2])
| [
"doron12109@gmail.com"
] | doron12109@gmail.com |
2deecf0c6e29a31524a7193cfdef1a2282fe3a41 | 62c3148abdab12ba1bd8744c1ac9f7e6c65e075c | /userbot/plugins/pmpermit.py | c52aed644d4d0e090427a3d6aaa6babece057dc9 | [
"MIT"
] | permissive | Denver-sn/rushi | 1c62bdf9f69c9bece4b67a37e29202d19292a037 | 1c87de7886dcae75d3cd43a7e0da1c45c038fd70 | refs/heads/master | 2022-04-23T07:35:12.318291 | 2020-04-28T02:14:50 | 2020-04-28T02:14:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,117 | py | import asyncio
import io
import userbot.plugins.sql_helper.pmpermit_sql as pmpermit_sql
from telethon.tl.functions.users import GetFullUserRequest
from telethon import events, errors, functions, types
from userbot import ALIVE_NAME, LESS_SPAMMY
from userbot.utils import admin_cmd
PM_WARNS = {}
PREV_REPLY_MESSAGE = {}
... | [
"noreply@github.com"
] | Denver-sn.noreply@github.com |
d811f0fa00d17232f89aad5e9a858b2478978a6e | 67c00ec5f7aa0ed76747c7819827ed70dba4e0d3 | /dataVisual.py | bbfddd4ea4a38e70b17064160e51a79557420cc3 | [] | no_license | DejaVuMan/data_visualization | d6ff9a19865cce9c65c69af074012eca911d7c48 | 87ed578c76fa924d9161408a0c7396c8d37a80bf | refs/heads/master | 2021-02-05T09:14:27.569625 | 2020-04-26T17:30:42 | 2020-04-26T17:30:42 | 243,763,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | import pandas as pd
#import nump as np
df = pd.read_csv('file:///C:/GitRepo/data_visualization/temporal.csv')
df.head(10) #view first 10 data rows | [
"szuszkiewiczalan928@gmail.com"
] | szuszkiewiczalan928@gmail.com |
a193ad9d8cf0b7edb6fea29bdc621f469c12e0ba | 9653d2c933c95f6a7e956751814a38a935fabf14 | /source/code/menu_addFontGuideline.py | c211b008a1cac518efa7bbec3cc9d5b7c1ee2e90 | [
"MIT"
] | permissive | benkiel/guidetool | f98863c72920bbddc9fb355852a42c1e441f02ea | ee6f4fce8f472622ab20a3b09bf4594f5631be25 | refs/heads/main | 2023-06-18T21:39:24.269399 | 2021-07-15T00:41:33 | 2021-07-15T00:41:33 | 387,886,590 | 0 | 0 | MIT | 2021-07-20T18:54:21 | 2021-07-20T18:54:20 | null | UTF-8 | Python | false | false | 690 | py | import AppKit
from fontParts.world import CurrentGlyph
from mojo.UI import getDefault, CurrentGlyphWindow
from guideTool.guess import guessPositionAndAngleFromSelectedPoints
from guideTool.editor import GuidelineEditorController
def run():
glyph = CurrentGlyph()
if glyph is None:
return
font = glyp... | [
"tal@typesupply.com"
] | tal@typesupply.com |
3e0fe0fde817f94bca45c79b2e2f4440d611b06d | f30879f4b179e1c5c3421ae742637b6f551b1ac2 | /nutrition/forms.py | 9da6bb0bc59b2faa17bffa70ca72d522db57ce27 | [] | no_license | NadiiaSky/Nutrition_project | 3feba922e13c72f6d281940124e4f6063e64bcdc | 851640f99d20dd82d9f915a9fc3f2ac59dfebd5c | refs/heads/master | 2021-08-08T01:51:27.676416 | 2020-12-12T15:29:00 | 2020-12-12T15:29:00 | 230,262,386 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | from django.forms import ModelForm
from nutrition.models import Profile, MedicalInfo
class ProfileForm(ModelForm):
class Meta:
model = Profile
exclude = ('id', 'user', 'medical_info')
class MedicalInfoForm(ModelForm):
class Meta:
model = MedicalInfo
exclude = ('id', )
| [
"50778551+NadiiaSky@users.noreply.github.com"
] | 50778551+NadiiaSky@users.noreply.github.com |
7e549a2d15c4662c8fce99e620ef3bffe70fcc3c | 779d1cc4dffe84b684151c960f32582d52a8dfab | /AMUN/scripts/rayMap.py | 96731428a442712d4fd5b9992685a88acb4ffc3a | [] | no_license | samgeen/mcrtscripts | 11a0492d150d8a18aa73c6c6bb261a6827bcea6a | d1ecb297daabc559e2a0ef045e5c032d4e492fb0 | refs/heads/master | 2023-08-08T04:54:08.234749 | 2023-07-28T12:39:56 | 2023-07-28T12:39:56 | 119,535,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,848 | py | '''
Calculates ray-traced maps with pymses
RB I guess but heavily taken from Sam Geen 2018
'''
# Get all the startup modules for the project
from startup import *
# Various extra pymses visualisation imports
from pymses.utils import constants as C
import pymses.analysis.visualization as v
scop = v.ScalarOperator
fro... | [
"samgeen@gmail.com"
] | samgeen@gmail.com |
906110453982b3a15fab2e66ad28557d52786b5f | e0921b46a21d58c58f01d7313fcc8348a2acf944 | /photobase/settings.py | 22a8f423103770755620d8ea1eda0a2bbcb4d0f0 | [] | no_license | jcaxmacher/photobase | 03f1239d64ed77c8e837e24d008563c6aa1c6a40 | 0f99f967d287e9780852c322b910f914bec989a9 | refs/heads/master | 2021-05-27T22:07:55.424971 | 2012-11-13T16:07:45 | 2012-11-13T16:07:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,990 | py | import os
DB_USER = os.environ['PHOTOBASE_DB_USER']
DB_PASSWORD = os.environ['PHOTOBASE_DB_PASSWORD']
HOME = os.path.realpath(os.path.join(
os.path.realpath(__file__), '../..'))
MEDIA_HOST = 'http://localhost:9898/'
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('Jeremy Axmacher', 'jeremy@obsole... | [
"jeremy@obsoleter.com"
] | jeremy@obsoleter.com |
7a6ef61f7854259825463f700d22f5aa87578b05 | 8306860aed8771dfb4e9f50a41e13b73c9c94f8a | /Decision Trees/code work/Building a Decision Tree-90.py | 4471ee14de3424b8d0c4c8a903a022d083c14916 | [] | no_license | iopkelvin/DataQuest | 5eea2c22cc8b2a14837f35b74fea334801bd2891 | 96525abc6bd5fca27c96997035e32ad9f76236a4 | refs/heads/master | 2020-05-03T11:50:51.714429 | 2020-04-23T23:51:21 | 2020-04-23T23:51:21 | 178,610,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,971 | py | ## 4. Determining the Column to Split On ##
def find_best_column(data, target_name, columns):
# Fill in the logic here to automatically find the column in columns to split on
information_gains = []
# Loop through and compute information gains
for col in columns:
information_gain = calc_informat... | [
"iopkelvin@gmail.com"
] | iopkelvin@gmail.com |
2a7d09228483b3b7c912600fea60bd9f300653f9 | 6b10d7a745b70d3b8533ea91b7bf1052e43b7d70 | /Week 4/Admin_page/main/migrations/0002_auto_20180930_2229.py | 9e5cf7c3c18d3c670ba02c13dfc5ff2f2fa3db2a | [] | no_license | Ablay09/BFDjango | 9701f6b1d36d54e6a2b511c57374e47ac0048d0e | c41423f5e86bad107769f518eeca2bfefd524919 | refs/heads/master | 2020-03-27T21:33:55.433951 | 2018-10-12T20:14:12 | 2018-10-12T20:14:12 | 147,101,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | # Generated by Django 2.1.1 on 2018-09-30 16:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='task',
name='created_date',
... | [
"ablay.yedilbayev@gmail.com"
] | ablay.yedilbayev@gmail.com |
c07b75d16c6a9d140e590d268b51632f6b7f93bc | c8e44c50bcc77c6ad5d95516dcec8dada7c284bd | /gidgethub/abc.py | 444cf02043c0df46f44a1acc14c6f691ffc35f44 | [
"Apache-2.0"
] | permissive | Lukasa/gidgethub | 495510e276cd34f7b9c37431f3b3b011d02b0795 | 6b3dc032f1fcdf0fbf23dfb061f11588798c1e7e | refs/heads/master | 2021-01-18T16:04:54.012847 | 2017-03-08T00:51:29 | 2017-03-08T00:51:29 | 84,348,121 | 0 | 0 | null | 2017-03-08T17:31:09 | 2017-03-08T17:31:09 | null | UTF-8 | Python | false | false | 4,473 | py | """Provide an abstract base class for easier requests."""
import abc
import datetime
import json
from typing import Any, AsyncIterable, Dict, Mapping, Optional, Tuple
from . import sansio
class GitHubAPI(abc.ABC):
"""Provide an idiomatic API for making calls to GitHub's API."""
def __init__(self, requester... | [
"brett@python.org"
] | brett@python.org |
17bd7ca48f89be71791e92660e04a2e0d3565fd4 | 82dd7e2561a1e4a9ecd0ac23de428e2621cd57af | /gnaf-hex-tag.py | 66272adfca871570b78a6e4567cc596438eace59 | [] | no_license | neerja-git/locate16-hack | 1bf8d4e81d96cb8db0d49bcf4304ed6d4e78ed14 | 60e855f2010e9d681b0df026ad2934d075e7e6db | refs/heads/master | 2020-05-30T11:22:01.350350 | 2016-03-20T08:49:48 | 2016-03-20T08:49:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,355 | py | import multiprocessing
import math
import os
import subprocess
import psycopg2
import argparse
from datetime import datetime
def main():
parser = argparse.ArgumentParser(
description='Tags GNAF address points with hex PIDs.')
parser.add_argument(
'--max-processes', type=int, default=6,
... | [
"hugh.saalmans@iag.com.au"
] | hugh.saalmans@iag.com.au |
aa0d8aa8f733ccf3ece29c14f5ecb5328bc7f469 | b3a2719f3950abc8ee3724e26d5af0ca4bb33940 | /article/migrations/0004_auto_20190110_1420.py | abe9d012cd0423fa5c3670c9b861fdcc46d65d23 | [] | no_license | iskylarkus/djangoblogapp | 828b79b3bbf33c2bb3866728d42460047b7fe36d | 52efdff19df91c762641e66bdfd3ffe87e1c18c5 | refs/heads/master | 2020-04-16T03:37:13.945501 | 2019-01-11T12:16:03 | 2019-01-11T12:16:03 | 165,237,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | # Generated by Django 2.1.5 on 2019-01-10 11:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('article', '0003_comment'),
]
operations = [
migrations.AlterModelOptions(
name='article',
... | [
"turgay.kibar@gmail.com"
] | turgay.kibar@gmail.com |
3c1c6a4b656c10f246c1495bde62371bbd9fdf3b | a669d3755ca2b9c5d35adf607f40f043159d06c5 | /numpy_example.py | 0917a2741f884e274e864f4d06b46e49970eae4f | [] | no_license | jsvivical/PythonStudy | 7fc3fe524b88515c45ab59ac95535ea89c28cd96 | 9462bea4abe7248f0f83e6077a3d45860a5806e1 | refs/heads/master | 2023-06-09T06:45:07.035822 | 2021-06-27T09:00:14 | 2021-06-27T09:00:14 | 380,693,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | from typing import no_type_check
import numpy as np
a = np.array([1])
b = np.array([9])
c = a * b
print(c) | [
"jsvivical@gmail.com"
] | jsvivical@gmail.com |
a4332e2eeb3b16dc757d9bfd3a5eed01ba25efe3 | fef7cfae5c35e7248a7057a83f9763c686a6397c | /theory/03-Data Structures/DS11.py | a0ad1543a11627897c9083d5cec976cf81efa782 | [] | no_license | beajmnz/IEDSbootcamp | 41710965712d7650d101cbe910ea061b1cbb4c2b | 0b03a7c54711df469025602847c0f2be8541d234 | refs/heads/main | 2023-06-06T03:16:25.690091 | 2021-06-25T10:41:39 | 2021-06-25T10:41:39 | 360,922,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | #! /usr/bin/python3
# -*- coding: utf-8 -*-
"""
Created on Tue May 11 09:18:34 2021
@author: Bea Jimenez <bea.jimenez@alumni.ie.edu>
"""
"""
Create a program to erase duplicated values from a list
"""
inputValues = [16,2,3,45,5,6,72,8,9,45,7,6,3]
print(set(inputValues))
| [
"github@ainda.net"
] | github@ainda.net |
03b6c8ed182aef785c6a89d97cc61d9bf2a04851 | b253b1d636f503730172bf6802ab4101f780e827 | /in_place_reversal_of_a_linked_list/reverse_the_first_k_elements/main.py | 6e560ec03fc73ecdf6c5295e722d3882585f4dda | [] | no_license | luckydimdim/grokking | 1943046a1d431ba3e7ad0d69705c6537d3a03de5 | 77ea7ca5213d2e8a90a979db05f1a7901c79cfa1 | refs/heads/master | 2022-10-16T02:19:52.784417 | 2020-06-14T15:45:17 | 2020-06-14T15:45:17 | 262,490,056 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | from __future__ import print_function
class Node:
def __init__(self, value, next=None):
self.value = value
self.next = next
def print_list(self):
temp = self
while temp is not None:
print(temp.value, end=" ")
temp = temp.next
print()
def reverse_sub_list(head, k):
'''
Reverse... | [
"msk.roytop@gmail.com"
] | msk.roytop@gmail.com |
d591a085d6bed761a3f54aeca065dd5e62184548 | b9c267434c191b97204c3be055cc5047d5d5092c | /wordcount/urls.py | b9e053c58f65c87a8ddc554a4c279f959c7a726f | [] | no_license | yuyan12/wordcount | 38e48dafb8a5ad9cbbefd27b1353349e82e3c2ac | 3c97ed9c09f34e4418cbe7fa5e1a46b4dc7c6ba3 | refs/heads/master | 2020-05-20T01:08:38.218197 | 2019-06-04T09:36:02 | 2019-06-04T09:36:02 | 185,303,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | from django.contrib import admin
from django.urls import path
from . import function
from django.views.static import serve
urlpatterns = [
path('admin/', admin.site.urls),
path('', function.home),
path('count/', function.count),
path('about/', function.about),
]
| [
"390226569@qq.com"
] | 390226569@qq.com |
6ed267aeae11220be1703b4d34bb3dba6f9c1e9e | 366bd2ae6cbd4a2473fd43bac750481b630ceb57 | /leetcode/leetcode680:验证回文字符串.py | 8f559c8f9e238e7c20e084072f3749f29c2646dd | [] | no_license | yuandanding/leetcode | 4220bc3794e96c95a35f563ec3fe97f1f9553f71 | 7255be63a317b9b4fd2318caeefd5c161de620af | refs/heads/master | 2020-04-07T04:11:50.990013 | 2018-11-23T14:33:03 | 2018-11-23T14:33:03 | 158,044,120 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | class Solution:
def validPalindrome(self, s):
"""
:type s: str
:rtype: bool
"""
def isPalindrome(s):
if len(s) == 1:
return True
for i in range(0,int(len(s)/2)):
if s[i] != s[-1-i]:
return False
... | [
"noreply@github.com"
] | yuandanding.noreply@github.com |
290d3203146f7bb21233768fb71048bd21a9cb74 | 91972cffc0e95e634c5752a2befdf141c494c24d | /module_study_samples/爬虫/1、笔趣看小说爬虫抓取.py | fb7fdd9afcbbd911bcdf9c43ee0aad059384549f | [] | no_license | liseen001/MyProjects | 99d48fe58109565eec4eabf027f892b4881b5df0 | 0572de7a6f78a9d9474971e98794d88bce03994d | refs/heads/master | 2023-05-15T06:02:19.969378 | 2020-09-07T15:31:08 | 2020-09-07T15:31:08 | 258,478,084 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | #!/usr/bin/env python
# encoding: utf-8
# @author: Mrliu
# @file: demo.py
# @time: 2020/5/13 23:09
# @desc:
'''
1、获取整个网页的HTML信息
2、解析HTML信息
'''
from bs4 import BeautifulSoup
import requests
if __name__=="__main__":
target="http://www.biqukan.com/1_1094/5403177.html"
req=requests.get(url=target)... | [
"939856019@qq.com"
] | 939856019@qq.com |
279c13ad808c93f74b5d72b07a21f6c183cc5b6c | ef93b02f66b4ec7dfdf0b1f9ee6840d455115dfe | /treasure/classico/migrations/0002_link.py | 6f6eb15f623bbc56691fb1cbb796ff5234bb3038 | [] | no_license | ifrs-alunos/heathers | 0edc61e4ec15bfb8ef1b05ca95af94315cbd34a2 | 0e24ae5118ba265574965f0d197f1d09d9fb6909 | refs/heads/master | 2020-04-30T09:32:27.330720 | 2019-12-12T03:24:59 | 2019-12-12T03:24:59 | 176,750,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | # Generated by Django 2.2.6 on 2019-10-03 17:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('classico', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Link',
fields=[
('id', mo... | [
"rlsantos@vacaria.ifrs.edu.br"
] | rlsantos@vacaria.ifrs.edu.br |
4e2c74cc722170506dc105fdc9e3821ce402548f | ce6c7126213b50e8413eb6ec6f76b929e3dfb426 | /pythonlearning/day1/day1test.py | a47f5785652b49bc5ac80dd380b39d56f63fb1c5 | [] | no_license | ImbaDDV/StockPython | 8bcafe788ca9383631466902720b91daa146afa7 | 48fd1536c269b3f8099ad496d83db1e8f59d53ea | refs/heads/master | 2020-03-17T23:27:35.763853 | 2019-11-05T00:53:04 | 2019-11-05T00:53:04 | 134,046,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | import this
#美丽比丑陋好
Beautiful is better than ugly.
#显式比隐式好
Explicit is better than implicit.
#简单比复杂好
Simple is better than complex.
#复杂比凌乱好
Complex is better than complicated.
#扁平比嵌套好
Flat is better than nested.
#间隔比紧凑好
Sparse is better than dense.
#可读性很重要
Readability counts.
#特殊情况也不足以打破规则。
Special cases aren't specia... | [
"250110242@qq.com"
] | 250110242@qq.com |
691c3ff338a1ccb41c10aa1f1238e89443e8e37f | d7b1759310f6ef059a765c3e9985966552d7490c | /basicapp/admin.py | 9a1ebf76a1be45bc669e9edb65a133b60d02c36c | [] | no_license | dish34/Quiz | 611d549d591a2d0615178a0343418489cbc5f726 | 10ae37ca555d7551e2937fcfbe7cf13fa330467c | refs/heads/master | 2020-04-26T08:42:59.756441 | 2019-05-04T12:54:00 | 2019-05-04T12:54:00 | 173,432,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from django.contrib import admin
from .models import UserForm
# Register your models here.
admin.site.register(UserForm)
| [
"dishantgandhi99@yahoo.com"
] | dishantgandhi99@yahoo.com |
e2a2d35c0ecf55ae88999eaaf4e84ea0e31ee1cc | 8af78f7e7a07243ba00eb1347dc86df9056207db | /myFlaskProject.wsgi | c4e849aafa608366ff9372b927b99a7c6f3e4b40 | [] | no_license | bellimeow/portfolio | d8d73c26aac1e776dbdce8c4638ab973b1638393 | db48d65ace0081639841915d74b539060ec0845c | refs/heads/master | 2022-10-05T06:42:09.906574 | 2022-10-02T01:42:09 | 2022-10-02T01:42:09 | 160,346,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | wsgi | import sys
sys.path.insert(0, "/var/www/html/TDP003-Portfolio/")
from myFlaskProject import app as application
| [
"root@ip-172-31-7-113.us-east-2.compute.internal"
] | root@ip-172-31-7-113.us-east-2.compute.internal |
a1de6b0051b5f4b950da5fbc4317fa53cfa84f13 | 9e66291139f81eec328e14a8d6ee05ed9f95bee1 | /player.py | d3fa8f3addaeb5d1b9d16adef5143b6707529f62 | [] | no_license | rickmrts/hangman | 7708a58011197291f7b67e13dbbf15ec2610a61c | 7476f86e50e142d1e6ace63d1283dabec23d481e | refs/heads/master | 2021-01-20T19:14:38.797475 | 2016-08-15T21:07:48 | 2016-08-15T21:07:48 | 65,765,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | #!/usr/bin/python
# -*- coding: utf8 -*-
import socket,os
HOST = '191.52.64.227'
PORT = 3001
tcp = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
dest = (HOST, PORT)
tcp.connect(dest)
print 'Para sair use CTRL+X\n'
msg = raw_input('Deseja iniciar o jogo pressione ENTER')
print(tcp.recv(2048))
while msg <> ('... | [
"noreply@github.com"
] | rickmrts.noreply@github.com |
9d0ed1fa72fbe9742255eefb04af26b5ede59b67 | 141ea5938123655e1a0d24380afa70a58c33e413 | /categories/urls.py | a1b86ece6e5ce3b3705f056f0934def3f62fee15 | [] | no_license | stonaz/whereisit | 874c46dc2404985c9bb0af8d4c5ee9dbe43557cd | 8ed52e114e11d59311d7d12f49a393eef33b6839 | refs/heads/master | 2016-08-09T05:11:31.281910 | 2015-11-17T17:33:12 | 2015-11-17T17:33:12 | 44,975,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | from django.conf.urls import patterns, url
from .views import *
urlpatterns = [
url(r'^$', CategoriesList.as_view(), name='api_categories_list'),
url(r'^create/', CategoriesCreate.as_view(), name='api_categories_create'),
url(r'^(?P<name>[-\w]+)/items/$', CategoryItemsList.as_view(), name='api_categories_... | [
"stefano.tonazzi@gmail.com"
] | stefano.tonazzi@gmail.com |
9cc7cb10f0a538f0d1963980d7b65342a1a57fde | b0e9f2b0ab848cb15828a916c775e96b0dee74d3 | /film.py | 2003ec915a1b59818d8434711135a5bc69efa495 | [] | no_license | agengowill/python_files | 31e48e1fe363eac1030cf59ad0957e457d70ee02 | d6bb9c430ce22e2c647d1e6ef8035e898461614f | refs/heads/main | 2023-02-26T14:30:05.002922 | 2021-02-09T07:57:41 | 2021-02-09T07:57:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | films = {"Star Wars":[13,17],
"Lion King":[4, 12],
"Game of Thrones":[16, 1],
"Toy Story":[9, 8]
}
print(films)
while True:
choice = input("What would you like to watch?: ").strip().title()
if choice in films:
age = int(input("How old are you?: "))
... | [
"noreply@github.com"
] | agengowill.noreply@github.com |
1ba7ed3f3e6972ac5d2d780b49ba2a2b641a4ba6 | d89290fd2ecc166287e065784ae290a516ca2cef | /archives/convert_framerates.py | 83c83ead40072e2feef33d6b123b8c9ad4acad3f | [
"MIT"
] | permissive | rec/bbcprc | adc85ca3fd7a7b303c83323c2bdf63d44654112f | d4f4fee5f5c0beaf9c23af6e1655dbb49f3912e3 | refs/heads/main | 2023-02-08T20:18:38.763943 | 2023-01-30T12:47:21 | 2023-01-30T12:51:38 | 130,397,044 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | from . import audio_io
from . import constants
from . import files
from scipy import signal
import json
import numpy as np
import os
ERROR = 'fp.getframerate() != constants.FRAME_RATE: 48000'
def get_framerate_error_files():
for f in sorted(files.with_suffix(constants.METADATA_DIR, '.json')):
if json.loa... | [
"tom@swirly.com"
] | tom@swirly.com |
8a24b16b84aa12b942e434c2a00f34fbfb6a0254 | 8062d8fdb9791fe39a6c727c26d3c4991ab71f6e | /chapter9/Demo9_3.py | 865e3056e61b8458e1e52285a85bb7daac58b64b | [] | no_license | ZzzwyPIN/python_work | 4922accd8a8a36b900f23737492fc4c899d38277 | 7629cb86966c75ff81f7e5ecae2e7ce9e5d4924b | refs/heads/master | 2021-05-06T02:46:39.750099 | 2018-01-21T11:23:12 | 2018-01-21T11:23:12 | 114,639,650 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | # ~ import Demo9_2 as D9
from Demo9_2 import Car
class ElecticCar(Car):
def __init__(self,make,model,year):
super().__init__(make,model,year)
self.battery = Battery()
# ~ def describe_battery(self):
# ~ print("This car has a "+str(self.battery_size)+"-kWh battery.")
class Battery():
def __init__(self,battery_... | [
"ZzzwyPIN@foxmail.com"
] | ZzzwyPIN@foxmail.com |
67790833485b01272a5d8f7ba10d549f6bc187e6 | b7b8cac59c24c28efb3002f639865121d3b1f3e1 | /hyperion/grid/yt3_wrappers.py | fe04e9f80b875a00a54282dfaeb5b72899b325bd | [
"BSD-2-Clause"
] | permissive | koepferl/hyperion | 51a461f3cde30faa6dc82f63803b659a831273d1 | d43e1d06889e8b649038b85ef6721c64dd269a4e | refs/heads/master | 2020-04-01T19:11:18.373471 | 2015-01-14T13:31:36 | 2015-03-30T15:38:08 | 34,328,089 | 0 | 0 | null | 2015-04-21T13:17:41 | 2015-04-21T13:17:40 | null | UTF-8 | Python | false | false | 6,366 | py | from __future__ import print_function, division
import numpy as np
def almost_equal(a, b):
return a / b < 1. + 1.e-4 and b / a < 1. + 1.e-4
def amr_grid_to_yt_stream(levels, dust_id=0):
# Try and guess the refinement ratio - if it is not constant, then
# we can't use yt
if len(levels) == 0 or len... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
765efbd7c0417c2300d0bd70f7096fbee39eae6b | d664b7b142831d3e90f7bcecffa17aa7423d3c94 | /mysite/todo_list/forms.py | 046e3718153e381a793efcaf8c00b8d1f1c2c2fb | [] | no_license | riyad19811981/my_deploy | e5daf5ca3a6e748401a0f86fa423806933e9339f | 3b9897d986e1a2144f84eff01de7dbc511943bb0 | refs/heads/master | 2020-12-04T20:00:09.464146 | 2020-01-05T08:17:04 | 2020-01-05T08:17:04 | 227,063,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | from decimal import Decimal
from django import forms
from .models import Coin
from bootstrap_modal_forms.forms import BSModalForm
class CoinPopupForm(BSModalForm):
quantity = forms.IntegerField(min_value=1)
usa_price = forms.DecimalField(min_value=Decimal('0.01'))
class Meta:
model = Coin
... | [
"riyad.alkhatib@bmc.edu.sa"
] | riyad.alkhatib@bmc.edu.sa |
56b4116fe0ba8840df5f463b6306c8fd733d774a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02804/s286662068.py | 0f0965086da8245027d2dedeb3044d4203c93284 | [] | 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 | 622 | py |
n, k = map(int, input().split())
a = list(map(int, input().split()))
a.sort()
# prepare combs upto 10000
mod = 10**9 + 7
facts = [1] * 100001
for i in range(0, 100000):
facts[i+1] = facts[i] * (i + 1) % mod
ifacts = [1] * 100001
ifacts[100000] = pow(facts[100000], mod - 2, mod)
for i in range(100000, 0, -1):
ifac... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
07334d9196912091903131fa33922b73f1af153d | 2d7b6b3a2b098f3fbda61d250af77052caa0266d | /Support_Vector_Machine_Sigmoid.py | 0ef7c7d533db3bf9a79237031ac5dfb9ed022d50 | [] | no_license | Hariharan671/Diagnosis-Diabetes-in-Females-using-ML | 8d737c8f2d2795a32c7ec55cda12f19d257a6977 | d84157f04edaa7fb1c4074064388b65587356b34 | refs/heads/master | 2022-11-09T02:01:19.555869 | 2020-06-14T14:21:13 | 2020-06-14T14:21:13 | 272,215,053 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,029 | py | #
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
#
dataset =pd.read_csv('diabetes.csv')
X=dataset.iloc[:,0:8].values
y=dataset.iloc[:,8].values
#
from sklearn.preprocessing import LabelEncoder
y= LabelEncoder().fit_transform(y)
#
from sklearn.model_selection import train_test_split
X_train, X_te... | [
"haran8861@gmail.com"
] | haran8861@gmail.com |
3f866b2afc8927073a27d67fb70a325eb82690d8 | 1449f7a0358c45d945dce46d3abdd1e4f55839c3 | /San_antonio17.py | ac4e39766708d3b189f0dd031f406733ff23ff77 | [] | no_license | moussmoly/San_antonio | 38029b5563cc3b4e957180bf30e959081f6dc55c | e26e763e58c96271b75202479880f797a603f651 | refs/heads/main | 2023-02-19T16:35:30.832902 | 2021-01-23T20:04:20 | 2021-01-23T20:04:20 | 331,104,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | quotes = ["Ecoutez-moi, Monsieur Shakespeare, nous avons beau être ou ne pas être, nous sommes !", "On doit pouvoir choisir entre s'écouter parler et se faire entendre."]
charaters = ["alvin et les Chipmunks", "Babar", "betty boop", "calimero", "casper", "le chat potté"]
def show_random_quote(my_list):
# TOO... | [
"noreply@github.com"
] | moussmoly.noreply@github.com |
1395c99a537d98d304841e52872cfc6822a474d5 | 7f26045078bf0d526f63b89a43fa169beffc473b | /String-1/left2/solution.py | 6a0329d5dc805a08320748a1e7b263725dee05a8 | [] | no_license | FarzanRashid/CodingBat-Solutions | 45cf7788132f227c03f4dcd49e2080e2f8ed77c2 | 168ae7becc98471da884c75cc482e3020318d634 | refs/heads/master | 2020-07-30T05:48:50.556782 | 2020-01-24T11:02:16 | 2020-01-24T11:02:16 | 210,107,928 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | def left2(str):
if len(str) == 2:
return str
first = str[:2]
last = str[2:]
return last + first
| [
"noreply@github.com"
] | FarzanRashid.noreply@github.com |
c42037d31dd7f9c4f0f2dda2a683533738a8742e | 9d184b2b4706ace17a10af4dc3cdd6cfed932da6 | /cops_utils/dockercompose2run.py | 5b231f1a77d025e01b44b7fc920c2c037dcc6510 | [
"Apache-2.0"
] | permissive | cnadiminti/cops-utils | 6354c08fc4143ebf32aba07324effdc3c1b97998 | f33f56668bee427f7787b67185c5d7be2e5892f8 | refs/heads/master | 2021-01-20T22:19:46.415144 | 2016-08-27T17:37:09 | 2016-08-27T17:37:09 | 65,509,923 | 1 | 0 | null | 2016-08-24T05:05:57 | 2016-08-12T00:13:21 | Python | UTF-8 | Python | false | false | 6,076 | py | from compose.cli.command import project_from_options
from compose.cli.main import TopLevelCommand
from compose.config import errors
from docopt import docopt
from inspect import getdoc
import json
import logging
import sys
logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.DEBUG)
def isValidComp... | [
"cnadimin@cisco.com"
] | cnadimin@cisco.com |
a747c42a3ba38ba36e044fede4260bf142764225 | 41971a624f4c35ee338b48730d6a32d3a5fab124 | /reproducible workflows/palindrome example/palindrome.py | 8572435b7aff4f6f0604a0f596e9da4b10d80e50 | [] | no_license | Adamthe1st/class-2016 | 20aa83c2782cc47c6144cf7d619bc17f789f4405 | ece52390e403b01b139c25571dd2d9a8b574f3b6 | refs/heads/master | 2021-01-14T13:07:38.934641 | 2016-08-25T01:02:13 | 2016-08-25T01:02:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | def is_palindrome(pal):
pal = pal.lower()
pal = pal.strip()
return pal[::-1] == pal
| [
"antony.w.jarvis@gmail.com"
] | antony.w.jarvis@gmail.com |
c6cd3915ef483b229d4fc4d2315e4b848abe529e | dc9d3677caa5f1587a1c608480d69d603f6402b8 | /pricetracker.py | 2362164a305c4b6148fd3e643e60810d0bf53ed5 | [
"MIT"
] | permissive | bedoherty/MagicTCGPriceAPI | 327fe2279fd43ae95a942a16a3ac24f5a75c5977 | dea83a65f8a45e9fc916f8c4c36da3ad6589faad | refs/heads/master | 2021-01-15T13:01:46.185133 | 2014-09-04T19:48:02 | 2014-09-04T19:48:02 | 10,280,018 | 75 | 29 | null | 2014-11-16T23:20:23 | 2013-05-25T05:23:23 | Python | UTF-8 | Python | false | false | 125 | py | import json
from scraper import *
from ndbmodels import *
#
# Price Tracker Database System
#
#
# Updates a cards price
# | [
"bdoherty92@gmail.com"
] | bdoherty92@gmail.com |
4f558bba1f95dee3737c35a6cd6008ed21b19021 | f070c3acba7da2254adc2c12f80e54b830396d40 | /phoenix/common/lock.py | bb3031891198e740628082529aa1a2e7b02c24da | [] | no_license | liruidesysu/cloudCluster | 241a6ac472ecce9c6b4c966a44304128d258fc9b | fc558b464c3052f59cb1e6326aa22bade556b0c8 | refs/heads/master | 2022-11-06T03:51:31.954607 | 2019-08-22T12:47:53 | 2019-08-22T12:47:53 | 200,144,454 | 0 | 1 | null | 2022-03-29T21:56:02 | 2019-08-02T01:42:17 | Python | UTF-8 | Python | false | false | 3,386 | py | # -*- coding:utf-8 -*-
# Copyright (c) 2016 Vinzor Co.,Ltd.
#
# lock
#
# Created by fengyc at 16/5/18
# 16/5/18 fengyc: Create lock
import os
import time
import errno
from ..exception import BaseException
class LockException(BaseException):
"""Generic lock exception"""
pass
class FileLockException(LockEx... | [
"liruide_sysu@outlook.com"
] | liruide_sysu@outlook.com |
c18d921ae0193999e50c3338679a705c05416576 | 5cfab7ffa35694f17957470d49be27e39894ed5d | /mkiv_gps_to_utm29N/gps_to_utm29n.py | 28081195b2414cf8dd04040dbac23ea87d828437 | [] | no_license | Dijals/uhi_projects | 366c869e0114934293b715291b5adbcff335d1e0 | 1b10c464dd435668d007f06e2248e9c3d2d5b29a | refs/heads/master | 2021-01-01T18:19:55.591051 | 2017-09-26T14:59:17 | 2017-09-26T14:59:17 | 98,305,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,855 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import pyproj
from datetime import datetime
def convertCoords(dictionary):
""" This Converts lat and long values into a UTM 29 North values"""
inProj = pyproj.Proj(init='epsg:4326')
outProj = pyproj.Proj(init='epsg:32629')
... | [
"06021124@uhi.ac.uk"
] | 06021124@uhi.ac.uk |
2d29eaa8a6e04384a8a4f61826d7989a2b6cc61b | 9bff782c6cdf31909af87243dff27339fdfbb2ea | /stats/migrations/0011_country_flag_url_shiny.py | d1115cbff5b816392f91f3db4defe10f915768a2 | [
"MIT"
] | permissive | MalcerOne/provaTecWeb | 318bda2d1704f809ed27c8c539693c50d95b049a | 3e03b9e2d15d61a3b4e11779dd117325ed235137 | refs/heads/main | 2023-05-15T02:52:08.780522 | 2021-06-01T11:27:38 | 2021-06-01T11:27:38 | 370,856,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # Generated by Django 3.2 on 2021-05-15 19:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stats', '0010_country_name_pt'),
]
operations = [
migrations.AddField(
model_name='country',
name='flag_url_shiny',
... | [
"48256253+MalcerOne@users.noreply.github.com"
] | 48256253+MalcerOne@users.noreply.github.com |
8270ffd09728abfad1698594a3891522b76e76c3 | 11e52e6c1f29acc9397598c32d5cdbd41658d7fc | /diplom_project/urls.py | d83f8fe9419f85c3bfc463d886660fc5d3259928 | [] | no_license | NemovAlexey/CollectionCafes | abf019c614ee1918fbea0c89ab7e25f42accf370 | 5d5803f92010556cd6ce669125ff911017f1f83e | refs/heads/master | 2016-09-05T19:55:28.307694 | 2015-02-21T00:20:08 | 2015-02-21T00:20:08 | 31,090,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^', include('collection.urls', namespace="collection")),
)
| [
"nemov90@mail.ru"
] | nemov90@mail.ru |
67bd82c6736e3ac0503aaf31946a87f83b6a9bac | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnschedul.py | 2bda54c807c76dff011ebad9091ac3f000811ebe | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 219 | py | ii = [('CoolWHM2.py', 1), ('GodwWSL2.py', 1), ('AubePRP2.py', 1), ('PeckJNG.py', 2), ('LyttELD.py', 1), ('WadeJEB.py', 3), ('BachARE.py', 4), ('MereHHB3.py', 3), ('MereHHB.py', 2), ('ThomGLG.py', 1), ('MereHHB2.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
40bfd6b2d53f43ebd7039a79a1d0df64f193dd3e | f96636810509786bd7afdfb1580fd276b930ade1 | /client/sendDiagPopup.py | cbc672534de873b006ab10258fe7a3a4006185e6 | [] | no_license | Bharathkumar-nb/SCSI-simulation | 0b0d47fa2bce028e6214bf3e348c4be28cfaa118 | c94041043793deaa1ac4a1298eca9685952ff1eb | refs/heads/master | 2021-01-20T10:29:15.966464 | 2013-05-03T07:39:38 | 2013-05-03T07:39:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,734 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'send_diagnostic.ui'
#
# Created: Sat Apr 27 09:51:24 2013
# by: PyQt4 UI code generator 4.9.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except... | [
"bharathkmr.nb@gmail.com"
] | bharathkmr.nb@gmail.com |
9ed5dc928c72b73934edf7f770a5d1d04c08cc49 | 4ba748307e0cc32c2b53cf39a446d04d129796c3 | /Represented_Value_Function_MARL/examples/battle_model/senario_battle.py | ff2f6206329014d4be72c64298b89aabb03ca7cd | [] | no_license | phymucs/RFQ-RFAC | 0c445c12045d25ba6ec5fe5538886c90b7bff440 | 309fbd3b1d342a0e1917a7c5de2bc567e5da0fc7 | refs/heads/master | 2020-12-16T23:34:16.463258 | 2020-01-10T06:34:14 | 2020-01-10T06:34:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,109 | py | import random
import math
import numpy as np
from examples.battle_model.adjacency_matrix import adjacency_matrix
################
total_num=[0,0]
def generate_map(env, map_size, handles,fix):
""" generate a map, which consists of two squares of agents"""
width = height = map_size
init_num =map_size * map_s... | [
"weiyren.phd@gmail.com"
] | weiyren.phd@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.