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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
231e74e1f4f13a9e3dcb55efab42e8440f1f5f64 | 752761ecf6a4a751ffa2c6711ea21009a03960e2 | /TB-IA-Servicio/fuzzy.py | 24c9748723fe6e980fb1a200ab9cf36817e54a7d | [] | no_license | Drugoralex/IA_TB2 | 2943d0236546d647a79f3d58e0928808b17dbb62 | 41e25af8bd2a4223a65c1124f3e946ae2b8aeab2 | refs/heads/master | 2020-04-06T19:04:13.655082 | 2018-11-17T16:16:36 | 2018-11-17T16:16:36 | 157,724,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,875 | py | import numpy as np
import skfuzzy as fuzz
import matplotlib.pyplot as plt
x_ram = np.arange(2, 16, 1)
x_vid = np.arange(768, 3580, 1)
x_proc = np.arange(2.1, 4.3, 1)
ram_lo = fuzz.trimf(x_ram, [2, 3, 4])
ram_md = fuzz.trimf(x_ram, [4, 6, 8])
ram_hi = fuzz.trimf(x_ram, [8, 12, 16])
vid_lo = fuzz.trimf(x_vid, [768... | [
"u201513219@upc.edu.pe"
] | u201513219@upc.edu.pe |
2df6b73f91163ac5b4445ce597f0830256618a14 | 0941f4b007a17adbfcbeaac5e4bca35365037992 | /udp-client.py | d554d6b7026c65fedaddf70fc75c03284fe2d3d4 | [] | no_license | stuartabramshumphries/networking | 406c524c56724562ec0832038989accdfcdc4873 | 2cb04e2c73afb8b36dee46397a0edbc5963264b5 | refs/heads/master | 2016-08-02T22:35:52.009610 | 2013-05-31T08:18:10 | 2013-05-31T08:18:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | #!/usr/bin/python
# UDP client
import socket
cnt=1
client_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
while 1:
data = raw_input("Type something(q or Q to exit): ")
if (data <> 'q' and data <> 'Q'):
while (cnt <10):
client_socket.sendto(data, ("localhost",54321))
cnt=cnt+1
cnt=1
else:
brea... | [
"stuartabramshumphries@gmail.com"
] | stuartabramshumphries@gmail.com |
c7d6e9ed383e12bdd30d05b2e352f315b4058bd9 | 7c45bbb653be486f8a8293877b665cab5de3176f | /interpretable_models/codes/dataFolds.py | 517b521ba17a0dfa3b7cf90d3190f21c017eecd3 | [] | no_license | vishwassathish/Interpretable_models | 37e377cd894c6b12a5984dc259fae9153c460352 | c8901e930cd076523a007b622e122f351adb32a4 | refs/heads/master | 2020-03-22T22:37:38.875272 | 2019-06-24T17:52:57 | 2019-06-24T17:52:57 | 140,761,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | import csv
import random
import numpy as np
from pickle import dump
def readData(filename):
data=[]
with open(filename,"r") as f:
reader=csv.reader(f)
for row in reader:
data.append(row)
headers=data[0]
data=data[1:]
f.close()
for row in data:
... | [
"noreply@github.com"
] | vishwassathish.noreply@github.com |
53e93f962e07335199743cfd2031f7866c6928b6 | f891828ffe9c8501d276560c8c52d319f284056f | /205_isomorphic_m/index_map.py | 0f5f7ccd9a02480277885e72dd81ce413e922721 | [] | no_license | chao-shi/lclc | 1b852ab61fef4072039c61f68e951ab2072708bf | 2722c0deafcd094ce64140a9a837b4027d29ed6f | refs/heads/master | 2021-06-14T22:07:54.120375 | 2019-09-02T23:13:59 | 2019-09-02T23:13:59 | 110,387,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | class Solution(object):
def isIsomorphic(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
return map(s.find, s) == map(t.find, t)
# From OJ discussion | [
"chris19891128@gmail.com"
] | chris19891128@gmail.com |
11c74340ab82e472305fd10a2cd5370c1dea9ffb | fb1a7534356941e763755838e9b06fede7a7d116 | /tests/test_metrics.py | 46fe3e1aeab2e0aed220e08069a18e20c0547717 | [
"Apache-2.0"
] | permissive | torkelo/graphite-api | e2417f0bddae9bcd0581272dc270bbe08a78d653 | 0fd1904b462c1cbbe99f531a365839647a01a7e1 | refs/heads/master | 2020-12-02T15:08:56.573796 | 2014-03-17T21:59:38 | 2014-03-17T21:59:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,363 | py | import os.path
import whisper
from . import TestCase, WHISPER_DIR
class MetricsTests(TestCase):
def _create_dbs(self):
for db in (
('test', 'foo.wsp'),
('test', 'bar', 'baz.wsp'),
):
db_path = os.path.join(WHISPER_DIR, *db)
os.makedirs(os.path.dirna... | [
"brutasse@gmail.com"
] | brutasse@gmail.com |
b2c412ee6dc685069f68ad3eb7da7eff074781fc | bac81d6abd16c4ab1b140b38590440c8614a235c | /project/proj4_run/src/Env.py | 50c852881c1f2544946650289b164b89184d200a | [
"MIT"
] | permissive | robot-tutorial/robotics_tutorial | 0ec691c0f0883ab8c086252d0970ec8e92b96773 | 12affebfe6cb3810cc1e8fde4c674ed077b926a5 | refs/heads/master | 2022-07-17T07:08:38.519135 | 2020-05-19T08:19:18 | 2020-05-19T08:19:18 | 251,656,740 | 0 | 1 | MIT | 2020-04-08T14:24:45 | 2020-03-31T16:03:36 | Python | UTF-8 | Python | false | false | 2,986 | py | import pybullet as p
import os
import Helper
import random
import math
class Env(object):
def __init__(self, robotId, targetPos):
# load map and robot
mapName = 'map.urdf'
mapPath = Helper.findURDF(mapName)
self.mapId = p.loadURDF(mapPath)
self.smoothMapId = p.loadURDF(mapP... | [
"fuchaojieme@outlook.com"
] | fuchaojieme@outlook.com |
f5963aeec458e4ee5c2b2115e3bb24aeafc317eb | 485cb201a47148c72b7cc45fe5647ef32baa57be | /3_Multi_User_Blog/Forms_inputs/play.py | 6c25aea9061a0c117d7aa93b148bf0c4df83f41f | [] | no_license | aniruddhabarapatre/FSND | 0da5b0ce54b66d7b7fc929259d0d476d1aa0b1bf | a59a41f8e2d2109eb6d01d7ac2bc79b66aa85927 | refs/heads/master | 2020-02-26T15:01:44.691005 | 2017-05-21T04:29:47 | 2017-05-21T04:29:47 | 83,217,958 | 1 | 1 | null | 2017-04-18T02:14:59 | 2017-02-26T15:13:21 | Python | UTF-8 | Python | false | false | 482 | py | import webapp2
form = """
<form action="/testform">
<input name="q">
<input name="submit">
</form>
"""
class MainPage(webapp2.RequestHandler):
def get(self):
self.response.out.write(form)
class TestHandler(webapp2.RequestHandler):
def get(self):
q = self.request.get("q")
self.response.out... | [
"aniruddhabarapatre@gmail.com"
] | aniruddhabarapatre@gmail.com |
c1fc7ed400614f9828dd914aab69a6d171edf275 | a491f21896ffb11fcf8116e8cea2c18c92a31f82 | /assethub/assets/migrations/0010_auto_20170104_1249.py | 3e3511e0e3093ff65a074dc6038aae84ade2af4c | [
"BSD-3-Clause"
] | permissive | portnov/assethub | 8126bd27ba913ba5c54acaed5fbccee5dce82623 | 0f2f9d5e190b2a633a794514b54d8b408c9ed2a6 | refs/heads/master | 2021-01-12T03:50:42.109009 | 2017-04-07T16:12:16 | 2017-04-07T16:12:16 | 78,276,047 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-04 12:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('assets', '0009_profile_follows'),
]
operations = [
migrations.AlterField(
... | [
"portnov@iportnov.ru"
] | portnov@iportnov.ru |
ff24d282882cdf0ca3171c74b7a97a578afed28e | 776524cbd37e9dd3f92804350058c0ec2189c851 | /app.py | c5ccb02b8c337b7063ea2d24ce261f70315eb9d5 | [] | no_license | marcos26071998/soham | 80698a14a4f0d3ee4871b2ae32c4df0b81590fb8 | f96bec30907ba7ed2758edeb3110db5c1f61dfa1 | refs/heads/master | 2022-12-06T05:42:54.123783 | 2020-08-23T18:45:34 | 2020-08-23T18:45:34 | 289,743,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 23 23:40:17 2020
@author: Anirban
"""
from flask import Flask, render_template
# Define a flask app
app = Flask(__name__)
@app.route('/', methods=['GET'])
def index():
# Main page
return render_template('index.html')
if __name__ == '__main__... | [
"noreply@github.com"
] | marcos26071998.noreply@github.com |
8afec5a7c9748873c1dbc65e7e67f6d025f33a9e | 51d098e7ac392556a6365fcf7d283546d1bc86cb | /pysswords/db/credential.py | 651901a52f61b2811503c8e9363f048ac638b221 | [
"MIT"
] | permissive | mauriciomelo/pysswords | 7dd632577b261aa198a618ca1d6d0faa825cb5e7 | e845475a2a37f6e5ac4fadbc821d89dad6971f1c | refs/heads/master | 2021-01-13T11:41:44.568197 | 2014-12-04T19:32:57 | 2014-12-04T19:32:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | from collections import namedtuple
Credential = namedtuple(
"Credential",
["name", "login", "password", "login_url", "description"]
)
| [
"marcwebbie@gmail.com"
] | marcwebbie@gmail.com |
4e17c5c8db150dade37e484fdbee51798ebed144 | 68e9209b35a754692edc4fd9723eca5997bb2a77 | /src/links/migrations/0005_link_phno.py | 41c1e2cec0a7e158e4ed5b235730b3fd14fbc821 | [] | no_license | rachit98/Track_me_down | bc3a26062b9e3f03cb7c644e2018471b7af742fe | d65b61c49debe1bce78e760e9cbd5335a8e8a1bb | refs/heads/main | 2023-04-27T03:18:19.856788 | 2021-05-15T01:58:07 | 2021-05-15T01:58:07 | 349,683,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # Generated by Django 3.2 on 2021-04-25 05:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('links', '0004_link_trigger'),
]
operations = [
migrations.AddField(
model_name='link',
name='phno',
field=... | [
"srvthapliyal97@gmail.com"
] | srvthapliyal97@gmail.com |
b5cb685994c13b9e0c59cd123f829950c2a1ea60 | 138fccbc4a19bbeb0fac4fe031ff8e9288774b06 | /code-platoon/week10/assessment-4/CL/lists/models.py | 78a3329de4548ca91d8983ca391035eedab5b6bd | [] | no_license | Shadow073180/assessment_four | fe8b216fac25bf936622fd887f6814318cd81c2c | 0cb32ddc22e2392c774fae99be44fe28b086d95c | refs/heads/master | 2020-09-08T13:10:35.244993 | 2019-11-18T16:21:50 | 2019-11-18T16:21:50 | 221,141,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from django.db import models
# Create your models here.
class Catagory(models.Model):
name = models.CharField(max_length=50)
def __str__(self):
return f'Name:{self.name}'
class Post(models.Model):
catagory = models.ForeignKey(Catagory, on_delete=models.CASCADE, related_name='posts')
post_text... | [
"david73180@gmail.com"
] | david73180@gmail.com |
5c548ca4e3f1b9b5a6fb6fe6661c964b7f8b7b09 | 39b38554d36816717a3efe009ea0965eacadace7 | /backend/code/api/serializers.py | f2b7e3d9dd1f7ea8b6c02944506fe817c32453bb | [] | no_license | LeoGalda/AplicacionesInformaticas | 734238728602f047819c898f29bfb83fc8776578 | 8f7a81658877bbdb73f10252935c52481422f358 | refs/heads/master | 2020-04-08T05:02:42.892972 | 2018-11-29T02:38:22 | 2018-11-29T02:38:22 | 159,042,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from rest_framework import serializers
from api.models import Trip, Port
class PortSerializer(serializers.ModelSerializer):
class Meta:
model = Port
fields = ('id', 'country', 'city', 'name')
class TripSerializer(serializers.ModelSerializer):
fromPort = PortSerializer(read_only=True)
toPor... | [
"lucianorod1995@gmail.com"
] | lucianorod1995@gmail.com |
1f7c1adda132df2fef69a331faac234627645ffc | 641cfd90fb8ffd268645a04030be017cce9f37a3 | /my_env/bin/easy_install-3.8 | 3ceaa01c6145c73c063bd7fa43d490c706ad3da6 | [] | no_license | theodorCodes/ci-flask-recipe-app | 6725a8c20d3ad4665a0455ac5de915c6cdebcd1f | ab828dae8f3448545a4f0824d7ab67ad02d33977 | refs/heads/master | 2023-08-11T19:00:27.162242 | 2021-09-21T10:52:55 | 2021-09-21T10:52:55 | 404,614,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | 8 | #!/home/pixelbar/python-projects/flask-recipe-app/my_env/bin/python3.8
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"laphan.fan@gmail.com"
] | laphan.fan@gmail.com |
1e8151338afb925b5b825cade039b3d4bd143be1 | 7df4a749196d281a2f9572a74da1fa5363c3b6c3 | /MLDeform/_training/train.py | 8b37c78d1af36c1dfa1d0c621ebd21be2d06ec3f | [
"MIT"
] | permissive | serguei-k/MLDeform | 6620608baad917f195095cb881556d2c446ebcc3 | e9bc3620194d3cb35db9ee680a3c03793e7199b1 | refs/heads/master | 2020-05-24T06:36:01.423860 | 2018-07-10T17:06:12 | 2018-07-10T17:06:12 | 187,142,077 | 1 | 1 | MIT | 2019-05-17T03:44:08 | 2019-05-17T03:44:05 | null | UTF-8 | Python | false | false | 8,266 | py | import json
import logging
import os
import numpy as np
import pandas
import tensorflow as tf
from tensorflow import keras
from tensorflow.contrib.keras.api.keras.layers import Dense
from tensorflow.contrib.keras.api.keras.models import Sequential
DEFAULT_JOINT_COLUMNS = ['rx', 'ry', 'rz', 'rw', 'tx', 'ty', 'tz']
lo... | [
"dhruvagovil@gmail.com"
] | dhruvagovil@gmail.com |
95b905aebeb0e93f4afb9e9828013ed908026328 | 53e5fedbe98cd26496746b89a59c187027bca51c | /test_audio.py | 12c1f8da99df0879ceb2be4486e5957e0bb590ed | [] | no_license | sanielfishawy/woofer_server | d9a1fb4a8f2cf0e98d54773d3d621c5514997952 | 0637e1a2d16dfd5b54acc71d49f4a49925f6e365 | refs/heads/master | 2023-01-08T09:48:02.024461 | 2020-11-12T05:26:11 | 2020-11-12T05:26:11 | 299,720,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | import logging
from audio.audio_alsa import AudioAlsa
from audio.audio_sox import AudioSox
logging.basicConfig(level=logging.DEBUG)
a = AudioSox()
a.setVolume(15)
a.start()
a.restart()
pass
| [
"elfishawy.sani@gmail.com"
] | elfishawy.sani@gmail.com |
81908f769fcd375865f52aa05e260e800a9302c5 | 4a1e8886a32bf43916156b9d5893c15696f4271f | /biote_project/biote_init/__manifest__.py | 46c66865aeeee5930853b6245b016f7618b12b0e | [] | no_license | JohnLYH/app | 1cb116b24aff90ba9ad86288cf430d6d1bfcb116 | 2370cf00bb97c54d165601959480b0d9846ddb48 | refs/heads/master | 2020-05-14T18:17:11.777564 | 2019-04-03T08:49:04 | 2019-04-03T08:49:04 | 181,907,136 | 1 | 0 | null | 2019-04-17T14:20:34 | 2019-04-17T14:20:34 | null | UTF-8 | Python | false | false | 831 | py | {
'name': '博益特-项目初始化',
'version': '1.0',
'category': 'biote',
'description': """
功能介绍
==============
* 实现项目的一键创建功能
* 安装博益特项目的所有模块,按照模块依赖关系从叶子节点开始安装
* 导入初始化数据
* 进行基础配置
""",
'author': '刘明臣',
'website': 'http://openc2p.com',
'depends': [
'product',
'stock',
'hr',
... | [
"735757527@QQ.COM"
] | 735757527@QQ.COM |
ce6862b68ef247ae4a9b3d77757f65d1e7247b3c | ca4115506837642129dfe838fd7f67f0abd23c7b | /ms-pacman.py | 9527bca24816bc736ef8a3d1ca52f510e443cc1d | [] | no_license | mathewjhan/UMassML_Ms-Pacman | 59d43889e76afb8c0f6cc627b8d8651e29bc4ce6 | 63c02dd4e41968e704136f4d6a6d7936c26d81eb | refs/heads/master | 2022-12-16T19:09:17.059947 | 2020-09-28T00:18:57 | 2020-09-28T00:18:57 | 299,143,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,471 | py | import gym
import matplotlib.pyplot as plt
import torch.nn as nn
import torch
import random
from collections import deque
from PIL import Image
from skimage.transform import resize
from skimage.color import rgb2gray
from skimage.util import crop
import numpy as np
IMAGE_RESIZE = (86, 80)
EXPLORATION_MAX = 1.0
EXPLORAT... | [
"mathewjhan@gmail.com"
] | mathewjhan@gmail.com |
d8b4b6b4ca291c33e7ac4985205e6e320c3265a1 | 40c6b1c6590fe50b74d54e72865ee22130bcaa1d | /Examples/factors of n.py | ddf80eb38201fbeb07226a6cccc23eca7bf09990 | [] | no_license | uday3445/python-al-and-ds | 0ab5519613ce72fce9a87fecd7bfa3839560cd9e | 676c8e559e75d17ce9ced7ca165ad3f58fa7cf1b | refs/heads/lists | 2020-04-29T03:24:26.871844 | 2019-03-22T15:51:21 | 2019-03-22T15:51:21 | 175,808,484 | 2 | 1 | null | 2019-03-22T15:51:22 | 2019-03-15T11:33:45 | Python | UTF-8 | Python | false | false | 240 | py | def prime(n):
for i in range(2,n+1):
k=0
for a in range(2,i//2+1):
if i%a==0:
k=k+1
if (k<=0):
print(i)
return a
j=(prime(10))
prime(j)
| [
"kanth.mallampalli@gmail.com"
] | kanth.mallampalli@gmail.com |
2a03407ca878f62a3697d00f8967417d6532e325 | baf13dbe667090b7dd1db36001d0ddbf733859d0 | /account/flows/admin/nodes/node1.py | 5527a0443c371e96f3757e8c057d162e34d2af61 | [] | no_license | longguikeji/arkfbp-py-server-template | 13f83295dbb1ff120d7eecfe38790e613075eff4 | 40ed4b7d4a632928b69bd2fd8788d5ea5a979049 | refs/heads/main | 2023-01-18T20:56:14.011113 | 2020-11-25T04:21:29 | 2020-11-25T04:21:29 | 315,193,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from arkfbp.node import FunctionNode
# Editor your node here.
class Node1(FunctionNode):
def run(self, *args, **kwargs):
print(f'Hello, Admin Permission Check Done!')
return True
| [
"97390483@qq.com"
] | 97390483@qq.com |
efff5094a1d12adcda916b892e95cd4536b771ca | 560562251ec65041fcb3d3f3dd98d5ee4f1d4708 | /backend/model/freshman.py | ebed38e1cd45961ff4ef0ab91dd663f3dc571e53 | [] | no_license | Gavin-YYC/licaizhinanzhen | 8badcd85bf8e0296f2a669bd63ff934ccf92a868 | 1ee185c01836978178d58453409c012ea5f65c9d | refs/heads/master | 2021-01-02T08:55:03.708536 | 2017-08-02T09:28:12 | 2017-08-02T09:28:12 | 99,096,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | # coding=utf-8
from flask import g
class FreshmanModel( object ):
table_name = 'freshman'
def get_freshman_list( self ):
c = g.db.cursor()
c.execute("select id, name, icon, base_yields, time_long, min_invest, home_url from {0}".format(self.table_name))
res = list(c.fetchall())
... | [
"q414625852@163.com"
] | q414625852@163.com |
455102af74ef3eaba07ecf3cfb337d017697b439 | 195ea2e0bfcdb1788e33e3a1f2e19fe068ea618a | /test scripts/test_process.py | 9d2725fada78436ce6f199b50c3c07b3481c8edf | [] | no_license | asoh90/prodplatformsapp | 889cad46d29df897a90efa0d35ac9210e8cc5593 | fdae547ed84fb31e5d6a75ad816809f7c103bfd9 | refs/heads/master | 2022-12-11T00:59:00.348041 | 2020-05-11T08:44:21 | 2020-05-11T08:44:21 | 168,660,165 | 0 | 0 | null | 2022-12-08T02:29:19 | 2019-02-01T07:37:02 | Python | UTF-8 | Python | false | false | 1,035 | py | from multiprocessing import Process
# import test_queue
import threadpool
import time
def test(test_list, i):
time.sleep(2)
test_list.append(i)
print("Test List: {}".format(test_list))
# def queue_test(queue, test_list, i):
# queue.put(test(test_list, i))
# if __name__ == "__main__":
# ... | [
"alvinsoh@alvins-mbp.lan"
] | alvinsoh@alvins-mbp.lan |
8b60df380f7c1c450bcef9ba94f15dbd4810e34d | 6cf034ff05952543d10ea5ffca459336c5aebf25 | /openweather/forms.py | 8723bcf1717b0a43a1f8e88de6f4c89d6148171d | [] | no_license | Ngrbac/appli | 42351fc4aa82a78d4454578490ab2c256b08f027 | e6d056284393d0d0039419f19d24a0ac3cfa17a1 | refs/heads/master | 2022-12-11T21:50:55.660182 | 2020-02-01T19:23:16 | 2020-02-01T19:23:16 | 234,822,074 | 0 | 0 | null | 2022-12-08T03:28:08 | 2020-01-19T01:30:25 | Python | UTF-8 | Python | false | false | 168 | py | from django import forms
## Forma za pretraživanje novih gradova.
class SearchForm(forms.Form):
name = forms.CharField(label='Naziv grada', max_length=100)
| [
"ngrbac@unipu.hr"
] | ngrbac@unipu.hr |
4562f762f7c2f785c6bc078f740bb5d039470c03 | ba39decdfe1a571f36f7ac40f9e92b8189d52650 | /MapReduce/task8/map.py | d1a4b77958d641af6822dfcc0ec6036943bba029 | [] | no_license | gracejhan/MapReduce | d10b8352e92a7d8d4cd265afae79568611accbe5 | 96a46069460a5b20f8d8ed9369b028c6f0203a8f | refs/heads/master | 2020-03-07T07:45:09.607639 | 2018-04-05T15:13:06 | 2018-04-05T15:13:06 | 127,357,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | #!/usr/bin/env python
# Big Data Assignment 1 - Task8
# Jungwoo Han (jh5990@nyu.edu)
import csv
import sys
import string
# input comes from STDIN (standard input)
for line in csv.reader(sys.stdin,quotechar='"', delimiter=',',quoting=csv.QUOTE_ALL, skipinitialspace=True):
entry = line
vehicle_make = entry[20]... | [
"noreply@github.com"
] | gracejhan.noreply@github.com |
b4721adef76ad812a449cf6dbf2b9d193fb0b620 | b9652c311ae05d8d2ff90ec7e6f80f81165f2d68 | /tests/test_calculations.py | ff25cac5b9332c4d821b4b4538fe30e658d78be0 | [] | no_license | 3ZA/loan-calc | b0084f7a276c08e284adf4872b577085ef56984b | ce16cb0629162ab3e3cef5c9611a03bca1793443 | refs/heads/master | 2020-05-03T06:02:56.767811 | 2019-04-10T22:59:51 | 2019-04-10T22:59:51 | 178,464,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | import unittest
from random import random, randint
from calculations import calculations
from utils import exceptions
from utils.exceptions import LessThanZeroException
print(LessThanZeroException)
class TestRepayments(unittest.TestCase):
def test_monthly_repayment_with_negative_value_raises_exception(self):
... | [
"jasonchc@hotmail.co.uk"
] | jasonchc@hotmail.co.uk |
718b82e4d5381f1122ad68ff3fed2f10741713ef | 225da91ed910c16d6dc39de3da55b09ed81dddc5 | /resistors/num_int.py | 8b35a656c18e9764914a40a8fd38280de14a9089 | [] | no_license | mchouza/mchouza | 52c395a60969488b3161b8aa646c41a637605c0e | 7356f4ff33fd54f9d8a4c35d3259051b7a99f82a | refs/heads/master | 2021-11-14T04:29:10.451221 | 2021-11-01T01:35:38 | 2021-11-01T01:35:38 | 35,064,707 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | from math import cos, pi
# integrates \frac{1}{4\pi^2} \int_0^{2\pi} dp \int_0^{2\pi} dq
# \frac{1 - \cos(2 p + q)}{2 - \cos p - \cos q} using n x n points
def calc_num_integral(n):
accum = 0
f = lambda p, q: (1 - cos(2*p + q)) / (2 - cos(p) - cos(q))
for i in range(n):
for j in range(n):
... | [
"mchouza@746d65ee-141b-11df-a6b0-3b3dab745ba8"
] | mchouza@746d65ee-141b-11df-a6b0-3b3dab745ba8 |
90508179fd51bd863f7eb18e3fcdd9b9d8f1088f | 47756da23748ae2f3e4926a53b38c4a65e3abaa1 | /python/src/image_preprocessing.py | 0e892db445e4cd03b9f34612258aeedeb1df6889 | [] | no_license | Aravind2503/Document-detection | fcd1cce7f4d2c44aa9a95fcee9b5cbb95326d662 | ad0eee6c94a912a07460c8b00002a6b738bf9eaa | refs/heads/main | 2023-03-19T17:08:22.660538 | 2021-02-28T11:06:55 | 2021-02-28T11:06:55 | 338,402,902 | 0 | 1 | null | 2021-02-17T14:20:41 | 2021-02-12T18:41:10 | Python | UTF-8 | Python | false | false | 1,936 | py | import cv2
import numpy as np
def biggestContour(contours):
biggest = np.array([])
max_area = 0
for i in contours:
area = cv2.contourArea(i)
if area > 5000:
peri = cv2.arcLength(i, True)
approx = cv2.approxPolyDP(i, 0.02 * peri, True)
if area > max_area ... | [
"s.aravind2000@gmail.com"
] | s.aravind2000@gmail.com |
d0e08edcca5863236e3b03ec557b10a3e8b8c1d6 | d8d7fd31c0a12aed9c290b0b1970e6851f8afd4f | /app.py | d397b48baf7f2a6e0a72f218459b6269edf43ff4 | [] | no_license | Axioma42/sqlalchemy_Surfs_Up- | fa6a377655226346f8df15fe95986d049177d6dc | 9b19f4dfb577d2101b60af11666a512f6fbe8338 | refs/heads/master | 2020-06-30T02:31:10.480972 | 2019-08-12T06:10:19 | 2019-08-12T06:10:19 | 200,693,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,158 | py | from flask import Flask, jsonify, request
import datetime as dt
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func, desc
import numpy as np
engine = create_engine("sqlite:///hawaii.sqlite", echo=False, connect_args = {"check_s... | [
"noreply@github.com"
] | Axioma42.noreply@github.com |
aae10d2d3e2572eeab5f5fdec0b62b32fe83d174 | f18e2127c8dc525e1fc7db5973fc59a2b97a5a45 | /forum/migrations/0001_initial.py | 33fd7eefbe834e01d4f0bc8676009be9c437d26b | [] | no_license | MuhammadKhan17/SchoolManagement | fd76bc8d402afb457d3625204e27ba124b2ae89c | e6c3cf759ae78e10a0376f92115c46498aba7f2b | refs/heads/master | 2023-04-08T11:46:07.174813 | 2021-04-16T21:10:25 | 2021-04-16T21:10:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | # Generated by Django 3.1.4 on 2021-03-04 00:49
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('school', '0012_submission_content'),
... | [
"jacobcuke@gmail.com"
] | jacobcuke@gmail.com |
27b895762eccf8652449fddf5adf864552c5317d | db96745258f93e24a44ea1348398be42f46c1636 | /DPAnalysis_Step3/signalcomparison.py | d1922f88a0375ce2a31717d86596e73eff0bac70 | [] | no_license | sigamani/EXO | 686182f2863efa0e279d7613256a656dcc83ce28 | b48403180992e7dd6a8988f9acf65e1623e4e647 | refs/heads/master | 2020-12-30T11:15:26.834386 | 2015-07-13T09:16:02 | 2015-07-13T09:16:02 | 18,436,419 | 0 | 0 | null | 2014-08-25T11:31:36 | 2014-04-04T11:07:59 | C++ | UTF-8 | Python | false | false | 363 | py | from ROOT import *
def function():
files = ["./v18/GMSB_L180-CTAU10.root","./v18/GMSB_L180-CTAU50.root","./v18/GMSB_L180-CTAU250.root","./v18/GMSB_L180-CTAU500.root"]
vecfiles = []
for item in files:
temp = TFile.Open(item)
vecfiles.append(temp)
def main():
function... | [
"sigamani@cern.ch"
] | sigamani@cern.ch |
357a3881574a1ff7b4de4ebbde78171bd9235d0d | 4607c3869cfcef24518e817a6e31d29b01eb4fee | /project/users/forms.py | c33f47becc11ddcd67199a9b276d90c850e462e9 | [] | no_license | fa8chai/ClickTime | 916902336d552498d2fedf41df08fc6304a82e81 | 18992f858a2354cdce6f6f38fccd7cfc9db0d912 | refs/heads/master | 2023-06-03T22:53:34.009319 | 2021-06-11T23:46:52 | 2021-06-11T23:46:52 | 280,895,226 | 0 | 0 | null | 2020-07-22T14:27:34 | 2020-07-19T15:33:03 | Python | UTF-8 | Python | false | false | 2,611 | py | from django.contrib.auth.forms import UserCreationForm, UserChangeForm, forms, PasswordChangeForm
from .models import *
class CustomPasswordResetForm(PasswordChangeForm):
old_password = forms.CharField(max_length=20, widget=forms.PasswordInput)
new_password1 = forms.CharField(max_length=20, widget=forms.... | [
"anne.wi.sw@gmail.com"
] | anne.wi.sw@gmail.com |
a44f223635db7b358b49ccb6ca7923250c316bad | be5ea20226c37d81f1ccb2f704d8825d36e88765 | /Exams/2-apr-2020/skeleton/tests/test_magic_card.py | 75d8d74d391b2baf58d8a14b44e8e5b922aabf4f | [] | no_license | dimDamyanov/PythonOOP | 3845e450e5a48fef4f70a186664e07c0cd60e09b | 723204f5b7e953874fac9314e48eb1d1628d6ff5 | refs/heads/main | 2023-04-07T18:00:36.735248 | 2021-04-19T20:57:14 | 2021-04-19T20:57:14 | 341,329,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | import unittest
from project.card.magic_card import MagicCard
class TestMagicCard(unittest.TestCase):
def setUp(self) -> None:
self.magic_card = MagicCard('Card')
def test_init_attrs_set(self) -> None:
self.assertEqual(self.magic_card.name, 'Card')
self.assertEqual(self.magic_card.dam... | [
"dim.damianov@gmail.com"
] | dim.damianov@gmail.com |
09f33b4b9c59b00fea172a46ea194beb6fd4d433 | 2d68fe6a77a3db51203091128fa9f6a7602e0919 | /setup.py | cc8f9830a7bedd46ae9d3252d84c85bc75a380bb | [
"MIT"
] | permissive | StalkerSanya/robot | 3b078bf478bf41a33519fb7a7aae6056ff7e95fc | dd19365be285bd85b2716fd104df095605dbf609 | refs/heads/master | 2020-08-09T03:00:45.441915 | 2018-08-01T19:36:52 | 2018-08-01T19:36:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="robot",
version='0.3.0',
author="Sherevv",
author_email="sherevv@gmail.com",
description="Robot on the cave field",
long_description=long_description,
include_package_data=True,
... | [
"sherevv@gmail.com"
] | sherevv@gmail.com |
ffc6b550502b5f66f9b18016a45afda9c0e06cd1 | d964cf33c56cbc98cacff6cc89aa63ce44dd29db | /algorithms.py | ecaaa06584a59a7ed8c86780bb8ce32704a7e5d0 | [] | no_license | ZRmn/kioki | 257dacf3be480cc1df4e3ed1489be7052dee705c | 44af42caa5fec11eb2831d9c60bd014f915862dd | refs/heads/master | 2022-04-12T00:45:43.050986 | 2020-03-13T21:58:24 | 2020-03-13T21:58:24 | 247,168,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,435 | py | def euclid_gcd(a, b):
return euclid_gcd(b, a % b) if b > 0 else a
def euclid_extended_gcd(a, b):
if b == 0:
return 1, 0, a
y, x, g = euclid_extended_gcd(b, a % b)
return x, y - (a // b) * x, g
def binary_gcd(a, b):
k = 1
while a != 0 and b != 0:
while a % 2 == 0 and b % 2 ==... | [
"githubZRmn4815162342"
] | githubZRmn4815162342 |
30e915a9ae90b78149319f2cc6962f8eb9b7a0e7 | 6ab8488925593a7ca8ed4728c471a5aeda099903 | /test/test_web_scrapper_walmart.py | 67079301652500334d8898e80128e916798031bf | [
"MIT"
] | permissive | pragna98/cheapBuy | 8c6ecb618758c96036349f6ba3df2d67d7386a90 | b545a10db2950c238fa74ca50c2401a2a4887be1 | refs/heads/main | 2023-08-31T16:57:41.500424 | 2021-11-01T18:12:08 | 2021-11-01T18:12:08 | 423,561,191 | 0 | 0 | MIT | 2021-11-01T17:45:48 | 2021-11-01T17:45:47 | null | UTF-8 | Python | false | false | 1,001 | py | import os
import sys
sys.path.append(os.path.abspath('../../'))
from cheapBuy.code.web_scrappers.web_scrapper_walmart import scrap_walmart, get_url_walmart
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
def setup_get_driver_details():
options = webdriver.ChromeOptions()
... | [
"43135408+kalgeekotak99@users.noreply.github.com"
] | 43135408+kalgeekotak99@users.noreply.github.com |
fb85dbf9c5691a9bb4f2cc4c22786f45acba9619 | 9ab0e0f446be9d1840090e322ec5a5728a1ecdb6 | /assembly-and-read-composition/FilterBedWithElementList.py | 78ae2df8c83668d7e40e2e7ad61bef80cc61b678 | [] | no_license | harvardinformatics/TranscriptomeAssemblyEvaluation | 44412a646cb0766153afbccbb23204ee15ce7abc | 5563e12ff3c20032c02196bf5a51d9f8eb6f815c | refs/heads/master | 2021-03-22T04:42:10.448579 | 2020-04-28T15:02:37 | 2020-04-28T15:02:37 | 121,285,992 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,858 | py | """
creator: adam h freedman, afreedman405 at gmail dot com
date: 2016.09.26
This script filters or extracts rows from a bed file based upon strings in particular columns.
E.g. to extract only gene level entries, for the purpose of getting gene boundaries
"""
import argparse
def search_bed_line(linein,column,element... | [
"adamfreedman@fas.harvard.edu"
] | adamfreedman@fas.harvard.edu |
c3c1de65c967a5f4bd27728cd8ef76824c6eb14c | 1ab1fc46ba8785854c8d9baebcaa3f1dfa0c78f2 | /text_art.py | 15e397537e8bcf1ff17fcbaa8ecc4e317f481fd7 | [] | no_license | TiltMagic/T-renamer | 0c0ad90883a2aad66d61d257413210f48bd84e03 | 8ef1c076df37079a8f050266c2f226b33d65ea1a | refs/heads/master | 2020-03-19T10:23:46.583058 | 2018-06-07T16:42:20 | 2018-06-07T16:42:20 | 136,366,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py |
title = """
________ ________
___ __/ ___ __ \_________________ _______ ________________
__ /________ /_/ / _ \_ __ \ __ `/_ __ `__ \ _ \_ ___/
_ /________/ _ _// __/ / / / /_/ /_ / / / / / __/ /
/_/ /_/ |_| \___//_/ /_/\__,_/ /_/ /_/ /_/\___//_/
________________________________... | [
"noreply@github.com"
] | TiltMagic.noreply@github.com |
37ad995aa7d1d0d0fc4db7476eed8c5d9fcb4d47 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/wikipedia/testcase/interestallcases/testcase1_008_0.py | 34135d8ab0a3e138c9938ad9ce244b9bbea57ae9 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,965 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
426d534ea1ee13cc690136f8ee33d913fa161456 | fd90b8efa1daaec44b54797e549e0f738f4a5897 | /shuxue/3的幂.py | 648fe8a17fac9249b54026f7347281ef036e3e5e | [] | no_license | ddz-mark/LeetCode | 2a622eeb655398ca9ebd9feee93a52cd114a77c4 | d557faf87374ad8c65634ee9d9e572b88a54913a | refs/heads/master | 2021-07-12T06:58:57.162657 | 2021-04-18T13:25:03 | 2021-04-18T13:25:03 | 244,403,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # 给定一个整数,写一个函数来判断它是否是 3 的幂次方。
class Solution(object):
def isPowerOfThree(self, n):
"""
:type n: int
:rtype: bool
"""
if n == 0 :
return False
while n % 3 == 0:
n /= 3
if n == 1:
return True
else:
return... | [
"dudaizhong@126.com"
] | dudaizhong@126.com |
04cc91c83f3d934502286c921177b1a981db8acc | fe339dcda31f3e4c77b148868ea1bda3596befc1 | /db_core/SConscript | 02f61cf62eb5bc34a51918403669d1710ad9b32d | [] | no_license | detective7th/kn_db | 997a7f2c42dd4e97221ebef5b19f0b01de471c2e | a746934e2b31bec9fa416071ba54e5419dbad1c4 | refs/heads/master | 2021-08-24T06:01:02.722534 | 2017-12-08T09:36:41 | 2017-12-08T09:36:41 | 107,982,419 | 1 | 0 | null | 2017-12-07T12:38:29 | 2017-10-23T12:59:15 | C++ | UTF-8 | Python | false | false | 599 | #! /usr/bin/python3
# -*- coding:utf-8 -*-
import os
import sys
if 'SCons.Script' == __name__:
name = "db_core"
Import(name + '_version')
Import('env', 'install_dir', 'AddProjectSource')
env_core = env.Clone()
env_core.AppendUnique(CCFLAGS = " -mavx -shared")
libs=['m', "crypto", "ssl", "fo... | [
"kid_1412_94@hotmail.com"
] | kid_1412_94@hotmail.com | |
6f3cfb308a48eddc0e29b611198dc4796970b131 | 5d054db07d341e9261945f34888427b13a37bf6d | /cart/templatetags/cart_tags.py | 20d81fbc8cd690881986909d2ef42ba0a8518f59 | [] | no_license | samanaj/carrito | 3a675d9bd942bf9393275d97a7ade8c82a5fff94 | 70d6bfb9264bec246c674c6ae9e865cbf2e6da09 | refs/heads/main | 2023-05-21T18:08:04.464412 | 2021-06-14T22:45:18 | 2021-06-14T22:45:18 | 374,822,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from django import template
"""
los templetags sirven para crear filtros en las templates
por ejemplo podemos utilizar un filtro para multiplicar valores y otro para formatos de dinero
para ello importamos de django el template para poder utilizar register
"""
register = template.Library()
#usaamos el register como... | [
"soporte.samanaj@gmail.com"
] | soporte.samanaj@gmail.com |
ee0c0439bc8653fcafc1eda4272bc03c2c60a56f | fafee9d79beb7433633d59dce865efb437d608f6 | /__init__.py | 89ba90efec4b90e8c130bf0cd0c31e76b9df484d | [
"MIT",
"BSD-3-Clause"
] | permissive | PabloRomanH/cihaidata-unihan | 65830d945e50518895ce3f06a211a117cd502b84 | c408b57f61b5b13926f42c3647cc0bc61da758be | refs/heads/master | 2021-01-12T22:33:15.289066 | 2016-06-03T17:37:40 | 2016-06-03T17:37:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | #!/usr/bin/env python
# -*- coding: utf8 - *-
"""Tool to build `Unihan`_ dataset into datapackage / simple data format."""
from __future__ import absolute_import, division, print_function, \
with_statement, unicode_literals
__title__ = 'cihaidata-python'
__package_name__ = 'cihaidata_python'
__description__ = 'To... | [
"tony@git-pull.com"
] | tony@git-pull.com |
a2232739865e69220b2b23c8ea3a22f2ebcebf12 | 1997b2223141e87a9ba137524ba70d154005d9b6 | /02_regression/06_random_forest_regression/random_forest_regression.py | 6eb4dfde7a0f1c2712ae797bcf83d101d24cc44f | [] | no_license | prakashsharma91/machine-learning-a-z | a0f5d49b58b1399db0b9812d3fdd01e9d2ba2ed3 | 063395851050e11834a29948c3b4544a3cca29cd | refs/heads/master | 2022-07-07T09:34:05.280647 | 2020-05-10T12:30:48 | 2020-05-10T12:30:48 | 261,613,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | # Random Forest Regression
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('/home/ps/Code/machine-learning-a-z/02_regression/06_random_forest_regression/Position_Salaries.csv')
X = dataset.iloc[:, 1:-1].values
y = dataset.i... | [
"prakashsharma91@gmail.com"
] | prakashsharma91@gmail.com |
7ee818a49b5742e2cf50f02dbd2aad0fdbd5097f | 011ab943d0585d0fd4b277cd1c31885e5b790924 | /utility/adam_getvalues.py | 5fce612e46e740046c418205819b9e112e4b413b | [
"MIT"
] | permissive | mafavaron/MeteoFlux | 4bfe5099471eb7c0c5b5512dcd2f42e9ba2453d8 | a2fc66aac1faa97f12e07fba9bb3ef8aea60b5d7 | refs/heads/master | 2020-03-25T01:34:02.644998 | 2018-10-23T10:50:52 | 2018-10-23T10:50:52 | 143,243,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | #!/usr/bin/python
import serial
# Search for AD4xxx modules on a given port
ser = serial.Serial('/dev/ttyS0', 9600, timeout=1)
for i in range(0,1000000):
cmd = "#01\r"
ser.write(cmd)
print cmd
line = ser.readline()
if line != "":
print "Values: %s" % (line)
ser.close()
| [
"noreply@github.com"
] | mafavaron.noreply@github.com |
54128472651c0859b883c2636d34313a83d96e0a | 88ec732d185d1323833ba1a5113edde32a86e28f | /api/threeD_graph.py | 1ff1d435efaaffffd14adb36acb1276920ab6742 | [
"MIT"
] | permissive | 45i/Denzven-Graphing-Api | 57a6bbaed117f23e2c79d58999581a7ad51102d4 | aa92c92f9447d2a3e1969252d093718e7bf57ad4 | refs/heads/master | 2023-08-16T13:24:12.430280 | 2021-09-26T11:34:20 | 2021-09-26T11:34:20 | 410,327,856 | 0 | 0 | MIT | 2021-09-26T11:34:20 | 2021-09-25T16:45:06 | Python | UTF-8 | Python | false | false | 15,490 | py | #importing stuff
from flask import *
import matplotlib
from matplotlib import *
matplotlib.use("agg")
import numpy as np
import matplotlib.pyplot as plt
import os
import traceback
from mpl_toolkits.mplot3d import Axes3D
# Adding a blueprint to start the graph function
threeD_graph_runner = Blueprint('threeD_graph_runn... | [
"69366709+denzven@users.noreply.github.com"
] | 69366709+denzven@users.noreply.github.com |
50a70e539da40d600977e01d9bf5f12594110556 | ba9710a545e07c800e51e9e1eb4b9867548b09fc | /main.py | e101d840c03002d3f1da29e5080317fabe58f510 | [] | no_license | krinta/startit-vardadienas | 1e9e522ede0a926973a0a6b012b9466396f33891 | 2d3bcb7dd423306e261d815cdb6c3c6b46612743 | refs/heads/master | 2023-03-20T03:35:31.692588 | 2021-03-19T13:22:38 | 2021-03-19T13:22:38 | 349,431,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | from flask import Flask, render_template, g, jsonify
import sqlite3
from dbdati import sodien, varda_datums, mekle_pec_burtiem, mekle_pec_burtiem2
DATUBAZE = "vardi.db"
app = Flask('app')
def get_db():
db = getattr(g, '_database', None)
if db is None:
db = g._database = sqlite3.connect(DATUBAZE)
... | [
"krievinainta@gmail.com"
] | krievinainta@gmail.com |
b6e593b567f6e8bc78f9b63132c0827481a1fea3 | 8af16c3170eb1efad8f2447a91fed649203ebfbe | /chatbot/app.py | bce9127cd3765952e7336f91804daec4b279bf4c | [] | no_license | imansigupta/Amore | a3a1bed50b5fdb142b89a4f379de12358d41e102 | 0992924bedda5203048df86f42cf24497e3a945c | refs/heads/master | 2021-06-27T19:00:33.847688 | 2020-10-02T05:50:30 | 2020-10-02T05:50:30 | 150,318,457 | 3 | 1 | null | 2019-10-19T14:36:12 | 2018-09-25T19:27:25 | CSS | UTF-8 | Python | false | false | 1,824 | py | from flask import Flask, render_template, request
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer
from chatterbot.trainers import ListTrainer
app = Flask(__name__)
english_bot = ChatBot("Chatterbot", storage_adapter="chatterbot.storage.SQLStorageAdapter")
english_bot.set_trainer... | [
"guptamansi742@gmail.com"
] | guptamansi742@gmail.com |
075de6d43b28c4d787f490fc87f7b4a93fd75c5d | 1dc35ea667b5b71cd116cecabbddce9eab6a47f9 | /synthetic_image_good.py | 95b7cdf9e23104121f5f30e1fbe59a184b4173a6 | [] | no_license | shengjin/fits_py | 9fa24f757e320c2079277fa5812719c26c257f16 | f7e41e8698fc131aac43ce3b7f27a89a4f95590d | refs/heads/master | 2020-12-25T13:34:13.668355 | 2017-05-22T23:13:54 | 2017-05-22T23:13:54 | 65,651,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | import pyfits
import numpy as np
from scipy.ndimage import gaussian_filter
# Create empty image
nx, ny = 512, 512
image = np.zeros((ny, nx))
# Set number of stars
n = 10000
# Generate random positions
r = np.random.random(n) * nx
theta = np.random.uniform(0., 2. * np.pi, n)
# Generate random fluxes
f = np.random.ra... | [
"lifedit@163.com"
] | lifedit@163.com |
9cd74a5e9ea1f099ce36fe828b7cee6c5ead409d | 63820db0b426eaa9d0d694cb1b1aa2a419cc8379 | /ch6/06-8lottoset.py | bbd833511ae8e883186fc14e6dd63f3ab0192272 | [] | no_license | ngsc-py/2020-python-code | 351bb02b42abe4797fbb97f36ed890bf0d143d5c | 87424296c90672ee8230ec3c73421b37e7fef247 | refs/heads/master | 2022-09-19T23:30:46.073737 | 2020-05-31T01:41:58 | 2020-05-31T01:41:58 | 268,107,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | from random import randrange
from random import sample
mylotto = set()
while True:
num = randrange(1,46)
print(num,end=' ')
mylotto.add(num)
if len(mylotto) == 6:
break;
print()
print('집합: {}'.format(mylotto))
print('정렬 리스트: {}'.format(sorted(mylotto)))
print()
lotto = sample(... | [
"noreply@github.com"
] | ngsc-py.noreply@github.com |
7cb4b4d3b8da5d4f881a238fd2bb87a15a3dbb29 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /d3pm/text/main_test.py | ddcfcfad48bbd428ea167bea70a1e48d197f9795 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 1,725 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
997bb8aac93f3b9680d4d4aa8b7ebd6b8155fef0 | 46061620bd6cfd89f3c21ee94abf283455205fdb | /2.3.4.py | 7c1f5978968848db68ed7b3d6fd88b4288a56330 | [] | no_license | b0rn2rage/stepik---auto-tests-course | cb351d1746ab8cb088ca4be0f769a9e34c774d0a | 043b1da3fb365c16edf1baa6f594b28098985a56 | refs/heads/master | 2022-11-17T08:32:21.520264 | 2020-07-15T10:18:12 | 2020-07-15T10:18:12 | 276,615,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | import time
import math
from selenium import webdriver
def calc(x):
return str(math.log(abs(12 * math.sin(int(x)))))
try:
browser = webdriver.Chrome()
link = 'http://suninjuly.github.io/alert_accept.html'
browser.get(link)
button = browser.find_element_by_class_name('btn')
button.click()
... | [
"b0rn2rage@bk,ru"
] | b0rn2rage@bk,ru |
69c22b4665ab4a81604cf431de0220f0ec3390ab | 08af0b7f0437a60f7a306feb45e0c1d69ef7e823 | /src/models/brain_model.py | bb9cc4924ec8620ee96dd6ffd185113ac23b0add | [
"MIT"
] | permissive | MohammedAljahdali/mental-disorder-brain-mri | 6eb98851ea605cc4094cd2ed6e0d432fb83f595c | 0b6a348e0d741f363e7806a8aacefd1ef59a5ee6 | refs/heads/main | 2023-05-23T08:20:55.818145 | 2021-06-07T10:57:42 | 2021-06-07T10:57:42 | 370,917,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,746 | py | from typing import Any, List
import torch
from pytorch_lightning import LightningModule
from torchmetrics.classification.accuracy import Accuracy
# from src.models.modules.brain_resnet2d import BrainResNet
from src.models.modules.brain_resnet3d import BrainResNet
class BrainModel(LightningModule):
"""
Examp... | [
"mohammedkhalid4028@gmail.com"
] | mohammedkhalid4028@gmail.com |
dba9cbb205056e92cf377392703f257eafae100a | 242f1dafae18d3c597b51067e2a8622c600d6df2 | /src/1400-1499/1486.xor.in.array.py | 9f93fdedc92c4d84e1a7f4947d3adae6aec16ebd | [] | no_license | gyang274/leetcode | a873adaa083270eb05ddcdd3db225025533e0dfe | 6043134736452a6f4704b62857d0aed2e9571164 | refs/heads/master | 2021-08-07T15:15:01.885679 | 2020-12-22T20:57:19 | 2020-12-22T20:57:19 | 233,179,192 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | class Solution:
def xorOperation(self, n: int, start: int) -> int:
# TC: O(N), SC: O(1), note it is possible but difficult to complete this in O(1)..
ans = 0
for i in range(n):
ans ^= (start + 2 * i)
return ans
| [
"gyang274@gmail.com"
] | gyang274@gmail.com |
c463e45ee2100be78ea759c8932c44c8762bfe60 | eb7f48950c8c504febe3679aca47f505115f958a | /api/serializers/accounts.py | a605081de4d28e5d2ef10418baae193e7c8c6658 | [] | no_license | Grigorevskiy/api_like_site | b4d02541bd91181944a5bcebe37da71ed8163d49 | e07fe27f14a4a00083ea0485bbd070eacdf9976a | refs/heads/master | 2022-12-12T12:22:00.149347 | 2018-11-16T10:16:43 | 2018-11-16T10:16:43 | 146,489,783 | 0 | 0 | null | 2022-12-08T02:50:56 | 2018-08-28T18:30:01 | Python | UTF-8 | Python | false | false | 4,211 | py |
import datetime
from django.core.mail import EmailMessage
from django.template.loader import render_to_string
from django.utils.encoding import force_bytes
from django.utils.http import urlsafe_base64_encode
from rest_framework import serializers
from django.contrib.auth.models import User
from rest_framework_jwt.sett... | [
"grigorevskiiy@gmail.com"
] | grigorevskiiy@gmail.com |
0de7327d86756938e699ab1aa7e2a34b1461edd3 | bf1b160c1b5ea773469aae2f788c91f3ffde6843 | /dirproc.py | 4567f063ca3c814c1aedf9bfd0294b1f27e84904 | [] | no_license | aedancullen/pma-experiments | 3ca2051448bc841e983b1bbb7e3eaecfcf92dbe3 | 4761e64c06240bccc27dbca5a7bf92d1aa9f7f6a | refs/heads/master | 2023-03-30T00:57:01.414030 | 2021-03-29T17:15:58 | 2021-03-29T17:15:58 | 282,776,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,008 | py | import vamp
import multiprocessing as mp
import h5py
from spleeter.separator import Separator
from spleeter.audio.adapter import get_default_audio_adapter
import os
import numpy as np
import time
sr = 44100
dl_prefix = "dl/"
audio_loader = get_default_audio_adapter()
separator = Separator("spleeter:4stems")
def monom... | [
"aedan@rice.edu"
] | aedan@rice.edu |
a428b797a473db11da72bd76cddfc3e9d9024073 | 5ef98938002a17274f5f5f27695ce45479203803 | /Python/Person.py | 24b07069923b1827bb2b84bbcc461d1c43b529d7 | [] | no_license | rafaelaleman/hello-world | 8c1d39325425586ddf1420677b502a87637ab5bf | 9fe376e9a54ea726fb534c7c8b40c8a4c29ea4ad | refs/heads/master | 2020-05-01T11:06:35.184270 | 2019-03-31T22:34:52 | 2019-03-31T22:34:52 | 177,434,382 | 0 | 0 | null | 2019-03-31T22:12:41 | 2019-03-24T15:39:55 | Python | UTF-8 | Python | false | false | 226 | py | class Person:
def __init__(self, name, dateOfBirth):
self.name = name
self.dateOfBirth = dateOfBirth
def SetName(self, name):
self.name = name
def GetName(self):
return self.name
| [
"rafael.enrique.aleman@gmail.com"
] | rafael.enrique.aleman@gmail.com |
347e504022c15c3474080d2bfbf73452eae2e1ee | f0077cac0890461be408d7114a96d3e3b48bf2a8 | /timing/timing.py | 8b95c0e5da313018f1f25d4ab33e917c1678340c | [] | no_license | Kattusite/resistor-calc | 479090c445854bb46f2499e1cebc52966bd0ce4a | 271ced490e7feeab71d5fe31fba42687b78658f7 | refs/heads/master | 2021-02-12T01:27:47.843079 | 2020-03-10T19:01:08 | 2020-03-10T19:01:08 | 244,547,687 | 1 | 1 | null | 2020-03-04T22:15:56 | 2020-03-03T05:13:55 | Python | UTF-8 | Python | false | false | 1,595 | py | import multiprocessing
import time
DEFAULT_TIMEOUT = 180
DEFAULT_RANGE = range(1,15)
class Timing:
# https://stackoverflow.com/questions/14920384/stop-code-after-time-period
@classmethod
def timeout(cls, t, f, *args, **kwargs):
p = multiprocessing.Process(target=f, name=f.__name__, args=args, kwa... | [
"Kattusite@users.noreply.github.com"
] | Kattusite@users.noreply.github.com |
08af3fef904498d481773d913704ab9241ed5a9e | 033fb08be4d1ebd99ff9d4a790dc5c86d82f686c | /landing_page/migrations/0005_auto_20190127_1234.py | 8efc61bfbafd2083493089424534ebe6ad309f3c | [] | no_license | MasoudMusa/Django-Blog-App | 8a145c68520d50d8384fd48badbebcb097c663ed | 48b8bd31608a9d3a0e65a977b7961be9ad774fa6 | refs/heads/master | 2020-04-25T18:38:32.919036 | 2019-02-27T21:14:38 | 2019-02-27T21:14:38 | 172,991,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | # Generated by Django 2.1.4 on 2019-01-27 09:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('landing_page', '0004_auto_20190126_2003'),
]
operations = [
migrations.CreateModel(
name='BlogD... | [
"mwendamusa20@gmail.com"
] | mwendamusa20@gmail.com |
1e49579932855cab609f28bec4b2a2907bad1454 | f04ebb3ad2b70bed9c35301b870df170f082c721 | /models/websocket_models.py | dcfbefad1b47ed4ea2f71a6edf8d080a7ad93de1 | [] | no_license | sulihua512/customs_edi | 8b8641d0b2b4d49fa083c8aa87ee2611fd6febf6 | bde5d6a628ccceee8f3dbb1844edcb724cf0bb1b | refs/heads/master | 2023-03-17T07:11:29.450646 | 2018-01-05T10:08:04 | 2018-01-05T10:08:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,131 | py | # coding:utf-8
from datetime import datetime
from flask import g
from exts import db
from models.base_models import BaseModel
from models.front_models import Front_User
from models.customs_models import Employee,Customs_User
class Message(db.Model):
__tablename__='message'
id=db.Column(db.I... | [
"rhj231224@gmail.com"
] | rhj231224@gmail.com |
3223a6842c3cb09ccf5e2db3d0d7b4da77c60242 | 8a26b188244c3058cbce4ddb7947af49b500acf0 | /m07/m07p02.py | 759156ec6c37ebec3ecea0dd63730aa98608b959 | [] | no_license | montekang/Python | 591de7952957b4ce14bd7619dc05be742d89bc08 | b53a7865da68507d4f811e6bb6c5cfc450c13ee3 | refs/heads/master | 2021-03-23T02:26:48.741113 | 2020-03-15T06:54:00 | 2020-03-15T06:54:00 | 247,415,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | #!/usr/bin/python
from immlib import Debugger
def main(args):
imm = Debugger()
imm.log("modae.kang@edu.sait.ca")
return ""
| [
"noreply@github.com"
] | montekang.noreply@github.com |
c3b68c32731103ac028550e196ad5aada872bda8 | f81ce2b7a92b47d954e9519dae6c286ad086950b | /p2920.py | 29576751a3f8ff9682ebcb3b608c175a9f188a88 | [] | no_license | JiHaeK/Algorithm | 1ae89cf1a7a8b87a9fc0e35db20bf27bffa16cf4 | 562b3714857120d19f5b42789be9907cc7f659f6 | refs/heads/master | 2020-04-14T13:08:56.634730 | 2019-05-25T09:43:27 | 2019-05-25T09:43:27 | 163,860,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | n=[]
n=list(map(int, input().split(" ")))
ascen=[1, 2, 3, 4, 5, 6, 7, 8]
desen=[8, 7, 6, 5, 4, 3, 2, 1]
if (n == ascen) :
print("ascending")
elif (n == desen) :
print("descending")
else :
print("mixed")
| [
"wlgo6020@naver.com"
] | wlgo6020@naver.com |
0dfdc66aa23376b83341616ed4bbec1be609524c | cfc6fd2cbf907501749203383b4df59c4579efd5 | /account/urls.py | a6aac7394421b91d60191e0b54d8334185b90f41 | [] | no_license | Snebie/backend | f5e7ebe4dd5eb2559fd3dad4b0b248d68fad5672 | 369b0d5086bc55f8f14f447614fff547997a11b5 | refs/heads/master | 2021-02-09T22:38:48.737829 | 2020-02-29T20:50:01 | 2020-02-29T20:50:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | from django.urls import path, re_path
from rest_framework.urlpatterns import format_suffix_patterns
from rest_framework_simplejwt.views import TokenRefreshView, TokenObtainPairView
from account.views import UserPost, UserPut, CurrentUserView, reset_password_request, reset_password_confirmed
urlpatterns = [
path('... | [
"ggerholm@kth.se"
] | ggerholm@kth.se |
c71b8c954c2c1cf2b734ad2b5bd1e960fc3c9e5b | f73fa3f5ae95f2c2eea3d62cb187bc02444ae46e | /project05/Driver.py | f94689322b82ccb390ee41a550188dfb69d63ea9 | [] | no_license | guti15/comp401 | 6da40c74e5ec8d5ed4e43d7b89b2e30e7eda8ab9 | f075958b1f4d53fe4169e778002e5ab477e01b8b | refs/heads/master | 2021-01-01T18:48:42.827767 | 2015-06-07T15:57:40 | 2015-06-07T15:57:40 | 29,693,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | from __future__ import division
from matplotlib.patches import Polygon
import matplotlib.pyplot as plt
import pylab
import scipy
import numpy as np
# functions used
dot = scipy.dot
sin = scipy.sin
cos = scipy.cos
plot = pylab.plot
grid = pylab.grid
axis = pylab.axis
rad = lambda ang: ang*scipy.pi/180
# Function th... | [
"guti310@gmail.com"
] | guti310@gmail.com |
dc88cd8346a380e0a12c0d652cce2f29e166d064 | 8df6f0adf9892b848416d090db1b667b428732a4 | /app.py | b164c6fec4057661ad446f0dc535c360aaaccdbf | [] | no_license | prataplyf/Verifyotp | 47803a7da5584f3cc3f9fe764791221404dd1faf | e12dcbf7d6a636ae6a59edea12fbe948f3b0082e | refs/heads/master | 2021-06-28T03:02:49.689434 | 2020-08-21T08:32:23 | 2020-08-21T08:32:23 | 225,693,439 | 1 | 0 | null | 2021-03-20T02:22:34 | 2019-12-03T18:55:54 | HTML | UTF-8 | Python | false | false | 2,231 | py | from flask import Flask, render_template, request, url_for
import smtplib # for send message to mail
from random import randint # to generate random number
import re # for email validation
import pymongo # for connect with database
from pymongo import MongoClient
myclient = MongoClient("mongodb+srv://<dbname>... | [
"noreply@github.com"
] | prataplyf.noreply@github.com |
11a3f51ec70adb3184c56f01d9e54764343ce613 | 2dda5b4a2e5ed5aac697fdf3796ddecfa2cc7625 | /Completed Exercise Code/Python/Multiple plots-143.py | a964b07108fa9a175a6b85d76bef9758484a81b1 | [] | no_license | rajhiren/DataQuest | 66c2381cd6fcb93f82db258e3088b017b50ed2d6 | c5d603715aa916a8c82846b199208c7496641639 | refs/heads/master | 2020-07-12T22:49:04.969555 | 2020-05-14T10:37:31 | 2020-05-14T10:37:31 | 204,926,607 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,737 | py | ## 1. Recap ##
import pandas as pd
import matplotlib.pyplot as plt
unrate = pd.read_csv('unrate.csv')
unrate['DATE'] = pd.to_datetime(unrate['DATE'])
plt.plot(unrate['DATE'].head(12),unrate['VALUE'].head(12))
plt.xticks(rotation=90)
plt.xlabel("Month")
plt.ylabel("Unemployment Rate")
plt.title("Monthly Unemployment ... | [
"hiren.raj@icloud.com"
] | hiren.raj@icloud.com |
15af76b56f23169ecae06276f96acb2561d4c1b9 | 6480db97bf64fe5020bca084c38b7728ba9a1b9a | /pursuit/src/mvp_landing/urls.py | e10ed7a8489bdc075f57077b42c3bc7754100fd9 | [] | no_license | masterfung/mvp_landing-Django | 056727d3c7107f18ea5203b98816bad9bb94edaa | 4ae2d9128e13616ca2e4e82e36927a352f515858 | refs/heads/master | 2021-01-13T02:35:57.392427 | 2014-06-02T14:30:37 | 2014-06-02T14:30:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | from django.conf.urls import patterns, include, url
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples: #has to be in order when it comes to views
url(r'^$', 'signups.views.home', name='home')... | [
"hungmasterj@gmail.com"
] | hungmasterj@gmail.com |
738b239c95b2ac7b86f5a8bdfee732873570c675 | 234196b7db84a77453c8b4fd8a268e5ad1276f2d | /submissions/Fritz/Project/ConnectFour.py | 27ca3399b991472309d01f377c3e7fa9035e365f | [
"MIT"
] | permissive | belmont-acreeg/aima-python | 5e3913a16f15c0415a00b02a6804ed4db8031493 | 4a168e54b4c1ff53ebf05374210d2211a372fabc | refs/heads/master | 2021-01-01T18:06:55.696086 | 2016-12-13T16:58:15 | 2016-12-13T16:58:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,872 | py | from games import Game
from copy import deepcopy
class C4Game(Game):
def __init__(self, state):
self.initial = state
def actions(self, state):
columns = {0, 1, 2, 3, 4, 5, 6}
# remove the columns that are full
#.grid[column]) >= self.size['r']
for c in [0, 1, 2, 3, 4... | [
"simeon.fritz@pop.belmont.edu"
] | simeon.fritz@pop.belmont.edu |
956bbb329686871bba3cb70fda5cba273d1f374f | 227e317540726122d948c1950bf980d464988501 | /correct_unescaped_txtfile_with_delimiter.py | 7978368e6208c90dbb9dc045fc80f676c6d86d89 | [] | no_license | jhajagos/agile_data_tools | 86462bd677f2551bd381cfe8ef04cbbe83c35f78 | 9c86f9ea79226468ffd79419b485cad73ecb201e | refs/heads/master | 2021-07-06T10:03:45.233371 | 2021-04-30T21:22:37 | 2021-04-30T21:22:37 | 17,298,752 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | __author__ = 'jhajagos'
import sys
import csv
def main(file_name, delimiter="|"):
with open(file_name, "r") as f:
first_line = f.next()
positions = []
string_to_parse = first_line
last_position = 0
while delimiter in string_to_parse:
match_position = string_... | [
"risk.limits@gmail.com"
] | risk.limits@gmail.com |
1575804de3dd437ba9e8b545b69edced761183fd | 78d425c98f093e01dd78c15ffa76cf50f7e4fe1e | /tests/tier1/tc_1087_check_vdc_virtual_pool_revoked_in_guest_after_host_unattached.py | c2f7f74a50aa84f8b13159dec95faef8625f8fe0 | [] | no_license | Junefen/virtwho-ci | 57ef8637a78605fd3f2b1d3eb31031ba2b0de480 | 23e144171d2cc6ee87edfefdace8a25eb3e7bc65 | refs/heads/master | 2023-03-19T04:16:08.055779 | 2021-09-29T03:52:08 | 2021-09-29T03:52:08 | 194,606,208 | 0 | 0 | null | 2019-07-01T05:35:22 | 2019-07-01T05:35:22 | null | UTF-8 | Python | false | false | 2,453 | py | # coding:utf-8
from virt_who import *
from virt_who.base import Base
from virt_who.register import Register
from virt_who.testing import Testing
class Testcase(Testing):
def test_run(self):
self.vw_case_info(os.path.basename(__file__), case_id='RHEL-134064')
self.vw_case_init()
# case conf... | [
"hsun@redhat.com"
] | hsun@redhat.com |
d4458b6f75061aaaeca1df5716ef82fabd0eef21 | 3d24e22648c2b1420ad7c385ae4d166a5b4eb77b | /Chap06/my_friend.py | 86f9c0ae2601ca58b31b21256ae1a1e9e96329a3 | [] | no_license | LemonTre/python_work | f8f41c1cf9501e83e53b8b0d2f6df5de4176ea8b | 721e115da18256103bc2f2bd93b3c2ad20608c04 | refs/heads/master | 2021-07-05T11:16:50.807684 | 2017-09-29T06:13:09 | 2017-09-29T06:13:09 | 105,234,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | friend_message = {
'first_name': 'Jane',
'last_name': 'Liu',
'age': 23,
'city': 'qing',
}
print("First name is: " +
friend_message['first_name'] +"\n" +
"last name is: " +
friend_message['last_name'] + "\n" +
"age is: " +
str(friend_message['age']) + "\n" +
"city is: " +
friend_message['city']
) | [
"LemonTre@gmail.com"
] | LemonTre@gmail.com |
348342fded3b42e476d18b5185cc72f37cfbd458 | df9eb174049ef8fbefc6a7a6dbaee6e397a50bc8 | /scripts/simulateDM_notwist.py | 44af4228965755b9f52b962617274b782a3d35c7 | [] | no_license | hsinhaoyu/DM_Retinotopy | 4a6144bb63c7b0ecb697efa4b977406a63865de9 | 3dd0bfcf8d7db6cb087fd2c8ba2d1cbcce6c8bb2 | refs/heads/master | 2021-06-18T18:14:05.177620 | 2021-01-27T03:05:59 | 2021-01-27T03:05:59 | 148,410,386 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | # simulate a scenario where rostral to V2d is area DM
from helpers import full_filename
from helpers import clean_outdir
from vf import generate_vf_landmarks
from vf import export_vf_landmarks
from retinotopy import generate_V2_boundary_retinotopy_for_DM
from elastic_net import initialize_map
from elastic_net import... | [
"hsinhaohh.yu@gmail.com"
] | hsinhaohh.yu@gmail.com |
37548b9190916f8651fd219d2bc13a7f83d6beb9 | 7851e2b17b3d68d78bd2f51d5d43c56f08b010df | /collect_id/migrations/0002_auto_20160603_0333.py | be4029c8ecead9554779bf166bc6f93a9d79dfd6 | [] | no_license | doldre/scuacm_info | 94bccc6815070044d34fb3c23c268841e690ac9f | 51e0db56e7b0a8e6f9d7a902b3a5bd117b9cf372 | refs/heads/master | 2021-01-20T20:14:52.726780 | 2016-06-03T13:20:22 | 2016-06-03T13:20:22 | 60,317,912 | 1 | 1 | null | 2016-06-03T08:43:40 | 2016-06-03T04:18:13 | Python | UTF-8 | Python | false | false | 454 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-06-03 03:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('collect_id', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"luoxinchen96@gmail.com"
] | luoxinchen96@gmail.com |
48250d827da64d9104c9688d4b14d7d2e91a5d25 | 49b988e3ccc51b779fdf312446e37066b74cdc80 | /0x0F-python-object_relational_mapping/4-cities_by_state.py | d2e113b9f5eb540d77808ced283d3ec2fa9aa2fc | [] | no_license | amartinezre05/holbertonschool-higher_level_programming | cf4eb383eb0bee60853528116d5f7796ae167900 | fc6916a9a54d72f53c160e23f471f57e7bff660c | refs/heads/master | 2020-12-03T07:44:25.885607 | 2020-05-15T02:35:01 | 2020-05-15T02:35:01 | 207,410,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | #!/usr/bin/python3
""" lists all cities with a name """
from sys import argv
import MySQLdb
if __name__ == "__main__":
db = MySQLdb.connect(user=argv[1], passwd=argv[2], db=argv[3])
cur = db.cursor()
sql_query = "SELECT cities.id, cities.name, states.name\
FROM cities JOIN states ON cities... | [
"almartinezre05@gmail.com"
] | almartinezre05@gmail.com |
ada54b21eb805ba13403e644e467913924e72667 | d56828f1f7ae8fbb1fc2e79f84c82c4be1d13651 | /google/cloud/datacatalog_v1/types/schema.py | 4a51a1226512ae2416ba971f949dedc02bb6bb30 | [
"Apache-2.0"
] | permissive | isabella232/python-datacatalog | 940d7664d55ae01524f7fe89f8a295e9190ec23c | d16420640ec97c17e4c63516b8375b41df82de9c | refs/heads/master | 2022-12-19T23:03:49.561389 | 2020-10-16T19:58:42 | 2020-10-16T19:58:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,287 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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 o... | [
"noreply@github.com"
] | isabella232.noreply@github.com |
adb50d0161758a99474474f017143b99e885101d | dd8302ce73df23a3b764870dc22ff9641b42e9a5 | /week 9/Итоговый результат.py | 4541f6325661cf87898ca735a11744699a39c1d5 | [] | no_license | automationmaki/Python-tasks | ca94b65a515d20b184529f25b5584b668a876227 | 6ab27effb8604cffb024f76b4b812b70cada0c3e | refs/heads/master | 2020-06-08T23:52:57.288445 | 2019-06-23T09:33:00 | 2019-06-23T09:33:00 | 193,329,764 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,323 | py | from sys import stdin
from copy import deepcopy
class MatrixError(BaseException):
def __init__(self, Matrix, other):
self.matrix1 = Matrix
self.matrix2 = other
class Matrix:
def __init__(self, lists):
self.lists = deepcopy(lists)
def __str__(self):
strRep = ""
... | [
"ivanryshov@mail.ru"
] | ivanryshov@mail.ru |
24b9d814fa89590e73afbb3170a3aa86f7af9c93 | 6b1aaded6a6d7ad8133eb93f5570d087b9ecefc0 | /lintcode405.py | bf33aa1a99a4ba748166649620a4bf9c2f3f2a0a | [] | no_license | huangyingw/Leetcode-Python | 53a772e1ecf298c829c0f058faa54c420420b002 | 9513e215d40145a5f2f40095b459693c79c4b560 | refs/heads/master | 2021-07-16T10:10:02.457765 | 2020-07-01T05:35:21 | 2020-07-01T05:35:21 | 192,150,219 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | class Solution:
"""
@param: matrix: an integer matrix
@return: the coordinate of the left-up and right-down number
"""
def submatrixSum(self, matrix):
if not matrix or not matrix[0]: return None
m, n = len(matrix), len(matrix[0])
for top in range(m):
row = [0] * n... | [
"I510801@e12398.b.akamaiedge.net"
] | I510801@e12398.b.akamaiedge.net |
f9367673e466d5c6f52ecafa0db4e965b49893b3 | b172bed8f154a20f891c1aa3a53146dfc163599c | /__init__.py | 1f41031af6d73570e261f461900f72600b4e41b5 | [] | no_license | rocketgithub/importaciones | e9ed37c5c3bf1c9130ac7e4f4e09fce51decb016 | 79b72dd68e5f5e8f929402a51195963b3f6fc054 | refs/heads/master | 2023-05-03T18:09:39.363647 | 2019-04-11T17:53:06 | 2019-04-11T17:53:06 | 70,007,828 | 0 | 2 | null | 2019-04-11T17:54:34 | 2016-10-04T21:27:24 | Python | UTF-8 | Python | false | false | 164 | py | # -*- encoding: utf-8 -*-
import purchase
import stock
import polizas
import catalogos
import gastos
import reportes
#import res_company
#import product
| [
"noreply@github.com"
] | rocketgithub.noreply@github.com |
bcd095c44302791aacf83433056e56a9dfd98367 | 7162fd9b5bb32f0c9927b145f9f3bf328e455dd7 | /venv/Scripts/futurize-script.py | 50f400c08098befab498c551f6503f4d8201c3b3 | [] | no_license | TheyCallMeRobinson/min2win | 83abd8838f54ad50837ef4a249c24ac081fe4e4f | e35002ccdef679381b6db5bf1dbdd2539ed7308f | refs/heads/main | 2023-05-02T21:13:41.136971 | 2021-05-15T05:50:42 | 2021-05-15T05:50:42 | 367,549,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | #!d:\programms\github\min2win\venv\scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','futurize'
import re
import sys
# for compatibility with easy_install; see #2198
__requires__ = 'future==0.18.2'
try:
from importlib.metadata import distribution
except ImportError:
try:
... | [
"PaulRobinson834@users.noreply.github.com"
] | PaulRobinson834@users.noreply.github.com |
1bb44406c53ccd8bd2704177ce2a869db9d18486 | f2e58da412b0fcd128efafa7a1a520ff78b7aa18 | /app/main/views.py | 9d8783025b15701132b3422175851e9f881930eb | [] | no_license | Can2Nya/Daily | d7e1053456cf0d93a428df78e67dccd07ff4fe07 | d7dffc19237d1ec8b2595aadf642d08ee711487f | refs/heads/master | 2021-03-27T20:19:57.539020 | 2017-07-22T12:13:13 | 2017-07-22T12:13:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,498 | py | # -*- coding: utf-8 -*-
from math import ceil
from flask import request, current_app, jsonify, render_template, send_file, url_for
from . import main
from .. import client
from ..models import Douban, Guoke, Zhihu
@main.route('/',methods=['GET','POST'])
def index():
return render_template("index.htm... | [
"a1023122541@qq.com"
] | a1023122541@qq.com |
9205d9f42d0e132fcfe303fdeddfecd6b4964701 | 7083cddadf54f8b4917c400f4f4fb1f12fcaffc7 | /machine.py | c7cdca1bf77ac36b0fdf0653768e4b59f4256495 | [
"MIT"
] | permissive | ahmadabdulnasir/FaceAttendance | a2bbb60d7152b585f716d51fdab93d255a447ebd | 01c72bf66c8419336b089712aefac477848f1f0a | refs/heads/master | 2022-07-28T10:53:50.124503 | 2019-07-12T20:14:07 | 2019-07-12T20:14:07 | 192,237,211 | 0 | 0 | MIT | 2022-06-21T22:10:29 | 2019-06-16T21:10:20 | Python | UTF-8 | Python | false | false | 300 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
__author__ = 'Ahmad Abdulnasir Shu'aib <me@ahmadabdulnasir.com.ng>'
__homepage__ = https://ahmadabdulnasir.com.ng
__copyright__ = 'Copyright (c) 2019, salafi'
__version__ = "0.01t"
"""
def boot():
pass
if __name__ == "__main__":
boot()
| [
"ahmadabdulnasir9@gmail.com"
] | ahmadabdulnasir9@gmail.com |
72ff8c3550a9d80982b6ab69f568c80f8e65b8c8 | df8c19c952f02e3527c0e06c1d74ed578ca0684b | /account/tasks.py | 73d9501a1106ab6067bb90300b4c9dafed75e5bc | [] | no_license | knkemree/msrugs_backend | ac8c703fb691c9a796028cb2c38abaf8ed98c98c | 850026b2884e7618404ecfa030beccec93bb4596 | refs/heads/master | 2023-04-03T04:31:13.557762 | 2021-04-05T17:26:34 | 2021-04-05T17:26:34 | 354,910,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | from celery import shared_task
from django.core.mail import send_mail, mail_admins
from django.template import loader
from django.conf import settings
from celery.utils.log import get_task_logger
logger = get_task_logger(__name__)
@shared_task
def info_admins(email):
subject = "New Customer Registered"
... | [
"konakziyaemre@gmail.com"
] | konakziyaemre@gmail.com |
891c9f88a99a505b44337aca6088ddc9309129b4 | 4686c91e446410fc0da1ae2433f931a26dfd7e52 | /python_basic_test_v0.0/software_develop_book_test/CH7/calculater.py | 734d8760df1e479866060141a9e9590df7144666 | [] | no_license | JuSuIn/jsi_develop | 1c834f9d8a4476b2b1c1868a01d2da44ccb9d3a0 | 15ab28d6c5d0f55439af31fec4d76c7bcb4f4121 | refs/heads/master | 2020-04-08T04:56:03.389584 | 2019-09-01T11:36:26 | 2019-09-01T11:36:26 | 159,038,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | #%%writefile calculater.py
# -*- coding : utf-8 -*-
def add(l,r):
return l + r
def mul(l,r):
return l * r
def div(l,r):
return l / r
| [
"jusuin5876@gmail.com"
] | jusuin5876@gmail.com |
6ae4d90917b76209da685d3f1195dec591493d97 | d5b409e73e3d907afd9b2a02ed03e052fd07ddd8 | /website_parsing.py | 4f7141895816bed681d3d68a949690381cf36bfa | [] | no_license | Jonscott92/CNS210 | 5f1f7063e7b13e3934ff02ac7cbdb9520821d201 | 4a3e77423d1a6f4910a31452863416ba1e76da77 | refs/heads/master | 2021-04-19T04:22:06.644885 | 2020-05-02T18:33:45 | 2020-05-02T18:33:45 | 249,579,845 | 1 | 0 | null | 2020-04-17T22:14:32 | 2020-03-24T01:03:49 | Python | UTF-8 | Python | false | false | 837 | py | #!/usr/bin/python3
from bs4 import BeautifulSoup
import requests
import urllib.request
url = 'https://www.python.org/downloads/'
page = requests.get(url)
# parse python.org/downloads for 2.7 version released on April 6, 2013
soup = BeautifulSoup(page.content, 'html.parser')
#print(soup.prettify())
all_versions = soup.... | [
"noreply@github.com"
] | Jonscott92.noreply@github.com |
a8d35d6865f273efb2f367a0bd0e0a003042606f | 68a852e587ee03e1e73d468b4ebb988d961f5ae9 | /covenants.py | d3ae0e07044353cbfeab2e48b040f981f9a5c0ce | [
"MIT"
] | permissive | spromicky/covenants_bot | 7b60088b42c7f5b3502e374807c9dce68020bc0f | 986edd2db6e5db3e479cfb675ba67ca2c8e945dd | refs/heads/master | 2023-05-10T02:38:46.021499 | 2021-06-05T00:03:47 | 2021-06-05T00:03:47 | 373,978,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,892 | py | import os
import random
from quotes import Quotes
from datetime import date
from terminal_colors import bcolors
import discord
from discord.ext import commands
from dotenv import load_dotenv
load_dotenv()
TOKEN = os.getenv('DISCORD_TOKEN')
cache = {}
quotes = Quotes()
bot = commands.Bot(command_prefix='!')
@bot.co... | [
"spromicky@gmail.com"
] | spromicky@gmail.com |
5232742e7ce8908fe40f6554bc4648d7ab5f4b13 | d464345994fbe197f7a55e0d3866b628b3839511 | /config_tmpl.py | 660a2859a4d2ffca65492fae93f56ec289d4e9ea | [] | no_license | DCHHV/HHV_admin_scripts | b9cc9b38e213d5f2c9e1def781fecdbf5f7d138d | 1e72fdf6f2985a49bdfe69fa597d698899156b48 | refs/heads/master | 2023-04-14T17:46:16.349190 | 2023-03-18T23:56:19 | 2023-03-18T23:56:19 | 162,051,971 | 1 | 0 | null | 2022-07-08T20:32:46 | 2018-12-16T23:54:27 | Python | UTF-8 | Python | false | false | 1,236 | py | Organizer=""; # Name of the event/group organizer, used to convey the name of the person to talk to on-site
Organizer_phone=""; # Phone number of the above organizer
SMTP_url=""; # SMTP server, used in all of the send scripts
SMTP_port=587; # Testing done with TLS, SSL connection may not work without modifications
... | [
"Kris@KBEmbedded.com"
] | Kris@KBEmbedded.com |
79077daf4f3432dcd7777ec73000e9bb77c6bca0 | 5fdd62e8909bec75632895cbddf626905b44f486 | /grad_school_projects/Particle_Filter/particle_eitan.py | 0e55e6c1fb9e7df3057097037f6738437eae8f57 | [] | no_license | jimitgandhi66/My_projects | 2839c7a92a7a4f00e4ef00b83e6b696469ad7bdf | 446a4ae648cb32424fda2d08a4c7a3828ab33f59 | refs/heads/master | 2021-07-19T03:28:00.980328 | 2021-02-19T05:10:38 | 2021-02-19T05:10:38 | 55,872,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,450 | py | #!/usr/bin/python
import numpy as np
from multiprocessing import Pool
from scipy.spatial.distance import cdist
from scipy.stats import norm
import numpy.random
from numpy.random import multinomial
import matplotlib.pyplot as plt
import random
import time
import h5py
class particle:
def __init__(self):
self.map = ... | [
"jimitgandhi66@gmail.com"
] | jimitgandhi66@gmail.com |
4183e285a712ddf25405d8c0696ee9d1f6405b23 | bd5bac591657754c45c0449c89bbad069f0f0c1a | /24.Remove spaces from dictionary keys.py | 09451c629aaf9d1586c6f188b5220503c129db9b | [] | no_license | AkhilReddykasu/Dictionary | 8cdfbc90ef43af3519ff2864e9d3b084e1b92c4c | 45a50e5a4cc03ec38ba0b502e962f85f9503f106 | refs/heads/master | 2022-11-17T20:01:24.249875 | 2020-07-17T15:46:49 | 2020-07-17T15:46:49 | 280,464,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | """Remove spaces from dictionary keys"""
d = {'tom': 'jerry',
'mike tyson': 'boxer',
'jack pirate': 'sparrow',
'will Turner': 'Elizabeth'}
print("Before removing spaces:\n", d)
d = {x.replace(' ', ''): v
for x, v in d.items()}
print("After removing space:\n", d)
| [
"noreply@github.com"
] | AkhilReddykasu.noreply@github.com |
c344e931dbc0bea19cfd8ade72f0e23e73c9944c | 6bf7149077f539ab599db1f717c93aca82724512 | /workshop/fig_games/project/game.py | 28aac4f8ed638b7cc05a55b9da86ae835c56af25 | [] | no_license | KalinHar/OOP-Python-SoftUni | 8b53e8b734b364878c5372525c4249fdd32f0899 | 9787eea7ab5101e887ed4aaeb0a8b3b80efcfdd7 | refs/heads/master | 2023-07-09T08:15:59.765422 | 2021-08-16T06:01:08 | 2021-08-16T06:01:19 | 380,813,294 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,577 | py | from workshop.fig_games.project.suitcase import Suitcase
from workshop.fig_games.project.battle.area_battle import AreaBattle
from workshop.fig_games.project.battle.circumfernce_battle import CircumferenceBattle
from workshop.fig_games.project.battle.relative_battle import RelativeBattle
from workshop.fig_games.project... | [
"kalix@abv.bg"
] | kalix@abv.bg |
7f853d13a99364d388ef59396d477dcfa85ad1be | 995edd150d0025bbecc85a945c16652a77391375 | /stringExample.py | d882ebe9a914e440c0dbfb78815bbb27760f9f3a | [] | no_license | joeyzywang/pythonExamples | 1210de858dd022ca3801d601f5cc798d6f173b4e | 165e120f903d4c34004cdd29eeea4e2a62bef43c | refs/heads/master | 2021-01-10T09:58:13.513782 | 2016-01-20T06:16:15 | 2016-01-20T06:16:15 | 50,002,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
word="abcdefg"
a=word[2]
print("a is " + a)
b=word[1:3]
print("b is " + b)
c=word[:2]
print("c is " + c)
d=word[0:]
print("d is " + d)
l=len(word)
print("Length of the string : " + str(l))
'''
知识点
*字符串就是列表
''' | [
"joeywang@Joeys-iMac.local"
] | joeywang@Joeys-iMac.local |
56dcdc36f721b9369ff7075c0fee428604fd53df | 0c63ccb99eb2ecb18dd9c35df07db75ada2ebb67 | /health/data.py | 64b4f373e3fd44d22084c211ec794f7f69f5e60e | [] | no_license | arsil-z/Medilab | 01451b5621c41b72517d910ee6c3d9245d05df76 | dab8c31b40d655a2c1e64e7ecb2e12fe9902aaa3 | refs/heads/master | 2023-08-17T16:19:32.200584 | 2020-07-26T12:45:03 | 2020-07-26T12:45:03 | 282,442,781 | 0 | 0 | null | 2021-09-23T04:55:09 | 2020-07-25T12:48:24 | CSS | UTF-8 | Python | false | false | 591,889 | py | import null as null
symptoms_list = {'s_1558': 'Abdominal guarding', 's_299': 'Abdominal mass',
's_1293': 'Abdominal mass, after pregnancy or the removal of a molar pregnancy',
's_13': 'Abdominal pain', 's_1802': 'Abdominal pain, burning or gnawing',
's_1848': 'Abdominal pain, colicky', 's_1860': 'Abdom... | [
"arsilzunzunia@gmail.com"
] | arsilzunzunia@gmail.com |
fb8d989bdc6571263abf65a3da0c0fad0a7523be | 03b75594126205970b41da3d94e8607182e3be77 | /render_app/migrations/0002_auto_20191014_0926.py | f6f25e96d1f2ae97bdbae31571ed22df085a656f | [] | no_license | anthodemorais/render | e0c1001036de52bfa3eb300f39f6b2f8607e0ac7 | 7a77ebf224edd43266c39f1b1460f357da2328b1 | refs/heads/master | 2023-04-30T20:54:57.932353 | 2021-06-14T19:21:12 | 2021-06-14T19:21:12 | 216,519,857 | 0 | 0 | null | 2023-04-21T20:39:35 | 2019-10-21T08:45:40 | Python | UTF-8 | Python | false | false | 574 | py | # Generated by Django 2.2.6 on 2019-10-14 09:26
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('render_app', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"anthonyd-m@live.com"
] | anthonyd-m@live.com |
910afd2efa42ada5dd22923f2a6c53a466fb5a1f | c577d0d804ef826131a8a959ed10879d3fdfef2a | /profiles/migrations/0008_auto_20190206_2142.py | 88de9108773cc666cfb035325fb04299faba7c2f | [] | no_license | AlexFrundin/four | 3d561e2f33e007e93b975b247752c06b392b1945 | c937e0dc159f380abbcb5e646ebdf2a7a8fd6be0 | refs/heads/master | 2020-04-30T10:55:31.020357 | 2019-03-20T18:06:26 | 2019-03-20T18:06:26 | 176,788,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # Generated by Django 2.1.3 on 2019-02-06 19:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0007_auto_20190206_1917'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='birth',
... | [
"aleksey.frundin@gmail.com"
] | aleksey.frundin@gmail.com |
4c19d1c4ca2143d49702c83bd6fe7486af618b32 | 6df4a4cbdaf59009838b2c70b518e66633c67de0 | /user_portrait/cron/recommentation_in/filter_rules.py | c4a58b227bbab39a9fd134e2bd2cc7cfcf24955f | [] | no_license | jianjian0dandan/user_portrait | ccf5f43f0aca2d40581faae215fdda1db997a354 | 3114ca2fcec23a7039887cca953793ef34cb7f72 | refs/heads/master | 2021-01-15T19:59:16.286276 | 2016-05-18T03:30:37 | 2016-05-18T03:30:37 | 42,869,391 | 0 | 0 | null | 2015-09-21T13:56:51 | 2015-09-21T13:56:51 | null | UTF-8 | Python | false | false | 4,731 | py | # -*- coding: UTF-8 -*-
import sys
import csv
import json
import time
reload(sys)
sys.path.append('../../')
from global_utils import R_CLUSTER_FLOW2 as r_cluster
from global_utils import R_DICT, es_retweet, retweet_index_name_pre, retweet_index_type
from time_utils import datetime2ts, ts2datetime
from paramet... | [
"1257819385@qq.com"
] | 1257819385@qq.com |
dab4cfdd729eba784c4c05a5eac5d5d23ada3f00 | 88d59722425ba46baf2e5462890d18683183972a | /Machine_Learning/ml_bot.py | 845abb734647ec2616f510b8b89fab4bb3227cf8 | [] | no_license | opensource-NITT/Delta-SaesorTwitterBot | 9bcc640614f335a6ea730aa6301b0663e25d7c58 | aa1919f68ad0398b22e7ba465ed1daf208fc3f6e | refs/heads/master | 2023-02-21T18:38:28.164327 | 2020-10-22T13:28:52 | 2020-10-22T13:28:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | import numpy as np
import pandas as pd
from keras.models import Sequential, load_model
from keras.layers import Dense
#importing the dataset
dataset = pd.read_csv('data_main.csv')
X = dataset.iloc[:,1:].values
y = dataset.iloc[:,0].values
#Splitting the data into train and test set
from sklearn.model_selection impor... | [
"malikakarsh@gmail.com"
] | malikakarsh@gmail.com |
802695a099e500fec46d761a6bc06d2bd5ff349a | 4ba4ae24e734686f28fe395390a2d0210eb88458 | /programas/galeria/orbita de .5 sobre la logística/orbita_0.5_logistica.py | c2fdeeaff5bbbd9bcf411db25878759de40fc3e1 | [] | no_license | fhca/Sistemas-Complejos-1 | a7578ae981c694ae2500a847adfe79c6c58c69ae | a2b70adf3859dd6a7318da98228adef78698f9c5 | refs/heads/master | 2021-01-15T19:59:49.778497 | 2017-12-16T03:34:51 | 2017-12-16T03:34:51 | 99,835,884 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | __author__ = 'fhca'
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import axes3d
from matplotlib import cm
def logistic(c, x):
return c * x * (1 - x)
def evaluate(n, x0, c, f):
res = x0
for _ in range(n):
res = f(c, res)
return res
fig = plt.figure()
ax = fig.ad... | [
"hobber.mallow@gmail.com"
] | hobber.mallow@gmail.com |
bfc7b7c725186d4654a5a1ba2b667ee3508fbffb | 944448bd676fc0099d74dcd281328a2cb808ad66 | /bas_app/urls.py | 196aa408faa50b4d26aa2a5d7219b9e3b54d20cb | [] | no_license | sayunhck/bas_project | 057ea3cf60b6262154458237300939b69977eba2 | 25a7bcb17af86ae411273ddff4fea34e505dd80c | refs/heads/master | 2020-09-07T23:30:15.423850 | 2019-11-11T09:14:13 | 2019-11-11T09:14:13 | 220,942,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | #coding=utf-8
from django.urls import path
from . import views
urlpatterns = [
path('',views.index_view),
path('login/',views.login_view)
] | [
"15904513085@139.com"
] | 15904513085@139.com |
50c0db940d1a81503c735523e554c2f9aa4e8c25 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/31503010.py | a0d860e470e74eab4f359406d68c4a1e5df58223 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/31503010.py generated: Wed, 25 Jan 2017 15:25:30
#
# Event Type: 31503010
#
# ASCII decay Descriptor: [tau- -> pi- pi+ pi- nu_tau]cc
#
from Configurables import Generation
Generation().EventType = 31503010
Generation().SampleGenerationTool = "SignalPla... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
274b4e2ca3abe691d126c2277da8731025cc44ce | a18324874df3083fe63430963ac98e0b056b3bab | /assignment2/a_classification.py | 9d65f2438785f76eeb5d5cdc503f300d481e2dc8 | [] | no_license | noah-sealy-fdl-2021/VisualAnalyticsProjects | 16a95ce985aaa4c7c4b3fdc4dc2d3d3574b90695 | f227e13a4b99bc724568316e34f9864aa1e39406 | refs/heads/main | 2023-03-18T17:52:50.473708 | 2021-03-13T07:04:31 | 2021-03-13T07:04:31 | 347,287,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,531 | py | from pathlib import Path
from typing import List, Dict
import pandas as pd
import numpy as np
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import LabelEncoder
from sklearn.tree import DecisionTreeClassifier
from assignments.assignme... | [
"noreply@github.com"
] | noah-sealy-fdl-2021.noreply@github.com |
35f4309ae58a75dbafef5a17b578d36f585fb9a7 | 6fa14cd7be2d22553496326bce954b74dd6779bd | /ejercicios 1er año/funcion para limpiar pantalla.py | c7c6fde27a48ac5be1d0bcb5c8821d9144c113f6 | [] | no_license | nucleomis/Archivos_Python | 28e93dfac08eee604f25173ecdbfc3e86eb952ef | dd3e104bb38e9763d1e5efb22614e845f21d68f1 | refs/heads/main | 2023-06-22T13:19:27.952059 | 2021-07-20T14:05:13 | 2021-07-20T14:05:13 | 387,810,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | import platform
import os
def limpiar():
os.system("cls")
cont=0
for x in range(5):
cont=cont+1
print(cont)
limpiar() | [
"nucleo.mis@gmail.com"
] | nucleo.mis@gmail.com |
20b656ddbab9eae32f2eb0fa454be28a9a548ccc | 333a9bf3ce71f2aefc0b105fe4058c2aacc5ddb1 | /vae_eval.py | ed02672e2ae5d2e68493bce36009bf47b97c521f | [
"MIT"
] | permissive | shijack/vae-system | 33a5cb53a52cfbc23952cdcc8bb3daf80ef75926 | 14506b3b5966162a3502b26dd68d1a77ccbcfb34 | refs/heads/master | 2020-04-02T01:44:26.306971 | 2018-10-24T12:49:51 | 2018-10-24T12:49:51 | 153,872,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,449 | py | import tensorflow as tf
import numpy as np
import scipy
import cv2
import os
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = "1"
LATENT_DIM = 256
ROWS, COLS = 10, 10
HEIGHT, WIDTH, DEPTH = 144, 112, 3
N, M = 10, 30
splines = []
x = range(N)
xs = np.linspace(0, N, N * M)
for i in ... | [
"690141808@qq.com"
] | 690141808@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.