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
80789ef559492ca6a64e0a8b1b121187f0272687
517795023b06c572c5fcbb2b80f0b280e5f49b08
/DriverCam/01_face_dataset.py
a05696f65fb82965686c2fb8f3ebba29a27f07c6
[]
no_license
Nagrawal1510/Driver-Cam
89972d6bdb4ed8cc26a7441f523145fe2cbdf833
f815d54a4ed0601050ddb6b7e90548ed02645769
refs/heads/main
2023-01-27T13:27:38.278032
2020-12-16T06:57:36
2020-12-16T06:57:36
321,889,525
0
0
null
null
null
null
UTF-8
Python
false
false
1,253
py
import cv2 import os cam = cv2.VideoCapture(0) #cam.set(3, 640) # set video width #cam.set(4, 480) # set video height face_detector = cv2.CascadeClassifier('haarcascades/haarcascade_frontalface_default.xml') # For each person, enter one numeric face id face_id = input('\n enter user id end press <return> ==> ') pr...
[ "noreply@github.com" ]
Nagrawal1510.noreply@github.com
39a113e0707f370a8c761a042f5ba7296120bc2d
5b532729586700e5c554c86474a1800d41e539f7
/data_acquisition/figure_A7/2016_11_18_modulated_imaging_darkfield_nanodiamond_7_extra_green_filter/modulated_imaging_reps_separate.py
73a9e6dd50f9ab85315199bb84494fa477253e1e
[ "CC-BY-4.0" ]
permissive
AndrewGYork/stimulated_emission_imaging
8b258c21525c7bdec33eaab7e1a083919c9e2dcc
d7d98da523e1e19f978e84dea9c38999caa7005a
refs/heads/master
2022-12-19T12:04:28.417615
2020-09-18T01:26:53
2020-09-18T01:26:53
76,388,853
2
3
NOASSERTION
2020-08-12T00:47:33
2016-12-13T18:55:04
Python
UTF-8
Python
false
false
10,882
py
import time import numpy as np import image_data_pipeline import ni import np_tif #import thorlabs from pco import pco_edge_camera_child_process import pickle def main(): # This incantation is forced on us so the IDP won't print everything twice: import logging import multiprocessing as mp ...
[ "noreply@github.com" ]
AndrewGYork.noreply@github.com
963d0c4ff77d9e8a978d13bdb14ec7dd4d5878c1
632fc698a1c1a8aa24ec488273e6c26301dfeb37
/main/urls.py
97234d339761b63e7bdd198048b5f4d61d521b66
[ "MIT" ]
permissive
sirodoht/martianpins
8ffcb9bbb41062438ae7e6114c1b68ead7411c6a
533c8ba38919f5121aa3de87d915d2e126b1ecd6
refs/heads/master
2022-01-25T16:48:07.422556
2022-01-18T00:08:38
2022-01-18T00:08:59
226,012,519
32
10
null
2020-05-08T17:05:43
2019-12-05T03:59:52
Python
UTF-8
Python
false
false
446
py
from django.contrib import admin from django.urls import path from . import views admin.site.site_header = "Martian Pins administration" app_name = "main" urlpatterns = [ path("", views.index, name="index"), path("terms", views.terms, name="terms"), path("pins/hash/", views.hash_pin, name="hash_pin"), ...
[ "theodorekeloglou@gmail.com" ]
theodorekeloglou@gmail.com
3dc5d661a041cf4ffae943409ab8044dbda71c09
7f0548b7191b7589712af19baebafddae1d0505f
/dojoassignments/python/django/time_display_assignment/time_display_assignment/urls.py
c30dd694aefa8ba50d01aec0c0da45bc72da21cc
[]
no_license
mtjhartley/codingdojo
dd8eab1bd61fb847e44766e89fe3db2340468102
65dc558d19adbe62f85ad61c32cb1c392b56567c
refs/heads/master
2022-12-14T23:06:11.927445
2017-08-16T21:08:35
2017-08-16T21:08:35
92,218,728
1
5
null
2022-12-07T23:59:48
2017-05-23T20:46:03
Python
UTF-8
Python
false
false
837
py
"""time_display_assignment URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name=...
[ "mtjhartley@gmail.com" ]
mtjhartley@gmail.com
9719dffb829de023bcccac9eb5d0356996f0e002
e7255a5262deb1d8ee82f8a3248d44276f867428
/Project/bin/lbx.py
4bf23dc601e6d42b9b2b57c9df3eee6293b2c68d
[]
no_license
anhquantr/Fill-a-Pix
f59b3d6922c23ce4ad67add3264f4c63bbffbbb4
ad2537b0c3ae7e7bb41ace4ec209c990a07f358e
refs/heads/main
2023-07-05T21:44:13.092277
2021-08-19T09:22:55
2021-08-19T09:22:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
21,200
py
#!/Users/trananhquan/Desktop/ARTIFICIAL INTELLIGENCE/Proj2/Project/bin/python #-*- coding:utf-8 -*- ## ## lbx.py ## ## Created on: Jan 9, 2017 ## Author: Alexey S. Ignatiev ## E-mail: aignatiev@ciencias.ulisboa.pt ## """ =============== List of classes =============== .. autosummary:: ...
[ "trananhquanttbpvn@gmail.com" ]
trananhquanttbpvn@gmail.com
27b6bcf7074e83cbd289142a3e9781b9bb8031bf
0a22dca130804854d892d7f5d33510c4f1aed160
/queue.py
b2acadae2f00d54c3eb5e00b5cb6a68d6dd6034b
[]
no_license
abossard/interview_code
7c9b80c94de649589f4d4910a9f5c5064fd79095
3fd4ba450a2423f7c345e57c6d765512ec3ba7c2
refs/heads/master
2021-01-21T22:58:30.914500
2014-03-19T22:51:06
2014-03-19T22:51:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
810
py
class Queue(object): a = list() b = list() def enqueue(self, data): tmp = self.b.pop() if self.b else None while tmp: self.a.append(tmp) tmp = self.b.pop() if self.b else None self.a.append(data) tmp = self.a.pop() if self.a else None ...
[ "abossard@gmail.com" ]
abossard@gmail.com
ef21c363df2cf73f2d3e12e9a5bf03fdd55c5ad3
eb2367cd85d8616751cc588d3531bf0fae420871
/hellowebapp/urls.py
924e902cb229eb1d06dde5f9e7dca1882b3f5f4f
[]
no_license
Shai1436/Collection-app
169c2c0d394c6b151b9a488ff7ba2b4d0ce171b3
1f20d558ffacd07700760bf18f85a5d7e008023e
refs/heads/master
2021-01-21T10:30:27.833898
2017-05-21T02:58:18
2017-05-21T02:58:18
91,694,618
0
0
null
null
null
null
UTF-8
Python
false
false
2,323
py
from django.contrib.auth.views import ( password_reset, password_reset_done, password_reset_confirm, password_reset_complete ) from django.conf.urls import url, include from django.contrib import admin from django.views.generic import ( TemplateView, RedirectView ) from collection import views from colle...
[ "shahrukh.haider35@gmail.com" ]
shahrukh.haider35@gmail.com
1d15e2a81dc7faddc9fd019cf75d10f62e17e236
28c3137a00ca91c14b08211a6621404e52d1a9e3
/scripts/State Space Simulator/apparent_wind
95a991e5442c823c42baac6b89ba09ba1b72481e
[]
no_license
brunopinto900/sailboat_auto_navigation
0241df00f12132b3265d6baaf68b4643de5631f4
02bece9fc18a5bc87751b928724d44f350679034
refs/heads/main
2023-03-25T17:11:26.699931
2021-03-20T22:11:37
2021-03-20T22:11:37
349,806,874
1
1
null
null
null
null
UTF-8
Python
false
false
3,818
#!/usr/bin/python # Simulate the heading state import rospy from std_msgs.msg import Float32 from sailboat.msg import Vector3, Wind, Vector2 import math, time, mpmath import numpy as np from sailboat.cfg import windConfig from dynamic_reconfigure.server import Server #Nao esquecer dynamic config class apparent_wind_...
[ "bruno@DESKTOP-TSTEU1E.localdomain" ]
bruno@DESKTOP-TSTEU1E.localdomain
f7bf373ffaca6f71f7cd4fc4ed4c868ca26266be
05ee3f8d8f66657ee8e62f85edecb36b2bb98786
/udemy-design-patterns-in-python/geomatric_shapes.py
e580d93df99538ce82199ee022b1251375172d03
[]
no_license
zahedul/python-practice
b490fa6f16db048a8ab107671faf33508008eb15
3b101e44b69fd065044e3e4e88062bdb7b53fa93
refs/heads/master
2023-04-14T19:58:13.758234
2021-05-12T09:31:32
2021-05-12T09:31:32
260,423,836
0
0
null
null
null
null
UTF-8
Python
false
false
1,079
py
class GraphicObject: def __init__(self, color=None): self.color = color self.children = [] self._name = 'Group' @property def name(self): return self._name def _print(self, items, depth): items.append('*' * depth) if self.color: items.append(...
[ "z.alam015@gmail.com" ]
z.alam015@gmail.com
94cece20c7eab62186905a05f4b938605bcee510
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-4/c03373921d734b99f5b462090aa7a70158844266-<__init__>-bug.py
ef3c2834ce746add31f043dba3be28fe76c02351
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
902
py
def __init__(self): self.module_arg_spec = dict(default_rules=dict(type='list', elements='dict', options=rule_spec), location=dict(type='str'), name=dict(type='str', required=True), purge_default_rules=dict(type='bool', default=False), purge_rules=dict(type='bool', default=False), resource_group=dict(required=True,...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
d2cb00feb1adee6e4816e40c8e4f588943c24ee9
121d2ab76d137d51c8c085eb8b15420d75708269
/text11/text/写日记.py
a4ce9478847a4ab77b16770650ab669b108d9e51
[]
no_license
yogaxmj/xmj
94381fe36f65f5f0ed2291dac793665e15296f4d
75aa6fd5895ed9cfa94ae60effbe04f4d178408b
refs/heads/master
2022-09-20T01:12:21.530090
2020-06-02T14:01:12
2020-06-02T14:01:12
268,051,433
0
0
null
null
null
null
UTF-8
Python
false
false
223
py
import time now = time.strftime("%y-%m-%d %H:%M:%M") text = input("输入") with open("D:\日记.text","a",encoding="utf8") as f: f.write(now+"\n") f.write(text+"\n") f.write("-------------\n" ) #文件写入
[ "2941671445@qq.com" ]
2941671445@qq.com
616d4da0e2ce0322fb87506d85ca26e033c11674
fd36faed2a313bd506f4c0ce8fec9331b03cfcc6
/1. Array/13. merge two sorted arrays without extra space.py
cd49382be9e2c465a01a781892812bda13888f46
[]
no_license
Vivekyadv/450-DSA
6f760604ec462d38058a5ea0f2faa5f17680a0aa
f03cd763f11ed801d07de93cfe4b6b2e03235e1b
refs/heads/master
2023-07-13T12:59:04.587801
2021-08-13T17:15:23
2021-08-13T17:15:23
393,289,315
0
0
null
null
null
null
UTF-8
Python
false
false
1,512
py
# Given two sorted arrays, merge them and return sorted array without using extra space def solve(a, b): for i in range(len(a)): if a[i] > b[0]: a[i], b[0] = b[0], a[i] b.sort() return a, b a = [1,4,7,8,10] b = [2,3,9] print(solve(a,b)) # extend 1st array with 2nd array and...
[ "vivek.yadav2611@gmail.com" ]
vivek.yadav2611@gmail.com
d79e7c1a7553c893d22772c74e536301c7ba6ca3
bdf11484e889086d7cef919658a6ab04e01d204b
/codevent/2019/03/Coordinates.py
e915ac7b52c163488db8ef2e8d97b8f269407d4b
[ "Unlicense" ]
permissive
paralleldynamic/challenges
e0fd5180a0b1050336eabe9e9706ba9692dc8c97
9fa92c39da909ba95cf3815d8083e963d490e774
refs/heads/master
2023-02-22T20:47:52.394764
2023-02-08T15:58:45
2023-02-08T15:58:45
226,190,985
0
0
null
null
null
null
UTF-8
Python
false
false
1,650
py
from functools import reduce directions = { 'U': (0, 1), 'D': (0, -1), 'R': (1, 0), 'L': (-1, 0) } def walk(path:list, origin:tuple = (0, 0)): coordinates = [origin] for turn in path: d = turn[0] steps = int(turn[1:]) i = 0 while i < steps: coordinat...
[ "spearspa@gmail.com" ]
spearspa@gmail.com
c57922c3990c40a764ae5fd90a742f2d922e539d
68b526f6958e8bf0b99f6d08c02bf1bbdf651bd2
/pages/migrations/0001_initial.py
8263cacbc70bcf857b740e6729335d33ed850fbf
[]
no_license
vvojvoda/conference-web
5f053dca4c1e0e39efa01cd8413e6d707abf1d05
362e558b6c980823cc57c53a5d16253401318d4d
refs/heads/master
2020-04-01T18:18:31.914116
2016-05-20T08:51:43
2016-05-20T08:51:43
31,506,926
0
0
null
2015-03-01T18:59:14
2015-03-01T18:59:14
null
UTF-8
Python
false
false
820
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('flatpages', '0001_initial'), ] operations = [ migrations.CreateModel( name='Page', fields=[ ...
[ "ivan.habunek@gmail.com" ]
ivan.habunek@gmail.com
c12756b4fcc336d69f3d57e4f574233a4d87dc96
1924f93ead8754a5fc881d1f0d5743b9f1c0165a
/first_project/first_app/migrations/0001_initial.py
db8233e569381c32474594f432a14e72cf85a879
[]
no_license
mbclark1995/first_django_app
682751a43b9f45e98ae54d0ed051e4022b745dc6
78689d4abd613ab05d5d7bd41ece6c5080ea7752
refs/heads/master
2022-06-14T06:16:48.963138
2020-05-07T21:27:58
2020-05-07T21:27:58
261,954,235
0
0
null
null
null
null
UTF-8
Python
false
false
1,385
py
# Generated by Django 3.0.5 on 2020-04-30 04:20 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Topic', fields=[ ...
[ "mbclark1995@gmail.com" ]
mbclark1995@gmail.com
9a911cbd9bf119080928a19dadbcecfa2c0514ba
cd03d96e01e2aaca9056f73032a98d4c4988f1a8
/7_input_and_while()/exercises.py
bb3dcdc5bf2f04cb5d403fe3a11ed51dde2f1ed3
[]
no_license
Balowen/python_crashcourse
a5d45276e6bd166e03cb2515881d5745cd1cb569
66a70304d18aa44381ace8d066b21ec5917eba76
refs/heads/master
2022-03-14T15:40:18.131629
2019-11-15T19:48:52
2019-11-15T19:48:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,832
py
#7_1 rental car # car = input("What car would you like to rent? ") # # print("Let me see if I have a " + car + ".") #7-2 restaurant seating # group_size = input("How many people are in your dinner group? ") # group_size = int(group_size) # # if group_size > 8: # print("You have to wait for a table.") # else: # ...
[ "thebalowen@gmail.com" ]
thebalowen@gmail.com
320f35c9b5407f00a3b9e0a5413fbeccd759903f
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/117/usersdata/209/27086/submittedfiles/al2.py
71e64f89f8642d574d44f6bf81c1c6e074c3b926
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
126
py
# -*- coding: utf-8 -*- I1=float(input('digite um valor I: ')) I2=int(I1) I3=I1-I2 print('I2 é %d '%I2) print('I3 é %f '%I3)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
af90a3e3339dd9d89082d8337f64cb4110d37dbc
67c86d1514ae573d424716283a582c7d9238ff40
/Chapter4/4-22.py
12198731bf2b2a80540603a74c80a2eb3204d8c3
[]
no_license
TheXJT/python_study
e55f53a020c0219e0c39a9b00fd93c4d1af17df9
be5308f3bc2dadef283671de8aec5681c2dde8d6
refs/heads/master
2021-05-04T10:27:51.760751
2019-01-14T09:36:34
2019-01-14T09:36:34
45,985,936
0
0
null
null
null
null
UTF-8
Python
false
false
555
py
import re re_numbers_str=re.compile(r'\d+') re_words_str=re.compile(r'\w+') re_numbers_bytes=re.compile(rb'\d+') re_words_bytes=re.compile(rb'\w+') text_str = ("Ramanujan saw \u0be7\u0bed\u0be8\u0bef" " as 1729 = 13 + 123 = 93 + 103.") text_bytes=text_str.encode('utf-8') print('Text',repr(text_str),sep='\n ') prin...
[ "1251284167@qq.com" ]
1251284167@qq.com
500a278b3b7ad4eec72f966d268dd97f323318c0
17e3234ab01fd93233cc453f1495d50424c3bd8f
/latte/monkey_patches/frappe/utils/nestedset.py
9591e8132e74d38895ced01c31b24efbff611f16
[ "MIT" ]
permissive
sunnyakaxd/latte
8943dbf70ce934e04e51b147a54e6dd02dfe43db
de74065122a1f858bd75f8e1a36fca3b23981f4c
refs/heads/master
2023-06-11T10:25:31.217047
2021-07-06T06:40:19
2021-07-06T06:40:19
383,363,137
0
0
NOASSERTION
2021-07-06T06:26:49
2021-07-06T06:26:49
null
UTF-8
Python
false
false
4,149
py
import frappe from frappe import local from frappe.utils import nestedset import random def patched_update_add_node(doc, parent, parent_field): print('Parent=', parent, not not parent) if not parent: parent_lft = frappe.db.sql(f''' select rgt from `tab{doc.doctype}` where name != %(name)s o...
[ "himanshu.mishra@elastic.run" ]
himanshu.mishra@elastic.run
a77276dcfe2ce85fc3ab7ed8035cd1fa03b503a8
1d91044544ea0a4772b379cfbb3c23f66adaeeff
/6_7.py
c44606d3be7e36a32cc3b54feb06386c8ce254d6
[]
no_license
rursvd/pynumerical
f87d6e72b9178caf926a15503d9a2310c4642677
863e9722d273fd1f2dce5d917e3d4d9ad71aba4d
refs/heads/master
2021-01-22T20:49:09.154726
2017-08-19T07:50:34
2017-08-19T07:50:34
100,776,372
0
0
null
null
null
null
UTF-8
Python
false
false
133
py
from numpy import array A = array([[1,2,3],[4,5,6],[7,8,9]]) mult = A * 10.0 divi = A/2.0 print('A*10 = ',mult) print('A/2 = ',divi)
[ "noreply@github.com" ]
rursvd.noreply@github.com
f45d92ca761ba0fa9220db55616cf8ccb0ab5b82
33acbd324a87d704691831ab3c57b972f52de552
/web_flask/5-number_template.py
3a5a85b24d643ee91090b9e7c618b5bd5dba308f
[]
no_license
bean710/AirBnB_clone_v2
83cb57be4a135a08ef0c9a1f8f782323157c1420
97369b0b8a52f0622bf065e1ae48f2f4b2e33183
refs/heads/master
2021-05-17T01:11:26.670973
2020-04-23T00:14:53
2020-04-23T00:14:53
250,550,752
0
1
null
null
null
null
UTF-8
Python
false
false
1,158
py
#!/usr/bin/python3 """This module starts a simple flask server""" from flask import Flask from flask import render_template app = Flask(__name__) @app.route("/", strict_slashes=False) def hello_world(): """Sends simple text""" return ("Hello HBNB!") @app.route("/hbnb", strict_slashes=False) def hello_hbnb...
[ "keener4christ@gmail.com" ]
keener4christ@gmail.com
fffd473437f434f2c87334c2be9ee615692c4749
cec8eb058a730185b1a3845aaf1fa743a3b41074
/sql/user_detail.py
991f6435f57b3516a96bb9e9d5f78c2244bcab9d
[]
no_license
chinatian/python-orm
c9842e826829be2e3bcea7b2e25fbdb51d39b654
705d205b7ee9d41d37dc5ec44f7c5434869f7002
refs/heads/master
2020-12-24T14:36:06.505669
2019-03-29T03:15:21
2019-03-29T03:15:21
41,459,016
1
0
null
null
null
null
UTF-8
Python
false
false
912
py
#-*- coding: utf-8 -*- import MySQLdb for d in range(16): db=MySQLdb.connect( host="localhost", user="root", passwd="sa", db="platform_test_%d" % d, use_unicode=True, charset="utf8") for t in range(16): c = db.cursor() c.execute(""" C...
[ "tian_2200@163.com" ]
tian_2200@163.com
3ecb8352186ee5ef15d5b9cc7ca20990ac371643
07060cca582c9c4af00846d102e75daff5771ad9
/quiz_brain.py
e50f38091617e023e757cbd0ce9f995af7598508
[]
no_license
khadada/Quiz_game
0d0700f0a7272aa270ecc75ad6a935d36f268546
53e0e8801c2da367fc67cdbe7718f9aaa802d62f
refs/heads/master
2023-09-05T05:58:25.146725
2021-11-09T14:30:50
2021-11-09T14:30:50
426,261,580
0
0
null
null
null
null
UTF-8
Python
false
false
1,445
py
class QuizBrain: def __init__(self,question_list): self.question_list = question_list self.question_number = 0 self.score = 0 self.name = input("What's your name: ").title() def next_question(self): current_question = self.question_list[self.question_number] self....
[ "lkhadada@gmail.com" ]
lkhadada@gmail.com
268d409fe9f3dd81a0b2a795d6b0bf4f5dd4f08c
b43e0ce4be9091e0f442de1a8e8db785a562195a
/intro_to_data_science/practice_1/playing_with_pandas.py
291d64b20dbb5d8bbaf60fb60cff907757400459
[]
no_license
wmorris75/Python_Data_Science
e7d08d150b536a01ad5c8f957c6c23f10be00b6d
99e9a1eb418af35df21e8e00b8653e8223ce4a61
refs/heads/master
2021-01-23T06:01:08.988390
2017-06-02T15:06:24
2017-06-02T15:06:24
93,005,298
0
0
null
null
null
null
UTF-8
Python
false
false
1,921
py
import pandas as pd ''' The following code is to help you play with the concept of Series in Pandas. You can think of Series as an one-dimensional object that is similar to an array, list, or column in a database. By default, it will assign an index label to each item in the Series ranging from 0 to N, where N is the...
[ "wmorris@charterschoolsusa.com" ]
wmorris@charterschoolsusa.com
2c55c872587964789335b2f7feba506100a1ff33
11d3985fdb0a3a2bee032de68616174c9c2d0884
/PYQT/pyqt_3_message_box.py
17e4647daed37919b62996f9a2ea32f246238c53
[ "MIT" ]
permissive
dogancantorun8/python-application
780850aa79a855b87aa064a817caeb2608b43de5
3ef972e52bb6950108cde36974ceaf5c3cde3667
refs/heads/main
2023-04-15T11:20:56.187416
2021-04-27T11:50:04
2021-04-27T11:50:04
306,041,539
0
0
null
null
null
null
UTF-8
Python
false
false
2,893
py
# -*- coding: utf-8 -*- """ Created on Sun Mar 14 18:26:00 2021 @author: Doğancan """ #Butona basıldığında message box çıksın istersem: import sys from PyQt5.QtWidgets import * from PyQt5.QtCore import * class MainWindow(QWidget): def __init__(self): super().__init__() self.pushButtonOk = QPush...
[ "48547417+dogancantorun8@users.noreply.github.com" ]
48547417+dogancantorun8@users.noreply.github.com
41d2eb65eb826173f2fae38d0186f32ccc4580ed
34156142ba1e4cf4ece3a1d71f66b2784324eb97
/3_retrainfixedrlrlam/noRegu/log5.py
103f9fda1b58d4cd3cb7f15baab9e8552d21884e
[]
no_license
Richardych/HW_recommendationsys
c0a4732d499f817c143c3e4efab2da13d9c47f4c
0fc2bf6ea0573ef56a3ce0a96f24eb4f4c5fabb3
refs/heads/master
2021-09-07T14:57:53.427276
2018-02-24T12:21:51
2018-02-24T12:21:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
import logging logger = logging.getLogger('mylogger5') logger.setLevel(logging.DEBUG) fh = logging.FileHandler('monitor5.log') fh.setLevel(logging.INFO) ch = logging.StreamHandler() ch.setLevel(logging.INFO) formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') fh.setFormatter(format...
[ "yuchaohui@megvii.com" ]
yuchaohui@megvii.com
cef46687f6b1acb654ce8b4b43221b200bd04db3
c328fb0b0794bbc113d1f560ad8cc4e3d118e90a
/doc/source/conf.py
2e63e9a070655ba354b80587cb3faf7e95d79973
[ "Apache-2.0" ]
permissive
mtreinish/pysubunit
d4c3d3fb966e6aa9da0f2647010a8864f86cf08e
5588ae7308dd51abb748212373eec00652179504
refs/heads/master
2021-08-23T12:59:10.423987
2017-12-04T23:30:11
2017-12-04T23:30:11
112,677,332
0
0
null
null
null
null
UTF-8
Python
false
false
7,840
py
# -*- coding: utf-8 -*- # # pysubunit documentation build configuration file # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are comme...
[ "mtreinish@kortar.org" ]
mtreinish@kortar.org
45b40923152a8285e97189d52f1fbb9fb92ec503
fdf3b7185d3aae13106491329a00b34171fb4def
/post_bot.py
c45f5f1f55dc48875c7379488935d56a9492fa11
[ "MIT" ]
permissive
lacymorrow/rbot
7911df075419e995999d14fcd91af79a2cc3a0af
4b401f93b6de62008102fd96b75f8e18b57eef43
refs/heads/master
2021-05-08T02:22:15.898002
2019-10-20T02:24:04
2019-10-20T02:24:04
108,056,243
1
0
MIT
2019-10-20T02:24:05
2017-10-24T00:25:47
Python
UTF-8
Python
false
false
7,747
py
###### # Todo: # Language processing # Don't self repost on same sub # Post Image # Video/gif(v) import os import time import datetime import random import requests # Required in requirements.txt import gensim import nltk import praw nltk.download('punkt') # import configuration files import config import subs ...
[ "me@lacymorrow.com" ]
me@lacymorrow.com
ac8a5bedf7559d486b7c1d9412b4342e3d4234d6
a72e17b0f45297d403160ab1ae7569c1fbe2dd52
/inventarios/SaveInventario.py
7720823cc32601849a49e6a6e4e6a0e327971488
[]
no_license
mmejia/systra
649f2ffde5d62ecbec0e1e4d865be7f0fbbeb7f9
fcee7e7421422631a38c3a023a00939e6d7f88dc
refs/heads/master
2020-12-24T18:03:37.347805
2014-01-23T02:50:20
2014-01-23T02:50:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,470
py
from django.db import IntegrityError, transaction from json import dumps, loads, JSONEncoder from inventarios.models import * import logging from datetime import date log = logging.getLogger(__name__) class SaveInventario: def __init__(self,request): inventario_str=request.POST.get('data') self.inv= loads(inventar...
[ "mmejia_mmm@hotmail.com" ]
mmejia_mmm@hotmail.com
f2d39ed43e60f086c5bb5287b29282c5a8d53124
cf455d62eeb4a1e4364b87067d0c9c9040242339
/performance_model/utils.py
241f53ba44797148727e25021baeec9168bdcfb1
[]
no_license
WenqiJiang/SIGMOD-2022-submission-Fanns
fb3c33336197a9e732f901106166e9e3e1284fb7
36e947985c7f446b63821c3238f7785bca5241fb
refs/heads/main
2023-06-12T12:46:57.835530
2021-07-01T23:14:14
2021-07-01T23:14:14
381,019,262
3
0
null
null
null
null
UTF-8
Python
false
false
10,087
py
""" Helper functions & Unit test """ from constants import * def max_of_two(a, b): if a >= b: return a else: return b def max_of_three(a, b, c): if a >= b: if a >= c: return a else: return c else: if b >= c: return b ...
[ "wejiang@r630-03.ethz.ch" ]
wejiang@r630-03.ethz.ch
bdb48e86eb17c48178b7ed1e9f44a9a4d7f89034
40d84c19e1e5ef0d12656e5288ad5c9667d52f41
/accounts/tests/test_auth_api.py
c14d7ee3eb71f1c573a3120e8f63f311c5bd3488
[]
no_license
Michael-Spirit/StarNavi
be6b727dfe689308c9db7497c05810bc2ee7f7d3
0a1e2994d9a7e96837c9a0842977658d507cbb00
refs/heads/master
2023-01-08T12:08:58.028321
2019-10-15T14:10:06
2019-10-15T14:10:06
215,303,284
0
0
null
2023-01-04T22:47:05
2019-10-15T13:16:24
Vue
UTF-8
Python
false
false
1,236
py
from rest_framework.test import APITestCase from rest_framework.reverse import reverse from accounts.tests.factories import UserFactory, TEST_USER_PASSWORD from allauth.account.models import EmailAddress class TestAuth(APITestCase): def test_registration(self): data = { 'email': 'test@mail.c...
[ "MSpiridonov94@gmail.com" ]
MSpiridonov94@gmail.com
e75f7bb601e0c23858b263f18e3f92a930c7e303
0f80565b3d15fbb493dfda1f8522600b6bb69c74
/BasicPolling/BasicPolling/urls.py
60cd34f9519a8cb754a8235fd8f779f9b77ff134
[]
no_license
chimpansiets/BasicPolling
ccbdabd817bb07919f346bdc15972f49a779adaf
6ad6ad27dfd3fb09b26de8240afe15134bbb5a5d
refs/heads/main
2023-03-24T09:42:27.990896
2021-03-23T09:07:14
2021-03-23T09:07:14
350,048,103
0
0
null
null
null
null
UTF-8
Python
false
false
806
py
"""BasicPolling URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/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-...
[ "svoort1@live.nl" ]
svoort1@live.nl
f00b018ae4c08271e7b5558c629a0ab780474a45
a42be7826de86dd3f961b0486a30f8305ceb2b94
/src/common/Molecule.py
6a108463d0f20645886fa6a94ae9bca790ac96e4
[ "MIT" ]
permissive
catenate15/Pilgrim
9199bc50714c60abbc7f97e239a2cbee1e48b573
5dd261c0f3fb89732a8a57681d7f6cc3a41a8085
refs/heads/master
2022-08-04T04:54:22.513185
2020-05-25T20:16:14
2020-05-25T20:16:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
23,606
py
#!/usr/bin/python3.6 ''' --------------------------- Licensing and Distribution --------------------------- Program name: Pilgrim Version : 2020.2 License : MIT/x11 Copyright (c) 2020, David Ferro Costas (david.ferro@usc.es) and Antonio Fernandez Ramos (qf.ramos@usc.es) Permission is hereby granted, free of...
[ "cathedralpkg@gmail.com" ]
cathedralpkg@gmail.com
77eb8e1fa8124381406bb991d72844b5849b75c9
5cfaa7709237e4fd0bdc2f00a5bde6b063324580
/tests/test_features.py
09359dca7a96226ce0d9d9edf939634cf73beaaa
[]
no_license
khamv/ml_investment
6f1f0fe0e0cc4a7fc0b84524b519b21a4582a85a
9251847dcd5e88427106eed3c9952902210d645c
refs/heads/main
2023-03-22T05:52:12.537206
2021-03-17T20:24:15
2021-03-17T20:24:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,636
py
import pytest import hashlib import pandas as pd import numpy as np from data import SF1Data from features import calc_series_stats, QuarterlyFeatures, BaseCompanyFeatures,\ QuarterlyDiffFeatures, FeatureMerger, \ DailyAggQuarterFeatures from utils import load_json config = loa...
[ "fartuk@pop-os.localdomain" ]
fartuk@pop-os.localdomain
1e5ba37e5632d9af328796803bb460d84fe8af12
cb0e7d6493b23e870aa625eb362384a10f5ee657
/solutions/python3/1330.py
a628f22bd8f3702332e9e5888502f2c30940ce64
[]
no_license
sweetpand/LeetCode-1
0acfa603af254a3350d457803449a91322f2d1a7
65f4ef26cb8b2db0b4bf8c42bfdc76421b479f94
refs/heads/master
2022-11-14T07:01:42.502172
2020-07-12T12:25:56
2020-07-12T12:25:56
279,088,171
1
0
null
2020-07-12T15:03:20
2020-07-12T15:03:19
null
UTF-8
Python
false
false
567
py
class Solution: def maxValueAfterReverse(self, nums: List[int]) -> int: mini = float('inf') maxi = float('-inf') for a, b in zip(nums, nums[1:]): mini = min(mini, max(a, b)) maxi = max(maxi, min(a, b)) diff = max(0, (maxi - mini) * 2) for a, b in zip...
[ "walkccray@gmail.com" ]
walkccray@gmail.com
44e407c8917cf9421fad88dac6961fbb22179b78
fef6ed0cee947f753cf8a34b244726bfdeedb079
/exercises/05_basic_scripts/task_5_2a.py
1fbea70ee085898ee942deef5240481f9c528704
[]
no_license
mirsadm82/pyneng-examples-exercises-en
c11bc3d4181c7e79807bfab46587ecb5a182d54a
9a5b34bc460005d8b04dfd636790bf53a1916efc
refs/heads/main
2023-05-10T22:26:43.348567
2021-06-01T12:18:54
2021-06-01T12:20:20
360,168,419
0
0
null
null
null
null
UTF-8
Python
false
false
2,386
py
# -*- coding: utf-8 -*- """ Task 5.2a Copy and modify the script from task 5.2 so that, if the user entered a host address rather than a network address, convert the host address to a network address and print the network address and mask, as in task 5.2. An example of a network address (all host bits are equal to ze...
[ "mirsad.muratagic@gmail.com" ]
mirsad.muratagic@gmail.com
0dd4cf4810bd0213389b3262df85aa7df66ccec0
df57b91c423626791bc9d482d5c2e6a17339e348
/Detect emotions of your favorite toons/Final_model.py
40e7097560ea8888da43066e94235e5ebcaf03d7
[]
no_license
VigneshwaraChinnadurai/Competitions
58640819c24666402b16830ed9837921190bafb8
7a2c29463d2969b62bd134756d4b583626ae378e
refs/heads/master
2023-02-02T10:14:01.514646
2020-12-20T16:06:53
2020-12-20T16:06:53
259,121,022
2
0
null
null
null
null
UTF-8
Python
false
false
4,864
py
import keras from keras.layers import Conv2D, MaxPooling2D, BatchNormalization from keras.layers import Dropout, Flatten, Dense from keras.models import Sequential model = Sequential() model.add(Conv2D(16, (3, 3), input_shape = (128, 128, 3),kernel_initializer='normal', activation='relu')) model.add(Co...
[ "noreply@github.com" ]
VigneshwaraChinnadurai.noreply@github.com
89563112cf76730b6df18b18db7070c2e47fb257
842b3dd5461c6c1dbad1812262cbc583c234a564
/getSubdomains.py
5852707a2fc40df2e73af8afd4baa85cb903c3ec
[]
no_license
RealAsianNoodles/pihole-blocklists
b17e3c47c16265e3e4fbc5bc9d6f43cd64ba9b16
f6adeafc1db171d3c9000819543602de04375385
refs/heads/master
2023-08-19T21:55:00.034954
2021-10-29T21:17:32
2021-10-29T21:17:32
422,589,774
0
0
null
null
null
null
UTF-8
Python
false
false
1,282
py
## ## 0. Install python3+ and the requests library if required ## 1. Get an account at SecurityTrails.com (free ones are available for infrequent users) ## 2. Get your APIKEY from the the dash board and replace the text "Your Security Trails APIKey here" below ## 3. Replace the text "addYourDomain.com" below with t...
[ "noreply@github.com" ]
RealAsianNoodles.noreply@github.com
a0cdc7991d44eccf066101dc4f15fa22848ce276
f1b113d89f81bffc79caec8baf9214881813048f
/gui.py
831cd26b6406b68a846c90eebecf7bb0fc622efc
[]
no_license
FreeLike76/kpi_pa_5
a3784e9454d7702d29f44f230919c0e5c0102e61
064224504be1041c8cdce4803580f63e56300ce9
refs/heads/master
2023-01-27T19:13:46.762262
2020-12-07T07:35:18
2020-12-07T07:35:18
317,866,617
0
0
null
null
null
null
UTF-8
Python
false
false
2,625
py
from tkinter import * class Gui: def __init__(self): self.root = Tk() self.root.geometry("340x440") headerFont = ("Times New Roman", 16, "bold") simpleFont = ("Times New Roman", 16) playerLabel = Label(self.root, text="Player", width=8, height=1, font=headerFont) p...
[ "dmytro.geleshko01@gmail.com" ]
dmytro.geleshko01@gmail.com
c31ba1aebca5d0a8f3ab48d99843d4bac08458c9
94356d117bb3d8d5fc94a0cd4f8828e0c190ef81
/first_file.py
d06f7f1a1dd704c8cc9fbd4f9adf6ed85ff9fe50
[]
no_license
chenyipeng1/507
3ba8a3872dade61588af517a9b590d1e42100ae3
c475f75fb8278dbec71234c96654a4fddce171b3
refs/heads/master
2020-03-28T23:35:57.054821
2018-09-18T14:05:52
2018-09-18T14:05:52
149,299,170
0
0
null
null
null
null
UTF-8
Python
false
false
39
py
for i in range(0,5): print (i) a = 10
[ "chenyipeng@chendeMacBook-Pro.local" ]
chenyipeng@chendeMacBook-Pro.local
95c6c2bd783fa32482815e82abb9c3fd6935152a
be8b4d0956223c895f64bc91a03ea56e7427abb0
/1.py
f30d15d4ae14dd4a00ced6b7ab0a6375504a5be4
[]
no_license
Ashutos-h/python-L10
4b1fb3e5a00e38dd6f7d52b583648e2c57a46d79
cb05e48c658fb62a75c749a7cd7d08056409f0eb
refs/heads/master
2020-03-19T06:41:57.274817
2018-06-04T15:36:11
2018-06-04T15:36:11
136,046,876
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
#Answer 1 from threading import * from time import * def display(): print("Starting thread:") sleep(5) print("Ending Thread") t=Thread(target=display) t.start()
[ "ashhutoshsharma@gmail.com" ]
ashhutoshsharma@gmail.com
cb06742c848779fd6fef3a4df5f1c0a8c803c34c
35a2c7af44e172038a28dedf869b813027a2e029
/cumulusci/robotframework/tests/test_template_util.py
3eecfa91711f836c66c1e7d4075061b669d3e81f
[]
permissive
Julian88Tex/CumulusCI
b82ba31f82ac64911f446592ff79e26b80be1421
ea01e5d3523cc174d4a60af93584df7f4486c9f3
refs/heads/master
2023-08-04T03:57:51.847477
2023-02-05T05:18:17
2023-02-05T05:18:17
202,443,680
1
0
BSD-3-Clause
2023-02-05T05:18:18
2019-08-15T00:07:04
Python
UTF-8
Python
false
false
1,872
py
import unittest from cumulusci.core import template_utils class TemplateUtils(unittest.TestCase): def test_string_generator(self): x = 100 y = template_utils.StringGenerator(lambda: str(x)) assert str(y) == "100" x = 200 assert str(y) == "200" def test_faker_library(se...
[ "pprescod@salesforce.com" ]
pprescod@salesforce.com
6a47246536fcce134f154fd6db26a1bff7b8ffe6
a8a2dfd74454db8e81b3d6fabd801534ffb3e9bb
/foobar/models/foo/models.py
b4457a83212aa32c6cb1b04a2668dfe6832f098f
[]
no_license
s-zhao/foobar
b48c8f13951fefcfd1f8c3998e8909f113def61a
34bb4fa4e9d34f1c290f6664ac049326953b469d
refs/heads/master
2021-01-23T11:33:41.581696
2013-09-06T01:18:48
2013-09-06T01:18:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,072
py
""" corporate directory [shichang-scz.rhcloud.com foobar]\> python manage-dev.py syncdb CommandError: One or more models did not validate: foo.person: Accessor for field 'contact' clashes with related field 'PersonalContact.person'. Add a related_name argument to the definition for 'contact'. foo.person: Revers...
[ "52005ab75973ca0d4e000061@ex-std-node61.prod.rhcloud.com" ]
52005ab75973ca0d4e000061@ex-std-node61.prod.rhcloud.com
965db33f8a04be8071c225a2464639b4ef8e8833
bcb722f17cf273a37b1696be20e3dcfb82bdf443
/lib/SoftwareSettings.py
b3b2c1ca4126300379ffb84a9791fbb459bb3788
[ "Apache-2.0" ]
permissive
swdotcom/swdc-sublime-music-time
e76bc2b30fd6fb4c0148b8554a026b2f34f0359c
a32d5490b8990510ef2776f2a077f69d8185ead0
refs/heads/master
2020-08-07T04:39:46.206978
2020-03-30T09:16:04
2020-03-30T09:16:04
213,299,287
2
2
Apache-2.0
2020-03-15T04:53:56
2019-10-07T05:05:55
Python
UTF-8
Python
false
false
360
py
import sublime_plugin import sublime def getValue(key, defaultValue): SETTINGS = sublime.load_settings("Software.sublime_settings") # log("Got value!") return SETTINGS.get(key, defaultValue) def setValue(key, value): SETTINGS = sublime.load_settings("Software.sublime_settings") # log("Set value...
[ "aidlmldeveloper.com" ]
aidlmldeveloper.com
bea6f718a6ab4c50f6e4ceb6493de32591ebe8eb
f1e53710468220d0b33335c323131b9928758011
/backbones/RepVGG.py
a5ffb99ea18328965bf3acbfd9ff0e8812d6920c
[ "Apache-2.0" ]
permissive
Scorpio-i/RepVGG-openMMLab
821fba8bc253593956c725a01942cf0e764810f5
ca6f4110281681b575400f973d28a9e55347c431
refs/heads/main
2023-07-14T11:23:48.818987
2021-08-09T21:49:08
2021-08-09T21:49:08
394,575,335
3
0
Apache-2.0
2021-08-10T08:12:09
2021-08-10T08:12:08
null
UTF-8
Python
false
false
7,401
py
from mim.utils import exit_with_error try: import torch import torch.nn as nn import torch.nn.functional as F from mmcls.models.builder import BACKBONES except ImportError: exit_with_error('Please install mmcls, mmcv, torch to run this example.') class SEBlock(nn.Module): """Squeeze Excitatio...
[ "bofeng1997@gamil.com" ]
bofeng1997@gamil.com
5c56cf821dbcef0ee849ddf312e67880ed652bd0
50e3a7f59de70835b2e1ccccde79aeee8be13abc
/code/Wikipedia Dataset XML to html page converter/WikiExtractor.py
e1bd5e8b52fd23fdb886041ccfd5a3347b532758
[]
no_license
nilayc2012/Topic-Recommendation-System-using-LDA
ba27d98a37ec854a4d6a3a52f4c5a4044ac4a929
6c50d1cb250627b1f227ec9ee8df2ac3b43626b7
refs/heads/master
2020-07-04T08:40:41.161229
2017-05-05T07:53:38
2017-05-05T07:53:38
73,864,571
0
1
null
null
null
null
UTF-8
Python
false
false
109,374
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # ============================================================================= # Version: 2.66 (Oct 29, 2016) # Author: Giuseppe Attardi (attardi@di.unipi.it), University of Pisa # # Contributors: # Antonio Fuschetto (fuschett@aol.com) # Leonardo Souza (lsouza@amte...
[ "nilay.chakraborty@rutgers.edu" ]
nilay.chakraborty@rutgers.edu
16eb84857e1e7a3ba4508db0565d50a1a3503b54
f3e165d4334708b39808f7cc0b86313e134b050d
/versionmonitor/models.py
6dc71afa30decc5b9e264e95b554184d951c226f
[]
no_license
SammyVimes/versionmonitor
6c88940f12ea04bff75be69e06d86963dc5a8e49
9cae81fc67d139f23713fc959b4ed2a412879856
refs/heads/master
2016-08-12T13:26:30.126486
2015-11-12T18:55:21
2015-11-12T18:55:21
44,018,154
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
from versionmonitor.model.application import * from versionmonitor.model.project import * from versionmonitor.model.usr import *
[ "samvimes@yandex.ru" ]
samvimes@yandex.ru
6cad4e365e7a673e4e080a6c30b59a28a0df3daa
618beb0cacd5de155497904df97b27873619b5cc
/homeworks/hw3.py
2897fe1429ad1a1b2eee4c82fa37dcb8b1f2804d
[]
no_license
fatmaoz7/GlobalAIHubPythonCourse
354f4549d3d6fbe9a38e63235efbe89f737eb5cc
dbfa5e40d02bf10a0b5dfe4495ec39052b7eb6f7
refs/heads/main
2023-04-02T00:18:12.209147
2021-04-11T10:16:44
2021-04-11T10:16:44
355,261,655
0
0
null
null
null
null
UTF-8
Python
false
false
1,111
py
# -*- coding: utf-8 -*- """ Created on Fri Apr 9 21:41:36 2021 @author: fatma oz """ students={} students_with_passing_grade={} #creating empty dictionaries i=1; n=5 students_grade_list_sorted=[] while i<=n: name=input("Please enter student name") #getting inputs from user midterm=float(input(...
[ "noreply@github.com" ]
fatmaoz7.noreply@github.com
c383ebbd7b622a6e4b2d75f1785dbbb02fe57f50
a992faa128728011deb2aacbb38d2e2de042e6d0
/feedforward/modelsv3/test_rejected.py
e4af5f6b1faec186a4764aac49de8c9610acbaa6
[]
no_license
nigroup/binaural_audition
e157693f5a3b524d9c9f79d00663a785ab348f7c
e03b9ee7961d3df347c3f7b1cbe15a51ad47f530
refs/heads/master
2021-06-06T04:05:00.243227
2021-01-14T12:57:06
2021-01-14T12:57:06
116,171,234
2
1
null
null
null
null
UTF-8
Python
false
false
2,983
py
import os from sys import exit from sys import path import pdb from tqdm import tqdm import tensorflow as tf import numpy as np import train_utils as tr_utils # import plotting as plot import hyperparams import cnn_model import dataloader import ldataloader import settings import test_compare def test_ldl(ldl_...
[ "alessandro.schneider.privat@gmail.com" ]
alessandro.schneider.privat@gmail.com
3c050bc8e8b4d6dccd727483ed6631a18acd28c2
d5e3ecb3e79006a6c59c787ebd8ee4a321cd5dfd
/pythonproject/div.py
28ebc9f012d63c49456a35421274c4663217edd7
[ "Apache-2.0" ]
permissive
sangampatel/pythonproject
f4551e760aac02648d736f09365062eab4634027
c6c690fd5d4fa62023db15cf10bdedeeb8b44a41
refs/heads/main
2023-07-08T10:02:34.387218
2021-08-11T09:25:15
2021-08-11T09:25:15
393,037,053
0
0
null
null
null
null
UTF-8
Python
false
false
71
py
a = int(input()) b = int(input()) c = a/b print(int(c)) print(float(c))
[ "noreply@github.com" ]
sangampatel.noreply@github.com
e86711a24b545be310ffb5b0903c3b629e84b179
2befe9a69a976b304e57afb5a32797d8a85db6ff
/tutorial/tutorial/settings.py
79ac68aff082019f63dfc78cd9bba1cb856fcc45
[]
no_license
IgorEngControle/djnago
a2f9217ab91788e43eea3ca0c3c53eaf51009a30
6649d79ffa3d921ee54173a7459b8b85cd69f507
refs/heads/master
2020-08-21T18:14:09.538592
2019-10-19T14:16:45
2019-10-19T14:16:45
216,216,045
0
0
null
null
null
null
UTF-8
Python
false
false
3,110
py
""" Django settings for tutorial project. Generated by 'django-admin startproject' using Django 2.2.6. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os ...
[ "igor@tacoma.dcc.ufmg.br" ]
igor@tacoma.dcc.ufmg.br
712d19d0246374006b8c8715c3ea651c1575118a
d113bfc092f3465d93d14a5420c3af4a23bf6246
/lambda.py
a5d87d3956b855f531d3985e2c9f96b73c5f9eba
[]
no_license
joyvai/Python-
8d9de9e7146541966a237e549aaa7448ea9d8855
3222c36c7b0cd054b03bc775528a797ff1e9b25d
refs/heads/master
2021-01-16T23:37:55.719482
2017-10-02T11:02:37
2017-10-02T11:02:37
55,305,032
1
0
null
null
null
null
UTF-8
Python
false
false
265
py
# lambda is key word which is used for annonymous function. # Small anonymous functions can be created with the lambda keyword def make_incrementor(n): return lambda x:x+n f = make_incrementor(42) print f(0) print f(2) a.sort(key = lambda pair: pair[0]) print a
[ "noreply@github.com" ]
joyvai.noreply@github.com
c8e90da54de4f0eef7bbb58a590acd4e21bbdb53
6fb302872dbd0fb689cd33be0f777e7f97e44da6
/data acquisition/env_vars.py
b061b86441f805e66c42b4233fa36347f60a696d
[]
no_license
davidanagy/Spotify-Song-Suggester-DS
65aa8d5a7494e5efa43308cfbf5334de04cfa949
c9b3aec9af313e21bfff76fcdcf71e268d8411e8
refs/heads/master
2022-04-28T19:18:29.929949
2020-05-04T21:15:51
2020-05-04T21:15:51
261,292,889
0
0
null
null
null
null
UTF-8
Python
false
false
450
py
SPOTIFYUSERNAME = 'basslaughter' #your spotify username CLIENT_ID = '63594c9b2f99411a8cbd18df04851fc4' #set at your developer account CLIENT_SECRET = '096168b2bd1f4378ae410726955c9ed8' #set at your developer account REDIRECT_URI = 'http://google.com/' #set at your developer account, usually "http://localhost:8000" SCOP...
[ "zwarshavsky@gmail.com" ]
zwarshavsky@gmail.com
fbf3a11ee73399b2b88c3a02438615c08e7783fd
8a02308635ac5d00993094afd71cc8ba8695ca81
/ch06_iteration/iteration.py
2c3381eeaefca8cde77c6b17a56245366da99c78
[]
no_license
suptaphilip/how-to-think-like-a-computer-scientist
c219c341037a663b567477be5b0218681b25d747
390258201257c93cd1752272e9ff4fb15e424756
refs/heads/master
2021-01-10T21:19:46.799334
2012-08-08T20:17:37
2012-08-08T20:17:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
384
py
def sqrt(n): approx = n / 2.0 better = (approx + n / approx) / 2.0 while better != approx: approx = better better = (approx + n / approx) / 2.0 print better return approx def print_triangular_numbers(n): result = 0 index = 1 while index <= n: result += index ...
[ "helena.josol@gmail.com" ]
helena.josol@gmail.com
59d57a4cd3691c235a5cc4a77d1735c3b0645f04
088b072bf4021e7b48bc458297e470a576f893d7
/main.py
3b2f2d46d93176daf976d81efb15b0de9aa0b83d
[]
no_license
Guybachar210/python-pi
db53b18edb350ca6376108abc7fd3a8de3543614
88397f7d06487df050a20e90fc4f293afcd6ed0d
refs/heads/master
2020-03-13T06:15:45.300351
2018-04-25T13:11:32
2018-04-25T13:11:32
131,001,205
0
0
null
null
null
null
UTF-8
Python
false
false
54
py
#!/usr/bin/python3 //This is a comment print("guy")
[ "guy.bachar@mail.huji.ac.il" ]
guy.bachar@mail.huji.ac.il
974df18b41b3a6861168c136ec7244f28c7b5aca
ff477a586b946c575441b6189123ab86c175e5ae
/linker_tests/link_pre_489/PysamTestModule_link_pre_489/__init__.py
e441021180c1280a017ba4118871c577c6661fcc
[ "MIT" ]
permissive
pysam-developers/pysam
5552e4903106fc253869a405f4a2c068c6bd65c5
0663ca85739877e5dd05c0eb2512a8bcaa515b39
refs/heads/master
2023-08-16T19:10:17.566296
2023-08-15T10:06:59
2023-08-15T12:28:29
16,557,526
678
332
MIT
2023-09-14T10:40:22
2014-02-05T20:38:10
C
UTF-8
Python
false
false
84
py
from PysamTestModule_link_pre_489.BuildRead import build_read all = ["build_read"]
[ "jacobs@bioinoformed.com" ]
jacobs@bioinoformed.com
2755146e8b7d934435fb6a6f933999355302b995
35045d4883ee369de5d8e8544b69af5711a937ca
/main.py
e8e64698903e0178ed9f50dfc0c5de3b8c8c9845
[]
no_license
matsui23/blogz
0b12f904692e0d4f74922c8cd2957784cb9c07e3
adfd7062cbd035eb88d8a7ffdb47f587e922ceae
refs/heads/master
2020-04-01T15:58:53.049625
2018-10-24T00:18:45
2018-10-24T00:18:45
153,359,810
0
0
null
null
null
null
UTF-8
Python
false
false
8,683
py
from flask import Flask, request, redirect, render_template, session, flash, url_for from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['DEBUG'] = True app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://blogz:pass@localhost:8889/blogz' app.config['SQLALCHEMY_ECHO'] = True db = SQLAlchemy(app...
[ "mattgamedev2313@gmail.com" ]
mattgamedev2313@gmail.com
cdec30010c2923fa9b8c544e8bdf200916434ee6
5cc4f84574e98c3182baa8049e307a54f0ce0eba
/Image.py
f9321317b32ef706fa9a8aedef2c4f37143304df
[ "MIT" ]
permissive
leonardodalcin/cvbootstrap
fbc6f4c7115844b90adac54231c26a1060adb92d
72b0b4bc8433f47ed78378895e23ba385cf1ecc3
refs/heads/master
2020-03-28T03:59:13.325705
2018-09-06T14:46:10
2018-09-06T14:46:10
147,687,057
0
0
null
null
null
null
UTF-8
Python
false
false
841
py
from datetime import datetime from matplotlib import pyplot as plt import cv2 import os class Image: image = None def show(self): plt.imshow(self.image, cmap="gray", interpolation='bicubic') plt.show() def save(self): print("Saving photo") now = datetime.now() dirName = now.strftime("%d-%m-%Y") fileN...
[ "noreply@github.com" ]
leonardodalcin.noreply@github.com
6059f19d35052a833fe121731afddf53ecd51c70
1b3454e03d5f07bd9739c8fa51aef53576234970
/publish_preflight/forms.py
812367022ef16f4da49c7b8f7faa99228bbe4966
[ "BSD-3-Clause" ]
permissive
cityofaustin/wagtail-publish-preflight
6b4f171713b31b39fbda3cecf128b38c8278790b
5a40d20a7811c67d2c2e085c8127c8d35103a5c8
refs/heads/master
2022-12-15T13:31:29.861322
2019-12-23T19:13:24
2019-12-23T19:13:24
221,550,274
1
0
BSD-3-Clause
2022-12-08T03:16:34
2019-11-13T20:57:42
Python
UTF-8
Python
false
false
2,727
py
from wagtail.admin.forms import WagtailAdminPageForm from wagtail.core.models import Page, PageRevision from django.core.exceptions import ValidationError from wagtail.admin import messages import logging class PublishPreflightForm(WagtailAdminPageForm): def __init__(self, *args, **kwargs): super().__init...
[ "ericandrewsherman@gmail.com" ]
ericandrewsherman@gmail.com
f188de2692770cbb987a93c8b00f449e44b9a4d7
df9f069a0186cf38df8a592ca561c5cb4eb02aef
/src/Indeed.py
f80663d7f132d040ffdbefb9eaba85b3cee71925
[]
no_license
SeekrLabs/JobScraper
6f018d6915f9cb30454e5c905117647f7df07426
3e490b5e22d3593f3951dbd62aabd57c1dde107c
refs/heads/master
2020-07-30T08:59:42.171708
2019-08-29T19:18:08
2019-08-29T19:18:08
210,164,839
0
0
null
null
null
null
UTF-8
Python
false
false
6,102
py
import json import botocore.vendored.requests as requests import time from bs4 import BeautifulSoup import boto3 import datetime # Run this once a day, it gets completely refreshed once per day BASE_LINK = 'https://www.indeed.ca/jobs?l=Toronto,+ON&sort=date&fromage=1&limit=50' sqs = boto3.resource('sqs') QUEUE_MESSAGE...
[ "waltonwang1922@gmail.com" ]
waltonwang1922@gmail.com
5d1eece352fc8c5f68bf09f0c53324cb86162250
12cb18dc1c101482381144eb97f12321aded8fc6
/ActSent/src/pythoncode/stat/filterRelation.py
1ea77a68438ef2104a08fedb4818d975a0fea784
[]
no_license
yulongp/ActSent
5525f81dc7ba92d24826cd6fc09e33a41c383bbe
d2e521ee85093712ab2dbddf3edb90da80ebc1b0
refs/heads/master
2016-09-02T00:13:46.036602
2014-12-10T15:51:57
2014-12-10T15:51:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
596
py
#!/usr/bin/python # -*- coding: utf-8 -*- ''' Created on 2014年11月25日 @author: Yulong Pei ''' fin = open('E:/Courses/11742/data/Sentiment/tweet/user_filter.txt', 'r') users = set() for line in fin.readlines(): users.add(line.strip()) fin.close() print len(users) fin = open('E:/Courses/11742/dat...
[ "Think@Think-PC" ]
Think@Think-PC
3f3844063992b68f39585095d648b061af440896
7c731762df05f017e464801c1aa0ad34c5cde722
/2ndLeariningPhase/prepareTrainingData.py
5d3246e30f3eb05b19131d01c7108a441e7ce8e5
[]
no_license
WaleedRagheb/tmv-dmem
57d4521be18f2e37f2c3c7337dd2c507d74b3c4a
0a63f1397dae9e1c26272b512bb72032598dd8c1
refs/heads/master
2023-01-02T04:39:06.372426
2020-10-30T09:10:50
2020-10-30T09:10:50
308,577,400
0
0
null
null
null
null
UTF-8
Python
false
false
7,048
py
# -*- coding: utf-8 -*- """ Created on Mon Jan 22 12:50:10 2018 @author: HP """ import sys sys.path.insert(0, r'..\ChunkDealer') import chunksProcessor import sys sys.path.insert(0, r'..\DeepModeling') import testScoring import gensim import numpy as np import os #################################################...
[ "azmy1@hotmail.com" ]
azmy1@hotmail.com
38d1a8b5525bafefdf414bc8772df462ea1b9e46
4217beb675f8d985130316bc85e54d33f003603c
/04/skuska.py
6fdf0db77acd63106558b4c379902bdf87e5c1a3
[]
no_license
Katrinkarus/pyladies
b997e39fef91eb4aad91efb878746945baf3f31f
75727d1050b985df8c73aa3a97c41e55d9b5be32
refs/heads/master
2020-05-04T12:42:17.533842
2019-04-02T18:10:59
2019-04-02T18:10:59
179,130,868
0
0
null
null
null
null
UTF-8
Python
false
false
281
py
while True: rodne_cislo = input('Zadaj rodne cislo: ') datum = rodne_cislo[0:6] poradie = rodne_cislo[7:11] if rodne_cislo == datum + "/" + poradie: print('Spravne zadane rodne cislo.') break print("Zle zadane rodne cislo. Zadaj rodne cislo: ")
[ "katrinkarusnak@gmail.com" ]
katrinkarusnak@gmail.com
49189603cb3bc1b7fcce4713ced166ee1da90037
6b05aed1fd6ab434b2db37108f442e1949f1279b
/venv/lib/python3.9/site-packages/keyring/errors.py
b2df613b8779d456e4d7b7343162d25c97f31922
[ "Apache-2.0", "OFL-1.1" ]
permissive
storskegg/Qlikr
830512debdb69fb9c2fa0a7d022027b54a8e07f0
e63cb6401d0c49cc4ff7c2a1cb604c6ba9acbfc3
refs/heads/master
2023-08-17T13:02:41.737491
2022-09-27T17:31:52
2022-09-27T17:31:52
241,127,869
1
0
Apache-2.0
2023-08-09T19:24:57
2020-02-17T14:29:45
Python
UTF-8
Python
false
false
1,453
py
import sys __metaclass__ = type class KeyringError(Exception): """Base class for exceptions in keyring""" class PasswordSetError(KeyringError): """Raised when the password can't be set.""" class PasswordDeleteError(KeyringError): """Raised when the password can't be deleted.""" class InitError(Key...
[ "liam@storskegg.org" ]
liam@storskegg.org
1fe82a003bc84d91e8c6db00b500c06f66884aff
00dcecec4d2cacc1c4d6d8457bbed15c3df4c6ea
/31.py
ec29f45d30b30264d190d234d4308d161b23304a
[]
no_license
asadoughi/euler
375010163de2d174a20561b89bf240a0de34098f
93fdcb29a037f30898a017d5d41e8fa20d2de4a9
refs/heads/master
2021-01-18T14:05:37.747124
2014-08-16T20:42:35
2014-08-16T20:42:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
768
py
c = (200, 100, 50, 20, 10, 5, 2, 1) def updated_path(path, i): if path is None: path = (0,) * len(c) return tuple(x + 1 if j == i else x for j, x in enumerate(path)) solution_set = set() def ways_to_make(y, tab=0, previous_coin=None, path=None): if y <= 0: ...
[ "amir.sadoughi@gmail.com" ]
amir.sadoughi@gmail.com
ecf39a5c705c8db5316fd9b8f2f2a10e55b0f3b7
13be2f1034dd5cf54142ffd587b963ad82b994a2
/examples/sliay/human_recording.py
e336ff5fb3951b36d5515a8541c7745e947360ea
[ "MIT" ]
permissive
flyers/ViZDoom
a20f3bbca0f28d62c67fad70a6ab879d8b2f945c
721bda34d5605e2e074b573a13c45c169138c237
refs/heads/master
2020-07-16T17:52:29.746759
2017-06-22T06:56:20
2017-06-22T06:56:20
94,313,186
0
0
null
2017-06-14T09:21:43
2017-06-14T09:21:43
null
UTF-8
Python
false
false
3,786
py
#!/usr/bin/env python from __future__ import print_function import argparse import os import cv2 from vizdoom import * parser = argparse.ArgumentParser( description='record human training data in CIG') parser.add_argument('--config', type=str, default='/home/sliay/Documents/ViZDoom/scenarios/cig.cfg') parser.add...
[ "lisiyi.zju@gmail.com" ]
lisiyi.zju@gmail.com
a417559139fa6528356016ba2b62917e0ff2b559
b4bd4ce04253ce3b68a11a3c479676e3e6b90f9f
/src/com/zobar/rosalind/GC.py
ed1bc449f0f8a85f1f9c91504b4a974961a13a44
[]
no_license
zo-bar/rosalind
2af34c55bfa3da2da3a69af5b0b5ea9abd398d29
f6a232d086f596f0bf964cc1415cddfc3af79b31
refs/heads/master
2021-04-26T03:47:02.052410
2017-10-23T03:04:08
2017-10-23T03:04:08
107,925,340
0
0
null
null
null
null
UTF-8
Python
false
false
1,286
py
''' Created on Feb 28, 2013 @author: Zoya ''' from __future__ import division import io def gcCount(dna): stream = io.StringIO(unicode(dna)); nchar = stream.read(1) gc = 0 total = 0 while nchar: if nchar.upper() == 'C' or nchar.upper() == 'G': gc += 1 ...
[ "zoya.barabanova@gmail.com" ]
zoya.barabanova@gmail.com
741c7ed84e776d3b296496e8a03cb9505ed6c707
ae8680fdf9c0ccef372a28c6e21c5bc88b759e28
/user/views.py
031474d21848b45c13842cf5b1f4257e15b59d86
[]
no_license
LevchenCoM/django-hotels
3b1a03a6c5e08e11f0daa5d78f81267dac287b39
66c448c15296bc105d5e2461f52028f9fb7d4ebc
refs/heads/master
2020-04-02T15:41:25.522697
2019-01-14T22:07:45
2019-01-14T22:07:45
154,578,974
0
1
null
2020-04-21T11:36:20
2018-10-24T22:49:18
JavaScript
UTF-8
Python
false
false
1,734
py
from django.shortcuts import render, redirect from django.contrib import admin from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.contrib.auth import login, authenticate from django.contrib.auth.forms import UserCreationForm from django import forms from dj...
[ "qupadlive@gmail.com" ]
qupadlive@gmail.com
3b5387d6906c0f8e3d571ef855877e7f3122fa9a
e69f36986b40051aa1b79f57c82e0c1d1092e845
/blog/migrations/0003_posts_status.py
c6e12d009ad82213f0f1bf2a6a23a891d0ee07d2
[ "MIT" ]
permissive
p3dr0migue1/back_and_beyond
58b782104ec22846d5703e31dc2e519d733c9db9
a1926124b67793e002801eb4da7ff5e55c12e885
refs/heads/main
2022-12-10T09:22:54.475648
2021-03-16T16:00:19
2021-03-16T16:00:19
48,260,489
1
0
MIT
2022-12-07T23:21:32
2015-12-18T23:07:41
Python
UTF-8
Python
false
false
520
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2015-12-22 08:52 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0002_auto_20151220_2103'), ] operations = [ migrations.AddField( ...
[ "pedro.miguel@live.co.uk" ]
pedro.miguel@live.co.uk
e487919518bf88bc71d350791ee008c305bac7e9
ccf62dacb53df805f142c0e07f83b6a5ce871acf
/lesson_1 2/task_1_3.py
a6436f237f3ed571c6dd5c51ab75e4b22f4655f2
[]
no_license
LEVON-332125/python-homework
fa1452beaa149ccc96c37e730d7de62196416968
88f658accd453e2a8a885d78f4ab2f5f78b6177f
refs/heads/main
2023-02-17T03:56:31.918184
2021-01-14T14:20:01
2021-01-14T14:20:01
329,627,519
0
0
null
null
null
null
UTF-8
Python
false
false
200
py
# Write following program: calculate how much money you # should pay for 1500$ bank loan if annual percentage is 16% value = 1500 percent = 16 years_total = (value * percent)/100 print(years_total)
[ "levon.yeghshatyan1994@gmail.com" ]
levon.yeghshatyan1994@gmail.com
5ad5ba54ab183a3b8d8547dc36fe13a182ff5fb7
15e308ddb4d03767900a7ae52b3d01e009dd5bcb
/yapily/models/site.py
ed15e46528817bde7d29d29e5dd30a26eaf8734c
[]
no_license
MedatechUK/yapily
be6d01df2a4d8a5f4ce8c79dcb098bd297fb884c
e4440d67a504dc6a8ec9f314e1362d5f6cf424a4
refs/heads/main
2023-07-07T16:53:41.059013
2021-08-23T06:57:23
2021-08-23T06:57:23
381,364,907
0
0
null
null
null
null
UTF-8
Python
false
false
3,967
py
# coding: utf-8 """ Yapily API To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501 The version of the OpenAPI document: 0.0.359 Generated by: https://openapi-generator.tech """ import pprint impor...
[ "simonbarnett@emerge-it.co.uk" ]
simonbarnett@emerge-it.co.uk
985a0181777a667c351bdcecfb2f163f8ca20c93
21b719411b6a6a18e169eab506c95b8e4c2ca0de
/mysite/main/admin.py
ab004f6a11edf10b6fbf3fe07ededabb02b087c6
[]
no_license
Techdavee/Myfiles
5525d1f93dbcc7961b12725ddb91b54223853cf7
1bfc755e0c1332f69006679393b76e5b08258bb1
refs/heads/main
2023-04-29T20:40:48.225158
2021-02-04T15:04:41
2021-02-04T15:04:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
497
py
from django.contrib import admin from .models import Tutorial from tinymce.widgets import TinyMCE from django.db import models # Register your models here. class TutorialAdmin(admin.ModelAdmin): fieldsets = [ ("Title/date", {"fields": ["tutorial_title", "tutorial_published"]}), ("Content",...
[ "noreply@github.com" ]
Techdavee.noreply@github.com
fbe74fd7cfe43e90db48ece7aa26a52868248dc4
9d6706d64836ca032101fb4a01a5a5b3762e9778
/school_summary.py
35123ead34007c2030fdd47d979a628c58b8b556
[]
no_license
johnwchoo/school_district_analysis
a34b2bb325d5d0b441916fc0d1eed1cb904158c2
691a14550d299350fc519a933f7c7e64508e34dd
refs/heads/master
2021-02-14T02:58:04.087393
2020-03-03T23:07:13
2020-03-03T23:07:13
244,464,691
0
0
null
null
null
null
UTF-8
Python
false
false
10,283
py
#School Summary #Create an overview table that summarizes key metrics about each school, including: #School Name + #School Type + #Total Students + #Total School Budget + #Per Student Budget + #Average Math Score + #Average Reading Score + #% Passing Math + #% Passing Reading + #Overall Passing Rate (Average of the ...
[ "johnwchoo@gmail.com" ]
johnwchoo@gmail.com
cc97825789e2626dee928f0438ffb14d11c4338f
6782c1b6b1a472846417b82c0089a935ba0cd13b
/examples/node2vec/multi_class.py
e01f7b39d0697941b2337f7c6d218828090f75f8
[ "Apache-2.0" ]
permissive
Liwb5/PGL
291d7d23a2f56060de8afffb6180476c86a81279
1253335c602709fb93061d8a64b2e4ba1049bfff
refs/heads/main
2022-04-26T10:17:27.937508
2022-04-19T12:20:33
2022-04-19T12:20:33
216,797,608
1
0
Apache-2.0
2020-10-09T07:49:14
2019-10-22T11:31:31
Python
UTF-8
Python
false
false
9,706
py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ "weiyue.su@gmail.com" ]
weiyue.su@gmail.com
a1624b94b297bc87a48ad16e0cdcb21d81e82e0b
cc32a607aedba612412dab77886fda45f9796abb
/erfelijkheid.py
5f7a37594cd0ea9125f529909152085f9576bafe
[ "MIT" ]
permissive
Smartz-Wesley/Smartz-Test
59fe0f7c092f631ed3689862634f07a715f6aab7
8b34849ec8933a9715cf3c28d81bd211c3dc30e4
refs/heads/master
2020-03-15T16:18:55.279708
2018-05-13T10:09:06
2018-05-13T10:09:06
132,232,185
0
0
null
null
null
null
UTF-8
Python
false
false
741
py
class Person (): def lopen(self): print("rechtervoet, linkervoer, rechtervoet, wat was het ook alweer...") def praten(self): print("Het enige dat ik kan is praten") def werken(self): print("Ben ik aan het werk?") class Wesley (Person): def usa(self): print("Oh say can ...
[ "w.speetgens@smartz.eu" ]
w.speetgens@smartz.eu
61a09c18c8b630245e154ae30f0dcbb89579d77a
33c674fb0209804aa715276201c9966e2b050ab3
/wksp/devel/bin/view_frames
76057371ca6f360e6f00925d656e9fe8905003ac
[]
no_license
ese-519/teamcaravan-rpi
74d4d45adb00b5acc48e0f7f3f6689ee4d477001
88fd59055758b0c39c0e00816e2bc3e06be695b3
refs/heads/master
2016-08-11T07:09:00.863406
2015-12-09T16:42:39
2015-12-09T16:42:39
46,686,630
0
0
null
null
null
null
UTF-8
Python
false
false
291
#!/usr/bin/env python # -*- coding: utf-8 -*- # creates a relay to a python script source file, acting as that file. # The purpose is that of a symlink with open("/home/ubuntu/hemo_code/new_code/wksp/src/geometry/tf/scripts/groovy_compatibility/view_frames", 'r') as fh: exec(fh.read())
[ "avanaken92@gmail.com" ]
avanaken92@gmail.com
1ce95d475c7088d7b805a6c7e62d93c4986fce10
cfb474d8b9aa6fd268d322e0aeae8598d0d40383
/user/logsitic.py
d8022176535ce4f98a2f59df6adb9ed9a5ce7d8b
[]
no_license
aomenxinpujing/swiper
b90fd6f439e3afdf0d0c89160b7b83b7b6e1c8fc
af16546ce15cfa68e9c416e9acc5d3ea25f3577d
refs/heads/master
2020-05-03T02:21:22.655293
2019-04-02T14:06:02
2019-04-02T14:06:02
178,367,068
0
1
null
2019-04-02T14:06:03
2019-03-29T08:44:43
Python
UTF-8
Python
false
false
629
py
import os from urllib.parse import urljoin from django.conf import settings from lib import qiniuyun from swiper import config from commen.keys import ICON_KEY from user.models import User from worker import celery_app @celery_app.task def upload_qn(uid,icon): filename = ICON_KEY % uid filepath = os.path.joi...
[ "noreply@github.com" ]
aomenxinpujing.noreply@github.com
e2347380c65993b481e6ce5d1830967a3fdc5e84
ef4e6257040fde6dc73898c967f8d7005f293a20
/DS6.py
8580174f69860b4ef0785661ce4bf38cf2b3b099
[]
no_license
AnandKrishnamoorthy1/ML-and-NLP-Basics
1ad4b6f84aa468654fc62050838fe30923702966
65f26e044789f3611026ac716b6cc188d8728af7
refs/heads/master
2020-08-25T06:43:49.375453
2019-12-19T16:08:06
2019-12-19T16:08:06
216,977,253
0
0
null
null
null
null
UTF-8
Python
false
false
6,025
py
# -*- coding: utf-8 -*- """ Created on Sun Apr 29 10:26:06 2018 @author: anand """ from sklearn import datasets import pandas as pd from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression load_data=datasets.load_boston() X=pd.DataFrame(data=load_data.data,c...
[ "noreply@github.com" ]
AnandKrishnamoorthy1.noreply@github.com
50218bb2ebd05266a714ea763bac56c767829696
09af7fb5619a882fe10236c22930cd36080a5725
/NumPy_TutorialPoint.py
ff82784400e9ee0ee09c0abb353074df9867fafd
[]
no_license
sireeshadaruvuri/Python-NumPy
f1536c04805b0757d19c1ea820b0391a009e76ae
a357d3b347850b3715956cde25559c37dd0f1d07
refs/heads/master
2022-12-22T22:08:05.238517
2020-09-18T23:18:12
2020-09-18T23:18:12
296,747,641
0
0
null
null
null
null
UTF-8
Python
false
false
4,339
py
#array syntax import numpy as np a = np.array([1,2,3,4]) print(a) #two dimensions (result shows with two square brackets) b = np.array([[1,2,3],[4,5,6]]) print(b) #ndmin specifies the minimum dimensions of resultant array c = np.array([1,2,3,4], ndmin=2) #If I give ndmin = 3(3 dimensions)here it gives result wi...
[ "noreply@github.com" ]
sireeshadaruvuri.noreply@github.com
3a19964e213dc6bb061ab5e5ed5357a4c1f603f5
5785d7ed431b024dd910b642f10a6781df50e4aa
/craft-demo/.venv_python/bin/easy_install
617f968d4148a4d9a1ea945031c47c0d7bbad2ce
[]
no_license
kashyapa/interview-prep
45d77324446da34d99bf8efedb3544b367b5523e
7060c090c40602fb9c4778eace2078e1b51e235b
refs/heads/master
2023-07-28T13:12:49.515299
2021-09-06T14:33:25
2021-09-06T14:33:25
403,706,510
0
0
null
null
null
null
UTF-8
Python
false
false
294
#!/Users/schandra2/Developer/coding-problems/craft-demo/.venv_python/bin/python # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "schandra2@godaddy.com" ]
schandra2@godaddy.com
5eb38b81802aa7a6c84f0f34a1b62b50a3056eb1
c01ab71f681efdeb9f4e7d52ed083745b6d42590
/old/6th sem/competetive_c/COMPILER/test_modules/testCases.py
94facbbde057509de80d4825991aefabf070de5a
[]
no_license
anant-pushkar/competetive_programming_codes
398a39c85a761c8d242f42f368933239a438ac06
127c67d7d4e2cef2d1f25189b6535606f4523af6
refs/heads/master
2021-01-20T11:57:07.528790
2014-11-14T08:29:21
2014-11-14T08:29:21
23,577,655
0
1
null
null
null
null
UTF-8
Python
false
false
585
py
import testTemplate ''' class customTester(testInstance): def __init__(self , inStr , outStr , dec): testInstance.__init__(self , inStr , outStr , dec) def test(self,txt,ref): #write test logic here ''' def getTests(): tests = [] suite=testTemplate.testSuite("Sample Test Suite1") testcase = testTemplate...
[ "anantpushkar009@gmail.com" ]
anantpushkar009@gmail.com
b527f234d750265bae3dbe7f5038130ef20fa5c2
57c54ab35d84ce3021eb304af37e8393c4d50036
/data/utils.py
7c52df4d98a1b6a099963a0539365dc054b9a585
[]
no_license
arryon/ml2014
89f9fc6d28622238518f26038bcc0251caeb2e18
136b8e32e8cf4859bc881b7d2a2b52186a3df41a
refs/heads/master
2020-06-06T02:05:13.268466
2013-10-22T17:39:37
2013-10-22T17:39:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
189
py
import numpy as np def get_largest_std(nested_list): tuples = [(np.std(a),idx) for idx,a in zip(range(len(nested_list)),nested_list)] _max = max(tuples) return nested_list[_max[1]]
[ "arryon@gmail.com" ]
arryon@gmail.com
28d438cfc97620ca95904678fa4f47a290b9c081
2e23286fd6bbb26cf2262ac8588040ffd207f372
/app/recipy/tests/test_tags_api.py
848861229f7e475d24618f8ca2a67a0ee835a0f2
[ "MIT" ]
permissive
Zoki92/Vue-recipe-api-frontend
470a8ba0fc96f0788fddd9e24c9e86d6e393ab5c
96a3505f3a451e5a9402b20c10261e4d7e3effcb
refs/heads/master
2020-05-19T23:12:44.846021
2019-05-17T19:04:54
2019-05-17T19:04:54
185,262,656
1
0
null
null
null
null
UTF-8
Python
false
false
3,213
py
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Tag, Recipe from recipy.serializers import TagSerializer TAGS_URL = reverse('recipy:tag-list') class P...
[ "zoranstoilov@yahoo.com" ]
zoranstoilov@yahoo.com
0b9582b0e90d5b58ba6e6981d5158237639bfa9b
bdfc8ce53719cf5de27bbc4dc51b336b46644800
/QUESTION_3.PY
78a3ba2208d4e4328189cc4269486ef71012e6cb
[]
no_license
gauripatil20/DEBUGGING
74a72241689cb7b9af6dd7e25ee574ef3cffde50
d171dfc558cc8c1d7830cda43e89b249cd85c0ad
refs/heads/master
2023-04-11T04:11:00.233625
2021-04-18T13:00:13
2021-04-18T13:00:13
359,143,460
0
0
null
null
null
null
UTF-8
Python
false
false
3,980
py
# Apne simple se message ko aise change karna jisse koi dusra insaan usse samajh na paye usse encryption bolte hai. Encryption karne ke bhot sare ways hote hai. Hum cipher wheel use karenge. Cipher wheel mei hum her character ko kissi number se aage shift kar dete hai. Jaise: Hum iss cihper wheel mein her character ki ...
[ "you@example.com" ]
you@example.com
2cce7d2367c4e8e437d7c9be2660c7dd224b85d1
498e792e16ab1a74ac034c53177c4cccbeef2749
/segmentation/RTDA/scripts/train.py
0da7a5ee94e79c06adb2d30e32adcbd526f81a68
[]
no_license
ydwisroad/imageprocessingpytorch
f97bec4469c087f6bbbca5d42da180c95be8b13f
bd8d1af228619c9c6c9c1a2b880422f7d5048dd5
refs/heads/master
2023-07-29T05:05:11.145832
2022-02-21T23:32:03
2022-02-21T23:32:03
284,976,501
7
3
null
2023-07-24T01:08:22
2020-08-04T12:43:24
Jupyter Notebook
UTF-8
Python
false
false
45,758
py
import os import torch import torch.optim as optim from tqdm import tqdm from utils.scheduler import PolyLR from utils.losses import CrossEntropy2d, FocalLoss, get_target_tensor, DiceLoss, get_target_tensor_mc from torch.nn import BCEWithLogitsLoss from scripts.eval import validate from models.utils import save_model, ...
[ "wandf12345@163.com" ]
wandf12345@163.com
f371ba254c8755397bda9195488aa778687e20d1
09f8b619e0e351b653db31ea9d65a97767e92a1c
/tests/test_style.py
1e3741754f0bcd250119ecde1ac64505350a8bc5
[ "BSD-2-Clause" ]
permissive
sudlab/cgat
793e5ec8503db399ad9a741293bf3683828bf149
4261368393195b8dc75c3ad544d5556a27280633
refs/heads/master
2021-01-21T18:00:16.097868
2017-05-17T08:03:47
2017-05-17T08:03:47
45,106,248
0
1
null
2017-04-05T13:56:50
2015-10-28T10:53:40
Python
UTF-8
Python
false
false
2,458
py
'''test_style - test coding style confirmation of CGAT code =========================================================== :Author: Andreas Heger :Release: $Id$ :Date: |today| :Tags: Python Purpose ------- This script runs pep8 on all scripts in the CGAT code collection. This script is best run within nosetests:: ...
[ "andreas.heger@gmail.com" ]
andreas.heger@gmail.com
24af616887fef4a04a39dfd9e1971ddb5961b424
7b6b60ef46b712ee3e76b044bc5085c631abfee5
/task3/src/my_utils.py
48cda3c65ca8369e080cbda37051dc33c254cea9
[ "MIT" ]
permissive
shreeshiv/ICDAR-2019-SROIE
f5f317616e24d8ba77d0e4c918f3c9c35808be02
94c5d951f9c117abf21ee340ff6ba848d51b70a8
refs/heads/master
2022-04-12T16:37:22.805662
2020-04-11T19:05:59
2020-04-11T19:05:59
255,050,752
1
0
MIT
2020-04-12T09:39:47
2020-04-12T09:39:46
null
UTF-8
Python
false
false
2,175
py
import random from difflib import SequenceMatcher from string import ascii_uppercase, digits, punctuation import numpy import regex def pred_to_dict(text, pred, prob): res = {"company": ("", 0), "date": ("", 0), "address": ("", 0), "total": ("", 0)} keys = list(res.keys()) seps = [0] + (numpy.nonzero(nu...
[ "zhangns@mail2.sysu.edu.cn" ]
zhangns@mail2.sysu.edu.cn
cbedde86fd5dc5b284b7b7c2f3e06658e773ca97
aa63224b1ee06f5377ad27191493e48081c467a1
/Task2.py
d790bed03ce14e83487c40486d1341a5d29d1ad6
[]
no_license
RachnaReddyM/Inverted-Index-Generation
0237d238606bba6c42e72d4e673864cc5e3b5df5
5899a08825bbb63a93e3bb20297a1e3145166943
refs/heads/master
2021-05-03T08:38:46.809500
2018-02-07T05:32:06
2018-02-07T05:32:06
120,567,719
0
0
null
null
null
null
UTF-8
Python
false
false
6,064
py
import os import operator index_unigram= {} # Inverted Index for Unigrams """index_bigram={} # Inverted Index for Bigrams index_trigram={} # Inverted Index for Trigrams unigram_tf={} # Unigrams term frequencies bigram_tf={} # Bigrams term frequencies trigram_tf={} # Trigrams term frequencies unigram_df={} # Unigrams...
[ "rachna_reddy93@yahoo.in" ]
rachna_reddy93@yahoo.in
d8f3e2e8da6c3e45068109576849095485f36831
21790d64e67a705e3cba12facc7a5132fd4b42db
/ex7.py
2537fcca39593db65657de4cc344d4f2a1715bb4
[]
no_license
jiaoweiming215/ABOUT-OF-PYTHON
7d325be6f8c09af3bc04a1d696651c0e43bdba4e
4416be8f0c67ba0a4293e945c352ffd2d7f03768
refs/heads/master
2021-01-21T21:06:46.228383
2018-03-13T06:16:59
2018-03-13T06:16:59
92,308,105
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
# format string #-*-coding:utf-8-*- import time; ticks = time.time() localtime = time.localtime(time.time()) print "时 间:",ticks print"NOw",localtime
[ "jiaoweimng215@163.com" ]
jiaoweimng215@163.com
100c7b9715f2d3d1d5e5fcd0b8a906106e8912a9
9b5842b300bba0cf34babfe6ace235af4f5abcc2
/AlphaZero_Gomoku/mcts_alphaZero.py
92f90619a982f2ac6f49665e33b8bd609f4cef94
[]
no_license
RanZhu1989/Py.RL
cec5e6abdad5988fa1fe5f61112728bc5b0e3334
9abb025ced8fc7e51f61790301efd7aee31826cb
refs/heads/master
2022-12-07T10:38:16.095433
2020-08-27T14:47:41
2020-08-27T14:47:41
284,641,756
1
0
null
null
null
null
UTF-8
Python
false
false
4,877
py
# -*- coding: utf-8 -*- """ Monte Carlo Tree Search in AlphaGo Zero style, which uses a policy-value network to guide the tree search and evaluate the leaf nodes @author: Junxiao Song """ import numpy as np import copy def softmax(x): probs = np.exp(x - np.max(x)) probs /= np.sum(probs) return probs c...
[ "gemina_cat@163.com" ]
gemina_cat@163.com
4a3b6296ac88b566d5c90fdce51aa1335eb0806a
2cd10b2d480954eae373322308d07e5ba094db1e
/FILTER.py
7d0ec1b53f948a08010d1b6f0383bf3df339dd0c
[]
no_license
dasing/CBIR
fd103ee32ffa5db8580875a7a733f5eb81012f2a
c882db4ea04a4f340bfbd5f47d68611923881807
refs/heads/master
2021-08-16T10:34:17.802624
2017-11-19T16:16:22
2017-11-19T16:16:22
111,275,956
0
0
null
null
null
null
UTF-8
Python
false
false
861
py
import numpy as np import cv2 from PARAMETER import * def buildFilters(): filters = [] ksize = 31 orientation = 4 scale = 4 bandWidth = 4 for theta in np.arange(0, np.pi, np.pi/orientation): for sigma in np.arange(1, scale+1, 1 ): for lamda in np.arange(0, np.pi, np.pi/bandWidth): params = {'ksize':(ksi...
[ "f2283689@gmail.com" ]
f2283689@gmail.com
ad482575e6fc07931a01a486236fdad23538b5d3
58a9984d8ceb274ddd2e35a4c1416be22fb3081f
/cnn_baseline.py
a8a3310e8def303ad6ca874f1c4eed45df10ed6e
[]
no_license
KaranKaur/mnist
a694920420ca4650a950b25bec8aa3d98d779279
91b0776bdbf83a08bdd800f94e575da855414581
refs/heads/master
2020-03-28T07:10:21.621632
2018-09-08T00:50:29
2018-09-08T00:50:29
147,884,961
0
0
null
null
null
null
UTF-8
Python
false
false
2,576
py
# from keras.datasets import mnist import matplotlib.pyplot as plt import numpy as np from keras.models import Sequential from keras.layers import Dense from keras.layers import Dropout from keras.layers import Flatten from keras.layers.convolutional import Conv2D from keras.layers.convolutional import MaxPooling2D fro...
[ "kkaur89@umd.edu" ]
kkaur89@umd.edu
a96134858b3badb524e61aed9c77e9b7fcefa628
09dd88f7bc37a8d396af6c10b33c14caac00defb
/crypto/PhaseStream 3/find_aes_blocks.py
77a13ced4119ff2e647ed333bd7ec04b92ee073d
[]
no_license
NU-Cyber-Clinic/Cyber-Apocalypse-2021
8d80343c11d80e00914ea7522d8919e2b555bf68
ae032a074208f8a740885faacdcdcdff32f396c7
refs/heads/master
2023-04-11T01:42:08.483075
2021-04-28T15:58:15
2021-04-28T16:01:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
932
py
from bitstring import BitArray # CTR explainer: https://pycryptodome.readthedocs.io/en/latest/src/util/util.html#crypto-util-counter-module test = b"No right of private conversation was enumerated in the Constitution. I don't suppose it occurred to anyone at the time that it could be prevented." test_bin = BitArray(t...
[ "54325599+cosmin-bianu@users.noreply.github.com" ]
54325599+cosmin-bianu@users.noreply.github.com
8d32669cedc944fe8c0857c4eb88d72ec93d589a
5dfc16c0e22c5e1c5f04adbc5a382354801b5a35
/5-seq2seq/utils/optim.py
e96dce79a5a9b0850f80f16bc22fc91292a373fb
[ "MIT" ]
permissive
gothxx/Machine-Learning-Theory-and-Application
af632782887e53f2d5d4a63127c52160a4e036ff
e20cb4e2623786d9dc7540e3252b8bbf7a0b2553
refs/heads/master
2023-08-17T18:12:30.886054
2021-10-17T07:17:48
2021-10-17T07:17:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,567
py
# %% [markdown] # ## Optimizer: Adam + lr scheduling # Inverse square root 排程對於訓練 Transformer 時的穩定性很重要,後來也用在 RNN 上。 # 根據底下公式來更新 learning rate,前期線性增長,後期根據更新步數方根的倒數來遞減。 # $$lrate = d_{\text{model}}^{-0.5}\cdot\min({step\_num}^{-0.5},{step\_num}\cdot{warmup\_steps}^{-1.5})$$ # code [source](https://nlp.seas.harvard.edu/20...
[ "silencejiang12138@gmail.com" ]
silencejiang12138@gmail.com
ad008fd9022a57c2af0750b1b2aba2d6d91e46b7
eda721786c726373f9c8ae748ec9af61df27900b
/igep_qa/helpers/common.py
dcab3a6e8c35c21c71eaf8085206a199af8b95ff
[ "MIT" ]
permissive
eballetbo/igep_qa
60f66a136a26af1a5daa3f0e2f2278bb9d30f57e
d5a58a974250e435cd2e9a76514cd3eb6002c5f0
refs/heads/master
2020-03-29T13:16:30.695466
2014-02-19T14:53:51
2014-02-19T14:53:51
13,930,291
0
1
null
null
null
null
UTF-8
Python
false
false
4,355
py
#!/usr/bin/env python """ This provides various generic helper functions and classes """ import fcntl import mmap import os import struct import socket def is_in_path(name): """ Return True if name refers to an existing file in path, otherwise returns False. Keyword arguments: - name: The...
[ "eballetbo@iseebcn.com" ]
eballetbo@iseebcn.com
d6331878b4a8aeaaa369f97edecc824266ec6da0
a005085fbd9a938f79f330cdf380104aa373c944
/domainbed/munit/core/utils.py
c8baabda8b85c077469befd0f17ef4db9a9e65fc
[ "MIT" ]
permissive
iostream11/mbdg
46775318cfefed4eba2517a0bdffd0dc3c206cad
b4e768a6d31ab1e2cb0f0a3aad76832895068876
refs/heads/main
2023-06-03T14:24:34.594919
2021-06-16T16:48:29
2021-06-16T16:48:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,820
py
""" Copyright (C) 2018 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). """ # from torch.utils.serialization import load_lua from torch.utils.data import DataLoader from core.networks import Vgg16 from torch.autograd impo...
[ "arobey1@seas.upenn.edu" ]
arobey1@seas.upenn.edu
982cd66cd05486ce807cf58a7913b9abf4656f7a
dc2f1cf081b1c08907e2572ac9a484574b841ca5
/test_polygon_rect.py
435b2c17d882c260bc5adba99396cdc4f58a5f2a
[]
no_license
meekrob/merge-overlapping-svg-paths
52ede1136a771d7ed6cadfbb25d77b2942253a0b
04375132b7834494d8f900d531764cc451320e24
refs/heads/master
2020-09-27T18:34:05.522538
2019-12-08T21:04:14
2019-12-08T21:04:14
226,580,303
1
0
null
null
null
null
UTF-8
Python
false
false
1,422
py
#!/usr/bin/env python3 def list_to_svg_path_d(l): command = 'm' d = '' for point in l: d += "%s %.2f,%.2f " % (command,point[0],point[1]) command = 'l' return d + 'z' def merge_rect_into_polygon(rect, polygon): # for intersecting points between the rect and polygon, replace w...
[ "davidcking.inbox@gmail.com" ]
davidcking.inbox@gmail.com
100eb310ce1ac3e3f2486d6d9618a3bf5a705b8e
beab958fd74261f2598818b44666d4613de65774
/test_create_negative.py
748f78374128c19f7f12e6b8fc62d5056d3d0b47
[ "Apache-2.0" ]
permissive
ArtemVavilov88/test2-Se-Python-14
cb3ead45f144a1b08dea6fcd66a1764572534f00
522791b4fcde1d26b8e56244b10ebaf2e7146e57
refs/heads/master
2021-01-13T00:53:54.313505
2015-11-18T17:28:06
2015-11-18T17:28:06
46,283,812
0
0
null
null
null
null
UTF-8
Python
false
false
1,398
py
import unittest from selenium import webdriver from selenium.webdriver.common.keys import Keys class php4dvd_create_film_negtive(unittest.TestCase): def setUp(self): self.driver = webdriver.Firefox() self.driver.implicitly_wait(20) def test_create_film_negative(self): driver = self.d...
[ "avlov88@gmail.com" ]
avlov88@gmail.com
4bc7aecd3876eb2d91e7d6880e5c13737562dca5
e6e20cd07e12679fd3085ab5d9a75cb60353a96a
/apps/login_app/migrations/0004_auto_20170927_1201.py
6a51b738cfa5e227fa02e22f97e87c1c0f39e65e
[]
no_license
sneihaasawant/Friends
47b948658b6706ca1a7963c882423ad3d63befab
c74c85995b982b5e968142cb09853574849414d2
refs/heads/master
2021-08-27T23:01:46.158186
2017-12-10T16:21:11
2017-12-10T16:21:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
528
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-09-27 19:01 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('login_app', '0003_user_friends_with'), ] operations = [ migrations.AlterFie...
[ "sneha.s.sawant25@gmail.com" ]
sneha.s.sawant25@gmail.com
1d1b0213e352a561d37417353719711b31bd3de4
b51535db8031ce51babcc1d86073ff8e74504ef2
/primenumber.py
82078f0aba6378c1115906dabe6f1a7bd2bfd52f
[]
no_license
chriskok/PythonLearningWorkspace
d5750b3cbf651538e58b97ae3f9889f157a3ca33
2852f47b5eb6e52d549ded0324418b2d492cef29
refs/heads/master
2021-01-24T08:44:22.412024
2018-03-19T14:15:13
2018-03-19T14:15:13
122,990,979
1
0
null
null
null
null
UTF-8
Python
false
false
696
py
# Note, prime can only be divided by 1 and itself # 5 is prime because only divided by 1 and 5 - positive factor # 6 is not a prime, divide by 1,2,3,6 # use a for loop and check if modulus == 0 True def is_prime(num): for i in range(2, num): if (num % i) == 0: return False return True d...
[ "ckok@purdue.edu" ]
ckok@purdue.edu