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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ab2ac02cd6537896ff4fb77625eddfaab4018631 | bc4554057c38800a8e6b69b569c053e35018b6bb | /tensorflow/src/main/python/service_pb2.py | 28c04ccf89d20b07451e71b3ddfecd1ea6dc369d | [
"Apache-2.0"
] | permissive | yaozhang2016/deepwater | c9c4249371733df38bcb3e9aeb719d23500e6774 | 861a2dbeffeafab83dd53956deeb4f8193b9cb2e | refs/heads/master | 2020-09-30T14:59:21.131376 | 2017-12-28T19:45:59 | 2017-12-28T19:45:59 | 73,511,061 | 0 | 0 | Apache-2.0 | 2017-12-28T19:46:00 | 2016-11-11T20:59:18 | C++ | UTF-8 | Python | false | true | 6,555 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: service.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _refle... | [
"mistobaan@gmail.com"
] | mistobaan@gmail.com |
ec43d0a8ba6d2d861b171eb30b9c4e57b58132d4 | 723c5112e886f46b2ea20624ca114db53f86b2fb | /VCsite/mainapp/models.py | 7f184e99c044f0fc87f1a296f7c446ed8aefc5a5 | [] | no_license | JungChaeMoon/MyProfile | 2bba0c989135ff80d93e905a20c9f5e4726513bc | e756a4a95215648dcbb93ec47ee134d3c875ca40 | refs/heads/master | 2022-12-24T11:04:38.419171 | 2019-06-18T04:35:31 | 2019-06-18T04:35:31 | 190,045,463 | 0 | 0 | null | 2022-12-03T13:43:16 | 2019-06-03T16:50:19 | HTML | UTF-8 | Python | false | false | 304 | py | from django.db import models
from datetime import datetime
# Create your models here.
class Comment(models.Model):
comment_text = models.CharField(max_length=100)
pub_date = models.DateTimeField('date published', default=datetime.now())
def __str__(self):
return self.comment_text | [
"jungchaemoon@gmail.com"
] | jungchaemoon@gmail.com |
8d255dc70184d1d04011cfdba72a559e6b28d7bd | 33427f7eb333835deaf83732a9acda705aba16ac | /venv/lib/python3.6/site-packages/app/__main__.py | 751464d3d16c5e94695a021f6e8c572e784119d0 | [] | no_license | tberal/geru | d12047be4c0e40984935e4030254702b23f22aff | a090e6ea0c8b7d006169e486aa9ee6a740003a39 | refs/heads/master | 2021-08-28T16:13:34.067106 | 2017-12-12T17:17:17 | 2017-12-12T17:17:17 | 114,020,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | from waitress import serve
from pyramid.config import Configurator
from pyramid.session import SignedCookieSessionFactory
session_factory = SignedCookieSessionFactory('gerutestkey')
def main(**settings):
config = Configurator(settings=settings)
config.set_session_factory(session_factory)
config.include('... | [
"tberaldin@gmail.com"
] | tberaldin@gmail.com |
96f433aced319800863be7a4873988b2e33c95bd | 93c2f6a2eb88b67bc05f44ce901bc97878baddae | /flask_app/demo.py | ae4ec7c94074635d5a7c1fbc21abc6054a355bea | [] | no_license | bkwi/wsgi-mux | dcbb827935e5bc7d646a2e8f83cca20f7d8a5bdc | 386993473afcb75496ce2ef2d117d9619faa68f1 | refs/heads/master | 2021-01-12T03:20:22.602615 | 2017-01-06T10:17:56 | 2017-01-06T10:17:56 | 78,196,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from flask import Flask, jsonify
app = Flask(__name__)
@app.route("/")
def hello():
return jsonify({'hello': 'flask'})
if __name__ == '__main__':
app.run()
| [
"bartosz@Bartoszs-MacBook-Pro.local"
] | bartosz@Bartoszs-MacBook-Pro.local |
307c00d035a25804ae38db2b5307c2a05f375b30 | 629bdff88aa44482487db5759607cff042e192b0 | /users/views.py | 88f000e048fe6607d671a8e1dc2e63d9c2b1f5d0 | [] | no_license | sharkops/LearningDjango1.11 | 2a51c15efb8a571e2b973642c5272dd5a1d8474a | 5a4821eff30a609f48a5c9d39f7294d3913b732b | refs/heads/master | 2020-04-01T03:36:19.188854 | 2018-10-13T12:26:41 | 2018-10-13T12:26:41 | 152,828,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | from django.shortcuts import render, HttpResponse
# Create your views here.
from django import forms
from captcha.fields import CaptchaField
from django.contrib.auth.hashers import make_password
class CaptchaTestForm(forms.Form):
email = forms.EmailField()
password = forms.CharField(min_length=6)
captcha ... | [
"sharkyunops@126.com"
] | sharkyunops@126.com |
56a9016f9048bf93ced9d3230e3e07125c5674b2 | 01bd00e6498190aac53210689c111d72018956fa | /companies/migrations/0047_auto_20190917_1011.py | a0c9fdef406a96c4ea5f7cbf5a40000ea2755162 | [] | no_license | dchaplinsky/edrdr | 0494b31fe3a0ce54d0cf087fb11ef709cb002810 | e9fd5295f8c7ca7db81fce2427456e779ff6637e | refs/heads/master | 2022-06-01T07:01:59.049162 | 2020-10-12T08:04:42 | 2020-10-12T08:04:42 | 122,268,695 | 0 | 1 | null | 2022-04-22T20:52:45 | 2018-02-20T23:14:48 | CSS | UTF-8 | Python | false | false | 571 | py | # Generated by Django 2.2.3 on 2019-09-17 10:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('companies', '0046_pepowner_person_type'),
]
operations = [
migrations.AddField(
model_name='companyrecord',
name='ch... | [
"dchaplinsky@conversionscience.co.uk"
] | dchaplinsky@conversionscience.co.uk |
4f87ef787f99622218a8f9229d6cbec20706919e | ad08d9c54500dde36e3067a9e1781d5ed7eff2f5 | /app/utils/tests/test_xmlutils.py | 938086a0e9c289d4c700e49de24f6ae8882988c4 | [
"MIT"
] | permissive | a410202049/flask_base_plus | 0930ff9c1cc9f469e1915c46759a31300ee16cb2 | c04ce546f02073c037dcfa6304c11c91dd3f6e48 | refs/heads/master | 2023-08-17T05:54:54.793871 | 2023-08-08T07:55:27 | 2023-08-08T07:55:27 | 141,976,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,246 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
from test.unit.base import BaseTestCase
from utils.xmlutils import XMLUtils
class XMLUtilsTestCase(BaseTestCase):
"""
XMLUtilsTestCase
"""
def setUp(self):
pass
def... | [
"1509699669@qq.com"
] | 1509699669@qq.com |
f158340c9f8150c06fa4b5b77e47089dcdbcd870 | 0e3c059a4e21a8a5066dba04117cb87cac61f389 | /2020_3/projeto2/antlr4-python3-runtime-4.7.2/src/antlr4/Lexer.py | a60b5bcc93ab380142e3598060a5796361e1ada9 | [
"MIT"
] | permissive | damorim/compilers-cin | fdc8e23d052cb8e1eb2db0f1edc43b6c62f55ea1 | e2f3a18e4cded92276b9def254452910f28faa50 | refs/heads/master | 2021-07-08T09:19:24.062071 | 2021-05-01T20:56:23 | 2021-05-01T20:56:23 | 34,734,087 | 26 | 39 | MIT | 2020-10-02T04:11:43 | 2015-04-28T14:04:29 | Python | UTF-8 | Python | false | false | 11,229 | py | # Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
# Use of this file is governed by the BSD 3-clause license that
# can be found in the LICENSE.txt file in the project root.
#/
# A lexer is recognizer that draws input symbols from a character stream.
# lexer grammars result in a subclass of self objec... | [
"felipe.cgr@hotmail.com"
] | felipe.cgr@hotmail.com |
0f19c8558985ad4cf18f9f3fe0bc103b1b031536 | 3121a85f6578b849c44a7c23d10454d4965616d2 | /blog/forms/article.py | ace0c9c7c08b53f291c2a75184adee899956a521 | [] | no_license | myalcins/django-blog-tutorial | 1bdaf2ac1437f6b4e25af1c2fdb3799b257701e8 | eb7355952b2db164935c5302aecde1331379c515 | refs/heads/master | 2023-03-28T07:47:09.997745 | 2021-03-26T13:34:23 | 2021-03-26T13:34:23 | 350,349,811 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | from django import forms
from blog.models import Article
class ArticleForm(forms.ModelForm):
schedule_time = forms.DateTimeField(required=False ,input_formats=['%Y/%m/%d %H:%M'])
class Meta:
model = Article
fields = (
'image',
'title',
'content'... | [
"ymehmetsoruklu@gmail.com"
] | ymehmetsoruklu@gmail.com |
036c944ee8502521b61d3c999781a4203c459970 | 7287193205f0e660ad99806c32a417a759db7a15 | /survey_project/surveys/migrations/0002_surveyquestion_freetext_answer_available.py | 6fd48481f913c7f2e1ba5f611e984349ca5e9b5a | [] | no_license | pikkoui/survey | 4a8f2df595a60499ccc976b2a2dc4ef88abfd075 | d13c6a13abf4e1c18e433e3fd621e031bf430008 | refs/heads/master | 2023-08-27T21:27:31.271966 | 2021-11-11T17:33:46 | 2021-11-11T17:33:46 | 426,996,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | # Generated by Django 2.1.15 on 2021-11-05 09:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('surveys', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='surveyquestion',
name='freetext_answer... | [
"marios.char@gmail.com"
] | marios.char@gmail.com |
f56c028822bfdd5126fdc099e68d3428e87abf7e | 4762812376ef609248cbfad1d9b7586b3046877b | /ex4.py | f23947aa72fdfd443aa14370a14fddf799637527 | [] | no_license | Evansbee/Euler | 8fa53c330d2de9d174dc4eb92e937a45d6c93d03 | ca5ab80b291e47dcccb2b71be9b6f7749fab3c5d | refs/heads/master | 2021-01-10T20:20:30.094465 | 2012-07-09T20:36:21 | 2012-07-09T20:36:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py |
def isPalindromic(number):
forward = str(number)
for i in range(0,len(forward)/2):
if forward[i] != forward[len(forward)-1-i]:
return False
return True
large = 0
for i in range(100,999):
for j in range(100,999):
if isPalindromic(i * j) and i*j>large:
large = i*j
prin... | [
"evansbee@gmail.com"
] | evansbee@gmail.com |
061a7f633a644ce258c8c3f0705117b3af16de49 | 4cc19ea37ba4b746c34aafc3c1391c54dbef65b3 | /src/inner_source/manage.py | 9a53b73ee6d62970c15c7bb7c268bf728dc2ad92 | [
"Apache-2.0"
] | permissive | innersourcedo/intergrow | d8684d3f7e59dbb874c71f9d3ba814444f1ba74d | 7fb0854fc62e5cd719961e6201f73197bc3cd445 | refs/heads/master | 2020-08-25T04:47:35.420424 | 2020-01-23T15:08:46 | 2020-01-23T15:08:46 | 216,962,847 | 1 | 2 | Apache-2.0 | 2020-03-20T21:29:46 | 2019-10-23T03:46:59 | Python | UTF-8 | Python | false | false | 653 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'inner_source.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"samisa@samisa.org"
] | samisa@samisa.org |
821bcebfcedc6d629c6e2fbce307378367cc9129 | 1c88eef044c7ca83b545001e123b8bf064884bb5 | /palindrome.py | 465ca3b80f8bfacd18257869beb6ec3ec3ac0710 | [] | no_license | JacobDuvall/demosPy | 05329592ad8526d0d72201a68faf7c8234774f73 | c039943869d3a2cd62c4b6ff759857d3b5e7054e | refs/heads/master | 2020-06-17T21:48:06.066695 | 2019-07-09T20:04:36 | 2019-07-09T20:04:36 | 196,067,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | import unittest
def digits(x):
"""Convert an integer into a list of digits.
Args:
x: The number whose digits we want.
Returns: A list of the digits, in order, of ``x``.
>>> digits(4586378)
[8, 7, 3, 6, 8, 5, 4]
"""
digs = []
while x != 0:
div, mod = d... | [
"noreply@github.com"
] | JacobDuvall.noreply@github.com |
01cead2a52a45405b93f86e704c848a52bea8b47 | 46c7e77d103a29f4cf94fea908fff34a2c13c8ad | /run.py | f7ab7cd9ea8f2348a77846c8a484ba51741781cd | [] | no_license | baxtergu/ipe-crawler | b857a64185f3e4ead3f602282ce0d9ec7766e0ac | 990e5aa38a65df45881de72d49f5e655b36234cc | refs/heads/master | 2021-01-23T09:25:58.819170 | 2017-09-06T08:26:30 | 2017-09-06T08:26:30 | 102,580,328 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | from scrapy import cmdline
cmdline.execute("scrapy crawl exhaust_gas".split()) | [
"gu.shengnan@ztesoft.com"
] | gu.shengnan@ztesoft.com |
6bfea2a30adb4e10c535fc96d2806b7810ad2881 | 6995b59905175bab4307c6bca548aba25463c06a | /app/routes.py | c8f1d9c7f4d6db2ccae658367c8c94cf0aa20790 | [] | no_license | CataSt11/Automation-index | 9ac06664b264df925b173828765a6404b648de5d | 2be2268d8633d4ac75d4c87c05015074214988da | refs/heads/master | 2023-05-11T12:17:01.843419 | 2020-11-08T14:07:47 | 2020-11-08T14:07:47 | 309,156,926 | 0 | 0 | null | 2023-05-01T21:52:15 | 2020-11-01T18:05:01 | Python | UTF-8 | Python | false | false | 22,561 | py | from app import app
from flask import render_template, make_response, jsonify, request, session
from app.functions import *
import datetime
import calendar
@app.route('/', methods=['GET', 'POST'])
@app.route('/index', methods=['GET', 'POST'])
def index():
data = {}
try:
im = init_mysql()
except ... | [
"cata.stoica11@gmail.com"
] | cata.stoica11@gmail.com |
ee60c445bcd85a698f8701cbcc83850110f22520 | f2a41d0f1fb7ef08e4992035c37438d9cd55d8b6 | /FreeFishMaster/wsgi.py | 405e26a7d6c06e969e9bbf104660f7b4cbb43b61 | [
"MIT"
] | permissive | xzengCB/FreeFishMaster | 65f2fe116ea91e4ad3bc28bb3a5d6f4b09f06688 | 14418e108d1a25c56ff2e9801f4256f05f154c67 | refs/heads/master | 2021-01-01T16:18:18.341137 | 2017-08-01T05:21:48 | 2017-08-01T05:21:48 | 97,806,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for FreeFishMaster 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/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"xinhai.zeng@careerbuilder.com"
] | xinhai.zeng@careerbuilder.com |
62468571196349acaac805658ec61d5532fcb955 | dc4a42ad81013a1fdaa0c6be0559504e17bacb7e | /products/admin.py | a845d9021b184ff03ccdeed387467a77c73d2d28 | [] | no_license | deone/eqsupply | 15afbda692779431357d2c69475da8503c4728b1 | 3af726b65c1658d364c6485ad36ef98d5c6e7fc3 | refs/heads/master | 2020-04-20T05:29:53.020966 | 2010-05-13T09:16:18 | 2010-05-13T09:16:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | from django.contrib import admin
from eqsupply.products.models import *
admin.site.register(Division)
admin.site.register(Category)
admin.site.register(Product)
admin.site.register(Accessory)
admin.site.register(ProductVariant)
| [
"alwaysdeone@gmail.com"
] | alwaysdeone@gmail.com |
07fed4cb0ac0a9c9fe7cf77a4577b118c598fd1f | 6147d3da9c7f31a658f13892de457ed5a9314b22 | /multithreading/without_threading.py | 4f637839a61975629dea515f930117251368c52c | [] | no_license | ashish-bisht/must_do_geeks_for_geeks | 17ba77608eb2d24cf4adb217c8e5a65980e85609 | 7ee5711c4438660db78916cf876c831259109ecc | refs/heads/master | 2023-02-11T22:37:03.302401 | 2021-01-03T05:53:03 | 2021-01-03T05:53:03 | 320,353,079 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | import threading
import time
start = time.perf_counter()
def working_on_something():
print("Sleeping for a sec")
time.sleep(1)
print("Woke up")
working_on_something()
working_on_something()
finish = time.perf_counter()
print("total time taken is ", finish - start)
| [
"ashishbisht723@gmail.com"
] | ashishbisht723@gmail.com |
149385687b03ae443a677201627cdcc4ec051156 | 78e5bd1977cfb8d077a2999cae42a065c13452aa | /kaggle_event_recommendation/event_attendees.py | 16b6943e083432543ec58877dc44181bf037134b | [] | no_license | loyalzc/recommendation-system | 9ed3f6ea781c6de1e77a50bbd316d87f8970aadd | 6ac748e8d1b6fa252fd7188a315f0c4d75216e9a | refs/heads/master | 2020-03-13T14:20:32.335425 | 2019-04-14T13:08:15 | 2019-04-14T13:08:15 | 131,156,451 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | # -*- coding: utf-8 -*-
"""
@author: Infaraway
@time: 2018/5/10 21:07
@Function: event 热度 活跃度
"""
import scipy.sparse as ss
import scipy.io as sio
from sklearn.preprocessing import normalize
class EventAttendees:
"""
统计活动 参加和不参加的人数
"""
def __init__(self, user_event_entity):
num_event = len(us... | [
"loyal.czhong@gmail.com"
] | loyal.czhong@gmail.com |
c4fa34f9aadc2e77c1beedfb47dbd46c1082e9cf | 173488cc5a6b58a3d616fa61e150676c7d4937b3 | /twentyThirdSuccessorArray.py | b253598013ce8f76eebc6a15901e0cb8f34f354c | [
"MIT"
] | permissive | MSQFuersti/aoc2020 | ef0bc2091b0e57704ccace9d15a676b5be0c7025 | f5e163c426a6c481d645ace2cc8af7c493306291 | refs/heads/master | 2023-02-04T04:03:21.559461 | 2020-12-29T13:04:40 | 2020-12-29T13:04:40 | 318,316,081 | 0 | 0 | MIT | 2020-12-07T21:31:28 | 2020-12-03T20:49:19 | Python | UTF-8 | Python | false | false | 977 | py | puzzleInput = '614752839'
# puzzleInput = '389125467'
labels = [int(char) for char in puzzleInput]
labels.extend(list(range(10, 1000001)))
successors = {}
for index, label in enumerate(labels):
successors[label] = labels[index + 1] if index + 1 < len(labels) else labels[0]
currentCup = labels[0]
for _ in range(10... | [
"maximilian.fuerst@tngtech.com"
] | maximilian.fuerst@tngtech.com |
3f4c690093e0de6b4135513bea417fc2a6a5abf2 | cd61ab53fd77d9b8e136c3e6fd575266a7450038 | /apps/pinkslips/migrations/0013_auto_20180303_2042.py | 1d341d1a45151869bdcb55013450da511b8cc825 | [] | no_license | vincentereyes/phpslips | c6e6885f4ca67b27da8783014d95a491ce797e64 | 9fc7c16806618cccbd1a24f957594d0ff8eb12f9 | refs/heads/master | 2021-01-25T14:55:25.253031 | 2018-03-03T21:38:30 | 2018-03-03T21:38:30 | 123,733,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-03-03 20:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pinkslips', '0012_auto_20180303_0916'),
]
operations = [
migrations.AlterFiel... | [
"vincentejosereyes@gmail.com"
] | vincentejosereyes@gmail.com |
55a67241ba31a2e626f336bfab70b83ce1f840a7 | 29cf500c7958da5a22829e8da85c5229e6445848 | /rent/apps/authentication/models.py | e0d6fe2b451369d10ddc43afe75d2caf0179e412 | [
"MIT"
] | permissive | lenileiro/rent-django | 86562af09fffe77fbf20a61b0c0981cf8df7cfc2 | 850d208fd93a7424a5c11b268df6c7c94add518d | refs/heads/develop | 2022-12-12T13:25:44.584374 | 2019-08-24T23:54:48 | 2019-08-24T23:54:48 | 201,096,792 | 1 | 0 | MIT | 2022-12-08T06:00:03 | 2019-08-07T17:32:48 | Python | UTF-8 | Python | false | false | 3,430 | py | import re
from datetime import datetime, timedelta
from django.conf import settings
from django.contrib.auth.models import (
AbstractBaseUser, BaseUserManager, PermissionsMixin
)
from django.db import models
class Utils:
@staticmethod
def validate_email(email):
check_email = User.objects.filter(e... | [
"lenileiro@gmail.com"
] | lenileiro@gmail.com |
b2b49c260bbc149b1e3d30761562a7747b95be52 | 6f1bd642081902970be5d59bebb2df87c2a32fb0 | /Source/TensorFlowModels/Media-Eval/Regression/preprocess.py | 1a89d76aaf9e7090c40ebd180ea03ae4506cacd8 | [] | no_license | aneekroy/mir | b317d5ff49341507ad223016d9488763d4dcc71b | 1afdc020acc6732b4dab488d7070951a2ff8eaa6 | refs/heads/master | 2020-03-21T17:48:10.747151 | 2018-06-28T11:26:38 | 2018-06-28T11:26:38 | 138,854,870 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,796 | py | import os
import math
import numpy as np
import ffmpy
from python_speech_features import *
import scipy.io.wavfile as wav
import matplotlib.pyplot as plt
import random
import Image
import csv
# This is subject to change if cross-validation is applied. Sticking to this cheap stuff for the time being.
TRAIN_PERCENT = 0.... | [
"aneek.roy5@gmail.com"
] | aneek.roy5@gmail.com |
2d70628d12511e51669b1661da522af5c72fb1a5 | 40c11c748f159d35cad1bc648509fc23fc7c0a8b | /l10n_py_base/res_currency_rate.py | ed151867088e6262f591a1d5a909226d275299f4 | [] | no_license | Icaruspy/addons | db4b1e33e046906aaf485b341d703dfb9b286565 | 93cb3352abb2998c33399170dd66329e39528a0e | refs/heads/master | 2020-12-30T09:38:21.920380 | 2015-12-13T16:17:48 | 2015-12-13T16:17:48 | 39,844,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,219 | py | # -*- encoding: utf-8 -*-
#################################################################################
# #
# Copyright (C) 2009 Renato Lima - Akretion, Gabriel C. Stabel #
# ... | [
"camiloramirez90@hotmail.com"
] | camiloramirez90@hotmail.com |
57d50697a8b5a6199f35983afac98b3beb374b0e | af7eb83ef2fb3bcf3b17d2aac656b06269c7784f | /1-abrindoarquivo.py | a7048bb931752e2a8ad40dc5b4adf1953145357b | [] | no_license | pablogonzalezz/curso-python | 7a1202d01e452f60a258dd9ea90bcd622a99d8b4 | d09059e7df65851d29b69b35f689db5f96090ff8 | refs/heads/master | 2020-04-10T20:26:36.653910 | 2018-12-12T04:45:59 | 2018-12-12T04:45:59 | 161,268,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | arquivo = open("carros.txt", "w")
| [
"pablojuangonzalez@hotmail.com"
] | pablojuangonzalez@hotmail.com |
2811f3f5befc58918de648f954c3be0ac299000b | 8b467addc38a67019ff35dfd5394e36d4b7c7c5c | /src/gui_kill_creo.py | 7642164d9eb6170bc800c8be19160c7a498b338b | [
"MIT"
] | permissive | loleven/creo_kill_proc | f48e158ccb64744bd34d68bf96fa8868d6cbe017 | 9136889efe1a51fe057e538d080ca31f3f4c6de5 | refs/heads/master | 2020-05-24T00:48:23.222996 | 2017-03-13T09:34:28 | 2017-03-13T09:34:28 | 84,806,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,934 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Data\Development\PycharmProjects\KillCreo\src\gui_kill_creo.ui'
#
# Created by: PyQt5 UI code generator 5.5.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_frm_kill_creo(obj... | [
"loleven@gmail.com"
] | loleven@gmail.com |
d07d964851d7ea84722cc1c566fdb976f5049c0a | 10d98fecb882d4c84595364f715f4e8b8309a66f | /non_semantic_speech_benchmark/distillation/train_keras_test.py | 58293b999787e89c984afb7ffed56dbb033ecc48 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | afcarl/google-research | 51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42 | 320a49f768cea27200044c0d12f394aa6c795feb | refs/heads/master | 2021-12-02T18:36:03.760434 | 2021-09-30T20:59:01 | 2021-09-30T21:07:02 | 156,725,548 | 1 | 0 | Apache-2.0 | 2018-11-08T15:13:53 | 2018-11-08T15:13:52 | null | UTF-8 | Python | false | false | 3,089 | py | # coding=utf-8
# Copyright 2021 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
9ab7745e8b4d48edd0fe67af3de20eca60454dcc | f59a3641f488dd40b0af4c0024a252170ab59998 | /chap4/p35.py | d89dca31848be92a9ad88a15209c75b1fe2ad076 | [] | no_license | ujiuji1259/NLP100 | 478a5276514d2f21ac5ee5ec9b50f00dcba67d1a | c19f9ba00eec108dbc93d4cb7d33e86f539d3397 | refs/heads/master | 2023-04-01T23:05:14.376652 | 2021-04-13T05:21:37 | 2021-04-13T05:21:37 | 255,311,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | # mecab neko.txt > neko.txt.mecab
from p30 import load_mecab_output
import collections
if __name__ == '__main__':
lines = load_mecab_output('neko.txt.mecab')
lines = [l['surface'] for line in lines for l in line]
counter = collections.Counter(lines)
print(counter.most_common())
| [
"suzzz428@gmail.com"
] | suzzz428@gmail.com |
f0ec9069cd636274166bcd07ca0cebc104ee447b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03598/s680963277.py | c8861d19ff2e2ce27d5b6a660a4fb273c93d87c7 | [] | 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 | 173 | py | N = int(input())
K = int(input())
x = list(map(int, input().split()))
A=[]
B=[]
for i in range(len(x)):
a = min(2*(x[i]), 2*abs(K-x[i]))
A.append(a)
print(sum(A)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
038eac37ec8ceaec8c4e9d374c6e76d0d1dee5c7 | 2f878f17b90103491b1bce08b917ea5693b8af2b | /Lab 4/lab4.py | 1a30f5929dc7bfc97514c32b527b1d4a421c53c9 | [] | no_license | HyperionNKJ/Computer-Vision | 9db98e8ba3740fed453e9269df445fcc7cca44b3 | 550ee6be84171863487b9068af26ca2073e57e2c | refs/heads/master | 2023-01-22T20:20:16.807793 | 2020-11-29T21:57:27 | 2020-11-29T21:57:27 | 317,050,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,238 | py | """ CS4243 Lab 4: Tracking
Please read accompanying Jupyter notebook (lab4.ipynb) and PDF (lab4.pdf) for instructions.
"""
import cv2
import numpy as np
import random
from time import time
# Part 1
def meanShift(dst, track_window, max_iter=100,stop_thresh=1):
"""Use mean shift algorithm to find an object on a ... | [
"kjneo1996@gmail.com"
] | kjneo1996@gmail.com |
4de795c8d948abca857de788593e235ee526ab89 | 3d96fcb008ecbe003bfd92c5b9f51ce526493d27 | /railyard/railyard.py | 653942862aed8d4f4db609f1976979d3bc2ff5db | [
"MIT"
] | permissive | ktaletsk/railyard | a81da4033f3fba3cb33d0418b234de565e9b76d5 | 7eb47bb622787c1d017fbf7785ed6d9c8c6e0649 | refs/heads/master | 2022-04-09T04:50:50.619251 | 2020-03-03T20:29:15 | 2020-03-03T20:29:15 | 228,427,664 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | """Main module."""
import tempfile
from railyard.assembler import readStacks, assembleStack
import railyard.builder as builder
import time
import os
def assemble(base_stack, additional_stacks, path):
s = readStacks(base_stack, additional_stacks)
if not os.path.exists(path):
os.mkdir(path)
if not o... | [
"konstantin@taletskiy.com"
] | konstantin@taletskiy.com |
f6fd2ac63f906cc9143cc1e76d8f6cdd8f119ab8 | b3d0359204431dec3f96a0fc99c5260b9a810c91 | /__latest_version.py | 9e7f0197ec3ee9e69660392a6526c5ba4efc68ac | [
"MIT"
] | permissive | marcel-valdez/launchpad-helper | d9fef583af8b055ae26dd555dae306775492f760 | 97682cb547c162ca4cc88ccd003285e59cc4eef1 | refs/heads/master | 2021-01-19T02:14:21.660848 | 2016-08-09T18:51:09 | 2016-08-09T18:51:09 | 61,316,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,345 | py | #!/usr/bin/env python
import sys
from launchpadlib.launchpad import Launchpad
__DEBUG__ = False
DISTRO = 'ubuntu'
RELEASE = 'trusty'
ARCHITECTURE = 'amd64'
DISTRO_ARCH_SERIES_URL = 'https://api.launchpad.net/1.0/' + DISTRO + '/' + RELEASE + '/' + ARCHITECTURE
## TODO: Accept multiple app names and get all their vers... | [
"marcelvaldez@google.com"
] | marcelvaldez@google.com |
33a5265e87b96528d5b119a0bb47d33d67d2ce07 | cc434c30dada236a0101be25510f172f6b3e0a43 | /test/__main__.py | 9d9c76746678514c68099418204a6fccd236ecb0 | [
"Apache-2.0"
] | permissive | TomasTomecek/osbuild | 13c1896452336c8a880d4de50627309f91271297 | 9f5f4ebfa677783926888810b6b5c40453f1fbcf | refs/heads/master | 2020-07-16T20:58:30.798496 | 2019-08-30T09:54:58 | 2019-09-02T08:28:21 | 205,867,643 | 0 | 0 | Apache-2.0 | 2020-01-14T09:52:39 | 2019-09-02T13:52:13 | Python | UTF-8 | Python | false | false | 2,768 | py | import argparse
import logging
import subprocess
import os
from test.integration_tests.test_case import IntegrationTestCase, IntegrationTestType
from test.integration_tests.config import *
logging.basicConfig(level=logging.getLevelName(os.environ.get("TESTS_LOGLEVEL", "INFO")))
def test_is_system_running(result):
... | [
"teg@jklm.no"
] | teg@jklm.no |
1a4e16d26cbece1da8bf316ed9f2e9de8365031c | 508e3aa5be4a48354811726cdbf6555013fb431c | /main/services/product.py | e41edf07e5debd435859064954b3ad3c1d066110 | [] | no_license | JoaoRicardoSimplicio/buying_cheap | eb32362e0cb40048547366666890b25e631e1616 | 6561411af72f5a69a22e1474c11f507807f5ca1c | refs/heads/master | 2023-06-27T06:11:09.927143 | 2021-07-31T17:12:52 | 2021-08-01T23:18:44 | 294,758,790 | 0 | 0 | null | 2020-12-01T12:00:36 | 2020-09-11T17:16:53 | Python | UTF-8 | Python | false | false | 1,903 | py | from main.crawlers.shop2gether import StoreShop2gether
from main.crawlers.kabum import StoreKabum
from main.crawlers.netshoes import StoreNetshoes
from main.crawlers.mercado_livre import StoreMercadoLivre
from main.crawlers.bikepointsc import StoreBikePointSC
from main.crawlers.bikeinn import Bikeinn
# from main.crawle... | [
"joaoricardosimplicio16@gmail.com"
] | joaoricardosimplicio16@gmail.com |
6789dd297f2257bed4110e83f0000b3c798dea43 | 303004eb1b84f247d959a2ac75e38f6e7b156715 | /baixar.py | 3bcd31baf17c38c5ce04a46c8c7a0ee91754fbbb | [] | no_license | DiegoLins10/PyTube | 5e3f5937361196448d081d9ea18c00049e2ce017 | 1787c6fa953bc04c69acc6fa0d28ac80ac9b3e07 | refs/heads/master | 2023-08-07T00:48:55.701767 | 2021-09-21T01:09:39 | 2021-09-21T01:09:39 | 408,627,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | ## Para baixar a lib pytube: pip install pytube
## baixar um video do youtube com pytube
## python youtube.py https://youtu.be/61R6Qq7mmIA
## gerar arquivo exe pyinstaller --onefile -w baixar.py
## baixar pyinstaller pip install pyinstaller
from pytube import YouTube
from tkinter import *
def baixar():
##lin... | [
"diegofernandeslins@gmail.com"
] | diegofernandeslins@gmail.com |
e23788ac80dab20c3cb46f534e00b56e8af74fb5 | b6f780c8c751b224da2ec86017a69b6f9dcea275 | /accounts/migrations/0007_auto_20210307_1517.py | 5fb4e8b21ffa153ca0244206cda9fd7cc49f0f2d | [] | no_license | alishkb/m42.django | c36d3b01c799323991cd875da48c2859ce82aada | bc99755889989acc45ae81c3b122194bce86fc18 | refs/heads/master | 2023-05-15T00:51:20.440239 | 2021-06-10T11:56:14 | 2021-06-10T11:56:14 | 334,120,936 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | # Generated by Django 3.1.5 on 2021-03-07 11:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
('accounts', '0006_auto_20210307_1515'),
]
operations = [
migrations.AddField(
... | [
"ashokouhabdi@gmail.com"
] | ashokouhabdi@gmail.com |
61c84d50f2b2a028c625d955f4e469b7c998c883 | cc5bdc851cc48050c869fced9373d8d5ff2af375 | /env/lib/python3.8/site-packages/torpedo/clients.py | dbb744031972adba48afc1329b0491bf2a32e848 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | vivekgupta1mg/miniprojectapp | fa6e4b8fd4565529b0c693a15abda5e5ce346dc4 | 2584a1696cc847767998c4fb5cf3413b006d6f67 | refs/heads/master | 2023-08-24T12:57:51.653656 | 2021-10-12T16:15:25 | 2021-10-12T16:15:25 | 416,296,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,193 | py | import threading
from elasticapm import Client, async_capture_span
from elasticapm.instrumentation import register
from elasticapm.instrumentation.packages.asyncio.aiohttp_client import \
AioHttpClientInstrumentation
from elasticapm.instrumentation.packages.asyncio.asyncpg import \
AsyncPGInstrumentation
from ... | [
"cons-vivek.gupta@1mg.com"
] | cons-vivek.gupta@1mg.com |
c51438dca74d9ee3958675018e129bb173024552 | c82490eb4903a9b6b23bdef7c528def682a2672f | /eightpuzzle.py | 61084b4c00b5f6223a01ba7230814872d31e6b42 | [] | no_license | zariuq/Misc | 5563b3f8c015c305a6023dca42e8e616e8dc146b | e5b5e4229b29a68e4a3d042bed62c200d3af8e2e | refs/heads/master | 2020-05-20T23:55:43.067819 | 2015-08-10T07:48:06 | 2015-08-10T07:48:06 | 30,136,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,519 | py | import pygame
from eightpuzzlesolver import aStar
pygame.init()
WIDTH = 500
HEIGHT = 400
screen = pygame.display.set_mode((WIDTH, HEIGHT))
done = False
clock = pygame.time.Clock()
# Switch for human or playthrough
HUMAN = False
# Define the colors we will use in RGB format
BLACK = ( 0, 0, 0)
WHITE = (255, 255, ... | [
"zariuq@gmail.com"
] | zariuq@gmail.com |
ba106a98267a6ec0d424113b2870654dbf4698b9 | 3154e6d1a9e9e9919cae75570969da36c45429d7 | /codigo/tutorial/tut0C_camara.py | 9e54589237d6c51292d941cdce95c822a95243c0 | [] | no_license | javacasm/TutorialPyGame | 0d458c7155794668fc1464c466e4d740b3ac77ee | baeb7ce5dda151f8093e39f8b14182a8ee5de926 | refs/heads/master | 2021-07-25T20:01:04.504958 | 2021-05-10T12:33:26 | 2021-05-10T12:33:26 | 250,080,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,568 | py | https://www.pygame.org/docs/tut/CameraIntro.html
```python
class Capture(object):
def __init__(self):
self.size = (640,480)
# create a display surface. standard pygame stuff
self.display = pygame.display.set_mode(self.size, 0)
# this is the same as what we saw before
self.c... | [
"javacasm@gmail.com"
] | javacasm@gmail.com |
85041057b18077c038426fd96461f5dbd0ed30a7 | 747febe786dd6b7fd6c63cfe73dbe3023354daa8 | /src/the_tale/the_tale/game/companions/tests/test_abilities_effects.py | 433f74ad27be13a54043c1f878032a3d17dfde97 | [
"BSD-3-Clause"
] | permissive | the-tale/the-tale | 4e4b8d91dc873a5fb935fe58e9721a877baa6d3f | e8450bd2332344da805b1851e728da5a3e5bf0ef | refs/heads/develop | 2023-08-01T13:53:46.835667 | 2022-12-25T18:04:56 | 2022-12-25T18:04:56 | 1,949,167 | 98 | 52 | BSD-3-Clause | 2023-02-15T18:57:33 | 2011-06-24T18:49:48 | Python | UTF-8 | Python | false | false | 35,535 | py |
import smart_imports
smart_imports.all()
effects = companions_abilities_effects
MODIFIERS = heroes_relations.MODIFIERS
class BaseEffectsTests(utils_testcase.TestCase):
def setUp(self):
super(BaseEffectsTests, self).setUp()
game_logic.create_test_map()
self.account = self.accounts_f... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
8f220b99ce9abe542226edff8616a3c76b131572 | e4dfc0bff7e5f04a1b730ce80e026bc9f75028a8 | /AdminControls.py | 5f4c8900b2c503ff800007fc4ed4c971690d391e | [
"MIT"
] | permissive | DevinDai13/PythonSQL1 | 79f761b71c1e682d00d44e5ab5f3569b6cfd276b | 484fba42be97cfe8a92b9662f0e368d5d9f1e634 | refs/heads/master | 2020-04-15T04:22:52.981505 | 2019-01-07T05:08:32 | 2019-01-07T05:08:32 | 164,380,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | import hashlib
import sqlite3
def adduser(user_id, role, login, password):
sqlite_file = 'waste_management.db'
conn = sqlite3.connect(sqlite_file)
c = conn.cursor()
hash_name = 'sha256'
salt = 'ssdirf993lksiqb4'
iterations = 100000
dk = hashlib.pbkdf2_hmac(hash_name, bytearray(password, ... | [
"wdai@ualberta.ca"
] | wdai@ualberta.ca |
3ef50a5ab63dbe5576fb20f4c923d9c42fe54067 | 6f03463e17880ff8a1b70d27bf2176e58e27fa55 | /scripts/daos/dao.py | f3a9255630163cd124c25c437fe977bf75a569c1 | [] | no_license | covid-maps/covid-maps | 36ee3322a010f1d71b1b9d40d784fdac0270f9a1 | e11fdc60176e427d705227a462048a83ac0f71ed | refs/heads/master | 2022-06-10T03:25:17.924328 | 2020-05-04T20:18:42 | 2020-05-04T20:18:42 | 250,145,013 | 22 | 18 | null | 2020-05-03T01:33:33 | 2020-03-26T02:47:29 | JavaScript | UTF-8 | Python | false | false | 675 | py | from sqlalchemy import inspect, and_, func
from sqlalchemy.orm import sessionmaker, scoped_session
import logging
logger = logging.getLogger(__name__)
class DAO:
"""
This is the base data access object class
"""
def __init__(self, table, engine=None):
self.engine = engine
self.sessi... | [
"sampoorna.biswas01@gmail.com"
] | sampoorna.biswas01@gmail.com |
30da4a8a5a19228bd3e60af5efea4574934cafb1 | 975452a3dd216b69b4042a1bc24f44b3a1cccf5f | /simple/commons.py | 8c1116fe9bbd0bca3f18f0c80a606aeb5840c6cd | [] | no_license | freedream520/django-ozgweb | b9e8e0a7c26500b4f3253e1a50d85d5987d2f40a | 33c479d4a1c3800018ab4312f2c692a76af25241 | refs/heads/master | 2020-04-01T23:07:18.719337 | 2014-12-25T03:30:53 | 2014-12-25T03:30:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,029 | py |
import os
import sys
import random
import io
from django.shortcuts import render
from django.http import JsonResponse
from django.http import HttpResponse
from PIL import Image, ImageDraw, ImageFont
from math import ceil
from . import cfg
#验证码部分
#修改自https://github.com/tianyu0915/DjangoCaptcha,以支持python3
current_path... | [
"ouzhigangGBA@gmail.com"
] | ouzhigangGBA@gmail.com |
7fa3ca550e4a232b9a12738fe935a8f44deee0be | dc52dac6c6fd6ea01de20abaff781922f3fba924 | /textclf/models/classifier/resrnn.py | fae2f115ca3b036cc6d03b0f8b470f269f806197 | [
"MIT"
] | permissive | luopeixiang/textclf | d92c2306180bb4b0990943b2b7ba88447fee83c7 | fa4ad4813bf8cb49e8a0d080110014498f8dfc47 | refs/heads/master | 2023-07-29T05:04:00.593454 | 2022-05-27T07:00:08 | 2022-05-27T07:00:08 | 177,423,020 | 212 | 25 | MIT | 2023-07-21T21:45:38 | 2019-03-24T14:05:26 | Python | UTF-8 | Python | false | false | 1,046 | py | import torch.nn as nn
from textclf.config import ResRNNClassifierConfig
from .base import Classifier
from .components import RNN, AttentionLayer
class ResRNNClassifier(Classifier):
def __init__(self, config: ResRNNClassifierConfig):
super(ResRNNClassifier, self).__init__(config)
rnn_config = con... | [
"peixiangluo@tencent.com"
] | peixiangluo@tencent.com |
b07882d6172e17a77755b2fa73a71cae026b5b0d | 357ee4a4bdc976fd1fe482988a19e9e59dbe796c | /composeexample/settings.py | d9c0d7ab97d90da6accd85f8f1061a19f0d511b9 | [] | no_license | jeremiak/docker-compose-django-digital-ocean | 76ecde4f35cdbe45ca8d918df2e646c83fdbcb93 | 746f9d0d8657b6b85b19fd5dda2a8a78a9cf2edd | refs/heads/master | 2021-07-19T11:33:08.203984 | 2017-10-25T18:51:17 | 2017-10-25T18:51:17 | 108,315,111 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,208 | py | """
Django settings for composeexample project.
Generated by 'django-admin startproject' using Django 1.11.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
im... | [
"jeremia.kimelman@gsa.gov"
] | jeremia.kimelman@gsa.gov |
9f0c923813fa96aeb957cf818428b8bdd1080bfa | 6aad7d9ba2aa2bfd058c3f953fe47b52de3725b3 | /structs.py | 7d9c7e6174b664ead1a172c240ab5b52dde238dd | [] | no_license | shubhamDev73/3D | a3887463a8e32b535234079823e2b233f060248c | 1ff3e5a40f98746196442f32e80b5fcd1d76ce7c | refs/heads/master | 2021-05-17T17:24:39.298819 | 2020-04-02T21:17:05 | 2020-04-02T21:17:05 | 250,894,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,587 | py | """ Implements basic structures used throughout """
import math
class matrix:
""" Class implementing all matrix functionality """
# Commonly used matrices as classmethods
@classmethod
def identity(cls, n=4):
# Identity matrix of degree n
result = matrix(n, n)
for i in range(n):
result.insert(i, i, 1)
... | [
"shubham0209@gmail.com"
] | shubham0209@gmail.com |
f62111deb74e279775448c7d5a97f5ea7f6a8255 | 9f835d53232e954805b7ed1d93889e409209b36b | /1541_복습.py | 134932438e9def1182112113c24eb401c83df29d | [] | no_license | dmswl0311/Baekjoon | 7c8a862fceff086b3d7740eef23b80164e1d5aeb | 22040aff6b64d5081e86d91b0d118d1a718a4316 | refs/heads/master | 2023-04-29T13:48:51.448245 | 2021-05-26T14:35:32 | 2021-05-26T14:35:32 | 323,482,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | s = input().split('-')
sum = 0
result = []
for i in s:
if '+' in i:
a = i.split('+')
for j in a:
sum += int(j)
result.append(sum)
else:
result.append(int(i))
minus = result[0]
for i in range(1, len(result)):
minus -= result[i]
print(minus)
| [
"dmswl_0311@naver.com"
] | dmswl_0311@naver.com |
86c5da7bb034a60aca742ec0d047145ea02fa45a | 201edd307f8f43281d14bdec1a6dd080a1409ca9 | /pyrave/__init__.py | 9242209e0b5826de7c9d85d5cdae1a78ab72ecb9 | [
"MIT"
] | permissive | Olamyy/pyrave | 1c5392444496d91f23a6af763b7cf6b77076a650 | 741bd0f68f29b0fd075b1060d53de99d91938224 | refs/heads/master | 2022-12-13T08:16:30.647440 | 2021-03-26T16:43:30 | 2021-03-26T16:43:30 | 122,391,698 | 11 | 7 | null | 2022-12-08T07:44:24 | 2018-02-21T20:48:21 | Python | UTF-8 | Python | false | false | 290 | py | __version__ = '1.0.3-alpha'
__author__ = "Olamilekan Wahab"
__license__ = 'MIT'
__copyright__ = 'Copyright 2017. Olamilekan Wahab'
from .payment import Payment
from .transaction import Transaction
from .misc import Misc
from .preauth import Preauth
from .encryption import RaveEncryption
| [
"olamyy53@gmail.com"
] | olamyy53@gmail.com |
08a2e20be25c466e50a8eb46e4b760fe2d09eabf | d57233c4d554a9311b52301decce4a046b743ae7 | /projects/Intro5_6.py | 0a75ccf5ae379dc0ff39a9c1d4b1bb4cc5a3d645 | [] | no_license | josenriagu/python-mini-projects | 69f0ad9c30cd3742bd88efd191df1b2bb5e59b59 | b7d300d3af180cddfa65a5eb89e010febb5067de | refs/heads/master | 2020-06-14T06:26:49.826332 | 2019-07-02T20:57:25 | 2019-07-02T20:57:25 | 194,932,952 | 1 | 0 | null | 2019-07-02T20:57:26 | 2019-07-02T20:49:29 | null | UTF-8 | Python | false | false | 2,664 | py | #---LESSON 5: Dictionaries - Working
#with Key-Value Pairs---
student = {'name': 'Jose', 'age': 22, 'courses': ['Math', 'Communications']}
print(student)
print(student['name'])
print(student['courses'])
'''
Dictionaries can contain any immutable data type
as key or value. Accessing a key that doesn't exist
results i... | [
"josemarianriagu25@gmail.com"
] | josemarianriagu25@gmail.com |
867accc1fa0ae63cde0cb8f95b38ab6d178fb261 | f9141cb0e7677d9892fe1edddad3dd20db96fc0a | /rule_class.py | e91f8826a7ec8eb72061b57bf50b4cbba436e3a9 | [
"MIT"
] | permissive | andytaylor823/play-euchre | beb47d26dbf35d08de97e4b51b2712338a69fe68 | 32887980487e07865b799de96069f50866760a12 | refs/heads/master | 2020-08-02T13:53:10.030200 | 2020-04-27T12:01:23 | 2020-04-27T12:01:23 | 211,376,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | import basicprogs as b
import boardstate_class as bsc
from inspect import signature # use this to check the "condition" argument
class rule:
def __init__(self, condition, rule_type, name='rule'):
if not callable(condition):
print('Error: condition argument must be a callable function')
raise(ValueError)
s... | [
"noreply@github.com"
] | andytaylor823.noreply@github.com |
790f320f73573645f8c4d22bab38bef0a32c0b52 | f112dfe38732f131156556ab724e2b9a01d317ae | /week2/43-reverse-num.py | 1cc8c4dbef21bd1ef9aac050ea0e5115f52387a4 | [] | no_license | pharick/python-coursera | 2a92bf467e0ddd35a573ea4e29fff9a37e45bd24 | 3e24ac9385eada126e7c4753f71cd38181987fbf | refs/heads/master | 2020-04-04T03:44:45.067099 | 2019-03-20T07:10:22 | 2019-03-20T07:10:22 | 155,724,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | n = int(input())
while n:
print(n % 10, end="")
n //= 10
print()
| [
"artemforkunov@gmail.com"
] | artemforkunov@gmail.com |
0d843d4556bf97c40beacc40c239357fa08e4b8a | 05263538c3ad0f577cdbbdb9bac87dcf450230ce | /alexa/ask-sdk/ask_sdk_dynamodb/__version__.py | 5cfdf120d47b16330d48f329ae8c0e26ce048100 | [] | no_license | blairharper/ISS-GoogleMap-project | cea027324fc675a9a309b5277de99fc0265dcb80 | 3df119036b454a0bb219af2d703195f4154a2471 | refs/heads/master | 2020-03-21T16:47:21.046174 | 2018-10-24T08:05:57 | 2018-10-24T08:05:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | #
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... | [
"blair.harper@gmail.com"
] | blair.harper@gmail.com |
d1f2676ff8d9ab324c0423935125dcea3d8e25d4 | 0affb6a667543c825dd44e85d6af6b7be5c8cf8b | /day11/day11_2.py | 08c98ae924fdeff84a8823e3116c184578360091 | [] | no_license | 233-wang-233/python | 2fa4c7a7c4d7ba2579cea89d9ba30203956942d4 | 0824b9b50fba7d4557a3de60e2c0b830d6dac196 | refs/heads/master | 2021-01-25T22:33:42.960067 | 2020-04-02T07:55:45 | 2020-04-02T07:55:45 | 243,209,061 | 0 | 0 | null | 2020-03-02T06:50:27 | 2020-02-26T08:26:24 | Python | UTF-8 | Python | false | false | 504 | py | '''
两进程进行通信
一个输出Ping,一个输出Pong,两个进程输出的Ping和Pong加起来一共10个
'''
from multiprocessing import Process
from time import sleep
counter=0
def sub_task(string):
global counter
while counter<10:
print(string,end=' ',flush=True)
counter+=1
sleep(0.01)
def main():
Process(target=sub... | [
"noreply@github.com"
] | 233-wang-233.noreply@github.com |
bcdcdba6ff316a16065b95a2bba284abc290a417 | 9d25d1205da84db33bc425266bc3021cd7529cb1 | /digitalearthau/testing/plugin.py | b73fdee1aba0e11cd5d8c9a183a595c1b7c6e754 | [] | no_license | GeoscienceAustralia/digitalearthau | 9068970b2794a4ac55a34f910caa5877b548bb37 | 4cf486eb2a93d7de23f86ce6de0c3af549fe42a9 | refs/heads/develop | 2023-06-22T14:31:41.516829 | 2022-11-14T05:22:05 | 2022-11-14T05:22:05 | 51,411,119 | 31 | 21 | null | 2023-06-14T06:36:31 | 2016-02-10T00:16:36 | Python | UTF-8 | Python | false | false | 2,081 | py | import itertools
import os
import pytest
from pathlib import Path
from typing import Iterable
import datacube
import digitalearthau
import digitalearthau.system
from datacube.config import LocalConfig
from . import factories
# These are unavoidable in pytests due to fixtures
# pylint: disable=redefined-outer-name,pr... | [
"damien@omad.net"
] | damien@omad.net |
76f794ba7b0ecbb4b8044008f296f605ccca2439 | 94838674ffd175df6194437c1ccc3f90ab409d6c | /pillowV3/log/2018-12-30 14:25:26.954969 | 574f467c8fb2f82034a73060e36f0973007e6bd0 | [] | no_license | WojciechKoz/MyFirstNeuralNetwork | 4fdb3140d8f02257599d005638598f78055c1ac8 | 3cd032aba80ecd71edb0286724ae9ba565b75a81 | refs/heads/master | 2020-04-02T03:02:48.680433 | 2020-02-29T17:57:43 | 2020-02-29T17:57:43 | 153,943,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498,667 | 954969 | #!/usr/bin/env python3
# -*- coding: utf8 -*-
from __future__ import print_function # new print() on python2
from datetime import datetime
import sys
import numpy as np
from mnist import MNIST
# Display full arrays
np.set_printoptions(threshold=np.inf)
mndata = MNIST('./data')
images_full, labels_full = mndata.loa... | [
"246992@student.pwr.edu.pl"
] | 246992@student.pwr.edu.pl |
ed0c506a4e560bd296f8b23da088c23994a9bb50 | 4f51225cd157b0e31bc4268d2eb4d31159b074c4 | /simulation_main.py | 23c41147d3dc73ef20228cbc66bb91777ae90a93 | [] | no_license | Jarvis-X/pioneer_free_run | 3be03098349a0476a0b1ec91ce318b5aface54c7 | 5bad268f28d54a1da65930ec49ddde1404c5d878 | refs/heads/master | 2022-07-31T01:17:43.708467 | 2020-05-15T22:52:35 | 2020-05-15T22:52:35 | 264,040,655 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,711 | py | # Make sure to have the server side running in CoppeliaSim:
# in a child script of a CoppeliaSim scene, add following command
# to be executed just once, at simulation start:
#
# simRemoteApi.start(19999)
#
# then start simulation, and run this program.
#
# created by: Jiawei Xu
try:
import sim
im... | [
"noreply@github.com"
] | Jarvis-X.noreply@github.com |
c762cc47d5dd64dfe9ce9a6360e92b0bfa00928f | 5e5d54c3d1c6b9f5de3c4f36f486506cd415e38e | /pyupbit/__init__.py | 20af8b94c42227711af1b9fe318b1239ddb3bd02 | [] | no_license | lsjhome/pyupbit | 1cded7e189d68a4e7566c87f6b259f4ba980925f | 68c4541bd04532bcfdf46fa2004b5db4d11b9be9 | refs/heads/master | 2020-04-28T09:39:28.944916 | 2019-10-26T20:16:51 | 2019-10-26T20:16:51 | 175,174,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | from pyupbit.pyupbit import PyUpbit
__version__ = '1.0.0'
| [
"lsjhome007@gmail.com"
] | lsjhome007@gmail.com |
1c7d4bc21df35e1245c6c10e7f05a4b42cec7807 | 1cfbdee506b996c731db6850f55f92c1be0d136e | /training/forms.py | d1451fd8bfefd183677dad3546419a9ee1ec7904 | [] | no_license | alex2702/iotrec-backend | 0d0334288ccdb6aae85b74d9522f5d0fb08e3281 | e9c66baf789d3efc20cb109b7d69fff6d658760c | refs/heads/master | 2022-12-03T08:01:21.950701 | 2019-12-23T07:12:14 | 2019-12-23T07:12:14 | 228,316,627 | 0 | 0 | null | 2022-11-22T04:38:09 | 2019-12-16T06:19:51 | Python | UTF-8 | Python | false | false | 2,009 | py | import random
from django import forms
from .models import Sample, ReferenceThing, ContextFactor
# form to collect five training samples for a reference thing
class SampleForm(forms.Form):
# thing, CF and CFV fields are all hidden
thing = forms.IntegerField(widget=forms.HiddenInput())
context_factor_1 = ... | [
"alex.ikas@tum.de"
] | alex.ikas@tum.de |
f73f3bb6c439153d7bd119d6e542dfa392dbf1f5 | 913777b293fc18fc7d2ea08411bc3b25a72ca2df | /__manifest__.py | c2f185af678a6f51cb5ed21e8537defdf7752046 | [] | no_license | ValeroMateo/RecuperacionOdoo | 4ebd6542a0a6e2a6d489e311dc58ae4ad595469a | 02e3c86fae59f2ea10c09f0b5cc5b6e8c8d8e046 | refs/heads/master | 2020-12-07T17:56:19.724969 | 2020-01-28T10:40:05 | 2020-01-28T10:40:05 | 232,765,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | # -*- coding: utf-8 -*-
{
'name': "Remedial exam Odoo",
'summary': """Hoping for the best""",
'description': """
Remedial exam module with the purpose of making our professor feel better about his students
""",
'author': "Valero Mateo",
'website': "http://www.mybigassdisaster.com",
... | [
"valero.mateo98@gmail.com"
] | valero.mateo98@gmail.com |
a95a21a906cbc61b1a494f65b0db168b544ba60c | 3e65c4a3781359e1e68870f6419bb580cec3d670 | /tests/front_office/not_sorted/example_suite.py | 8e6a9c7a6af12a6447ad8d011d612ac059ef3aea | [] | no_license | Maksim1988/test | deeff67fc3211c913d9be77008f38fe9e24a2a18 | ea1fd32981fce2db2c8bb6ceeb477bc7561e58cd | refs/heads/master | 2021-01-10T17:03:36.871180 | 2015-11-08T13:08:49 | 2015-11-08T13:08:49 | 45,779,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | __author__ = 'm.senchuk'
import itertools
from nose.loader import TestLoader
from nose import run
from nose.suite import LazySuite
#paths = ("C:\Users\\m.senchuk\\PycharmProjects\\FF4F\\api-tests\\tests\\front_office\\test_search.py:TestSearchSeller",
# )
#
#
#def run_my_tests():
# all_tests = ()
# for ... | [
"m.senchuk@yandex.ru"
] | m.senchuk@yandex.ru |
831ecbe5f0e78dba57eef89d48c2de2dfde712b6 | 1152aeca900b16e4c9a659a1a014a892aa08fb01 | /hello-django/question/migrations/0005_auto_20190108_1023.py | b4543fcab26962803577b5e012d6f0c42f93530f | [] | no_license | mixkungz/django-for-deploy | 923ff536fd8a2506bb53cb77bdd315513e40ae9c | 187fe18ad85ca8bd04ee2e053248cdeff030cc85 | refs/heads/master | 2020-05-03T13:37:10.190004 | 2019-03-31T10:17:08 | 2019-03-31T10:17:08 | 178,657,364 | 0 | 0 | null | 2019-03-31T07:40:20 | 2019-03-31T07:40:20 | null | UTF-8 | Python | false | false | 435 | py | # Generated by Django 2.0.9 on 2019-01-08 03:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('question', '0004_auto_20190108_1010'),
]
operations = [
migrations.RemoveField(
model_name='answer',
name='created',
... | [
"supawit.ruen@mail.kmutt.ac.th"
] | supawit.ruen@mail.kmutt.ac.th |
643a7e8fab27c002a3adec8754905d174c27db19 | ab4f74d127bfc89813ee359bb9c779eca5426ddc | /script/label_image.runfiles/org_tensorflow/tensorflow/contrib/resampler/python/ops/resampler_ops.py | 77aba28802d7d37842990c9062030322f5f2eb39 | [
"MIT"
] | permissive | harshit-jain-git/ImageNET | cdfd5a340b62862ad8d1cc3b9a0f30cccc481744 | 1cd4c2b70917e4709ce75422c0205fe3735a1b01 | refs/heads/master | 2022-12-11T12:47:46.795376 | 2017-12-19T05:47:26 | 2017-12-19T05:47:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | /home/co/Documents/ImageClassifier/tensorflow/tensorflow/contrib/resampler/python/ops/resampler_ops.py | [
"harshitjain1371999@gmail.com"
] | harshitjain1371999@gmail.com |
fb04fa20f9674a3aa47b159387a398b15b39606b | b5906e0a8c000176faebdf7eeb9488ad42812985 | /lib/python2.7/site-packages/tflearn/helpers/trainer.py | 6810e5f1d7cd6031735772af89391561c9dcf689 | [] | no_license | ZachPhillipsGary/CS200-NLP-ANNsProject | 58593b5ad79d578503ea1e1cc155e014a10f26c3 | 35db127effc2a427dfd6f1ff7022b35f31c8337b | refs/heads/master | 2022-12-22T07:42:52.513314 | 2016-05-06T13:52:40 | 2016-05-06T13:52:40 | 56,972,642 | 0 | 1 | null | 2016-05-02T04:22:19 | 2016-04-24T13:21:29 | Python | UTF-8 | Python | false | false | 33,519 | py | # -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import numpy as np
import tensorflow as tf
from tensorflow.python.training import optimizer as tf_optimizer
import tflearn
from .. import callbacks
from ..config import init_training_mode
from ..utils import to_list, id_generator... | [
"zpg@Zachs-MacBook-Pro.local"
] | zpg@Zachs-MacBook-Pro.local |
0e743649d4432447a1728b244cf860d8f0e7dbf6 | 4b7d83793acd0c84f8bd2603f766b5d8ba10c2eb | /solutions/RegularSolutionThreads.py | 1aa780dcdf05184559bff2d1b32f64bd705f905b | [] | no_license | TudorOrha/Parallel-image-filter-application | 021a5497182c916a9d0e10623a2b87dfe7d12d37 | 345f167eb9db621439556713f1923cbaa7052fdf | refs/heads/master | 2021-09-03T20:57:08.597365 | 2018-01-11T23:41:17 | 2018-01-11T23:41:17 | 115,743,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,155 | py | import time
import threading
import multiprocessing
from multiprocessing import Pool
from PIL import Image
nrOfThreads = multiprocessing.cpu_count()
class myThread (threading.Thread):
def __init__(self, threadID, kernel, img, originalImg):
threading.Thread.__init__(self)
self.threadID = threadID
... | [
"tudor_orha@yahoo.com"
] | tudor_orha@yahoo.com |
beb4cb8c5fb98b584d7ccafc8ad7673035e22014 | 5c3cca4ea09b1cad4be3b5973f1c9028661a92b4 | /flup/resolver/nopathinfo.py | 93063e28daae4b8ec73476e411d81e94ee16ed2f | [] | no_license | cwallenpoole/blog_m3 | 4cfec16a7cb1f504c8ba579476c18a783725a9aa | 1de1e68ae959c092cf1c486d92a25d511881281d | refs/heads/master | 2016-09-06T18:55:28.087462 | 2013-01-28T02:02:03 | 2013-01-28T02:02:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,521 | py | # Copyright (c) 2005 Allan Saddi <allan@saddi.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of c... | [
"cw@allen-poole.com"
] | cw@allen-poole.com |
c3ccdce9e5846ff35e01721dd3820ee452c05378 | e2cdf33fed0f2ea82ca3933ea0f57affb2bb203a | /events.py | 4b5b148ce2f959d75029b3f4c61254b6cb90f35f | [] | no_license | shaikhul/scoring_engine | 67109c569bfa7b425fee8fdf4367d92adc0bd433 | e48693be39cfeb849c245b5bc9b5a67270d7859a | HEAD | 2016-09-06T04:30:40.571150 | 2015-09-01T02:49:11 | 2015-09-01T02:49:11 | 41,713,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | class Event(object):
def __init__(self, score=0):
self.score = score
def get_weighted_score(self):
return self.weight * self.score
def get_event_type(self):
return self.event_type
class WebEvent(Event):
weight = 1.0
event_type = 'web'
class EmailEvent(Event):
weight... | [
"shaikhul.net@gmail.com"
] | shaikhul.net@gmail.com |
4e8d14003c2e112ef076b89c4c8a3ad6613f9a2c | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/do/customization_failed.py | b63b14e03d5fddb6d06ae4f32d77239d433f8930 | [] | no_license | pexip/os-python-infi-pyvisdk | 5d8f3a3858cdd61fb76485574e74ae525cdc7e25 | 1aadea0afbc306d09f6ecb9af0e683dbbf961d20 | refs/heads/master | 2023-08-28T02:40:28.789786 | 2020-07-16T04:00:53 | 2020-07-16T04:00:53 | 10,032,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def CustomizationFailed(vim, *args, **kwargs):
'''The customization sequence in the guest... | [
"jmb@pexip.com"
] | jmb@pexip.com |
b8e02cce761e458f0b3ef4e1dd2c7a741cb9b2ad | 5131d61e51a227444717abf8180d00db95179b3b | /lessons/point.py | 1ffd4a12965568ee3f8a4242ef1cffcf8805dfcf | [] | no_license | yutika01/comp110-21f-workspace | fdfa9894c2d99a1a43c1c12bee3663632e772865 | a575deba7283c1cbd3b5c5f52cff37af8de3fa89 | refs/heads/main | 2023-09-04T13:23:26.508125 | 2021-11-21T02:27:43 | 2021-11-21T02:27:43 | 422,988,649 | 0 | 0 | null | 2021-10-30T20:54:08 | 2021-10-30T20:54:08 | null | UTF-8 | Python | false | false | 774 | py | """Example of a Point class."""
from __future__ import annotations
class Point:
x: float
y: float
def __init__(self, x: float, y: float):
"""Initialize a Point with its x, y components."""
self.x = x
self.y = y
def scale_by(self, factor: float) -> None:
"""Mutates mu... | [
"yaggarwal@unc.edu"
] | yaggarwal@unc.edu |
231b25ba70c9a57c6b57cd97838fe94e8da086cc | 6140cd676c3c6f0e65d3be4515789e7c0f255ffd | /numeric-tsne-plotly/settings.py | 2c6bcb14653175b3b8fc3e8c7a36707d9890c928 | [] | no_license | RezaKakooee/tsne-collection | 1efa1ab109d00588ff749bbd5d8f6563c841ce2b | 93e58071671e2dfbd9b7e395608c4b2b8dca98ac | refs/heads/master | 2022-04-10T08:08:27.427761 | 2020-03-28T22:53:25 | 2020-03-28T22:53:25 | 241,490,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 18 23:53:36 2020
@author: rkako
"""
import os
class Params():
def __init__(self):
# Directories ans Pathes
self.current_dir = os.getcwd()
# self.dataset_folder_name = 'imageset'
self.dataset_dir = 'C:/Users/reza/gdrive-redu/hslu/HSLU-... | [
"rkakooee@gmail.com"
] | rkakooee@gmail.com |
626e284b40ec0447bfcba31a165d86827eb7df2a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /gHrMmA7emP6CFAMnb_6.py | 35eeb43f5be552b55e650249bf1ff464b8e37754 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py |
def is_apocalyptic(n):
L=str(2**n).split('666')
if len(L)==1:
return "Safe"
elif len(L)==2:
return "Single"
elif len(L)==3:
return "Double"
elif len(L)==4:
return "Triple"
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
4b77de8df4c09f39015218c28428886bf20eb704 | e0df57a2301e9b85fdd95645f5ec7c63e6929cfc | /my_app/currency/migrations/0001_initial.py | 044fdfd08fb04514b3a11142463bde7f4e4a3e78 | [] | no_license | rajdip34/python-online-compiler | 1eb5a8c68d2e019b061f01c91a0788a8d2d2229f | 62fa21daf73a3816c8e0d8da38e7f45af28e2424 | refs/heads/master | 2020-05-04T08:17:05.594349 | 2019-04-02T13:21:31 | 2019-04-02T13:21:31 | 179,043,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-03-30 04:51
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):
initial = True
dependencies = [
migrations... | [
"rajdipmondal34@gmail.com"
] | rajdipmondal34@gmail.com |
e1ec61ece7c4b94c6d91bb0b115a6a0aefd76e07 | bc39253e56a81d65b30975a775ae18e59db75c47 | /pygame_basic/game.py | a8a3257ad370d554bb98cdc99e55a5d1b8aae8a5 | [] | no_license | skysee6126/py_game | 96ed06c93d7566907af61a2df0e199325a1d6191 | 5213692541817e63b32a4b33af46c2c940836961 | refs/heads/master | 2023-04-21T15:07:53.074074 | 2021-04-28T13:22:15 | 2021-04-28T13:22:15 | 360,445,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,917 | py | import pygame
pygame.init()
screen_width = 640
screen_height = 480
screen = pygame.display.set_mode((screen_width, screen_height))
pygame.display.set_caption("Test game")
#FPS
clock = pygame.time.Clock()
# background = pygame.image.load("C:\Users\케이지케이\Documents\practice\game\pygame_basic\background.jpg")
character... | [
"chooshinhye@gmail.com"
] | chooshinhye@gmail.com |
da7a23f4a851db24c0e9eb29f459bc642aaa7923 | a2567270e79ff3f8b7b9a9e28f91b46c2315313a | /unidad_2/ejercicio_2_8.py | 5739b6c289dc09a410a352d9b02db209ce324660 | [] | no_license | b3nkos/learning_python | b87c421918ff3ad9ae480d351cbabf20d18fbb36 | 64920a70ad14b94d0abfa690e7c70e209014c5e7 | refs/heads/master | 2016-09-03T07:34:49.190664 | 2015-07-13T05:31:27 | 2015-07-13T05:31:27 | 38,992,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Escribir un programa que use un ciclo definido con rango numérico,
que averigue a cuántos amigos quieren saludar,
les pregunte los nombres de esos amigos/as, y los salude.
"""
number_of_friends = input("Digite el número de amigos que desea saludar: ")
for x in range(numb... | [
"cristianandres92@gmail.com"
] | cristianandres92@gmail.com |
2505a5e7e60a90a9d8a8586e237cbc32f6195255 | 0b024b99b7f79f299b9f63ffe08d6ab25c92c560 | /rolePermission/wsgi.py | 7a5ca7aca64ff5c22e1ddbb8a5511a208563fbce | [] | no_license | Bakhodirov-Jakhongir/django-role-permission-based-app | 924afebd9abeb494db89bbb17efc77b0ed3ed623 | 4f6e698a7bf0988ac1b72a577a83d2f84c3d5767 | refs/heads/main | 2023-08-25T07:17:06.292622 | 2021-11-02T11:21:04 | 2021-11-02T11:21:04 | 423,815,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for rolePermission 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('DJANG... | [
"bahodirovjahongirxoja@gmail.com"
] | bahodirovjahongirxoja@gmail.com |
d1ddaf333839d2b4c77c8c4265b2240ac9836035 | 8d6fa96da4220ba886ef8e858f1925b6dca34e58 | /examples/wtf/wtf/config.py | 7cf539ff078f59cb14f772090950734c0d091acb | [] | no_license | FZambia/cyclone-wtforms | 6ee26c920171685e027529e8f1fbb99c765edc30 | c266b5f3bfff77e3a721b3335b74a294966f7daf | refs/heads/master | 2016-09-05T15:23:08.336180 | 2012-10-05T18:55:00 | 2012-10-05T18:55:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,041 | py | # coding: utf-8
#
# Copyright 2010 Alexandre Fiori
# based on the original Tornado by Facebook
#
# 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... | [
"frvzmb@gmail.com"
] | frvzmb@gmail.com |
3054352bdfefed54c1ca9176eeaada9868f2f651 | 97637aa398dd498a4f3598a061329ee0a8919726 | /robots/maps.py | 41e5db884a562f71bbb89930ad58643e2a6cfabb | [] | no_license | guitaoliu/multi_robot_xplore | 1d09a328779484ec482714a0438da75469342eaf | 2a006216aaacf4e9e5ae6ca753e390897812f055 | refs/heads/master | 2022-10-02T21:54:02.535024 | 2020-06-03T07:30:03 | 2020-06-03T07:30:03 | 269,020,061 | 1 | 0 | null | 2020-06-03T07:31:11 | 2020-06-03T07:31:11 | null | UTF-8 | Python | false | false | 3,125 | py | import numpy as np
from abc import ABC
from typing import List
from robots.setting import (
MAP_SIZE,
BARRIER_PERCENTAGE,
PHE_VOLATILIZE_CAP,
MAP_EXPLORE_PERCENT,
)
class Node:
def __init__(self, pos: tuple):
self.x = pos[0]
self.y = pos[1]
def loc(self) -> tuple:
re... | [
"guitao.liu@outlook.com"
] | guitao.liu@outlook.com |
128efb9b492a29c2e87a97b932e626a724b6af9f | 52b9016932aa426eeaaade5d856af6a1a771683f | /tests/testapp/serializers.py | 3c4be81a47c21da377120bda5b7ee7eb6deb647d | [
"MIT"
] | permissive | marlncpe/django-rest-pandas | 33033627d88c6467a9677133402fb519d5ea5a75 | 89a93c3ce8d30688f9137f5a9beacc7d63f621e0 | refs/heads/master | 2021-01-23T11:55:02.722962 | 2017-09-01T20:47:46 | 2017-09-01T20:47:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | from rest_framework.serializers import ModelSerializer
from rest_framework import serializers
from rest_pandas import PandasUnstackedSerializer
from .models import TimeSeries, MultiTimeSeries, ComplexTimeSeries
class TimeSeriesSerializer(ModelSerializer):
date = serializers.DateField(format=None)
class Meta:... | [
"andrew@wq.io"
] | andrew@wq.io |
e54034ad6c7d99686d24d85630c58338ce0e63ee | 6f753a851d5ffc7263160642422ee654e5a75a4e | /blog/templatetags/blog_tags.py | 94aa21fe6d3d95bbea80c9dd8e46c0ff3b4876d9 | [] | no_license | iteegi/myBlog | 1f5dda1f4a615a4e6a8a107838ab4b8db72c283f | b6f5dec8c5dbe258e0e25f2b300c968ace0d8350 | refs/heads/master | 2021-02-16T08:17:46.222872 | 2020-03-04T19:27:17 | 2020-03-04T19:27:17 | 244,984,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | """Custom tags for the blog."""
from django.db.models import Count
from django import template
from ..models import Post
from django.utils.safestring import mark_safe
import markdown
register = template.Library()
@register.simple_tag
def total_posts():
"""Return the number of published articles."""
return ... | [
"jd@gmail.com"
] | jd@gmail.com |
23cb6c73db0e3711ff0ecbd0b6aa7165e94b3584 | a01fb7bb8e8738a3170083d84bc3fcfd40e7e44f | /python3/module/pandas/df/sql/join.py | 540fb2077f46a30f47e810c2b98ebc2c0a79da73 | [] | no_license | jk983294/CommonScript | f07acf603611b4691b176aa4a02791ef7d4d9370 | 774bcbbae9c146f37312c771c9e867fb93a0c452 | refs/heads/master | 2023-08-21T17:50:19.036159 | 2023-08-16T00:22:03 | 2023-08-16T00:22:03 | 42,732,160 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | import pandas as pd
import numpy as np
df1 = pd.DataFrame({'key': ['A', 'B', 'C', 'D'], 'value': np.random.randn(4)})
df2 = pd.DataFrame({'key': ['B', 'D', 'D', 'E'], 'value': np.random.randn(4)})
print(df1)
print(df2)
# SELECT * FROM df1 INNER JOIN df2 ON df1.key = df2.key;
print(pd.merge(df1, df2, on='key'))
# in c... | [
"jk983294@gmail.com"
] | jk983294@gmail.com |
c98cf8d841b31199e65e5296805d025a9c933399 | fbea032896db7e9f17687ab1e09cee580a66d179 | /utils.py | 10af90c3c81b1277d7ffa8227263bb65cfa174ec | [] | no_license | jmadni/ingage | 4be888a6afe9cbef7b3c6adda0d27553fa35395c | c4a95bb01c63d12e1128a6a541edab39292c9b03 | refs/heads/main | 2023-02-13T14:02:42.554191 | 2021-01-12T07:03:33 | 2021-01-12T07:03:33 | 328,564,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | import os
import shutil
from moviepy.video.io.VideoFileClip import VideoFileClip
def output_directory(dir):
if os.path.exists(dir):
shutil.rmtree(dir)
os.mkdir(dir)
def check_input_file_valid(video_file):
try:
VideoFileClip(video_file)
except FileNotFoundError:
pass
| [
"t.vinaykumar98@gmail.com"
] | t.vinaykumar98@gmail.com |
3974a3b8483800aaf3ad9f189e529ec6e246d184 | f6c5aa5931b71a31246168c9049da50797e5ce57 | /djangoapp/src/config/urls.py | 80f6238a15460d9c83ea408eb5d3f925bf0bed62 | [] | no_license | AlexLoar/musicallity | 7b724b8350cab3de516228636268b79ba51f5b4c | 5dc09e8b7fed8c666181a4cb87e8d8328481f1d5 | refs/heads/master | 2023-01-02T12:20:38.648476 | 2020-10-06T16:00:49 | 2020-10-06T16:00:49 | 301,781,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | from django.contrib import admin
from django.conf import settings
from django.urls import path, include
from django.conf.urls.static import static
from django.utils.translation import ugettext_lazy as _
from django.views import defaults as default_views
from config.router import urlpatterns as api_urlpatterns
app_na... | [
"alexloar87@gmail.com"
] | alexloar87@gmail.com |
a6cc13163a16574087d481e50d5730f46c476e01 | ef4a2e4aadc67a1d5e929f5c0c3e902b34f663dc | /examples/psychotria.lagrange.py | 767424584fc3bc922133c667c347f6c9b73538e6 | [] | no_license | zxf-art/lagrange-python | 326b23cc69b1eb81db9127a2ec8fc91bcc0b6dbc | e67f1e671d313319bdc374a3371fa3717a8e7091 | refs/heads/master | 2020-06-12T06:18:20.917164 | 2018-01-22T19:50:43 | 2018-01-22T19:50:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,929 | py | #!/usr/bin/env python
import os
import lagrange
data = """\
### begin data
{'area_adjacency': [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]],
'area_dispersal': [[[1.0, 1.0, 1.0, 1.0],
[1.0, 1.0, 1.0, 1.0],
[1.0, 1.0, 1.0, 1.0],
[1.0, 1.0, 1.0, 1.... | [
"github@rree.fastmail.fm"
] | github@rree.fastmail.fm |
4037c0492bcce6dde2154f61c014bed9328f5868 | ed36a77bf31a5e2d99f80fe4c13224976ea274fd | /blog/models.py | c1d564824fd2f82a1cb2709ca4bab96d404d49a3 | [] | no_license | lovelove0618/django_swu_website | b2752623112bf85a5789b42f6569156293ddd01a | b33c2f267bfcf00490226d8797c7f0190c7466b2 | refs/heads/master | 2022-11-29T10:06:26.382813 | 2020-08-17T16:39:13 | 2020-08-17T16:39:13 | 287,696,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | from django.db import models
from django.contrib.auth.models import User
class Post(models.Model):
title = models.CharField(max_length=30)
content = models.TextField()
created = models.DateTimeField()
author = models.ForeignKey(User, on_delete=True)
| [
"lovelove0618@naver.com"
] | lovelove0618@naver.com |
478b126ab280b9343347c1ee8bc9238dd9f45703 | 86da8c4d616a78afc7cd09711b0151e5f852a8b8 | /pythonprograms/LanguageFundamentals/Logicaloperator.py | 98dae1b5e2d38ecb15661dfb77541e77356b7768 | [] | no_license | sharijamusthafa/luminarpython | d1d3274d23d93af2c5e4db7d2652e8cb46b133aa | 8ebd75ea5f734e5061a7138153a2c6b1cd43a738 | refs/heads/master | 2022-12-23T22:45:40.194242 | 2020-10-07T16:40:09 | 2020-10-07T16:40:09 | 290,109,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | num1=2
num2=4
print(num1&num2)
| [
"sharijamusthafa@gmail.com"
] | sharijamusthafa@gmail.com |
7d3341862b6c5f086993c701914ada358509663c | d27c668c98b83904c830141f143125c4eca54406 | /Compiler.py | d1e042d8eaee3e7225397dcecd832c4bb8d157d7 | [] | no_license | VladasZ/build_tools | d38dd7c1b237ec0c7f5d2c0610d85ee94539c923 | 926b1c4b2467e7bb5c58d217cc39cb8d8e9dd8d0 | refs/heads/master | 2022-02-25T04:33:07.360975 | 2022-02-09T21:29:16 | 2022-02-09T21:29:16 | 144,903,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | import Args
import System
import Compilers.GCC
import Compilers.Clang
import Compilers.VisualStudio
gcc = Compilers.GCC.get()
clang = Compilers.Clang.get()
visual_studio = Compilers.VisualStudio.get()
def get_ide():
if System.is_windows:
return visual_studio
if System.is_mac:
... | [
"146100@gmail.com"
] | 146100@gmail.com |
ecb2abc4963884e24944a06ebcf5ef842448978d | 95bebfc06f69425706cf18b717e6b4341373bc30 | /anagram.py | 6212e6c237f6e41af84b6696ebcd2bd95e9231d6 | [] | no_license | vinodrajendran001/python-interview-prep | 9200a8f3076ab1e0a3325f4a3814f811f3c0757c | 80143a4b2b2957b6aff15b0b225f192c04dd1461 | refs/heads/master | 2021-01-12T06:52:32.266606 | 2016-12-23T04:01:02 | 2016-12-23T04:01:02 | 76,851,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py | # O(n^2)
def getstr1(a, b):
c = ""
d = ""
if len(a) == len(b):
for i in range(len(a)):
for j in range(len(b)):
if a[i] == b[j]:
c = c + b[j]
if a == c:
print "given 2 text is anagram"
else:
print "not anagram"
else:
print "length is not same"
# It is O(nlogn) because we use sort()
def... | [
"vinodr.msec@gmail.com"
] | vinodr.msec@gmail.com |
633864555ecc66eee48aee8dc62a911061bc4b80 | 931fafb77d3d1e00d25a4ab658f75d2cd9f5abb8 | /Fundamentals/Session1/YoB.py | 5ee44632a7db87bb8911a50eb0952ebb32a409d0 | [] | no_license | andynguyendk/andynguyen_fundamentals_C4E15 | c72e74d13fcd59dc0d6c7072d55d092418cabfa7 | 845da653307dc72ad68f55d756c36ff17802c6aa | refs/heads/master | 2021-09-09T02:54:30.863797 | 2018-03-13T12:17:11 | 2018-03-13T12:17:11 | 117,338,525 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | n = int(input("What's your year of birth? "))
a = 2018 - n
print ("Now your age is", a)
| [
"andynguyendk@gmail.com"
] | andynguyendk@gmail.com |
a5196fdf75c378ca343c8727c8f7e946e3cccf00 | b8b8722787ee6ee0ebe3eefb6d9e9e0db11a445f | /CIFAR10_MLP/main_5.py | 93f889cdfcaa742288a3b9dc41dfd230478abf24 | [] | no_license | gaow1423/Machine-Learning-Problems | 846061975efd63eddcd1e33e401a3aa2b699b875 | 7a00352cdc213234c23bc215cdb326c032bedd05 | refs/heads/master | 2020-03-17T12:22:46.607558 | 2018-06-17T07:07:55 | 2018-06-17T07:07:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,735 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import datasets, transforms
from torch.autograd import Variable
import numpy as np
import matplotlib
import math
import matplotlib.pyplot as plt
cuda = torch.cuda.is_available()
print('Using PyTorch version:... | [
"weigao@WEIs-MBP.lan"
] | weigao@WEIs-MBP.lan |
5b8dec57487f5b0f362fcf9ff61241d3a643f9ec | b8454cadc306140b7140bd4a5040da9b9c18c980 | /base/migrations/0001_initial.py | 06ccb1bdae7339a5b873157a6a8bc6042ac5462d | [] | no_license | amar3142/mywebsite3 | dc62e6de5ba7d48e72532c6f848d2d39d1965a5d | db45c03af908bc5df68154e3227f4dee0db28bc6 | refs/heads/master | 2023-02-04T18:48:48.876485 | 2020-12-17T10:36:50 | 2020-12-17T10:36:50 | 321,337,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | # Generated by Django 3.1.4 on 2020-12-16 13:20
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Task',
fields=[
('id', models.AutoField(aut... | [
"amarsagat@gmail.com"
] | amarsagat@gmail.com |
3825b458baa098aaab3dae1806870377a5cbf625 | e16d41602b9887c814ae3ea5615f2734f15cdf50 | /unitTest/myfun.py | d667bdc2da29531c20b24441a912f9dc26e5ebed | [] | no_license | tomreddle/vip3test | 32183d652c8847b5fded7c4f1b4740f09b5fc850 | ecc2e6be0503235a1fcfd7447d5722816ffcfe8c | refs/heads/master | 2020-07-30T21:38:23.636803 | 2019-11-20T13:08:11 | 2019-11-20T13:08:11 | 210,367,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | import unittest
def add(a, b):
return a + b
def plus(a, b):
return a - b
def mul(a, b):
return a * b
def div(a, b):
return a / b
| [
"844626764@qq.com"
] | 844626764@qq.com |
10061e9d1ee1fd83d00916d518364042992e220e | 784ce7c5c3f08602cf0d4b3a80ec74d8e07990a1 | /web/models.py | 358465843bd033dd80eaab90527c19011b4fe5ce | [] | no_license | lcdevelop/shareditor | 1a05e558a2cbd76c5272f7d0d43222b5a47bc139 | 318d8b2c77b8a8065399aeeab7e827f74c6abec0 | refs/heads/master | 2022-03-30T07:40:32.876433 | 2020-01-20T14:36:20 | 2020-01-20T14:36:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,079 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from ckeditor_uploader.fields import RichTextUploadingField
class Subject(models.Model):
name = models.CharField(max_length=255, verbose_name='类别名称')
introduce = models.CharField(max_length=255, verbose_name='类别简介')
... | [
"lichuang@baijiahulian.com"
] | lichuang@baijiahulian.com |
c98aeb07e64d3799b2f504ba1c4037f3fe5d4773 | 0561347e739592204aa0711ff54c03ad5d484f25 | /app_v1.0.py | 6304529efec43df5bc416b5cae6712df5dddfa47 | [] | no_license | AikoChou/cht2017-demo | fd13aaec9294c30e937c2b61113ee4abb0daff03 | 6412f0675fd194caf7adc59e4844a0a7b7ed4396 | refs/heads/master | 2021-01-02T08:17:22.522379 | 2017-09-19T08:30:04 | 2017-09-19T08:30:04 | 98,986,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,525 | py | import dash
from dash.dependencies import Input, Output, State, Event
import dash_core_components as dcc
import dash_html_components as html
import plotly.plotly as py ###
from plotly import graph_objs as go
from plotly.graph_objs import *
from flask import Flask
import pandas as pd
import numpy as np
impo... | [
"qwanqwanro@gmail.com"
] | qwanqwanro@gmail.com |
c2bad406da73b4a740249a716af90952cf0bb2c0 | 3a3f4477a517c9757432042ceb4939f37762c2a4 | /12.IntegertoRoman/int_to_roman.py | 0615bb179a12ee1f678713fbdef56969f29a51bc | [] | no_license | marathohoho/leetcode-progress | f351ad89905c8e61fd5b5adff62320ce8ba9645d | 13b298c1074328c130724e328d7c22be642903cb | refs/heads/master | 2020-12-24T01:39:15.117334 | 2020-04-06T20:20:16 | 2020-04-06T20:20:16 | 237,339,061 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | """
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
Symbol Value
I 1
V 5
X 10
L 50
C 100
D 500
M 1000
For example, two is written as II in Roman numeral, just two one's added together. Twelve is... | [
"codmarat@gmail.com"
] | codmarat@gmail.com |
e741504fdb3bd4fb34bd13897f719227219ed48e | e10a1786d68603bff0393f54f7f94e40d2825a42 | /MLlab02_logistic_classification/02_1-softmax_test.py | fb8c5f359d2bcb116b799274efe4f7dc1da3da4c | [] | no_license | yurimkoo/dl_lab | 80da422b9e29db4e61025d1cc87160b517e1242c | 3967c6112a24a130bc54da774929f58c5f290b97 | refs/heads/master | 2021-01-21T20:38:54.666029 | 2017-05-24T07:37:18 | 2017-05-24T07:37:18 | 92,263,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,684 | py | import tensorflow as tf
import numpy as np
#'soft_max.txt' uses 'one-hot encoding'
xy = np.loadtxt('softmax_train.txt', unpack=1, dtype='float32')
x_data = np.transpose(xy[0:3]) #transpose를 사용하는 것은 거울처럼 반대로 뒤집어달라는 뜻
y_data = np.transpose(xy[3:])
X = tf.placeholder('float', [None, 3]) #x1, x2, bias(x0) total 3... | [
"yurimzzang51@gmail.com"
] | yurimzzang51@gmail.com |
c2c9f862af8d90b56e812982f7aebae9015306e5 | e4875a1e3ff1e46c63b546aa944565d716d71d0e | /serene_load/serene_load/merge_trees.py | e558c2375625dbacaada6d48b245352bac6c8545 | [
"Apache-2.0",
"MIT"
] | permissive | NICTA/serene-etl | e1f4ffa4b6c77a1dfbc1d1974fac7cec42f71f85 | 1d446012c0d08a95b8fbbbe8237735320a2fe2a4 | refs/heads/master | 2021-01-22T13:48:03.297688 | 2017-10-09T01:30:44 | 2017-10-09T01:30:44 | 100,686,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,156 | py | import logging
import argparse
from serene_load.meta_select import load_meta
def create_arguments():
parser = argparse.ArgumentParser(description='take all json data from one directory and merge into another tree')
parser.add_argument('--meta', type=unicode, help='Directory containing primary metadata', requi... | [
"alex.collins@nicta.com.au"
] | alex.collins@nicta.com.au |
e454c76d9168502bdf7ef1dbcb7bde577a6bec70 | 95beb714da1e783981295064aaf0b64e5a37c9c0 | /instagram/tests.py | 3c2572e3281053fb555c96273e6673f7f4966423 | [
"MIT"
] | permissive | Joseph-Odhiambo/Insta-clone | 653105cb3a4d7f2a470cf365444e074f1b4d50ff | 8ceb4f8ef6e7ea815e39a94554b3410a8e7da5a0 | refs/heads/master | 2023-01-01T22:56:22.902366 | 2020-10-22T05:40:59 | 2020-10-22T05:40:59 | 304,582,611 | 0 | 0 | MIT | 2020-10-22T05:32:16 | 2020-10-16T09:37:03 | JavaScript | UTF-8 | Python | false | false | 1,303 | py | from django.test import TestCase
from .models import Profile, Post
from django.contrib.auth.models import User
# Create your tests here.
class TestProfile(TestCase):
def setUp(self):
self.user = User(username='Joseph')
self.user.save()
self.profile_test = Profile(id=1, name='image', profi... | [
"josephkdo@gmail.com"
] | josephkdo@gmail.com |
3e04a14261479eb12b66058bcc6adbed16a4c1ec | d9705629fb827d3d2dcfc252c24ddb67862556d6 | /data_wordcloud02.py | 52d69c300d0600ef40bac46de0ddd3bdfdbe46f6 | [] | no_license | haorenxwx/WordCloudLearning1 | 9d7f1fe10d24d1d2bd1710a97e178e6c06c0f7a5 | daf41b5a35832b7ecd2cf0d797923d14d6c6390f | refs/heads/master | 2021-01-23T06:02:31.898291 | 2017-09-07T15:05:18 | 2017-09-07T15:05:18 | 102,485,693 | 0 | 0 | null | 2017-09-05T14:25:01 | 2017-09-05T13:39:13 | Python | UTF-8 | Python | false | false | 1,668 | py | #-*- coding: utf-8 -*-
#test change in github
#from wordcloud import wordcloud
import wordcloud as wc
import codecs
import jieba
#import jieba.analyse as analyse
from scipy.misc import imread
import os
from os import path
#import matplotlib.pyplot as plt
import matplotlib.pylab as plt
#from PIL import Image, ImageDraw... | [
"haorenxwx@users.noreply.github.com"
] | haorenxwx@users.noreply.github.com |
f46f3f29cb80c2826087623308da18f78f72a5fc | 91f948b849a03f27c96aa6b76980a5fa68970b70 | /experiments/__init__.py | de913a706b51dac74f50aafe9917d627f649419c | [
"MIT"
] | permissive | satyam-cyc/MASS-Learning | 3d987af7622f604db02b64313179590651285170 | 0d40de5227c94d1a5e4b18e44d16374e12821ad2 | refs/heads/master | 2022-01-10T02:23:06.670225 | 2019-06-11T19:41:35 | 2019-06-11T19:41:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | from .LogModelParameters import LogModelParameters
from .MASSLossTerms import MASSLossTerms
from .ModelLossAndAccuracy import ModelLossAndAccuracy
from .OODDetection import OODDetection
from .SaveModelParameters import SaveModelParameters
from .UncertaintyQuantification import UncertaintyQuantification
| [
"mwcvitkovic@gmail.com"
] | mwcvitkovic@gmail.com |
cefea000be2b8713b9d4ea548c735c4984caf7de | 3904a5773c5aa047692895dce1225be7d84f5cc7 | /ML_AI_TechWithTim/K-Means/K_Means.py | f33bc323b87c4aba7ff873f2b6d3cbe38641d449 | [] | no_license | snehilk1312/ML_1 | 063038586296c4f6f0ab92422a6c60dd007c4068 | 8e3b081b1037ab999ca78fa282ce7041730d082a | refs/heads/master | 2020-09-07T20:01:45.509060 | 2020-03-15T15:44:54 | 2020-03-15T15:44:54 | 220,898,676 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | # Importing modules
import numpy as np
import sklearn
from sklearn.preprocessing import scale
from sklearn.datasets import load_digits
from sklearn.cluster import KMeans
from sklearn import metrics
# Loading Data sets
digits = load_digits()
data = scale(digits.data)
y = digits.target
k = len(np.unique(y)) # ... | [
"noreply@github.com"
] | snehilk1312.noreply@github.com |
08329a18ff4f915bce929ea48502042c6b5369ab | 0910b5a1b6fd8d29579ea0596419331a51434b77 | /leopi/projects/tweeter/leonorrepitweeter.py | bee7022c3feac5a2737c4d4bf4deb2be3e7e6f95 | [] | no_license | efrister/LeoNorrePi | 60d2a5aa5a8c3d1435c53cba285715c741f83f33 | 2a25eba405fb22ddc3faf38cceaa29f955996ba2 | refs/heads/master | 2021-01-01T15:19:00.653023 | 2014-02-22T15:15:08 | 2014-02-22T15:15:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,210 | py | from twython import *
import configparser
# Read configuration
configuration = {}
try:
config = configparser.ConfigParser()
config.read('config.ini')
# Read all options into a dictionary
for section in config.sections():
configuration[section] = {}
for option in config.options(section)... | [
"erik.frister@aijko.com"
] | erik.frister@aijko.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.