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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0e3a6ea93b8832b3a2244ca253fd45da5eb46ddd | 02d30d5aff19c43dd42ef4fc0f60184bacd80804 | /djangox/dappx/views.py | 9813e9a608072b6f6fbd86386d0c13a30435fdcf | [] | no_license | taxwizard/magic | 61e88345b1ff8b49174b728cc8e178751d13d148 | b6d9b26f55a13619c7de69fadba215fa059a8cde | refs/heads/master | 2020-04-09T09:32:02.357215 | 2018-12-03T18:45:31 | 2018-12-03T18:45:31 | 160,237,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,431 | py | from django.shortcuts import render
# Create your views here.
from django.shortcuts import render
from dappx.forms import UserForm,UserProfileInfoForm
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponseRedirect, HttpResponse
from django.urls import reverse
from djan... | [
"noreply@github.com"
] | taxwizard.noreply@github.com |
1f07585f8b5bd8b97955c465f76f0b70ac4458b1 | 19be6560901ac2d1c2c1cfa307adb84295e58a9e | /backoffice/urls.py | 2e272952075115a11bb1b203fa20a5f776dcfd7c | [] | no_license | Neutrinet/backoffice | ebacf44cf9f7c7581a593a6986f1e83c2cfe2591 | cb87571a87a4f6fec54d47095e454080cf6fbe5c | refs/heads/master | 2023-04-20T09:18:31.755593 | 2023-03-30T20:54:49 | 2023-03-30T20:54:49 | 36,190,840 | 1 | 0 | null | 2017-12-11T18:13:23 | 2015-05-24T20:10:06 | Python | UTF-8 | Python | false | false | 349 | py | from members.views import ffdn_api
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^admin2/', include('admin2.urls')),
url(r'^', include('ordering.urls')),
url(r'^accounts/', include('accounts.urls')),
url... | [
"cortex@worlddomination.be"
] | cortex@worlddomination.be |
2ffedc23f5598055bb31dcde684639506383dbea | 6e543b48f8c18b21b890c65b1adcc0d39ccb0844 | /missionpawssible/projects/serializers.py | 862c894990a91062be535d666b951bdb31867eb5 | [] | no_license | JuLacerdaRod/go-fund-she | af97330d768d776f9258edf3059f3892bb16f1a8 | 83f2d6be406fad46c65007388c315e47989191f4 | refs/heads/main | 2023-08-24T09:48:50.779765 | 2021-09-21T09:18:23 | 2021-09-21T09:18:23 | 405,237,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,395 | py | from rest_framework import serializers
from .models import Project, Pledge
class PledgeSerializer(serializers.Serializer):
id = serializers.ReadOnlyField()
amount = serializers.IntegerField()
comment = serializers.CharField(max_length=200)
anonymous = serializers.BooleanField()
supporter_id = seri... | [
"julacerdarod@gmail.com"
] | julacerdarod@gmail.com |
cfab73f899955cd6e504bcd7366d6dbf57f3daa9 | f8d29bab926173769b77045bf2c9d7037bd41427 | /liwc_pre.py | a3d122b71633a4cdb972a4ef16e8082a8dbf0392 | [] | no_license | rz-zhang/Reddit-Roles-Identification | c7ca5c05b2b5154240f3bf92addf00e36142c857 | 203bdbc5cbcaf7cfd4b4980ef0568899a58cd962 | refs/heads/master | 2022-04-28T04:21:49.384212 | 2020-04-28T03:51:38 | 2020-04-28T03:51:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | # Find the authors who are in the author_rep list,
# and look for their comments in the corresponding month,
# extend the representation with the liwc analysis results
import praw
from praw import models
import pandas
from util import in_duration
import pprint
reddit = praw.Reddit(client_id='O3eCkJp5u4-... | [
"noreply@github.com"
] | rz-zhang.noreply@github.com |
908bab1dfe33c354c3f5947bb5bd3268cfa0f337 | ea508c55e951f23ec2f4f5ff35b193d9f30a989a | /pyext/test.py | d7b0ce4ba8ffc10b98cd26926e8478b87f8826c4 | [
"Apache-2.0"
] | permissive | intel-ai/pysamprof | f746551e30237fae9b8869e5e05156a3cb2aba13 | 643de4dd8260c9cd2f75ad5accf9b2e4cbd96c4d | refs/heads/master | 2023-01-25T02:21:01.665315 | 2020-11-27T08:18:22 | 2020-11-27T08:18:22 | 159,366,126 | 2 | 1 | Apache-2.0 | 2020-12-03T15:32:18 | 2018-11-27T16:30:40 | C | UTF-8 | Python | false | false | 752 | py | #!/usr/bin/env python
import pysamprof
import threading
import os
import errno
import sys
import subprocess
def start_collection():
counter = 0
while True:
target_path = '%s/results/%s' % (os.getcwd(), counter)
if os.path.exists(target_path):
counter += 1
else:
b... | [
"vasilij.n.litvinov@intel.com"
] | vasilij.n.litvinov@intel.com |
afa32d1c3d5daebf1a948e6638727b886e31b161 | 5c9511bc538045389e28183b0bc65d9b6cf51b85 | /05/Funkce.py | 5816b5e366a4ab2d42b8b4d3d4a990295a30d386 | [] | no_license | balonovatereza/Pyladies-repository | 0174360835dd1094532118eda1e2821da8108f77 | d4ad0dae829d21a56e6fb86d7a7dcfdc9387ae27 | refs/heads/master | 2020-05-01T09:25:25.300245 | 2019-05-18T09:10:50 | 2019-05-18T09:10:50 | 177,399,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | from math import pi
def obsah_elipsy(a, b):
"Vrati obsah elipsy danych rozmeru."
return pi * a * b
print('Obsah elipsy s osami 4 a 6 cm je', obsah_elipsy(4, 6), 'cm2.')
obsah = 0
a = 30
def obsah_elipsy(a, b):
obsah = pi * a * b # Přiřazení do `obsah`
a = a + 3 # Přiřazení do `a`
return ob... | [
"balonova.tereza@seznam.cz"
] | balonova.tereza@seznam.cz |
d5c8d40acc3d63d3f90c826b6f55231a1363ca22 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_september.py | 50ec52f86c7a3f910be158d3734960cae05fab5d | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py |
#calss header
class _SEPTEMBER():
def __init__(self,):
self.name = "SEPTEMBER"
self.definitions = [u'the ninth month of the year, after August and before October: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = ... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9e512c5d9e8119a11810e649608867f8a3af320f | fe2732ca61b61b1c26b932af40dc5fb79117e8da | /build/prepare_patch_release.py | 19cb94a4938378cd226d454f8f3d6b14fc03e8e5 | [
"Apache-2.0"
] | permissive | approvals/ApprovalTests.cpp.Qt | ac0c00611752d5704330300e725baf3b8494a7c5 | 7183690eaa50334dfc70d0ec02599a89e154ceb2 | refs/heads/master | 2022-08-21T15:59:12.750971 | 2022-08-15T16:42:23 | 2022-08-15T16:42:23 | 215,129,552 | 12 | 1 | Apache-2.0 | 2020-01-24T20:36:51 | 2019-10-14T19:34:07 | C++ | UTF-8 | Python | false | false | 311 | py | #! /usr/bin/env python3
import scripts_qt.include_approvals_path # Note This is used!
from scripts.prepare_release import build
from scripts_qt.qt_project_details import qt_project_details
if __name__ == '__main__':
build(lambda v: v.update_patch(), deploy = False, project_details=qt_project_details())
| [
"github@cfmacrae.fastmail.co.uk"
] | github@cfmacrae.fastmail.co.uk |
8491422835ce360f0b87c4cbba1d2b1e856f3031 | 25714f66fb3409b37cd147c0df6aa7b45bc361e2 | /src/flickrStatRetriever.py | ad376bfc1cb8b36053ec044a7e6124c21f7fe8c1 | [] | no_license | shelbrudy/flickr-photo-stat-retriever | 5fdf8bd14bd21e26a17fc0380f0823f6c255c87e | 062ba1621d4eb3b47ae2abdd507bf3970926dfeb | refs/heads/master | 2020-03-18T01:00:58.077605 | 2018-05-20T05:50:27 | 2018-05-20T05:50:27 | 134,123,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,191 | py | import flickrapi
from flickrapi import FlickrAPI
import datetime as datetime
import csv
import argparse
import googlemaps
import time
import sys
import config
import requests
#globals
gmaps_key = 'redacted'
public_key = 'redacted'
secret_key = 'redacted'
flickr = FlickrAPI(public_key, secret_key, format='parsed-json')... | [
"shelbyruettiger@Shelbys-MBP.lan"
] | shelbyruettiger@Shelbys-MBP.lan |
b7e0bc35e5413fbdafa72bec025d37f9520c7afe | efa65c2fa333000a287adee1a427447a00cee502 | /src/cluster/migrations/0004_auto_20180731_1747.py | 9910fa7d37147bb4eb3f540ff8abfcfd51a363fd | [
"MIT"
] | permissive | mrc-rius/computational_marketing_master_thesis | 628786a895a7529acba1b8b43c3d4e392f734404 | 9d64062dde814813e8b4bf03312d8da268585571 | refs/heads/master | 2020-03-28T01:05:28.166689 | 2018-09-05T08:51:38 | 2018-09-05T08:51:38 | 147,476,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # Generated by Django 2.0.5 on 2018-07-31 15:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cluster', '0003_battery_centroids_financing_insurance_maintenance_manager_smarthome_vehicle'),
]
operations = [
migrations.AlterField(
... | [
"mrius@factorenergia.com"
] | mrius@factorenergia.com |
ad273f34cf7160c106be57d1e382dd01820c91d6 | 9d2e6046782909323784b92efd0b96705fce1df5 | /django-rest-framework-code-master/albums/urls.py | 68db55be6f85a7bd3bc8fc48ffea956a49c841eb | [] | no_license | Mahe7461/Angular | b08704381ccc730138f942ae1028ab279017a728 | d1e776caa208a75bdd8053966d18f1c2e8f9fe9b | refs/heads/main | 2023-06-17T03:08:14.179893 | 2021-07-09T12:26:00 | 2021-07-09T12:26:00 | 341,572,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | from django.conf.urls import url, include
from .views import AlbumViewset, TrackViewset
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register("album", AlbumViewset, basename="album")
router.register("track", TrackViewset, basename="track")
urlpatterns = [
url('', include(route... | [
"mahe7461@gmail.com"
] | mahe7461@gmail.com |
0109a179ee735207ec1b52d992d39e9a466ab901 | d73bb40119baac61263f89cc128c11a2779fc2ad | /0x00-python_variable_annotations/1-concat.py | 0bdb808b6506ac92345101244e777e0bf1fb85d6 | [] | no_license | dlscoccia/holbertonschool-web_back_end | 376bab65447a7ce25116494e34bb14ef074478c4 | cf3291e3f69e14f11cfdfc1ccc1d3d95fbdc0589 | refs/heads/main | 2023-08-25T22:35:35.030155 | 2021-10-20T04:12:58 | 2021-10-20T04:12:58 | 387,456,993 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | #!/usr/bin/env python3
'''python module'''
def concat(str1: str, str2: str) -> str:
'''concat strings'''
return (str1 + str2)
| [
"2054@holbertonschool.com"
] | 2054@holbertonschool.com |
615abb41b4d786dd18b653f8eb2297d2103ac2db | 4975cb0ef1ea9b1c756846286ee272b45bacdfb4 | /OOP/overall.py | b2a101c9485b9a470d6f3c39a702dfd037828a61 | [] | no_license | thesniya/pythonProgram | 38ead334017719adbb942b91dadab82451866512 | e924c0ca77a720e61a62ba2e1984509be1787ece | refs/heads/master | 2020-11-26T09:06:10.837337 | 2019-12-19T10:10:10 | 2019-12-19T10:10:10 | 229,024,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | class student:
schoolname='luminar technolab' #static variable
def setval(self,id,name):
self.id=id #instance variable
self.name=name
def printval(self):
print(self.id,'==',self.name,'===',student.schoolname)
@classmethod
def setschool(cls,name):
cls.schooln... | [
"thesni77@gmail.com"
] | thesni77@gmail.com |
e5bf7d983f85ce369c1221127a8fc207202bbe62 | 602f399e7dd78fd46a3b1159e081f89533401c9c | /Convolutional Neural Networks/Face Recognition/fr_utils.py | 80ba4fd4006e5718462ef5b16fb89295e46370be | [] | no_license | bhanupratapmall/Deep-learning.ai- | 67a1dc7a1b87d3cd7155fff9613681288b98d3b5 | 416ed3c03f847b4a9349a1832c06245e87fc9242 | refs/heads/master | 2022-12-02T21:26:44.345302 | 2020-08-10T15:53:53 | 2020-08-10T15:53:53 | 283,454,786 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,680 | py | #### PART OF THIS CODE IS USING CODE FROM VICTOR SY WANG: https://github.com/iwantooxxoox/Keras-OpenFace/blob/master/utils.py ####
import tensorflow as tf
import numpy as np
import os
import cv2
from numpy import genfromtxt
from keras.layers import Conv2D, ZeroPadding2D, Activation, Input, concatenate
from ker... | [
"noreply@github.com"
] | bhanupratapmall.noreply@github.com |
74f064296992ab3766c2c33c72a4130e22c3ea1d | 244351fa728637ccf5d68fa079d1a3e23c7de1e1 | /lib/reader.py | bd18f886f3e1edcb30da01bf4e93f820d829fe3d | [] | no_license | tonicbupt/job | a2d86b1e756b0d97e08dad544890dc54c5330750 | b5c7d19abe243d9dd6b05f309c352bf4891e1f4c | refs/heads/master | 2021-01-16T22:49:10.287609 | 2013-05-10T10:38:57 | 2013-05-10T14:16:52 | 9,370,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,205 | py | import logging
from time import time
from urllib import urlencode, quote_plus
from urllib2 import urlopen, Request
LOGIN_URL = 'https://www.google.com/accounts/ClientLogin'
TOKEN_URL = 'https://www.google.com/reader/api/0/token'
SUBSCRIBE_URL = 'https://www.google.com/reader/api/0/subscription/quickadd?output=json'
F... | [
"luoruici@gmail.com"
] | luoruici@gmail.com |
e5e74bb27ddcfe5e7ca2a7c60497d32bee026cdd | 3aac637c59acc0427fa047212ad601f30760ecc4 | /add_goods/goods.py | 61fa63baaa202929ceb234185a2ddb7c47089216 | [] | no_license | hzlpypy/fruit_item | c684d934f3e8da97445431e8ef0bcbfcef4152b0 | 103a95c0ddc9488815701e99a37d418a552d2402 | refs/heads/master | 2022-12-12T03:21:21.133021 | 2018-07-22T15:28:47 | 2018-07-22T15:28:47 | 137,031,362 | 2 | 1 | null | 2022-11-22T02:34:23 | 2018-06-12T07:07:56 | Python | UTF-8 | Python | false | false | 19,956 | py | # -*- coding: utf-8 -*-
__author__ = 'hzl'
__date__ = '202018/7/11 22:31'
row_data = [
{
"id": 1,
"title": "新鲜水果",
"judgefruit": "model01",
"banner": "banner/2018/06/banner01.jpg",
"createtime": "20180609 031700",
"isDelete": "1",
"fruit": [
{
... | [
"1761784585@qq.com"
] | 1761784585@qq.com |
affdfdca4df458dc05df4ffdb2bae1a067555c0c | 494292f45ede093c587210cead4930f585850610 | /mblog/mainsite/migrations/0005_post_price.py | 77052b5e96700f344f59421cbc39e4e72c2c840d | [] | no_license | 22836252/myfirstdjungo | a3af559c6cf46d1efef2e3e48fb535d11e96fe1b | 92d47f2f00cb97bbb5125a7f92de85b54ef2578e | refs/heads/master | 2021-09-24T09:54:04.394797 | 2020-02-19T11:26:55 | 2020-02-19T11:26:55 | 241,576,657 | 0 | 0 | null | 2021-09-22T18:36:02 | 2020-02-19T09:03:27 | HTML | UTF-8 | Python | false | false | 409 | py | # Generated by Django 3.0.3 on 2020-02-19 08:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainsite', '0004_post_abstract'),
]
operations = [
migrations.AddField(
model_name='post',
name='price',
... | [
"ken99899@gmail.com"
] | ken99899@gmail.com |
7e5c981732770ef9f5f9c5bda7000c85ed4abc84 | c0a968aed0abfe27970a0f0aac25905bedf9d794 | /main.py | 72cb13f3943793804f7a760764788a39652d8bdb | [
"MIT"
] | permissive | MikeTovar13/habi-back | b3181527284dae19725346f8d2fa15215c2ff40d | 724416f8675dde8cef4fe90b6a3e8fc5bbf3b706 | refs/heads/master | 2023-05-12T05:54:18.241539 | 2021-06-08T01:47:38 | 2021-06-08T01:47:38 | 374,259,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | from fastapi import FastAPI
import uvicorn
from routes.v1.inmuebles import inmueblesApp
from routes.v1.propietario import propietarioApp
from routes.v1.utils import utilsApp
from fastapi.middleware.cors import CORSMiddleware
# Routes de servicios
app = FastAPI(title="Habi Backend", version="1.0.0")
app.include_router(... | [
"ferney.tovar13@gmail.com"
] | ferney.tovar13@gmail.com |
4724ac93de9f54661e9f2dc8f537ce5ca3865711 | c9670c1e205fe341d70d77098195880c86026fe3 | /sec_dl/utils/monitor_scraper_progress.py | 48cbb7b80d7692319a9cb6b9ca25b3ac136513ad | [
"MIT"
] | permissive | Peppershaker/sec_dl | 09698cdebba5249ed1da79deb0daa69982b71d91 | 30f0176409c8189fa223637e9734904d8ac94001 | refs/heads/master | 2023-05-25T01:13:04.396579 | 2019-07-03T16:59:00 | 2019-07-03T16:59:00 | 194,985,731 | 0 | 0 | null | 2023-05-22T22:29:17 | 2019-07-03T05:31:17 | Python | UTF-8 | Python | false | false | 1,047 | py | import time
from scrape_all_filings import connect_db
from datetime import datetime
def get_rows_left():
rows_left = session.query(filings.c.filing_id, filings.c.path).filter(filings.c.text == None).count()
return rows_left
engine, metadata, Session, session, connection, filings = connect_db()
start_time = d... | [
"victor.c.xu@gmail.com"
] | victor.c.xu@gmail.com |
e87310d62a78bfd785c1e61cc00290c6081c3f3d | d75d07abd97b863344801c95ca776139eee5d7a9 | /src/sample/stopline_test.py | 8b76c7e6ae4c6c0f1dcc02c8ed2165467dde3468 | [] | no_license | kbs907/programmers_final_competition | f15be51f1039fc1026322c7d508195c4ac48abfb | d1f9e212358d23f3b5fe489eeddd18065b744921 | refs/heads/master | 2023-09-02T23:15:09.174036 | 2021-10-19T08:31:37 | 2021-10-19T08:31:37 | 400,005,766 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,018 | py | #! /usr/bin/env python
# -*- coding:utf-8 -*-
### 필요한 모듈 import ###
import rospy, rospkg, time, sys, os
import numpy as np
import cv2, random, math
from cv_bridge import CvBridge, CvBridgeError
from xycar_msgs.msg import xycar_motor
from sensor_msgs.msg import Image, LaserScan
from std_msgs.msg import Int32MultiArray... | [
"kbs907@naver.com"
] | kbs907@naver.com |
26b37fb1f6de95098a60273063f8127dfa9cd6ee | 9e335834e7be81068f001d5451781d5c1530ebbf | /LearnPythonTHW/ex15.py | bf759b93985340432ebf224960e5e9315db9f325 | [] | no_license | jtr109/SelfLearning | c1dbffa5485d0cd2f444ea510da62a8e3d269dbc | cc920ed507647762b9855385be76869adac89e7c | refs/heads/master | 2020-04-06T04:11:31.143688 | 2016-07-22T02:19:39 | 2016-07-22T02:19:39 | 58,049,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | # -*- coding: utf-8 -*-
from sys import argv
script, filename = argv
txt = open(filename)
print "Here's your file %r:" % filename
print txt.read()
print "Type the filename again:"
file_again = raw_input("> ")
txt_again = open(file_again)
print txt_again.read()
| [
"lyp_login@outlook.com"
] | lyp_login@outlook.com |
eb5f2cf86ec088fe0044bbd729282c46ce185b5e | eb64b799ff1d7ef3a244bf8e6f9f4e9118d5cfcd | /homeassistant/components/freedompro/light.py | 95731da914e47175459ea54202f980d23b6451cc | [
"Apache-2.0"
] | permissive | JeffLIrion/home-assistant | 53966b81b5d5816679f12fc761f79e8777c738d6 | 8f4ec89be6c2505d8a59eee44de335abe308ac9f | refs/heads/dev | 2023-08-22T09:42:02.399277 | 2022-02-16T01:26:13 | 2022-02-16T01:26:13 | 136,679,169 | 5 | 2 | Apache-2.0 | 2023-09-13T06:59:25 | 2018-06-09T00:58:35 | Python | UTF-8 | Python | false | false | 4,138 | py | """Support for Freedompro light."""
import json
from pyfreedompro import put_state
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
ATTR_HS_COLOR,
COLOR_MODE_BRIGHTNESS,
COLOR_MODE_HS,
COLOR_MODE_ONOFF,
LightEntity,
)
from homeassistant.config_entries import ConfigEntry
from homea... | [
"noreply@github.com"
] | JeffLIrion.noreply@github.com |
87b10db60bedbe9be2a069f490c9007cf0d4cdfc | 4683ab4a90067ff7c2f7c3b952eb8268713ca1b8 | /meteoweb/urls.py | decc0a8d5973c7ba42c84287180df9f7d86a5276 | [] | no_license | karpov-sv/favor2 | 068fda8c0acbd54bbec1e57c69617e0e60bc462e | 668085a495436888a7b031bdf6b161908f6d73cc | refs/heads/master | 2023-04-26T01:52:22.621648 | 2021-05-13T11:46:50 | 2021-05-13T11:46:50 | 285,786,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,323 | py | from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf.urls import patterns, include, url
from django.views.generic import DetailView, ListView
from django.db.models import Count
from models import *
from views import *
urlpatterns = patterns('',
# List of nights wi... | [
"karpov.sv@gmail.com"
] | karpov.sv@gmail.com |
dc07e2cccb0fdb9ae7c3fbd8dc0d06b9049e4223 | f52db9779023c3a007bf7f712dada1ae30307366 | /edge_detect.py | dd4f7e948bff7c4c4084eafee9b4b6f7204020c5 | [] | no_license | hemangdtu/Newtons_Rings_IR_Algorithm | 16b86f9d7490e0f560f59f81b0137b706c979ab5 | dd494aa8d363c9d8b6bb83cff59ef860c3727e48 | refs/heads/master | 2023-04-07T09:02:59.885671 | 2021-04-08T07:18:55 | 2021-04-08T07:18:55 | 354,702,917 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,043 | py | import cv2
import numpy as np
from matplotlib import pyplot as plt
from scipy.signal import argrelmin
import sys
#read input image, resize it if needed, and apply a basic gaussian blur to remove
#high-frequency noise
img = cv2.imread("test_1.jpg",0)
img = cv2.resize(img,(0,0), fx=1,fy=1)
img = cv2.medianBlur(img,5)
... | [
"noreply@github.com"
] | hemangdtu.noreply@github.com |
50c7ce0573bcae59abf94a12ef429ee067e6955a | c44b0322e47dcf52b3b542a0806f96fb22cb3e7f | /hacker_rank/spiral_print.py | b8435f02b0b96ad580adceaf90922310c19dd8a4 | [] | no_license | jcshott/interview_prep | b56a332f5c9a8d68d81afbb541911d70afb9fe35 | 567eb1e7b047f1917c008dd1eec98acf8043a7e7 | refs/heads/master | 2020-04-06T07:05:57.788289 | 2016-08-02T16:46:52 | 2016-08-02T16:46:52 | 42,322,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
def print_spiral(matrix):
top = 0
bottom = len(matrix)-1
left = 0
right = len(matrix[0]) -1
output = []
while True:
#print "left", left
#print "right", right
#print "top", top
#print "bottom",... | [
"jcshott@gmail.com"
] | jcshott@gmail.com |
f6b95fd1f667cbd84a3615a2192f85e37e2fa813 | 1b80c265ea585a9d96646afb40093a87874d09ca | /practises/test.py | fb134db5939d70d6f9023336f5d5f53795ffec18 | [] | no_license | gtopcular/OPENCVPRACTISE | 4e45e637d15d7d0968dbc881f89dd63678512df6 | 9b119e20371c0f8ad8724974f37301d5454e4cd2 | refs/heads/master | 2022-07-24T03:03:58.574445 | 2020-05-25T10:52:59 | 2020-05-25T10:52:59 | 255,631,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | import cv2
img =cv2.imread("./sources/helikopter.jpg',0)
cv2.imshow('helikopter.jpg',img)
dugme = cv2.waitKey(0)
if dugme == 27:
cv2.destroyAllWindows()
else :
cv2.imwrite("gri_helikopter.jpg",img) | [
"gtopcular@hotmail.com"
] | gtopcular@hotmail.com |
07a7bc52717aa5b1417895ba4f41a774881dd48b | d8bf91fc51b4fd05246097e5c7e5aa07771b1068 | /myenv/bin/pilfont.py | b091656756f12cc2c63007772af750d1c659a489 | [] | no_license | falcon1996/Gallery | 9d51bfba32fe06600a9b49991c99c106003a945f | e1c37d1e7cd02d1d878d5ea0107292248e4fdce9 | refs/heads/master | 2021-06-17T04:16:14.233354 | 2017-04-23T00:29:57 | 2017-04-23T00:29:57 | 82,963,158 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | #!/home/dhruv/Documents/galleryProject/myenv/bin/python3
#
# The Python Imaging Library
# $Id$
#
# PIL raster font compiler
#
# history:
# 1997-08-25 fl created
# 2002-03-10 fl use "from PIL import"
#
from __future__ import print_function
import glob
import sys
# drivers
from PIL import BdfFontFile
from PIL impo... | [
"dhruvparashar6@gmail.com"
] | dhruvparashar6@gmail.com |
0421a604d86c26b00cb7894e3a3d2bac5afddb39 | b12d2e8d296f8ca6ac72acfae65566e9c2f65e0d | /scripts/data_utils.py | 5952a24aaba2223c962be20ad30849ad9611140a | [] | no_license | yyincc/experiment1_hie_dstc2 | 6380210c92bc69b64a0dd1d82a65ab70e25f64e2 | d6f4f896a8d2889ea6b059d70331ac3f3fb3482b | refs/heads/master | 2020-03-25T22:00:30.664020 | 2018-08-11T20:38:00 | 2018-08-11T20:38:00 | 144,200,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,592 | py |
import numpy as np
import json
from itertools import chain
import re
from sklearn.model_selection import train_test_split
import operator
from copy import deepcopy
from functools import reduce
from spacy.lang.en import English
from score import do_compute_score, do_load_json_result
import gensim
from tqdm import tqdm
... | [
"yangyang950418@outlook.com"
] | yangyang950418@outlook.com |
00796d3b3a4472968a31b50cfda2cb973bf04186 | 2b08e2af586db3b290773bf579ba243962b5e7d5 | /interactivo.py | d1758cd6945e8311071ff7ed59a2a6a6013fd7a5 | [] | no_license | schiob/python-ciencias-basicas | e7fa4332e3038993c81388272280c4da90812959 | 433a210f1a80ecdbd6a70df468d9e579ff26df7e | refs/heads/main | 2023-06-05T05:10:15.130329 | 2021-06-24T00:20:55 | 2021-06-24T00:20:55 | 378,769,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,728 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.widgets import Slider, Button
# The parametrized function to be plotted
def f(t, amplitude, frequency):
return amplitude * np.sin(2 * np.pi * frequency * t)
t = np.linspace(0, 1, 1000)
# Define initial parameters
init_amplitude = 5
init_frequency... | [
"schiob4@gmail.com"
] | schiob4@gmail.com |
e4a39f7dc670a9334da406a630aee065d7152554 | 0e478f3d8b6c323c093455428c9094c45de13bac | /src/OTLMOW/OTLModel/Datatypes/KlAlgSnelheidsregime.py | 421b590ae8912821efe765805334d2de3ff76636 | [
"MIT"
] | permissive | davidvlaminck/OTLMOW | c6eae90b2cab8a741271002cde454427ca8b75ba | 48f8c357c475da1d2a1bc7820556843d4b37838d | refs/heads/main | 2023-01-12T05:08:40.442734 | 2023-01-10T15:26:39 | 2023-01-10T15:26:39 | 432,681,113 | 3 | 1 | MIT | 2022-06-20T20:36:00 | 2021-11-28T10:28:24 | Python | UTF-8 | Python | false | false | 3,552 | py | # coding=utf-8
import random
from OTLMOW.OTLModel.Datatypes.KeuzelijstField import KeuzelijstField
from OTLMOW.OTLModel.Datatypes.KeuzelijstWaarde import KeuzelijstWaarde
# Generated with OTLEnumerationCreator. To modify: extend, do not edit
class KlAlgSnelheidsregime(KeuzelijstField):
"""De snelheidsregimes met ... | [
"david.vlaminck@mow.vlaanderen.be"
] | david.vlaminck@mow.vlaanderen.be |
e7f9f3b65ee5f136748617b0468a728d10b56ab2 | 13b269bc05f0a0bb83887ca0b5250fa7fbdda085 | /tests/test_to_process.py | 1e337ef62c5c2c5708bd0c000e03bfc926d099f2 | [
"MIT"
] | permissive | flyte/anyio | e31866be5307e1c66ebcc6df17ebe2d786f32e0d | 9eb4671547b01f5e3ba0e0ca602b6aceec15af86 | refs/heads/master | 2023-04-25T16:00:09.711501 | 2021-05-22T12:51:25 | 2021-05-22T12:51:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,650 | py | import os
import platform
import sys
import time
from functools import partial
import pytest
from anyio import CancelScope, create_task_group, fail_after, to_process, wait_all_tasks_blocked
pytestmark = pytest.mark.anyio
@pytest.fixture(autouse=True)
def check_compatibility(anyio_backend_name):
if anyio_backen... | [
"noreply@github.com"
] | flyte.noreply@github.com |
7efa51e2c82d4381c2b16b6c2d5ae76530f80b70 | 3d47bd1876d67401985614a31e04909ec66a203e | /home/migrations/0001_initial.py | 290ef01a18b3dad7ac2d96076b23163858f671ce | [] | no_license | ermi13/setuporignal | 3abcea610941d0137fde9fa82b9b068defb05e33 | 5e12f75dc9725aa13461d6d413476783be6eeddf | refs/heads/master | 2023-01-29T04:18:27.818686 | 2020-12-07T21:34:46 | 2020-12-07T21:34:46 | 317,366,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | # Generated by Django 3.1.3 on 2020-11-30 22:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Service',
fields=[
... | [
"ermibling13@gmail.com"
] | ermibling13@gmail.com |
ac4efd009836bdbfc78a0f6aeed1d75784d572f2 | b7c0397e394c81357bcc0e388d03b29a09a6a5a8 | /bin/sentinel1_tile_download.py | 8041f83cd054faf3dc089f2544a75e885ea7eaff | [] | no_license | danhirst98/sentinel2-dataset-pipeline | 89c8d3f18eb495577fd6f5d522f0a2a8a202f071 | 0b88299ac7aba05bf78442af581a602849f9033f | refs/heads/master | 2023-01-12T07:30:30.577607 | 2020-01-19T20:18:10 | 2020-01-19T20:18:10 | 202,750,341 | 1 | 0 | null | 2022-12-26T20:48:00 | 2019-08-16T15:14:20 | Python | UTF-8 | Python | false | false | 775 | py | from sentinelsat.sentinel import SentinelAPI, read_geojson, geojson_to_wkt
from datetime import datetime, timedelta
def sentinel1_tile_download(file,username,password,tilepath):
api = SentinelAPI(username, password, 'https://scihub.copernicus.eu/dhus')
td = timedelta(days=60)
endDate = datetime.now()
... | [
"danielhirst1998@gmail.com"
] | danielhirst1998@gmail.com |
255f4e48e12b0086a363b02a7d0c3e7cf026e4cf | 191a7f83d964f74a2b3c7faeb4fc47d9c63d521f | /.history/main_20210529123243.py | 4b781a03c1f4d2efb3abc216954d34d660e80018 | [] | no_license | AndreLiu1225/Kinder-Values-Survey | 2a317feee8d5b17c27da2b2116742656e35d8ab9 | 090c27da0c822abb7dfc0ec6e13ae1b3dcb7bbf3 | refs/heads/master | 2023-05-03T00:26:00.481423 | 2021-06-04T03:24:19 | 2021-06-04T03:24:19 | 371,989,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,684 | py | from flask import Flask, render_template, redirect, url_for, flash, request
from flask_sqlalchemy import SQLAlchemy
from flask_wtf import FlaskForm
from wtforms import StringField, TextField, SubmitField, IntegerField, SelectField, RadioField
from wtforms.validators import DataRequired, Email, EqualTo, Length, Validati... | [
"andreliu2004@gmail.com"
] | andreliu2004@gmail.com |
b6c35090a87a08f91a9ef3303b9b4a5b23fcbb98 | a5aabe2e4057d78e687a57a6b560516a7cdb5836 | /tests/extreme/clustering/test_tman.py | c4cab7f0ccaa18b6d758bf361d21d8e50575424a | [
"MIT"
] | permissive | aratz-lasa/py-unsserv | 0ffc09ddab65a11ce917d0faa8b1b5dff091e563 | 6f332385e55d05953186b9a8b7848bca4b878e18 | refs/heads/master | 2022-12-14T21:10:12.397834 | 2020-05-03T11:29:49 | 2020-05-03T11:29:49 | 228,329,158 | 5 | 0 | MIT | 2022-12-08T07:00:55 | 2019-12-16T07:35:20 | Python | UTF-8 | Python | false | false | 4,202 | py | import asyncio
from collections import Counter
from functools import partial
from math import ceil
import pytest
from tests.utils import init_extreme_membership
from unsserv.common.gossip.config import GossipConfig
from unsserv.common.structs import Node
from unsserv.extreme.clustering.t_man import TMan
init_extreme... | [
"aratzml@opendeusto.es"
] | aratzml@opendeusto.es |
475f48e7502aeb5696e6f5a6fcf4b7325d61683d | 02a39a3391b011d69034d51fe447bb53cc5c3c89 | /cancer/authentications/urls.py | 88766f64862044b2bde9817cae805601cea800b0 | [] | no_license | warlikedhruv/djnago-lung-cancer-prediction | a35dbaca9214f7211da1bb5630a9680d5c98e021 | 3990cc4502214a19592f8d7e5a7ca93125fed950 | refs/heads/main | 2023-06-22T22:05:57.769444 | 2021-07-12T13:55:27 | 2021-07-12T13:55:27 | 385,265,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from django.urls import path, include
from .views import logout, login, register
urlpatterns = [
path('login', login, name='login'),
path('register', register, name='register'),
path('logout', logout, name='logout')
]
| [
"63941632+warlikedhruv@users.noreply.github.com"
] | 63941632+warlikedhruv@users.noreply.github.com |
a6959477826fd63adfb926c0f40332beeb4dadfd | 171610ea4157109b1f271fda241330c29a66c581 | /classobj.py | e7d382418ac0bff0106f3d786abab9a28c93f66e | [] | no_license | DerrenDsouza/Python-Programming | 731e3ba38c38d40b8bb32913e22753c2e43a30ad | 62286a1c2534a986b77227d7b3397630d8dbd4fb | refs/heads/master | 2020-04-25T08:44:17.574478 | 2019-09-07T06:55:01 | 2019-09-07T06:55:01 | 172,656,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | class student:
h=0
def __init__(self):
self.h=6
def my_func(self,k):
print("hi I am in class")
self.h=k
print(self.h)
o=student()
print(o.h)
o1=student()
print(o1.h)
o.my_func(2)
o1.my_func(4)
o3=student()
print(o3.h) | [
"noreply@github.com"
] | DerrenDsouza.noreply@github.com |
1350cf16a2da56ca1ba8ffd444d30e82fdde2cb4 | 2a2b36a603e1fefeaca902381b6377a44bb503af | /tp/models/entity.py | 328462036afe3f53184468ea48d3ba29ee070271 | [] | no_license | nenad/TPpy | 1c3f848df48f4cef4a6dcd3fb01efa401d0457a3 | 8b261cdea8e1d418288397d8e62ad2b9a7246385 | refs/heads/master | 2021-05-30T23:26:26.344356 | 2016-04-15T13:14:57 | 2016-04-15T13:14:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | import types
class EntityType:
def __init__(self):
pass
BUG = 'Bug'
USERSTORY = 'UserStory'
TASK = 'Task'
class Entity:
def __init__(self):
self.id = 0 # Integer
def __str__(self):
return self.to_JSON()
def to_JSON(self):
jsonstr = ''
for var i... | [
"n.stojanovik@voxteneo.com.mk"
] | n.stojanovik@voxteneo.com.mk |
3ff3f10ea73afba3d28f0fe60aab194cddbc1ed0 | 250967d919697ceaa9115e1f1a2ff96ff6cb22bb | /chapter 5/HW05-02.py | b392296fa2c1302face6863ce17f6f288fd5b480 | [] | no_license | saikirankondapalli03/pythonmath | 881ba67ba49b0c62e4b3dab474864b9df45e338f | 283493c90bf4af2fabd69016de397d141cba75e8 | refs/heads/master | 2020-06-18T04:21:45.269512 | 2019-10-15T15:38:08 | 2019-10-15T15:38:08 | 196,162,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | '''
@author Sai
File name: HW05-02.py
Date created: 7/22/2019
Date last modified: 7/22/2019
Python Version: 3.1
This file is all about proof of law of large numbers in python
for law of large numbers please refer to
a) https://en.wikipedia.org/wiki/Law_of_large_numbers
b) https://en.wikipedia.org/wiki/Law_of_large_nu... | [
"saikirankondapalli03@gmail.com"
] | saikirankondapalli03@gmail.com |
a950d52c318d45b409f3ab1fe17a0e058800c942 | 256c6f6d9cabc1cb3b81e8a7deb4ca847bb8712a | /nlpproject/asgi.py | 37bde0b1c8f62bcbe29898da1a90dcf83f007e5c | [] | no_license | rtodinova/FakeNewsDetection | a871766b7487490202f83d615ebbee99f7578755 | 345d94e13c3d11a8caa8fd5fc075c6c90bbfb548 | refs/heads/master | 2020-12-27T06:28:24.326436 | 2020-02-15T09:49:44 | 2020-02-15T09:49:44 | 237,795,548 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for nlpproject project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"rtodinova@uni-sofia.bg"
] | rtodinova@uni-sofia.bg |
ea4001e48094948ae3c803340f078418ff9e8753 | 2651a539efcf5501488786f125860ecb7e2d3169 | /textblob_sentiments.py | 85fd4b68a39931910d93ae1bc3f64d48441690a8 | [] | no_license | patankaraditya1/Twitter-Sentiment-Analysis | 4f968efc506eda7a59dfd3edde3435094370e813 | b948dfd4a005740303e418327a0c603f7ba27bde | refs/heads/master | 2020-03-12T00:46:55.871101 | 2018-04-20T12:21:12 | 2018-04-20T12:21:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,541 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 24 10:55:25 2018
@author: ADITYA
"""
import sys,tweepy,csv,re
import textblob
#from textblob import TextBlob
import matplotlib.pyplot as plt
class SentimentAnalysis:
def __init__(self):
self.tweets = []
self.tweetText = []
d... | [
"noreply@github.com"
] | patankaraditya1.noreply@github.com |
7bf05a660f374d99b85ca4d77340b5fcd77ccf5c | c4a25d72f38dedf224431c968c8894ab1b72a2d5 | /job/admin.py | 4b66d950b677ae90c4ecb16a59a763e309a9570f | [] | no_license | ahmedsaad2011559/django-Job-Board | d38fb345eaa88a8e4a38259e27001b34cecca6e9 | 7ca4b2c931730af461bcbb3f429507a365dc3407 | refs/heads/main | 2023-06-29T20:55:46.036656 | 2021-08-06T09:11:23 | 2021-08-06T09:11:23 | 391,702,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | from django.contrib import admin
# Register your models here.
from .models import Job,Category
admin.site.register(Job)
admin.site.register(Category)
| [
"ahmed2011559.ahmedsaadmohamed989@gmail.com"
] | ahmed2011559.ahmedsaadmohamed989@gmail.com |
8b8cc3dcee06ab2783d556bc60df2a47668c5d00 | ffcce7bc3d82f19a2e024549f9fe3cd8e8702203 | /examples/other/animation2.py | 465af025dde5cf668f825fb115e5caad8b1f804a | [
"MIT"
] | permissive | jlqzzz/vtkplotter | 97f122e533b7f7d2dae1d7523d96326fbe5b8b60 | 6d28cb79153ddef29bc7b0bd19ddde655dcc392c | refs/heads/master | 2022-03-25T03:15:44.487184 | 2019-12-02T18:50:10 | 2019-12-02T18:50:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | """
This example shows how to animate simultaneously various objects
by specifying event times and durations of the visual effects.
"""
from vtkplotter import *
s = load(datadir+"bunny.obj").subdivide().normalize()
vp = Animation()
vp.timeResolution = 0.02 # secs
vp.switchOn(s)
# no need to repeat t=1, duration=3 ... | [
"marco.musy@gmail.com"
] | marco.musy@gmail.com |
fe34abe7832b4c957422ee6ce3e3eb4df632a86d | ebcc40516adba151e6a1c772223b0726899a26eb | /tests/io_/test_versions.py | 462e87461b8534cdaa4886943c80729df6647e0a | [
"MIT"
] | permissive | spacetx/slicedimage | acf4a767f87b6ab78e657d85efad22ee241939f4 | eb8e1d3899628db66cffed1370f2a7e6dd729c4f | refs/heads/master | 2021-04-09T10:53:15.057821 | 2020-05-26T17:40:11 | 2020-05-26T17:40:11 | 125,316,414 | 7 | 4 | MIT | 2020-05-26T17:40:15 | 2018-03-15T05:24:24 | Python | UTF-8 | Python | false | false | 374 | py | from packaging import version
from slicedimage import VERSIONS
def test_version_increasing_order():
"""Verifies that the VERSIONS list is in increasing order."""
for ix in range(1, len(VERSIONS)):
prev_version = VERSIONS[ix - 1]
curr_version = VERSIONS[ix]
assert version.parse(prev_v... | [
"noreply@github.com"
] | spacetx.noreply@github.com |
6ae190b578bc78b85ffd969badfc177eb882069a | 1a0aba15348d5524c0d4a3fbe485f764bb9a0661 | /Class2_Python3/example_01000_for_loops.py | db1a51ca4c802012fbd1863bf6d97ee950215016 | [] | no_license | tazi337/smartninjacourse | dde55356e562134d5aa11b1c9e8c08efcbc53c60 | 93e7e5050c164b69fe20f251a787db6c6505a831 | refs/heads/master | 2023-05-13T18:30:13.679080 | 2019-12-12T17:30:59 | 2019-12-12T17:30:59 | 212,634,378 | 0 | 0 | null | 2023-05-02T17:57:02 | 2019-10-03T17:06:58 | HTML | UTF-8 | Python | false | false | 66 | py | # Schleife mit range
for number in range(10):
print(number)
| [
"tamara.zimmermann@otago.at"
] | tamara.zimmermann@otago.at |
f6bc874570ce5b3666fce15e4418c8b90e0ec31b | 8697515393180e6160edf7174412a5b73031e7c9 | /Advanced_DP_CGAN/gan/Base_DP_CGAN.py | 0b8a920910ee635ceca7f83c441cfe3dda309c98 | [
"Apache-2.0"
] | permissive | reihaneh-torkzadehmahani/DP-CGAN | 83d9cfdfeb36b6bf8fd2a37ce2c5debde513ecfe | 639ce4d261ee3202ab72ea5fe4ece916272bf524 | refs/heads/master | 2021-11-22T05:41:40.422952 | 2021-10-12T10:48:38 | 2021-10-12T10:48:38 | 162,071,578 | 27 | 7 | Apache-2.0 | 2019-09-18T08:36:20 | 2018-12-17T03:51:04 | Python | UTF-8 | Python | false | false | 19,493 | py | # -*- coding: utf-8 -*-
from __future__ import division
import time
import tensorflow as tf
from mlxtend.data import loadlocal_mnist
from sklearn.preprocessing import label_binarize
from sklearn.multiclass import OneVsRestClassifier
from sklearn.metrics import roc_curve, auc
from sklearn import svm
from sklearn.tree ... | [
"reihaneh.torkzadehmahani@gmail.com"
] | reihaneh.torkzadehmahani@gmail.com |
03fbbd024ace79d6db60da0d6fa7e50fac2b92b8 | 12094b02c411f986e8f66f1f971f8e3ae99a8167 | /OpenControl/ADP_control/controller.py | feeb8be9b624ea12d776d1409e3dbf353b7a66ee | [
"MIT"
] | permissive | masbudisulaksono/OpenControl | f8fcbe63290a0011f3ea7412a0200ca9f8913ec9 | 0087408c57bc77f34f524b28f8c4363b116700bb | refs/heads/master | 2023-06-22T09:57:54.579445 | 2021-07-16T05:10:59 | 2021-07-16T05:10:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,122 | py | import numpy as np
from scipy import integrate
from control import lqr
from ..visualize import Logger
from .system import LTI,NonLin
class LTIController():
"""This present continuous controller for LTI System
Attributes:
system (LTI class): the object of LTI class
log_dir (stri... | [
"phi9b2@gmail.com"
] | phi9b2@gmail.com |
64b4de116e876e8f8baee0b128e9758022e58b5c | ba1c0a7a17cce2a3c1bd04c8a1546f74eb8007c1 | /app2.py | 92a2f10681ff2f7043927d30f66226e91ee22407 | [] | no_license | syedhaziq/ML-and-Docker | 5dd04dacff493251d9a9bd09720a2ae83746d1ba | 05346554333f72258f173635a5aafb264e08e30a | refs/heads/main | 2023-02-01T08:43:10.198863 | 2020-12-20T10:26:28 | 2020-12-20T10:26:28 | 323,042,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Dec 19 18:54:00 2020
@author: syed_
"""
from flask import Flask, request
import numpy as np
import pandas as pd
import pickle
import flasgger
from flasgger import Swagger
app= Flask(__name__)
Swagger(app)
pickle_in = open("classifier.pkl","rb")
classif... | [
"noreply@github.com"
] | syedhaziq.noreply@github.com |
11883620c854fbaff19053d4596bac78d2611631 | 2f85a88c5862a4998a1b80262c4184d3c2dc1a7c | /userauthprac/manage.py | 0f112fe6e1c7da16c32381e605b07ec01807996d | [] | no_license | Tareq69/Django-Practice | 7fe21584dfe93fd548099564062cc7eec71174da | e042b80f212e332761c91078cb90e90aa2d575b1 | refs/heads/main | 2023-06-28T14:46:04.746749 | 2021-08-05T07:16:47 | 2021-08-05T07:16:47 | 365,340,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | 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', 'userauthprac.settings')
try:
from django.core.management import execute_from_command_line
except... | [
"mtareq880@gmail.com"
] | mtareq880@gmail.com |
14bca9642d96aeb5c316144e0cbd896b89f4215a | 3c66d322842f1b39edce07f54f6a9d54a7609e05 | /pic_predict.py | fe1627c800a301628ff7c681ef3057a5e9a16071 | [] | no_license | fdelia/YoN-game | 9b81cd66ee3ff01ef3d6a3de9a0cd6b7e7b503ad | ec428e929a71bd52a94d163f3017106ad4682736 | refs/heads/master | 2019-07-11T19:42:09.832983 | 2017-05-21T15:00:21 | 2017-05-21T15:00:21 | 91,965,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
from keras.models import load_model
import cv2
import numpy as np
new_data_dir = 'Pictures/new/'
predicted_data_dir = 'Pictures/predicted/'
MOVE = True
img_width, img_height = 200, 200
model = load_model('model.h5')
model.compile(loss='binary_crossentropy',
... | [
"fabio_d@gmx.net"
] | fabio_d@gmx.net |
6ccd00459fa87e1a94f5758411d0bbdb9aec6367 | a884039e1a8b0ab516b80c2186e0e3bad28d5147 | /Livros/Livro-Desenvolvimento web com Flask/Capitulo04/Nível 01/exemplo4_3.py | a387fdd0382fcffe143985b37b25f2d588a471a9 | [
"MIT"
] | permissive | ramonvaleriano/python- | 6e744e8bcd58d07f05cd31d42a5092e58091e9f0 | ada70918e945e8f2d3b59555e9ccc35cf0178dbd | refs/heads/main | 2023-04-10T14:04:24.497256 | 2021-04-22T18:49:11 | 2021-04-22T18:49:11 | 340,360,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | # Program: exemplo4_3.py
# Author: Ramon R. Valeriano
# Description: Fazendos os programas do Capítulo 04, do nível 01
# Developed: 09/03/2020 - 14:48
from flask import Flask, render_template
from flask_bootstrap import Bootstrap
from flask_moment import Moment
from flask_wtf import FlaskForm
from wtforms import Str... | [
"rrvaleriano@gmail.com"
] | rrvaleriano@gmail.com |
6230ddcb42088e0000d651b5223cc77582889a0f | 53debe9ffc8902390f1f6e223f6271429717065c | /myfirstwebsite/urls.py | d2bf60f2c90e2f4970ced134c6d23df4023e6f63 | [] | no_license | prakashme333/portfoliofinal | c5a9cc78d6404172f5531c630ab8074c5574a802 | a5bd32b33e9ce8e183d9cdccd202fcd8ffe45aca | refs/heads/master | 2023-06-04T07:28:33.368734 | 2021-06-14T15:03:58 | 2021-06-14T15:03:58 | 376,794,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | """myfirstwebsite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Clas... | [
"prakash.me333@gmail.com"
] | prakash.me333@gmail.com |
e0b621639cfd7dcfd8faffc877ce2854923c217a | 3e58aa3b1728dac3ca1f524ad412581216cb8ac4 | /EVFutureEmissionCalculator.py | 60628997545abcba032e7be4681f22621ac02dfb | [] | no_license | ascourtas/EV-cobenefit-calculator | 5cad38da5c0a54a55a46afecce320bde359fef25 | 6cef30fc7f199675190fdbc34c9f65f004d3643f | refs/heads/main | 2023-01-10T11:55:49.691314 | 2020-11-11T02:09:56 | 2020-11-11T02:09:56 | 311,831,205 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,834 | py | import xlrd #allows for reading from excel
import matplotlib.pyplot as plt #allows for creating figures within python
import numpy as np #allows for higher level math functions
import seaborn as sns #makes figures more organized
sns.set() #apply seaborn basics
# TODO: remove all absolute paths
AZNM = xlrd.open_wo... | [
"ascourtas@gmail.com"
] | ascourtas@gmail.com |
fddec0380f79ff6f5f668034a225ffab068a77d0 | 904fc202ae30942c561767369ea0783ec7fb20c7 | /challenge18.py | 6e72200b236c23f081f2b1c2d15b6dbf6a53ab83 | [] | no_license | TetianaHrunyk/DailyCodingProblems | 92004878f5857c6ced79825abfcff0e2bdef45f7 | c2a97ffd700db18ba4e5383fc3f0c8abbff79140 | refs/heads/master | 2021-04-01T15:45:55.030351 | 2020-08-15T17:20:56 | 2020-08-15T17:20:56 | 248,197,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,158 | py | """
Given an array of integers and a number k, where 1 <= k <= length
of the array, compute the maximum values of each subarray of length k.
For example, given array = [10, 5, 2, 7, 8, 7] and k = 3,
we should get: [10, 7, 8, 8], since:
10 = max(10, 5, 2)
7 = max(5, 2, 7)
8 = max(2, 7, 8)
8 = max(7, ... | [
"tetiana.hrunyk@gmail.com"
] | tetiana.hrunyk@gmail.com |
01d2714cb72201a6a3dcb168ef90fd6bd0a8160c | 57c3524619b41e22ad3d3b2bd312f2653a9f3e68 | /movies/app/migrations/0006_user.py | 6efc19958e70702535055373e372aa4bf0322aa4 | [] | no_license | xin17863935225/MoviesProject | 8208c9836863c07300d6ed466b0c5303ca938eb0 | f494bb6e0ae36f306f4c3ddf205eebd7646ae7f2 | refs/heads/master | 2020-04-07T16:32:41.449264 | 2018-11-21T10:50:16 | 2018-11-21T10:50:16 | 158,532,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-11-19 09:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0005_auto_20181118_1954'),
]
operations = [
migrations.CreateModel(
... | [
"m17863935225@163.com"
] | m17863935225@163.com |
c5b012fede4462a7d9326e5a44e1ac78b9302ac0 | ab9b0e4df4149942b35f794e42080e93a07acc75 | /RayTracer/WriteArrayOfTriangles.py | 356273439476ca217c6c2d9488c906b2e71f0a76 | [] | no_license | cortana101/RayTracer | a08ffeffec398382bc5cb92e5b0e402fd0a52356 | 240c9ac238cb99c0b442a7fe86367be7db1e663b | refs/heads/master | 2021-01-18T16:29:51.980516 | 2014-07-25T16:55:09 | 2014-07-25T16:55:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,800 | py | #Creates a set of 4-sided cones in a 3D array
triangleHeight = 1.0
triangleWidth = 1.0
triangleFaceFormat = "3 {0} {1} {2}\n"
numTriX = 10
numTriY = 10
numTriZ = 10
startingZ = 4.0
triSpacing = 2.0
class vertex:
x = 0.0
y = 0.0
z = 0.0
def getVertexString(self):
return "{0} {1} {2}\n".format... | [
"shihdan@hotmail.com"
] | shihdan@hotmail.com |
1558ad1012e5d828b2873a237cfb23be3d1281f7 | dec9f5cc5fc4617b7a37a95d76f6e7faba7e91e8 | /crear_lista_con_ceros.py | 89939a436b5d0a994a8bf1bc66bbb068f0612f5c | [] | no_license | jfernand196/Ejercicios-Python | d9ea39e37e241a6409c1ceed373c1bf6049944de | 1cedb16d2ada8ec5b67cec485fd0fc756b92953b | refs/heads/main | 2023-09-03T13:59:34.777020 | 2021-11-06T23:03:24 | 2021-11-06T23:03:24 | 421,098,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | arr=[0]*(4)
print(arr) | [
"jfernand196@gmail.com"
] | jfernand196@gmail.com |
0cfd39321abd018e157c9924d421b20f4473af3f | 1f5b6cd825f1a8b97de5ded0ec95931dd6f635af | /example.py | 2b1595011ad71cec36aae9840c55ec755ef35759 | [] | no_license | zalavin/voronoi | 735a37ae4dd17e9f9e31ce5085ce2fa03ba410d5 | 7e030bd1d657997962adfb75fc6485a176d51b60 | refs/heads/master | 2020-11-24T09:42:42.626272 | 2019-12-15T10:01:34 | 2019-12-15T10:01:34 | 228,088,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | import numpy as np
from scipy.spatial import Voronoi, voronoi_plot_2d
import matplotlib.pyplot as plt
points = np.array([[0, 0], [0, 1], [0, 2], [1, 0], [1, 1], [1, 2],[2, 0], [2, 1], [2, 3.1]])
vor = Voronoi(points)
voronoi_plot_2d(vor)
plt.show() | [
"yztrnc@gmail.com"
] | yztrnc@gmail.com |
5cc818c213c3fdee9c98e03c04fc1653d0b66336 | c2209acf2147589057955e65b56c1ed4a142c228 | /simulator/run_helper.py | 225a079607d1342fbc48f1bc25530032f3d1b646 | [
"MIT"
] | permissive | sn4B/covid-19-pandemic-simulation | d4007461633e40664ad6be535396fd388d0286ea | ab8b48f01734fe1fdb4b3429dd69adebd3b3f62d | refs/heads/master | 2022-04-20T11:38:25.756363 | 2020-04-18T20:44:07 | 2020-04-18T20:44:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,469 | py | import argparse
from simulator.parameters import *
def get_parser():
parser = argparse.ArgumentParser(description='Please feed model parameters')
parser.add_argument('--nrun', type=int, help='Number of simulations', dest=nrun_key)
parser.add_argument('--nind', type=int, help='Number of individuals', de... | [
"biossamu@gmail.com"
] | biossamu@gmail.com |
969b80ee8cc4c17a50e1e211549d04546b0cd7db | 9e0b758019d9390ac09e25acc7c9b1ddcc6cb3b2 | /discord_mdext/standard_subset.py | 085a94df9f7b88616e327f8846fcfd7ec43e36bc | [
"Unlicense"
] | permissive | tsudoko/pullcord-export | 68fc6a8c6a980ca8b1de91b5c19987956a3c3447 | 6c6b296cb3437dbbf9896573ecb3f7d00e33b411 | refs/heads/master | 2020-04-29T12:21:24.729091 | 2019-11-03T22:04:32 | 2020-01-05T18:39:43 | 176,133,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | import markdown
class DiscordSubsetExtension(markdown.Extension):
def extendMarkdown(self, md):
"""Remove standard Markdown features not supported by Discord."""
md.registerExtension(self)
md.preprocessors.deregister("reference")
md.parser.blockprocessors.deregister("indent")
md.parser.blockprocessors.der... | [
"flan@flande.re"
] | flan@flande.re |
69cf78fe2c92ade2b933e5c22171f96f7cad2375 | 962dee99bceeae8d6b070cd3620ced13445db40a | /backdrop/test_webapp.py | 1d7570e72bef4addc3de4c3d4daf14fe22bf4cfd | [] | no_license | robyoung/backdroop | 6b3d86b3f7e7569ee954b5ae0b7872c1619cbe37 | 2a93463ac6792e95400b73c1ad2f6a7c31012e54 | refs/heads/master | 2018-12-28T19:20:05.226179 | 2014-04-11T08:53:14 | 2014-04-11T08:57:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,836 | py | from .webapp import app
import unittest
import json
import pymongo
class FlaskTestCase(unittest.TestCase):
def setUp(self):
app.config['TESTING'] = True
self.app = app.test_client()
def tearDown(self):
pymongo.Connection()['backdroop']['foobar'].drop()
def add_records(self):
... | [
"rob.young@digital.cabinet-office.gov.uk"
] | rob.young@digital.cabinet-office.gov.uk |
4a0cf341c54b5e86925e1e4083c443883922d80b | 23e40d2056bcadb28aad88ef58efb95461516072 | /main/settings.py | aab3cf8e575662e3a8938c00d1089bb561948ca2 | [] | no_license | drewvpham/dojo_secrets | 6436335005373ab93e3dd58e5943b918313f3fa9 | 120016c86d17643c59f6e18aff84d5ccb84b52b0 | refs/heads/master | 2021-01-22T04:15:15.385267 | 2017-05-30T21:47:34 | 2017-05-30T21:47:34 | 92,445,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,113 | py | """
Django settings for main 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/
"""
import os
# B... | [
"drewvpham@gmail.com"
] | drewvpham@gmail.com |
07440c9f25df6a45a8360071ab83f6fc63760930 | 355609e7d11f9bcccb1d72f3960dab197920d392 | /get_faces_events_v0.9.4.py | 73b07c412b5391ad8e8ec95b0cca3cae03753cc7 | [] | no_license | asnigirev/scripts | db82d094c6ff42ef9498d10890c76eca7fee58aa | 0527951148f3ea9308618e9d578650dd8aec0e86 | refs/heads/master | 2022-08-24T04:19:21.934572 | 2020-05-28T16:47:32 | 2020-05-28T16:47:32 | 267,643,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,755 | py | #!/usr/bin/python3
# Copyright (C) 2019 All rights reserved.
# Author Artem Snigirev <takeitawaytu@gmail.com>.
# -*- coding: utf-8 -*-
import sys
import os
import json
import requests
import csv
from requests.auth import HTTPBasicAuth
from datetime import datetime, timedelta
from dateutil import tz
import pytz
import... | [
"51997250+asnigirev@users.noreply.github.com"
] | 51997250+asnigirev@users.noreply.github.com |
cfba4552095164906b3630255f73327a589c99c7 | d7ed341278eef549dcba6bdb4b0b3ce6062711c5 | /calc.py | f5716e289a104658c09008b53887f1a9fd5e2c88 | [] | no_license | JerryDSW/python_test | a005ba5667be441bdca16b39f32b8905dce06282 | 0ac04343a5876c00e7798c4af63b0e512aeeac40 | refs/heads/master | 2020-03-22T00:52:05.340391 | 2018-06-30T14:39:17 | 2018-06-30T14:39:17 | 139,269,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | def add(x, y):
pass
def subtract(x, y):
pass
def multipy(x, y):
return
def divide(x, y):
pass
def aquare(x):
pass
| [
"JerryWangDSW@gmail.com"
] | JerryWangDSW@gmail.com |
02621e8e9db32fa0801a84b3c0bc40d5521325dd | 898c75627c084ef05153423664742a8c4a1c279b | /aurora.py | 0e13a7148864c6bf59fb98be00064ef7b1e1b13c | [] | no_license | headrotor/aurora-DMX | 6ab32a3b0aa997027c188395bb634211aee436b2 | 5abae5addd10b9a67d5eba6c30df3fd2953e4fa7 | refs/heads/master | 2016-09-06T01:14:28.006584 | 2013-10-14T03:24:29 | 2013-10-14T03:24:29 | 9,930,111 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,298 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
""" This file contains classes to deal with the irregular structure of
the Aurora artwork
"PODs" are a group of 4 DMX-32 boards, each pod can support up to
4x32=128 DMX channels; at three channels per branch or 10 branches
per board, each pod can support 40 branch... | [
"rrmutt@gmail.com"
] | rrmutt@gmail.com |
b82c5691d93f85bfb3f0a5405b79ca804500f2c4 | 2e8ff2eb86f34ce2fc330766906b48ffc8df0dab | /tensorflow_probability/python/internal/backend/numpy/gen/linear_operator_block_diag.py | 6aeec93a59471c9f85ff8fffe030e4d7812c59de | [
"Apache-2.0"
] | permissive | wataruhashimoto52/probability | 9613f9a3cc685ff1a20643c4a05a48f9cf0fe1ae | 12e3f256544eadea6e863868da825614f4423eb0 | refs/heads/master | 2021-07-16T18:44:25.970036 | 2020-06-14T02:48:29 | 2020-06-14T02:51:59 | 146,873,495 | 0 | 0 | Apache-2.0 | 2018-08-31T09:51:20 | 2018-08-31T09:51:20 | null | UTF-8 | Python | false | false | 28,763 | py | # Copyright 2020 The TensorFlow Probability Authors. All Rights Reserved.
# @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# THIS FILE IS AUTO-GENERATED BY `gen_linear_operators.py`.
# DO NOT MODIFY DIRECTLY.
# @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
18daa4fb284bc101f6bf7689e10db76e2acbb98e | 85ffd3121df98bfcb33de50520fbd1846500033d | /0_training_data_collection.py | 7198d32aa31189ce36ae0858e21a1b903360bdb5 | [] | no_license | Jakksan/BullyhackFall2020 | bd846308d83367edf579a64452fb93734c5146a1 | 0bbc00bd6d19fe3ef9ea1eab70ba2d2630e383bf | refs/heads/master | 2020-12-09T12:48:20.670768 | 2020-01-12T04:26:52 | 2020-01-12T04:26:52 | 233,308,372 | 0 | 0 | null | 2020-01-12T11:04:43 | 2020-01-11T22:53:05 | Python | UTF-8 | Python | false | false | 1,697 | py | import cv2
vid_cam = cv2.VideoCapture(0)
face0_detector = cv2.CascadeClassifier('./dataset/haarcascade_frontalface_default.xml')
face1_detector = cv2.CascadeClassifier('./dataset/haarcascade_frontalface_alt.xml')
face2_detector = cv2.CascadeClassifier('./dataset/haarcascade_frontalface_alt2.xml')
profile_detector = cv2... | [
"noreply@github.com"
] | Jakksan.noreply@github.com |
c044a87fec98fd4c8f583256862bdd4bcb527320 | 863081639cf34d31a33e8153420d8f9e4cfdb33e | /fmovies/settings.py | 79737b97c590465c2fa32ee392061c43959af829 | [
"MIT"
] | permissive | harisnaeemofficial/fmovies | e674fb284c33377508d879d3a307119cece6a6f2 | 26b9a033db8b6eea7de281b96679b47dc15e303f | refs/heads/master | 2021-06-09T17:32:23.778873 | 2016-11-24T23:28:47 | 2016-11-24T23:28:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,301 | py | """
Django settings for fmovies project.
Generated by 'django-admin startproject' using Django 1.10.2.
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/
"""
import os... | [
"piero.marini21@gmail.com"
] | piero.marini21@gmail.com |
455e301e82cb9f97b73824292c3cb9c7ca0d10ae | 0deab564a85fa094158e11f33abc08e72ebd4df3 | /Business rules voor Recommendation Engine.py | 1ef49df966518fa10389155efc989df6052cce03 | [] | no_license | hassoonsy2/Business-rules-voor-Recommendation-Engine | 7c6dfaeb935121212c69df459de7e3e43191c24b | 2ba22874d66ffbcde3403b03b826365fb47ed9b7 | refs/heads/main | 2023-03-24T09:41:47.352535 | 2021-03-18T22:17:46 | 2021-03-18T22:17:46 | 348,071,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,920 | py | import psycopg2
from psycopg2 import Error
def connect():
"""This function is the connection with the postgres db"""
connection = psycopg2.connect(host='localhost', database='huwebshop', user='postgres', password='Xplod_555')
return connection
def disconnect():
"""This function disconnects th... | [
"71430169+hassoonsy2@users.noreply.github.com"
] | 71430169+hassoonsy2@users.noreply.github.com |
ce7a61def0f53cb668183add833aabc77c48c1b5 | 26dc729f95901e3a2dea601a7f9918b40a5bd5b1 | /Position.py | dc8baea414e339d06e0be7436571574f71ae0031 | [
"MIT"
] | permissive | yuvrajwaraich/Pathfinder | d3055310fc1b68925379091d6e2c17ea441784f1 | 99ea7f3f6c723ac57299e8dcefb275872533dfc0 | refs/heads/master | 2022-12-23T15:38:48.760347 | 2020-09-29T01:12:10 | 2020-09-29T01:12:10 | 299,469,925 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,581 | py | class Position():
def __init__(self, row, col, squareType="PATH", prev=None, g_cost=0, h_cost=0):
self.row = row
self.col = col
self.squareType = squareType
self.prev = prev
self.visited = False
self.g_cost = g_cost
self.h_cost = h_cost
self... | [
"noreply@github.com"
] | yuvrajwaraich.noreply@github.com |
37d6e9b44bdd2a6a959ddb491fe0ca8dfc01fdcf | 2e5b9de7f9e545655c323e344840d2648b6459db | /ATools.py | b13e05e4fe523c55b249ed11f4528e3ede3da932 | [] | no_license | AbdXH4K3r/ATools | a6871fca919eb8216bebcf1bd29d8b336048dd9d | 878431b1e52c550e07668868dce3f080e4b1f5b9 | refs/heads/master | 2020-04-07T00:46:14.245202 | 2019-01-12T13:08:03 | 2019-01-12T13:08:03 | 157,917,864 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,149 | py | # -*- coding: utf-8 -*
#ATOOLS by Abdxslayer
#http://www.github.com/ABDXH4K3r
import os
import sys
import time
import re
import requests
import random
import socket
import re
import platform
import json
from urllib2 import urlopen
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
fr... | [
"noreply@github.com"
] | AbdXH4K3r.noreply@github.com |
b92267db4323341dfa9c38b216bca9f91bb337b0 | 76b4790cc405d8287fccfa2dd691f4415fc88a11 | /format/mpls/playlist/play_item/__init__.py | c58d6a32d299fbb04eff8c2fa3060a099b8e3ce4 | [] | no_license | Nicba1010/blumount-python | 8131f6685469e73b05068c3e41c9b709ccc21a5a | 648c44b74617186172c767c66c98299e7688c056 | refs/heads/master | 2022-12-16T15:14:12.294720 | 2020-09-13T11:55:01 | 2020-09-13T11:55:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | from .play_item import PlayItem | [
"nicba1010@gmail.com"
] | nicba1010@gmail.com |
6d2cce74c330a140309c8fdbe07a96d959916b66 | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg_old/scg_obj_shell_2nd/test_c40407.py | bc6d1b372424eea87293ec88ccf7c74bca513fd8 | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,560 | py | import pytest
import time
import sys
from page_obj.scg.scg_def import *
from page_obj.scg.scg_def_obj import *
from page_obj.scg.scg_def_log import *
from page_obj.common.rail import *
from page_obj.scg.scg_def_acl import *
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file_... | [
"15501866985@163.com"
] | 15501866985@163.com |
8afba1b98f5baf9799fa457a5d385645ca3c76ae | 0bccd9c02c258705bcbb429c29c7c84ecdef7d71 | /model/LinkNet.py | da0bde540d2d6f93f1e4a055ef6a620d8caa505a | [
"MIT"
] | permissive | XiudingCai/vessel-segmentation-for-retina | 805f11b697c4cbf9a31fbd0960d30d6fe9bce215 | 664db9d44d894442ce957801865858874ece35c3 | refs/heads/master | 2023-03-15T04:13:44.147287 | 2021-03-26T03:28:24 | 2021-03-26T03:28:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,131 | py | ############################################################################################
# LinkNet: Exploiting Encoder Representations for Efficient Semantic Segmentation
# Paper-Link: https://arxiv.org/pdf/1707.03718.pdf
#########################################################################################... | [
"995959149@qq.com"
] | 995959149@qq.com |
cc974e88dd267b0c5ec00ef6321af8552980d526 | 347731bdab0fb2530ecfa90026e354a31205caf0 | /pennylane/devices/tests/test_properties.py | e7213938611c365b447fbc24f90b56f117fa3298 | [
"Apache-2.0"
] | permissive | apv-8/pennylane | 83c52a9f956b3fdb636764f529c1f0dd0d952c63 | 8792f0f88178f70a04d6f7afbbb9dd90d2e758b3 | refs/heads/master | 2023-02-20T17:44:18.041986 | 2021-01-21T20:07:56 | 2021-01-21T20:07:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,444 | py | # Copyright 2018-2020 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | [
"noreply@github.com"
] | apv-8.noreply@github.com |
4068279ea9672c4f52ddfbe0952f68fcf9605fc5 | 3a48d60ba07f240cdfd18e0165dd30a0cd294dc2 | /project/Setting.py | b4e9ea9e906c7b62745847f3f59865dbc328e698 | [] | no_license | aminubi/jobpool | 1184a63d0843b3dac6c1e256f45466029ad46404 | 027d81927227a40dacc1352cfe4e51d5633ebea5 | refs/heads/main | 2023-05-07T16:39:26.175879 | 2021-05-29T00:05:32 | 2021-05-29T00:05:32 | 362,092,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | DB_SQLITE ='sqlite:///dbjobpool.sqlite'
DB_MYSQL ='mysql://root:''@localhost/dbjobpool'
KEY = 'Thisismysecretkey@@@@&&' | [
"aminu21@gmail.com"
] | aminu21@gmail.com |
79f7f3f9cb4fe14bc387ba58a753639478bd0990 | 2e56e031a809b10f7c60dca72de91ca208b4c3e1 | /test/functional/bumpfee.py | def7a94eefedff75a9d6c26dd190b6328e83e44e | [
"MIT"
] | permissive | dakecoin/dakecoin | c1cd56e73a63f406e333b7a74375a2c86805e5a8 | 8b9710a809c0ec2951fedb63f6e57f2a64bd5a34 | refs/heads/master | 2020-03-22T03:47:03.955283 | 2018-07-03T01:12:58 | 2018-07-03T01:12:58 | 139,452,155 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,500 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2017 The DakeCoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the bumpfee RPC.
Verifies that the bumpfee RPC creates replacement transactions successfully whe... | [
"dakecoin@gmail.com"
] | dakecoin@gmail.com |
8f37f2e453b8bc1294b0dbd34d9f873b54ec3013 | 80ca8c0f696a99e5f44fae4a8d423f041bbd81ff | /12Lesson(assignment)/app/search_engine.py | e89e50fa795c30849afddd16a9dcdbe5cc128852 | [] | no_license | C0nstanta/one | ce856f8f176894adc8270fa2f0e7d1c4fc1ddfaf | 7699dd0f9127e6775b36670d95cd7bbbc1adedbc | refs/heads/master | 2022-12-11T20:55:15.325716 | 2020-07-04T23:18:56 | 2020-07-04T23:18:56 | 214,294,255 | 0 | 0 | null | 2022-12-08T10:49:59 | 2019-10-10T22:08:06 | HTML | UTF-8 | Python | false | false | 3,430 | py | import requests
import os
from bs4 import BeautifulSoup
class SearchWiki:
filepath = os.getcwd()
headers = {
'content-type': 'text',
'Connection': 'keep-alive',
'Search-Version': 'v3',
'Accept': 'application/json',
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X... | [
"inter.nafta32@gmail.com"
] | inter.nafta32@gmail.com |
c91fda8d7e718be057f365e3e68e11e3bb91229a | 35237eeeeda22cd65f895af675effb93ec6afe84 | /add_one.py | 02502e2033a7e95d12fe5f81f95e2d348badd5c7 | [] | no_license | saisunil702/pythonking | 7b548ccdeec66e83e13e3c4fe364834670a69676 | 0067d5af23281c0d94352421845144eec52aa4d0 | refs/heads/master | 2020-03-24T06:53:23.588716 | 2018-08-20T10:23:41 | 2018-08-20T10:23:41 | 142,545,491 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | nom=int(input())
print(nom+1)
| [
"noreply@github.com"
] | saisunil702.noreply@github.com |
ef0f0814fa7c0a22523922f91021507554956c39 | 3ae545d444a0073b8c61b2bfae9854a58f2e0474 | /python/juego.py | bcd6c34f9ea63c7155a6738ae39277bc105384ab | [] | no_license | ExePtion31/Phyton | 9d1ad260977d6f9b4d14c44283cc827f372ff967 | 8a6af97a3d84c281a08dea14c8feec383594ca3c | refs/heads/main | 2022-12-25T07:07:23.282274 | 2020-10-07T21:03:13 | 2020-10-07T21:03:13 | 294,249,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,775 | py | # -*- coding: utf-8 -*-
from turtle import *
import random;
import time;
import threading;
from concurrent.futures import ThreadPoolExecutor;
screen = Screen()
tortuga = Turtle();
timeremaining = Turtle();
losesignal = Turtle();
winsignal = Turtle();
preguntas = [
"Resolver la siguiente integral:\n ∫tanx d... | [
"giovanni.baquero@uniagustiniana.edu.co"
] | giovanni.baquero@uniagustiniana.edu.co |
0b87298b937fe6f4f9ca7be7d7d98654015a6759 | 9e1e8562db2a32e7ee271e32ee198dcbdc83f6e2 | /utils/ErrorUtils.py | d4fdbcfa7af0b8c92c1dff924c0202a9e7acbb91 | [] | no_license | SpasZahariev/nqme-flask | e5ac66847867fa0239d4183d9dd9ada7a95d4115 | a2fb27bb0cef5d1ec8f36179e87aca76c3c62767 | refs/heads/master | 2023-08-07T14:39:12.260817 | 2022-02-01T19:19:23 | 2022-02-01T19:19:23 | 188,726,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | from enum import Enum
class ErrorMsg(Enum):
NO_HEAD = 'No head is provided'
NO_QUEUE = 'Queue does not exist'
NO_SONG = 'Song does not exist'
DEQ_FAIL = 'Song was not dequeued'
NO_MASTER = 'Access denied! User is not a master'
NO_USER = 'Access denied! User does not belong to this room'
NOT... | [
"spaszahariev54@gmail.com"
] | spaszahariev54@gmail.com |
a4c0b4b317e3a3e61c1ea5f0d671a3fc136659f7 | af71ad6f9509b119dbaf86e661b372b073e07338 | /bild.py | adb9c3df317d0922e6d01a40842477f0677665d1 | [] | no_license | JoyLink/vtable | 4f01d5dc0bc0c9fc1ac7e5a826801168881f38c0 | 6b08045f9058e14242abf569ae86986464592b7d | refs/heads/master | 2020-12-24T18:51:05.558744 | 2016-04-26T23:55:32 | 2016-04-26T23:55:32 | 57,169,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,212 | py | #!/usr/bin/env python
# bootstrap by downloading bilder.py if not found
import urllib
import os
import glob
# ASSUMES YOU HAVE GNU indent installed. ($ brew install gnu-indent on mac os x)
# Executable is gindent
# http://www.gnu.org/software/indent/manual/
if not os.path.exists("bilder.py"):
print "bootstrappi... | [
"joylinkyizhuo@gmail.com"
] | joylinkyizhuo@gmail.com |
52f26c2206606fbefa691cc6942173f41b6ca058 | 3f2b2c885e81a15ed22b4a781bc2e8f5f264b336 | /mhs/common/mhs_common/messages/envelope.py | 647b5cfc88274a3290b87d36d4fc9f90d8920933 | [
"Apache-2.0"
] | permissive | nhsconnect/prm-deductions-integration-adaptors | 9c947dbca3c5bf22874efb35364cd22b52acd795 | 17c78a2b2df3755736500d8b10f3e09c99263ef2 | refs/heads/deductions | 2021-07-20T11:13:59.339647 | 2020-12-22T09:48:09 | 2020-12-22T09:48:09 | 246,785,891 | 0 | 2 | Apache-2.0 | 2021-04-30T21:57:17 | 2020-03-12T08:50:37 | Python | UTF-8 | Python | false | false | 2,123 | py | """This module defines the base envelope used to wrap messages to be sent to a remote MHS."""
from __future__ import annotations
import abc
import pathlib
from typing import Dict, Tuple, Any
from builder import pystache_message_builder
from definitions import ROOT_DIR
FROM_PARTY_ID = "from_party_id"
TO_PARTY_ID = ... | [
"noreply@github.com"
] | nhsconnect.noreply@github.com |
2a12c95c893661baca9bef4785d6924789ae87e7 | 50e3d53c47250bca40fbbe49ea6f5979cf3ca807 | /tson/token.py | 46875ebbe66e3600a47e3695f0654d5d388e3a25 | [] | no_license | cstuartroe/tson | 1d85749e16d611dcf653cef4adc944932450db01 | 5485e0b6480150f3535c0ce634d228876dd76ba2 | refs/heads/main | 2023-04-18T12:11:35.751657 | 2021-05-02T18:39:58 | 2021-05-02T18:39:58 | 359,987,026 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,375 | py | import re
import sys
SINGLE_CHAR_ESCAPES = {
'"': '"',
'\\': '\\',
'/': '/',
'b': '\b',
'f': '\f',
'n': '\n',
'r': '\r',
't': '\t'
}
LABEL_RE = "[a-zA-Z_][a-zA-Z0-9_]*"
NUMERIC_RE = r"-?[0-9]+(\.[0-9]+)?"
BOOLS = {
"true": True,
"false": False,
}
DECLARERS = {
"type",
... | [
"cstuartroe@haverford.edu"
] | cstuartroe@haverford.edu |
efb465ae45ed7fa2b00ca94106f0b6d33d05e6bd | 135f624cf8c2d95eff09a07397da44c8e76d1a70 | /src/tasks/migrations/0003_auto_20170206_1153.py | 8c2bbb6235854c056f563c00840d7cc4929eb512 | [] | no_license | uk-gov-mirror/datagovuk.publish_data_alpha | 42709ffdf1e3ccedf6c5c742078fda5fc9522712 | 4cbafff4311da0693d456953d01b24f27101e41f | refs/heads/master | 2021-06-17T23:05:50.835551 | 2017-05-25T15:00:27 | 2017-05-25T15:00:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2017-02-06 11:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tasks', '0002_task_related_object_id'),
]
operations = [
migrations.AlterFi... | [
"ross@servercode.co.uk"
] | ross@servercode.co.uk |
329cb04ae1cab3aabc343c4547ca8dd288675bbc | 18fbcdfac031a73cb3292c1adec69dc368069639 | /anondolok_library/user_panel/migrations/0009_alter_appointments_requested_time.py | e3f20490985068a9ffb56c9e0b986563e3e84007 | [
"MIT"
] | permissive | Horraira/anondolokLibrary | 69ad35da75a53f977724c93d4da1f70980d2a587 | f80a9f1b620235136bec0794a67882f4cb420d50 | refs/heads/main | 2023-07-25T17:49:19.826806 | 2021-09-06T09:23:22 | 2021-09-06T09:23:22 | 403,559,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # Generated by Django 3.2.1 on 2021-07-08 10:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_panel', '0008_alter_appointments_requested_time'),
]
operations = [
migrations.AlterField(
model_name='appointments',
... | [
"sohan@inflexionpointbd.com"
] | sohan@inflexionpointbd.com |
7542f89e0cfc9b04e094048503a3ff6926a4561b | cf445784420af485e8cc6e571346a10a2e604520 | /PFCNN/PFCNN.py | 4d994a3ae8cbd8c0b30ebd7f14fe7000d93fedc2 | [
"MIT"
] | permissive | whuhxb/pfcnn | d829416c3aeb1eadf4f7d79d1ec7d480622d1804 | ae8530efeb795e50495dc1758ced61b0d02a677f | refs/heads/master | 2023-04-02T04:43:50.642344 | 2021-03-31T04:17:28 | 2021-03-31T04:17:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,443 | py | from tqdm import tqdm
import tensorflow as tf
import os
class PFCNN:
def __init__(self, parse_function, network, flags):
self.parse_function = parse_function
self.network = network
self.flags = flags
def parse_dataset(self, dataset_path):
dataset = tf.data.TFRecordDataset(datas... | [
"v-yuqyan@microsoft.com"
] | v-yuqyan@microsoft.com |
47690046374fd174a6070576ac7812e7f43c6e1c | 3fb64f353604cd9e95d1bbda41c0692b246d806a | /hangman.py | 8face6e91cfe52b447bacd154bf7fedce7827e75 | [] | no_license | jamesthomaskerr/Lab9 | 4fe6e927dd900d5e6beaaff789ce523c5e6265e2 | daf4dc92400a6e338cc2dd5b7269f55b3455c861 | refs/heads/master | 2021-01-10T10:34:09.416257 | 2015-10-23T11:39:26 | 2015-10-23T11:39:26 | 44,809,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | __author__ = 'James'
import random
def genRandomWord():
list_of_words = ["python", "jumble", "easy", "difficult", "answer", "xylophone"]
#word = random.choice(list_of_words)
word="difficult"
return word
def createCurrentBlank(word):
currentBlanks = len(word) * "_"
return currentBlanks
def p... | [
"jamesthomaskerr@gmail.com"
] | jamesthomaskerr@gmail.com |
249dd977b023e9bafd9974cc4cd185410ae66435 | d3154515510c47520164b48246021645b58d3652 | /aether-kernel/aether/kernel/api/migrations/0109_export_task.py | 2d21a17de506f5d6d6d0a68a2a974902d7a891d6 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | eHealthAfrica/aether | 391f675a0b85a78cd22391763d37343622696f97 | 2a4bf1b78d1bcb207af51dc06c6393ad78fe0291 | refs/heads/develop | 2023-05-25T11:56:37.971814 | 2023-03-31T07:37:07 | 2023-03-31T07:37:07 | 110,524,187 | 17 | 6 | Apache-2.0 | 2023-05-23T05:54:39 | 2017-11-13T08:59:49 | Python | UTF-8 | Python | false | false | 4,564 | py | # Generated by Django 2.2.7 on 2019-12-04 09:17
import aether.kernel.api.models
from django.conf import settings
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import django_prometheus.models
import model_utils.fields
i... | [
"noreply@github.com"
] | eHealthAfrica.noreply@github.com |
9dc41bfe4a4c7783a9ec0d0b7eb8117aceae3978 | 946b7b64ee9eb1511f11890b3c69cf903d2982aa | /Course_03/Regular Expressions/analysis02.py | 464d833656003cf41089e8f37ae6f05f2ad652b3 | [] | no_license | srimani-programmer/Python-Specialization | 41342def0dab0c6641163f1e35cb1c9668a900a3 | 9a2a081549934ba2ce0f8b98edb3f27f5f880b59 | refs/heads/master | 2020-06-27T19:14:37.491119 | 2020-03-31T09:32:50 | 2020-03-31T09:32:50 | 200,027,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | import re
file_handle = open('mbox-test.txt')
# Printing the data starts with 'x'
count = 0
for data in file_handle:
lines = data.strip()
if re.search('^X.*:',lines):
# print(data)
count += 1
print(count)
file_handle.close() | [
"srimani.scholar@gmail.com"
] | srimani.scholar@gmail.com |
69c33361e23d0f8fc4c52f7b4df56e7d4a39a560 | bf591c979a30f3bcd07e91abe312a9de3fdc5595 | /config.py | ac06c1782e7734a2894a728da4cb9108388c8dc1 | [] | no_license | isayahc/flask_google_login | ef3e4f0fb071bbd5b6d4d5dbc6b680ff1750dae8 | fa2aeee34be8f7d2bf08fd8ff92df4ce4aa549e7 | refs/heads/main | 2023-01-07T17:38:46.159760 | 2020-11-09T19:39:21 | 2020-11-09T19:39:21 | 307,735,352 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | """Flask configuration variables."""
# This is where you can change env
from os import environ, path
from dotenv import load_dotenv
basedir = path.abspath(path.dirname(__file__))
load_dotenv(path.join(basedir, ".env")) # use for different .envs
class Config:
"""Set Flask configuration from .env file."""
#... | [
"isayahculbertson@gmail.com"
] | isayahculbertson@gmail.com |
29b5c3375aed49657686d4504ec68efa264fc82a | ca8b97d9b8e91c17dfacc8996002c387ee7dc6dd | /classfunction.py | e2404a46ff5f3f8cbbf506de40668194fd203420 | [] | no_license | sankaranarayanankj/python | 943404c49b26876890a2dbff550ad718dfe942dc | d5f3c3b6998f7e99cc8af0444ff67d7328804f9e | refs/heads/master | 2020-06-22T10:20:17.663186 | 2020-06-14T16:06:31 | 2020-06-14T16:06:31 | 197,697,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | class Employee:
def __init__(self):
self.emp_id=int(input("ID:"))
self.emp_name=(input("Name:"))
self.emp_des=(input("Desigination:"))
self.emp_sal=int(input("Salary:"))
def category(self):
if(self.emp_sal>=25000):
self.cat=" Class A"
elif(sel... | [
"noreply@github.com"
] | sankaranarayanankj.noreply@github.com |
4e68987fe34097d952c5eba566bb259a07655076 | 2892731203f7b59faa8f5182b756c0b3575e796f | /cma/assim_secrets.py | c485a566344992c2d1fe735ef00077e3a91aa5c3 | [] | no_license | assimilation/assimilation-official | 1024b92badcbaf6b7c42f01f52e71c926a4b65f8 | 9ac993317c6501cb1e1cf09025f43dbe1d015035 | refs/heads/rel_2_dev | 2023-05-10T20:12:33.935123 | 2022-12-08T16:21:22 | 2022-12-08T16:21:22 | 42,373,046 | 52 | 17 | null | 2023-08-16T12:43:49 | 2015-09-12T21:04:36 | Python | UTF-8 | Python | false | false | 15,557 | py | #!/usr/bin/env python
# coding=utf-8
#
# vim: smartindent tabstop=4 shiftwidth=4 expandtab number colorcolumn=100
#
# This file is part of the Assimilation Project.
#
# Author: Alan Robertson <alanr@unix.sh>
# Copyright (C) 2017 - Assimilation Systems Limited
#
# Free support is available from the Assimilation Project ... | [
"alanr@unix.sh"
] | alanr@unix.sh |
7d5305cd34ee140fc2bab55db7859ffacd8085f7 | ead7cbd52a274daa1d760ddb7903eb9ba6bde6af | /scripts/main_code.py | 39244b65301dad92426e66a8b526d785915f44f5 | [] | no_license | ngksg/Coursera_Capstone | 7ae09947b98ab52db8a2267075c05a416de43ed2 | 63d891940aea372c56384aea484feb9cb710b0e0 | refs/heads/main | 2023-06-25T07:03:31.084679 | 2021-07-29T07:01:58 | 2021-07-29T07:01:58 | 389,881,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py |
cases = [100,200,400,500]
import pandas as pd
import Numpy as np
print("test")
print("test2")
| [
"ngksg@hotmail.com"
] | ngksg@hotmail.com |
015cc7108b94acdc1865bf5881797c8d359b9214 | 3b6677b0be8e0e24939e48f0cd346e0022df9013 | /api/app.py | 3c4b8838addec446cfc8b6e4b17c9b5187b9f1e7 | [] | no_license | Pratheebhak/biotag | fc00707f57c1fa5789117d383d3c830adb88d7b8 | 14521b2687011927b016f7eebef12f145b4fa894 | refs/heads/master | 2023-01-07T13:21:18.205479 | 2020-11-02T19:30:38 | 2020-11-02T19:30:38 | 297,431,778 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | """ API for the model """
from flask import Flask, request, jsonify
# Create a Flask API
app = Flask(__name__)
app.config["DEBUG"] = True
# Create Routes
@app.route('/', methods=['GET'])
def home():
return "<h1>Handwritten Label Extraction on Botanical Images</h1>"
if __name__ = '__main__':
app.run() | [
"pratheebha11@gmail.com"
] | pratheebha11@gmail.com |
0a7f5bc245d7a0b1e7ff8dee61d3c6b185e1ebf3 | 139af68b78734a6bc53bd942ffa05476baf3d71d | /Python Fundamentals 2020 - 2021/13 - TEXT PROCESSING/More exercise - 13 - 05.py | 5a2252209bfb53e58143d4c6eca76fe595a218b6 | [] | no_license | MiroVatov/Python-SoftUni | 7fe3fc0a3928848c5317fb120f789c773bfc117e | 0d0d6f116281b4de8c413d254386e27d992d047b | refs/heads/main | 2023-08-24T09:44:31.261137 | 2021-10-18T14:04:03 | 2021-10-18T14:04:03 | 317,510,574 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | title_of_an_article = input()
print(f"<h1>")
print(title_of_an_article)
print(f"</h1>")
content_of_the_article = input()
print(f"<article>")
print(content_of_the_article)
print(f"</article>")
while True:
comment = input()
if comment == "end of comments":
break
print(f"<div>")
... | [
"noreply@github.com"
] | MiroVatov.noreply@github.com |
af39c0109974dc34aed68d14d3ce5567d0a67d52 | 8bae0a5871f081f88f6bae1448f0a61653f1cad3 | /PROCO15/BalancePendulum/BalancePendulum.py | 400ed4d95136feae429cbd77eb8d28c931008ef4 | [] | no_license | IamUttamKumarRoy/contest-programming | a3a58df6b6ffaae1947d725e070d1e32d45c7642 | 50f2b86bcb59bc417f0c9a2f3f195eb45ad54eb4 | refs/heads/master | 2021-01-16T00:28:53.384205 | 2016-10-01T02:57:44 | 2016-10-01T02:57:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,960 | py | import requests
import time
s = requests.Session()
def submit(val) :
url = "http://proco2015-r2-890298229.us-west-1.elb.amazonaws.com/tasks/pendulum/submit"
files = {"actions.txt": val}
s.post(url, files=files)
def start_session() :
global s
data = {"username": "ecnerwal", "password" : "PfCazJAD"... | [
"he.andrew.mail@gmail.com"
] | he.andrew.mail@gmail.com |
715b78f5c54afb7db2f05ce2265f7dd90eed0a8d | 76a68cbbaf9c4aa15ec9b59455e33c6784229bdb | /MECS_gym/venv/bin/easy_install-3.5 | 82fa72283113e10abd217602c94e6c52cf7de730 | [
"MIT"
] | permissive | Python-Repository-Hub/KAIST_MEC_simulator | e63f704bd20b36fd1a8ffa30b7e736c50351d1cc | 26556a8216e2bbdfa5c5ee377e9deb51ea7602f8 | refs/heads/master | 2023-08-30T06:57:39.003766 | 2021-11-18T16:16:48 | 2021-11-18T16:16:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | 5 | #!/home/wisrl/Downloads/baselines-master_final_ppo2/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.5'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.... | [
"elasteam88@gmail.com"
] | elasteam88@gmail.com |
63672e5230782b6ef6729b1836332595ccc3ecfd | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Generators/Pythia_i/share/PYTUNE_pprintout.py | 564fee7303a86b2b89df12767930b5600ed7390c | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | #______________________________________________________________________________________________________________________
# author: liza.mijovic@_nospam_cern.ch
#
# jO effect: dump the values of all parameters PYTUNE can set - this jopts are meant for runnig with GET_TUNE_params.sh
#
# __________________________________... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
f43e0ddb2fcdcb7dc177f350b6b4392c4c8151cf | e519a3134e5242eff29a95a05b02f8ae0bfde232 | /services/control-tower/vendor/riffyn-sdk/swagger_client/models/inline_response2009.py | d0159adf2ba606c4d7868ece17e12f892cd52bd6 | [] | no_license | zoltuz/lab-automation-playground | ba7bc08f5d4687a6daa64de04c6d9b36ee71bd3e | 7a21f59b30af6922470ee2b20651918605914cfe | refs/heads/master | 2023-01-28T10:21:51.427650 | 2020-12-04T14:13:13 | 2020-12-05T03:27:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,874 | py | # coding: utf-8
"""
Riffyn REST API
### Vocabulary Before you begin, please familiarize yourself with our [Glossary of Terms](https://help.riffyn.com/hc/en-us/articles/360045503694). ### Getting Started If you'd like to play around with the API, there are several free GUI tools that will allow you to send req... | [
"jaceys.tan@gmail.com"
] | jaceys.tan@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.