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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3b6ffa579942e3089b775231bc77f9c40543b419 | 670d0b11dc0b6e32457f871af31800e71bf07e47 | /Application Testing.py | 10681de90d86e41dcfab886552d676054ae58d99 | [] | no_license | M3llow/App-Testing | ad79fcd05413eeab0f71106cb98b3e19c6b63d6f | 9320af41c96a6d427f546b0fd1e3b481a8ec7ea5 | refs/heads/master | 2020-12-07T13:24:42.310095 | 2016-08-22T02:23:31 | 2016-08-22T02:23:31 | 66,232,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | score = {"a": 1, "c": 3, "b": 3, "e": 1, "d": 2, "g": 2,
"f": 4, "i": 1, "h": 4, "k": 5, "j": 8, "m": 3,
"l": 1, "o": 1, "n": 1, "q": 10, "p": 3, "s": 1,
"r": 1, "u": 1, "t": 1, "w": 4, "v": 4, "y": 4,
"x": 8, "z": 10}
def scrabble_score(word):
word = word.lower()
result = 0
... | [
"brockmannjacob@gmail.com"
] | brockmannjacob@gmail.com |
d31b2151339897d3c273a39862549c53ad53af07 | 6645f1de75a16895f2bdde1d3af49cc537b68d2c | /main.py | 77d5019fd2e71d23825d5a41db9d033091c2e56c | [] | no_license | deepakhr1999/cyclegans | 42d2e715daceb22e7f2f49ed682b0ff81e6760b3 | 3bc5f1763a0f753554a148f3e12fc2ff528febe9 | refs/heads/main | 2023-02-11T11:34:57.371200 | 2020-11-08T05:03:33 | 2020-11-08T05:03:33 | 308,601,974 | 2 | 3 | null | 2023-01-25T12:42:38 | 2020-10-30T10:49:24 | Jupyter Notebook | UTF-8 | Python | false | false | 618 | py | from models.PageMaker import main
import argparse
parser = argparse.ArgumentParser(description="Display results of monet2photo in a webpage")
parser.add_argument('--refresh', action='store_true',
help='run neural network to overwrite input and output images')
parser.add_argument('--dataroot', d... | [
"deepakhr1999@gmail.com"
] | deepakhr1999@gmail.com |
38723203b79a0913486767469b468bcf4790caac | 795ba44e09add69a6c3859adf7e476908fcb234c | /backend/mod_training_1_27492/urls.py | 58881d4c5e4d89926432059cb0802a8f7062e3db | [] | no_license | crowdbotics-apps/mod-training-1-27492 | 0df7b863ef18e7ba4e3f1c34f1bac7554e184553 | 91815c10d4f8af1e18bb550db97373b4099a4ae9 | refs/heads/master | 2023-04-26T00:57:13.854464 | 2021-06-01T19:48:41 | 2021-06-01T19:48:41 | 371,498,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,247 | py | """mod_training_1_27492 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'... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
1ce6e360788df9bfd624084b9d52e63ebf6b79a4 | bc410e82f0b88cdba6c5ccc4c9f5ebbc3870c3e5 | /python/test_python3_cli.py | bcf3ccb60c5c6140d33a17bf0f572d5848899aa1 | [] | no_license | shlsheth263/malware-detection-using-ANN | d3c6be2cafc809d7acfe8c28c356f8f3d276fa2d | 28f78002ef505bd1fa2faedfd6fcdec318151bca | refs/heads/master | 2020-12-27T11:05:25.748158 | 2020-02-03T04:09:00 | 2020-02-03T04:09:00 | 237,879,887 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 14,290 | py | #!/usr/bin/env python
import sys
import time
import pandas as pd
import pepy
import binascii
import numpy as np
from hashlib import md5
import sklearn
from tkinter import *
from tkinter import ttk
from tkinter import filedialog
from tensorflow.keras.models import load_model
def test(p):
exe = {}
print("Signature... | [
"shlsheth263@gmail.com"
] | shlsheth263@gmail.com |
2591f45096bfbb30a7663d0aa7b8bbb5b3acf779 | 078b7e611eba828f9de284d9a853f0da03999b75 | /NewBegin/apps/users/serializers.py | 353a374f90dad386174ae1ac908990549222d8e6 | [] | no_license | xinsixiangyi/online | 209247a71d2ba7f91263c782762bbad7ca6db8e2 | e316091e15779dbdbfaf9d72255b9fa96bec9462 | refs/heads/main | 2023-05-08T03:49:16.611693 | 2021-05-27T09:30:29 | 2021-05-27T09:30:29 | 371,316,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,239 | py | # users/serializers.py
__author__ = 'derek'
import re
from datetime import datetime, timedelta
from NewBegin.settings import REGEX_MOBILE
from users.models import VerifyCode
from rest_framework import serializers
from rest_framework.validators import UniqueValidator
from django.contrib.auth import get_user_model
User ... | [
"xinsixiangyi7@163.com"
] | xinsixiangyi7@163.com |
757be31d0a8a594fac3f12372dc79f6099ba8392 | c4a88ea09e4719252ec047ee3ebf5ba30dd2bf58 | /sudoku_back_1.py | 481604e8ddd0a2e03c2ae9018b315e4f47878be7 | [] | no_license | lorentealberto/ProyectosYT | 9cce54cfa4e9d071b801ecf228361dc75a34dc6b | 26da2d6f2b18aaf5b9d50a3838632024e6ebe0c9 | refs/heads/master | 2022-12-02T20:58:40.302556 | 2020-08-10T20:22:20 | 2020-08-10T20:22:20 | 261,117,493 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,230 | py | board = [
[7,8,0,4,0,0,1,2,0],
[6,0,0,0,7,5,0,0,9],
[0,0,0,6,0,1,0,7,8],
[0,0,7,0,4,0,2,6,0],
[0,0,1,0,5,0,9,3,0],
[9,0,4,0,6,0,0,0,5],
[0,7,0,3,0,0,0,1,2],
[1,2,0,0,0,7,4,0,0],
[0,4,9,2,0,6,0,0,7]
]
def print_board(board):
for i in range(len(board)):
if ... | [
"noreply@github.com"
] | lorentealberto.noreply@github.com |
57407a4e5c3c287504c247c36f7b26e3cc36186b | f730a3792d71c7a6c4bc4418039de3420e067a20 | /app/snippets/views/django_view.py | 1a33c4b1b56ab72ab0f5076ca0bea15dc4691e22 | [] | no_license | kwonsoonwoo/drf | 7ec215cb557c7c8bf6f64dbdbe86f2baa6fdce76 | 448d7de623764a5a2fca8fba6073829d5fb14813 | refs/heads/master | 2020-03-23T09:04:25.918846 | 2018-07-28T14:57:36 | 2018-07-28T14:57:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,575 | py | from django.http import HttpResponse
from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
from rest_framework.parsers import JSONParser
from rest_framework.renderers import JSONRenderer
from ..models import Snippet
from ..serializers import SnippetListSerializer
__all__ = (
'sn... | [
"zenuine1@gmail.com"
] | zenuine1@gmail.com |
830d6422e18a61a107869f74b705a1be4c49974a | 2617f1d679dbd1b0cfd220020e7f7682765aecd2 | /quicksort.py | 6b043296678f0f80cc4530661ec612f6aeade89e | [] | no_license | dragonlee8/leetcode | 33127fca733deb8914351fd751b744b976e62b5e | b6328e726c8d986d6b85e2d41c7e678e29dc1153 | refs/heads/master | 2022-03-28T04:00:54.690243 | 2022-02-16T15:53:02 | 2022-02-16T15:53:02 | 61,008,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | def quicksort(nums, start, end):
if start >= end:
return
pivot = nums[(start + end)/2]
left = start
right = end
while left <= right:
while left <= right and nums[left] < pivot:
left += 1
while left <= right and nums[right] > pivot:
right -= 1
... | [
"noreply@github.com"
] | dragonlee8.noreply@github.com |
e6c375b75128ac6fa0a153e094573e7757da7e2c | ee13ead20a9e0fcca072a6f5fd6054e453e97d40 | /H2H/Event/migrations/0001_initial.py | e3fded0316815c52d4ef5621f365ee6eeea4f6d8 | [
"MIT"
] | permissive | saefty/happy2help_backend | ade2cde5c7754f8b0e78a6c9d97c86a31848d298 | da4bbd8d18a122ec87fc9ebc655864f3789fd8a7 | refs/heads/master | 2022-12-10T05:21:38.237694 | 2019-01-29T20:54:59 | 2019-01-29T20:54:59 | 162,439,108 | 0 | 0 | MIT | 2022-12-08T01:29:19 | 2018-12-19T13:10:32 | Python | UTF-8 | Python | false | false | 2,611 | py | # Generated by Django 2.1.2 on 2018-11-14 15:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('Organisation', '0001_initial'),
('Feedback', '0001_initial'),
... | [
"tahersaef@gmail.com"
] | tahersaef@gmail.com |
0e8eb7cfd16b0572c20b19d0ca5619c7eecbd659 | 7c9917d62959b8d69309d44362481356e632083e | /enzymatic_bias/profile_model_of_bias/kmer_init_tuned/dnase/24mer/model.py | 8e07a5bc7b4e1400fd6be929ca7b482df4c88a82 | [
"MIT"
] | permissive | kundajelab/bias_correction | bee77bd2d36268aa6b7046b817e9e349c8cc8238 | 521678ea8739473f793b0ce85e22e622d13df6fe | refs/heads/master | 2021-06-21T11:34:54.558788 | 2021-06-10T06:39:35 | 2021-06-10T06:39:35 | 218,137,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,974 | py | import pickle
import pdb
import numpy as np ;
from keras.backend import int_shape
from sklearn.metrics import average_precision_score
from kerasAC.metrics import *
from kerasAC.custom_losses import *
import keras;
#import the various keras layers
from keras.layers import Dense,Activation,Dropout,Flatten,Reshape,In... | [
"annashcherbina@gmail.com"
] | annashcherbina@gmail.com |
a6f40790ec59ca880f820c6ea48eec991dbfbb07 | 59e27c001d25c82f0af71a371eb096eaa106a9db | /app/models/first.py | 844aebe310cc6014653701ce0dfa59a9dd37af0b | [] | no_license | zout/django-pylint-issue | a99ffba2178317b89a2280bf73258bd7d85cb6ca | 10e715ba8a56d254aecd12ff6961cca7cf06f20e | refs/heads/master | 2020-05-18T23:54:06.214231 | 2019-05-03T08:38:45 | 2019-05-03T08:38:45 | 184,723,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | from django.db import models
class First(models.Model):
field_one = models.CharField(max_length=30)
field_two = models.CharField(max_length=30)
second = models.OneToOneField('Second', blank=True, null=True, on_delete=models.PROTECT) | [
"josh@peperzaken.nl"
] | josh@peperzaken.nl |
9363128897ed22273d5dd2b58846e010c3f7b877 | e48d9bc1b8cc5662793417b79208ebbbb371579e | /CourseScheduling/blueprints/user/models.py | 40d008c55f5e069a563253466f43e932323c694f | [] | no_license | yitongw2/CourseScheduling-Web | d14ccb5eba579e4c1ee4564270ac7c3071bc1d21 | b93bf38ee70e21bc4bf99cbabd7320d116e48f50 | refs/heads/master | 2020-12-30T11:01:52.255064 | 2017-11-18T09:57:34 | 2017-11-18T09:57:34 | 98,833,859 | 14 | 0 | null | 2017-07-31T00:48:57 | 2017-07-31T00:48:57 | null | UTF-8 | Python | false | false | 659 | py | from CourseScheduling.extensions import db
from flask_security import UserMixin, RoleMixin
from datetime import datetime
class Role(db.Document, RoleMixin):
name = db.StringField(max_length=80, unique=True)
description = db.StringField(max_length=255)
def __unicode__(self):
return self.name
clas... | [
"jennyzengzzh@gmail.com"
] | jennyzengzzh@gmail.com |
27034ddfc234a53e1d499e40e3fd290c87a9a6ec | ad4be75dce2bb1fc5ea2147e774af09a1c1235b7 | /week3/bst_check.py | 7adf4dd416756336f184c6925134c5a25b1897b3 | [] | no_license | AntonAtanasov/Algorithms | e68caaae0b34797ed6d61788666aec435f54baad | 1dc1fd5ed902330b8361fe8d1893e119d07b43f5 | refs/heads/master | 2021-01-13T17:05:27.275949 | 2015-06-29T17:35:21 | 2015-06-29T17:35:21 | 36,810,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | def isBST(current, min_range=minint, max_range=maxint):
return (current.value > min_range and current.value < max_range)
and isBST(current.left_child,
min_range=min_range, max_range=current.value)
and isBST(current.right_child,
min_range=current.value, max_range=max_range)
| [
"anton.p.atanasov@gmail.com"
] | anton.p.atanasov@gmail.com |
ba84359c177d1b7b9405c4e2b6a2c22bf8f0e1e4 | e965cac2359855d64f1c218a372a97bc20224f8e | /script/ros_cca2.py~ | 0f025a9daf3c3ccd5027e56d6b56f3079009fd01 | [] | no_license | cvpapero/rqt_cca | 45546a33e8e98971aa4f77e10c9e1b7c94f6dcee | c16227e9a4a19f813c617320cb42ca45dd625cb5 | refs/heads/master | 2021-01-10T12:42:13.199129 | 2016-01-17T08:58:01 | 2016-01-17T08:58:01 | 46,414,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,436 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import math
import json
import numpy as np
import scipy as sp
from scipy import linalg as LA
from scipy import stats as ST
from PyQt4 import QtGui, QtCore
from PyQt4.QtCore import *
from PyQt4.QtGui import *
import rospy
from visualization_msgs.msg import Marke... | [
"cvpapero14@gmail.com"
] | cvpapero14@gmail.com | |
c51867d2cd55c0e97a84af6332cfcfd529eeb1d2 | 40be7c7a50b839a922c22ea624123b11e5da25cb | /feria/migrations/0003_franquicia_imagen.py | c252e9fbb8cc5b7835b3b8c49f36ae453c9fd74f | [] | no_license | LuberNavarrete/sistema | e70b15d0410402ceb6f3ba2a320886d5b225c65c | e4800f3aa2cdde69189a43dcf9543be85ed14693 | refs/heads/master | 2021-01-10T16:54:21.479466 | 2015-11-15T14:21:20 | 2015-11-15T14:21:20 | 44,011,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('feria', '0002_auto_20151008_1937'),
]
operations = [
migrations.AddField(
model_name='franquicia',
n... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
dc5563211af17e5d9915abd984491ee5099432da | e6104415919ab718f2cf36e646cce169641b9f6d | /pages/info_activity_page.py | 9916f9c90e53c4fc33a6001682089e7d95c1118b | [] | no_license | mskib77/Literowiec_POM | 1b2d3b1bf56d60f381927e3af5942edbac221afe | 6e6b33cec5aff7f7fbd8928a7bca3b6abbb8609d | refs/heads/main | 2023-04-12T00:53:23.776674 | 2021-05-21T12:47:51 | 2021-05-21T12:47:51 | 367,612,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from locators import InfoActivityLocators as IAL
class InfoActivity:
def __init__(self, sterownik):
self.driver = sterownik
def get_action_bar_title(self):
action_bar_tile = self.driver.find_element(*IAL.ACTION_BAR_TITLE)
return action_bar_tile | [
"mskib77@gmail.com"
] | mskib77@gmail.com |
1b10b9a83b4874947e6fac5ad5f9b2b8a663e8f6 | 2c1df549222bcd56e1be51a400b6d698af891e16 | /web_attachment/__init__.py | 970b9fdbb5c17ca23d1f599064725c3b6aa88dcb | [] | no_license | pdldeepak/Odoo-DMS | b6fb971fb65cd6d0bfa7f33bf41966889bc87f6c | 8094a74c77b0b538ae2797afbcc670001198c4e7 | refs/heads/master | 2020-04-15T21:42:39.891462 | 2017-01-11T07:15:38 | 2017-01-11T07:15:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | # -*- coding: utf-8 -*-
# © 2016 Hardikgiri Goswami < hardikgiri.goswami@gmail.com >
| [
"hardikgiri.goswami@gmail.com"
] | hardikgiri.goswami@gmail.com |
0f93c5c802745c040b196007f216fc2aeef1e9de | deb2ed6fdfb313e3c284ff48dd3ef397974207d9 | /ejerciciospython/ejemplo2.py | 3770b5c3c56972de87f5aabf14aaba8e3d4bba4a | [] | no_license | h-yuna282/ejercicios | 66c0c55b2ae4b46a7c6f8fd085c240946c66cdb1 | 0586a59e28905c726e2441cdd9fd55b02d11a635 | refs/heads/master | 2020-07-01T23:37:40.547906 | 2019-08-08T22:18:45 | 2019-08-08T22:18:45 | 201,345,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | num1 = int(input("Digite primer numero: "))
num2 = int(input("Digite segundo numero: "))
print("El resultado es: ", (num1+num2))
| [
"noreply@github.com"
] | h-yuna282.noreply@github.com |
de6244f21e653fc65494bc12cdeb22d128f0e568 | 0404b6dd42e49c89fb236153b2801766f0cc93c7 | /keyrings/osx_keychain_keys/examples/backend_example.py | 9383771f5674fea96aa44f497d48b0b39564a10e | [
"MIT"
] | permissive | dany74q/keyrings.osx_keychain_keys | d0df077a627ab856cd81aca1387af36d58ae6796 | 5613d64344bd40ccd9df58a1d898d55f8903dfc5 | refs/heads/master | 2022-12-27T04:51:14.147690 | 2020-10-08T21:13:54 | 2020-10-08T21:13:54 | 297,014,154 | 5 | 0 | MIT | 2020-09-20T10:38:20 | 2020-09-20T06:13:58 | Python | UTF-8 | Python | false | false | 1,386 | py | from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKey
from keyrings.osx_keychain_keys.backend import (
OSXKeychainKeysBackend,
OSXKeychainKeyType,
)
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primi... | [
"dany74q@gmail.com"
] | dany74q@gmail.com |
23b86de44ae5a0337a2b707813d617dc416de015 | db01067e88324466ba4743e5e53cd53de609c342 | /03. Lists Basics Exercises/03. Football Cards.py | c2d03bed8d506168b4eb5caf4e51b5211d83abdf | [] | no_license | IlkoAng/-Python-Fundamentals-Softuni | 07eaf89d340b2e60214ab5f8e896629ae680dc4a | 01a112b13e84ab2f29e6fc4ed39f08f395d54429 | refs/heads/main | 2023-05-18T02:11:53.676763 | 2021-06-06T15:39:22 | 2021-06-06T15:39:22 | 371,475,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | team_a = [1] * 11
team_b = [1] * 11
cards = input().split(" ")
for card in cards:
sep = card.split("-")
team = sep[0]
player = sep[1]
idx = int(player) - 1
if team == "A":
team_a[idx] = 0
if team == "B":
team_b[idx] = 0
if sum(team_a) < 7 or sum(team_b) < 7:
... | [
"noreply@github.com"
] | IlkoAng.noreply@github.com |
c9c6b00ba2286bfff1bc7410a7a173b724a7a3a3 | 5c11dd73ca7924234bf55c3b007a73f4ab91f978 | /main.py | 284050373e5eb9642f5008b2e39b619754d60d7e | [] | no_license | zdenekmaxa/gae | 130fcd7e02320e5a8901310beb41ee9af6f14ce7 | 7f6ec68959fdc110cdca04d77abfba6e9d7d1afa | refs/heads/master | 2021-01-19T00:09:00.277201 | 2014-12-02T12:49:27 | 2014-12-02T12:49:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | # -*- coding: utf-8 -*-
"""
Google App Engine experiment application.
Minimal application.
Main application file.
"""
import json
import logging as log
import datetime
import webapp2
from google.appengine.api import users
class RequestHandler(webapp2.RequestHandler):
def index(self):
msg = "current ... | [
"zdenekmaxa@yahoo.co.uk"
] | zdenekmaxa@yahoo.co.uk |
7974a211f8fc21832caa43e5bd18d505112783f5 | 9ae3b4e8b1374afa3a58a3076b3d8f76756e4456 | /streamkov/worker.py | d02b0f284b25f16ba9eb24eba8e1b2a106efda51 | [
"MIT"
] | permissive | bhtucker/streamkov | be9b9e1bd31bda828f81a6b6a08b8ed6234e0d60 | 3ac733b82a41b2222722f44188d2e421ce16f4e0 | refs/heads/master | 2016-09-14T19:58:50.474391 | 2016-05-25T21:44:13 | 2016-05-25T21:44:13 | 55,984,472 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,847 | py | # -*- coding: utf-8 -*-
"""
worker
~~~~~~
Task interface to app's MarkovGenerator
"""
from streamkov.text import generate_bigrams, decode_lines
from streamkov.utils import get_timeline, slow_sorted_lines
from streamkov import logger
import requests
import asyncio
@asyncio.coroutine
def receiver(queue, m... | [
"benson@chatid.com"
] | benson@chatid.com |
78f90d925d5388e274fa619781372f674717e2de | f99101addde6db47c0854c096c3da03622962421 | /server/api/Api.py | 5b8a848fe301293e9a54c1ab0a17222b91e5694c | [
"MIT"
] | permissive | HumaneWolf/tbanekart | 11ab61e4ca94d5917e371c043e5924413cca94c1 | 2fe76cea843935ca378dd00d2b02b34e66ad617f | refs/heads/master | 2021-04-15T04:13:07.239029 | 2018-08-14T08:32:06 | 2018-08-14T08:32:06 | 126,643,889 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from flask import Flask
from lib.Config import Config
from lib.Redis import Redis
api = Flask(__name__)
redis = Redis(Config['REDIS']['host'], Config['REDIS']['port'])
| [
"humanewolf@gmail.com"
] | humanewolf@gmail.com |
84c5cbf8c50468e4b487b9785187bd5ea5604ca4 | 2fa00f3b0fe9924bae481897a2e34f007dc2182d | /venv/Lib/site-packages/dash_html_components/Area.py | 792b891c5564f0bab8cb26f7286a3e2966d5f85b | [] | no_license | amifidele/eventbrite | c488843f1f659df1c323a4d72d7424f3cda66caa | 42f58aae12dbd9e6868d88817f8998d469ed7172 | refs/heads/master | 2022-12-17T17:20:54.045180 | 2020-03-31T13:53:00 | 2020-03-31T13:53:00 | 225,651,148 | 12 | 3 | null | 2022-12-08T05:24:41 | 2019-12-03T15:18:45 | Python | UTF-8 | Python | false | false | 5,710 | py | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Area(Component):
"""A Area component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional): The children of this component
- id (string; optional): Th... | [
"amifidele333@gmail.com"
] | amifidele333@gmail.com |
0646418caf5fa366376086cdc798538ca64299b4 | 84bdbb67931f9c4cb4ab15917834b6275dd11139 | /print_function.py | a56a6036f2aa3106ce7664d61f4a5c003bb08120 | [] | no_license | skfreego/Python_Basic- | 4e597cea6a6c699e1298f689f663bcc4d180b417 | fcb72a929814252fd57ff7f6d557f8a97d5156e0 | refs/heads/main | 2023-08-22T01:37:30.998591 | 2021-10-13T17:00:50 | 2021-10-13T17:00:50 | 416,826,924 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | """
Task:- The included code stub will read an integer,n,from STDIN.Without using any string methods,try to print the following:
123...n
Note that "..." represents the consecutive values in between.
Input Format:- The first line contains an integer n
Output Format:- Print the list of integers from 1 through n as a... | [
"noreply@github.com"
] | skfreego.noreply@github.com |
47a4efe28c0c59472dab8e22210db969dc26542c | 66abb382a434aa079887ab899a2d81a1b913b572 | /Lab2/Zad2.py | 3dc3c93098d4c11df91cece15acdffc4607c233a | [] | no_license | trina24/ALK | 6b2452d8767324229c2f8ec8dc1ae7de900fb085 | a35354ad7b34742654ab918191abc545322c92ba | refs/heads/master | 2021-01-21T04:59:50.992997 | 2016-06-04T18:47:48 | 2016-06-04T18:47:48 | 52,913,148 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | # -*- coding: utf-8 -*-
# Napisz program generujący w porządku leksykograficznym wszystkie
# ciągi długości k zbudowane z liczb od 1 do n. Użyj algorytmu
# rekurencyjnego.
class Generator:
def __init__(self, n, k):
self.n = n # maksymalna wartość w ciągu
self.counter = k-1 # licznik ustawiamy ... | [
"katarzyna_kalek@wp.pl"
] | katarzyna_kalek@wp.pl |
62b8d0a25002a4ce012a294ac2c35cf06f43af9c | 656b73e25471c77e6f010689b816168aea774bf1 | /ransac_curve.py | 58cd0fe6e5311b50aedf582e192abc2071323f5f | [] | no_license | tom13133/ransac | b45cb2d60a448fbf615fdbd4afec0b38911afba5 | dfbb60720d966e237e90f3f5ba30ea2a64d158fa | refs/heads/master | 2020-12-03T03:01:47.831102 | 2020-04-13T06:24:08 | 2020-04-13T06:41:03 | 231,189,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 31 13:39:17 2019
@author: yuhan
"""
import matplotlib.pyplot as plt
import csv
import numpy as np
import math
# estimate the curve parameters given three points
def curve_fit(hypo_inliers):
p1 = hypo_inliers[0]
p2 = hypo_inliers[1]
p3 ... | [
"zero000.ece07g@nctu.edu.tw"
] | zero000.ece07g@nctu.edu.tw |
8c2771a8443899c60403dc6a3d8d3fcc2a387845 | 25c27119f47522e2759368638360b72c2a424ba8 | /scholarly_repo_django/manage.py | f6c2554ae21a1f4d29496e1582a056821f4182ce | [] | no_license | Numbers00/CS-121-Simple-CRUD-Fixed | 5043b5c1c501e14b2d5623541917939e12d29ef5 | cf905e44d44a237e19a67c19ad3a6739968d183c | refs/heads/master | 2023-05-23T03:06:24.690982 | 2021-06-13T07:48:38 | 2021-06-13T07:48:38 | 376,257,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'scholarly_repo_django.settings')
try:
from django.core.management import execute_from_command_line
... | [
"kmaquino@up.edu.ph"
] | kmaquino@up.edu.ph |
acb1d6ec4e6f87ad172e462e0a3fafe493df060a | 9cf65e0068b486fa8627172ec2342eb6c5dc4fac | /test_items.py | 681e1293ff3ec63914c825e83ed7e142ecf4b1f1 | [] | no_license | victor-kozlovsky/stepik--pytest | 7b13e58334aa375d084a79595def4b5f7b30ca7f | eb84459b25fbfa8426289fbdf8c1d351ed11944e | refs/heads/master | 2020-09-29T20:03:50.234129 | 2019-12-10T12:35:48 | 2019-12-10T12:35:48 | 227,111,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | from selenium.common.exceptions import NoSuchElementException, TimeoutException
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
# import time
link = "http://selenium1py.pythonanywhere.com/catalogue/cod... | [
"victor.kozlovsky@gmail.com"
] | victor.kozlovsky@gmail.com |
fd720e27cae5455cad2c88d7db98a63d289be0e2 | c2d29753af6c439b882af02ea2669bdde4a67346 | /account_invoicement/models/stock_picking_type.py | 26bedb3f2cf044907b4f3388adaa17ea2f3142ff | [] | no_license | HassanRafat95/Task1- | 3ca9a8518a5df4002fa1e1e10c82f984e223e26d | d53ba0b8d2f852c1dfc7e986e131460a0803fc74 | refs/heads/master | 2023-06-30T07:08:35.926996 | 2021-08-05T15:15:38 | 2021-08-05T15:15:38 | 384,973,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | from odoo import fields, models
class PickingType(models.Model):
_inherit = "stock.picking.type"
analytic_account_id = fields.Many2one('account.analytic.account', string='Analytic Account')
| [
"hassanrafat95@gmail.com"
] | hassanrafat95@gmail.com |
e61e6eb81f56668ff66e12724b808982f135aef2 | c598e71fd1fdd9469b9616178cc4daab9a509841 | /4. Leader&Team Dynamics - from simulation to experimentation (with Simn Karg)/oTree/__temp_migrations/LCG/0058_auto_20190214_1123.py | 7a1d4d42f59c0ef92627abfbe40c4298373e6399 | [
"MIT"
] | permissive | Rnault/SCDC-archives | 0e8f7612c59ccb07b9708963481f9c5c7f3530b5 | 4de173bf807a235a3529d6e19ecc70de583173ab | refs/heads/master | 2020-07-05T19:15:27.241907 | 2019-11-30T20:37:04 | 2019-11-30T20:37:04 | 202,743,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,350 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2019-02-14 10:23
from __future__ import unicode_literals
from django.db import migrations
import otree.db.models
class Migration(migrations.Migration):
dependencies = [
('LCG', '0057_auto_20190214_1109'),
]
operations = [
migration... | [
"32672200+Rnault@users.noreply.github.com"
] | 32672200+Rnault@users.noreply.github.com |
a806bb44af8fd2082c0d1c4c513a3b7af6ce2ee9 | a79cc51d690182385a3c45ec52440967dbf04acb | /graphene_federation/tests/test_schema_annotation.py | 2e5f10a22d801f210f40d65483ec9fcfef440552 | [
"MIT"
] | permissive | noelleleigh/graphene-federation | bd5bc6b896e05f49bca2309484fd72d8204ac71b | 8cfada6db531b804ca76742b07dc27eb7773464a | refs/heads/main | 2023-03-17T21:49:32.178609 | 2022-10-30T16:57:39 | 2022-10-30T16:57:39 | 252,516,840 | 1 | 0 | MIT | 2020-04-02T17:03:38 | 2020-04-02T17:03:37 | null | UTF-8 | Python | false | false | 4,900 | py | from graphql import graphql_sync
from graphene import ObjectType, ID, String, NonNull, Field
from ..entity import key
from ..extend import extend, external
from ..main import build_schema
# ------------------------
# User service
# ------------------------
users = [
{"user_id": "1", "name": "Jane", "email": "jan... | [
"thomas@loftorbital.com"
] | thomas@loftorbital.com |
9d94c65e8903e1c57b540298fa2372bc8a0a757e | a038f56dc42fc7c145d9faf48c8b9e56767277c6 | /integrationtest/vm/multihosts/ha/test_stor_sep_nfs_vm_ha_grace_stop_start_host.py | def5cb1f4f88951715eea803bab341d1d8733a11 | [
"Apache-2.0"
] | permissive | yelongyu/zstack-woodpecker | 495b5780190a1186400b20375c5e964c6a39b57f | fc802fd2bd17e8b3387db1efb150a6550676672d | refs/heads/master | 2022-02-17T10:51:05.318291 | 2017-09-29T01:42:20 | 2017-09-29T01:42:20 | 105,100,441 | 0 | 0 | null | 2017-09-29T01:45:03 | 2017-09-28T03:59:16 | Python | UTF-8 | Python | false | false | 4,810 | py | '''
Test for KVM VM force stop and start host check vm running on other host
The test is specific for NFS storage network separation scenario
@author: SyZhao
'''
import zstackwoodpecker.test_util as test_util
import zstackwoodpecker.test_state as test_state
import zstackwoodpecker.test_lib as test_lib
import ... | [
"zsyzsyhao@foxmail.com"
] | zsyzsyhao@foxmail.com |
951e87820000a2ba516ce5733b3db4e751382387 | be0eda70579e191d7dd1ace87ccbda8a3e85474e | /app01/urls.py | 78bd401466e3cf6df768de0ca595ee3d970007da | [] | no_license | zxycode-2020/django_tutrital2 | 084ebe4a83e7a9724163ae54b816239ff2b0cce6 | 969ce0b3caca92c045afee0e5eb628f9afb35b48 | refs/heads/master | 2022-05-03T23:22:17.075830 | 2020-02-05T03:11:09 | 2020-02-05T03:11:09 | 236,920,126 | 0 | 0 | null | 2022-04-22T23:00:29 | 2020-01-29T06:40:39 | Python | UTF-8 | Python | false | false | 577 | py | from django.urls import path, include
from app01.views import index, article, test_url, student, \
students, args, reg, xuanran, orm_test, post_cls, get_cls
urlpatterns = [
path('index/', index),
path('article/<str:aid>/', article),
path('test_url/', test_url),
path('students/', students), ... | [
"1049939190@qq.com"
] | 1049939190@qq.com |
8bf293c005f935f5d50f9c3ea364f519367ed39e | 3a0993650cbb064daa137f349d53a1c5519b7e81 | /_modules/rundeck.py | 11f678fa37619124fa692c036e3812ed54ca8f5e | [] | no_license | rmeleromira/salt-formula-rundeck | a3c6f56839a1a248a7187cbfce58b6d932d7a397 | f00ea6909cbb3d206b7b4fae5045d9ab12db6efc | refs/heads/master | 2021-06-24T03:02:19.437838 | 2017-09-01T09:38:03 | 2017-09-01T09:38:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,615 | py | import logging
import salt.exceptions
import requests
from requests.compat import urljoin
LOG = logging.getLogger(__name__)
# Project
def get_project(name):
session, make_url = get_session()
resp = session.get(make_url("/api/18/project/{}".format(name)))
status_code = resp.status_code
if status_co... | [
"ikharin@mirantis.com"
] | ikharin@mirantis.com |
7442ea62889e938751a525dbb31dd2d26072de0d | 7fd485b6bea41b99c855cf05557a584baba37078 | /bootstrap/middlewares.py | f90904ccef750d489dd2f6792549a04f6043d199 | [] | no_license | Liu-ShiSan/BootStrap | 29ad7b225b4822bec916110a6c0fb7c43a4915e3 | b599edaf35ab01ba57c16f1e0b7788b3d9f0f3da | refs/heads/main | 2023-08-11T09:22:44.296301 | 2021-01-17T08:52:47 | 2021-01-17T08:52:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,603 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class BootstrapSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrap... | [
"noreply@github.com"
] | Liu-ShiSan.noreply@github.com |
66e0c94bf4d3aaa4f0839a4397f2607a5d74a185 | 34fafe0ce4a28a0b2ace024858868ed030d5e432 | /Analyzer/test/Tamas/Unused/submitCrabJobsData_woProbQ_2018D.py | 42729836233e8ea9092e381402cb63f798d0b062 | [] | no_license | CMS-HSCP/SUSYBSMAnalysis-HSCP | d40fe64ece600fc0909a2c32eb07b4204784948c | 809271e1dacc98d34992561b5fcb502c01cc1172 | refs/heads/master | 2023-07-25T00:46:38.870643 | 2023-07-11T20:25:12 | 2023-07-11T20:25:12 | 164,119,298 | 3 | 16 | null | 2023-07-11T20:25:14 | 2019-01-04T14:47:05 | Python | UTF-8 | Python | false | false | 2,983 | py | import sys, os, time, re
import numpy as np
#from common_functions import *
from optparse import OptionParser
parser = OptionParser(usage="Usage: python %prog codeVersion")
(opt,args) = parser.parse_args()
datasetList = [
"/SingleMuon/Run2018D-15Feb2022_UL2018-v1/AOD",
]
codeVersion = sys.argv[1]
#just the number, li... | [
"vami.tamas@wigner.mta.hu"
] | vami.tamas@wigner.mta.hu |
c315e77f91ce3e4b8c7fa66b3d4d64961f75e6a0 | 67ae7f2a13f3f096e435831bf4f8d0d87a8e72d2 | /app.py | 10015f09accce3d1cf690e7258670301e236526f | [
"MIT"
] | permissive | KnightHacks20/KnightHacksAPI | 28bf2d68881db576ab67419728983440f925b2f3 | a347be4efc995f097a4706a64b85b75822da2f3b | refs/heads/master | 2022-12-28T14:19:21.945222 | 2020-10-11T09:24:30 | 2020-10-11T09:24:30 | 303,008,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,853 | py | import sys
import os
import pandas as pd
import glob
import urllib
import tempfile
import warnings
import json
from PIL import Image
import PIL
warnings.filterwarnings("ignore")
from flask import Flask, request, jsonify, send_file
app = Flask(__name__)
api_root = r'./'
taxonomy_path = 'https://lilablobssc.blob.core... | [
"lieugenebaba01@gmail.com"
] | lieugenebaba01@gmail.com |
4052c872dbac2fd274177618ea0b913cd7c86450 | 6a9f06b967d7641ddff7b56425651b29d3e577f4 | /mindinsight/mindinsight/backend/datavisual/train_visual_api.py | a868a443c817c402a689b20195737d12c7706bd9 | [
"Apache-2.0"
] | permissive | ZeroWangZY/DL-VIS | b3117016547007b88dc66cfe7339ef02b0d84e9c | 8be1c70c44913a6f67dd424aa0e0330f82e48b06 | refs/heads/master | 2023-08-18T00:22:30.906432 | 2020-12-04T03:35:50 | 2020-12-04T03:35:50 | 232,723,696 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,850 | py | # Copyright 2019 Huawei Technologies Co., Ltd
#
# 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... | [
"756762961@qq.com"
] | 756762961@qq.com |
582a643df45788250c258f8ccee8e9f8e4786584 | eae7186c753b4a653d0b02ed9812e1d8f6c72905 | /faculty/admin.py | b4ffa95e17c97b39eccea21a8050fbd4ff7a3d80 | [] | no_license | rajgoyal26/cse_website | ee850fb3fb1f637a40bdf2be938d0499f88308d3 | f69ed1af8ed3450f279b7b7ca4857bd46b36aac7 | refs/heads/master | 2020-03-21T08:08:06.812154 | 2018-06-27T17:59:11 | 2018-06-27T17:59:11 | 138,315,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.contrib import admin
from .models import Faculty
admin.site.register(Faculty)
| [
"rajgoyal260298@gmail.com"
] | rajgoyal260298@gmail.com |
04db934a2227b0e0493e4782b11be24203bb3bc6 | 9611399580fa78b0b1c2d1f887fe8f07766e7587 | /pyget_online_data/__init__.py | 77ef6a1a167831abc44fbe18986a8f497d2bbdf5 | [] | no_license | agknaton/pyget_online_data | 10a183194fa920e6e6fea62d213666e00b9977b1 | cd4d516ddd9563cbe47e08c817cf35a31dcb8bee | refs/heads/master | 2022-11-11T03:29:34.328688 | 2020-06-28T19:49:32 | 2020-06-28T19:49:32 | 269,443,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from . __version__ import __version__
from .get_ecb_quote import *
from .get_bcb_quote import *
| [
"agknaton@Agknatons-MacBook-Pro.local"
] | agknaton@Agknatons-MacBook-Pro.local |
98160a2660ecaabfe36c67d96bb116c9fd0061cd | 7cbdb0e8788a50f98affa56240acb5aba841e38b | /Source/crawler/MillerSmilesScamsCrawler/MillerSmilesScamsCrawler/settings.py | 9f66a3aeba3ec8fd3d3f15b060a53a22f806565c | [] | no_license | vuhguc/Phishing-Email-Project-2019 | 249083f02dac23c9139004e09e050dcfd7014b7b | 80aa257f11aff5add4419a967d7a27c29a92ada3 | refs/heads/master | 2022-02-23T15:39:15.722612 | 2019-07-30T13:36:48 | 2019-07-30T13:36:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,270 | py | # -*- coding: utf-8 -*-
# Scrapy settings for MillerSmilesScamsCrawler project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.or... | [
"phuchoang1308@gmail.com"
] | phuchoang1308@gmail.com |
8c337cd8b37757c3ace7aed284a4dead1ed11f28 | 06c1f9b64e7c5da3ac9abd5cc3d12693b11770a5 | /init_decode.py | d883e59ad6a48accea0f6073d64178d4c05dbaeb | [] | no_license | tingleshao/cam_eval | d49b0784d57833016e2059d7619f22d4d2edfda0 | 6a50c29a8c026017b83da1878255f945dc020484 | refs/heads/master | 2021-01-13T12:33:06.729506 | 2016-12-19T23:42:24 | 2016-12-19T23:42:24 | 72,567,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | # the class is responsible for init nvidia decoder
import os
import subprocess
import time
import sys
class init_decode:
def __init__(self):
print "you initialized an init_decode!"
def run(self):
print "run!"
def call_nv_decoder(self):
cmd = '/home/cshao/Downloads/Video_Codec_SD... | [
"tingleshao@gmail.com"
] | tingleshao@gmail.com |
a24038b8a160f6fdb13f63be8d66b6cae29dd3e1 | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v5/proto/services/account_link_service_pb2.py | 972899082ca981068d71b76032f3fa541ac8301d | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | true | 21,860 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v5/proto/services/account_link_service.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from... | [
"noreply@github.com"
] | fiboknacky.noreply@github.com |
410277cd70a7e62f6f22bb066078442924338781 | bd0ff4195d8e5e95a4697f414b42557ce5739326 | /Nano.py | 990a2ab346e018b0dc3f76f76808b38eb6f79416 | [] | no_license | mlightvn/NanoCoin | b6bad8fc805a7fd3eff87f492feb6f0f104808da | 18eb9f664d96b4b05d82e67b42ba56394299cef0 | refs/heads/master | 2022-11-22T23:33:19.061206 | 2019-09-02T11:09:59 | 2019-09-02T11:09:59 | 205,834,434 | 0 | 1 | null | 2022-11-15T04:44:52 | 2019-09-02T10:39:32 | Python | UTF-8 | Python | false | false | 4,689 | py | import hashlib, json, os
from hashlib import sha256
from web3 import Web3, HTTPProvider
# from web3.auto import w3
# from interface import ContractInterface
from flask import Flask, escape, request
from datetime import datetime
ROOT_DIR = os.path.dirname(os.path.realpath(__file__))
NANO_COIN_DIR = os.path.abspath('./... | [
"thietlalung@yahoo.com.vn"
] | thietlalung@yahoo.com.vn |
4289da06aad1d6cd12dd9db3fedd8b61d69f984a | a946ed03502d55eefb3cf44607c9773ef73dd3a1 | /books/urls.py | 9c8b997973cb2b3e27c2a648c38ae92a937b55fa | [
"MIT"
] | permissive | ZeroOneo/DRF | 626156ee64193fd9cbde60262ae6ce6d9488fa25 | 2bb6606988ec7d6bc0caba5365b04a5dce3184c7 | refs/heads/master | 2020-06-03T11:55:44.705076 | 2019-10-02T09:41:39 | 2019-10-02T09:41:39 | 191,558,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | # from django.conf.urls import url
#
#
# from . import views
# from rest_framework.routers import SimpleRouter, DefaultRouter
# from books.views import BookModelViewSet
#
# urlpatterns = [
# url(r'^books1/$', views.BookListView.as_view()),
#
# url(r'^books2/$', views.BooksGenericAPIView.as_view()),
#
... | [
"785170494@qq.com"
] | 785170494@qq.com |
3f02240e0e65ce46c04c49f8a8fec4420809991a | 2ab0891a6a22f5a27bb6dbbabca929f77fc6db89 | /boomplay/migrations/0001_initial.py | 598681a77f51d2724586ff12c80e38bee3b57548 | [] | no_license | ruhiuclaire/trap2 | 7a00bff083ee900fb4aa35c17c15ba934550b31f | aa10302235682b3561d2423fec013bc3edc82246 | refs/heads/master | 2020-05-05T03:08:32.953088 | 2019-04-05T10:43:37 | 2019-04-05T10:43:37 | 179,662,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | # Generated by Django 2.2 on 2019-04-05 10:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Album',
fields=[
... | [
"ruhiuclaire24@gail.com"
] | ruhiuclaire24@gail.com |
1b0fbcc273e94c56c0520bb596c850412b00c466 | b846f9c9d3fa38710d68c3bc60bc8945cea78c05 | /nn/__init__.py | 3ffd0f006e24e63997b9b84d697faae490f8604a | [] | no_license | kraglik/surface | 781c51429f4c4f6aed05998aa8994582480e916b | 7c176437f358b583be4bfade1907548c8298b953 | refs/heads/master | 2020-09-17T06:08:45.174602 | 2019-12-02T10:25:59 | 2019-12-02T10:25:59 | 224,014,460 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | from .module import Module
from .dense import Dense
from .conv2d import Conv2D
from .lstm import LSTM
from .maxpool2d import MaxPool2D
| [
"igor.kraglik@yandex.ru"
] | igor.kraglik@yandex.ru |
e922e0052568453ba169d2cd12a89a0b08a36d04 | ccbd186e7c868ba546b07fd2a3b0f63ee9caac7a | /assignment3/newspaper/content/migrations/0003_contributor_contents.py | a1edba00911683dec57eecb5fded8260cde5d946 | [] | no_license | benafa/comp | b1f445a37ec5ab903ae2f070a587a255e1760d25 | 9afdc6df61fccf4c23981efc258d085d04d6769b | refs/heads/master | 2021-01-23T23:02:41.642232 | 2015-11-02T01:09:04 | 2015-11-02T01:09:04 | 42,831,600 | 0 | 0 | null | 2015-09-20T22:10:19 | 2015-09-20T22:10:19 | null | UTF-8 | Python | false | false | 448 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('content', '0002_auto_20151004_2215'),
]
operations = [
migrations.AddField(
model_name='contributor',
... | [
"benanandappa@college.harvard.edu"
] | benanandappa@college.harvard.edu |
f01edb32723b46bc8bb782db3619264971f12a00 | 383f6af87df71826218db68b1637b5a9d198865f | /gan_git-02/gan_git/compare_gan/metrics/ms_ssim_score.py | caffb83e16f9209e29016560259cd27b982a9c8c | [
"Apache-2.0"
] | permissive | youbin-jia/jyb_paper | 59a2c2517f366799109e3a0ae306d4a43b160dfa | cdff5c8214b8895ac31d519458ad626d24a5ca9b | refs/heads/master | 2022-04-19T23:13:22.772166 | 2020-04-20T00:11:20 | 2020-04-20T00:11:20 | 255,092,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,924 | py | # coding=utf-8
# Copyright 2018 Google LLC & Hwalsuk Lee.
#
# 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 ... | [
"2448396171@qq.com"
] | 2448396171@qq.com |
736e3fd5d6a3535433e469cd69c58237adefac58 | c3d392d21e7deb40a78cf0cf373560f14760ca9d | /hosts/ovirt4.py | 14722ab5482b6d31846149b8363095060801bb0d | [
"Apache-2.0"
] | permissive | rmkraus/ansible-ovirt | 7dc5b74ffce2f84def14cc03e42b0480e6088425 | bcd7c62420e775bc1152e04726c34d5e67b5ea08 | refs/heads/master | 2020-06-02T05:27:59.541073 | 2020-04-21T15:17:21 | 2020-04-21T15:17:21 | 191,053,356 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,817 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2016 Red Hat, Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, ... | [
"rmkraus@gmail.com"
] | rmkraus@gmail.com |
2b792a76a6d249e279abf8afff4ad007a551e9e7 | d42a9128898d504a9831f1afee3198c4677236c9 | /Level_3/가장먼노드.py | 19833971ef9bcd673871a0c8a749d8662f7847c8 | [] | no_license | ketkat001/Programmers-coding | 6848a9c8cffd97b792cfc8856ec135b72af5d688 | 799baba8d66a9971b43233d231cecbf262b4ea27 | refs/heads/master | 2023-09-02T23:07:25.614820 | 2021-10-17T18:12:02 | 2021-10-17T18:12:02 | 235,016,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | from collections import deque
def solution(n, edge):
answer = 0
graph = [[] for _ in range(n+1)]
dp = [0] * (n+1)
dp[1] = 1
queue = deque([1])
for edg in edge:
graph[edg[0]].append(edg[1])
graph[edg[1]].append(edg[0])
while queue:
answer = len(queue)
for i i... | [
"ketkat001@gmail.com"
] | ketkat001@gmail.com |
704ee3613dcaca94ae0faaaf25a14aebad2bfdbd | b28178767c14e211d3e0ba631aaf2f180b524634 | /test_file.py | 8a48531eff9e738ad38b8bb3359cb81a69d5f47f | [] | no_license | jjpak88/starting_git | 1d3bcf3edb41a45d994c4fe7663be3f1d8468d38 | ce706737a0249def404ed158a9388623eec9dcf0 | refs/heads/master | 2020-07-03T21:50:51.718781 | 2016-11-19T20:59:59 | 2016-11-19T20:59:59 | 74,230,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | print("My name is Jean")
| [
"jean.pak@gmail.com"
] | jean.pak@gmail.com |
ccb3568b44b01ed67be10d4b58548bd3d0c3c8db | 06906ba89b9b7a28d9e32e8ba3fbc0c6ad41299f | /supervised_learning_code/feature_scaling.py | b957264d56a397c85ad5658523ac22998c7a3a14 | [] | no_license | amrutakulkarni9812/Data-Scientist-Nanodegree-Term-1 | 60714130a21ab72bb97c9f1238f20d9e69868608 | ee3ae9112b3cc21263050362addc1ab2dfc82124 | refs/heads/master | 2020-06-16T20:34:07.343463 | 2019-10-31T17:59:50 | 2019-10-31T17:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 2 22:28:09 2019
@author: amruta.kulkarni
"""
# TODO: Add import statements
import pandas as pd
import numpy as np
from sklearn.linear_model import Lasso
from sklearn.preprocessing import StandardScaler
# Assign the data to predictor and outcome variables
... | [
"amrutakulkarni9812@gmail.com"
] | amrutakulkarni9812@gmail.com |
1fef8ab332729af9d23f7901f71989a537b315f8 | c612c96317c902cbd8e8d0c4067296b51da4be0b | /GameofThronesApp/apps.py | 5e46b3369998f0403fc8fb06aba93382dac77126 | [] | no_license | csanjeev25/GameofThrones | ce5f4aec6e19097cf5016ee8f6c9e10df2f0529a | e2f1e4538045f973580f3c3709f59e09b9d8b458 | refs/heads/master | 2020-03-12T02:28:36.855813 | 2018-06-30T17:19:27 | 2018-06-30T17:19:27 | 130,403,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | from django.apps import AppConfig
class GameofthronesappConfig(AppConfig):
name = 'GameofThronesApp'
| [
"sanjeevkumarchintakindi@gmail.com"
] | sanjeevkumarchintakindi@gmail.com |
83cb7dd6c0700138740d91ee4df6cffbe6b0f9f6 | d1ab86d9a87c0f22a8a266455e130ce41c7bce30 | /codekata/Positive.py | 1793cd9c75db21761b74559f4595906fb14cceff | [] | no_license | madhankmr/guvi | 0a4cca09aa449d352feedbfc8f2312b2e164de2b | eea3ff1e3f02fe2cd003432417924a9548f12cb9 | refs/heads/master | 2020-06-03T08:24:22.988728 | 2019-07-09T10:32:25 | 2019-07-09T10:32:25 | 191,355,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | N=float(input())
if N>0:
print("Positive")
elif N==0:
print("Zero")
else:
print("Negative")
| [
"noreply@github.com"
] | madhankmr.noreply@github.com |
73f4d76a584672cda147735c5df3bdde4a35322d | 36b231d97d2f5d69321b3b1dcc51425c01400286 | /notebooks/dataloader.py | ec36a30aa0c52a80cbad3a19868002a193f368ad | [
"MIT"
] | permissive | Shrey-WadhwaniAI/LineList-Dashboard | 5fa5ec2b7bbe72aa7ca69ab99d3a91626f52240c | 5937d3fb0f0c2e525952e509e52d7e30bf51dabb | refs/heads/main | 2023-07-17T08:01:00.349855 | 2021-09-01T18:12:56 | 2021-09-01T18:12:56 | 399,144,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,149 | py | import pandas as pd
import numpy as np
import sys
import streamlit as st
import datetime
from pyathena.connection import Connection
from pyathena.pandas_cursor import PandasCursor
@st.cache
def load_athena(location):
sql = "SELECT * FROM test_linelist where partition_0='"+location+"' limit 10000"
cursor = Connect... | [
"shrey.shah@wadhwaniai.org"
] | shrey.shah@wadhwaniai.org |
2b6fe91500803b1b8a9c476b652dec61beb1a3b2 | 2aa3cb8797100d32d874561f6ec1a550630d7909 | /majorProject/wsgi.py | f6f6ac0d6ee70ff74119318b7856d3cb71ea4f7a | [] | no_license | bksingh2000/MAJOR_PROJECT | a703d79acab2942803b2fff1050f5d83f895a1ff | 869610876192a704c671fd5694d9d70a9650b1bc | refs/heads/main | 2023-06-01T00:29:21.504845 | 2021-07-12T17:39:04 | 2021-07-12T17:39:04 | 385,331,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for majorProject 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_... | [
"badal.kumar@digidexlabs.com"
] | badal.kumar@digidexlabs.com |
cc8e1c43c0bf95349b51135167335a5e3db0b875 | cc99bdca333480317187298061d99a7ebaba3186 | /src/misitio/utilities/testing.py | 105dfd47645c184eff603fff549f7405ee457025 | [] | no_license | ejgarcialearning/misitio.utilities | 1637fc219e6cc97a1600df0783d10b1e03bf5cbd | 90792c15cf806eba195571db70392b6a4146c943 | refs/heads/master | 2020-04-11T08:44:09.793319 | 2012-07-11T23:51:58 | 2012-07-11T23:51:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | from plone.app.testing import PLONE_FIXTURE
from plone.app.testing import PloneSandboxLayer
from plone.app.testing import IntegrationTesting
from plone.app.testing import FunctionalTesting
from plone.app.testing import applyProfile
from zope.configuration import xmlconfig
class MisitioUtilities(PloneSandboxLayer):
... | [
"elvisjonasg@gmail.com"
] | elvisjonasg@gmail.com |
62a5f33290269f463f14f1fc03d0faca939829f8 | 73c1d4599f39e32b2cd65c9ef7e4300adc52888a | /nondjango/storages/files.py | a1f8c6a5acadd645ea874c640be3eb16e095e197 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | alanjds/nondjango-storages | 94161eccbb0709ebec4062ba6bddd8b26a65cbc6 | beeece4b880efd8cff5d940b635e066ac8d9fbcb | refs/heads/master | 2020-12-15T18:48:44.023449 | 2020-05-21T18:55:06 | 2020-05-21T18:55:06 | 235,215,330 | 1 | 1 | NOASSERTION | 2020-05-21T16:07:52 | 2020-01-20T23:03:59 | Python | UTF-8 | Python | false | false | 2,122 | py | import logging
import io
import codecs
import difflib
from tempfile import NamedTemporaryFile
from contextlib import ContextDecorator
from . import utils
logger = logging.getLogger(__name__)
__escape_decoder = codecs.getdecoder('unicode_escape')
class File(ContextDecorator):
def __init__(self, name, storage=Non... | [
"alan.justino@yahoo.com.br"
] | alan.justino@yahoo.com.br |
39d583bc485e10f5bad1be3592965ac77c0aa29a | bb8be55bf37e59d918af5406538a05560bdeaa8a | /gendiff/tree_builder.py | 27dfaf9ee9b5a1852ace4a733ec1254422e8291e | [] | no_license | mnogom/python-project-lvl2 | a321ed6459d72d1b0bfd89a49cd16e5e57ee9f4d | 7152ab7c90cb1b35572c51580c7da2acead4773a | refs/heads/main | 2023-04-15T20:09:54.858025 | 2021-04-30T12:09:05 | 2021-04-30T12:09:05 | 333,052,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | """Diff tree builder."""
ADDED = "added"
REMOVED = "removed"
UNCHANGED = "unchanged"
CHANGED = "changed"
NESTED = "nested"
def build_tree(data1: dict, data2: dict) -> dict: # noqa: C901
"""Build diff tree.
:param data1: data #1
:param data2: data #2
:return: difference between two nodes
"""
... | [
"freidlinks@ya.ru"
] | freidlinks@ya.ru |
ecad99a07312379715f64a3e39b3ea5577d254ee | c5746efe18a5406764c041d149d89c0e0564c5a5 | /1. Python语言核心编程/1. Python核心/Day07/exercise11.py | a656871fe2f7a823083003ada2bd5ae8242e8c9c | [] | no_license | ShaoxiongYuan/PycharmProjects | fc7d9eeaf833d3711211cd2fafb81dd277d4e4a3 | 5111d4c0a7644c246f96e2d038c1a10b0648e4bf | refs/heads/master | 2021-12-15T05:45:42.117000 | 2021-11-23T06:45:16 | 2021-11-23T06:45:16 | 241,294,858 | 3 | 1 | null | 2021-02-20T15:29:07 | 2020-02-18T07:06:08 | Jupyter Notebook | UTF-8 | Python | false | false | 175 | py | def sum_digit(num):
"""
:param num:
:return:
"""
count = 0
for item in str(num):
count += int(item)
return count
print(sum_digit(1234))
| [
"ysxstevenpp123@gmail.com"
] | ysxstevenpp123@gmail.com |
66104fe97132726b60c2f701bacf9c99cd1ec030 | 18005cdb8727e649811a3104bf9d5bc1fe6915b2 | /scratch_1.py | e0bbb34d40ae8fed0e4804a5249cb69d0ece4543 | [] | no_license | zhuzhile08/python_games | ff0eefbe5ca8abcf63393e86f61c1136acfb3f31 | f0d591726cd51923a3eadfa4f4946825241e6697 | refs/heads/master | 2020-06-15T22:42:29.643731 | 2019-07-05T13:16:22 | 2019-07-05T13:16:22 | 195,411,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | import pygame
pygame.init()
win = pygame.display.set_mode((500, 500))
pygame.display.set_caption("First Game")
x = 50
y = 425
width = 40
height = 60
vel = 5
isJump = False
jumpCount = 10
run = True
while run:
pygame.time.delay(100)
for event in pygame.event.get():
if event.type == pygame.QUIT:
... | [
"zhuzhile08@gmail.com"
] | zhuzhile08@gmail.com |
56f89cd80eb4bfe71dae266e3224ed10db0f4de0 | 9da4de06c0589de66e498d13421fe578a61c67e6 | /lambda-echo-sqs-dynamodb/src/process.py | 35e29b670072a1b9626a3053ea423bdce21bd06d | [] | no_license | GeorgeArubi/it-590-aws | f0e40997b0d09df35fefe8d3d887d322b64b0c04 | 6951bd7cf3cf447a7e77a455c4a9bbd7e6a3004f | refs/heads/main | 2023-06-23T00:54:16.181762 | 2021-07-22T01:58:47 | 2021-07-22T01:58:47 | 373,655,039 | 0 | 0 | null | 2021-06-17T15:34:25 | 2021-06-03T22:17:18 | Shell | UTF-8 | Python | false | false | 783 | py | import boto3
import json
import os
dynamodb = boto3.resource('dynamodb')
table_name = os.environ.get('dynamodb_table_name')
table = dynamodb.Table(table_name)
def lambda_handler(event, context):
print("******* Begin Execution *********")
print('***** Another line of debug statements *****')
print("EVENT:... | [
"rick@pulpfreepress.com"
] | rick@pulpfreepress.com |
5288f681fc3c92373b624da66f5ae7fc4925b98a | 9aa7549c2d66bec6132c1eced1e08252c8e03c0f | /Pong/options.py | 359bffc162e8cbdf85ce7115f3a2a7bbe1e2782c | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | wooandrew/TheBoredomProject | fb096cecd0fd20b37a3c91b5229288b09b8ce309 | 7969a7424fa3e1859a3b00f4ac6cd744906a6537 | refs/heads/master | 2020-05-29T17:34:02.726908 | 2019-06-23T02:33:34 | 2019-06-23T02:33:34 | 189,275,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | # Pong : options.py
# Boredom Project
import random
class Options:
def __init__(self):
self.oneplayer = False
self.twoplayer = True
self.cpulevel = 0
# Paddle Options
self.pSpeed = 3
self.c_paddle1 = [ 0, 255, 255]
self.c_paddle2 = [255, 0, 255]
... | [
"seungminleader@gmail.com"
] | seungminleader@gmail.com |
1dd90bca0b0c44c73c8438576097bc4ed0e824dc | 5f45e5538cd1cbc087c5e74c9f9a74406dc82399 | /Stages.py | c594cce7c0900fb3b642fa8149a32ac12b574e54 | [] | no_license | CptnReef/pyGame | 1407b51f69279c5b5d1e31391f80f4cf534f7dd1 | c4ea3630b9ab726b7730289f9498a29f0cb56662 | refs/heads/main | 2023-03-19T02:02:17.091870 | 2021-03-23T23:49:52 | 2021-03-23T23:49:52 | 348,111,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,761 | py | import pygame, sys, random
CHUNK_SIZE = 8 # generating a grid
def generate_chunk(x,y):
chunk_data = []
for y_pos in range(CHUNK_SIZE):
for x_pos in range(CHUNK_SIZE):
target_x = x * CHUNK_SIZE + x_pos
target_y = y * CHUNK_SIZE + y_pos
tile_type = 0 # nothing
... | [
"sharif.staffordbz@gmail.com"
] | sharif.staffordbz@gmail.com |
bb270df61a849d8d9df962a3863d23ca9132e0b4 | aa6a2da9c83eb3185e9e40923fec4e5289f3c30f | /general_Projeckt.py | 130a7b69940187168732c5670538f802830b6b90 | [] | no_license | Mauter25/Case_5 | 671c7588f00542a96a85d16828be3fff709402c8 | 08d7477293ed449755fe128b8c3ab2532bc7349e | refs/heads/master | 2020-09-29T02:13:14.061478 | 2019-12-09T17:14:18 | 2019-12-09T17:14:18 | 226,924,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | #Developers: Kuzmin.E: 50%
# Mauter.A: 50%
import urllib.request
import re as r
file_out = open('output.txt','w')
file_out.close()
with open('input.txt') as inp_file:
for line in inp_file.readlines():
url = line
f = urllib.request.urlopen(url)
s = f.read()
... | [
"noreply@github.com"
] | Mauter25.noreply@github.com |
fe08de446db91af310d979c631ab7fd26537e457 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_121/ch9_2020_08_31_17_12_51_131522.py | f0d648d01a9c7d5c599714f7d8705d12d95bfed3 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | import math
def calcula_volume_da_esfera(r):
volume_esfera = 4 / 3 * math.pi * r ** 3
return volume_esfera | [
"you@example.com"
] | you@example.com |
b5cd5ae84ecd201a844593be1dd57f3db72296b8 | 0ae1025d290daf564daf7f366e4e6cdc779c00ef | /Python -user_impersonate/user_app/admin.py | d230fd13246ba32708bdf7d3f6042c8b15af2e29 | [] | no_license | 1986webdeveloper/mailingsystemdemo | 080ab6843939b34855265b3a9354a4b220a60ff0 | eef1f78c081382c2fe12abeeeb60f9b4767bea23 | refs/heads/master | 2023-02-25T16:22:18.188041 | 2021-01-28T13:31:54 | 2021-01-28T13:31:54 | 327,616,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | from django.contrib import admin
from user_app.models import UserProfile
admin.site.register(UserProfile)
| [
"1986webdeveloper@gmail.com"
] | 1986webdeveloper@gmail.com |
904accd2539767b15763cd55082659294465b998 | a2e11ec88ef3c83b9f07129e76a3681a676d164f | /demo8apr/testapp/urls.py | 612a33b0ec158d2795dc24c6b407ab4fabc9dc74 | [] | no_license | qwertypool/lofo | dadd7cd5b149a3a200b7111d803b1d0195d76642 | 3bc7bd125e7ea5a67f51dd6dd654e38a5f218055 | refs/heads/master | 2022-05-18T09:31:11.456634 | 2020-04-18T14:47:44 | 2020-04-18T14:47:44 | 256,773,858 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from django.urls import path
from testapp import views
urlpatterns = [
path('form/',views.form_view,name='forms'),
path('thankyou/',views.thankyou_view,name='thankyou'),
path('list/',views.list_view,name='list'),
path('elist/',views.elist_view,name='elist'),
path('eform/',views.eform_view,name='efo... | [
"deepapandey364@gmail.com"
] | deepapandey364@gmail.com |
825f6ccaee5f5912163c36e767b88ed23e0e1a49 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/snmp/src.py | b6b8d307181045b63a79b7469c70f940f94421de | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 8,786 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
1ab900afdd8a30718248c5f9fd3fd0a706356dcd | 31a00bb934ef9a0437af840d5a4e429a39f1dd3d | /find_long_lines.py | 3941c622eb1d1ab6ddc6b7e72527ba54890102ab | [] | no_license | aabzel/find-long-lines-in-file | cb0cafd9ff4b0fd011f66568f73d600c1623ae34 | 17d69b084c5efacc8f6fb4a1de5e6ac848ba4118 | refs/heads/master | 2020-05-27T11:38:26.719094 | 2019-05-27T10:09:41 | 2019-05-27T10:09:41 | 188,603,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | #!/usr/bin/python
from sys import argv
import os
import sys
scriptName, firstArg, secondArg = argv
inFileName = str(firstArg)
maxLineLen = int(secondArg)# 110
def exists(path):
try:
f = open(path)
f.close()
return True
except IOError:
return False
if False==exists(inFileName... | [
"noreply@github.com"
] | aabzel.noreply@github.com |
a9554176ffb946e3eae4be5fe2e32acf29a9fca2 | e77c48f5ec800e757c0aed4d85e4935984e13657 | /VirtualMouse.py | 2c2110aa29aa1e9da60ad07ff9faee6e5a1da815 | [] | no_license | Lakshya123-cyber/AI-Virtual-Mouse | 425584bd92f1a3a6f8fb4d11447869bc9b1bf987 | 1953ac8bc7b53782527337d1dc24bdc9aa51ef88 | refs/heads/main | 2023-09-04T06:13:40.203839 | 2021-11-07T13:49:34 | 2021-11-07T13:49:34 | 425,515,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py |
import cv2
import numpy as np
import HandTrackingModule as htm
import time
import pyautogui
import requests
cap = cv2.VideoCapture(0)
ret, imgOriginalScene = cap.read()
# wCam, hCam = 640, 480
url = "http://192.168.1.73:8888/shot.jpg"
img_resp = requests.get(url)
img_arr = np.array(bytearray(img_resp.content), ... | [
"noreply@github.com"
] | Lakshya123-cyber.noreply@github.com |
32275f30d3edfcdfabbae11c0e0d3061a353a050 | 33f9056de72ea429774cdf42d3f813a4cd33a255 | /backend/takeout/admin/models/admin.py | 803776d2c167a36a3dde181c74e8d18c7d90e965 | [
"MIT"
] | permissive | alex159s/Take-out | a566e35d5c05c6e8456beb449c08b6c6479f4e79 | 27c66dcc4f0e045ae060255679a2aa68c0f744d2 | refs/heads/master | 2020-04-06T06:36:51.806309 | 2016-07-15T14:27:06 | 2016-07-15T14:27:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | # coding: utf-8
from lib.models.userbase import UserBase
class Admin(UserBase):
def to_string(self):
return {
"id": self.id,
"username": self.username,
"nickname": self.nickname,
}
def to_detail_string(self):
return self.to_string()
| [
"billo@qq.com"
] | billo@qq.com |
d763ad10c8c3c6351988ea3cfb3adbe407aa383d | f2f6e4dcd7fcbebf59592bb4caba03e0f6779773 | /simpLIinReg.py | a38f304ddc6819ec40365d05bb396aab8f721fa4 | [] | no_license | BenDevo20/DataScience | 47815dbba5b5d63473d1e1cdad2d9f8a85ae1cf6 | 079fc9600060b414c5278805ded5b21160f92a20 | refs/heads/main | 2023-03-04T20:51:00.824034 | 2021-02-15T20:02:44 | 2021-02-15T20:02:44 | 339,191,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | """
simple linear regression - regression function with only one feature
create best fit line to map out linear relationship
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# importing excel file that has data for regression function
df = pd.read_csv('UNZIP_ME_FOR_NOTE... | [
"noreply@github.com"
] | BenDevo20.noreply@github.com |
e070be46f67e3398ca29d11d059a79c496d8c1a9 | b31246c235d0f272155520db8b7b2c05fb68054c | /diccionarios.py | 457abf855b30cb695513d0a36f98f001a83bca55 | [] | no_license | DanyGuerra/introduccion-python | 0ce4dd9a70f4c814539b284101982006f7e0325d | eb1759462bd8117e2fec6c795b2f8dcbfdc5f5f0 | refs/heads/main | 2023-06-12T09:50:26.827656 | 2021-07-11T16:46:05 | 2021-07-11T16:46:05 | 381,758,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | elementos={'a':1,'b':2,'c':3,'a':4} #no se permiten las llaves duplicadas
# elementos={}
# elementos['nombre']='Cody' #crea la llave ya que no existe
# elementos[(1,2,3)]='la llave es una tupla'
# elementos['nombre']='CodigoFacilito' #como si existe la llave actualiza el valor de la llave
print(elementos)
print(len(... | [
"luis_daniel.grra15@hotmail.com"
] | luis_daniel.grra15@hotmail.com |
96d6d1fa4aeb87e1962be113d3b27b2fdd49b79f | 5b8582d50160b663535259cadbd133b8e74330ab | /vrepcvtest.py | 0a7b261b63c66adfb534b10e04a71dd182540844 | [] | no_license | heartworm/Hwasong15GuidanceSystem | 18ad8007de0fcd8e2cb0fee0110dcf31be010513 | b600617297c314fc6a10b6496535f1822a831fea | refs/heads/master | 2021-03-19T17:48:21.525361 | 2017-10-22T23:57:27 | 2017-10-22T23:57:27 | 98,952,274 | 0 | 0 | null | 2023-08-26T05:19:36 | 2017-08-01T02:51:29 | Python | UTF-8 | Python | false | false | 2,780 | py | import vrep
import cv2
import numpy as np
from vision import ImageAnalyser
from ai import AI
import yaml
import math
print ('Program started')
vrep.simxFinish(-1) # just in case, close all opened connections
deltaT = 0.05
clientID = vrep.simxStart('127.0.0.1', 12345, True, True, 5000, 5) # Connect to V-REP
with open... | [
"shravanlal98@gmail.com"
] | shravanlal98@gmail.com |
5cba1f0868139ce0c845ec54513cd620c6e715ea | 1a8b37490f93ea96efa14f43124b9891af83ed6c | /Gimnazium/migrations/0002_auto_20201016_2014.py | 190a6b7db2c84c221136a410eb079fabdf4d247d | [] | no_license | Forumbit/my-gimnasium-app | e3140ff3de92f0c84361e31c2330440bcb124943 | ec40843ee3b3dfa073e021ff72ee312e2ca8204f | refs/heads/master | 2023-03-15T22:57:58.146904 | 2021-03-07T11:39:38 | 2021-03-07T11:39:38 | 345,299,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # Generated by Django 3.1 on 2020-10-16 17:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Gimnazium', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='zamena',
name='lesson',
f... | [
"amirkharisov545@gmail.com"
] | amirkharisov545@gmail.com |
fbd797fcc3fe8ff6cdf6e02662be33ad9daad9ec | 26d3b2fcfc81aab9023f82a5b0415949c10de551 | /editor/lib/python3.6/codecs.py | 9b2c03cc17d8533e2f6338afb749a29b25774183 | [] | no_license | ptrbates/misc | b69583917a9b9294c421bed05f2782022c5ea54d | 12892dc71e33d6c8f405abd3acdd2a18c44e01fe | refs/heads/master | 2021-09-16T06:03:54.185403 | 2018-06-17T18:01:34 | 2018-06-17T18:01:34 | 111,362,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | /home/craawww/anaconda3/lib/python3.6/codecs.py | [
"peterbates@protonmail.com"
] | peterbates@protonmail.com |
a34438233e511e251214305e4b546f45cd76cc39 | fd4fbf4f94220fe5e1c2e354be101d23f6faf7ef | /node_modules/node-sass/build/config.gypi | 1935d79f54fa4ef3670783eb861165b4f8da11ca | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | Charliechin/charliechin.github.io | 3903be364bb94f58d61a88371a34017b61c47776 | 310019e8a51d004b158563dccf5c0c05bcce66d5 | refs/heads/source_codebase | 2022-12-10T06:37:39.528332 | 2020-11-06T21:32:19 | 2020-11-06T21:32:19 | 245,626,138 | 0 | 0 | null | 2022-12-06T02:58:36 | 2020-03-07T12:09:38 | SCSS | UTF-8 | Python | false | false | 5,557 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"charliedn@gmail.com"
] | charliedn@gmail.com |
ac783f452a3778212ea850661c86cdd726c17183 | 2180ffdc38323df203e8f29a7a4ec2932b1e0a92 | /models/Inception_v3.py | cf696af5b0099583f53ff0e4636c107935b527c7 | [
"MIT"
] | permissive | Zhu-Renjie/TinyImageNet-Benchmarks | 3a4c17099f8c1582bcd7aa9f1a8067eb20756d9c | d0becc2d4536326e86e4ffa28df013f236fbdf2b | refs/heads/master | 2022-04-10T06:47:28.020522 | 2020-03-24T09:52:56 | 2020-03-24T09:52:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,445 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 03 21:43:01 2020
@author: Meet
"""
### Note: This implementation has been inspired and taken from : https://github.com/tensorflow/models/blob/master/research/slim/nets/inception_v3.py
import tensorflow as tf
import models.Inception_v3_config as Inception_v3_config
fro... | [
"patelmeet2012@gmail.com"
] | patelmeet2012@gmail.com |
62d5c24f0840174a493b4036c242af7859a52887 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/ICalGLib/__init__.py | 75c6283ac12886f54d25efafcb89d88f2ef41f10 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 12,903 | py | # encoding: utf-8
# module gi.repository.ICalGLib
# from /usr/lib64/girepository-1.0/ICalGLib-3.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes o... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
aaa48bfe083f63e3027f18caf96e0fe57c7f90b5 | d131f5dd561ace7d3e410b5bdb7cf78e0bce83e5 | /Django/session_words/session_words/settings.py | 075fd7a7f56cee109aa2c7d45f535c1f89028d48 | [] | no_license | jradtkey/Python2 | b0557992c01f18365f7d14fa2898905b5c397f6a | 55920039c59407ff8a6b8c033dbe2071f71d8f68 | refs/heads/master | 2021-01-23T13:30:13.274077 | 2017-09-22T18:28:22 | 2017-09-22T18:28:22 | 102,662,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,140 | py | """
Django settings for session_words project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
impor... | [
"jradtkey@gmail.com"
] | jradtkey@gmail.com |
b868473d9f97ff610c70c151d9513907930574f5 | cb6dd50eca3d65c1ce34299cd71c4c5a17dbe186 | /vivado/2017.2/module/MulSubCell/sim/test/makeData.py | 0611c1d238a0e959cbe73a3340da789b42353b62 | [
"MIT"
] | permissive | kino2718/InverceMatrixIP | f54063d6cde3008a227364882ab8d5ad3d4d1930 | 0cf56d54ee663db69891a2f4835bde4d0e89bdd9 | refs/heads/master | 2021-01-01T17:45:24.303858 | 2017-10-10T04:08:08 | 2017-10-10T04:08:08 | 98,147,966 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | #! /usr/bin/env python3
import random
PACKET_LEN = 4
REPEAT = 4
RANDRANGE = 10
# 入力ファイル
fy = open('y.txt', 'w')
ffrom_right = open('from_right.txt', 'w')
fx = open('x.txt', 'w')
fr = open('r.txt', 'w')
fref = open('ref.txt', 'w') # 比較ファイル
for i in range(REPEAT):
for packet_no in range(PACKET_LEN):
a = ra... | [
"kino2718@gmail.com"
] | kino2718@gmail.com |
565df021d3fe8a822029ba5cab3c3c201b932587 | 5c3d304ec46afa2e35033857d505b9d37403e5d2 | /hourglass/test.py | 4209eb9db18329b353715bb09fdcfd2f7a3da8fb | [] | no_license | tankche1/Deep-Learning | 8b32b11b0ad37471aa1195867547427231cc7080 | 7fe7469e15fecc22ce17b93a247179dd03fced72 | refs/heads/master | 2020-04-06T04:06:32.126195 | 2017-02-25T12:00:26 | 2017-02-25T12:00:26 | 83,036,998 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,765 | py | import re
import os
import scipy.io as sio
import matplotlib.pyplot as plt
import numpy as np
from PIL import Image
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import torch
import torch.optim as optim
currentPath=os.getcwd()
#torch.setdefaulttensortype("torch.FloatTensor"... | [
"15307130191@fudan.edu.cn"
] | 15307130191@fudan.edu.cn |
52f53a80f792f0820f903cf7027b49ca801b6944 | 9f541271263dceb0b7b0134ab6cff5ed324c6444 | /vscode/conf.py | bba16e86bc2a677bb2e8fd7e52903d2fc363fd9f | [] | no_license | shannondec/bonaventureli.github.io | bd0fa5286ab4077b690f2621425ddd78f16e72dc | ab442ff704dc539b5c9da1d7cacb826256392c17 | refs/heads/main | 2023-06-04T10:34:40.224571 | 2021-06-29T08:38:53 | 2021-06-29T08:38:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"lfwendula@msn.cn"
] | lfwendula@msn.cn |
d9557a94d789d81754209070b91182d44bae2261 | 20f951bd927e4e5cde8ef7781813fcf0d51cc3ea | /fossir/modules/events/settings.py | 45ce014e97b50016de412b5d7b4e562a48cc8776 | [] | no_license | HodardCodeclub/SoftwareDevelopment | 60a0fbab045cb1802925d4dd5012d5b030c272e0 | 6300f2fae830c0c2c73fe0afd9c684383bce63e5 | refs/heads/master | 2021-01-20T00:30:02.800383 | 2018-04-27T09:28:25 | 2018-04-27T09:28:25 | 101,277,325 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,847 | py |
from __future__ import unicode_literals
import os
import re
from functools import wraps
import yaml
from flask.helpers import get_root_path
from fossir.core import signals
from fossir.core.settings import ACLProxyBase, SettingProperty, SettingsProxyBase
from fossir.core.settings.converters import DatetimeConverter... | [
"hodardhazwinayo@gmail.com"
] | hodardhazwinayo@gmail.com |
d14f400d7cb6a38ec86427c746f0251aa6fa1c75 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-3721.py | dba02cd6001ae165033db26d67139aa3e7a13aa6 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,348 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
bb48e7c4bfc20aec2a22275c04f2ea172f932099 | 178085f725183e982304177bb47639568c1cee5b | /app.py | 0c7ab9527be44556e8a86c21df695c2ab20a912e | [] | no_license | kruthik-jt/Signzy | ed10acee97ed67dc0e59b63ed80c982fcff9466d | 5da3303888fda315e2032fe5eb56db2cd344f62a | refs/heads/master | 2022-07-06T06:44:14.188306 | 2020-05-17T05:52:55 | 2020-05-17T05:52:55 | 264,396,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | from project import app,db
#Run the application
if __name__=='__main__':
app.run(debug=True,port=5000) | [
"jt.kruthik@gmail.com"
] | jt.kruthik@gmail.com |
25bec75d335fd19663fb549bac3f111228adcee2 | f3e51466d00510f1dae58f1cb87dd53244ce4e70 | /LeetCodes/facebook/ReverseLinkedList.py | 9184e30348f7f6739d047928f0e48937973b5b12 | [] | no_license | chutianwen/LeetCodes | 40d18e7aa270f8235342f0485bfda2bd1ed960e1 | 11d6bf2ba7b50c07e048df37c4e05c8f46b92241 | refs/heads/master | 2022-08-27T10:28:16.594258 | 2022-07-24T21:23:56 | 2022-07-24T21:23:56 | 96,836,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | '''
Reverse a singly linked list.
Example:
Input: 1->2->3->4->5->NULL
Output: 5->4->3->2->1->NULL
Follow up:
A linked list can be reversed either iteratively or recursively. Could you implement both?
'''
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.ne... | [
"tianwen.chu@fedcentric.com"
] | tianwen.chu@fedcentric.com |
77aedfed99236427961ec32a6562e29b523d3931 | 1f1ef729e0f51b868b3ccfadfc952b0cbc9035e6 | /main.py | 685302eff0556d31e7e7562143d13491a5b029c9 | [] | no_license | jeremymelamed/Network-Hub-Disruption-Probabilities | ee5597d3fdce024cac3be4bed5e40c298ebb2b19 | e6d5181fab2d026697700aa2d13c55b85d868d3e | refs/heads/master | 2021-01-22T17:29:33.344622 | 2017-05-30T15:31:44 | 2017-05-30T15:31:44 | 85,022,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,919 | py | import os
import numpy as np
import datetime
from generate_network import generate_network
# Read parameters from txt file
path = os.getcwd()
with open(path + '\Params.txt', 'r') as f:
Params = []
for line in f:
Params.append(line)
# Store parameter values. Ask user if parameters are co... | [
"noreply@github.com"
] | jeremymelamed.noreply@github.com |
f1465a35d603c77c06d13139a1c9d8a9efdc40b5 | b285ceb5c18d7e6e6b3b02558a3f404dde642734 | /ship_o_cereal/main/migrations/0009_userimage.py | 1b30d782d94b8764b29e90d8db141a40ca960c74 | [] | no_license | kveldhaugur/verklegt-2 | 5ead2f29eb6985cc0f3b50edb61d72f6989dfe85 | 224c1009e16bb59e1bd97f0cfda7143c6b3b8d1f | refs/heads/master | 2023-04-29T09:30:00.716108 | 2021-05-16T04:43:54 | 2021-05-16T04:43:54 | 361,720,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | # Generated by Django 3.2 on 2021-05-09 23:42
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('main', '0008_auto_20210509... | [
"prp@palli.org"
] | prp@palli.org |
a2d79d5c777ea3b5861c85f6f8b40fb30b07c4ea | 86a7ab3a80f0a31631e158e4cb569f2919580a01 | /Humidity.py | 633179dd25d4a1edeabb89d214f1e1ad9518eb74 | [] | no_license | shantanukawale/IoT-Smart-Village | 4a352c28b624d0d042fec678f5594312be76454d | 8385fcee77ef46485fa96d628fce0cb02e77e2ec | refs/heads/master | 2021-04-28T10:31:02.307916 | 2018-02-19T14:24:29 | 2018-02-19T14:24:29 | 122,066,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | #!/usr/bin/python
import sys
import json
import Adafruit_DHT
from twilio.rest import Client
import requests
#gpio pin no. 4
ACCOUNT_SID = 'hidden'
AUTH_TOKEN = 'hidden'
TWILIO_PHONE ='hidden'
RECEIVER_PHONE = 'hidden'
client1 = Client(ACCOUNT_SID,AUTH_TOKEN)
msgcounter=0
temperature0=0
humidity0=0
while True:
humi... | [
"noreply@github.com"
] | shantanukawale.noreply@github.com |
4b3e72d7ab3276e6fc20cf6ab76361690d271e97 | 455ee192baad3dfa649cb1cce0a342167b0f857e | /migration/faces_config/script_facesConfig.py | 6f010a8b70c177cc01f4fbde7bc227276dada10e | [] | no_license | yassinekarim/Script | c87a61854c819b0227f6533fdafdbb1f99822ca5 | f7de5a8ea6704402c82cb156b6a26ccf803caa05 | refs/heads/master | 2020-03-29T15:44:36.003191 | 2014-09-15T09:31:54 | 2014-09-15T09:31:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | """faces-config.xml migration module"""
#!/usr/bin/python3
# -*-coding:utf-8 -*
from lxml import etree as ET
from migration.utils.change_definition import ChangeDefinition
class FaceConfigMigration:
"""faces config migration class"""
def parse_xml(cls, file_path):
"""parse the web.xml update definition ... | [
"yassine.karim@gmail.com"
] | yassine.karim@gmail.com |
5aea7f13df6c73b42a3806aa21f3c0ef84ea9696 | 72523af4a307f81313b6dcd0302f87032c86e447 | /venv/lib/python3.7/token.py | 8fac16561ddb9735a5a6a0b044f17271906db138 | [
"MIT"
] | permissive | sanchitcop19/math-place-scheduler | fd7e792c602199ad455e4aad6a14cea9b4f6a478 | e494da59fac1e25b58cd8fd6c9da72f705a6af09 | refs/heads/master | 2020-04-13T10:52:07.319065 | 2019-02-03T23:49:07 | 2019-02-03T23:49:07 | 163,155,801 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | /Users/SanchitBatra/anaconda3/lib/python3.7/token.py | [
"sanchitb@buffalo.edu"
] | sanchitb@buffalo.edu |
cd88f83ee9f8fb73fc93451d35fdc1274430f2a7 | ce433c31c984aed6bf6b9b01b00a2d03071dd0e5 | /codeforces/118A.py | 386cf26d6800928c5d3593f451373986f553f71f | [] | no_license | codexetreme/competitivecoding | 4210c58d96bee6c114ebcafa818273c80cec7d54 | aed39b13d86271225f6f8dcd3563ff8cdc7725d2 | refs/heads/master | 2023-06-25T09:26:42.890452 | 2021-07-21T15:37:40 | 2021-07-21T15:37:40 | 372,023,615 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | s = input()
s = s.lower()
k = ['a','e','i','o','u','y']
p = ''
for i in s:
if i not in k:
p+='.' +i
print (p) | [
"yashodhanghadge@gmail.com"
] | yashodhanghadge@gmail.com |
a006631c4dab14b3214fd98d5e5768fdb65b199b | 4d1996e575dd68e98aecd43f425c6fb17d969089 | /chap_04/08_linear_regression.py | 67109a6d2731f5439a578edd037bf74543e1754e | [] | no_license | jaeyong1/deeplearningforus | 58cb1b4d82ba95f087add262efc4db8b659fecad | c5e7ac8152bca48ba3feb81f752ed664c83b1d4f | refs/heads/master | 2020-03-27T11:11:36.896866 | 2019-11-11T14:20:04 | 2019-11-11T14:20:04 | 146,471,184 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | import tensorflow as tf
# 학습데이터 (X, Y)
x_train = [1, 2, 3, 4]
y_train = [6, 5, 7, 10]
# 변수 선언
W = tf.Variable(tf.random_normal([1]), name='weight')
b = tf.Variable(tf.random_normal([1]), name='bias')
# 가설식 정의 H(x) = Wx+b
hypothesis = x_train * W + b
# cost/loss function
cost = tf.reduce_mean(tf.square(hypothesis - ... | [
"bjpublic@bjpublic.co.kr"
] | bjpublic@bjpublic.co.kr |
da0c3ef33974d59429749db9ddb2ca3d448e380c | ac648b3529b5422aabf93f35b7349fef51bb69b5 | /python/gbpPy/gbpPy/log.py | 6cb346ef12fec75613c58fb462a9627f3f3de4c4 | [] | no_license | gbpoole/gbpPy | 75027911eeb7fe95976318bc852cd800e67f7757 | 4c07e4cf4e546b3164556a237f6f8c205d6d5827 | refs/heads/master | 2021-05-13T20:35:55.069302 | 2018-02-16T00:15:47 | 2018-02-16T00:15:47 | 116,915,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,701 | py | """Code for generating log messages
Developed with the following library versions:
python: 3.5.2
"""
import sys
import time
class log_stream(object):
"""This class manages the formatting of log output."""
def __init__(self):
self.t_start = time.time()
self.t_last = sel... | [
"gbpoole@gmail.com"
] | gbpoole@gmail.com |
44324b1f7d70e357e98b7462489d90e6c7795e09 | d819a5e4005dcfd7785ba285d026d5fa2956085d | /python_2.7/sniffer.py | 5a3dbb212eba8a92eebf9f88df06c74fc0a0dafd | [] | no_license | chengsluo/code-python | 1296c67283777c2cab57dddde4e5e7d04e6b2dbc | 7ff32066a82221049ae3ddb7c2958c459788dfd7 | refs/heads/master | 2021-07-20T14:14:10.621997 | 2017-12-04T02:51:03 | 2017-12-04T02:51:03 | 96,668,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py |
import socket
# the public network interface
HOST = socket.gethostbyname(socket.gethostname())
# create a raw socket and bind it to the public interface
s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
s.bind((HOST,0))
# include IP headers
s.setsockopt(socket.IPPROTO_IP, socket.IP_HDRINCL,... | [
"chengsluo@gmail.com"
] | chengsluo@gmail.com |
3c47295ce5b2396c62c27e21565747fab07a5bac | c138cddfd19fe8e312a501d3e51d74f6bb1ba6b3 | /analytics/execution/quality.py | b41b708f39311f22b801778d3c3d910b8f24e4c5 | [] | no_license | andreas-koukorinis/example_nbs | a15d3ef5392f04fe9d371367d1b0d82582653fcd | 0bc87ab8dd94c5173030ab42c8515b233a2b9a82 | refs/heads/master | 2020-06-24T13:31:52.698432 | 2019-07-31T16:31:12 | 2019-07-31T16:31:12 | 198,975,320 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,111 | py | import logging
from calendar import monthrange, month_name
from datetime import datetime, timedelta
import pandas as pd
from jinja2 import Template
from sgmtradingcore.analytics.commissions import get_commission_rates_for_user
from sgmtradingcore.analytics.execution.tennis_sip import execution_data_tennis_sip
from sg... | [
"akoukorinis@gmail.com"
] | akoukorinis@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.