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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ecc9df8a0632fe31e32b4f814d1e56f458ca38fc | 77515dad095d1e8254ccc05fee4f20b019759142 | /project/views.py | faca923b1f4d649fab8af807162bdbf993cdbc90 | [] | no_license | vesperalwall860/fin_o | 1dea92b1094ca6d2d0476f472c0a6a35787c59b0 | 170d34d7968e197f3569ecdc8f8b52153410dd83 | refs/heads/master | 2020-12-25T10:36:18.687041 | 2016-07-05T07:01:21 | 2016-07-05T07:01:21 | 62,416,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from flask import render_template, abort
from jinja2 import TemplateNotFound
from project import app
@app.route('/')
def index():
try:
return render_template('index.html')
except TemplateNotFound:
abort(404) | [
"vesperalwall860@gmail.com"
] | vesperalwall860@gmail.com |
7d4f9cdc84e95ca0e8f5f3ead8f8e11eb445f36a | e44a24cfe359bc161f285096ee0e0829fedc6ad3 | /natlet/novatlet/migrations/0006_auto_20200228_0806.py | dc54a9a39fdf17dfcdd4453396f4b43dacb6b607 | [] | no_license | palachintosh/natlet-project | ef1fe03ed1cbf6fdf75011453e91e315b040a6d0 | e5fe0785123a6d1a5c9cbad8e2689112ea672862 | refs/heads/master | 2022-09-22T01:11:23.942003 | 2020-05-27T07:54:34 | 2020-05-27T07:54:34 | 264,766,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # Generated by Django 2.2.10 on 2020-02-28 08:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('novatlet', '0005_auto_20200228_0805'),
]
operations = [
migrations.AlterField(
model_name='location',
name='dir_obj... | [
"parser9000@gmail.com"
] | parser9000@gmail.com |
057f167b065d2afdc42adc634c407aa2f6d99b86 | 72c19aa3a168f217421afba80b59e8dfb1d5fb47 | /dishonest/spiders/gsxt.py | 5aab01f3031edef248999c2f44ca71f265b8b685 | [] | no_license | BJLIYI/dishonest | 435819a9a2369f7bcd06d16b5f083e8765c04981 | 249d9cfb9d7841f8985c3cdc4643aaed78b791b1 | refs/heads/master | 2020-04-23T15:25:34.881011 | 2019-02-18T10:40:02 | 2019-02-18T10:40:02 | 171,264,797 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,322 | py | # -*- coding: utf-8 -*-
import scrapy
import json
from dishonest.items import DishonestItem
import re
from datetime import datetime
"""
5.2.4 完善爬虫
步骤:
1. 解析页面中的城市名称和id, 构建公告信息的URL
2. 解析失信企业公告信息
"""
class GsxtSpider(scrapy.Spider):
name = 'gsxt'
allowed_domains = ['gsxt.gov.cn']
start_urls = ['http://ww... | [
"18911594826@163.com"
] | 18911594826@163.com |
353da4dae3088c0582f0548c7cbac5f55304498e | ee47140dc1cd015f783f5674201a5fa0a5765f74 | /clitool/utils/xmind_sdk/xmind.py | 67c13ad6b4438098d244c752144355558c8b70b3 | [
"MIT"
] | permissive | baimingjiang/clitool | 6d5597072e62b2ad068114b5cbfdc21d833b8a9f | 100e3f54cd313a3d7609b9bad73da85a4d54318e | refs/heads/master | 2020-07-08T14:18:21.785813 | 2019-08-22T06:22:45 | 2019-08-22T06:22:45 | 203,698,786 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from .core.loader import WorkbookLoader
from .core.saver import WorkbookSaver
class xmind(object):
@classmethod
def load(self, path):
loader = WorkbookLoader(path)
return loader.get_workbook()
@classmethod
def save(self, workbook, path=Non... | [
"baimingjiang@pwrd.com"
] | baimingjiang@pwrd.com |
75e69d2795658c8d45410571adc4f419eee9b539 | 8d3ac2bee2d8ad19ffee55eaf80986e748ac59e2 | /selfmodule/datetimeTest.py | 9edf7d00ed20dd71284edf297375e7e2e012511d | [] | no_license | TianDehua/pythonLearn | 58c2aae8a8b95a6424a63c53cde1245fb2811a5d | 84e6eb98fc1389b3123b17ff749fecd4cb78577a | refs/heads/master | 2021-05-24T10:39:43.309036 | 2020-05-09T03:54:16 | 2020-05-09T03:54:16 | 253,523,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | from datetime import datetime, timedelta, timezone
#测试datetime
now = datetime.now()
print(now)
print('type now=', type(now))
#创建时间by数字
dt = datetime(1970, 2, 28, 20, 10, 50)
print(dt)
#时间戳
timestamp = dt.timestamp()
print(timestamp) #5055050.0 单位s,小数点后表示ms
#创建时间by时间戳
dt = datetime.fromtimestamp(timestamp)
print(dt)... | [
"tiandehua@ellabook.cn"
] | tiandehua@ellabook.cn |
2cb256696adb3ff4636f5e1f72d14249d395432d | 9a00baf648a1135916141cfa8d6ed87665dd827a | /Day3m.py | aaac53c9a1599ae56ef6f86c5eea555d279367c7 | [] | no_license | JonathanSum/Deep-Learning-Happy-Sugar-Life-Weekly-Training | 10786bd62853aedeb4d06a452c9ec597b25d3a0f | 37b0ef4669e32eb9ffb74413f96f6a533270e141 | refs/heads/master | 2022-12-31T08:05:16.657932 | 2020-10-12T02:51:12 | 2020-10-12T02:51:12 | 292,529,405 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,414 | py | import math
import logging
import torch
import torch.nn as nn
from torch.nn import functional as F
logger = logging.getLogger(__name__)
class GPTConfig:
""" base GPT config, params common to all GPT versions """
embd_pdrop = 0.1
resid_pdrop = 0.1
attn_pdrop = 0.1
def __init__(se... | [
"noreply@github.com"
] | JonathanSum.noreply@github.com |
03f4906d5608d54bc061086dc9511077b6fb6acd | 9d291ff8ad0a455b8b38065546e1c9a6617d36cf | /python/tkinter-test/global.py | 25359a44216154de6b564a58f6c0eb507ca1a196 | [
"BSD-2-Clause"
] | permissive | seekindark/helloworld | 7128b8d8b6ebdc79c2ec3aa17137fb2a8e18885e | 3f36e040399a998e43c63bca0586fe517b7fef69 | refs/heads/master | 2023-05-26T22:04:08.714917 | 2023-05-13T01:31:06 | 2023-05-13T01:31:06 | 193,409,142 | 0 | 0 | BSD-2-Clause | 2019-09-27T08:07:02 | 2019-06-24T00:31:59 | C | UTF-8 | Python | false | false | 209 | py | def testGlobal(var):
print("before global: x = ", x)
global x
x=2
print("after global: x = ", x)
x=100
print("before testGlobal, x=100")
testGlobal(x)
print("after global: x = ", x)
| [
"fei_n_chen@163.com"
] | fei_n_chen@163.com |
3b9c6df380abb62eca139e0921fb212b689b32f4 | 49273a7e6e0d4726f38fab1c430b86dbfc4b2345 | /codingbat/p2_triangle.py | 01524a16b9b97f430f2e248bb393a32eb057c4a4 | [] | no_license | adqz/interview_practice | d16d8c56436dde1f7fa96dc0d8dcc827295e0ff0 | f55fb9c0a39c2482c98cc452c185a938a59ad57c | refs/heads/master | 2023-01-11T01:30:03.353498 | 2023-01-03T14:48:08 | 2023-01-03T14:48:08 | 207,520,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | '''
------- Start: Problem -------
We have triangle made of blocks. The topmost row has 1 block, the next row down has 2 blocks,
the next row has 3 blocks, and so on. Compute recursively (no loops or multiplication) the total
number of blocks in such a triangle with the given number of rows.
triangle(0) → 0
triangl... | [
"ashahpur@eng.ucsd.edu"
] | ashahpur@eng.ucsd.edu |
024d9dd310fa67c101a745994a8b3f57c66e2c76 | d8aa9e13534db5aeb328a439fe1bc14718a5cbb3 | /manage.py | 818e1183b8c65261939a2594d999283bf4040753 | [] | no_license | mati23/mtg-django | ec742d46cc2ca5402f82ddb7d746a42d8a720dd1 | e342faa59ab58342106275d52865c4475179b6c1 | refs/heads/master | 2021-05-19T17:02:11.881148 | 2020-07-01T01:58:26 | 2020-07-01T01:58:26 | 253,079,948 | 3 | 0 | null | 2021-01-05T23:39:11 | 2020-04-04T19:14:11 | Python | UTF-8 | Python | false | false | 905 | py | #!/usr/bin/env python
import os
import sys
home = os.path.dirname(sys.argv[0])
sys.path.append(os.path.join(home, "mtgblueprint/model"))
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mtgblueprint.settings")
try:
from django.core.management import execute_from_command_line... | [
"mateusarruda@alu.ufc.br"
] | mateusarruda@alu.ufc.br |
0b91ae681bcb8e985d62e92073255c5a45b82b87 | c0c29c1c3c8550536c2a16dc3b5ef5b2be4b77e2 | /DynamicProgramming/ClimbingStairs.py | 087881865993fcde4fe8942de403e10cd4f3fcc1 | [] | no_license | safkat33/LeetCodeProblems | 0d404c07f7ffd631afc9ae65cc28b6e847991dd0 | 3f443e90a97be81c18aebfc9fd5bad047016e9ee | refs/heads/main | 2023-07-11T07:15:33.651447 | 2021-08-27T13:05:24 | 2021-08-27T13:05:24 | 388,070,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | """
You are climbing a staircase. It takes n steps to reach the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
Example 1:
Input: n = 2
Output: 2
Explanation: There are two ways to climb to the top.
1. 1 step + 1 step
2. 2 steps
practice
steps = |1|2|3|5|8
"""... | [
"safkat.33@gmail.com"
] | safkat.33@gmail.com |
965a646233dd47098e1893b396f1ea31c88b0a4b | 290a083092f26a0faa1b277848a330f1e241e25b | /count_Ts.py | e55a8207749acbb2736748f88f37f4da60efbf05 | [] | no_license | Ayogee/Python | 34334ca97871cb8cd6fdde46c3c371a795acfe5f | a05c66f9bf86989e0d5923f2cdb8885486ea27d2 | refs/heads/main | 2023-02-05T07:16:32.734019 | 2020-12-29T23:49:50 | 2020-12-29T23:49:50 | 324,831,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | # This program counts the number of times
# the letter T (uppercase or lowercase)
# appears in the string.
def main():
# Create a variable to use to hold the count.
# The accumulator must start with 0.
count = 0
# Get a string from the user.
my_string = input('Enter a sentence: ')
#... | [
"noreply@github.com"
] | Ayogee.noreply@github.com |
e9e1724afbec3386c9ad9fe57c0c6fb3dd2bf831 | 7a49dda91c75aac8189e64aa849a88bfd982af0b | /src/segmentation/model_components/OutConv.py | c26f08c9937bc4426fbf9b36739b3a9acfeac894 | [] | no_license | cmtrom01/Al-SiC_Segmentation | 9e64c33ee6779dd4ca5061f844da106d6471b96d | c99c790bf0f5a82d3a8d075c0523718777ea85ad | refs/heads/main | 2023-08-16T17:28:56.453647 | 2021-09-10T20:23:16 | 2021-09-10T20:23:16 | 392,110,804 | 0 | 0 | null | 2021-08-03T01:47:12 | 2021-08-02T22:23:29 | Python | UTF-8 | Python | false | false | 257 | py | import torch.nn as nn
class OutConv(nn.Module):
def __init__(self, in_ch, out_ch):
super(OutConv, self).__init__()
self.conv = nn.Conv2d(in_ch, out_ch, kernel_size=1)
def forward(self, x):
x = self.conv(x)
return x
| [
"cmtrom01@louisville.edu"
] | cmtrom01@louisville.edu |
80b8e1e6ed59b8d4333ecef3f712286bc2453d3d | f554acc4c261c6a7a8ef16847005d5f7758da44c | /gui/qt/console.py | 5016e45144c49aca252ee2140a9c3819facfaed3 | [
"MIT"
] | permissive | lbtcio/lbtc-lightwallet-client | aee15de0defffd1255641d307414bb49c1b39100 | 49ae12e5603eeb0dea2f2dd65b16414be2891d9e | refs/heads/master | 2022-12-12T12:15:12.850115 | 2021-07-20T03:16:42 | 2021-07-20T03:16:42 | 124,226,294 | 23 | 13 | MIT | 2022-12-07T23:46:56 | 2018-03-07T11:29:34 | Python | UTF-8 | Python | false | false | 10,166 | py |
# source: http://stackoverflow.com/questions/2758159/how-to-embed-a-python-interpreter-in-a-pyqt-widget
import sys, os, re
import traceback, platform
from PyQt5 import QtCore
from PyQt5 import QtGui
from PyQt5 import QtWidgets
from electrum import util
if platform.system() == 'Windows':
MONOSPACE_FONT = 'Lucida... | [
"sunshine.benjamin.smith@gmail.com"
] | sunshine.benjamin.smith@gmail.com |
72bdd81923ec647703686dbfafe202baf7b5ef88 | db0e8aa3a92a30c9b1cc8da03725e951ff64f3f1 | /lenv/lib/python3.6/site-packages/django/db/backends/oracle/compiler.py | 9aa4acc0fe57684499af5f84260d87d743225f06 | [
"BSD-3-Clause"
] | permissive | shrey-c/DataLeakageDjango | ffeef61caa347520747fc70cf3f7f8b84a9610cf | a827c5a09e5501921f9fb97b656755671238dd63 | refs/heads/master | 2022-11-30T03:30:12.313025 | 2020-07-12T06:47:44 | 2020-07-12T06:47:44 | 242,569,637 | 6 | 1 | BSD-3-Clause | 2022-11-22T05:20:22 | 2020-02-23T18:33:04 | Python | UTF-8 | Python | false | false | 2,246 | py | from django.db.models.sql import compiler
class SQLCompiler(compiler.SQLCompiler):
def as_sql(self, with_limits=True, with_col_aliases=False):
"""
Creates the SQL for this query. Returns the SQL string and list
of parameters. This is overridden from the original Query class
to han... | [
"shreyansh.chheda@gmail.com"
] | shreyansh.chheda@gmail.com |
4c22848bb06b78c312c0e2e564ca37517aea883d | 0a830ace2253924ca216f1bcca5a61327a710d78 | /DiseasePrediction/migrations/0003_auto_20201230_2247.py | 8b5bdd5870605124cd3bcb38a69b266e63da0996 | [] | no_license | AyushSolanki-17/HealthGaurd-Server | 39f0161e54f3a70d2014aafc723a6a52217277d3 | 64661afecbd226c0962ff7181c6038690b2fb0b6 | refs/heads/main | 2023-05-04T10:14:17.024867 | 2021-05-25T13:59:26 | 2021-05-25T13:59:26 | 370,714,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # Generated by Django 3.1.3 on 2020-12-30 17:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('DiseasePrediction', '0002_auto_20201230_2141'),
]
operations = [
migrations.RemoveField(
model_name='testreport',
name='desc... | [
"ayush17solanki@gmail.com"
] | ayush17solanki@gmail.com |
0bb039607a408a124099b2a8c1061279109510fd | 8b9e473478c080765271d7606a93c0c10df93602 | /property_manager/blog/views.py | 6fa0b985298d8272cdf7276ec186d01d976136d6 | [] | no_license | BigRLab/python-web | e5d2eaca08a81c8698783fa0fd58f76c85f4dfe5 | 8d01d2d2e2a64c12df723526226e09714f77fe0a | refs/heads/master | 2020-04-12T22:25:49.018664 | 2018-11-19T07:48:57 | 2018-11-19T07:48:57 | 162,789,406 | 2 | 1 | null | 2018-12-22T07:01:44 | 2018-12-22T07:01:44 | null | UTF-8 | Python | false | false | 23,271 | py | # Create your views here.
# -*- coding: utf-8 -*-
from django.shortcuts import render,render_to_response,loader,redirect
from django.http import HttpResponse, HttpResponseRedirect
from django.template import RequestContext,Context
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.deco... | [
"root@centos-linux.shared"
] | root@centos-linux.shared |
70e36484c35ec2e55406087c861d54bc88665295 | 56c136635f0f22e5933d00c540907bc8570e88af | /Shell/__init__.py | 1c0bd0761ca98eb9469f933131b6ace79b8a1d9a | [
"Apache-2.0"
] | permissive | githubforwuchaofan/SandyP2019 | 8e072c54e27a8392f650362a3b093cc1019e0abf | 10f344a9e1b403096c5fedb93aafdf49cfae6cbe | refs/heads/master | 2020-04-10T20:53:59.399547 | 2018-12-17T08:41:49 | 2018-12-17T08:41:49 | 161,281,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | # coding=utf8
"""
_author: wcf
_date: 2018/12/11-下午6:32
_desc: //ToDo
"""
| [
"wuchaofan@soyoung.com"
] | wuchaofan@soyoung.com |
bc11e7852724f014cbf5e79d7002ac8fc179d61f | ea1d655f539dcf55d8b6cbe0e2178e553e1a6e8b | /oguz/examples/sendhtmlmail.py | e195ca9eecfd5aeaa0ea3093429c6b487675f2cf | [] | no_license | COMU/android | 9dc274f540f960087b794f8d1fd7e05e6f214d24 | c260a2dab62257e7177251f2b2fcf95692b92ffa | refs/heads/master | 2021-01-01T19:45:59.662328 | 2011-10-11T17:22:12 | 2011-10-11T17:22:12 | 3,224,570 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,955 | py | #!/usr/bin/env python
#-*- coding: UTF-8 -*-
def createhtmlmail (html, text, subject, fromEmail):
"""Create a mime-message that will render HTML in popular
MUAs, text in better ones"""
import MimeWriter
import mimetools
import cStringIO
out = cStringIO.StringIO() # output buffer for our messag... | [
"oguzyarimtepe@gmail.com"
] | oguzyarimtepe@gmail.com |
336f92367959770043fa467c424ddefc1eca152b | 1a86d8329ae3b863ca68f0f53f79f87e52ead6f9 | /conf.py | 4c11e7c806f35c50927e784c6d1b57e3bd4fd0a7 | [] | no_license | adamrpah/npcompleteheart | a1d3d1494e7e322ac4515095f9a65fd58dc783b4 | cc9a54956a081e9a6ccad738a4709512ad257348 | refs/heads/master | 2021-01-19T14:34:47.767996 | 2020-09-20T21:56:47 | 2020-09-20T21:56:47 | 34,268,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55,171 | py | # -*- coding: utf-8 -*-
import time
# !! This is the configuration of Nikola. !! #
# !! You should edit it to your liking. !! #
# ! Some settings can be different in different languages.
# ! A comment stating (translatable) is used to denote those.
# ! There are two ways to specify a translatable setting:
# ! (a)... | [
"adamrpah@gmail.com"
] | adamrpah@gmail.com |
bfeffd867ec839b6d4c31f22392bd1fe0e3ba636 | 3b571a72cfd71bd1085b85f25f8613c5bed09883 | /music/pipelines.py | 27c8a98c62ea3d80f92a311fe558893ba49e14fa | [] | no_license | IsaacTay/Music-Crawler-Thing | cd8356ecc5d73f6ca6a7d778700ae8d0b238cc7d | 0ead8d8af6306c16926cfb21188cc34ef7951261 | refs/heads/master | 2020-03-31T22:50:23.131942 | 2018-10-22T04:51:00 | 2018-10-22T04:51:00 | 152,633,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import hashlib
import json
class MusicPipeline(object):
def __init__(self):
self.albums = {}
d... | [
"IsaacTay@programmer.net"
] | IsaacTay@programmer.net |
e953460e42f7c6af06c7b08ae2ad739a665a57a5 | 1721904383464c44eea23455fe0a8f9e78894087 | /copysite/main_app/views.py | 04dafecef156d24a206770858859bb022e8a7680 | [] | no_license | cmz3ro/new_rep | da1952ac84be281cc228be109fe6b8b108eb9296 | 4702f15a3b05b43b9eb1475741d6c313344a11b4 | refs/heads/master | 2020-08-06T04:11:39.496736 | 2019-10-04T14:08:01 | 2019-10-04T14:08:01 | 212,828,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | from django.shortcuts import render
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def main_app1(request):
return render(request, 'index.html')
def net_gh(request):
return render(request, 'new.html')
def treni(request):
return render(request, 'treni.h... | [
"mr.madzero@gmail.com"
] | mr.madzero@gmail.com |
3f3e5da40772c8618d50f6231921c209c3688c0c | 443610f8a32c2e5a9b1022e99830d3ebd451dae2 | /finance/application.py | 35d945bdc12a260ffabb75325be7af4dd968ded7 | [] | no_license | pr0grammers0/Web-sites | 3efac0e7be479aa588910917328592fa83c2be4e | 069e8423795ee31803d189f72632a82c64deb427 | refs/heads/master | 2020-12-23T00:28:46.347117 | 2020-01-29T12:25:55 | 2020-01-29T12:25:55 | 236,976,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,990 | py | import os
from cs50 import SQL
from flask import Flask, flash, jsonify, redirect, render_template, request, session
from flask_session import Session
from tempfile import mkdtemp
from werkzeug.exceptions import default_exceptions, HTTPException, InternalServerError
from werkzeug.security import check_password_hash, ge... | [
"noreply@github.com"
] | pr0grammers0.noreply@github.com |
6d7e01af8ef92a837eda42fa9617c824a1c7d238 | d0eff281dea9c254b05d3858837d2f84b85c4967 | /comp110/Lectures/Lecture17.py | 52de7cb308f835542c40a236d7689db9f46377f7 | [] | no_license | chadsixt/USD | 3f98587bdcc7ac18ccddebc2570623f38deeb1df | e08421988021a2e3efe524bc57e5e20421db8d9e | refs/heads/main | 2023-08-26T15:08:09.059596 | 2021-04-03T20:20:48 | 2021-04-03T20:20:48 | 354,385,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,620 | py | # # animals = open('animals.txt', 'w')
# # animals.
# # done = False
# # while not done:
# # a = input("Enter an animal or STOP to finish:")
# # if a == "STOP":
# # done = True
# # else:
# # animals.write(a + '\n')
# # Append-adds at last
# file1 = open("animals.txt", "a") # append mode
# file1.write("T... | [
"chadsixt@gmail.com"
] | chadsixt@gmail.com |
2f2ee6dfe338018229d53382f6b0a744a6bdc60d | 1257783c225775e4c01754a4f6ded76ca7d0a080 | /bin/easy_install-2.7 | 913c53facb098c3efa74176140b413a9cc15132f | [] | no_license | Cosmin-Parvulescu/BLoto649 | 8da54d1772527ec93c63bd314aa49bfb80bdbacf | 53008dd378d5642f05566aafd1ccd009e83dcc71 | refs/heads/master | 2021-03-12T23:34:54.518719 | 2013-08-16T09:23:01 | 2013-08-16T09:23:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | 7 | #!/home/jabber/Dev/ParseME/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==0.9.7','console_scripts','easy_install-2.7'
__requires__ = 'setuptools==0.9.7'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('setuptools==0.9.7', 'console_scripts', ... | [
"Cosmin.Parvulescu@gmail.com"
] | Cosmin.Parvulescu@gmail.com |
547782c1c7f1062f8ca8d9cf8a7763a41703c0d1 | 5fc72b3a6f3e180867d216335faee14626331bd5 | /custom_dockerfile.py | 1b8c9e93f347d23f6d02bc38f2ac1964cfc3e086 | [] | no_license | pombredanne/dummy-flows | 14eaaba225e5e593fe3b32c2fe9b3c37b7a27329 | a9e56d027f8327ccc698ead6bfec8d80ae925c69 | refs/heads/master | 2020-09-23T00:01:03.901673 | 2019-11-21T15:38:31 | 2019-11-21T15:38:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | from prefect import task, Flow
from prefect.environments.storage import Docker
@task
def add(x, y):
return x + y
with Flow(
"dockerfile-test",
storage=Docker(
prefect_version="fix-custom-dockerfiles", dockerfile="Dockerfiles/Dockerfile"
),
) as flow:
add(1, 2)
flow.deploy(project_name="... | [
"josh@prefect.io"
] | josh@prefect.io |
25a6fdb6017333cd3bf73ebe7ad545cd251d6a9c | 160c7e90ba06ec3b7a2c5fee07536341a15ab2a0 | /command/common.py | 67d45d07b932e4e1ef075ef6427ecdd272ebd656 | [] | no_license | nginer/WenbenSys | 4296844e74a6c361072c1c500a61f1950699306c | 135d4b173c56dac567029e629bc8c3b27864e1a5 | refs/heads/master | 2021-01-10T06:28:13.569627 | 2016-03-22T08:54:35 | 2016-03-22T08:54:35 | 54,448,522 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | __author__ = 'Steven'
import re
def start_end_str_split(start, end, base_str):
if base_str is None:
return None
if start is not None and end is not None:
if re.search(start, base_str) is not None and re.search(end, base_str) is None:
str_list = re.split(start, base_str)
... | [
"1125082967@qq.com"
] | 1125082967@qq.com |
0e06e88b79e2ed5e7dddf73795ab1db8b60f2920 | dc7523a441e649c1f5e669dc3feb802e025c4fc8 | /mysite/settings.py | e3e4e26d401f1e57397bd1210ccb7f0fbc4d9e04 | [] | no_license | amirGG138/djangolessons | 0461e30a38be55bdbe4346bd0a6ad90afe3469a3 | cfc27fa0fb2000b4b5d1424535a53df1d674fa1a | refs/heads/master | 2022-11-13T03:56:43.690937 | 2020-07-06T16:07:08 | 2020-07-06T16:07:08 | 277,575,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,190 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"amir3265hdh@gmail.com"
] | amir3265hdh@gmail.com |
143ff1899e2587c560a214ed859ca4e54878ddad | 7b13e6acb2a1f26936462ed795ee4508b4088042 | /算法题目/算法题目/贪心/LeetCode435不重叠的区间个数.py | cacd337e8dadd87d2f66fcbdb7a499ddc00dc09d | [] | no_license | guojia60180/algorithm | ed2b0fd63108f30cd596390e64ae659666d1c2c6 | ea81ff2722c7c350be5e1f0cd6d4290d366f2988 | refs/heads/master | 2020-04-19T08:25:55.110548 | 2019-05-13T13:29:39 | 2019-05-13T13:29:39 | 168,076,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | #Author guo
# Definition for an interval.
class Interval:
def __init__(self, s=0, e=0):
self.start = s
self.end = e
class Solution:
def eraseOverlapIntervals(self, intervals):
#计算最多组成的不重叠区间个数,区间总数-不重叠的个数
#按区间结尾进行排序,每次选择结尾最小,且和前一个区间不重叠的区间
if not intervals:
... | [
"44565715+guojia60180@users.noreply.github.com"
] | 44565715+guojia60180@users.noreply.github.com |
9ecc63658ca30a6ca035c9ca8b1d9e0404aaeae2 | 59e874a27b798dd1898932c57c1e52331a9e1f46 | /main/line_selector.py | abcf2d7fa931f8998279bd5f1cce976fdf3379d2 | [] | no_license | cm-hirano-shigetoshi/fzfyml3 | d1b8673134abb51b5bed5ac599b02ec6ec8ba9ab | 7757cba7ebe075e06ba9d514d0fa76affab022e2 | refs/heads/master | 2023-04-20T10:14:12.121062 | 2021-02-19T00:16:20 | 2021-02-19T00:16:20 | 312,772,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | #!/usr/bin/env python3
import os
import sys
import argparse
sys.stdout.reconfigure(line_buffering=True)
p = argparse.ArgumentParser()
p.add_argument('target_file')
p.add_argument('-0', '--zero', action='store_true')
p.add_argument('-o', '--fzf_output', action='store_true')
args = p.parse_args()
try:
stdin_lines ... | [
"hirano.shigetoshi@classmethod.jp"
] | hirano.shigetoshi@classmethod.jp |
257edf239d8281df07b1f4dea826287042555ddf | cc90321cc6750ab2ca939545b26ed0c82e7aed48 | /Algorithms/res_manager.py | 751d0a9148844d0e74e24ad60a8f94a2e409cab2 | [] | no_license | MatPont/Deep_Dimensionality_Reduction | da74af98b9635ce528361e35c4694ad0c19759ba | 9e1e04ea6a17f693c318b4d2449158cf6723daea | refs/heads/master | 2020-09-27T15:56:45.844705 | 2020-03-02T18:27:05 | 2020-03-02T18:27:05 | 226,550,521 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import sys
import pandas as pd
from statistics import mean, stdev
df = pd.read_csv(sys.argv[1], header=None)
print(df.shape)
for i in range(df.shape[1]):
print("=====================")
print(mean(df.iloc[:, i]))
print(stdev(df.iloc[:, i]))
| [
"matthieu.pont@hotmail.fr"
] | matthieu.pont@hotmail.fr |
5a46453ae23df0b34ebbd21aea03b23826841bcf | 06a863150a7a3a7bfc0c341b9c3f267727606464 | /packages/Mock/DebugInfo/__init__.py | aff74a93b017d77ea82d359e419b302063003e6e | [
"MIT"
] | permissive | brucelevis/gii | c843dc738a958b4a2ffe42178cff0dd04da44071 | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | refs/heads/master | 2020-10-02T00:41:02.723597 | 2016-04-08T07:44:45 | 2016-04-08T07:44:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17 | py | import DebugInfo
| [
"tommo.zhou@gmail.com"
] | tommo.zhou@gmail.com |
9547290fc4d8dc92507084af21e16b149380bfbb | 023eff43972f8a5635dace98a95fa52a0aef8a80 | /classproject/manage.py | b47b2ddfca9b4e3ce017c1d609bcdce59715e6d1 | [] | no_license | blackjackal982/summer2019_smec_saisirisha | 9b430714c29ca378d9a3d0d378295c9f6900bb8b | ff5413d168b34d45080075e5a158ace1feb79fbc | refs/heads/master | 2020-06-01T22:57:09.847612 | 2019-07-16T05:44:56 | 2019-07-16T05:44:56 | 190,958,117 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
import django
os.environ.setdefault('DJANGO_SETTINGS_MODULE',"classproject.settings")
django.setup()
def main():
try:
from django.core.management import execute_from_command_line
except ImportError... | [
"ssirisha639@gmail.com"
] | ssirisha639@gmail.com |
0fbb7d8e6ebac1dbda9ad2f4bf13286215789b11 | e50fb7ffcd848b018aa875124b500c4240f92701 | /config.py | daf523429d4373133b35d3f19f3c19e3b7af0c60 | [] | no_license | GameBuilders/student-gdc-2014 | 711ec4c43c7c6068f06fc106e268da36ac0a6214 | 8d930d3335eafb078ed9349be27c74a101b19507 | refs/heads/master | 2021-01-23T12:04:43.837237 | 2014-11-23T01:46:25 | 2014-11-23T01:46:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | # A class for storing any configuration values needed by multiple classes.
class Config():
# Width and height of game window (in pixels)
WIDTH = 1024
HEIGHT = 768
# Map scroll speed (px/sec)
SCROLL_SPEED = 200 | [
"norby2@illinois.edu"
] | norby2@illinois.edu |
0c7787c64433d6b03e6b55db2b8c6bae50bc9ef9 | edf6909d67c332bdc62f3e7d26591e736b90358c | /books/urls.py | fb3e5306d51e9ed2acc20647a48f5ac807f888e4 | [] | no_license | Ibrohim9862/books | 843de0e02a6d667abcf804f8e2dce97db0ae1ab1 | 052c94828a0284aaf06570afd3e46a51f6521d64 | refs/heads/master | 2023-08-19T15:58:04.315520 | 2021-10-31T10:03:18 | 2021-10-31T10:03:18 | 423,108,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | from django.urls import path
from .views import(BookListView,AllBooks, BookdetailView, HomePageView, Muqova)
urlpatterns = [
path('',HomePageView.as_view(),name='home'),
path('allbooks/',AllBooks.as_view(),name='allbooks'),
path('muqova/',Muqova.as_view(),name='muqova'),
path('<int:pk>', BookListView.a... | [
"ibrohim9862@gmail.com"
] | ibrohim9862@gmail.com |
1403bd3e81a977b7bcd5b27bae127eba0fab073a | 76afd0db1899350f775e3248d181e7c11e1fd662 | /Jun 2021/src/catboost_model.py | 701b1e10417706b4fd58201dbb462131db85ac3e | [
"MIT"
] | permissive | Bakar31/Kaggle-Tabular-Playground-Series | 7720393a6dec26963f5bae4804c0141a5063cdf0 | bf4e6c38cae4d995411c9703b441fc8bac8044ed | refs/heads/master | 2023-08-11T03:04:45.779587 | 2021-09-22T19:35:45 | 2021-09-22T19:35:45 | 407,869,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jun 27 16:11:24 2021
@author: Abu Bakar
"""
# public Score: 1.75047
import pickle
import pandas as pd
from sklearn.metrics import log_loss
from catboost import CatBoostClassifier
from data_preprocessing import x_train, x_test, y_train, y_test
from input import test, sample_s... | [
"abubakar1808031@gmail.com"
] | abubakar1808031@gmail.com |
194786fcd5a14548ba9caecb895d18781f1722c7 | 23b34a9a25755648d637f8f88bc2e19ec8569d7d | /pokes/migrations/0008_auto_20210130_1614.py | da301a15fa800a0d30e316eb10682b276cb69e9d | [] | no_license | Mateusallz1/ProjetoFinalPI2 | 8e31bd027d0b67b624c4745c645f85ffe162be14 | 25fb5ace20467cce461716a206409c85fdfc7f97 | refs/heads/master | 2023-02-23T15:53:26.921719 | 2021-02-02T21:25:31 | 2021-02-02T21:25:31 | 334,478,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | # Generated by Django 3.0 on 2021-01-30 19:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('pokes', '0007_auto_2021013... | [
"trafalgarmateus@gmail.com"
] | trafalgarmateus@gmail.com |
9978e5150fc697dcbc874158d958d0f62d313ef9 | 1d7256a89de883ddd45a7731d309aae404491035 | /information_boards/old_codes/a_overall_analysis/a1_intermediate/a1_i1_trip_modes.py | f3c8c96e607c5c237be7598004686027f76594e0 | [] | no_license | M20190649/taxi_projects | a559329366fe2357b826909543a54b12b6d98301 | b910e2308d4725e88fb00714e489b1291cfeb215 | refs/heads/master | 2021-06-17T15:14:55.849298 | 2017-06-01T10:17:23 | 2017-06-01T10:17:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,197 | py | #
import csv
import datetime
from information_boards import AM2, AM5
from information_boards import DIn_PIn, DIn_POut, DOut_PIn, DOut_POut
from information_boards import IN, OUT
from information_boards import ap_poly, ns_poly
from information_boards import error_hours
from information_boards import taxi_home
from info... | [
"jerryhan88@gmail.com"
] | jerryhan88@gmail.com |
b1f17c0fb429a5cd9197e863ed673ee111735cd5 | 027053eafb8930d58df937d93016feb80d7eb7b1 | /taf/testlib/linux/etcd_helper.py | aab25ad4259ae7e6f1a3e875fd8afa28f3a47d4a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | mskrocki/taf | 6b6131c770b1b48976931f093fad37a55a2f8dd3 | c17986c99102c252fbef1e33ea441aedd7320130 | refs/heads/master | 2021-01-11T23:26:50.007851 | 2017-03-23T20:15:42 | 2017-03-23T20:34:51 | 78,583,195 | 0 | 0 | null | 2017-01-10T23:12:40 | 2017-01-10T23:12:40 | null | UTF-8 | Python | false | false | 3,597 | py | """
@copyright Copyright (c) 2016 - 2017, Intel Corporation.
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 agr... | [
"ross.b.brattain@intel.com"
] | ross.b.brattain@intel.com |
0b3a8a35fce42091a9057025ff22471931c9812f | 1e619d03b1a237dce91bc6dff7df5ec4384c6d01 | /BTRE/contacts/models.py | 9ea452d7e6f6f556020f6d12697dafae5c893831 | [] | no_license | afsana1210/BT_RealState_Django_Project | 10405df7bfbcea3d840adfbcd56ce78d48ba20bd | 787ad0a0e84d45d5b2bf6a837c6ed406677a81d8 | refs/heads/master | 2023-01-06T04:24:47.061839 | 2020-11-02T16:28:55 | 2020-11-02T16:28:55 | 298,036,312 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | from django.db import models
from datetime import datetime
# Create your models here.
class Contact(models.Model):
listing=models.CharField(max_length=200)
listing_id=models.IntegerField()
name=models.CharField(max_length=200)
email=models.CharField(max_length=100)
phone=models.CharField(max_lengt... | [
"afsanaansari1210@gmail.com"
] | afsanaansari1210@gmail.com |
b86457b5bb6a53902a3c11b837c941d8a9d25d12 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/INTERVIEW-PREP-COMPLETE/notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/_Another-One/File_Transfer_Protocol/ftp_send_receive.py | 8fe11e88cab788737b6eb99068d2b507c94cdb2e | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 1,179 | py | """
File transfer protocol used to send and receive files using FTP server.
Use credentials to provide access to the FTP client
Note: Do not use root username & password for security reasons
Create a seperate user and provide access to a home directory of the user
Use login id and password of the user created... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
f2409fcabd671cdb993f85ac86c011d4f843389b | fe75ee7acae299d23825f83abf7492b3b8b9518c | /171_car_trialling/SConstruct | 8a54ec90720fb9e63905ccf94452c4d36b67d063 | [] | no_license | doctormanhattan/uva-cpp | e9aea4aa55b063981cb4743042e4b7c093962034 | 17861799ee3340b18863ef6303406a7c60851813 | refs/heads/master | 2021-01-22T21:28:11.018228 | 2013-06-06T10:39:21 | 2013-06-06T10:39:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | Program('171_car_trialling.bin', Glob('*.cpp'))
| [
"drmanhattan@gmx.us"
] | drmanhattan@gmx.us | |
6fec9f33fd7ed9421dc0dcecc2103c6060ff66dd | 00d930ffaa543604f2bcd6cabbdedabeeaf09215 | /riboSeed/riboTry.py | d0aabe89f995e5ef0a14c9d4dd6bd2967272e25b | [
"MIT"
] | permissive | nickp60/riboSeed | ebf2817151310bf55e70946403e4248ad4b0232f | 636eaf78a1bbe4517c43ddb120e5ca5bb2b97212 | refs/heads/master | 2021-05-01T18:38:47.939543 | 2020-06-30T17:37:34 | 2020-06-30T17:37:34 | 68,617,544 | 9 | 3 | null | 2017-09-13T16:09:15 | 2016-09-19T15:10:06 | HTML | UTF-8 | Python | false | false | 6,211 | py | #!/usr/bin/env python3
#-*- coding: utf-8 -*-
# Copyright 2017, National University of Ireland and The James Hutton Insitute
# Author: Nicholas Waters
#
# This code is part of the riboSeed package, and is governed by its licence.
# Please see the LICENSE file that should have been included as part of
# this package.
i... | [
"nickp60@gmail.com"
] | nickp60@gmail.com |
dcd8d140d3cdc66d0d6c05ac8c4de0b0b4d7dc71 | 030a3f09173ac54645bd2e22e8966539bb9baa25 | /dserv1.py | 117b74f647bf98c627e6ce60017e30ccde37fc95 | [] | no_license | mstram/SATK-redis-nodeJS-DasdServer | a1c1d203e0773035a9307802a1c39798e7754569 | c0466b53483991822156229f921b69b1d18a49f2 | refs/heads/master | 2020-05-15T20:06:16.010358 | 2014-08-02T12:22:58 | 2014-08-02T12:22:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,529 | py | #!/home/action/python3/bin/python
#http://www.openlogic.com/wazi/bid/315666/Developing-a-pubsub-application-in-Redis
import redis
import sys
import time
import ckdutil
from ckdutil import *
r = redis.Redis("localhost")
p = r.pubsub()
#p.subscribe(sys.argv[1])
key = "herc"
p.subscribe("herc")
def doRead():
prin... | [
"mikestramba@gmail.com"
] | mikestramba@gmail.com |
3141406ac3e7f9f622238235b76ca965bee2f067 | a0c962e7cf0b58ebf17ef5d2c1e1b3a7ecd7c246 | /SMUnews-1.py | 58bb5880d73e7bada59ff138c9dc4a58c10fc13b | [] | no_license | Crew-Spider/EIE152_XCX | 56214194c5a079149736db29566fac2ce8f31959 | 5d5c97212f8a4380cd5f1a453128ef090e9663eb | refs/heads/master | 2020-03-16T08:30:07.603674 | 2018-06-03T13:22:03 | 2018-06-03T13:22:03 | 132,597,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | #coding:utf-8
#引入相关模块
import requests
from bs4 import BeautifulSoup
url = "http://news.baidu.com/ns?cl=2&rn=20&tn=news&word=%E4%B8%8A%E6%B5%B7%E6%B5%B7%E4%BA%8B%E5%A4%A7%E5%AD%A6"
#请求搜索上海海事大学关键字新闻网页的URL,获取其text文本
response = requests.get(url) #对获取到的文本进行解析
html = response.text
soup=BeautifulSoup(html,features='lxml')... | [
"chunxiao199732@163.com"
] | chunxiao199732@163.com |
bbf12cd7e02681f5ab47f090fde7f18e4214ec74 | a106a279fd189102d21cab22c9169e83e3503860 | /geometric_progression.py | 3f239e1f5aba88c58c0366bcbc095b67b71ddb9f | [] | no_license | kofi-py/kingkofi | b0db85c5434269f5d024d3805a12e771686521e7 | f015e88acb274e3aca7bc453d0159fbec2823852 | refs/heads/main | 2023-06-15T23:40:16.458043 | 2021-07-02T22:48:32 | 2021-07-02T22:48:32 | 382,479,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | def printGP(a, r, n):
for i in range(0, n):
curr_term = a * pow(r, i)
print(curr_term, end=" ")
# a is starting number
# r is common ratio
# n is number of terms | [
"noreply@github.com"
] | kofi-py.noreply@github.com |
3a444cb89197836f0cec8f3682c62dde00a19f03 | 9188e6d36a850c1f890ffaebf4c18a74f53c0ea3 | /com/a/example42/variable_scope.py | 0b8f515afa2072c2a6470adf84bdf75becff8ba6 | [] | no_license | IamA1536/Execrise | e3f1a1037f97fdf7a43e04f2df2347ad15c433b9 | 325e8c5c2d6045e1b33d0b78ba38791e6747c875 | refs/heads/master | 2020-03-31T02:17:35.414037 | 2019-02-12T05:59:24 | 2019-02-12T05:59:24 | 151,816,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | i = 0
n = 0
def dummy():
i = 0
print(i)
i += 1
def dummy2():
global n
print(n)
n += 1
if __name__ == "__main__":
print('函数内部的同名变量')
for j in range(20):
print(i)
dummy()
i += 1
print('global声明同名变量')
for k in range(20):
print(n)
dummy2(... | [
"1694522669@QQ.COM"
] | 1694522669@QQ.COM |
adbf7405edd5903ea18f7cefc84f692c4853ce30 | 571d36f865b545c0a72134e586fbcddd6953a68b | /eng/save.py | 68401ec448371c02f32fe108147957f27298d016 | [] | no_license | andrew-turner/Ditto | a5a79faaf31cc44d08ac5f70fa2ac51e51d1b60f | 72841fc503c716ac3b524e42f2311cbd9d18a092 | refs/heads/master | 2020-12-24T14:19:01.164846 | 2015-05-20T08:42:26 | 2015-05-20T08:42:26 | 35,935,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | import pickle
from . import script_engine
def readSave(fn):
#open the file for reading, load the save game, and close
try:
with open(fn, "rb") as f:
return pickle.load(f)
except IOError:
raise error.DittoIOException("Save file", fn)
def writeSave(savegame):
#open the file for writing... | [
"andrew.turner@merton.ox.ac.uk"
] | andrew.turner@merton.ox.ac.uk |
f49f70846efddaa2c9e266139901a8b7d3fae374 | fab215713c1b72974a0dc7db73a20e4b5abefe4a | /简明python教程/复习/类/objvar.py | aaaefaa7be1a0fb5cc303614daee120b8bfa0ce1 | [] | no_license | cwdgit/learn-python | e6774dcea506cfa461bfccc001205bf75a1d126b | c5ba97a917bd2b8d7b767ce704ca5ff441b9dfee | refs/heads/master | 2020-03-24T16:41:47.837953 | 2018-08-23T03:13:04 | 2018-08-23T03:13:04 | 142,832,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | #!/usr/bin/python
class person:
'''represents a person. '''
population = 0
def __init__(self,name):
self.name=name
print '(initializing %s)' %self.name
person.population += 1
def __del__(self):
'''I am dying.'''
print '%s says bye.' %self.name
person.population -= ... | [
"you@example.com"
] | you@example.com |
1bfd24bb27e65b8ae3302cebdf2d66a5b93239ce | d70256c671e567b916ca9467927856539205a044 | /generator/unity_tolua_wrapper_parser_ldt.py | 3f5a1abcdb651a085c6afd7f141ad16416bc8ebf | [] | no_license | kekexinshuai/tolua-ldtdoc | aa7a47ffc3a6fd4cc366d3d92ada09042252a108 | 0b9dc4b12b893a61c4768b69f68f95b5a804e6d2 | refs/heads/master | 2021-01-20T01:11:22.712320 | 2017-04-24T11:27:23 | 2017-04-24T11:27:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,553 | py | # -*- coding: utf-8 -*-
import re
import os
# i gave up (T_T)
override = {
"System.Array": {
"ToTable": {
"return_type": "#list<System_Object#Object>"
}
}
}
# this parser can't handle these files yet
ignore_files = [
"LuaInterface_LuaOutWrap.cs",
"System_Collections_Generic_DictionaryWrap.... | [
"ps5mhg@gmail.com"
] | ps5mhg@gmail.com |
7466ce6e92d074ebe5cdcdffa64afe71726173e0 | 83a44062b3f469a5c58813e40dd0ba9a71934ec3 | /yugteatr/wsgi.py | 3571473408d31858930c214941aab58794614330 | [] | no_license | aliismayilov/yugteatr | 5c41d58195539f71ba8c3e782f1053f8e261ad16 | ea6107f0505e55f2155e646ea2cdbfa80f23a586 | refs/heads/master | 2016-09-09T20:33:37.103846 | 2013-05-11T16:11:21 | 2013-05-11T16:11:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | """
WSGI config for yugteatr project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION``... | [
"ali@ismailov.info"
] | ali@ismailov.info |
50b2f16b5a10bdc41ef814a5790c032d227a5dca | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17s_1_02/vrf/address_family/ipv6/unicast/ipv6/route/static_route_oif/route_attributes/__init__.py | 4b26a6d7ec10f8fd1ad380e2be4e9d37e1abf5bb | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,960 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
c8f037d1c232478ee45c226ab4e1ffd739091272 | 3d0351d1834c3e4dfea6c1b01b0dd6269110983d | /localtest/download/filter_docu.py | edd535c4a982cd771aed8af50bc80f9d83d8f4ac | [] | no_license | SUNCHAO1212/announcement-pipeline | 13f0ee0b1d39458b4d8a464265a0d81a4c3f7091 | 096d05e5c8de476ae857a5250bd221afe6c0910a | refs/heads/master | 2020-03-14T01:54:06.058605 | 2018-06-22T09:09:57 | 2018-06-22T09:09:57 | 131,387,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # -*- coding:UTF-8 -*-
#!/usr/bin/env python3
from pymongo import MongoClient
client = MongoClient(host='192.168.1.251', port=27017)
db = client.SecurityAnnouncement
coll_from = db.pledge
coll_to = db.pledge_filtered
for i, document in enumerate(coll_from.find({'crawOpt.secName':'信邦制药', 'title':{'$regex':'^[^解]*$'}... | [
"qjzhu@quant-chi.com"
] | qjzhu@quant-chi.com |
88ca5a1c8fe4b91fae725e5c1ec75ce17b634be3 | 69a84314e21db2349fb9267dc52baa5fe49bf5a3 | /model/User.py | 60bd7182eee61e9277523fc663bd23b3afff1dfa | [] | no_license | hakhyunkim123/fmp-serving | 2feb0c542419af23954083e7f46d8f77568d8e3b | 4d1aac723e291a19f57a1c75246e7a2ffd4e6a04 | refs/heads/main | 2023-01-23T09:14:10.364903 | 2020-11-28T05:47:22 | 2020-11-28T05:47:22 | 312,974,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | class User:
def __init__(self, employ_num=None, name=None, email=None, position=None,
comp_division=None, comp_division_detail=None, pwd=None, user_dict=None):
if user_dict is None:
self.employ_num = employ_num
self.name = name
self.email = email
... | [
"hyun24436@gmail.com"
] | hyun24436@gmail.com |
2e5e09553134fb539521dd55ed4e42edcf62b99a | 93badab6ebd099f140e545f63814df18b93ab611 | /painter/fund_trade_history_graph.py | 27304f0efb8b392e2ec0fc38620894f51873a9e3 | [] | no_license | rovinyu/fund_hold_assist | 002e95758afdf78516439bfeb27619a862d6435f | e361ffe5e744fbe9fcfdaa0eec8525877b01f571 | refs/heads/master | 2022-12-10T18:19:10.449346 | 2020-09-01T12:01:58 | 2020-09-01T12:01:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,093 | py | # Python 3
# -*- coding:utf-8 -*-
from utils import *
from user import *
from painter import FundHistoryGraph
from decimal import Decimal
import matplotlib.pyplot as plt
class FundTradeHistoryGraph(FundHistoryGraph):
"""draw fund trade history graph"""
def __init__(self, sqldb, userfund, allTrade = False):
... | [
"zhcbfly@qq.com"
] | zhcbfly@qq.com |
4b1c11c9440ab0a42b1e77da03ceb072935e5c9b | db75e02b0aadb81c4d55369018dcf50bbe0dfb56 | /run_sourceanalyzer.py | 4c27e96c8a38885b1d302cce1e7dd25a94856603 | [] | no_license | relativeabsolute/rowanducks | 10c4a7c4df38f16ec53251b685dea1bb9ced6159 | 4a956dca0df0158e246d34e0c0ce3eb267569144 | refs/heads/dev | 2021-01-19T09:25:20.592887 | 2017-05-08T17:35:15 | 2017-05-08T17:35:15 | 82,107,924 | 4 | 1 | null | 2017-05-08T17:35:15 | 2017-02-15T21:19:50 | Python | UTF-8 | Python | false | false | 108 | py | import sys
from src import SourceAnalyzer
if __name__ == "__main__":
SourceAnalyzer.main(sys.argv[1:])
| [
"jburke4126@gmail.com"
] | jburke4126@gmail.com |
53ba31c2f17ff6fb8924df64bb4c7706f0094743 | 48551bc4557e4488ec0d8bbb1fed49830a7a7d55 | /src/profiles/admin.py | 1a67111d97c3af46198808e836e5b2a6340da462 | [] | no_license | ishani33/ecommerce-website-django | b68554600a7746f8d84b796068c5050d55023b17 | e19f7311a69c73d87df5612572351f56bb498cab | refs/heads/master | 2020-05-17T08:33:49.005926 | 2019-04-26T12:09:39 | 2019-04-26T12:09:39 | 183,605,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | from django.contrib import admin
from .models import profile
# Register your models here.
class profileAdmin(admin.ModelAdmin):
class Meta:
model = profile
admin.site.register(profile,profileAdmin)
| [
"ishanichauhan781@gmail.com"
] | ishanichauhan781@gmail.com |
dbae681e911dd6388492d15db5ab5ee37e24fc02 | 8a240c8d3c057f506447fe18407263d110f4d6c9 | /jobplus/handlers/front.py | 30ca83bedd759bce106e7bf170aa8055056dd4d7 | [] | no_license | starhappy/jobplus | e7bc9ad4be14fe4ea8d6e541e9361c6c9802ef83 | b6d7fa6bf09963bd57b71d5fe01c4be13b86a3c9 | refs/heads/master | 2022-12-12T17:29:52.286079 | 2018-12-03T07:49:16 | 2018-12-03T07:49:16 | 159,120,063 | 0 | 1 | null | 2022-12-07T23:53:03 | 2018-11-26T06:15:30 | Python | UTF-8 | Python | false | false | 2,299 | py | from flask import Blueprint, render_template, redirect, url_for, flash
from jobplus.models import User, db, Job
from jobplus.forms import RegisterForm, LoginForm
from flask_login import login_user, logout_user, login_required
front = Blueprint('front', __name__)
@front.route('/')
def index():
newest_jobs = Job.q... | [
"konglingxing@126.com"
] | konglingxing@126.com |
93adae40653efd455c7f5cc03cb0f03b3be76427 | c42d80ed2e6d313fd4d340dfa50881447b824968 | /PLOTS/PlotJKblocks.py | ad50dbedfb26e4f39d02b9458a636c2970339d05 | [] | no_license | mbaityje/STRUCTURAL-GLASS | 3adcd324f5c13411ba9d6ed48be44655383bb516 | 6d8dc9e6f82618a65fc09f82901a25533d5afb59 | refs/heads/master | 2021-06-24T22:50:19.024502 | 2019-04-25T18:09:54 | 2019-04-25T18:09:54 | 111,572,772 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | #!/usr/bin/env python
import sys
import numpy as np
import argparse
from matplotlib import pyplot as plt
parser = argparse.ArgumentParser(prog='python '+sys.argv[0]+' [--hoomd-flags] --user=" HERE YOU PUT THE FOLLOWING ARGUMENTS"', add_help=True)
# parser.add_argument('-f','--filename', default="", help='name of th... | [
"marcoan266bb@hotmail.com"
] | marcoan266bb@hotmail.com |
e5f249cde5c028d3de1713180f7dd53c8868c394 | 75c3a5e1ec4b2e5b4c2fc876b1515e15d077e20d | /Preprocessing part/10.22.py | a057b2c2aac638ff7efdf39c238fde7573788e35 | [] | no_license | William0111/Speech-separation | 1a2b2c2c0115ee7e054999e1c79dadaafb710413 | c60b37fd978624ac13a7ec55a303644d559e51ca | refs/heads/master | 2020-05-01T08:51:14.331098 | 2019-05-10T20:39:32 | 2019-05-10T20:39:32 | 177,387,174 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,514 | py |
#学习目的:review
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
x_data = np.random.rand(100).astype(np.float32)
y_data = x_data*0.2 + 0.7
# plt.plot(x_data, y_data)
# plt.show()
#Structure
Weights = tf.Variable(tf.random_uniform([1],-1,1)) #维度为1,【-1,1】随机均匀分布
Biases = tf.Variable(tf.ze... | [
"44120449+William0111@users.noreply.github.com"
] | 44120449+William0111@users.noreply.github.com |
a43541954127dd7b9cdee21d29cdddb1e9efb836 | 4ab4fdb108d6bdf3c6dfff8a07902b4a6d0be2cf | /fb_terminal.py | 643e5158df8ba285218397b4719720fd71039484 | [] | no_license | karthikshathiri/scripts | 6f5fc195f89464ad5555ef9f9e7d6125a70f8f1e | 3a01742c1c52549c219d3cdfc0552acc6855ec6e | refs/heads/master | 2021-01-22T06:18:32.428545 | 2017-05-26T18:03:14 | 2017-05-26T18:03:14 | 92,535,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,390 | py | import os
import sys
import time
import zipfile
import re
from urllib.request import urlretrieve
from selenium import webdriver
from getpass import getpass
try:
from configparser import SafeConfigParser
except ImportError:
from ConfigParser import SafeConfigParser
chrome_options = webdriver.ChromeOptions()
prefs = ... | [
"noreply@github.com"
] | karthikshathiri.noreply@github.com |
70ada97be94c89d47931fdfd5e67ac45db59b12e | 5356d7171ca957ed89b0361df601c5bf2be60de7 | /djangoProject/profile_user/apps.py | 58dc283a7be33f54a955016d890f0d7d5c4b6131 | [] | no_license | tawsifshahriar7/imdb | cfb29233e12c0fedce3064b4563cdfc29d822e12 | 37775606b061b9c959e46e5e5aec85b91c9175ab | refs/heads/master | 2023-02-18T03:26:29.872042 | 2020-12-16T16:00:58 | 2020-12-16T16:00:58 | 303,738,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from django.apps import AppConfig
class ProfileUserConfig(AppConfig):
name = 'djangoProject.profile_user'
| [
"tawsifshahriar7@gmail.com"
] | tawsifshahriar7@gmail.com |
02551032c65dbbbd8d416c3d3717cc9d1146ec48 | 2b1b9612882a8a8d180522f0d51f956296e5f594 | /youTube/myproject/settings.py | b2a10ad3eb618af2a04f841a2f3642823cff5926 | [] | no_license | sebastianmaxwell1/youtube_clone_django | 7a9379e30117ad472818fd1b585025b660ebc6cc | c4a0b51043e9e240978a5f8e51f962d9fc5e7082 | refs/heads/main | 2023-04-10T11:43:28.703062 | 2021-04-27T14:20:47 | 2021-04-27T14:20:47 | 361,862,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,282 | py | """
Django settings for myproject project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathl... | [
"79651450+RobinHeath-Albuquerque@users.noreply.github.com"
] | 79651450+RobinHeath-Albuquerque@users.noreply.github.com |
9be0008a4ca37a11244fcdf7c68e919c3e8e3528 | 4b99bc230f8c88e9116cd76a76bc636fc550c574 | /Projet_Gestion/EMA/admin.py | c2faadaf00725c9b9197cf663da1c3ac8a637eba | [] | no_license | rigosias/Gestion-Administration-Ecole---Django | afe6bb12e2cc1bfd9d287e91d87ecd3a764e140c | 3bcac27fe3b42f94cd519f3b0504b84d92c3b43c | refs/heads/master | 2021-05-29T03:01:08.082144 | 2015-04-19T19:56:14 | 2015-04-19T19:56:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from django.contrib import admin
from .models import Eleve,Matiere,Notes
# Register your models here.
admin.site.register(Eleve)
admin.site.register(Matiere)
admin.site.register(Notes)
| [
"osiasrigobert@gmail.com"
] | osiasrigobert@gmail.com |
d664f3e84f89caa714f05a270ee948e90844669d | 364d97a3888062711b47cd0ba883c4e1ba76736f | /utils/time_helpers.py | a7e03439d07bb7034f477ac64dc1358fe95e2d24 | [] | no_license | Ruii-Wang/my-twitter | 75f608e501584b6fc031b5a7d48e80a108ca28bb | e88aaae243d5e7311e0eb6f442c46591bc0cb66f | refs/heads/main | 2023-07-09T20:32:58.941923 | 2021-08-12T03:24:06 | 2021-08-12T03:24:06 | 359,600,436 | 0 | 0 | null | 2021-08-12T03:23:59 | 2021-04-19T21:15:09 | Python | UTF-8 | Python | false | false | 128 | py | from datetime import datetime
# python timezone
import pytz
def utc_now():
return datetime.now().replace(tzinfo=pytz.utc) | [
"ruiwang.bh@hotmail.com"
] | ruiwang.bh@hotmail.com |
e9627b7298229c5fb631207ec0b69ac4549bc2ef | 00c7658ee35ffc9ab7cba7bf2a7c33e0c9ca16e6 | /functions.py | 44d2a22126741cf1ac618b3a8fbcf9de3ab9c902 | [] | no_license | klemen-nedelko/Quiz-App | fa9f139c07298852048477c12e5c6d09c9d62f14 | 90676707f36de8438fdf01e270b85c10449b3eb7 | refs/heads/main | 2023-06-13T00:45:42.921707 | 2021-07-08T11:33:58 | 2021-07-08T11:33:58 | 384,088,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,348 | py | from PyQt5.QtWidgets import QGridLayout, QLabel, QPushButton
from PyQt5.QtGui import QPixmap, QCursor
from PyQt5 import QtCore
from urllib.request import urlopen
import json
import pandas as pd
import random
#https://opentdb.com/api.php?amount=50&category=9&difficulty=medium&type=multiple
with urlopen("https://opentdb... | [
"56438480+symtc@users.noreply.github.com"
] | 56438480+symtc@users.noreply.github.com |
a6a256d2eaf295080f2c0d4a2367b72c1d59aed7 | ba3531caeb4822ec3bd82a60ea13c00a8179f26c | /basis/quick_sort.py | 96e469b96f05ba1d2687ffde73090b6e5af44d98 | [] | no_license | XuHaoIgeneral/PyTest | d52cf723f0685cc6db405169f7ade6e915de6e59 | ae09f3890798cb91b1daeaef1151728ff5406919 | refs/heads/master | 2020-03-25T03:44:53.389089 | 2018-09-28T08:33:57 | 2018-09-28T08:33:57 | 143,358,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | def quick_sort(list, left, right):
if left >= right:
return
low = left
hight = right
key = list[low]
while right > left:
while right > left and list[right] > key:
right = right - 1
list[left] = list[right]
while right > left and list[left] <= key... | [
"noreply@github.com"
] | XuHaoIgeneral.noreply@github.com |
6e1e36143324892f629b7f48298f2c2bdf067b6e | a83aaa311792fe8ff03726758afe211606feb15c | /spatial_experiment/spatial_run.py | 84a7cbbb5d73aa9befeb02ad8ab0816831448901 | [
"MIT"
] | permissive | muskanmahajan37/jiant | 10cf0850604cfd8d5bc3b251a1bb1906b234c418 | e76f58e274e0e554ce43b9563085436861e8f3a6 | refs/heads/master | 2023-05-20T23:37:01.065016 | 2021-06-10T19:08:43 | 2021-06-10T19:08:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | import jiant.proj.main.runscript as main_runscript
run_args = main_runscript.RunConfiguration(
jiant_task_container_config_path="./spatial_experiment/run_configs/spatial_run_config.json",
output_dir="./spatial_experiment/runs/spatial",
hf_pretrained_model_name_or_path="bert-base-uncased",
model_path=".... | [
"lukeholman@my.unt.edu"
] | lukeholman@my.unt.edu |
e99ce3d607576d6aafdc6083c2a214c496b8cf41 | 8496679260155744119ebcd1834a7c7017fc1281 | /app/seeds/users.py | 72de125e9d0a51e171cde28eddc748bc2f49ad37 | [] | no_license | laurengus17/HomeGrown | b696af8bf690d61fdc4c85e44c774c367e50f9fe | 642c0046040b86554cea20b7c6e213440c4e5836 | refs/heads/main | 2023-06-29T19:47:37.353781 | 2021-08-04T19:09:10 | 2021-08-04T19:09:10 | 381,188,381 | 11 | 0 | null | 2021-08-04T19:09:11 | 2021-06-28T23:48:56 | Python | UTF-8 | Python | false | false | 3,126 | py | from app.models import db, User
# Adds a demo user, you can add other users here if you want
def seed_users():
demo = User(
first_name='Demo', last_name='McDemo', username='Demo', email='demoMcdemo@demo.io',
password='password', imgURL='https://1.bp.blogspot.com/-gGzDUMqfv4o/WN7wk3zHm3I/AAAAAAAAl... | [
"lauren.gustafson17@gmail.com"
] | lauren.gustafson17@gmail.com |
d52d90deed52cf2c8c2a57e3e6dd3c538eef5629 | 0af238daa690fcbb075fd75a5742ff880d7262ef | /OptionPricingPython/OptionPricingPython/BlackScholesPricing.py | 5f1b4a6ed2a69d4293b470ce190bf5e282fecc2b | [] | no_license | BRutan/OptionPricingPython | aabc34b00279de76829720df094f4f103c826ee0 | 4e14dc91e76b1e43bfd9eeb60e67f3df1011a2ac | refs/heads/master | 2020-09-22T20:21:15.902209 | 2019-12-11T19:27:22 | 2019-12-11T19:27:22 | 225,310,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,786 | py | #############################################
## BlackScholesPricing.py
#############################################
## Description:
## * Computes the price of a European stock option
## using Black-Scholes formula.
import itertools
import math as m
import numpy
from scipy.stats import norm
import matplotlib.pyplot a... | [
"rutan.benjamin@gmail.com"
] | rutan.benjamin@gmail.com |
3ba52608ffeb61c615f02a14ad5a8f39235e6c6f | cc052460adb5bc1617cc2dba65427af665c9e7da | /accounts/migrations/0002_book_category.py | 2452e6dcccfc00b20924747c11cbe76417688cba | [] | no_license | Howl31/student-API-v1 | 7dc260db225e65b852b09694b1c97288180318ba | 94b929537e8dc230bff7156d5f66d2d55050aef7 | refs/heads/master | 2023-06-02T08:26:22.622255 | 2021-06-18T09:30:52 | 2021-06-18T09:30:52 | 377,963,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | # Generated by Django 3.2.4 on 2021-06-17 09:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Category',
... | [
"armakshay31@gmail.com"
] | armakshay31@gmail.com |
27e78548c52dd44b6f02bdcd3fc54c0d153d669d | 3154395d10ff2f8d85d90758f2fa6d2dc9addfd0 | /autotest/test_gwt_mst05.py | b21f8d0fbae93fe52d440bc9da5fdc9539a00be8 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | jtwhite79/modflow6 | 40507e5ce5a08f56e8a8029094b4cf147048e5c0 | 95ff014a1bddcee2d5d35859350571ba4fd9fb2f | refs/heads/master | 2023-05-27T11:29:53.421941 | 2021-02-18T18:00:23 | 2021-02-18T18:00:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,633 | py | """
MODFLOW 6 Autotest
Test isotherms.
"""
import os
import sys
import numpy as np
try:
import flopy
except:
msg = 'Error. FloPy package is not available.\n'
msg += 'Try installing using the following command:\n'
msg += ' pip install flopy'
raise Exception(msg)
from framework import testing_fram... | [
"noreply@github.com"
] | jtwhite79.noreply@github.com |
998a6446831189fb3a5e8df5deac0510483c271d | 60458d3b777475f0e23b03a09e387966d0a1bced | /shop/migrations/0002_auto_20200723_0315.py | be5ec0f2094f4dd4e1f31055f93e48f2cd059a38 | [] | no_license | NouKD/creto-master | 9dcf1f46a386cd9c8f2c8eb8b8a4d1970271f66f | c29a9b7a1ecf6b268a5a352d2cbaca7a0ce8082b | refs/heads/master | 2022-11-19T17:07:32.463466 | 2020-07-23T06:53:39 | 2020-07-23T06:53:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | # Generated by Django 2.2.10 on 2020-07-23 03:15
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('shop', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='produit',
old_name='price',
new_na... | [
"franck@gmail.com"
] | franck@gmail.com |
5b16dbbaf44a3db17ccb3f121b89b3260ba19ecb | 6ef006114c16b8ad4fa288a26cd1a15bd95d6b56 | /resources/post.py | 61c51acb1b7fff06dc4b0154328ed790320ae69c | [] | no_license | a-soliman/flask-blog-api | 8cac592da1b14703a6b41a8a9bad6908afe58a66 | c6914cdea4da91db9d23711b7b8af65c4f985cf1 | refs/heads/master | 2020-03-19T10:45:58.995325 | 2018-06-07T16:44:05 | 2018-06-07T16:44:05 | 136,399,203 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,717 | py | from flask_restful import Resource, reqparse
from flask_jwt import JWT, jwt_required, current_identity
from models.post import PostModel
class Post(Resource):
parser = reqparse.RequestParser()
parser.add_argument('title', type=str, required=True, help='title is required.')
parser.add_argument('body', ty... | [
"ahmed.soliman@programmer.net"
] | ahmed.soliman@programmer.net |
4c80b9a24642a4f8b3b47861780be734a9a24b03 | 4d8c6d4831d8958b7836c99c877d89a257691c5f | /app/schemas.py | 1d7bba7c0f647c6683c8c32278b92d06c84332c6 | [] | no_license | vutran1710/FlaskFun | 4dac0e8ca5f14dae01746c33f4f480337db6aa98 | f5bb1e7e8b9e234045bea66d800c0c289f058146 | refs/heads/master | 2023-05-10T12:07:50.607919 | 2023-02-26T07:00:45 | 2023-02-26T07:00:45 | 213,142,610 | 4 | 1 | null | 2023-05-02T18:35:46 | 2019-10-06T09:42:36 | Python | UTF-8 | Python | false | false | 1,190 | py | user_schema = {
'email': {
'type': 'string',
'required': True,
'empty': False,
'maxlength': 128,
'valid_email': True
},
'name': {
'type': 'string',
'required': True,
'empty': False,
'maxlength': 128
},
... | [
"me@vutr.io"
] | me@vutr.io |
b941539adb3781f158456ada9b43fb10c2ed3e80 | 8ebc8e9905687a88ae519e768d9ecb84a9bcc1a2 | /libro/problemas_resueltos/capitulo2/problema2_8.py | 4c7388b2933e86be1ad4324e5c4018113b39fa6a | [] | no_license | alexsunseg/CYPAlejandroDG | b1d09e2efbfee77eba6af5e1767ebb93ac9e5880 | 531ec3536db408cbb5155821ef5cc6a76db2db2a | refs/heads/master | 2020-07-23T18:47:03.496794 | 2019-11-14T23:16:51 | 2019-11-14T23:16:51 | 207,672,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | NUM=float(input("Ingrese el valor del monto: "))
if NUM<500:
print("Pagar monto ingresado")
elif NUM<=1000:
DES= NUM-NUM*0.05
print(f"Pagar nuevo monto con 5% de descuento: ${DES}")
elif NUM<=7000:
DES= NUM-NUM*0.11
print(f"Pagar nuevo monto con 11% de descuento: ${DES}")
elif NUM<= 15000:
DES=N... | [
"alejandrodelao411@gmail.com"
] | alejandrodelao411@gmail.com |
a43e176268464b92c9a26d063990ecf73e6ca3df | 4c48a5052d772ac472a99b34d4eb65e330e9810e | /14.py | c83097b0cc256b65db0474f2c96ecdb3c0137b6a | [] | no_license | jack21997/C109156253 | 52f3ad788ec3ae422cb036beebd65d1476f0ee73 | 1033d6b5e5812e4aad806cfdb57276ebd4cf0e32 | refs/heads/main | 2023-04-15T02:36:23.662612 | 2021-05-06T12:47:47 | 2021-05-06T12:47:47 | 364,514,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | s = input("輸入一字串為:")
print("There are %s characters" %len(s)) | [
"noreply@github.com"
] | jack21997.noreply@github.com |
9246d5acd392ab1ae2820e78f0dd068372dfdd71 | a69db990501a86e8154898855733ea3a3c6a593d | /test/base1.py | 2df801234201c5370e603e624ac0e0c6a8b38084 | [] | no_license | cahthuranag/AoI_RL | 118ddc5b615b0e5cf3e3ffc15cc40ff603061378 | 3cf52b367ee8c84ed5b32c8955364d9b22de013b | refs/heads/master | 2023-05-27T21:44:58.256318 | 2019-01-21T14:57:13 | 2019-01-21T14:57:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,676 | py | import os
os.environ['CUDA_VISIBLE_DEVICES']=''
import numpy as np
import tensorflow as tf
import fixed_env as env
import a3c
import load_trace
import matplotlib.pyplot as plt
import time
S_INFO = 12 # bit_rate, buffer_size, next_chunk_size, bandwidth_measurement(throughput and time), chunk_til_video_end
S_LEN = 5 ... | [
"noreply@github.com"
] | cahthuranag.noreply@github.com |
de89e13c8f0334377898a604c9807d3a9a46ecdd | 11ecbb9e99d93c3fd4f4a530e66f02769aa67b9e | /my_site/redact/views.py | afcdba7e5b5f90989cd29c06469bc5dfdecfa977 | [] | no_license | AlexanderEganov/Test_BD_site | a3b0bd021b6952ae4fd1998a4958c760912023a7 | a0c76c882d438bcd6b28c66de17924ed323ed500 | refs/heads/master | 2020-04-27T12:00:53.364979 | 2019-06-26T14:40:24 | 2019-06-26T14:40:24 | 174,318,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return render(request, 'redact.html')
| [
"48315596+AlexanderEganov@users.noreply.github.com"
] | 48315596+AlexanderEganov@users.noreply.github.com |
aeb5d323de2e52d26432d831b5260498c79306f1 | 4acdda2a7e17c8cfbaa8fe2cb6c39db964dc25d2 | /app/auth/views.py | 8651cb98b746e0b51f56340d4b3aaba3ff32aeb9 | [
"MIT"
] | permissive | Vitalis-Kirui/Personal-Blog | c5dafb0aac197effac92d191ca39a25495108140 | 49af71b70f32ff4a588df26cd38091a6d80eb805 | refs/heads/master | 2023-07-31T00:49:04.553066 | 2021-09-26T19:47:50 | 2021-09-26T19:47:50 | 409,132,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | from flask import render_template,redirect,url_for, flash,request
from flask_login import login_user,logout_user,login_required
from ..models import User
from .forms import LoginForm,RegistrationForm
from .. import db
from . import auth
from ..email import mail_message
@auth.route('/register',methods = ["GET","POST"])... | [
"vitalis.kirui@student.moringaschool.com"
] | vitalis.kirui@student.moringaschool.com |
140129092a25295712a41e42b7da332f70196910 | 9a21a1bebe41118a62a7b7933103fa6fe8ebef11 | /code/political_bias_bert_extractive_summarizer.py | 4aa2e3b52eaeea6c071ac32276ea2af861599f0a | [
"MIT"
] | permissive | Itz-Antaripa/bias-in-political-news | bc143b7efea03791f6e2a30f2a6fd4c60f8ede1b | 3b69b981e01c7ee354e57739f68bc955ca615fd1 | refs/heads/main | 2023-03-16T20:41:56.331270 | 2021-03-06T17:05:22 | 2021-03-06T17:05:22 | 345,143,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,590 | py | # -*- coding: utf-8 -*-
"""political_bias_bert_extractive_summarizer.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1W0CsR4WdlJkKoBTBrtzh2nD0kKGXd1L7
"""
from google.colab import files
files.upload()
# importing libraries
import nltk
nltk.downl... | [
"noreply@github.com"
] | Itz-Antaripa.noreply@github.com |
3a2f9afe79c847c9ef2af1cd551af5ef44cdfbe0 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2016_12_01/aio/operations/_subnets_operations.py | 5e45e86c6802a0c8a4d25f223f92b6a82b80e83b | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 21,550 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
c86036ae46c5abf01a1796cbffc7794ece43cd5c | 26560e0322a5919209327fc3d1b1ff4877378949 | /boundingbox.py | 447b5e15e201799f77ed19ceb8acb8ab977c0c60 | [] | no_license | xolbynz/bounding_box_test | 515551de8f866e9ba6a97640c4d02a5762162c67 | e7436de68b04d15d21626815ba0fd8b0c5e13ee6 | refs/heads/master | 2022-12-10T08:39:29.388631 | 2020-09-11T01:28:44 | 2020-09-11T01:28:44 | 293,472,806 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | import cv2
import numpy as np
from matplotlib import pyplot as plt
import pandas as pd
##주어진 이미지와 라벨 파일을 활용하여 이미지 위에 bounding box를 표시해 보시기 바랍니다.
img0=cv2.imread('000000.png')
df0=pd.read_csv('000000.txt',sep=' ',header=None)
img1=cv2.imread('000001.png')
df1=pd.read_csv('000001.txt',sep=' ',header=None... | [
"noreply@github.com"
] | xolbynz.noreply@github.com |
b813456b9ffefbcabbaf62af7fbbd853102b02f0 | 4b6f3a93366fa7e8760ae0ac3183a0ec9d67c67c | /zeromq/req-broker-rep/request.py | 94099f1f2a558d5a668b5a4c7e78ef6bbb65d931 | [] | no_license | ztenv/python | 456e4b73542716698594e0cfd1974c4942ec81f5 | fe4bfd92b8c19bda1707b3cfab6d9da6e53f2782 | refs/heads/master | 2022-12-09T23:58:37.638697 | 2020-08-02T11:56:04 | 2020-08-02T11:56:04 | 71,128,766 | 1 | 0 | null | 2022-11-22T03:14:28 | 2016-10-17T10:57:41 | Python | UTF-8 | Python | false | false | 1,811 | py | # -*- coding: utf-8 -*-
# @file : request.py
# @author : shlian
# @date : 2019/6/10
# @version: 1.0
# @desc :
import zmq
import zmq.asyncio
import asyncio
import datetime
import json
import signal
import sys
import random
run_flag=True
async def start(name):
context=zmq.asyncio.Context(io_threads=2)
req... | [
"shaohua.lian@xuncetech.com"
] | shaohua.lian@xuncetech.com |
1cd32f72ad8218d822b458f0feceec85ce3248c2 | ffc5722dd49bb1e8f268a5459f6bae1fd6139679 | /Common/test/generateProjects | 65990105e440e08db68aa253d7d721c355d63c26 | [] | no_license | javarias/scheduling | a5672d6ae9c44df34f04501e8bb1aa5ac6e7ff08 | f7d4e40672993d4b786e979a22e89d13849c7023 | refs/heads/master | 2021-10-25T00:51:49.954776 | 2014-09-07T23:50:05 | 2014-09-07T23:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,387 | #!/usr/bin/env python
#
# generateProject.py - Rafael Hiriart (rhiriart@nrao.edu)
#
# Generates ObsProjects with parameters following suitable distributions.
#
import math
import random
from users import users
from sensitivity import pointSourceSensitivity
#############################################################... | [
"rhiriart@523d945c-050c-4681-91ec-863ad3bb968a"
] | rhiriart@523d945c-050c-4681-91ec-863ad3bb968a | |
827bd0efeae805a3e97813fb60fedffd62025ab3 | af2ceb24cd4b9d00d0e25beed00a04da119842c0 | /소수구하기.py | b5fbda48da6bc35d6aa06c7f55cc59ad4c25d043 | [] | no_license | 100jy/algorithm | f3ed175f705561cd30390310fc7ca21abfbbe578 | 21acc9ac663c3a70fa175b342c212baaf4f8f2f6 | refs/heads/master | 2023-03-30T01:32:19.693019 | 2021-04-13T04:15:44 | 2021-04-13T04:15:44 | 323,490,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | import math
def is_prime(k):
if k == 1:
return False
for i in range(2, int(math.sqrt(k)) + 1):
if k % i == 0:
return False
return True
start, end = list(map(int, input().split()))
for i in range(start, end+1):
if is_prime(i):
print(i) | [
"wnduq08217@naver.com"
] | wnduq08217@naver.com |
76bdbb0fe0cc41a49570b67005d8f89ce7235ddf | 243f64a13a1f496a08d05508ccf73c61e03a69de | /max_even_seq/subs/2017B/98.py | 27c9f1212ac347a6dd0ced0ec52f0adb9fe87ba5 | [] | no_license | RazLandau/pybryt | 5f3e946a99338fb159d6044098380bce2aacdc6f | 8973b15fc48d1f278e7b8a3990d2f73a3bffb128 | refs/heads/main | 2023-08-19T12:30:46.622088 | 2021-10-14T18:35:21 | 2021-10-14T18:35:21 | 350,324,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | def max_even_seq(n):
count = 0
max_count=0
for i in str(n):
if (int(i)%2!=0 and count>0):
if(count>max_count):
max_count=count
count=0
elif int(i)%2==0:
count=count+1
if(count>max_count):
max_count=count
return max_count
| [
"landau.raz@gmail.com"
] | landau.raz@gmail.com |
e3526409f06dc1174eb50b59d35056c81db5e60a | 4ee1fdc3b7369bbf872a092084e105760af99f34 | /Week14/todo-back/demo/api/migrations/0030_auto_20190506_1703.py | e3eb0779ec35079c7610b22459337eec8267acd9 | [] | no_license | ukozhakova/webdev2019 | 55ba3417b7e6976969ca2fe89f733870d32ea88e | 02f1289e374a46f01e10c06037ccbf458976be38 | refs/heads/master | 2022-11-08T10:37:51.424810 | 2019-05-06T12:55:55 | 2019-05-06T12:55:55 | 167,842,221 | 0 | 1 | null | 2022-10-18T19:36:49 | 2019-01-27T18:19:26 | Python | UTF-8 | Python | false | false | 663 | py | # Generated by Django 2.2 on 2019-05-06 11:03
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0029_auto_20190506_1527'),
]
operations = [
migrations.AlterField(
model_name='task',
name='cre... | [
"you@example.com"
] | you@example.com |
630e0c0147d040f5a67bed01779e5ef723a8fe05 | 8af2850a23159f89adf18e13a0bb2f817c01df56 | /HamroRecipe/recipies/migrations/0004_auto_20200212_2021.py | 09dce2328681ad2981707bd183e03f81960f5bfe | [] | no_license | MunaShrestha/HamroRecipes | 878e7243c5e17cbffc01b38c641bd913fc9e0586 | ce617beef13d08de9e04bf5b2fcd322e876cfe29 | refs/heads/master | 2021-01-04T00:02:56.581853 | 2020-02-13T14:36:19 | 2020-02-13T14:36:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,230 | py | # Generated by Django 3.0.2 on 2020-02-12 14:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recipies', '0003_auto_20200212_1837'),
]
operations = [
migrations.RemoveField(
model_name='recipe',
name='incredien... | [
"bijay.simkhada26@gmail.com"
] | bijay.simkhada26@gmail.com |
129ad0ae42a5127e1e2441625589fcb11df25df4 | bcb6a520fb71ce56a671743c5dd6cc5a138cecb0 | /apps/usuarios/models.py | de526f4ebe231e65942e1da6b41cac58360ccaef | [] | no_license | mendozalvarito/proyectosafin | 8bb840796586f2067f60b3475d19f246693919a8 | ce1c2519dd88a0636ff3b70b771bb11c5d93759f | refs/heads/master | 2020-04-20T22:47:15.754723 | 2019-01-28T20:52:02 | 2019-01-28T20:52:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from django.db import models
# Create your models here.
class TimeStampModel(models.Model):
created = models.DateTimeField(auto_now_add=True)
modified = models.DateTimeField(auto_now=True)
class Meta:
abstract = True
#TimeStampModel
| [
"ajerhy@gmail.com"
] | ajerhy@gmail.com |
7c736a7f77475871807bec7ae1398458622380c3 | 2b9205984018538b96390692500b3d9fd4622096 | /photos/migrations/0001_initial.py | 02310dbb5e0e27df0a385a4d7a8e286e5af80ef6 | [
"MIT"
] | permissive | JECINTA534521/The-photo-gallery-project | e1b64152dbf700b97859cfa2c1eaecd4dfc7c17b | 2187cc4cdc7cd3d003ed3221a795e052bd0dfb32 | refs/heads/master | 2021-09-09T18:19:22.114668 | 2019-11-11T14:46:26 | 2019-11-11T14:46:26 | 220,175,371 | 0 | 0 | null | 2021-09-08T01:25:21 | 2019-11-07T07:19:58 | Python | UTF-8 | Python | false | false | 1,632 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-11-07 14:21
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Create... | [
"jecintawanjirug@gmail.com"
] | jecintawanjirug@gmail.com |
9f74386bfd8d6201ad4afbb4c3e05cb520769647 | d9fb9c229740eafe890d5ebc4c87cebce8c354d1 | /garudaHack2020Service/package/bin/rst2html5.py | 15f3cf8d74522ae83b2834fc3d92cefca3ef11e5 | [] | no_license | sutjin/garuda-hacks-2020 | 9f96bc543bc9ea946a7b35c3332e3c89134db871 | c8d1a4c0946b25703a41812d49ad669d2895a0ac | refs/heads/master | 2022-12-02T12:35:43.602849 | 2020-08-15T14:40:52 | 2020-08-15T14:40:52 | 287,497,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | #!d:\development\garuda-hacks-2020\venv\scripts\python.exe
# -*- coding: utf8 -*-
# :Copyright: © 2015 Günter Milde.
# :License: Released under the terms of the `2-Clause BSD license`_, in short:
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty... | [
"sutjin@hotmail.com"
] | sutjin@hotmail.com |
bd7a30f240768161198e1692602d698c9989af03 | 011799be8bb4efb5220be04d6b853a695740d2bb | /generate_chunks.py | 0361e7daf7cec0e51da2fd38378d114b4707149b | [] | no_license | codedearta/arctic-demo | d163a192a647d26bddfe84fc49e5b15c44b7bce8 | 68e15ef2812d731d5de13a0ece79a74dd8a0d97d | refs/heads/master | 2021-05-07T07:32:38.296083 | 2017-11-06T15:39:41 | 2017-11-06T15:39:41 | 109,137,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,465 | py | #!/usr/bin/python
import random
from arctic import CHUNK_STORE, Arctic
from datetime import datetime
import datetime as dt
import pandas as pd
import sys, getopt
import time
print(sys.path)
dateTimeFormat = '%Y-%m-%d %H:%M'
def parseOptions():
libraryName = 'ticks'
symbol = 'mdb'
beginDate = datetime.st... | [
"sepp.renfer@gmail.com"
] | sepp.renfer@gmail.com |
d7c711a4ceceeea34d54d0627cbd96a2efb4f943 | b6d48319f4f49b8384da640d57cb1dc5b75fa30d | /weather_report.py | 512ab89b88402114ac45c5a132d2b7d5cda539eb | [] | no_license | ksaswin/Weather-data-using-python | e2160b7413e50b5e31717b783126c12c2b112f23 | a3a6bbe1af5cae753f42ef1b2193cb3a2255f67d | refs/heads/master | 2023-02-15T17:28:11.822645 | 2021-01-11T18:38:49 | 2021-01-11T18:38:49 | 293,256,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | import json
import urllib.request
import urllib.parse
baseurl = 'https://api.openweathermap.org/data/2.5/weather?q='
api_key = 'API_KEY' #Create an account in https://home.openweathermap.org/users/sign_in and paste your personal API_KEY here
location = input("Enter location: ")
complete_url = baseurl + location + '... | [
"noreply@github.com"
] | ksaswin.noreply@github.com |
bf3ba99acdc16be621c35be9ff9704ab091e23bd | e081eebc37aef48084fa62a1b36443f03b9e2abe | /Collisions.py | 113b2fcfd23ceb133859a9239a70ecfc22ae212b | [] | no_license | S-C-U-B-E/CodeChef-Practise-Beginner-Python | 93fa202eede83cf4f58177bffb4ecc4ddb7f19bc | 78a02303b3cdd7eb7b0c45be59a1c282234f8719 | refs/heads/master | 2021-03-24T01:10:43.913150 | 2020-03-16T12:49:12 | 2020-03-16T12:49:12 | 247,501,633 | 16 | 8 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | # cook your dish here
for _ in range(int(input())):
n,m=[int(x) for x in input().split()]
a=[]
c=0
for _ in range(n):
a.append([int(i) for i in input()])
for i in range(m):
for j in range(n):
if a[j][i]==1:
for k in range(j+1,n):
if a[k... | [
"sssanyal10@gmail.com"
] | sssanyal10@gmail.com |
dbe03be4bbe0d278643dfe46f4d5a7358eb1e8a2 | 8d98bcb23037c7a10d088a82b0645b28a17e27a3 | /loop/break.py | d6f861ca676d5aec6af068c4c37c8c131a08b81d | [] | no_license | anggadarkprince/learn-python | c7016886fb7ed85925bc7dc011a50cee52cf08d1 | 2f612ff0f6bd28a5ba4849d263811612c640828c | refs/heads/master | 2021-01-13T13:19:27.864949 | 2016-11-03T02:41:25 | 2016-11-03T02:41:25 | 72,619,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | number = 0
total = 0
average = 0.0
count = 0
# loop until something triggered to stop
while True:
print("Enter a number: ")
number = float(raw_input())
if number == -1:
# stop and exit from the loop
break
total = total + number
count = count + 1
average = total / count
print("Averag... | [
"anggadarkprince@gmail.com"
] | anggadarkprince@gmail.com |
05108c794f6d644ab95f556ce40ff26227122432 | d1386ad2ced40ef89190a1ad3f3ce7969aa1318e | /advent of code - 2021/hubspot/LRU Cache.py | 51a1cbe1210c37c3ca5f8671cf150a2cb40e4c60 | [] | no_license | achunero/Problems-sloved | 442a4cff28e4bd774d69e7ad7cf8afd098aad892 | 089f78a6c6f4c309d93e0b98c14636dbd13cddeb | refs/heads/master | 2022-06-17T06:03:28.397107 | 2022-05-20T13:14:26 | 2022-05-20T13:14:26 | 15,371,447 | 0 | 0 | null | 2022-05-20T13:16:04 | 2013-12-22T06:31:27 | Python | UTF-8 | Python | false | false | 1,666 | py | class Node:
def __init__(self, key, value):
self.key = key
self.value = value
self.prev = None
self.next = None
class LRUCache:
def __init__(self, capacity: int):
self.capacity = capacity
self.length = 0
self.hash = {}
self.head = ... | [
"noreply@github.com"
] | achunero.noreply@github.com |
5f2cc966d93877550c0877012738e9c25a98cdc8 | 9376b76d63a50f36c4e613924a94d906902ae775 | /app/main/config.py | c3206662aaf8e8689e5e808f8601da5cca1a2b05 | [] | no_license | fremfi/casting-agency-api-python-flask | a6065905034c46581a00c60092fb4b7eeb32d557 | 74d74cef23dec296b342eb8b63471d8dc63a3ced | refs/heads/master | 2022-12-11T06:36:33.560592 | 2019-10-29T15:27:39 | 2019-10-29T15:27:39 | 217,799,761 | 0 | 0 | null | 2022-12-08T06:47:01 | 2019-10-27T03:24:39 | Python | UTF-8 | Python | false | false | 816 | py | import os
postgres_url = os.environ['DATABASE_URL']
test_postgres_url = os.environ['TEST_DATABASE_URL']
dev_postgres_url = os.environ['DEV_DATABASE_URL']
basedir = os.path.abspath(os.path.dirname(__file__))
class DevelopmentConfig():
DEBUG = True
ENV = 'development'
SQLALCHEMY_DATABASE_URI = dev_postgre... | [
"frederick.mfinanga@gmail.com"
] | frederick.mfinanga@gmail.com |
b66ffec97541d2bb7e8bedd642c5e38eea68043a | d91232083e3bdd19a2cb3769aacae46b869898af | /twostones.py | 86c665485792b6b569868ef129545038abacfab9 | [] | no_license | pawanprjl/Kattis | 01329c10e5796415b04f868582ae69ec1e759b49 | 4b9d049dfa77650e0a09c1a431c9704283b7d004 | refs/heads/master | 2020-08-29T08:18:10.459768 | 2019-10-28T16:04:10 | 2019-10-28T16:04:10 | 217,979,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | N = int(input())
if(N%2==0):
print("Bob")
else:
print("Alice") | [
"pawanparajuli8@gmail.com"
] | pawanparajuli8@gmail.com |
fc6d704bfb1ac54421bcf6bb3ddb23d796895fd9 | bec6f966238003c157027014b081521dc999e7c8 | /WeatherApp/getHightstown.py | c5147308f905e4877cc847f0aed271e3d87435f6 | [] | no_license | BDMC786/WeatherApp | ec583e05108a019bced90285c328065c2a1058df | fbafac891d852aded3e96f68fad52ac4e9754c40 | refs/heads/master | 2022-12-16T19:59:56.829167 | 2021-07-28T20:59:45 | 2021-07-28T20:59:45 | 219,050,719 | 0 | 0 | null | 2022-12-08T07:00:17 | 2019-11-01T19:34:59 | Jupyter Notebook | UTF-8 | Python | false | false | 8,084 | py | def getHightstown():
import json
import requests
from datetime import datetime as dt
import datetime, pytz
url = "https://api.darksky.net/forecast/5fc1f583fa2e15d8a27208e502ba5fb0/40.2695538,-74.5232089"
place = "Hightstown, NJ"
#Make API Call
response = requests.get(url)
... | [
"noreply@github.com"
] | BDMC786.noreply@github.com |
cc1d3257bd543bbfeaca6caaef848986db12fd41 | 1140372e0ddd597f4092150d23fb50c3f2e91d8d | /generate_dynamo_json.py | 0a783ba3fc5223dbad4b743f26139716c1252558 | [
"Apache-2.0"
] | permissive | acuevas-15/dynamo-db-generate-bulk-upload-json | 096eb0f03cfcf5b4f4434269112a09e0d3d70623 | 5d482ef2766ce674e98ee5605440e69e16baea4f | refs/heads/main | 2023-02-23T18:37:52.839379 | 2021-01-30T19:10:10 | 2021-01-30T19:10:10 | 334,486,125 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,955 | py | from __future__ import print_function
import csv
import json
import ntpath
import sys
def generate_dynamo_batch_json(name):
"""
using a file name pointing to a csv that has been exported from dynamo db, or conforms
to the expected format: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_B... | [
"antcue@amazon.com"
] | antcue@amazon.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.