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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ea505e07fe933b7e4b9517e6e1f31eadd0cba2fc | 2c7bb7ac6638840b539fa9bcb3c58fe941802ee1 | /catkin_ws/build/catkin_generated/generate_cached_setup.py | 2c4d74fb1b116a8cf44c0313dc7ecd7cb563dfd8 | [] | no_license | j20100/app1 | d88a3887f4baf246df66efe352ad7b01c6b506e9 | c802e47873378d8ee569cf5f4602f04ccdfe79b3 | refs/heads/master | 2016-08-10T20:17:05.431688 | 2016-02-05T22:46:26 | 2016-02-05T22:46:26 | 51,014,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/indigo/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.p... | [
"jonathan.vncent2@usherbrooke.ca"
] | jonathan.vncent2@usherbrooke.ca |
e225d52e5d34142b711bc545f8255d8542303038 | cfd62db3c1498d8a46d19014016adcf8dfac25f5 | /env/bin/pip3 | a2ee3043e38571739f9421374937abc8ed74956c | [] | no_license | jordan-hess/flask-exercise3 | deb694bc1fc39c5d906db625cf2469a78b7ff8b3 | a741d0efb18db38222db801ef21ce5f130ace290 | refs/heads/master | 2023-06-19T07:43:18.521559 | 2021-07-16T14:49:08 | 2021-07-16T14:49:08 | 386,670,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | #!/home/lifechoices/Desktop/flask_excercise3/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jchno116012003@gmail.com"
] | jchno116012003@gmail.com | |
31e0f53d0c967b59235412dc0cc1db74b307226c | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/python2.7/test/test_ctypes.py | ebf87b86f5fb4845c8c3862cf2936c6438d4809e | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | /home/action/.parts/packages/python2/2.7.6/lib/python2.7/test/test_ctypes.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
51ff6b235bb3807d078012ca215234c59a7d6474 | 0eaf572300e7a6da5395b46c276e38adcb948849 | /shop/urls.py | 7fb29fe9971019d9089f811dfd56a2efb2d2936f | [] | no_license | Wardar-py/magazine | 0ee250d107ec430cbea194058e3de624982d4480 | c4b550c5294444f527413d5958013a6d96bb89b6 | refs/heads/master | 2023-03-12T02:22:38.937537 | 2021-02-25T19:43:59 | 2021-02-25T19:43:59 | 342,359,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | from django.contrib import admin
from django.urls import path, include
from .import views
from django.conf.urls.static import static
from django.conf import settings
app_name = 'shop'
urlpatterns = [
path('admin/', admin.site.urls),
path('', views.product_list, name='product_list')
]
if settings.DEBUG:
u... | [
"te123ma@outlook.com"
] | te123ma@outlook.com |
cc0774260db529bbc042ac67153a0c42d167c3b9 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/741.py | 44eed438d83cb970ebb890a621178c453eb50eee | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | import sys
def judge(line):
d={}
for i in 'XO.T':
d[i]=0
for i in line:
d[i] += 1
if d['O'] ==4 or d['O'] + d['T'] == 4:
return 'O'
if d['X'] ==4 or d['X'] + d['T'] == 4:
return 'X'
return None
def solve(game):
status = None
complete... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
e898d3e1b85a2648ad454e0384984d79e320d109 | 5b227a9c51f6edb818941bca40c86f51b12597f9 | /documentos/migrations/0008_auto_20180520_2119.py | 5a6412db0a4cd8bde0dd89ff9bca5710927d4e77 | [] | no_license | LeandroRolim/lsi-django | c0cad007d6f41592656488a6f66c18f4f83f071e | e0283c7018b479815964a9fc4328b4b8a584da00 | refs/heads/master | 2020-03-16T23:51:36.346174 | 2018-07-09T11:10:17 | 2018-07-09T11:10:17 | 133,093,934 | 1 | 3 | null | 2018-07-09T11:10:18 | 2018-05-11T22:23:29 | HTML | UTF-8 | Python | false | false | 548 | py | # Generated by Django 2.0.5 on 2018-05-20 21:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('documentos', '0007_auto_20180514_2152'),
]
operations = [
migrations.AddField(
model_name='document',
name='adverb_v... | [
"rannany@gmail.com"
] | rannany@gmail.com |
624a613e35444aa6259e6de55f6210228b86f6b1 | 3e104ba5a1b17ca3449be9a46c91a48ca19b02c8 | /General_Programming/strings/strings.py | e37989d04038e7fff63837c50d6397cab2e7dae1 | [] | no_license | dallasmcgroarty/python | b135378629877dc1c96adda3b884b3e656be1225 | 9eb5486d6f36698a6d873ffdf8cf80d6ed1ef008 | refs/heads/master | 2021-07-12T20:07:18.642043 | 2020-10-15T21:08:35 | 2020-10-15T21:08:35 | 215,225,484 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | #f-strings in python3
#places a value in a string
x = 10
print(f"I've told you {x} times already")
#join function
#can use logic in the join argument
#takes a list and joins them together in a string
names = ["hey","there","tom"]
names_str = ' '.join(names)
print(names_str)
#takes a list of numbers and converts the... | [
"dallas.mcgroarty@gmail.com"
] | dallas.mcgroarty@gmail.com |
372093448c45b2b50ebc7e081540a66b63bed86d | 736ce334ad738ce6b31c62cab1c54003c611c878 | /src/pg_preprocess.py | 3f39c8170a12e773e8b8d347d3fffe0ae3e26dd4 | [
"MIT"
] | permissive | DeNederlandscheBank/nqm | bb163786163003fd1de8a176915924bb9f4bf080 | e3c234280fc46499885bfa4ce46b5e70ecb5e102 | refs/heads/main | 2023-09-04T16:05:49.444145 | 2021-11-03T10:52:11 | 2021-11-03T10:52:11 | 309,088,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,472 | py | #!/usr/bin/env python3
"""
This file contains code to preprocess input of a pointer-generator
translation model, where <unk-N> need to be placed.
Modified by Jan-Marc Glowienke and taken from:
https://github.com/pytorch/fairseq/blob/master/examples/pointer_generator/preprocess.py
Copyright (c) Facebook, Inc. and its a... | [
"jmglowienke@gmail.com"
] | jmglowienke@gmail.com |
d09fa934791c659462fc32d5e5d6c3216075513a | 5c18fa8dde961f72a608811d7233d8b397c36b68 | /code/jewelery_gui2.0.py | 48792286eca8d5af492a69e02d89d89148a2843d | [] | no_license | ktsakos/Digital-Warehouse-of-a-Greek-jewelry-store | 4b4bd47ebe9c641886aba856c268cc9f10761232 | de488c9db528875c3dceb24c4d3d27e8b957f0fe | refs/heads/master | 2023-03-29T12:22:40.211440 | 2021-04-01T08:44:49 | 2021-04-01T08:44:49 | 353,629,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62,329 | py | """
DEVELOPER:TSAKOS KONSTANTINOS
PHONE NUMBER:6948908497
LOCATION:SAMOS,GREECE
"""
from tkinter import *
import psycopg2
import ttk
import datetime
window=Tk()
w = window.winfo_screenwidth()
h = window.winfo_screenheight()
window.geometry("%dx%d+0+0" % (w, h))
#window.iconbitmap(r'/code/image.ico')
sorting=0
def vali... | [
"ktsakos@isc.tuc.gr"
] | ktsakos@isc.tuc.gr |
19cbfdf52240baec164fff40e2cd045fb89e6f4b | 6d60a33bed04da91966075f0dfd672131b616f26 | /tests/drink_test.py | 7e55f6e27c2fe1a7cd28b7ffeea2e7a1631ec515 | [] | no_license | amyg-cc/pub_lab | 43908656cbbd654d78da141e5eba404bad58597e | 321da4d9e2db64075634772401dad062a766dd82 | refs/heads/main | 2023-07-12T12:03:32.638323 | 2021-08-18T18:30:20 | 2021-08-18T18:30:20 | 397,539,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | import unittest
from src.drink import Drink
class TestDrink(unittest.TestCase):
def setUp(self):
self.drink_1 = Drink("Bud Light", 3)
def test_drink_has_name(self):
self.assertEqual("Bud Light", self.drink_1.name) | [
"amy.gallacher@codeclan.com"
] | amy.gallacher@codeclan.com |
21f81ccfd16d3910d3feef9e42266efc531e237c | 40c931d201533f52252c1b01698787af54c8f4e3 | /pythonProject/test/demo10.py | 3ee0a486e901b00ecfbb915095736d954dac3302 | [] | no_license | wangJmes/PycharmProjects | bcd948e878338e12af7ea94e01e06a798adafcd4 | d428a0bb0b52882be887b27fbb6f18f12d22b50c | refs/heads/master | 2023-09-03T16:02:31.180239 | 2021-10-12T05:05:08 | 2021-10-12T05:05:08 | 407,809,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | # ็ปไน
# ๅผๅ่
:ๆฑชๅท
# ๅผๅๆถ้ด: 2021/6/2 11:13
def cal(a):
m = 1
for i in range(1, a + 1):
m = m * i
return m
if __name__ == '__main__':
n = int(input('่พๅ
ฅ๏ผ'))
print("%d" % sum(map(cal, range(1, n + 1))))
| [
"1045262403@qq.com"
] | 1045262403@qq.com |
738f42402f79e4fb380201e8072871b33a1ca13b | 6fcc7f7793642d322c5d9d18873a187c5d479b12 | /work/w01/apps.py | 0e7e82336e4b8bb8a5cb002519ab34e32bfcd543 | [
"Apache-2.0"
] | permissive | humingsen1/Django | eb133de46756391e16270075e0260011937c5abb | 6a1715b2e67d5052995bf3bcecb6284444446221 | refs/heads/master | 2020-04-05T21:04:38.903563 | 2018-11-12T17:37:02 | 2018-11-12T17:37:02 | 157,206,385 | 0 | 0 | null | 2018-11-12T11:55:36 | 2018-11-12T11:55:35 | null | UTF-8 | Python | false | false | 81 | py | from django.apps import AppConfig
class W01Config(AppConfig):
name = 'w01'
| [
"1391243622@qq.com"
] | 1391243622@qq.com |
6aa1c3c02f4cbfdd3be8267b5c8f50c75d330922 | 3a42ca8c97ca44300a60b5c786b3d07b72a83250 | /src/core/forms.py | a1ec76832d810d3f8e9e086be3405026e2a45be4 | [] | no_license | krishnajhapate/ecommerce-django | d23284c7d597a985b74651eb1fd04d246f07ad85 | c50351faffcbb4df1e858b94aeb23a1d1c29b70a | refs/heads/master | 2023-03-22T10:56:45.675751 | 2021-03-11T07:58:46 | 2021-03-11T07:58:46 | 325,848,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | from django import forms
from django_countries.fields import CountryField
from django_countries.widgets import CountrySelectWidget
PAYMENT_OPTIONS = (
("S","STRIPE"),
("P","PAYPAL")
)
class CheckoutForm(forms.Form):
shipping_address = forms.CharField(required=False)
shipping_address2 = forms.CharFi... | [
"ki54.jhapate@gmail.com"
] | ki54.jhapate@gmail.com |
1b12e8c14f07c8d36cd58d3b4ba1afb883f6a596 | 4e394275f5e8459b7a9ffe5f0982b066ecbb277d | /webscrapper/venv/Scripts/pip-script.py | 72e36c552d8bd297acf77143983baf1bd7e62d2a | [] | no_license | rodekrishna/pythondir | 18e8d7cf05b690a070323832e8d95399c76e6cc1 | 9122fd1ecbe78db20ddea93b1b13f9bebea81203 | refs/heads/master | 2021-08-10T20:35:26.219467 | 2021-07-04T15:56:30 | 2021-07-04T15:56:30 | 214,225,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #!E:\mygit\pythondir\webscrapper\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
s... | [
"rodekrishna@gmail.com"
] | rodekrishna@gmail.com |
c4bc3be9a23dd4a3f86c3fa58a9d6688a90f2760 | 3d16538cec663472cbc366480438a830de36dfef | /accounts/migrations/0001_initial.py | f05ab4ad4186669a4bc537a0a5e850e8e79c6a75 | [] | no_license | puzzle91/Blog | 60e50577829636d21600df0843308a235bc3f19e | aa79349ec514489abc0a692eea48804966414dcc | refs/heads/master | 2020-07-19T05:51:45.996655 | 2017-07-03T13:54:35 | 2017-07-03T13:54:35 | 94,335,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,158 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-03 11:58
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"eduardop@tcd.ie"
] | eduardop@tcd.ie |
e99583a55f5f4938ab5dd30cabc1bde9f6d8c576 | dcad65de2735e25f2214bc5ba59f14d0473f0673 | /crmuz/wsgi.py | 979a92d05b4789e3994cf3ec31077eb7ef397e15 | [] | no_license | rasulkurbanov/jetcrm | bf1ec307eb6389a050b810ca7990a6001f5f2692 | 940fde1acb6cfd71a7728347c515a43679df588e | refs/heads/master | 2023-09-05T03:59:04.297554 | 2021-10-31T18:02:16 | 2021-10-31T18:02:16 | 421,594,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for crmuz project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"rasuljohn139@gmail.com"
] | rasuljohn139@gmail.com |
88306355c24f24cce8a5ceb1d61043c75453671b | 727302ff4badb9a1cf59996194ef2f3b04a58cf0 | /python/move-zeroes.py | 708334fcddc190c41e1c21d3bae4b9d1d9783676 | [] | no_license | Ursidae44/my-leetcode-solutions | 6c1a58dbf0d1c3938748147b332dd02a0bfae63a | 78c322bdbb6e6a1b3ec633ce0ee87cecd80823e9 | refs/heads/master | 2020-08-08T23:38:08.045905 | 2019-10-15T18:31:17 | 2019-10-15T18:31:17 | 213,947,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | # https://leetcode.com/problems/move-zeroes/submissions/
"""
Description
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.
Example:
Input: [0,1,0,3,12]
Output: [1,3,12,0,0]
Note:
You must do this in-place without making a copy of th... | [
"jgarland@mathworks.com"
] | jgarland@mathworks.com |
a7d25b77375446e4b336046e06a70a14987475c6 | f31a22b773a37f08cb7a6e61914790cd3e45d06f | /Turtle_Race.py | 9ebdbbc9c8a9a8c27279a6205ff1214847b7fcc7 | [] | no_license | AwesomeCoder30/Python_Pratice | ea500f9038d4b4b2958786d597497464d2985af3 | 870e87df81dba48a7b2d159d07fec6e2c1e67328 | refs/heads/master | 2020-04-04T14:51:48.105564 | 2018-11-03T19:30:27 | 2018-11-03T19:30:27 | 156,016,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,017 | py | import turtle
from random import randint
t = turtle.Turtle()
t.shape("turtle")
t.speed(0)
def winner_title(winner):
t.penup()
t.setx(-150)
t.sety(250)
t.pendown()
t.write(str(winner) + " is the winner!", font=("Arial", 28, "normal"))
def race_track():
x_val = -325
y_val = 250
t.right(... | [
"mehtaparth101@gmail.com"
] | mehtaparth101@gmail.com |
ca137e3956496a07296c4f98399bb947255d0156 | 1b0b805fc3283cc3540fdc48c3ed8ed78706c798 | /test/dao_test.py | 259980d8cda0ee7a8f3aa70636f8560b180ceb25 | [] | no_license | nowrokemailjsnh/sqlitedao | 130454494db504f64f3f9419df7243c8be0c24cb | 8bd01a044ed286dc85944e0df0fe2545664b52dd | refs/heads/master | 2022-12-13T23:53:19.769591 | 2020-09-13T19:44:00 | 2020-09-13T19:44:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,485 | py | """
Test create table, index, list tables functionalities
"""
from sqlitedao import SqliteDao, ColumnDict, SearchDict
import os
import pytest
# Some mock data
TEST_DB_NAME = "test.db"
TEST_TABLE_NAME = "players"
lebron = {"name": "LeBron James", "position": "SF", "age": 35, "height": "6-8.5"}
kobe = {"name": "Kobe ... | [
"aperocky@gmail.com"
] | aperocky@gmail.com |
44305250b8ecec8bbf78999d09c2785a039dacea | 1756536c860c1228098c71621227a19f29daa857 | /pre_processing/render_blender.py | b4a2032dbf2b87b2bb1487a6b5ada77dbdeac8c2 | [] | no_license | nitthilan/neural_sparse_voxel_field | 0e9baab3f36a05adda0d365e74fad8d5e9487378 | 7da1d7b806f5a5ce8bd35a0041ecb43609e7cb2c | refs/heads/main | 2022-12-26T10:41:10.691016 | 2020-10-09T19:57:52 | 2020-10-09T19:57:52 | 302,740,778 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,583 | py | # A simple script that uses blender to render views of a single object by rotation the camera around it.
# Also produces depth map at the same time.
#
# Example:
# blender --background --python mytest.py -- --views 10 /path/to/my.obj
#
import argparse, sys, os
parser = argparse.ArgumentParser(description='Renders giv... | [
"kannappanjayakodinitthilan@steptoe-10-222-0-112.resnet.wsu.edu"
] | kannappanjayakodinitthilan@steptoe-10-222-0-112.resnet.wsu.edu |
7a02220987bd60f59bb35ce76e0b2b0fd297be7d | 174883926abfc758f87cf5b962af2e1b8f291e59 | /homework1/main_tp1_ex2.py | fb9299d9873d4ebfe1c7b3fbfcb7d294cf86c9b5 | [
"Apache-2.0"
] | permissive | saltyyyyyyy/MVA_Reinforcement_Learning | c77550ad772f6375eb0b2bda50deddeba62ef16a | 98e53113c784c333cd0ae181b78a5677997f79c2 | refs/heads/master | 2020-05-17T05:45:00.559517 | 2018-02-28T11:16:02 | 2018-02-28T11:16:02 | 183,542,811 | 1 | 0 | null | 2019-04-26T02:31:18 | 2019-04-26T02:31:18 | null | UTF-8 | Python | false | false | 3,389 | py | from gridworld import GridWorld1
import gridrender as gui
import numpy as np
import time
env = GridWorld1
################################################################################
# investigate the structure of the environment
# - env.n_states: the number of states
# - env.state2coord: converts state number to... | [
"yifanwang1993@gmail.com"
] | yifanwang1993@gmail.com |
6422479fe2f450c053b39a83b272028f915cb5d4 | 71636eb8a34f5c0a673081cbd772289ed6fc098c | /fig/cli/log_printer.py | 480fc5ebafd34fb0a785cda28b8401afe0333882 | [
"BSD-3-Clause"
] | permissive | EnTeQuAk/fig | 437a6656bd5fb53ec062e8541c6a027805f278ea | d8a2a0f0032bfc0e9e9d2d3c21074b6c1026c359 | refs/heads/master | 2021-01-22T21:44:54.297064 | 2014-01-03T12:11:26 | 2014-01-03T12:11:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,839 | py | import sys
from itertools import cycle
from .multiplexer import Multiplexer
from . import colors
class LogPrinter(object):
def __init__(self, containers, attach_params=None):
self.containers = containers
self.attach_params = attach_params or {}
self.generators = self._make_log_generators... | [
"aanand.prasad@gmail.com"
] | aanand.prasad@gmail.com |
73eacc404409fe4aa4eeb368ca79bd53a784ed45 | aa9ff5bb0ab43677e8d63f400123113a2c651177 | /data_types.py | 90ae6b758ccca92cd888197b4a00057faf019a0c | [] | no_license | Patch582/9-Realestate | 79e5d8884e65baff939cc3b0d9ab8696afc4f6d8 | 34e2793a06d24728adff128b253b1de0559e9aa3 | refs/heads/master | 2020-05-05T13:54:22.380578 | 2019-04-19T22:58:58 | 2019-04-19T22:58:58 | 180,098,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | class Purchase:
def __init__(
self, ref, Address1, Address2, Suburb, Postcode,
State, Type, Squares, Beds, Bathrooms, Toilets, Cars, Garage,
Sale_price, Sale_date, Latitude, Longitude):
self.ref = ref,
self.Address1 = Address1,
self.Address2 = Address2,
... | [
"patrickbooth582@gmail.com"
] | patrickbooth582@gmail.com |
1884d40b89067c4de28100cafde2553298116b48 | 43727669088abba6b2c9c5d629a8a686bd2d0608 | /backend/chat/api/v1/urls.py | e46c20ae7b3eaecc3f22765e9aeb1db4fc4dd3e1 | [] | no_license | crowdbotics-apps/snakeo-28158 | f8b7f590dca6847e140a8561d02860ebc9e50941 | bf40d6a2c63b2b36675301a3babdc4a743816221 | refs/heads/master | 2023-06-03T16:06:57.133922 | 2021-06-22T00:40:23 | 2021-06-22T00:40:23 | 379,098,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .viewsets import (
MessageViewSet,
ThreadMemberViewSet,
MessageActionViewSet,
ThreadActionViewSet,
ForwardedMessageViewSet,
ThreadViewSet,
)
router = DefaultRouter()
router.register("message", MessageVie... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
148d58ec3c6599416fcb946a2c2fcf579ef268f1 | c18254794feda61bec013206b3d19a58b0565876 | /configs/wholebody/2d_kpt_sview_rgb_img/associative_embedding/coco-wholebody/hrnet_w32_coco_wholebody_512x512.py | 7d7875348179d230e8b75de15485e9c8d8193be1 | [
"Apache-2.0"
] | permissive | SummerVideoAnalysis/mmpose | eebfff87658128825c487f4037abd1c86635b86c | 70d60e03b7eaa0ae1ec66cc7a22c00916f00c9e1 | refs/heads/master | 2023-07-15T20:17:47.603214 | 2021-08-29T12:03:54 | 2021-08-29T12:03:54 | 378,733,264 | 0 | 0 | Apache-2.0 | 2021-06-20T20:22:14 | 2021-06-20T20:22:13 | null | UTF-8 | Python | false | false | 5,358 | py | log_level = 'INFO'
load_from = None
resume_from = None
dist_params = dict(backend='nccl')
workflow = [('train', 1)]
checkpoint_config = dict(interval=50)
evaluation = dict(interval=50, metric='mAP', key_indicator='AP')
optimizer = dict(
type='Adam',
lr=0.0015,
)
optimizer_config = dict(grad_clip=None)
# learni... | [
"noreply@github.com"
] | SummerVideoAnalysis.noreply@github.com |
177ff0a10cf5df487328d4e6ec09a5e583492b26 | aa0270b351402e421631ebc8b51e528448302fab | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models/__init__.py | 513cfd6be48b94d806f935fc98582bca153615d0 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | fangchen0601/azure-sdk-for-python | d04a22109d0ff8ff209c82e4154b7169b6cb2e53 | c2e11d6682e368b2f062e714490d2de42e1fed36 | refs/heads/master | 2023-05-11T16:53:26.317418 | 2023-05-04T20:02:16 | 2023-05-04T20:02:16 | 300,440,803 | 0 | 0 | MIT | 2020-10-16T18:45:29 | 2020-10-01T22:27:56 | null | UTF-8 | Python | false | false | 35,516 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | fangchen0601.noreply@github.com |
abb9b64b8962ee8432dbc8271559e1b2549547c7 | 77f442a49ea28f60770c5ddb88e16721cc22cca4 | /servo.py | d23b9e07904fd52126d6033cccfc74f7e8aa96a0 | [] | no_license | roocell/theforce-pi | 0bbd6dbf32078ebe73da64a19ed5a5ab3de0ee27 | 099da094d9565aa64bfe959f84b6c5cc72590417 | refs/heads/main | 2023-01-13T05:20:18.437445 | 2020-11-24T02:12:40 | 2020-11-24T02:12:40 | 315,050,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,023 | py | #!/usr/bin/env python3
########################################################################
# Filename : Sweep.py
# Description : Servo sweep
# Author : www.freenove.com
# modification: 2019/12/27
########################################################################
import RPi.GPIO as GPIO
import time
OF... | [
"roocell@gmail.com"
] | roocell@gmail.com |
096665b6c07fa39ee0af2d60e3059b10fe9f3c39 | 44ddc22e8a79f7dbf58c72f7fd3b29cb3398d1ef | /carveme/universe/annotate.py | 2c30bee6ef5cac49af30b035b08fd2de4d661856 | [
"Apache-2.0"
] | permissive | cdanielmachado/carveme | f60efa2e94b304c275871b11a417ece8a70a4290 | 766291005915cc51e8eebb3bd0bfff2dcb03cdc0 | refs/heads/master | 2023-06-24T13:37:25.650160 | 2023-06-08T06:58:22 | 2023-06-08T06:58:22 | 98,427,373 | 112 | 59 | NOASSERTION | 2021-05-26T07:48:09 | 2017-07-26T13:43:30 | Python | UTF-8 | Python | false | false | 5,616 | py | from reframed.core.elements import parse_formula, unparse_formula
from reframed import solver_instance
from reframed.solvers.solver import VarType
def determine_elem_composition(model, elem, known, unknown, incomplete):
solver = solver_instance()
reactions = []
objective = {}
all_unknown = unknown | ... | [
"cdanielmachado@gmail.com"
] | cdanielmachado@gmail.com |
e00e471a831212ce6f18c194849e7d309e9cfe84 | 22b93005b05aa4cbfa6287c42e07244b9bf83be9 | /tests/utils/test_databricks_utils.py | 136e0696f5e06cc5eae22d6c44ebc20332f5f328 | [
"Apache-2.0"
] | permissive | dbczumar/mlflow | 63ede1f21966def17ded0da9c8e92a207b34b90d | e293a73b510c924cbca50b6337b6d6f9fd9f8f1b | refs/heads/master | 2023-08-31T23:40:55.475707 | 2023-07-15T04:22:18 | 2023-07-15T04:22:18 | 138,797,518 | 1 | 3 | Apache-2.0 | 2023-08-23T23:01:08 | 2018-06-26T21:51:19 | Python | UTF-8 | Python | false | false | 16,537 | py | import sys
from unittest import mock
import pytest
import builtins
from mlflow.exceptions import MlflowException
from mlflow.utils import databricks_utils
from mlflow.utils.databricks_utils import (
get_mlflow_credential_context_by_run_id,
get_workspace_info_from_dbutils,
get_workspace_info_from_databricks... | [
"noreply@github.com"
] | dbczumar.noreply@github.com |
81a71ca341d38fbb9e68a1ba3701a7f89db25977 | 81555545cd6e294472dce05489155829ae7064dc | /year2015/day6/tests/test_year2015day6.py | f6dcf4291ba5f7ec01f6b7405d6048eff4fa132e | [] | no_license | flxdot/adventofcode | b9a6d2f6dd39350e964386edc646e21061c2a74e | aa4275cc70443e391b79b76c6fd1c6d505400275 | refs/heads/main | 2023-02-05T12:07:42.614646 | 2020-12-25T14:57:03 | 2020-12-25T14:57:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | from os.path import join, relpath, dirname
import pytest
from common import read_input
from year2015.day6.year2015day6 import solve_part1, solve_part2, input_converter
def test_solve_part1():
test_input = read_input(
join(relpath(dirname(__file__)), "test_input.txt"), input_converter
)
assert 1 =... | [
"Felixfang@gmx.de"
] | Felixfang@gmx.de |
6bd938e3328932b296a61e4ba53f7d37d52f1798 | 8c1229dfea66386ec142e5ebab8a05797f648b91 | /src/excercises/linked_list/reverse_list.py | 7bab3d08bd439a2d8b3dae1254a7e93db29e1fce | [] | no_license | AgustinLema/algorithms | 13218c2fde20533c65ac48526ace42fb005d53c5 | 10ac2ec74968027a932ffb27385918493883c06d | refs/heads/master | 2020-12-10T21:57:11.181498 | 2020-02-11T00:13:32 | 2020-02-11T00:13:32 | 233,722,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def reverseList(self, head: ListNode) -> ListNode:
current = head
previous = None
while current is not None:
nx_node = current.n... | [
"agustin411@gmail.com"
] | agustin411@gmail.com |
2932bb66578cded12ae3a1ee92636c729055b328 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /140_gui/pyqt_pyside/examples/PyQt_PySide_book/008_dialogs windows/010_Creating a multi-page wizard/713_ClassicStyle.py | 28596fee9fffc0b44b9e51cfa5a74d029a56dc98 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 2,942 | py | # -*- coding: utf-8 -*-
from PyQt4 import QtCore, QtGui
import sys
class MyPage1(QtGui.QWizardPage):
def __init__(self, parent=None):
QtGui.QWizardPage.__init__(self, parent)
self.setTitle("ะะฐะทะฒะฐะฝะธะต ัััะฐะฝะธัั 1")
self.label1 = QtGui.QLabel("ะกะพะดะตัะถะธะผะพะต ัััะฐะฝะธัั 1")
self.line1 = QtGui... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
178d4903bd1beaaa99f179b907a1884c64f13793 | 17569ca9f3c7fba8b1ff20a085da2f48e6225da1 | /ch05/5-3.7.py | 09b7fcc525477a54a375f8b2b0b57525eedd3dba | [] | no_license | BrewTC/AI_Python | b05e77b92cad0735b319698931a3dc67ca69a6b3 | db728b518721c34ecf0cc939a99fbbd661169ff9 | refs/heads/main | 2023-03-11T12:38:55.004254 | 2021-03-01T09:26:57 | 2021-03-01T09:26:57 | 336,740,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,902 | py |
from tensorflow.keras.models import Model, load_model
from tensorflow.keras.layers import Dense, Input, concatenate
a = Input(shape=(28, 28, 1)) #} ๅปบ็ซ 2 ๅ่ผธๅ
ฅๅฑค, ่ผธๅ
ฅ shape ๅ็บ (28, 28, 1)
b = Input(shape=(28, 28, 1)) #}
cnn = load_model('ๆจกๅ_MNIST_CNN.h5') # ่ผๅ
ฅๅทฒ่จ็ทดๅฅฝ็ CNN ๆจกๅ
cnn.trainable = False ... | [
"noreply@github.com"
] | BrewTC.noreply@github.com |
677d47197c3561f094ce1a770b54ab5bce5f5962 | de3b38cd10f03305b1bf451fc00063d2ee0a9a47 | /core/migrations/0007_auto_20201217_1843.py | 257e624b6d2dd26cf7037a20ee900b653adc7899 | [] | no_license | Foster-Closet/BE | 01128fbdda3593fd9432ab10e88a79d1619387af | 4ccd0b36c79d686335faca88ab19ec574dbd191e | refs/heads/main | 2023-02-20T07:26:48.967744 | 2021-01-14T01:48:54 | 2021-01-14T01:48:54 | 321,476,606 | 0 | 0 | null | 2020-12-17T13:14:53 | 2020-12-14T21:24:57 | Python | UTF-8 | Python | false | false | 489 | py | # Generated by Django 3.1.4 on 2020-12-17 18:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0006_auto_20201215_2332'),
]
operations = [
migrations.AlterField(
model_name='item',
... | [
"nraven22@gmail.com"
] | nraven22@gmail.com |
ddeec689b8e89e2f2adefef242d1f9eb865058bd | 6a0b9581195400a93027aca881b1bc687401913d | /hackerrank-python/algorithm/dynamic programming/fibonacciModified - recursion best dynamic programming.py | 3d9943c41bb961d06300a923fd3e0f7a518854fe | [] | no_license | 108krohan/codor | 1d7ff503106ad6b2c18bc202d4c88f296600f28e | 2e485607080f919f273aa6c8c0d9cb3516cf4443 | refs/heads/master | 2021-04-28T21:13:34.604020 | 2018-02-18T11:55:26 | 2018-02-18T11:55:26 | 86,153,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | """fibonacci modified at hackerrank.com
"""
"""
Problem Statement
A series is defined in the following manner:
Given the nth and (n+1)th terms, the (n+2)th can be computed
by the following relation
Tn+2 = (Tn+1)2 + Tn
So, if the first two terms of the series are 0 and 1:
the third term = 12 + 0 = 1
... | [
"108krohan@gmail.com"
] | 108krohan@gmail.com |
2b850721e0788d6ccea9f608fda8ed4528379a1b | c16923fb8e2880e5e4c5fd314482b9e22ac63eda | /code/train_scripts/train_naive_bayes.py | a2c9a253aede1ac174d6ebb77f836f967cbd7196 | [] | no_license | suyinw/txtnets | 20ca8183e50ae24046157c0374e3d579e676ad47 | 2e67d47ebf680f0e1b2ea3c1fdf14b8ded6728be | refs/heads/master | 2021-01-11T05:05:59.575635 | 2016-01-16T12:35:59 | 2016-01-16T12:35:59 | 95,038,571 | 1 | 1 | null | 2017-06-21T19:26:46 | 2017-06-21T19:26:46 | null | UTF-8 | Python | false | false | 2,075 | py | from __future__ import print_function
from __future__ import division
__author__ = 'mdenil'
import numpy as np
import os
import simplejson as json
import cPickle as pickle
from nltk.probability import FreqDist
from nltk.classify import SklearnClassifier
from sklearn.feature_extraction.text import TfidfTransformer
fro... | [
"misha.denil@gmail.com"
] | misha.denil@gmail.com |
a396ad6690c6ec21491523b0fc1bbda40c5f0cb0 | cc2fcc1a0c5ea9789f98ec97614d7b25b03ba101 | /st2common/st2common/callback/base.py | 9fa261ab8b4c0c6de28e44363b8e6ed665defa6f | [
"Apache-2.0"
] | permissive | Junsheng-Wu/st2 | 6451808da7de84798641882ca202c3d1688f8ba8 | c3cdf657f7008095f3c68b4132b9fe76d2f52d81 | refs/heads/master | 2022-04-30T21:32:44.039258 | 2020-03-03T07:03:57 | 2020-03-03T07:03:57 | 244,301,363 | 0 | 0 | Apache-2.0 | 2022-03-29T22:04:26 | 2020-03-02T06:53:58 | Python | UTF-8 | Python | false | false | 1,147 | py | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | [
"wei.ying@easystack.cn"
] | wei.ying@easystack.cn |
01393de60e7bc0e6204a48be7428ab88daa374c1 | 0563fcecda5985b2f974059706da7b9cd3d6eee8 | /venv/bin/gunicorn_django | 9fe278b0c44ca509901fa5d858adfbff4f8e1efa | [] | no_license | echaddock/RockMyWorld | 08daa2fbb8193e7a25960aed7b3d3d51e5b07529 | 50929875011b37daca78752f36fe9d683170dadc | refs/heads/master | 2016-08-05T09:03:42.296697 | 2014-03-06T21:39:48 | 2014-03-06T21:39:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | #!/Users/elizabethchaddock/FlaskProject/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'gunicorn==18.0','console_scripts','gunicorn_django'
__requires__ = 'gunicorn==18.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('gunicorn==18.0', 'console_sc... | [
"echaddoc@ucsd.edu"
] | echaddoc@ucsd.edu | |
8d70e586dd0ee55bb52aeb072f830c60056fe9b3 | e906ebafb40786afd3f84ad01bbe8d81fd260435 | /sample/frontend/frontend_service.py | 5db95af768ee07112f59f651b938d0cba2e19237 | [
"MIT"
] | permissive | clarencenpy/kube-cam | 79dd3ee5673e41740268d555dfd48dfac2e97102 | d9c8b0481209765d0e77075a87da5b1f71b51929 | refs/heads/master | 2020-08-25T02:01:15.439571 | 2018-05-09T19:33:54 | 2018-05-09T19:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | from flask import Flask, request, jsonify
import requests
import json
app = Flask(__name__)
@app.route('/health', methods=['GET'])
def health():
return "playground is healthy"
@app.route('/', methods=['GET'])
def handle():
return ''
@app.route('/number', methods=['GET'])
def handle_python():
req = req... | [
"11187006+setttings@users.noreply.github.com"
] | 11187006+setttings@users.noreply.github.com |
f5f9be6a2331beafe73419b5e3e0fdb16b7d7f4b | a6bdea109061dd5f406af25520757cbeb5cea0fd | /AddressBook/app1.py | 09aecbeea003bfb82e81c2006360a74363c951d6 | [] | no_license | james-od/addressbookAdministrate | 9ba9b46887862e040b5da0c71e304bc8552ea2be | 09f745ff718f4e35436e668b62e63e929db5da1f | refs/heads/master | 2020-05-23T07:50:59.160797 | 2017-03-21T13:18:14 | 2017-03-21T13:18:14 | 80,454,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,911 | py | from flask import Flask, render_template, request, json
app = Flask(__name__)
from flask.ext.mysql import MySQL
mysql = MySQL()
# MySQL configurations
app.config['MYSQL_DATABASE_USER'] = #username
app.config['MYSQL_DATABASE_PASSWORD'] = #password
app.config['MYSQL_DATABASE_DB'] = 'james_odonnell_addressbo... | [
"noreply@github.com"
] | james-od.noreply@github.com |
20dd8146bc22051e2dfe7cdfd0d5ab3fe2830c05 | 564fa0e26aaaef5053cfb8c3cb5dfd5486f32a55 | /2020-02/2-18-20/Solution.py | 797d2b051c5929eb36a53802c159c88d9642d976 | [] | no_license | SeanValley/DailyProblems | 84b14e04c40ef3337599181f68036b0cc76c3722 | 8fb3acc650c8c858d29e36cf21423b8410aa245d | refs/heads/master | 2021-01-07T19:28:44.555874 | 2020-03-22T09:39:30 | 2020-03-22T09:39:30 | 241,797,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | #main() contains test cases for the containsSum() method
#containsSum() will return true if any 2 of the numbers in an array
#add up to k
def main():
array = [10, 15, 3, 7]
k = 17
array2 = [11, 5, 2, 21, 53, 1000, 42]
k2 = 44
array3 = [5, 1, 3]
k3 = 10
print(containsSum(array, k))
... | [
"valleydsean@gmail.com"
] | valleydsean@gmail.com |
59b6ab882ecb2f059133d991b5eb135d089688ee | f56d29fb08a1e3cc4fba2fd2fcb4f115a2a33f43 | /src/raizen_etl/pipeline_registry.py | ba55dae28ed96785f6f03835957cc2d2a2605d81 | [
"CC0-1.0"
] | permissive | vapolonio/kedro_etl | a706e31e57db213b0c6c1f9cabc9b05a6506d47b | e74fc408d0f48b43a0a5e85c8bcfa0782753edad | refs/heads/main | 2023-06-04T06:56:02.423433 | 2021-06-25T19:02:25 | 2021-06-25T19:02:25 | 380,320,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | # Copyright 2021 QuantumBlack Visual Analytics Limited
#
# 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
#
# THE SOFTWARE IS PROVIDED "AS IS",... | [
"victor@apolonio.dev"
] | victor@apolonio.dev |
767601f0c5e151446b2efa4309f8a3db83bc3190 | 14fd7d664a3779432ac3e6ad59d95e877fd23e47 | /train.py | fa2f65ed4f73027337583f3ad7dbeaa3bc27bd2c | [] | no_license | snigdhsanjivani/xAI-BachGAN | 1dcdee98a4635733132c53c1d3b5e0fbe16ba11d | df3f48263bab0746886ba90311628fdb9a3d371c | refs/heads/main | 2023-02-26T18:14:12.593269 | 2021-01-29T21:49:33 | 2021-01-29T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,276 | py | """
Copyright (C) 2019 NVIDIA Corporation. All rights reserved.
Licensed under the CC BY-NC-SA 4.0 license (https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode).
"""
import sys
from collections import OrderedDict
from options.train_options import TrainOptions
import data
from util.iter_counter import Iteratio... | [
"noreply@github.com"
] | snigdhsanjivani.noreply@github.com |
06a1d3e9fa7d083550dbce07e54ed58d01280794 | a741d5771333080897eb5b583c1c9bcf2778f480 | /.venv/bin/rst2pseudoxml.py | 2ac3a001b079a77fe8dd5ab738783064ae8ba7f5 | [] | no_license | HuemanTarget/pop-collector | 04d1012c4f8796e5fb807ba5d1604a75b9c56e17 | 9c7190beec232b78210ecd07f858867adbdb209d | refs/heads/master | 2020-12-28T00:04:24.645547 | 2020-02-06T22:07:37 | 2020-02-06T22:07:37 | 238,113,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #!/Users/pompousair/SEI/popcollector/.venv/bin/python
# $Id: rst2pseudoxml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing pseudo-XML.
"""
try:
import lo... | [
"38532350+HuemanTarget@users.noreply.github.com"
] | 38532350+HuemanTarget@users.noreply.github.com |
c68935937f9fc5a69a89794dfe485bee4f51f55e | 2a2e503746bd2118047d830a3c2b1910ea7a7b0a | /็ฌฌไบ็ซ /1.py | df1f367d2f3c49c76bb4776ea4a9560f7278dbf9 | [] | no_license | hc973591409/python-auto | dabd1bfae7a5f24b49e25bd855ef8456494aa2b8 | c4182d81693ea93d27965c261ad7dffce2cd180a | refs/heads/master | 2020-04-01T10:53:23.490608 | 2018-10-16T12:58:30 | 2018-10-16T12:58:30 | 153,136,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | # rangeๅฝๆฐ
for i in range(5):
print(i,end=',')
# rang(0,5)
# 0,1,2,3,4,
# range(start, end, step)
# ไธไธชๅๆฐ็ๆถๅ๏ผ้ป่ฎคstartไฝ0
# ไธคไธชๅๆฐ๏ผๆฏไธไธช[ ),ๆฏไธไธชๅทฆ้ญๅณๅผ ๅบ้ด
# ไธไธชๅๆฐ๏ผไป่ตทๅง็นๅผๅงๅๅผ๏ผๆ็
งๆญฅ้ฟๅๅผ๏ผๅฝๆญฅ้ฟไฝ่ดๆฐ็ๆถๅ๏ผๅๅๅๅผ
>>> list(range(10))
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> list(range(1, 11))
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
>>> list(range(0, 30, 5))
... | [
"973591409@qq.com"
] | 973591409@qq.com |
f8a8f0688d6e41a29cb8a5deaf739a00fb9cac28 | 02b50de1e11c7fe526fc93a6341f662c3278eb71 | /yang/templates/read_json_file.py | 77504620a4d72b9136d77f3d88341835063eb8b2 | [] | no_license | gdpak/ansibleplay | 00b7c22050394776e1beb18884895d04c928eb7b | 2079af21e6a729464216caada9ab0344453de8dc | refs/heads/master | 2021-05-04T16:27:06.626296 | 2020-02-21T07:33:03 | 2020-02-21T07:33:03 | 120,250,297 | 0 | 0 | null | 2018-02-19T03:41:53 | 2018-02-05T03:30:50 | null | UTF-8 | Python | false | false | 2,942 | py | import json
def json_to_xml(json_obj, line_padding=""):
result_list = []
... | [
"deepacks@gmail.com"
] | deepacks@gmail.com |
a6a5dfcb26115d369743efe7028069b55def3c55 | 9134159b8e504490930b80aa9de41af506e9e9eb | /sound_classifier.py | db96ec55a3563aa591d29ce1a9c1cbd1dfe0cc93 | [] | no_license | P4uL7/es_sound_classifier | 672a3f063c47e59946a3cb94df73d1586abd6d0d | 6f75767a8a5f88adb30e1ad846876dde60df8095 | refs/heads/master | 2021-04-16T20:45:16.775786 | 2020-03-29T18:56:18 | 2020-03-29T18:56:18 | 249,382,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,637 | py | import numpy as np
from numpy import genfromtxt
from keras.utils.np_utils import to_categorical
from keras import Sequential
from keras.layers import Dense, Conv2D, MaxPooling2D, Flatten, Dropout
import pandas as pd
# extracting data from csv files into numpy arrays
x_train = genfromtxt('train_data.csv', delimiter=','... | [
"stanila_paul@yahoo.com"
] | stanila_paul@yahoo.com |
5dd5bd78e3f53d987808b76faa759ccdc342d254 | 4d31d1d2d241f05884d48f037999360583d3469c | /VirusteamASPR.py | 53f45301a316192f4fadf8f76cb6c72c5658b802 | [] | no_license | VIRUSPRIYANSHU/Virus | 6c8ca384b1aede92268534d71ba63561137403ac | a8b78bcf090708c218070a3e1b21a9cdb63db4a8 | refs/heads/master | 2022-11-21T08:12:58.736526 | 2020-07-01T12:01:12 | 2020-07-01T12:01:12 | 276,273,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,406 | py | #!/usr/bin/python2
#coding=utf-8
#The Credit For This Code Goes To asim102
#If You Wanna Take Credits For This Code, Please Look Yourself Again...
#Reserved2020
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize
from multiprocessing.pool import ThreadPool
from requests.ex... | [
"noreply@github.com"
] | VIRUSPRIYANSHU.noreply@github.com |
4d126d85e30fa7bb412387830fb1f14121a82b39 | 13c8343875c21feba8275827b218deeee01f5b1f | /organizations/fsvps_ru/fsvps/settings.py | 03d2dd75a44866b43e62f0914fee836cc8c22df4 | [] | no_license | gadjimuradov/parsers | 3c92d89cfd437419afa589cf80e12b04e9302f88 | 93246cfbb09c1ea210113fc19898c286a4f6c4e6 | refs/heads/master | 2021-01-10T11:12:48.160942 | 2016-02-18T09:49:30 | 2016-02-18T09:49:30 | 51,927,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,977 | py | # -*- coding: utf-8 -*-
# Scrapy settings for fsvps project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/t... | [
"dagdahzub@mail.ru"
] | dagdahzub@mail.ru |
64ed5d7bfd4bfda17cc9c0958f8cb60376f281f0 | e37b47f4e02ec493856f464c963d050de8042496 | /utils/sina.py | cec842ed05f7d30eb58be8071e6edc05543d8ac3 | [] | no_license | shootstar/parse_html_and_create_text | aae7679fab82fd601eed4d5d89351df3d1de9c9e | 768378f6105c382ea68c3b98b46c06692836dd96 | refs/heads/master | 2021-01-17T06:26:32.647849 | 2013-03-11T10:39:20 | 2013-03-11T10:39:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | # -*- coding: utf-8 -*-
import urllib2
from base import CreateTextBase
class CreateText(CreateTextBase):
def __init__(self,*args,**kwargs):
super(CreateText,self).__init__(*args,**kwargs)
self.standard_url = "http://vip.book.sina.com.cn/book"
self.contain_word = "chapter"
self.conte... | [
"takasehajime@000254-M.local"
] | takasehajime@000254-M.local |
80903b9a46052bd513d761af6d7a476b930d8f53 | 9ad59158041f6bcdecc56f3a424aacc4e891f6c2 | /find vowels.py | 780fced4c67143511a3c1a477aef3c1434c5e505 | [] | no_license | tarzanskills/homework | 1ddb65e340846bffdb326aa28353721650bcba42 | ef3ec5ad05eba02563e5af599805aa85c65d286a | refs/heads/master | 2020-07-20T20:58:33.742058 | 2019-09-20T03:53:21 | 2019-09-20T03:53:21 | 206,708,405 | 0 | 0 | null | 2019-09-22T18:01:25 | 2019-09-06T03:50:51 | Python | UTF-8 | Python | false | false | 215 | py | def Check_Vowels(string, vowels):
final = [each for each in string if each in vowels]
print(len(final))
print(final)
string = "pythonloopsareawesome"
vowels = "AaEeIiOoUu"
Check_Vowels(string, vowels); | [
"pankajsinghrathore9599@gmail.com"
] | pankajsinghrathore9599@gmail.com |
1a7818f50ec6122c58805eafaa26505a5d329819 | fcf71d8ed3a0d05750a0caba93f2f9cdb9ec0adc | /3.python/my_py_script/tools/prnFields.py | 8a96a2618eb374b08dcb63cf47d9b633cd79e69f | [] | no_license | handol/python_study | a6e6faeae2213a66b303524b57550c879c83c190 | 4d4cf3847c29ef363c1b8fd10bf2525d6f801ddd | refs/heads/master | 2021-01-10T21:20:31.140133 | 2013-03-28T06:30:16 | 2013-03-28T06:30:16 | null | 0 | 0 | null | null | null | null | UHC | Python | false | false | 1,558 | py | #!/usr/bin/env python
## -*- coding: EUC-KR -*-
# 'ํ๋ ์ถ๋ ฅ๊ธฐ'
# 2006. 11.21
import sys
result = []
def dealArg(field):
'argv๋ฅผ ์ฒ๋ฆฌํ์ฌ field number ๋ฅผ return ํด์ค๋ค.'
#if field.find(',') != -1:
newf = field.split(',')
length = len(newf)
for seq in newf:
if seq.find('-') != -1 and seq.find('-') != 0: # ๋ง์ฝ 5-8 ์ด ์๋ค๋ฉด... | [
"jiinhan@iMac.local"
] | jiinhan@iMac.local |
c43c601d9c319c4172b38c26125a7f188914cf5d | 14a79f73f9c2923caf0e44070d61b30f330b4da2 | /curso/curso/settings.py | 7e35bc0ed1c63222fcd494eb9a4683a4c19f1be1 | [] | no_license | yandry0007/CURSO_DJANGO_V2 | 02519ad7e8b69948ec8da798e88d2f23788574ab | 1db4e901160e9f89629e7c28930ec267e898e89a | refs/heads/master | 2021-01-01T15:50:12.826086 | 2014-09-08T21:56:01 | 2014-09-08T21:56:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,053 | py | """
Django settings for curso project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impo... | [
"yampier--07@hotmail.com"
] | yampier--07@hotmail.com |
fc15afe78a41b4195ef27ea3c10123e00b8d6cbf | 95b4b08365f2b59b766fdbdd834a50aac3039c6a | /selenium-play/dummy_selenium.py | 542945bba52c11fd38e7015a6462e31ecbf13ebf | [] | no_license | codyowl/super-mario-ai | dcaf022c8ed84b83e37758d124f1d0478ae3060d | 0a8fafa8e42d299352e50d38f778cb0b6696e66f | refs/heads/master | 2022-04-28T08:25:31.619875 | 2020-04-26T11:13:34 | 2020-04-26T11:13:34 | 258,985,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
import time
game_url = "https://mario.xpixv.com/"
class Game:
def __init__(self, game_url):
self.game_url = game_u... | [
"codyowl@gmail.com"
] | codyowl@gmail.com |
b56f82d388afa9039ad78469f74241dcf2eee242 | e816514ecec2b04ffec7821c8eaa8dc6b806e43a | /unit_tests/test_tables.py | 17448273d56f46b01845ee5fe9878937fd604848 | [] | no_license | spacepy/dbprocessing | 0484fbacd6f83ebe27a15342ee500ce6efd925de | a0bf5e682fb917bb707b4f66787b0ecb860efce1 | refs/heads/main | 2023-04-06T21:54:07.416214 | 2022-09-21T17:25:06 | 2022-09-21T19:42:01 | 279,903,877 | 4 | 4 | null | 2023-08-18T16:53:21 | 2020-07-15T15:21:19 | Python | UTF-8 | Python | false | false | 2,879 | py | #!/usr/bin/env python
"""Unit test of table definitions
This is a few quick checks and particularly examining tricky stuff; testing
all the tables amounts to a check that SQLalchemy works rather than that
our definitions work.
"""
import os
import os.path
import shutil
import sqlite3
import tempfile
import unittest
... | [
"68342327+dnadeau-lanl@users.noreply.github.com"
] | 68342327+dnadeau-lanl@users.noreply.github.com |
be2b93c33be25f6345110ead784e94a94d879db8 | 2ef0c591562c1b1f21ad4b782767d7919a52770f | /apps/notification/migrations/0001_initial.py | e95274e8c021d1f03b38bea73820d2dd2972d24e | [] | no_license | TejasMalik/Posty-SocialMedia-Django | 1cf88b258fd8f7c3ac64f7554114172bda586cb6 | ead1aee8dec81c66c9e4f80383827551963ad4ef | refs/heads/main | 2023-01-31T07:57:48.060405 | 2020-12-18T12:27:10 | 2020-12-18T12:27:10 | 322,587,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | # Generated by Django 3.1.4 on 2020-12-17 18:58
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... | [
"tmalik8@dxc.com"
] | tmalik8@dxc.com |
315f402c1f3a2786ee65ffb6071062dd6c9da14c | d120650e747bf966c22c7b28f4aa3d9a4709abb0 | /String Matrices without OOP/functions.py | 70385561fce142c916943d91c66fd3ec875847b3 | [] | no_license | Evohunt/String_Matrices | 92cb58f796f344cadaff60334f0143611c6cdf7f | 41168e7c996f952475b5a7943c41b6a8eefe80a1 | refs/heads/master | 2021-09-05T05:49:12.080920 | 2018-01-24T15:25:55 | 2018-01-24T15:25:55 | 118,783,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,065 | py | # Function used to create a 2D Array of given size
# We take 2 given arguments and return the initialisation
# of a matrix with blank characters, the size of the matrix
# depending to the 2 given arguments(ints)
def create_matrix(width, heigth):
return [[""]*heigth for _ in range(width)]
# Function used to ... | [
"noreply@github.com"
] | Evohunt.noreply@github.com |
957f45daf22d838308af27575a6eac3b935969d8 | 61673ab9a42f7151de7337608c442fa6247f13bb | /__scraping__/fantasy.premierleague.com/main-X.py | 413fb41341ba36afa72b4ff7f1c02fce538f1b35 | [
"MIT"
] | permissive | furas/python-examples | 22d101670ecd667a29376d7c7d7d86f8ec71f6cf | 95cb53b664f312e0830f010c0c96be94d4a4db90 | refs/heads/master | 2022-08-23T23:55:08.313936 | 2022-08-01T14:48:33 | 2022-08-01T14:48:33 | 45,575,296 | 176 | 91 | MIT | 2021-02-17T23:33:37 | 2015-11-04T23:54:32 | Python | UTF-8 | Python | false | false | 902 | py |
# author: https://blog.furas.pl
# date: 2020.07.10
# link: https://stackoverflow.com/questions/57403037/how-to-overcome-405-error-on-logging-in-a-site-from-python-requests/
import requests
from bs4 import BeautifulSoup
session = requests.Session()
#session.headers.update({'user-agent': 'Mozilla/5.0'})
login_url = "... | [
"furas@tlen.pl"
] | furas@tlen.pl |
763c35beab612d36db9038d68bab78b437563296 | 1be963ccb4ce8e954cfaf2c8c86f58d09dc3a2da | /metaclasses/metaclass_decorator.py | 7386039bf6d3134e746ae1b81649c1b05bf561b4 | [] | no_license | BrainiacRawkib/Learning-Python | 3e3c6a55f440f85afe91fdea5d3df843fb5c18e6 | bb2832c7ecd43a973f6aa19041bcdcbabdddbbf0 | refs/heads/master | 2020-12-01T09:03:31.693686 | 2019-12-28T15:20:54 | 2019-12-28T15:20:54 | 230,597,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | from types import FunctionType
from metaclasses.decotools import tracer
def decorate_all(decorator):
class MetaTrace(type):
def __new__(meta, clsname, supercls, clsdict):
for attr, attrval in clsdict.items():
print(attr, ': ', attrval)
if type(attrval) is Functi... | [
"brainiacrawkib@gmail.com"
] | brainiacrawkib@gmail.com |
a01c7823f4fd48f4d4ed47f00f286e224777ec25 | ab2c27bd3e96f71552386b102938076df11f0901 | /ใ12ใ้ๅ่ฟ็ฎไธๅญๅ
ธ/01 ้ๅ่ฟ็ฎ/code.py | 097256424cd83deffb8fa259d562157a56244929 | [] | no_license | 1712825001/fullstack | 26b4ba0215093c2290af6d58c3a83ddeb1d66d16 | f933c37da37869dfc17bed9f402c82e9352554ec | refs/heads/master | 2020-11-25T17:39:44.300151 | 2019-12-04T03:06:41 | 2019-12-04T03:06:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | # ๅนถ้
set1 = set(range(5))
set2 = set(range(4,9))
print(set1 | set2)
print(set2.union(set2))
print(set1 & set2)
# ้ๆบ็ๆ2็ปๅ10ไธชๆฐๅญ็ๅ่กจ๏ผๅฆไธ่ฆๆฑ๏ผ
# ๆฏไธชๆฐๅญๅๅผ่ๅด[10,20]
# ็ป่ฎก20ไธชๆฐๅญไธญ๏ผไธๅ
ฑๅคๅฐไธชไธๅ็ๆฐๅญ
# 2็ปไน้ด่ฟ่กๆฏ่พ๏ผไธ้ๅค็ๆฐๅญๆๅ ไธช
# 2็ปไน้ด่ฟ่กๆฏ่พ๏ผ้ๅค็ๆฐๅญๆๅ ไธช
a = [1,9,7,5,6,7,8,8,2,6]
b = [1,9,0,5,6,4,8,3,2,3]
s1 = set(a)
s2 = set(b)
print(s1)
print(s2)
prin... | [
"1054057238@qq.com"
] | 1054057238@qq.com |
55dd4bed524c3acbe15ec80cb9b7ef108a43e386 | 531be15b8a1cab57d268e7d16fc489d9af3dc63e | /quoteGenerator.py | cfad23b0d4b39fbf5b5a1d57e0de0d7d9955bf6f | [] | no_license | JChirolHill/QuothShe | 39457441cbe07e853eee7ecbd9aefa9ff781e8d7 | ea7c10673d48ec505d691085bb12aa17a21d9264 | refs/heads/master | 2020-05-05T10:01:09.453514 | 2019-04-08T18:31:22 | 2019-04-08T18:31:22 | 179,926,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,474 | py | import requests
import random
import os
fileOut = open("quote.txt", "a")
quoteList = []
fileOut = open("quote.txt", "r")
for line in fileOut:
# print(line)
line = line.strip()
quoteList.append(line)
buffer = []
bufferAuthors = []
# # returns a random hardcoded quote
# def getRandomQuote():
# # just f... | [
"chirolhi@usc.edu"
] | chirolhi@usc.edu |
daa6fac2e3e02d1a8b5e40f05b8823cb12750b1d | f329f3061e3a72b2562bb242dfe1a2ed07fe65f0 | /plugins/able_g2s_app.py | b8257b0c600424f544ead2985d84e255a00ce788 | [
"MIT"
] | permissive | ver007/getcms | 58263174355eb16bae95b74f6efaff5069b4ce56 | da03c07457abc266cacddc3ccd67126f0b03da3d | refs/heads/master | 2021-01-19T07:01:51.453626 | 2016-04-13T08:28:14 | 2016-04-13T08:28:14 | 56,134,430 | 0 | 0 | null | 2016-04-13T08:27:38 | 2016-04-13T08:27:38 | null | UTF-8 | Python | false | false | 152 | py | #!/usr/bin/env python
# encoding: utf-8
def run(whatweb, pluginname):
whatweb.recog_from_file(pluginname, "G2S/js/opendiv/login.js", "LoginForm")
| [
"hackerlq@gmail.com"
] | hackerlq@gmail.com |
9f1097a959476d9eb0f38e6a8b16758b86a83859 | 64de1bcff4c7d343ec38e1528978d9f53f811110 | /package_ui.py | 0cf871d1d0548060734ec1407f8823968a1d57e8 | [] | no_license | zhifeigithub/unity_package_tool | 50c3ab234bc8992eef7bd5fae28974c2363717c6 | ed48adb5d856c86517c285575b8772376f15e612 | refs/heads/master | 2021-01-18T21:06:53.463314 | 2017-11-02T14:33:53 | 2017-11-02T14:33:53 | 100,553,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,865 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Users\SzoFiel\Desktop\ๆๅ
่ชๅจๅ\PyCharmPrj\PyQt\package_ui.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
... | [
"zhifeiemail@gmail.com"
] | zhifeiemail@gmail.com |
1d0bab2a2ead912269ff9a3e40e9aae28e575010 | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/scipy/stats/_distn_infrastructure.py | bbe46a725cfa719670637fd115ac334af0d18a58 | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | version https://git-lfs.github.com/spec/v1
oid sha256:8f00a046b4b32660b37f3d4f38d43a6fc2ba59225fce53e2e5919a10ee17d3c0
size 126866
| [
"business030301@gmail.com"
] | business030301@gmail.com |
d0f4b0606acd2b2cd2b6a6418a65255a3cbf253d | f131222013fd1c23bf23a9af44dbaf2cd2dfbe72 | /python้ซ็บง็ผ็จcode/ch13/p278.py | ad6f33aab7532b006edbe6e50754ecb43a5edfa0 | [] | no_license | shortdistance/workdir | e0bdadcb9d6b5e61e62434d574afad36afa60ba9 | 7c4a23fdbb8ae14b67aeda47ce53be1bd24ae2d1 | refs/heads/master | 2021-01-19T23:21:40.885964 | 2017-04-21T12:55:45 | 2017-04-21T12:55:45 | 88,968,923 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | #!/usr/bin/python
# page 278
from threading import Thread
import os
import subprocess
from Queue import Queue
import logging
import time
import sys
from pbp.scripts.profiler import profile, print_stats
dirname = os.path.realpath(os.path.dirname(__file__))
CONVERTER = os.path.join(dirname, 'converter.py')
q = Queue()
... | [
"zhanglei520vip@163.com"
] | zhanglei520vip@163.com |
e80d28baa897ca5c577b5d25f98efc4fe7f7e99c | 8bf882780c0a17a66ddf77d933f205de234c544a | /CS230/evaluate.py | 836ce15dff8934cd38906d4589a4c2561be36375 | [] | no_license | ixiaopan/NER_Tagger | 1663d9ae69ac4f59dea777002420eb018f61d37e | 59dbb8ea753c193357aba293adc334c027cec2d4 | refs/heads/main | 2023-07-16T01:28:25.424158 | 2021-08-30T09:24:39 | 2021-08-30T09:24:39 | 380,802,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | import numpy as np
def evaluate(model, data_loader, params, loss_fn, metrics_func):
model.eval()
eval_log = []
for inputs, labels in data_loader:
out = model(inputs)
loss = loss_fn(out, labels)
log_per_batch = { name: metrics_func[name](out, labels) for name in metrics_func.keys() }
log_per_ba... | [
"xiaopan.wpp@outlook.com"
] | xiaopan.wpp@outlook.com |
3bc4c2b9d72aa31d4721857fb7fe94b27da41464 | 0f27b8257e81f7cfb3a9a91bfe2e292f1f7e9459 | /Python/interviewexerciseswk4.py | 6de418b9d361a53adb3a09f066855a16d0f5be79 | [] | no_license | ahmermalik/classWork | 56fa3edf45ba9341876a859e33887ca799837278 | febd6790ca98f08c15ab90e970a67bf2ffc51e6e | refs/heads/master | 2021-09-10T05:26:12.367053 | 2018-03-21T04:33:09 | 2018-03-21T04:33:09 | 103,564,622 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 121 | py |
##Days move back by 1 every year.
##Leap year is every 4 year.
# how many saturdays are
year =[]
for range (0,99):
| [
"ahmer9800@gmail.com"
] | ahmer9800@gmail.com |
41a41eaba9a14b59248922821a70977937ccbc3a | 1460501c2622623dcdbc3da0a17de0224641001e | /app/rypace_switch_v01.py | dae035c32ee62665586df13de3fc65b0fc44a789 | [
"Apache-2.0"
] | permissive | rafaelsilvag/Rypace | c2b935aaccc5f390f4cf35060a6de9ca71a63fb8 | ace81c8d2316829e4632eb1678b6678173a00da9 | refs/heads/master | 2016-09-05T12:57:23.908566 | 2014-08-29T22:44:45 | 2014-08-29T22:44:45 | 21,402,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,121 | py | # Copyright (C) 2011 Nippon Telegraph and Telephone Corporation.
#
# 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 appli... | [
"rafael@infomania.com.br"
] | rafael@infomania.com.br |
ce889adde032a9d8897689f277b5efe2d72eb74f | fe6eaa2f3656dedcb2c1e937cc1363d19a0d3ec1 | /python_demo_project/python_100_days/memory_management/cycle_ref.py | d18b292b115fbd9e74db75c88a0b5fd2bbced6ce | [] | no_license | toyijiu/my_code | 4619ac6bc06c5032e01d5c215dbae516bbc4fe77 | dd163cc47e2c706504aba1d42322167fb93dd9e9 | refs/heads/master | 2020-08-31T14:49:18.188393 | 2019-11-27T08:57:55 | 2019-11-27T08:57:55 | 218,714,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | #ๅพช็ฏๅผ็จ็demoไพๅญ
import gc,weakref,sys
class User(object):
#ไธๆฆๆไบ__del__ gcๅฏนๅพช็ฏๅผ็จไนๆฒกๆๅๆณไบ
def __del__(self):
pass
def callback(r):
print(r," is dead")
gc.disable()
a = User()
wa = weakref.ref(a,callable)
b = User()
wb = weakref.ref(b,callback)
print('weak ref address:',hex(id(wa)),hex(id(wb)))
#ๅฝขๆๅพช... | [
"309378714@qq.com"
] | 309378714@qq.com |
413f72426c8b730257f1c15971787709ea7e905a | 16866827a639cc414c9c1880c10674452afc4e1c | /cbt_practice/prime.py | d2ba0af99840a6de47ad047929c3baeaf0fe875d | [] | no_license | indradevg/mypython | ffa8051dc8ec3291aa5ed9563c2c9ee55d87286b | 22c968ed8a1d6907ffcf9d6b4094c07ef7e24a9a | refs/heads/master | 2021-06-07T16:44:12.281391 | 2016-10-23T17:03:02 | 2016-10-23T17:03:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | #!/usr/bin/python3.4
'''
Prime number
'''
import functools
nums = range(2, 50)
for i in range(2, 8):
nums = list(filter(lambda x: x == i or x % i, nums))
print(nums)
'''
Lambda Examples
'''
foo = [2, 18, 9, 22, 17, 24, 8, 12, 27]
print(list(filter(lambda x: x % 3 == 0, foo)))
print(list(map(lambda x: x ... | [
"indradev.g@gmail.com"
] | indradev.g@gmail.com |
f599db2de778bf371b573bdc4de90eef032a2b58 | a159aea3b44fd580dc81c124e014613e1be0d2aa | /notminist_tfrecord.py | b8cf52d61bec4d50489de92aeaaee95c83fd190a | [] | no_license | ZouYunzhe/dcgan | bc7d85c3589d7cd4179b5e47b184f1f2a52718a3 | 9c04c94a039e144f0074323411923dea7ac38294 | refs/heads/master | 2021-05-07T19:58:37.897222 | 2017-11-06T18:15:27 | 2017-11-06T18:15:27 | 108,915,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,673 | py | import tensorflow as tf
import numpy as np
import os
import matplotlib.pyplot as plt
import skimage.io as io
# %%
def get_file(file_dir):
'''Get full image directory and corresponding labels
Args:
file_dir: file directory
Returns:
images: image directories, list, string
labels: la... | [
"noreply@github.com"
] | ZouYunzhe.noreply@github.com |
ed60ebb1bd2f19689acce3b8da7c7ef70e504b5d | 900b98964288a9cb0aaf2e45706ae2b32f92657f | /examples/adspygoogle/dfp/v201204/create_user_team_associations.py | 62cce744a9c7baa26ef58ebdc87ba7f213602503 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | krux/adspygoogle | df2405c2042aa9c9a83d97b8442afe68572e3e2e | 6505a71122f45fe3e675f27f2c29f67a1768069b | refs/heads/master | 2022-02-22T08:55:19.777002 | 2022-02-11T22:42:19 | 2022-02-11T22:42:19 | 7,103,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,264 | py | #!/usr/bin/python
#
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"charlie@schluting.com"
] | charlie@schluting.com |
8c83dd1b8f3d296ed10336103c75889b5d9055ae | 09b689db8119634c23228cfea71711e418f89242 | /contract/resources.py | a9b906e73d4cc499481add45300b637b7bdee56c | [] | no_license | htyangya/scwork | 9c8a2efb0c59b4ceaf1bc98ec7973c9919107534 | ab4d6f439e748226357b13e562140799d5641bcd | refs/heads/master | 2020-06-22T14:16:51.099866 | 2019-08-31T06:00:51 | 2019-08-31T06:00:51 | 197,728,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,871 | py | from import_export import resources
from import_export.fields import Field
from import_export.widgets import ForeignKeyWidget
from contract import apps
from .models import *
class Prg_base_resource(resources.ModelResource):
contract = Field(column_name="ๅๅ็ผๅท", attribute="contract", widget=ForeignKeyWidget(Contrac... | [
"979734716@qq.com"
] | 979734716@qq.com |
29f00d0fc036a4656c59dc85e7d6063076b1fb18 | 1bad7d2b7fc920ecf2789755ed7f44b039d4134d | /ABC/66/C.py | 728f96c9977078e4efec5ce636aba033801f197b | [] | no_license | kanekyo1234/AtCoder_solve | ce95caafd31f7c953c0fc699f0f4897dddd7a159 | e5ea7b080b72a2a2fd3fcb826cd10c4ab2e2720e | refs/heads/master | 2023-04-01T04:01:15.885945 | 2021-04-06T04:03:31 | 2021-04-06T04:03:31 | 266,151,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | n=int(input())
a=list(map(int,input().split()))
b=[0]*n
cen=n//2
if n%2:#n%2==1
for i in range(0,n):
if i%2==1:
b[cen+(i+1)//2]=a[i]
else:
b[cen-(i+1)//2]=a[i]
else:
for i in range(0,n):
if i%2==1:
b[cen-(i+1)//2]=a[i]
else:
b[cen+... | [
"kanekyohunter.0314@softbank.ne.jp"
] | kanekyohunter.0314@softbank.ne.jp |
0c73ba48c455f79c52db4d2071d2008d2789c5d5 | 7a4ddcc2ab876883c0288fbcd204a06780436376 | /program8.py | 95981861bacb0afaf14177467b6e8403f68b9041 | [] | no_license | aaratee-123/function | 4d8be50b5ed60486b63b3f9038492a92ef3fad5e | c45f9e62a93b9d4021cf1adccfbd2c9a4fda59ce | refs/heads/main | 2023-04-25T21:01:32.283208 | 2021-05-27T14:38:12 | 2021-05-27T14:38:12 | 371,404,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | def say_hello(name):
print("hello")
print("aap kaise ho?")
say_hello("aarti") | [
"noreply@github.com"
] | aaratee-123.noreply@github.com |
5bb905e6ef0d4750bdb6066e9e627149460bcd3d | d1c52da18a0d19bb116823d24ec4f4e320748f75 | /Week3/Homework/Make_slices.py | bd3ef7cd30d1ea34e8189918be89467b4061f22c | [] | no_license | IhorMok/Coursera | ba6b31dbcb2a8281a9acbb108d4edec0a0bd54af | d1f1a6a09d236696974a218004a888f6c14429a1 | refs/heads/master | 2022-11-15T20:26:23.267324 | 2020-07-11T19:39:35 | 2020-07-11T19:39:35 | 277,326,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | n = input()
print(n[2])
print(n[-2])
print(n[0:5])
print(n[0:-2])
print(n[::2])
print(n[1::2])
print(n[::-1])
print(n[-1::-2])
print(len(n))
| [
"igor4ik08@gmail.com"
] | igor4ik08@gmail.com |
d591e64c9382e8d037340dbb3e97f80b887a96ea | 5b57e71b29049292a2afc193177ce479ef4efe3b | /2017/Day_25__Turing_Machine.py | 6060a7db61ee1a6e5e9ff96d90500d58a7b62c93 | [] | no_license | lallers/Advent-Of-Code | 27cf408ff01e85a57949f514a7e6b81e26027e20 | c52688f64d59ac0d98bad7f8ba3df720116484bd | refs/heads/master | 2020-04-07T14:58:19.487601 | 2018-12-20T22:20:50 | 2018-12-20T22:20:50 | 158,468,266 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,659 | py | import time
import sys
from collections import deque
'''
def state_change_a(x, curs_pos, max_iters, cur_iter=0):
if(cur_iter < max_iters):
current_pos = x[curs_pos]
if(current_pos == 0):
x[curs_pos] = 1
curs_pos += 1
cur_iter += 1
output(x, cur_iter, '... | [
"lallers@users.noreply.github.com"
] | lallers@users.noreply.github.com |
da25e1eb6425637c3bed8c54cfa195f9a8173a51 | 9129a867d4b7d652a4217a71be8ead5df4c808c5 | /core/exceptions.py | cf2dc27c52b0c8ca470b7ae8a953b8f39f90473d | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Mi44Or30/Back2TheFuture | bc9c4a715ca76f66cd65f47847fba67ddffb3136 | 39b5eaf289e694aa9cae1bd26fd1f35b0d4dd0c3 | refs/heads/main | 2023-07-02T23:33:05.587833 | 2021-08-09T05:15:07 | 2021-08-09T05:15:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py |
class IntegrationTimeout(ValueError):
pass
class FailedToDecompile(RuntimeError):
pass | [
"eran.segal@safebreach.com"
] | eran.segal@safebreach.com |
915f03bd38cdd5dd33a4965d4df9d3d0d36b8df7 | 8c18424991d70880d86d931319f4c221fbf29be3 | /Assignment_8.py | e56c8b88af60c69825198abe2965de369d9c9f31 | [] | no_license | ramasawmy/assignment | 794b6ed40f42d2b6a892bbfbe7a8c2d2e31c4fcc | a6590f0bee252f929eb34aa806c3d6d4483993bd | refs/heads/master | 2021-01-02T10:54:45.516990 | 2020-02-10T18:57:53 | 2020-02-10T18:57:53 | 239,588,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | player_1 = input(" what do you want to chose rock, paper or scissors?")
player_2 = input(" what do you want to choose rock, paper or scissors?",)
def compare(p1, p2):
if p1 == p2:
return("it's the same")
elif p1 == 'rock':
if p2 == 'scissors':
return("rock beats scissors... | [
"noreply@github.com"
] | ramasawmy.noreply@github.com |
c029f225d3ee8e3d452ea26c60b5a987474fb180 | 4148260054c2cf4605dacb8bdef3605c82eca470 | /temboo/Library/GoodGuide/Query.py | 1c3f0e806f69b445334a0d40c9568da20da997c5 | [] | no_license | wimsy/actuarize-web | 0f23d5f00afe3d36d430621cdb497d2e64998416 | 5f43af3019da6fb08cafeec9ff0a89df5196b864 | refs/heads/master | 2021-03-12T19:38:21.887681 | 2012-12-19T01:13:50 | 2012-12-19T01:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,827 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# Query
# Queries the GoodGuide API by keyword and retrieves information on GoodGuide products.
#
# Python version 2.6
#
###############################################################################
from temboo... | [
"mike.wimsatt@gmail.com"
] | mike.wimsatt@gmail.com |
a53ea2884c22164635955fe0229aabd99b4908c8 | 8d0db13e724430e11ad3a9e2b547b3aa54269bdf | /CryptoCurrencyResearch/modelingResearch/bitcoin_prediction.py | b8d2cbfb1f586ac9335695285d3798edc714d147 | [] | no_license | Yu-Hsuan-Liu/MachineLearningResearch | 11f52078499ac3034921d70fc5844522a38e36ff | 663db0dc221a09111433558d612f7c10c183a0a4 | refs/heads/master | 2023-03-16T01:33:20.984249 | 2018-09-03T05:28:05 | 2018-09-03T05:28:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,431 | py |
# coding: utf-8
# In[6]:
import pandas
data=pandas.read_csv("bitcoin.csv")
# In[7]:
data.head()
# In[8]:
data.shape
# In[9]:
data=data[data.Date>'2015-01-01']
# In[10]:
data.shape
# In[19]:
data.head()
# In[20]:
data2=data.copy()
# In[59]:
bitcoin=data[['Date','Close**','Volume']]
bitcoin.head()... | [
"davidplopez@live.com"
] | davidplopez@live.com |
a5b800ebebe5c5c8255a6268759eeba78c4f53da | f9af3b40eb384edf0eb4f58069f251dc33760c53 | /project/urls.py | 04e74821925274da698c2e3fef6d764c11d54228 | [] | no_license | null223/Django-wishlist | 53dd1d2608a275ac09940710bcf6c1b56a2d3352 | bb3c7ca58abcc8caf246807d9044bbe734c1f573 | refs/heads/master | 2020-07-09T15:46:21.459089 | 2019-08-23T14:26:44 | 2019-08-23T14:26:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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-based... | [
"sumidamao@gmail.com"
] | sumidamao@gmail.com |
6adc99ab1d980c0cbc34b11f91fc32a688f1ad47 | fbfb4c50e4947c9e92073225b597a0379378a57c | /main.py | b8d48bd20721a9e20b7043d789803d7b5527dc81 | [] | no_license | kurreman/Hiking-Computer | c9ec8d969c9fff1314420698496643a74caba57c | 98d54f2e454062461c592a0c404796ddda2529ab | refs/heads/master | 2023-06-28T07:07:44.857358 | 2021-07-29T16:42:55 | 2021-07-29T16:42:55 | 390,788,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | from SIGFOX import setup_sigfox
from data_gathering import gather_data
#SIGFOX SETUP
s = setup_sigfox()
#Data gathering
gather_data(s) | [
"kurreman@Korays-MacBook-Air.local"
] | kurreman@Korays-MacBook-Air.local |
5736bcc4519d25c09e726db696241081fe0f6bbe | f048b5a783d793c5dd1889a2eb00d72cf9ae4761 | /Console/Study/Review.py | b28d624f00ee276aa6e2b7e7305a6a882494c8bc | [] | no_license | ashkan-jafarzadeh/504-essential-words | e1bfcabf82c4c1c66d551ca7df947eb8d24fada0 | d3db99f5095a5df7aeb59c73e295594062850845 | refs/heads/main | 2023-08-24T12:50:55.267367 | 2021-09-30T19:14:02 | 2021-09-30T19:14:02 | 412,193,804 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | from Helpers.Table import Table
from Helpers.UserInput import UserInput
from Models.Word import Word
class Review:
def __init__(self):
self.word = Word()
self.user_input = UserInput()
pass
# show a word and make a choice
def show_lesson(self, lesson):
words = self.word.whe... | [
"ashkan.jafarzade@yahoo.com"
] | ashkan.jafarzade@yahoo.com |
8e4d6ca39464089751c5d80b4499972aafef6682 | a821971a971a4a86f5f35d02855789c31f88b683 | /pet/urls.py | 40564d9379fbaca8b53929f94127d079674f6c12 | [
"MIT"
] | permissive | tailongnguyen/petsite | 803303d30dce211a999ea74638ff8ab07b4ba83b | 6192e6fe598397a94880b4e56b197f5b2f518abb | refs/heads/master | 2021-09-12T21:07:25.476789 | 2018-04-20T19:37:38 | 2018-04-20T19:37:38 | 108,254,663 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,378 | py | from django.conf.urls import url, include
from django.views.generic import TemplateView
from . import views
app_name = 'pet'
urlpatterns = [
url(r'^$', TemplateView.as_view(template_name='index.html'), name='index'),
url(r'^pets/$', views.pet_list, name='pet list'),
url(r'^pets/findpet/$',views.find_pet,n... | [
"tailongyoshi@gmail.com"
] | tailongyoshi@gmail.com |
1cfd5b7c8b18233cf88100c457f2aaaf81194846 | 4882d6605aac21c4daa4abe5f82896897d04b5c3 | /python3/ClimbingStairs/70.py | a8c313140de65e2f75c98a397521a1a102f5a6bf | [] | no_license | jaejin1/Leetcode | 28b88f59f03c75aa8d332482a6c165476e4bfa81 | 428635d30b5a8139451a5b0bc219f8adaaae8126 | refs/heads/master | 2021-08-28T00:24:02.455640 | 2021-08-21T02:05:22 | 2021-08-21T02:05:22 | 201,756,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | class Solution(object):
def climbStairs(self, n):
if n == 1:
return 1
tmp, result = 1, 2
for i in range(2, n):
tmp2 = result
result = tmp+result
tmp = tmp2
return result
| [
"opiximeo@gmail.com"
] | opiximeo@gmail.com |
87906875f8e9d436e8ee58f7b93cc6778d2a103b | e13e9e73055016a8edb78abfc8cd43fb8dfad56b | /select_speakers.py | 0a6f1d5141deceaeb55b4a5e8900aec81377a677 | [
"MIT"
] | permissive | silvadirceu/segan_pytorch | 3fe582549d27237c3f05f18b6d34311f67254737 | 2215e711f7223b144e0c4d4fb4ed1d4842b18c5f | refs/heads/master | 2022-06-18T03:56:48.296034 | 2020-05-05T19:24:48 | 2020-05-05T19:24:48 | 256,764,361 | 0 | 0 | MIT | 2020-04-18T13:46:11 | 2020-04-18T13:46:11 | null | UTF-8 | Python | false | false | 6,849 | py | import os
from random import shuffle
import numpy as np
import operator
import glob
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import re
import json
def txt_clean_file(txtfile):
with open(txtf, 'r') as txt_f:
txt = txt_f.read().rstrip().lower()
txt = re.sub(r'[^\w\s]'... | [
"santi.pdp@gmail.com"
] | santi.pdp@gmail.com |
c8c15d070b9aa147969f937c49efbdbcbcd2d521 | c95c4f8c1a487d34aaf94b236802f413b4458967 | /countinversions.py | b42f58a930514aa4f2b8fad08d668c0271083943 | [] | no_license | imtoobose/Competitive-and-Algorithms | 7bead7ff02d11bbed7f6b40271cf0e115a0056bd | 9e651350b4385c7a9c3e9f5ccadce3b21e562248 | refs/heads/master | 2020-05-21T20:18:08.486171 | 2017-04-27T14:31:08 | 2017-04-27T14:31:08 | 64,566,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | from sys import stdin, stdout
inversions=0
def mergesort(arr):
if len(arr)==0 or len(arr)==1:
return arr
a= mergesort(arr[0: len(arr)//2])
b= mergesort(arr[len(arr)//2: len(arr)])
return merge(a,b)
def merge(a, b):
c= []
global inversions
while len (a)>0 and len(b)>0:
if(a[0]<b[0]):
c.appen... | [
"noreply@github.com"
] | imtoobose.noreply@github.com |
c5dd5102d2f460778d84ea5fcbb6d0f73955ca60 | c28cd6c44212f6268b152232e13e724fea159b38 | /test/test_analytical_forms/test_1_24.py | a505ee42ee03d370acf1297dcfbae74cdd00ba8b | [] | no_license | Doc-fee/work | 64e0efcce5e32a399a85522a6bdc325b34a39f06 | d714db3f9a4d24ff85546be10bc0c7a1182c0656 | refs/heads/master | 2023-06-30T16:56:51.016674 | 2021-08-06T11:35:35 | 2021-08-06T11:35:35 | 270,714,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | # -*- coding: utf-8 -*-
def test_detail_total(app):
app.open_home_page()
app.click_starting_overlay()
app.forms.select_analytical_forms()
app.forms.select_1_24()
app.filter.open_filter()
app.filter.filter_for_the_current_year()
app.filter.click_filter_ok()
app.details.detail_total()
def test_... | [
"busbunny.k38@gmail.com"
] | busbunny.k38@gmail.com |
ff4b853a7315451a616f6a85843dfe16414ad81e | add7e951ce7edcef955c3608b1dc81338d8b040d | /project03-kmeans/code/validate.py | 9b833a5497aa30ac6ce2997509c0f1331fd9401b | [] | no_license | ivonu/eth-data-minig | 6cd825c1179d5bf60877d3e100dbd173109697ef | 369b68eb6697a0d1409d4c1eefabbd08ba0da1ec | refs/heads/master | 2021-01-02T09:13:45.079490 | 2014-08-14T11:40:48 | 2014-08-14T11:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | #!/usr/bin/env python2.7
import sys
import numpy as np
import mapper as m
import reducer_old as r
data_size = 100000
data_train_size = 60000
data_validate_size = data_size - data_train_size
buckets = 10
bucket_size = data_train_size/buckets
def train (data_train):
# mappers
S = []
ts = []
for i in... | [
"ivo.nussbaumer@gmail.com"
] | ivo.nussbaumer@gmail.com |
6e49d0aa9c3696735dc04a1baf1d0c91c02ea0e0 | 8389c59d6c46a7520b5ad0ecb487547bde688836 | /Bus_Booking_App_django/BusBooking/migrations/0001_initial.py | 10f8486c2b4d4e55aac3a95b13a5dfdb8f3854d9 | [] | no_license | giri-maker/osus | d6894d56624d51354f78e4e61e407364e5c634fc | 93e8798d2c6253e2ca19576ace33d8b4bdd88559 | refs/heads/main | 2023-02-15T00:34:50.739398 | 2021-01-08T06:35:17 | 2021-01-08T06:35:17 | 327,808,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | # Generated by Django 2.2.5 on 2020-06-21 15:48
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AdduserModel',
fields=[
('i... | [
"noreply@github.com"
] | giri-maker.noreply@github.com |
76eb02818b86cd869cac8d8fc65046d37d016295 | c9fb11afd0e5a85e0cded538cae80ec9559378db | /neurst/utils/flags_core.py | 740561925524377c1cae5cc01062270830eb0fb1 | [
"Apache-2.0"
] | permissive | lileicc/CIAT | cdf82f81ea57e1d85d3e6361976ca2e57c9891c1 | 47b2a7f8858c52125ec92a38db871b5e8cad79bc | refs/heads/master | 2023-08-31T16:51:11.846533 | 2021-10-15T09:21:31 | 2021-10-15T09:21:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,800 | py | # Copyright 2020 ByteDance Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | [
"zhaochengqi.d@bytedance.com"
] | zhaochengqi.d@bytedance.com |
35fd2a5379986c7ed7c236f710cdca4971cbdaea | efe620dc069cd1e99cdfe69f47c1d24d6d21d56c | /meuh/deb/control.py | 009808208080f3cbe3559eaa5dd1298442be8dbe | [
"MIT"
] | permissive | johnnoone/meuh-python | c8e124bf0aef37cc86ed161e1d74c20375e8424c | 44c4d8d51fd4f97304de314816d447f674565c83 | refs/heads/master | 2021-01-10T22:01:14.762206 | 2015-02-27T08:31:57 | 2015-02-27T08:31:57 | 29,306,799 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,135 | py | """
meuh.deb.control
~~~~~~~~~~~~~~~~
.. see:: https://www.debian.org/doc/debian-policy/ch-controlfields.html
"""
from __future__ import absolute_import, print_function, unicode_literals
__all__ = ['Control']
from .exceptions import ParseError, LoadError
from .util import iter_src
class Control(objec... | [
"xavier.barbosa@iscool-e.com"
] | xavier.barbosa@iscool-e.com |
8577b08b120ad0f40a4ea8b0546138c94b6187f9 | cf5b54b2c84437d9e72575589812b88921d4430c | /server/test/testcard2.py | 9cbbba2768ae6df36c9147103309bf48438e6fc4 | [] | no_license | hw233/gameserver3 | 90fc3b8b8e8f809b7c3197fc97145fb264166b93 | d86ef3b3313ef51df5ba01bc700877827b0a81cd | refs/heads/master | 2022-01-13T07:40:38.211070 | 2019-05-11T02:15:14 | 2019-05-11T02:15:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81,236 | py | #coding: utf-8
'''
Created on 2012-2-20
@author: Administrator
'''
from gevent import monkey;monkey.patch_all()
import importlib
import time,traceback
import threading
import sys,logging
from db.connect import *
from message.base import *
import socket
from proto.access_pb2 import *
from proto.c... | [
"87399497@qq.com"
] | 87399497@qq.com |
bc2ea51d99837223a8c3f909b356f13cc9868908 | adab085086c704c78d852138d761680507782899 | /examples/broadcastTransactions/python.py | d1772f8cf316c3ebd5e5028c83304f7c2c9256e6 | [] | no_license | necropaz/documentation | 9aa1c8c6bbde640e3fde28e56c651a3feb70fe5f | 597c500cfec7db82199707d4fd69c8b22afe8c17 | refs/heads/master | 2020-05-29T11:07:02.552098 | 2016-07-08T20:48:43 | 2016-07-08T20:48:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,045 | py | import urllib2
import json
command = {
'command': 'broadcastTransactions',
'trytes': ['BYSWEAUTWXHXZ9YBZISEK9LUHWGMHXCGEVNZHRLUWQFCUSDXZHOFHWHL9MQPVJXXZLIXPXPXF9KYEREFSKCPKYIIKPZVLHUTDFQKKVVBBN9ATTLPCNPJDWDEVIYYLGPZGCWXOBDXMLJC9VO9QXTTBLAXTTBFUAROYEGQIVB9MJWJKXJMCUPTWAUGFZBTZCSJVRBGMYXTVBDDS9MYUJCPZ9YDWWQNIPUA... | [
"dom@fileyy.com"
] | dom@fileyy.com |
379b23e00aa6ecf56e33808d00725ab46880b32d | e2c380399bd455df3d13cedb1ccb4675f74660dc | /1123-05.py | b2e2bb59f38419cce3bdfa84a05d1a63ac01f581 | [] | no_license | Devaisgreat/todayididbasics3 | bcd66cc0d1a26be40c08d5ad5d5a6b186a0b21dd | 38c6cb35e502343523f948d37b393f570c115f9c | refs/heads/main | 2023-01-19T15:48:08.831356 | 2020-11-23T10:27:57 | 2020-11-23T10:27:57 | 315,278,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # the answer
print("Welcome to the tip calculator!")
bill = float(input("What was the total bill? $"))
tip = int(input("How much tip would you like to give? 10, 12, or 15? "))
people = int(input("How many people to split the bill?"))
# bill_with_tip = tip / 100 * bill + bill
# print(bill_with_tip)
tip_as_percent = tip... | [
"noreply@github.com"
] | Devaisgreat.noreply@github.com |
a074d22e65167fc000ab231cdb03e7fe7d470a52 | a0671925a783565cf4af713287e39274e44c8d57 | /dvr_forMathew.py | 6f90b768ae362e761184f10df6143fc5607dffd6 | [] | no_license | gharib85/1d-dvr | a2bf93cb1c20726e5f797e752184ac39c3e6f560 | dd8986622132e4be4046e7a0e0bf44a0d832d308 | refs/heads/master | 2021-09-14T05:56:41.326487 | 2018-05-09T01:04:10 | 2018-05-09T01:04:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,513 | py | import numpy as np
import matplotlib.pyplot as plt
import scipy.optimize
def calculateT(dx,N,interval):
T=np.eye(N)
if interval=='infinite plane':
for ii,row in enumerate(T):
for jj,col in enumerate(row):
i=float(ii)
j=float(jj)
T[ii,jj]=hbar... | [
"lrm13@uw.edu"
] | lrm13@uw.edu |
25327d8a85c8a5c7f341178df33087c26acafafe | 517d461257edd1d6b239200b931c6c001b99f6da | /Circuit_Playground/CircuitPython/IR/fuzzy_logic_IR_signals.py | b427a64ac63efa09b482f9e879c4f4936cb0157b | [] | no_license | cmontalvo251/Microcontrollers | 7911e173badff93fc29e52fbdce287aab1314608 | 09ff976f2ee042b9182fb5a732978225561d151a | refs/heads/master | 2023-06-23T16:35:51.940859 | 2023-06-16T19:29:30 | 2023-06-16T19:29:30 | 229,314,291 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 85,477 | py | #This routine will plot multiple signals from a IR signal
#import numpy as np No numpy support on circuit python. Will have to do without
import matplotlib.pyplot as plt
import plotting as myplt
plt.close("all")
def mean(input_signal):
return sum(input_signal)/len(input_signal)
##Let's make the function to compu... | [
"cmontalvo251@gmail.com"
] | cmontalvo251@gmail.com |
9b5b61fcce440568ff1dab0b48a8141aefc7e2d2 | 4597d219ad8849b4e80cfbda6e75600449db2de9 | /Python/210705_001/while_02/while_02.py | 84664deaa6ca8e68d21f96712dddc96c91d9efb0 | [] | no_license | pass0585/Python | 660b88375bf2a50f19520ba3460542bcd4af7f29 | 917e5c1b1050a97a24069a1157489618aa45c6e1 | refs/heads/main | 2023-06-24T01:45:25.225249 | 2021-07-28T07:35:05 | 2021-07-28T07:35:05 | 382,979,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | sum, i = 0, 0
for i in range(1,20,1):
sum+=i
if sum>100:
break;
sum+=i
print("%d" % sum)
print("-----------------------")
sum, i = 0,0
j = int(input("์ซ์๋ฅผ ์
๋ ฅํ์ธ์."))
while True:
if i<j:
i=i+1
sum+=i;
elif i==j:
break
print("1์์ %d๊น์ง์ ํฉ์ %d์
๋๋ค." % (j, sum))
| [
"pass0585@gmail.com"
] | pass0585@gmail.com |
402497717a800b1f491aa1833bff6f43c5e97950 | 6bbfd76ee237f7cc93b4700b1196259eec6f982b | /Python/causaldata/__init__.py | f669eb2dba6955336f73af7b58456e2839f8ad76 | [] | no_license | shalevy1/causaldata | 560fe064dfbb73ec224360abc0ed567221953646 | a46ece5b2e2cb0d099ac72bf0c39755a6c2d0dc9 | refs/heads/main | 2023-09-02T13:19:54.564063 | 2021-11-20T00:02:19 | 2021-11-20T00:02:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | from . import (auto, black_politicians, gapminder, google_stock,
gov_transfers, gov_transfers_density, mortgages, Mroz,
organ_donations, restaurant_inspections, social_insure,
auto, ri, yule, thornton_hiv, titanic, training_example,
training_bias_reduction, nsw_mixtape, cps_mixtape,close_elections_lmb,
scorecard, avo... | [
"44816781+NickCH-K@users.noreply.github.com"
] | 44816781+NickCH-K@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.