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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dac47fd1c86e26a2e0023d0e42e73fb5c23b8db6 | 6929f0ddaf7aab3897ecd2aefd55d97c8ab1e431 | /QandA/wsgi.py | 2b85f2b31520b17db7efa9b223e73bf9469f7b74 | [] | no_license | tmvinoth3/Q-A | 1aaab03b011478a6e33d0be1a78cc35a9631c60e | 6da8bdd0c63453df33fe347ef7bb97e40e4218a7 | refs/heads/master | 2020-03-10T13:50:21.766223 | 2018-06-06T16:17:29 | 2018-06-06T16:17:29 | 129,409,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | """
WSGI config for QandA project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"575435@cognizant.com"
] | 575435@cognizant.com |
e8e08e4b4c84e23d22c92940cf1d38e721e9617e | dc80f94c1a244002db468fc7242d5fcaafe439dc | /powerdns_client/api/stats_api.py | 865ce4494cac1c4a36ceedb5e0f8587189c76576 | [
"MIT"
] | permissive | sanvu88/python-powerdns-client | f675e1ee162bb76190b41ddf0cfc34e2305a757b | 57dd0460995a5407c6f5c963553b4df0f4859667 | refs/heads/master | 2023-02-04T07:05:31.095951 | 2020-12-15T16:48:15 | 2020-12-15T16:48:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,803 | py | # coding: utf-8
"""
PowerDNS Authoritative HTTP API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.0.13
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absol... | [
"67791576+underline-bot@users.noreply.github.com"
] | 67791576+underline-bot@users.noreply.github.com |
7a90a3c285d5b1d163f9550befa75c5b01f6fdc4 | 0b3c5260cd5c33a1beccc5710a5d0fd097a5ea15 | /anchore_engine/services/policy_engine/engine/policy/gates/npm_check.py | 40e0d49fe309d0fdfc2a14343f4df6cec46099e9 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | omerlh/anchore-engine | fb2d7cb3d8bd259f6c973b450fbaa2c2e00497f0 | 669a0327f8baaee3f5c7c64b482909fe38830d80 | refs/heads/master | 2021-09-02T12:48:51.661648 | 2018-01-02T19:26:47 | 2018-01-02T19:26:47 | 116,236,136 | 1 | 0 | null | 2018-01-04T08:41:39 | 2018-01-04T08:41:39 | null | UTF-8 | Python | false | false | 7,044 | py | from anchore_engine.services.policy_engine.engine.policy.gate import Gate, BaseTrigger
from anchore_engine.services.policy_engine.engine.policy.utils import NameVersionListValidator, CommaDelimitedStringListValidator, barsplit_comma_delim_parser, delim_parser
from anchore_engine.db import NpmMetadata
from anchore_engin... | [
"nurmi@anchore.com"
] | nurmi@anchore.com |
f711172c3480c5580dd6594014f2a13fb124054c | f26dd860c8d764fc7a47bde656f393795cd8d763 | /david13.py | f0f78ee556259290f4fcefbd2eb9801ee2858e03 | [] | no_license | chokkuu1998/david | 8e9fa162f657c8b9bb55502f1cdd730a08ff0235 | 4dc999cdb73383b5a5d7ed3d98b2c1a4d6b5f7ee | refs/heads/master | 2020-03-28T17:05:04.046963 | 2019-07-16T08:07:37 | 2019-07-16T08:07:37 | 148,756,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | AA,BB=map(int,input().split())
CC=list(map(int,input().split()))
pp=list(map(int,input().split()))
qq=[]
rr=0
for i in range(AA):
x=pp[i]/C[i]
qq.append(x)
while B>=0 and len(qq)>0:
mindex=qq.index(max(qq))
if B>=C[mindex]:
rr=rr+pp[mindex]
B=B-C[mindex]
CC.pop(mindex)
pp.pop(min... | [
"noreply@github.com"
] | chokkuu1998.noreply@github.com |
b70385e17427bd7ad30abd8179b7962f293e20f5 | 5837e04e53e0434c8b10eb9647804901d3a6ee7a | /pyseries/metrics/__init__.py | 77d6184c5b0dba8ce8889cd431ef362b1d01afb2 | [
"BSD-3-Clause"
] | permissive | nubiofs/pyseries | b26fd4dff4b55cc3b338a2ebee9260b91d6fa902 | 59c8a321790d2398d71305710b7d322ce2d8eaaf | refs/heads/master | 2020-04-05T14:18:35.453540 | 2014-10-27T17:47:54 | 2014-10-27T17:47:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | # -*- coding: utf8
from __future__ import division, print_function
'''
Array and time series metrics package
'''
| [
"flaviovdf@gmail.com"
] | flaviovdf@gmail.com |
173607b64aeed04b631c469061ed4f527766472f | c5d5d65dcb782618428c8ee3d486d0bd7cd817e5 | /manage.py | 98969a8eb96a066bbb764e4404ff0a598e35cd16 | [
"MIT"
] | permissive | ruslan447/houseofoutfits | a3471a48179f4a62fb3858c7386e32f965381b88 | 96d4bd3a24974f4e96dc8e0bc510afb63e2d3f7c | refs/heads/master | 2022-12-04T11:48:12.466046 | 2020-08-12T09:10:08 | 2020-08-12T09:10:08 | 285,194,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'outfease.settings')
try:
from django.core.management import execute_from_command_line
... | [
"noreply@github.com"
] | ruslan447.noreply@github.com |
d95f0b89899c28fd7e790e02a64cba46aff3d59d | 1ad2ae0383341f2b92fe38173612be5d9c4970e8 | /polls/models.py | 75a460d4f5e68fc9d5052737ed7677900239b83f | [
"MIT"
] | permissive | pizzapanther/ppp | 9b0df90ddf2e52ffdaf43394026613dbd884c0e9 | 3286f39f8e90f3473841a154ff7189a3efd9ca94 | refs/heads/master | 2021-09-23T03:52:27.915606 | 2020-03-04T18:04:08 | 2020-03-04T18:04:08 | 222,154,111 | 0 | 0 | MIT | 2021-09-22T18:10:01 | 2019-11-16T20:16:27 | Python | UTF-8 | Python | false | false | 1,400 | py | from django.conf import settings
from django.db import models
from django.contrib.postgres.fields import ArrayField
class Presentation(models.Model):
title = models.CharField(max_length=100)
slug = models.SlugField(max_length=100)
def __str__(self):
return self.title
def current(self):
return self.po... | [
"paul.m.bailey@gmail.com"
] | paul.m.bailey@gmail.com |
97b53eda25175c28fc9aca24c186c191c00e164a | 3c5e7e507baca827a367be2c4e85655c7c590162 | /jogos.py | 1e37db040c39233b65dd2c910ac6eb719f915bc4 | [] | no_license | devlaurindo/jogos-em-python | 7608c3aa7c124fedd8f395e9181fa1b778515095 | e8409d81c702aeed633f8fbffec94049561f1f63 | refs/heads/master | 2023-04-10T18:13:22.146064 | 2021-04-28T17:48:42 | 2021-04-28T17:48:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | import adivinhacao
import forca
def escolhe_jogo():
print ("***********************************")
print ("******* Escolha o seu jogo! *******!")
print ("***********************************")
print ("\n (1) Adivinhação (2) Forca ")
jogo = int (input ("\n Qual jogo? "))
if (jogo == 1):
... | [
"user-t00r@hotmail.com"
] | user-t00r@hotmail.com |
fb80cd57ad70d4873721a45f8d1e755d18cc92c6 | 9e1bb84206587a5efd352a9ffbdcd383b150a4d9 | /day10/led/controllers/__init__.py | b2dd8b13f44a94aa8242765761ca7a03d0e1e834 | [
"Apache-2.0"
] | permissive | smalljiny/raspi-class-example | 34ef92d7a32943fee34c6534ccf30f411e9d05eb | 7f92f34d366b94f9ae3c7da5ebeacdeb628be446 | refs/heads/master | 2021-09-02T16:52:57.592216 | 2018-01-03T17:55:47 | 2018-01-03T17:55:47 | 114,616,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from flask import Flask
from controllers.leds.controllers import leds
app = Flask(__name__)
app.debug = True
app.register_blueprint(leds, url_prefix='/leds')
| [
"smalljiny@gmail.com"
] | smalljiny@gmail.com |
64618a6ac65022117f48efe65d74d536eb1d4461 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/request/AntfortuneEquityShopCustrelationQueryRequest.py | fa4fa39402e4465d04ccbe7c01ba6dec5c1768fa | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 4,021 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AntfortuneEquityShopCustrelationQueryModel import AntfortuneEquityShopCustrelationQueryModel
class AntfortuneEquityShopCustrelationQ... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
c6ad8989868b3f799fb471f965dd0dbac43eda21 | 3932fd64580d6c04543d02e7675fc6587bf31214 | /src/border_handling.py | ad2c49f30822ba44271b7c6ac5e3e44a6eb38696 | [] | no_license | RosePY/ASCIIArt | e06bcc4d2e09007833ceb8b413251852f5576420 | 0985724f3d4fc39ad9a6c430d80d1a35de787d6d | refs/heads/master | 2021-01-09T18:12:50.449403 | 2020-02-22T20:27:14 | 2020-02-22T20:27:14 | 242,402,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,966 | py | import numpy as np
class BorderHandling:
BORDER_REPLICATE = 1
BORDER_REFLECT = 2
BORDER_REFLECT_101 = 3
BORDER_WRAP = 4
BORDER_CONSTANT = 5
BORDER_DEFAULT = BORDER_REFLECT_101
@staticmethod
def border_handling(img_in, kernel, border_type=BORDER_DEFAULT):
rows, cols = img_in.sh... | [
"noreply@github.com"
] | RosePY.noreply@github.com |
d0044cf9410ea97706a0db4c0202cbcc684ff637 | 78c1d3020b827b9ab7527404983986685bbb79ae | /challenge 86.py | 11ea908b4c6999cb7d2bad12f6f20f6b0ed1e17b | [] | no_license | Yakobo-UG/Python-by-example-challenges | eb3e52601c9546a4984b8da4cf752e59f13af50e | 5bee4ec3e7619e826a27cde9e6a9a841393f8ccb | refs/heads/master | 2023-08-27T03:01:39.448703 | 2021-10-14T15:43:45 | 2021-10-14T15:43:45 | 401,747,080 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | #Ask the user to enter a new password. Ask them to enter it again. If the two passwords match, display “Thank you”. If the letters are correct but in the wrong case, display the message “They must be in the same case”, otherwise display the message “Incorrect”
newpass =str(input("Enter new passward: "))
newpass1 = str... | [
"65670517+Yakobo-UG@users.noreply.github.com"
] | 65670517+Yakobo-UG@users.noreply.github.com |
79ee635884d6023dadd4796ad9c195a3da5940f9 | ab084a1775574955c4a46a0fdad00d70cdfa8839 | /DEAR/main.py | d9b861a9ab1e3be0d2460cf6feec78e27de40da2 | [
"Apache-2.0"
] | permissive | autofix2021icse/AutoFix-2021-ICSE | eaa926125dc62e74ccf0853d2664275d21fd931c | cbad6d6d58fcb88b1c3986d2f7e738aa035a65d1 | refs/heads/master | 2023-01-21T23:16:03.114859 | 2020-11-21T11:12:43 | 2020-11-21T11:12:43 | 290,268,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | import os
import time
import subprocess
rq = "1"
path = os.getcwd()
start = time.process_time()
if os.path.isdir(path + "/sbfl/ochiai/") and os.path.isdir(path + "bert_model/bert_output/"):
try:
subprocess.call("python3 " + path + "run_exp.py " + rq, shell=True)
except:
print("Running Error!"... | [
"autofix2021icse@outlook.com"
] | autofix2021icse@outlook.com |
6229e7231c45038a0d515693de51d6b3b5ee16fe | 9b10d8482a7af9c90766747f5f2ddc343871d5fa | /Gemtek/AutoTest/DropAP/WRTM-326ACN-DropAP2/premises/library/test.py | f158319fe329093f6d1fd74a233f2a489a42b9b0 | [] | no_license | DarcyChang/MyProjects | 86d33f5cf8bdfd4b21e64922e4eb25c1afc3c135 | 47efb2dfe13ace264f8943b59b701f39f23c4c17 | refs/heads/master | 2021-05-12T12:43:39.255082 | 2020-09-23T06:42:03 | 2020-09-23T06:42:03 | 117,419,269 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | __author__ = 'alu'
import re
import time
import cafe
from cafe.resp.response_map import ResponseMap
from collections import OrderedDict
from demo.alu_demo.User_Cases.test_lib import Teststeplib_e7 as e7_lib
res = "ONT Subscriber Info Status" \
"---------- --------------... | [
"cychang0916@gmail.com"
] | cychang0916@gmail.com |
35a47b027566248963ff354a2a07b0ef7377d61c | 1bccf0b1374dcfddfc3e320fd5b6af499334df2d | /scripts/hashtagUserCounts.py | 4a780d5a584536af79f7279e772bc4f2cc89c7c9 | [
"Unlicense"
] | permissive | chebee7i/twitter | 6b245f5a7b7510089b62d48567e6208e1fe8a1db | ec1d772c3ef7d2288ac8051efb8637378f3ec195 | refs/heads/master | 2021-01-01T16:25:13.242941 | 2015-06-24T19:39:24 | 2015-06-24T19:39:24 | 23,846,593 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,533 | py | """
Insert the number of users that tweeted each hashtag.
"""
import twitterproj
import pymongo
from collections import defaultdict
import itertools
import json
import os
import io
db = twitterproj.connect()
def add_user_counts(bot_filtered=True):
collection = db.tweets.with_hashtags
if bot_filtered:
... | [
"chebee7i@gmail.com"
] | chebee7i@gmail.com |
70e87e1fb732bfc445b50e28f7b074420ad1f86b | 9eabceb375a96b5b87b4e2a59a89a71bfa577db1 | /AutomateTestSiteWithSelenium/GetLinkFromPage.py | 01761028303efd3a36b510c29505229ba0f385a3 | [] | no_license | fitriKimmy/ScriptingWithPython | 67463e9b8085bf13450c93c3370d52e29cac131e | c51b0463b574902fbf9a600cb76b0a7da90e8d1c | refs/heads/master | 2022-12-14T04:21:55.760126 | 2020-09-07T11:20:44 | 2020-09-07T11:20:44 | 293,294,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://sites.google.com/site/httpwwwseleniumhqorg/")
element = driver.find_element_by_xpath('//*[@id="sites-canvas-main-content"]/table/tbody/tr/td/div/div[2]/div[2]/table/tbody/tr/td[1]/center/a[1]/img')
element.click()
driver.back()
search_el... | [
"fitri.manurung@go-jek.com"
] | fitri.manurung@go-jek.com |
3289483dd8a5b66b32a7ef75b2909f8266588ad9 | 4dbe500e89d35051f9a9ade4343a24d932fbd90b | /utils/CapacitorSense.py | fc17d8473ed1f954016ea193b37fbb555acf90e2 | [
"MIT"
] | permissive | basimkhajwal/RaspberryPi | 4b9de905f553960f687478ff7a8f7cfa61d2fa98 | 1e9a9fbfe201f0fe642613c9fe784e2104b79dcf | refs/heads/master | 2021-01-01T15:59:55.945267 | 2015-08-09T09:21:14 | 2015-08-09T09:21:14 | 28,642,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | import RPi.GPIO as g
SEND_PIN = 4
TIME_OUT = 10000
def setupCapacitorSense(pin):
global SEND_PIN
SEND_PIN = pin
g.setmode(g.BCM)
def discharge(pinNum):
g.setup(pinNum, g.OUT)
g.output(pinNum, g.LOW)
def capacitorSense(pinNum):
discharge(SEND_PIN)
discharge(pinNum)
g.setup(pinNum, g.... | [
"basimkhajwal@gmail.com"
] | basimkhajwal@gmail.com |
4254173570e3eee3dc26eb055cdeb90b9e523c73 | 10356bdea212035d71a5d310bf798962ab7c3cee | /문제300/문제91-100.py | 99be99f93038daa81b34b473a2350de40be72f63 | [] | no_license | name165/300prob | 1ded94619a6b2b4f7539ff7e5aef53b00c8ef987 | cd63335c73c4bd7481a95e8e30a60daffdf212ad | refs/heads/master | 2023-06-13T03:15:10.791890 | 2021-07-10T08:11:41 | 2021-07-10T08:11:41 | 363,336,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | #91
inventory = {"메로나": [300, 20], "비비빅": [400, 3], "죠스바": [250, 100]}
print(inventory)
#92
print(inventory["메로나"][0], "원")
#93
print(inventory["메로나"][1], "개")
#94
inventory['월드콘'] = [500, 7]
print(inventory)
#95
icecream = {'탱크보이': 1200, '폴라포': 1200, '빵빠레': 1800, '월드콘': 1500, '메로나': 1000}
lis = list(icecream.keys())
p... | [
"1234@ruu.kr"
] | 1234@ruu.kr |
b36520204abceb7ea228c6496db2a9d6c5a07791 | a15f288c00d1fd280c327263dd1c608d85cce2ac | /ganarcrm_django/team/migrations/0002_auto_20210514_0455.py | f822abd8f6fe37dd00623ccb5cd693dbf4bf2f23 | [
"MIT"
] | permissive | mburaksoran/ganarcrmExample | 721c018a907cef16c1916bf529253be50c084bd8 | 5b2561a73a49abe608d695cf50bf516c7d08b124 | refs/heads/main | 2023-06-09T00:55:05.987826 | 2021-07-01T05:19:06 | 2021-07-01T05:19:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | # Generated by Django 3.2 on 2021-05-14 04:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('team', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Plan',
fields=... | [
"codewithstein@Steins-MacBook-Pro.local"
] | codewithstein@Steins-MacBook-Pro.local |
37ded26c5f8eb43d97bf060b3afc87241f198359 | 8cd5c8d035b292caacb4d5aeb4bce0ca19ee3061 | /DataScience/Python/scripts/analyzeLT1Data.py | 26a0c0ca34c8c8282df8f396a739d7724288e03a | [] | no_license | toddjm/projects | 33be8c753d24a1ba1f719d661fed36d264957c45 | 709497603a6dcfb43feabfc812b3ad8bb3f183c9 | refs/heads/master | 2023-02-19T03:13:46.538278 | 2023-02-07T22:33:00 | 2023-02-07T22:33:00 | 47,042,227 | 1 | 1 | null | 2015-12-01T00:01:22 | 2015-11-28T22:44:22 | Python | UTF-8 | Python | false | false | 2,334 | py | import glob
import matplotlib.pyplot as plt
import numpy as np
import os
import sys
# Set data directory. Are we on Linux or Mac OS X?
if sys.platform == 'linux':
data_dir = '/home/todd/data/lt1_dmax/clean/LT1/running'
elif sys.platform == 'darwin':
data_dir = '/Users/todd/data/lt1_dmax/clean/LT1/running'
# S... | [
"todd.minehardt@gmail.com"
] | todd.minehardt@gmail.com |
2b24ec034a34c513b9c6b1bd086580ec9964d106 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /Geometry/HcalEventSetup/python/CaloTowerGeometryDBWriter_cfi.py | dc75ba33a6cedd5c4191026f97719656397c89c3 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 531 | py | import FWCore.ParameterSet.Config as cms
CaloTowerHardcodeGeometryEP = cms.ESProducer( "CaloTowerHardcodeGeometryEP" ,
appendToDataLabel = cms.string("_master")
)
CaloTowerGeometryToDBEP = cms.ESProducer( "CaloTowerGeometryToD... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
dd189af651c79002cd632c915e1dd70d79d565d8 | cfb24bc7ab53e79518f54e552f02979843097b3e | /analysis/NT_waterPercentCalcTool.py | 0efaae47033ab37892bb4043aa3631c961b376de | [] | no_license | b7j/DRLMRepo | 3305e9ae449e03cda3684e7f01b89a2ec3eddfc7 | c889c9cd530245773c7b552b36e8f8435bc59669 | refs/heads/master | 2021-01-18T07:56:51.933126 | 2016-01-18T04:16:38 | 2016-01-18T04:16:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | #!/usr/bin/env python
"""
Calculate water count as a percentage of all observations
"""
import argparse
from rios import applier
#function to get cmd line inputs
def getCmdargs():
p = argparse.ArgumentParser()
p.add_argument("--infile", help="input file")
p.add_argument("--outfile", help="output")
cm... | [
"grant.staben@nt.gov.au"
] | grant.staben@nt.gov.au |
0d3f557b43efbcac584e45ddcbba1b34fb2f82e5 | f93e22a5d5cf00544ca4091d0cbc5c4bc40beb8e | /ex29.py | 62498f5d3b6ba63d9b5c7a2797c3add5d4010ab7 | [] | no_license | hyh840819/h3 | ea9f44061e1d5729fd103fe7e873415995e0035d | 9220450e45b7af895f710ce77599b8974c1bc8a6 | refs/heads/master | 2020-04-07T08:52:54.563053 | 2018-11-19T13:53:58 | 2018-11-19T13:53:58 | 158,231,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | people = 20
cats = 30
dogs = 15
if people < cats:
print("Too many cats! The world is doomed!")
if people > cats:
print("Not many cats! The world is saved!")
if people < dogs:
print("The world is dry!")
if people > dogs:
print("The world is dry!")
dogs += 5
if people >= dogs:
print("People a... | [
"hyh@GCDCH.lan"
] | hyh@GCDCH.lan |
d8d3d453e04ceda4bf51fc916da07205ed182225 | 9c9b2a8074e976814f7773c19980e77efda53371 | /infomatics/массивы/d.py | 2a755d897f0ee488eab6e95ebc010632c04b5fc2 | [] | no_license | nazkeyramazan/hw | 451b692a9001e5f6087785f8b2b6215f9af90956 | f8d9e11463a1a4181b24df95f6d0a501ec8441a7 | refs/heads/master | 2023-01-08T00:25:31.335217 | 2020-04-24T00:14:57 | 2020-04-24T00:14:57 | 248,481,581 | 0 | 0 | null | 2023-01-07T17:23:44 | 2020-03-19T11:06:53 | Python | UTF-8 | Python | false | false | 176 | py | n = input()
s = input()
data = s.split()
temp = int(data[0])
k = 0
for i in range(len(data)):
if temp < int(data[i]):
temp = int(data[i])
k += 1
print(k) | [
"nazkeyramazan@gmail.com"
] | nazkeyramazan@gmail.com |
d737f53dc33062761b45567992c4853639e72b21 | d1b1184fee07edcf5fb5fe0ae1c2c31964545178 | /capitolzen/users/migrations/0009_auto_20171118_1454.py | a8e30fd9f1224ae85036cbf077653ceb0f7a4d68 | [] | no_license | CapitolZen/CapitolZen-Backend | d3bc64e3cff6d887fa97fe04b67b761b04aa850a | 604a5c5d933815ab4b51b3f24b1cbd0b71c18133 | refs/heads/master | 2021-09-16T00:15:34.529015 | 2018-06-13T15:41:16 | 2018-06-13T15:41:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-18 19:54
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('proposals', '0036_bill_cosponsors_dups2'),
('users'... | [
"djwasserman@gmail.com"
] | djwasserman@gmail.com |
ef78e98a09ae3fe21dcc1b6b0286dd42dddd2b12 | 252621784d24992db1ea51760bcccc89c878dd09 | /checking_for_blur.py | ea4c71cca21a9ae0faa13e0a978f40d99d4e2133 | [] | no_license | SamuelZachara/Clarendon_filter_reverse_engineering | 4b007a46508a6958f44b3ccdff2e8569cedcdabd | b97cbb2d2a6ec97e09f1d752b3f5c21a94862f0d | refs/heads/master | 2020-04-11T16:13:24.269969 | 2018-12-15T15:18:02 | 2018-12-15T15:18:02 | 161,916,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,170 | py | try:
from PIL import Image
except ImportError:
import Image
import os, sys
img_black = Image.open('filtered/solid_000000.png').convert('RGB')
img_white = Image.open('filtered/solid_FFFFFF.png').convert('RGB')
img_black_original = Image.open('original/solid_000000.png').convert('RGB')
img_white_original = Ima... | [
"noreply@github.com"
] | SamuelZachara.noreply@github.com |
e0d15e783287de2d262fe73d9af3aab0bc994dbd | 409d0fac6c50ecb0b087be00d0a43802b3cb9d30 | /hdcs_manager/source/hsm/hsm/api/contrib/services.py | bb0c1784f0ae9f3327d799437e5e34a973e0fdb2 | [
"Apache-2.0"
] | permissive | xuechendi/HDCS | a5f5ac62c9da063359c173c352f4f484ba4d7cdb | 4ce169d5be1c3e8614e5e6f198d3593eb904b97d | refs/heads/master | 2021-01-15T22:18:59.554181 | 2017-07-05T13:03:57 | 2017-07-05T13:03:57 | 99,896,630 | 1 | 1 | null | 2017-08-10T07:51:52 | 2017-08-10T07:51:52 | null | UTF-8 | Python | false | false | 3,343 | py |
import webob.exc
from hsm.api import extensions
from hsm import db
from hsm import exception
from hsm.openstack.common import log as logging
from hsm.openstack.common import timeutils
from hsm import utils
LOG = logging.getLogger(__name__)
authorize = extensions.extension_authorizer('storage', 'services')
class Se... | [
"yuan.zhou@intel.com"
] | yuan.zhou@intel.com |
ff8f86292617a8597edc809076063b0f6261283c | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/SiamFC/src/dataset.py | 83c8e8c6e3e8ce864c6d87af664d12aa08b25bc6 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 5,068 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
1b1e6aeb37ad7d24e7758ebda4a967bed305b19e | e9badfc473218a65d87d516011fc4fcde0086270 | /test/consumers/listen.py | 97ad5f8e26c568707e7a938e6ca44f84193a628a | [] | no_license | dlf-dds/simplestack | 6a5bcb7be42d7b003ec56feb2f0a3bb7a45a464a | 231967091a3a8167fc1ef296b013008dbde99c2b | refs/heads/master | 2023-03-07T07:55:10.746462 | 2021-02-24T03:39:56 | 2021-02-24T03:39:56 | 341,301,722 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | from datetime import datetime, timedelta
import json
import boto3
from botocore.exceptions import ClientError
import os, sys
import time
sys.path.append(os.path.join(os.path.dirname(__file__), '../..'))
from test.consumers.localconfig import config as kinconfig
def get_kinesis_data_iterator(stream_name=None, minutes_... | [
""
] | |
8297c1cd649f32897877433fe43a585f83a07d0a | 63d6ca98653d2b77691960a5a1af21795e7d752e | /main.py | a04c2fe5dce205b32a788c6a959dada2adc10159 | [] | no_license | LeoKavanagh/dublin-forecast | 19eff1393fa722985ab957d58295d86df299b592 | 722d3fdbc388114750fee17454d6e77f6829cd82 | refs/heads/master | 2023-08-03T21:56:55.752057 | 2022-12-10T23:59:35 | 2022-12-10T23:59:35 | 233,704,646 | 0 | 0 | null | 2023-07-25T20:48:51 | 2020-01-13T22:13:57 | Python | UTF-8 | Python | false | false | 635 | py | import os
import requests
from lxml import html
def get_dublin_forecast():
url = 'https://www.met.ie/forecasts/dublin'
page = requests.get(url)
tree = html.fromstring(page.content)
dublin = tree \
.xpath('/html/body/div/div[1]/section'
'/div/div[1]/div[1]/p[4]/text()')[0] \
... | [
"leok90@gmail.com"
] | leok90@gmail.com |
20854815fa9eda8c5b3834f842d820c263c2b27d | f6e0761d8e95bf274a058437803607c6bc9fe473 | /algos/train.py | 1b6be98fb351a6b25ddc4e1f1faeecf5898e06e5 | [
"Apache-2.0"
] | permissive | HekpoMaH/algorithmic-concepts-reasoning | b6c54e4d64e7801b08429941c3949225b1046f13 | 17c87faad2fbe8481455de34a145a4753a2fe4d0 | refs/heads/master | 2023-06-29T18:46:39.134524 | 2021-07-15T16:30:44 | 2021-07-15T16:30:44 | 384,510,679 | 25 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,361 | py | """
Script to train models.
Usage:
train.py [--algos=ALGO]... [options]
Options:
-h --help Show this screen.
--use-TF Use Teacher Forcing or not during training. Not
using it, would add a GRU cell at the GNN update
... | [
"dobrikg666@gmail.com"
] | dobrikg666@gmail.com |
8eeaa0ca64e1bf2b2d43b5a3ce16af064f666d4a | 67a442ecabcdca9f54f5920874d0095d57f98ede | /gewittergefahr/gg_utils/dilation_test.py | ffb5a2725b02b9dd7ffdc08e4b856685a7be3f54 | [
"MIT"
] | permissive | thunderhoser/GewitterGefahr | 58ba3446c1cc154f56c12c4354dff05b34c12b13 | 1835a71ababb7ad7e47bfa19e62948d466559d56 | refs/heads/master | 2022-07-23T06:47:13.883598 | 2022-07-15T12:43:48 | 2022-07-15T12:43:48 | 104,016,785 | 29 | 13 | MIT | 2020-12-18T20:44:33 | 2017-09-19T02:37:21 | Python | UTF-8 | Python | false | false | 2,662 | py | """Unit tests for dilation.py."""
import unittest
import numpy
from gewittergefahr.gg_utils import dilation
TOLERANCE = 1e-6
SMALL_PERCENTILE = 12.5
LARGE_PERCENTILE = 87.5
DILATION_HALF_WIDTH_IN_PIXELS = 1
INPUT_MATRIX = numpy.array(
[[-20., -15., -10., -5., 0.],
[-10., -5., 0., 5., 10.],
[0., 5., 10.... | [
"ryan.lagerquist@ou.edu"
] | ryan.lagerquist@ou.edu |
c24903effb648177524e2e48f7b0d39f7732c27d | 541b606962881272c7899415a9208bca3a0ff901 | /Project2/detection/yolo3/utils.py | 4a378f7c12a23d65947f6b210d119dce708111b0 | [] | no_license | Caramelo18/VCOM-Projects | 7c11b10c7a380952a01152c28db4211ae85a42d0 | e024b6e10f725e5ee66b614548738c8eed8bb10e | refs/heads/master | 2020-04-02T13:25:53.238629 | 2019-01-08T17:09:49 | 2019-01-08T17:09:49 | 154,480,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,875 | py | """Miscellaneous utility functions."""
from functools import reduce
from PIL import Image
import numpy as np
from matplotlib.colors import rgb_to_hsv, hsv_to_rgb
def compose(*funcs):
"""Compose arbitrarily many functions, evaluated left to right.
Reference: https://mathieularose.com/function-composition-in-... | [
"fabiocaramelo18@gmail.com"
] | fabiocaramelo18@gmail.com |
0fdc9e6d551890e0e2a34dc9116c567f50767d41 | adafccfb21985ddd6a88c9459d6391d04e3e5e26 | /kojima.py | 3db3571067ac137b5021f5bea0f1122fb8267cde | [] | no_license | Hose270/Kojima-Name-Generator | a79db503d0a4f9c1b8b21c83e87b16bf7dd8f33e | ba2e1be5a8f59bf098254a44909f7d0ee18b48e5 | refs/heads/master | 2020-09-08T09:28:33.595272 | 2019-11-12T00:18:22 | 2019-11-12T00:18:22 | 221,094,178 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,863 | py | import random
print("Welcome to the Automated Kojima Name Generator.")
print("As a Kojima character, you may have multiple names.")
print("Determining how many names you have...")
randnum1 = random.randrange(1,6)
if randnum1 == 6:
print("You have one name and six alternate names. After completing this gener... | [
"noreply@github.com"
] | Hose270.noreply@github.com |
b940481b0759bcba75f4f7b4bdfb26031e028840 | 8d9cd15eee6013461f02b9aa46f0ac792c0a0acb | /GLUECode_Service/ML_Utils/__init__.py | 089108a38548b446c8ef758fd784b5089a4b4e53 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lanl/GLUE | c8f3e942b0be11054bc48cb46f4bcb730920eea0 | 4241b581a4544b6ee50803f8b51ccabfb15d1b0e | refs/heads/main | 2023-04-06T14:56:28.340056 | 2022-12-07T14:55:16 | 2022-12-07T14:55:16 | 476,812,171 | 3 | 6 | NOASSERTION | 2022-12-23T17:45:49 | 2022-04-01T17:29:17 | Python | UTF-8 | Python | false | false | 38 | py |
import nn_learner
import rf_learner | [
"apachalieva@lanl.gov"
] | apachalieva@lanl.gov |
a39a3955c32ebd19a52c15a123063afe5b0c659f | 9d9897f6a400f13945e6f45114dd2b528e171269 | /Data Structures and Algorithms/First Index Of Element Using Recursion Using Index.py | 2fc7c50978aac559d9466f789dfecb97a199ed7f | [] | no_license | shahbaz181990/MyPythonCodes | 4b56d4cc6ce4adf1513f5021a64fc7da474e62f1 | 5650f69e29622b55412d45d5cd4ff36d5d7bef77 | refs/heads/master | 2022-12-17T09:25:55.722137 | 2020-07-07T06:56:33 | 2020-07-07T06:56:33 | 277,568,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | def firstIndex(arr, x, si):
l = len(arr)
if si == l:
return -1
if arr[si] == x:
return si
op = firstIndex(arr, x, si + 1)
return op
# Main
from sys import setrecursionlimit
setrecursionlimit(11000)
n=int(input())
arr=list(int(i) for i in input().strip().split(' '))
si = int(input())... | [
"shahbazshaikh1990@yahoo.com"
] | shahbazshaikh1990@yahoo.com |
570d5e82d5c6785c52442478d82a296869969b12 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/authorization/v20180501/policy_set_definition_at_management_group.py | 319473b88f6f90a3be594135a1f64be8fef76212 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 16,443 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
02a16f9146f626fe8d119a1d7df6c6e3e0c3e5cf | 4793cd9fff4d7f2f34e08880e657f886d0089879 | /obtineDescriptoriExemplePozitive.py | 02ee47a2261bc23ce9373c6133f2e7c461115160 | [] | no_license | SurrealEverything/Face-Detection | f2379b5d620b93bb89965ee37d0da9371e154516 | 28011ab4976b99142683c360c18c099105ae2a03 | refs/heads/master | 2020-04-15T01:55:38.351893 | 2019-01-11T19:27:42 | 2019-01-11T19:27:42 | 164,296,619 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 25 15:17:55 2018
@author: gabriel
"""
import numpy as np
import cv2
import pathlib
def obtineDescriptoriExemplePozitive(parametri):
"""
descriptoriExemplePozitive = matrice NxD, unde:
N = numarul de exemple pozitive de antrenare (fet... | [
"noreply@github.com"
] | SurrealEverything.noreply@github.com |
544770342c2dde735ba79dafcd7ca0d7bf54d5d1 | 5a613faa4b257add5c5d057c3dbabcdd39e66a2c | /config.py | 53afe3ba4e9f3cb05a52c5b4857b0e2404d8fd9b | [] | no_license | mmk687/mysql_scanner | 7e227c37498dc5bf75c50cf7a1cf4d9405257275 | 06c18d09f6e137783aa1c35d0a2d5c1aa3c9a818 | refs/heads/master | 2020-06-19T12:25:23.803088 | 2019-06-23T15:54:01 | 2019-06-23T15:54:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py |
""" 运行设置 """
ipcmd = "3306.txt"
port = 3306
usercmd = "dic_username_mysql.txt"
passcmd = "dic_password_mysql.txt"
THREAD = 20
TIMEOUT = 1.0
PRINTALL = 1
""" 数据库设置 """
# ----- 1 主机连接信息
HOST = "119.3.55.220"
PORT = 6789
USER = "4287e7ae11008807e536c6283f82ea2f"
PASSWORD = "2tU4yyHkwu"
# ----- 2 数据库... | [
"juaran@foxmail.com"
] | juaran@foxmail.com |
ee390771c7eb19d64e83a1321f36e47b1cc370e0 | 3a3f4477a517c9757432042ceb4939f37762c2a4 | /PatternMatching/pattern.py | fbf0b7c65a6264e02d5feb7ad865bf5fce72d855 | [] | no_license | marathohoho/leetcode-progress | f351ad89905c8e61fd5b5adff62320ce8ba9645d | 13b298c1074328c130724e328d7c22be642903cb | refs/heads/master | 2020-12-24T01:39:15.117334 | 2020-04-06T20:20:16 | 2020-04-06T20:20:16 | 237,339,061 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,823 | py | """
You are given two non-empty strings.
The first one is a pattern consisting of only "x"s and / or "y"s; the other one is a normal string of alphanumeric characters.
Write a function that checks whether or not the normal string matches the pattern.
A string S0 is said to match a pattern if replacing all "x"s in the p... | [
"codmarat@gmail.com"
] | codmarat@gmail.com |
a982750f34a5889801079883f97dd27aad027d9e | 813ab64cfaba9b543c7b2df38b7217e4f484b6c8 | /recip/storage/Storage.py | 3578c675d02dfa972bd3661e0338f21bbe475033 | [
"MIT"
] | permissive | anthonybuckle/Reciprocity-Core | 83089b41e00af532c440b6676b6d901fb9ea1b73 | 3254073f44e8fe2222aed9879885a2e609d4044a | refs/heads/main | 2022-12-25T18:00:19.476519 | 2020-10-03T19:37:35 | 2020-10-03T19:37:35 | 300,916,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,200 | py | from threading import Lock
from recip.util import Config
from recip.util import DataType
from recip.util import Log
import lmdb
class Storage:
def __init__(self, database, subDatabase=None):
self.database = database
self.subDatabase = subDatabase
self.db = None
self.subDb = None
... | [
"anthonybuckle@Anthonys-MacBook-Air.local"
] | anthonybuckle@Anthonys-MacBook-Air.local |
70c71c2ad3631f21a4c22b0233a232f9a6806161 | 9a4e0678a30e8f187663f10c287af4bfa8778f46 | /pypeline/utils.py | 692003fef3e4b2ba144e1c7fb5817e2b260a9f7a | [] | no_license | t00n/pypeline | 0dafb571c74250c2441c99441125b06eca5ece51 | a8e48ff1545b1e622b9f37cd237c94c7a874ffd6 | refs/heads/master | 2020-03-15T12:21:46.485907 | 2018-05-29T14:39:44 | 2018-05-29T14:39:44 | 132,142,091 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | from datetime import datetime
from dateutil.parser import parse as date_parse
def to_datetime(d):
if isinstance(d, str):
return date_parse(d)
elif isinstance(d, int) or isinstance(d, float):
return datetime.fromtimestamp(d)
elif isinstance(d, datetime):
return d
else:
... | [
"kelkununtel@hotmail.com"
] | kelkununtel@hotmail.com |
39d1538ea860dc25dadc47eab812b0f96ef7a6e8 | 8ba5b57e191312601d0324e58dd2c59d1ed9c821 | /bifrost/__init__.py | bda370a45a0f621ffebfdab8c47ebe90707f77a3 | [] | no_license | gutierrydsn/bifrost-httpserver | 105b0ee6b778b9cbe0407d8e2c13989928f3a478 | 29513f3fac1b6e920dd2687ed10baa6de83311e2 | refs/heads/master | 2021-10-26T00:36:32.591566 | 2019-04-09T00:51:38 | 2019-04-09T00:51:38 | 121,187,929 | 1 | 1 | null | 2018-02-22T14:20:12 | 2018-02-12T01:56:19 | Python | UTF-8 | Python | false | false | 26 | py | VERSION = (0, 1, 0, None)
| [
"gutierrydsn@hotmail.com"
] | gutierrydsn@hotmail.com |
22dc3c5bbcba175591d6beefbe7927a9a8a90906 | b632d8cb122e098945e70f608517b2715eaee224 | /services/facedetection/facedetection_fromwebcam.py | 3ac452cde7de80eaae2e8fef4517f1d73220bc4f | [
"Apache-2.0"
] | permissive | lordlothar99/angus-doc | 0155cc109487593853e90f4757a1693f06db9427 | 75b9b955ae273f634c8f91016859d9f30c74f0d6 | refs/heads/master | 2021-01-14T08:34:49.084929 | 2015-07-22T14:21:10 | 2015-07-22T14:21:10 | 39,728,683 | 0 | 0 | null | 2015-07-26T14:39:05 | 2015-07-26T14:39:04 | null | UTF-8 | Python | false | false | 1,364 | py | #!/usr/bin/env python
import cv2
import angus
if __name__ == '__main__':
### Web cam index might be different from 0 on your setup.
stream_index = 0
cap = cv2.VideoCapture(stream_index)
if not cap.isOpened():
print "Cannot open stream of index " + str(stream_index)
exit(1)
pr... | [
"gwennael.gate@angus.ai"
] | gwennael.gate@angus.ai |
11bd179b9acf6d6f2616212cfc4986320e7d7bfd | 0b060b277b25a96df124657e24839c64df685594 | /manage.py | 1481c6e260e0f48afa22beb3ef4fe04094b77a38 | [] | no_license | xaw-roz/Django-twitter-data-analysis | 3f2f28eb4fcc9e514e83d5f700be317ff808333e | aac5923ef2def79863d9ab06278c10cd08096b4b | refs/heads/master | 2020-03-19T09:10:59.711639 | 2018-06-07T03:29:48 | 2018-06-07T03:29:48 | 136,266,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "twitter_data_collector.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't impo... | [
"rockstar_saroj@yahoo.com"
] | rockstar_saroj@yahoo.com |
ec0d9251a4520617eda6e97e4858c66f73191954 | 66225270641e3b96ef88ce8d940e5a1b36e74460 | /user_app/api/permissions.py | 10e224f3921b8645f542f77f715ff36511bdf972 | [] | no_license | illiasibrahim/backend-via | dcf9b6e4350951b1f67bbb15dd0710f03521e3e3 | a832c52b965542fc9e84fbb0b7ee319521787735 | refs/heads/master | 2023-08-10T20:13:14.220933 | 2021-10-13T06:09:03 | 2021-10-13T06:09:03 | 416,613,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from rest_framework import permissions
class IsAddressAuthor(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
return obj.user == request.user | [
"illiasibrahim6@gmail.com"
] | illiasibrahim6@gmail.com |
e8bcb3b3cb93588bc8e232a2e53e655898b06d78 | 21da99050c676819660dbd138f4ecbc64b470c22 | /demo1.py | c73c6ea0e84e760d5535a12917c270d1730ef6bc | [] | no_license | ChaconFrancoLuis/Academia-Repo-Disenos | b8efe94d4661aa785a8ff366b220bed6b5597133 | aa1b1f6b2c26443bad7b2118fb163dfe2c92c926 | refs/heads/master | 2022-11-10T10:16:39.227824 | 2020-07-10T02:17:13 | 2020-07-10T02:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py |
Ios_device = {"address":"192.168.0.11",
"netconf_port":830,
"retconf_port":443,
"username":"cisco",
"password":"cisco123!"}
| [
"francofer7775@gmail.com"
] | francofer7775@gmail.com |
3362ddcbb92b322290f4639c343a80ac56165d15 | a94be4b6b68f293f7ec546cae40dc25515352a8c | /worthy_service/catalog_service.py | c09af1a432fe1b0cce40a44cefaaa85f326ed7bc | [] | no_license | denniszhoujian/worthyback | bbd7129adaf96b5a16149553ad82d5f70b7afbb2 | d55ebde09574078a96d44919b79fa6e273c92999 | refs/heads/master | 2021-01-21T14:04:25.536192 | 2016-05-31T12:47:30 | 2016-05-31T12:47:30 | 45,192,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,402 | py | # encoding: utf-8
import dbhelper_read
import sku_index_access,sku_service, service_config
from datasys.memcachedHelper import memcachedStatic
from worthy_analytics import common_analytics
from utils import regex_dict_helper, collection_utils
mc = memcachedStatic.getMemCache()
P_VALUE_BLACK_LIST = [
u'其他', u'其它'... | [
"271393@qq.com"
] | 271393@qq.com |
24c25ead6a54afb83aaae32793c5fe1b094a1445 | bb57ff81cd01e6c62e8f1ef47a6e172424cb8675 | /NLP Specialization/NLP with Probabilistic models/Week 1/Auto_Correct.py | ac9f53dac9002a95b6cf3489c36f5c4bb02f1e63 | [] | no_license | RohitRathore1/Repo-2020 | b6dd87a25e714e3be3bfd76b1f0d04515be75de5 | 8c36669bcecb74ef6a962f71fd8038c443204c30 | refs/heads/master | 2022-11-23T23:12:02.120981 | 2020-07-29T06:36:51 | 2020-07-29T06:36:51 | 251,401,730 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,574 | py | #!/usr/bin/env python
# coding: utf-8
# # Assignment 1: Auto Correct
#
# Welcome to the first assignment of Course 2. This assignment will give you a chance to brush up on your python and probability skills. In doing so, you will implement an auto-correct system that is very effective and useful.
# ## Outline
# - [0... | [
"rohitrathore.imh55@gmail.com"
] | rohitrathore.imh55@gmail.com |
6801916cae044b832c140f900cb07a3e20edc420 | a239b724547ee54281d797e6cbc39716a1f0b7c5 | /Day01-15/Day13/code/mytest.py | 2bb944f5b4e8a715c76763ba9b4c4497c36a2b75 | [] | no_license | Zhaohl2019/Python-100-Days | 967545483a36e4abd5c2ce585798c86ed221acb6 | 398819389c0de8e984560f679c5b00f7b854a1d8 | refs/heads/master | 2020-05-29T13:29:58.600144 | 2019-07-20T08:02:15 | 2019-07-20T08:02:15 | 189,164,387 | 0 | 0 | null | 2019-05-29T06:31:48 | 2019-05-29T06:31:47 | null | UTF-8 | Python | false | false | 985 | py | from multiprocessing import Process, Queue
from random import randint
from time import time
def task_handler(curr_list, result_queue):
total = 0
for number in curr_list:
total += number
result_queue.put(total)
def main():
processes = []
number_list = [x for x in range(1, 100000001)]
... | [
"zhaohl1998@163.com"
] | zhaohl1998@163.com |
287bfff4c301f0789b34977c1307afdf42f0f6b5 | ac2229b4657e69b1502b9fd6760c089410e035e3 | /33. pascalTree.py | 1be8d7237f1891126824dfc384b7e3de2ba14dd0 | [] | no_license | ankitk2109/LeetCode | 4a192804d69f3f056838a46ede29a79e0d2adc45 | 1ed647982e9b5ee9af0a2e2dd905461a010d2dfb | refs/heads/master | 2021-07-04T11:00:10.497368 | 2021-05-09T11:43:46 | 2021-05-09T11:43:46 | 232,608,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | #PS: https://leetcode.com/problems/pascals-triangle/submissions/
class Solution:
def generate(self, numRows: int) -> List[List[int]]:
res = []
if numRows == 1:
return [[1]]
for i in range(1,numRows+1):
cur_row = [1]*i #initializing all t... | [
"ankitk2109@gmail.com"
] | ankitk2109@gmail.com |
e1693fa0ce8a01fcb25ae182cd11423517e0f616 | b12ffed1e2ee4ad8bf74abb412e772aad2a195d8 | /data_wrangle/src/parse_excel.py | 1adfe06ab50c3769a13d761c3cb8c2a73ca22385 | [] | no_license | scuate/MOOC | 744f4ea2b53f47a4109251f6d82b1f462b025595 | f72018171ac7565d4251c0f89319e20c3ab0fbc8 | refs/heads/master | 2020-06-09T06:20:37.040541 | 2015-12-28T01:42:01 | 2015-12-28T01:42:01 | 37,950,045 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,646 | py | ##get the max loads across all stations in the xls datafile
import xlrd
import os
import csv
from zipfile import ZipFile
datafile = "2013_ERCOT_Hourly_Load_Data.xls"
outfile = "2013_Max_Loads.csv"
def open_zip(datafile):
with ZipFile('{0}.zip'.format(datafile), 'r') as myzip:
myzip.extractall()
def par... | [
"xuexiaosu@gmail.com"
] | xuexiaosu@gmail.com |
2282c152c06546a82f340c485eafb5b3ed595424 | f124cb2443577778d8708993c984eafbd1ae3ec3 | /saleor/graphql/checkout/mutations/__init__.py | 7718967b325810e573ce4fd4fe617dcc87905933 | [
"BSD-3-Clause"
] | permissive | quangtynu/saleor | ac467193a7779fed93c80251828ac85d92d71d83 | 5b0e5206c5fd30d81438b6489d0441df51038a85 | refs/heads/master | 2023-03-07T19:41:20.361624 | 2022-10-20T13:19:25 | 2022-10-20T13:19:25 | 245,860,106 | 1 | 0 | BSD-3-Clause | 2023-03-06T05:46:25 | 2020-03-08T17:44:18 | Python | UTF-8 | Python | false | false | 1,556 | py | from .checkout_add_promo_code import CheckoutAddPromoCode
from .checkout_billing_address_update import CheckoutBillingAddressUpdate
from .checkout_complete import CheckoutComplete
from .checkout_create import CheckoutCreate
from .checkout_customer_attach import CheckoutCustomerAttach
from .checkout_customer_detach impo... | [
"noreply@github.com"
] | quangtynu.noreply@github.com |
838f2f8902ca4fdcf743b209c0a1ff7c7ab3412d | 229ed0dad61f9e855de604c230d034a0bd9b3882 | /EdabitPractice/evenOddCounter.py | 06c675245b08e406cfb9c3b1124f90e1dd4de379 | [] | no_license | Darrenrodricks/EdabitPythonPractice | 987d534dd149ddaef6219df381df850eabbe80b2 | c1be8b10a6fcc1085640a1128f022c05fb2890a9 | refs/heads/main | 2023-07-17T00:36:43.772435 | 2021-08-31T16:24:07 | 2021-08-31T16:24:07 | 400,630,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | # Python program to count Even and Odd numbers in a List
# Input: list1 = [2, 7, 5, 64, 14]
# Output: Even = 3, odd = 2
a = 0
b = 0
list1 = [2, 7, 5, 64, 14]
for i in range(0, len(list1)):
if i % 2 == 0:
a += 1
else:
b += 1
print("There are {} Even, and {} Odd".format(a, b)) | [
"noreply@github.com"
] | Darrenrodricks.noreply@github.com |
22393b19c5fb7be5e9fe08ffa8f211847a997248 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/network/v20201101/get_load_balancer.py | fd9af3d72c16c5bbcb5d9fd47aa696d0901401e7 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,378 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
9cca242910678dbdb4fce620cc6f69091f65087c | 539b031a4edd1aec31af5b6658f25a0de03776a4 | /strings_and_text/sub_re_groups1.py | b91fbc11289d3b5f5a17a2b714d35dde5bec785c | [] | no_license | leogtzr/python-cookbook-code-snippets | c517e7f14e468e1aa8def71d3389348150d43085 | a3f189c26ba38bc982dd140b3b4d6326b39671dc | refs/heads/main | 2023-01-23T07:16:30.292456 | 2020-11-28T04:29:42 | 2020-11-28T04:29:42 | 309,217,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | import re
from calendar import month_abbr
def change_date(m):
mon_name = month_abbr[int(m.group(1))]
return '[{}] ({}) |{}|'.format(m.group(2), mon_name, m.group(3))
datepat = re.compile(r'(\d+)/(\d+)/(\d+)')
text = 'Today is 11/27/2012. PyCon starts 3/13/2013.'
# a substitution callback function
print(dat... | [
"leogutierrezramirez@gmail.com"
] | leogutierrezramirez@gmail.com |
49f6016496073d31808c5ceda4ff0bb6ac102c09 | 974c5a4f101d0e6f4dfa5fc2f7c641c9d2bd8184 | /sdk/ml/azure-ai-ml/tests/compute/unittests/test_compute_operations.py | ecfc11bd07cf4aafd9e8a34abaa324d6be10f0af | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | gaoyp830/azure-sdk-for-python | 4816f04c554dcffb7510a6b7044b0c86a2dd32e1 | 1c66defa502b754abcc9e5afa444ca03c609342f | refs/heads/master | 2022-10-20T21:33:44.281041 | 2022-09-29T17:03:13 | 2022-09-29T17:03:13 | 250,355,505 | 0 | 0 | MIT | 2020-03-26T19:42:13 | 2020-03-26T19:42:12 | null | UTF-8 | Python | false | false | 4,501 | py | from typing import Callable
from unittest.mock import Mock
import pytest
import vcr
from pytest_mock import MockFixture
from azure.ai.ml import load_compute
from azure.ai.ml._scope_dependent_operations import OperationConfig, OperationScope
from azure.ai.ml.entities import AmlCompute, Compute, ComputeInstance, Identi... | [
"noreply@github.com"
] | gaoyp830.noreply@github.com |
0998ba915d80be9aaf99b9cef30acdb467528d1c | 2e145222a18d4509d937951f5cec4df0e26ee86f | /vas/gemfire/CacheServerInstances.py | 9405a719dd10335d0ccd1c552ba07c8a6ef1c57d | [
"Apache-2.0"
] | permissive | vdreamakitex/vas-python-api | 7627b7e3fcf76c16b1ea8b9fb670fdb708eff083 | ce7148a2044863e078e78b47abbaafc426f732ee | refs/heads/master | 2021-01-18T05:13:25.459916 | 2012-11-05T09:58:45 | 2012-11-05T09:58:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,867 | py | # vFabric Administration Server API
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
#
# 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
... | [
"bhale@vmware.com"
] | bhale@vmware.com |
f89f1ded358f684cfea5a04737b4a6369bd9f99b | b2f7d3c8b8e5eee108a600b611183bdb5c0399da | /GIT/Data Structures/Chess Board/knight_tour.py | e6ced2bee0f84ab08c5534243fc53565c3122703 | [] | no_license | yellowRanger1111/Algorithm-and-Data-Structures | ca39566d8d4236bcaffe1a12fff18a1e24eaa760 | 0f3a2ebb6309e46117de66e5b4c799f70f6ec9cb | refs/heads/main | 2023-09-03T09:22:27.248617 | 2021-10-16T07:09:14 | 2021-10-16T07:09:14 | 417,740,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,840 | py | #getting the tour class
from tour import Tour
#creating the knight object
knight = Tour()
#initialize the loop
quitted = False
# knight.move_knight(2,1)
# knight.move_knight(2,5)
# knight.show_tour()
# knight.delete_pos((2,5))
# knight.show_tour()
while not quitted:
#what the user want to do?
... | [
"noreply@github.com"
] | yellowRanger1111.noreply@github.com |
9f6fbd9a7403ab1554b410967fdf106ad6d85420 | 1a3f53438a1597b4aa930c91740cd8db72c66fcf | /payments/models.py | 42a4c7e5491d02b81fe035af576d7ac0ccf6cfc8 | [] | no_license | milad-ghr/strips_project | de898afef145cccb149f4f68794dc61831ee03f8 | ddc985b36fc704aa803ee82dfbc271b8fd5794ec | refs/heads/master | 2023-07-15T09:10:52.572753 | 2021-08-26T12:21:33 | 2021-08-26T12:21:33 | 399,731,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,111 | py | from django.db import models
from django_cryptography.fields import encrypt
from products.models import Product
from users.models import Subscription, StripsCustomer
class PaymentsManager(models.Manager):
pass
class PaymentsManagerWithNoDeleted(models.Manager):
def get_queryset(self):
return super... | [
"gholamrezaei.milad@gmail.com"
] | gholamrezaei.milad@gmail.com |
53bc8edebb6fabc73a2cacad23ca6d8b08fa9b0a | 16450d59c820298f8803fd40a1ffa2dd5887e103 | /baekjoon/2667.py | b85ee7659586696418e866ced977042046429337 | [] | no_license | egyeasy/TIL_public | f78c11f81d159eedb420f5fa177c05d310c4a039 | e2f40eda09cb0a65cc064d9ba9b0e2fa7cbbcb38 | refs/heads/master | 2021-06-21T01:22:16.516777 | 2021-02-02T13:16:21 | 2021-02-02T13:16:21 | 167,803,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,257 | py | """
<그림 1>과 같이 정사각형 모양의 지도가 있다. 1은 집이 있는 곳을, 0은 집이 없는 곳을 나타낸다. 철수는 이 지도를 가지고 연결된 집들의 모임인 단지를 정의하고, 단지에 번호를 붙이려 한다. 여기서 연결되었다는 것은 어떤 집이 좌우, 혹은 아래위로 다른 집이 있는 경우를 말한다. 대각선상에 집이 있는 경우는 연결된 것이 아니다. <그림 2>는 <그림 1>을 단지별로 번호를 붙인 것이다. 지도를 입력하여 단지수를 출력하고, 각 단지에 속하는 집의 수를 오름차순으로 정렬하여 출력하는 프로그램을 작성하시오.
> input
첫 번째 줄에는 지도의 크기 N(정... | [
"dz1120@gmail.com"
] | dz1120@gmail.com |
e8c2786ad69cfccec2ad37b66382443519baed1a | 59fb17c240b261040026d713a6ac9c97d6a9f265 | /gym/gym/envs/registration.py | 18519749167fe193d8d2cb3b3348653ae837fd17 | [
"MIT"
] | permissive | dmeger/TeachingImitation | 3fb97499e76929959913266f127154f6ae5a8e99 | 5f4dba7e49987924c3d55cd27579cad4c71ef7a4 | refs/heads/master | 2023-03-28T13:25:01.307382 | 2021-04-06T15:07:08 | 2021-04-06T15:07:08 | 355,223,500 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,883 | py | import re
import copy
import importlib
import warnings
from gym import error, logger
# This format is true today, but it's *not* an official spec.
# [username/](env-name)-v(version) env-name is group 1, version is group 2
#
# 2016-10-31: We're experimentally expanding the environment ID format
# to incl... | [
"david.meger@gmail.com"
] | david.meger@gmail.com |
c5b2feb974eeccc764b107a02ec1e4787afc5347 | 25724c6023af28e720e0be24c265ac30b5552eb8 | /base/convertor.py | 889585323ed605ebefb17cc6109405832c4d911f | [] | no_license | imyelo/sudoager | 81e59170d64da9614901dcbb997d5a4a89da33df | b10cc197bb6a4cfd302aa80f811b5e106a02e2c1 | refs/heads/master | 2016-09-05T18:16:11.209845 | 2012-12-26T07:49:48 | 2012-12-26T07:49:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,521 | py | #coding=utf-8
# Filename: convertor.py
import math
# --Convertor--
# Decimal to Ternary
def getTer3(i, base=3):
return int(math.floor(i / (base ** 3)) % base)
def getTer2(i, base=3):
return int(math.floor(i / (base ** 2)) % base)
def getTer1(i, base=3):
return int(math.floor(i / base) % base)
def ge... | [
"zhihuzeye@gmail.com"
] | zhihuzeye@gmail.com |
926a6e5c2f8e14ca41571537b899f12932268bbd | 5258903bb9cdeedf13a7101aa98e82c915914974 | /curriculum/migrations/0001_initial.py | d9ad40787e5dfc4ba0c58df54e9178a4392de19e | [
"BSD-2-Clause"
] | permissive | ZuluPro/django-cv | 7328e4f3e30ecfef7c5e6e598d5b95986ed7dbe9 | 64a7fda155d7052642484ebc9a7e7822d73ea1b0 | refs/heads/master | 2020-05-29T18:12:29.262859 | 2016-06-12T23:13:11 | 2016-06-12T23:13:11 | 45,745,590 | 10 | 6 | null | null | null | null | UTF-8 | Python | false | false | 29,493 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import curriculum.models.utils
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Certification',
fields=[
... | [
"montheanthony@hotmail.com"
] | montheanthony@hotmail.com |
99efb5dfc673fb87e757158b477d4a8646110efb | 3ba314ca88e89dded85a3448e730e215c47f3ceb | /allSkyImagingModule/other/plotBaselines.py | 2c3c09dff5104d0bbd0786c6549548e32e0cdff4 | [] | no_license | David-McKenna/allSkyImaging | 9f3dc5984541a6d39617dd5fd583654d0901d685 | e20a4bb48cca7814c32326177c121e149664764c | refs/heads/master | 2021-07-06T11:28:58.345222 | 2019-02-06T13:21:06 | 2019-02-06T13:21:06 | 166,459,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,067 | py | """Summary
Attributes:
custom_debug (list): Debug list of activated station, increasing in order from 0 to 15 to ensure correct selections
Effelsberg_elements_20091110 (list): Effelsberg HBA tile activations
Generic_International_Station_20091110 (list): Generic HBA tile activations
"""
import matplotlib.p... | [
"mckennd2@tcd.ie"
] | mckennd2@tcd.ie |
e6a1d1e2537da737dd5945f13b9c80f2178437ad | 0c6bacd871337375c0c67dae003ebebd3bd58da3 | /ReadnPlot_CourtCaseData_Boxplt.py | 1f454b3e8f220a01451f23fd792f33043d1990cc | [] | no_license | 7676444908/Python_Plots | 3ac3354bae72c07ab9afcf1896755ed3398684b4 | d8627634995a2705991bee99bda3cca952027a73 | refs/heads/main | 2023-08-31T13:22:59.394302 | 2021-10-02T07:59:19 | 2021-10-02T07:59:19 | 412,438,017 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | #import library
import pandas as pd
import matplotlib.pyplot as plt
#add csv file to dataframe
df = pd.read_csv('LIMBS_Ministry_Wise_Court_Case_Data_2021.csv')
#create boxplot
boxplot = df.boxplot(figsize = (5,5))
plt.show()
plt.savefig('MinistryVsTotalNumberOfcases_Boxplt.png')
| [
"noreply@github.com"
] | 7676444908.noreply@github.com |
84f1a5a4a81545c54e619e1ab0d7d893f0d61d84 | 4fbf4a6583f5df66d2b0e7b0c4b2016fc83dff78 | /neural_network/network_module.py | 22dff58d2149ecb253d4b994843414840f93c13d | [] | no_license | jkwrobel/soft-glowing-potato | 39819c795b26a2dc6e4ff460a171debebeba14e1 | ed927826cc0a99a2ffb5c45c35db15c61ecfd36b | refs/heads/master | 2023-09-02T06:17:32.456944 | 2021-10-23T10:49:51 | 2021-10-23T10:49:51 | 414,573,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | import numpy as np
class Network:
def __init__(self):
self.layers = []
def add_layer(self, layer):
self.layers.append(layer)
def use_trained_network(self, input_data):
samples = len(input_data)
result = []
for i in range(samples):
output = input_data[... | [
"anita.tereszczuk@gmail.com"
] | anita.tereszczuk@gmail.com |
6229d71ac4298b44124dd4b8e60fbc94f362f721 | 22f57701df31b3182f3bcb83da729ecc584f8fb6 | /December-12/py_anuppriya_revsinglylinkedlist.py | eca33e40110bce5169894193a53714e455c02d79 | [] | no_license | Prashant-Bharaj/A-December-of-Algorithms | e88640c711abbe2e6cac71cb4652dac243984484 | 7bbd56572f4ddc9648e90615ee810765544c56e4 | refs/heads/master | 2023-08-05T15:37:20.362561 | 2021-09-19T05:51:53 | 2021-09-19T05:51:53 | 287,055,360 | 0 | 0 | null | 2020-08-12T15:53:05 | 2020-08-12T15:53:04 | null | UTF-8 | Python | false | false | 995 | py | class Node:
def __init__(self, data):
self.data = data
self.next = None
class LinkedList:
def __init__(self):
self.head = None
def reverse(self):
prev = None
current = self.head
while(current is not None):
... | [
"noreply@github.com"
] | Prashant-Bharaj.noreply@github.com |
df9ace102e90996a035fceb143ada46c73bb9bc5 | ac0ccedfbe6270030347341a6befc850c2093af2 | /astropy/version_helpers.py | 35e569c6c793de91a81a2140d0f73088012aa424 | [] | no_license | pkaminski/sample | 99fa7bd638001890f38d261495dc8f858feb09a4 | c8d4fa1e951f73e1553fe3604bb5e77b62a6e52b | refs/heads/master | 2023-06-22T01:50:43.473811 | 2023-04-04T23:17:54 | 2023-04-04T23:17:54 | 21,379,740 | 1 | 5 | null | 2023-08-31T00:07:37 | 2014-07-01T08:02:32 | C | UTF-8 | Python | false | false | 8,461 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
##############################################################################
# Note: this file exists only for backward-compatibility purposes - the #
# contents have been moved to the separate astropy-helpers package, #
# located at... | [
"piotr@ideanest.com"
] | piotr@ideanest.com |
b744b470d15f349edecd402d6a31f8f606303fe8 | 999e60669f7ad086e452a21e40827af418220d9a | /scraper.py | 12b570cda4755c426777af632ae0f25cfa81c164 | [] | no_license | gouravrana7/Scrapping | 5fb88b77cb7b008fccd3eb812b308686b53ea921 | b7d3e68b725e592476e6601f25a7596b27590de2 | refs/heads/main | 2023-04-03T20:14:09.696318 | 2021-04-23T21:03:52 | 2021-04-23T21:03:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,792 | py | import requests
from bs4 import BeautifulSoup
import pandas
import argparse
import connect
parser = arg.ArgumentParser()
parser.add_argument("--page_num_max",help="Enter the number of pages to parse",type=int)
parser.add_argument("--dbname",help="Enter the name of db",type=str)
args= parser.parse_args()
oy... | [
"noreply@github.com"
] | gouravrana7.noreply@github.com |
60f07cd2e6c576a0f3a3b297e0f7597fded8febc | 7d431b02b5c3de04e72f1a6ba5059531232147dc | /rlockEjemplo1Fix.py | 6f3742b133b90a4b4a5bc3d4ba8b81ae11294e0b | [] | no_license | msunh/Concurrente_deadLocksClase3_2021 | 7c9aba8d5254665a302df6a97ce314a7d7861c36 | c4e7a7211cdbe09a352e2d46efe6efce7b79313f | refs/heads/master | 2023-05-30T20:10:40.252297 | 2021-04-24T00:00:24 | 2021-04-24T00:00:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | import threading
import logging
logging.basicConfig(format='%(asctime)s.%(msecs)03d [%(threadName)s] - %(message)s', datefmt='%H:%M:%S', level=logging.INFO)
lock = threading.RLock()
def funcA():
lock.acquire()
try:
logging.info(f'funcion A')
funcB()
finally:
lock.release()
def f... | [
"dbuaon@gmail.com"
] | dbuaon@gmail.com |
632adddee0bf6558d604dbfdf73b4728e404debc | e55531da9f55cd93b619431e4c162859e5e7be2e | /printing_file_args.py | 319873804564f86e2e13ac533a14654ae7b09fd0 | [] | no_license | rawatsandeep1989/git-branches | 69d77478d3b5de805268bc914e93a49d3e6a3af3 | b589e1b4bd3f372d58f5b738d821394ae99b00da | refs/heads/master | 2020-09-30T18:52:07.125462 | 2019-12-11T16:52:54 | 2019-12-11T16:52:54 | 227,351,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python3
import sys
print(sys.argv)
for i in range(len(sys.argv)):
if i==0:
print("Function name is %s :" % sys.argv[0])
else:
print("%d.argument %s:" % (i,sys.argv[i]))
print(sys.platform)
print(sys.version)
| [
"sandeepr@one.com"
] | sandeepr@one.com |
fe4a6346bcb9bbbbbfa99d1e0c34646eaaeeb80d | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/03_model_fitting/mlrRecon/607-tideGauge.py | 5d3a5857f4fc004b496e5aaa6fe495475221f2de | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,255 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 4 15:51:30 2020
----------------------------------------------------
This program is designed to reconstruct merra daily
maximum surge using MLR
----------------------------------------------------
@author: Michael Tadesse
"""
def reconstruct():
"""
run KFOLD me... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
e1e14c735947532850f9450d2694f3e8f7bca58d | 9bd755b248c0534b004eae999dbab7ee36ba219b | /oneDriveLinkGeneratorFromYAML | a3e8a8b1174011bf0d9fc7d18e5f139ad7743f0e | [] | no_license | ceberous/osxSettings | 2507c39bb7b2e2ac4ed9b8adb234f7d47095593c | add1e1cc64aa403f9d6922f5080b13b371cd9a4c | refs/heads/master | 2023-06-11T00:38:52.335759 | 2023-06-04T21:42:05 | 2023-06-04T21:42:05 | 186,904,141 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 539 | #!/usr/bin/env python3
# pip install pyyaml
import yaml
import sys
from pathlib import Path
def read_yaml( file_path ):
with open( file_path ) as f:
return yaml.safe_load( f )
def write_text( file_path , text_lines_list ):
with open( file_path , 'w', encoding='utf-8' ) as f:
f.writelines( text_lines_list )
inp... | [
"cerbus.collin@gmail.com"
] | cerbus.collin@gmail.com | |
0c952f5626c7a7187c2ce0175469a5ae5d62cbc9 | 26a0941b02286518e382fe86daa0dd5c0f596a9a | /stage_scenes.py | 26bf98175d74488c0e99843bcaa5d0d4709e9ced | [
"MIT"
] | permissive | Gargaran/videos | 729c3c7e91cb20e5377b5e397b3b90ea91e3f8a1 | 26458da42fc665eb4ae844168c16ebb0526cc231 | refs/heads/master | 2023-08-22T16:36:33.235479 | 2021-10-06T22:48:08 | 2021-10-06T22:48:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,104 | py | #!/usr/bin/env python
import inspect
import os
import sys
import importlib
from manimlib.config import get_module
from manimlib.extract_scene import is_child_scene
def get_sorted_scene_classes(module_name):
module = get_module(module_name)
if hasattr(module, "SCENES_IN_ORDER"):
return module.SCENES_I... | [
"grant@3blue1brown.com"
] | grant@3blue1brown.com |
c0df0c354149cb0ce8785e02e9e03415ce691339 | 159b858a5a3816ed1f42c4d28d24d6a12c48c7dd | /captioning/models/AttModel.py | 0ae51374aace5e35c899bf74ac4e5ee2eef8780e | [] | no_license | gnehz/Image-Captioning-Attack | 23c95bfa2128355ce2668f67b93a6dcf790bc9a5 | 25f28b7aa9b7aa2c7367a00fb1ccc6392c8a9f05 | refs/heads/main | 2023-03-20T21:46:11.781330 | 2021-02-26T16:46:40 | 2021-02-26T16:46:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45,761 | py | # This file contains Att2in2, AdaAtt, AdaAttMO, UpDown model
# AdaAtt is from Knowing When to Look: Adaptive Attention via A Visual Sentinel for Image Captioning
# https://arxiv.org/abs/1612.01887
# AdaAttMO is a modified version with maxout lstm
# Att2in is from Self-critical Sequence Training for Image Captioning
#... | [
"noreply@github.com"
] | gnehz.noreply@github.com |
2c5a2962fb4007cb8be4e05528c8e254ece4755b | c8fe9b0294c5a48f44fc051eb83bb8e13698035c | /loader.py | c5fd919b6ee9d7392288f728bb2173d7cfdcf693 | [] | no_license | danilasimanok/CommunicatorBot | 8a388b9e0a3bb84652ef100159367a26a4bde67c | 3a96239f4f910c5eb7a1b3fbcf330cfc23a2f586 | refs/heads/master | 2020-07-30T10:14:23.951061 | 2019-10-02T18:47:32 | 2019-10-02T18:47:32 | 210,188,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | import json
class Loader:
'''Работает с настройками программы.'''
def __init__(self, settings_file_name):
self.settings = None
self.dump_file_name = None
if settings_file_name == None:
return
settings = open(settings_file_name, 'r')
self.settings = json.load(settings)
settings.close()
def create_... | [
"dsimanok@bk.ru"
] | dsimanok@bk.ru |
eef2e035f96020685aaf6b0ac1d0d111b44c3a97 | 94b589fe80563baba803a4853a29fb8b8bee2b12 | /venv/TestEngine/blog/views.py | 29f83506c6c16638c83aed67ebe8ffd9c8168ec5 | [] | no_license | Python1337/CCM | ca9c81c73af8b3b0fbe765e9e63f05f7ca02a82f | 08bf0106746de694020e60a080e457f69923b866 | refs/heads/master | 2023-03-11T04:57:41.247065 | 2021-02-18T11:56:13 | 2021-02-18T11:56:13 | 340,032,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,340 | py | from django.shortcuts import render
from django.urls import reverse
from django.http import HttpResponse
from django.views.generic import View
from django.shortcuts import get_object_or_404
from django.shortcuts import redirect
from django.contrib.auth.mixins import LoginRequiredMixin
from .models import Post, Tag
fro... | [
"wowartyom12a@inbox.ru"
] | wowartyom12a@inbox.ru |
21e0c6271798aca723cc58befb65b2e755533138 | 3f95904666cbecc5a65605e86f8b4dfe4797f8c5 | /seven/timeseries.py | e08993380af5ac04c418f257f7f805c290abffe5 | [] | no_license | rlowrance/test7 | 60b2778e19d91c357304637d3e73d74c9bcd3b79 | 3535bd46bff602fc3ba35c080d38b30e75a97fe7 | refs/heads/master | 2021-07-18T11:42:20.784873 | 2017-10-24T14:27:52 | 2017-10-24T14:27:52 | 97,166,588 | 2 | 5 | null | 2017-08-16T15:06:16 | 2017-07-13T21:32:41 | Python | UTF-8 | Python | false | false | 11,582 | py | '''time series prediction
Copyright 2017 Roy E. Lowrance
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... | [
"roy.lowrance@gmail.com"
] | roy.lowrance@gmail.com |
d20bc6650a0bfcd14b6dc9e13f603aec12c00025 | ab6f9e3505b9d51c9a604866572c547982aa88e3 | /node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/build/config.gypi | 18f2146182d182064c12ed05f088d6ad171e01af | [
"MIT"
] | permissive | adamtheschmidt/BoardGameTracking | 890a5d556a916c1990f11d51466d10843d9384c1 | 13b6c1722a946f98fd2cee4866817ffb84e93ec1 | refs/heads/master | 2021-01-21T00:16:54.038790 | 2015-04-23T04:22:32 | 2015-04-23T04:22:32 | 31,579,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,651 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 44,
"host_arch": "x64",
"icu_data_file": "ic... | [
"andreirtaylor@gmail.com"
] | andreirtaylor@gmail.com |
ed2d674bed27936b1176c7767143f026c35ea16c | 9ed5f45abf25c5dfe70bc97ed76b726f22b4903b | /read_shiyo.py | fd3f488aae4bcb25840b46e5411e4851f781182b | [] | no_license | aki4429/locdata | b2f95cf82d5b02183bafffd1565e6126daa1afd0 | 1af95670fd60209621dc25b3f81638468ae6fafb | refs/heads/master | 2022-12-04T19:48:11.092611 | 2020-08-18T16:35:18 | 2020-08-18T16:35:18 | 288,508,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,296 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#code:
#:8=model, 8:11=spec, 11:17=piece, 20:24=legcolor, 24:31=fab1, 31:39=fab2
#39:40=toku
import glob
import csv
import datetime as dt
from dbread import Loc, session
shiyoname = glob.glob('./shiyo/*.csv')[0]
data = []
#納期は'yyyy/mm/dd'形式なので、/でスプリットして、int()で数のリストを... | [
"akiyoshi.oda@gmail.com"
] | akiyoshi.oda@gmail.com |
5f15528be224f35fb06cbfeb40c9415dba122387 | 00c71263dd3984599082534687a6eecff6b63278 | /phrases.py | fa6da7c36dd1cb3d5848993055aa183f64336611 | [] | no_license | TheBlackParrot/discord-bot | 1af35d00224c33d9167b784907c734e88b99b1ef | e83ab7db5f10732d1c588f1ad4ff7ca88ee9d9b3 | refs/heads/master | 2021-01-10T15:15:20.248729 | 2016-04-16T08:39:55 | 2016-04-16T08:39:55 | 54,535,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | import urllib.request;
import settings as setting;
def getAPhrase():
req = urllib.request.Request(
setting.PHRASES_URL,
data=None,
headers={
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.108 Safari/537.36'
}
);
page = urllib.request.urlopen(r... | [
"theblackparrot0@gmail.com"
] | theblackparrot0@gmail.com |
5a34b1c2505774cc28123bf7867e9d5b84e9422c | ea5de3d347ef4e1dcac9ee37da2d9850888d9ecc | /pawn_brotherhood.py | 57460c2b269a4526698cd78561b3aa401f2e81a2 | [] | no_license | skoriy88/Chekio | 4d50c18c54741c425d468a80a24ceb526a13dabe | fcbc291ca624cb9d5415128e605ea27d5e50983e | refs/heads/master | 2020-03-18T11:26:09.966384 | 2018-05-25T13:52:54 | 2018-05-25T13:52:54 | 134,671,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | lst = {"b4", "d4", "f4", "c3", "e3", "g5", "d2"}
def safe_pawns(inp):
new = {(ord(i[0]), int(i[1])) for i in inp}
safe = sum(1 for pawn in new if(pawn[0]-1, pawn[1]-1) in new or (pawn[0]+1, pawn[1]-1) in new)
#print(safe)
return safe
safe_pawns(lst)
'''
print(ord('a'))
print(ord('b'))
print(ord('c'))
... | [
"skoriy88@gmail.com"
] | skoriy88@gmail.com |
852411151db8afff623d48a858ba720238508dd7 | faaf12ab18978082233c09628b815a69e73868e4 | /codechef/practice/easy/lebombs.py | 3c70653a1ff04cd448e8e83575cc876a870c045a | [
"WTFPL"
] | permissive | ferhatelmas/algo | 6826bcf0be782cb102c1ee20dce8d4345e1fd6d2 | 7b867f6d2c8a9fb896f464168b50dfc115617e56 | refs/heads/master | 2023-08-18T19:59:58.435696 | 2023-08-14T10:16:00 | 2023-08-14T10:16:00 | 3,813,734 | 27 | 16 | WTFPL | 2020-10-25T23:00:16 | 2012-03-23T23:43:31 | Java | UTF-8 | Python | false | false | 229 | py | from sys import stdin
from itertools import groupby
for i, ln in enumerate(stdin):
if i > 0 and i % 2 == 0:
s = "0" + ln.rstrip() + "0"
print(sum(max(len(list(g)) - 2, 0) for k, g in groupby(s) if k == "0"))
| [
"elmas.ferhat@gmail.com"
] | elmas.ferhat@gmail.com |
26e6a160f86d55b8f88188dec7e5c82c434f707a | 462385714beddead618fe0193a68685365793e5c | /Python/Python_Problems/Rosalind-master/scripts/Data_Structures.py | d8b1c2c42ff09d8ec41fa4000eeb26bab2e3b2f1 | [] | no_license | 0n1udra/Learning | 7e3f83a3a1ed850cc476ef738c76759616d9e12e | 69e656327c782465318db85abdee519e2f79dab0 | refs/heads/master | 2022-12-04T06:29:29.894406 | 2020-08-17T20:47:47 | 2020-08-17T20:47:47 | 73,001,058 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,811 | py | #!/usr/bin/env python
'''A ROSALIND bioinformatics script containing useful data structures.'''
class SuffixTree(object):
'''Creates a suffix tree for the provided word.'''
def __init__(self, word):
'''Initializes the suffix tree.'''
self.nodes = [self.Node(None, 0)]
self.edges = dict... | [
"dxzt99@gmail.com"
] | dxzt99@gmail.com |
52256cac147a6460ee037ec680d08897777c207a | 0a5a5f6837789b75dc611783bec25bee7af7d6ae | /slacktime.py | 6457471b8a0a914eb569b7b73b1e8e1bd3f4d8ce | [] | no_license | afcarl/slacktime | 9bca69b975f73b067ecb0e97311a6b242747429a | 803958f50e7b7ef2fb557ebf5bac169aac05ee54 | refs/heads/master | 2020-03-22T10:29:25.552740 | 2018-03-06T16:49:40 | 2018-03-06T16:49:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,174 | py | """The core slacktime model class and some functions for evaluating and optimizing the model."""
import numpy as np
from optunity_modified import minimize_structured, par
from input_texts import InputTexts
class Model(object):
def __init__(self, switch_cost=0):
self.textmatrix = np.array([])
sel... | [
"jvparidon@gmail.com"
] | jvparidon@gmail.com |
acc3729c60b5a5df550c04e809b00cbb02b4549b | de8081ddbfb02b6a3a0a79456e334a0704fea4f2 | /OHTServer.py | b43a9da353347d8143c874132de2f73d21236760 | [] | no_license | Cking616/NCDStudio | 01fb5d99577dac8a06ff5003f45b83374ddf3189 | f09b306f37554032192f22ae675f8a9b0348b7a3 | refs/heads/master | 2021-09-14T07:00:01.709782 | 2018-05-09T06:15:41 | 2018-05-09T06:15:41 | 113,954,526 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,611 | py | import time
import asyncore
import socket
import threading
import ctypes
import inspect
recCMD = ""
writeCMDBuffer = []
revCondition = threading.Condition()
isConnected = False
zEncoder = 0
wheelEncoder = 0
motorStatus = False
cmdError = False
gFlag = 0
isEndTimer = False
rampState = 0
def parser_receive(receive):
... | [
"cking616@mail.ustc.edu.cn"
] | cking616@mail.ustc.edu.cn |
0abdaf0ed81c2e215099e12d9bb2753b9ddb4872 | cf25791401b8037695ba97ade84b99d402722f7c | /student/mymodule.py | b9a8aa579617ae50e236a6bc2c2b614bc898c266 | [] | no_license | thiha88/PythonHybridClass | 646cf4961034c0fb70de5a3af6267d079633acfb | 2e321b018e8d494d5c930f3957e6ccaa36f3b610 | refs/heads/master | 2020-08-28T21:54:34.126763 | 2020-03-01T09:24:03 | 2020-03-01T09:24:03 | 216,326,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | student = {
"name" : "Smith",
"code" : 123,
}
student1 = {
"mother" : "Cherry",
"father" : "Kole",
}
student2 = {
"age" : "20",
"class" : "programming",
}
| [
"tun88thiha8@gmail.com"
] | tun88thiha8@gmail.com |
b932230cee4c86fc2a141ccec76dccb54beb67ce | 0a5165cf386d7f9d049239fdcf9f36971661c69b | /layers/base.py | dd298ace052838f3ac9c63749ad21f14489f55a5 | [] | no_license | peterchen1457/Bayesian-Learning-SB-LWTA | 5fda4bd2fe9df70571d1ac30f29c90125a3d4091 | 8e5303eb0dce6bdce2ba9ef1bf80fe6b576fb31c | refs/heads/master | 2023-07-29T07:29:23.014082 | 2019-04-30T09:09:07 | 2019-04-30T09:09:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,418 | py | # -*- coding: utf-8 -*-
"""
Base layer for the implementation of the layers comprising blocks with competing units as
described in the paper
The current file contains implementations for feedforward and convolutional layers.
@author: Konstantinos P. Panousis, Dept. of Informatics and Telecommunications,
... | [
"noreply@github.com"
] | peterchen1457.noreply@github.com |
1e59c9981151054438ab88f0a110806c60f797b4 | 4321acd4ee0d46545b8fc89bd96ca91ef64dd1ad | /blog/models.py | 103562f19ed296d1b0546ceb73b0a31d97147d2e | [] | no_license | juliamattos/my-first-blog | f4c182ba9540bfcba6aa90c1c4c128433b6eccb3 | 2df3cca259cca44e96e12144057e3202da737a8b | refs/heads/master | 2016-09-13T02:39:13.493515 | 2016-05-14T19:04:47 | 2016-05-14T19:04:47 | 58,825,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(default=timezone.now)
published_date = models.DateTimeField(blank=T... | [
"juliamattos.br@gmail.com"
] | juliamattos.br@gmail.com |
cb112458e1c759a10c2cc4f1720282056bf4e17b | f9e74113f4a396e028159e3f2a8e23fa01b03ca3 | /Year 11/filestoragecalc.py | 21b454d4998cb21e2bb76b6004a4757987472960 | [] | no_license | haydenso/school-projects | e6ea7ccc850a468a7352919fdfaf350289d666cc | 1ea9f313fe7d32036c5b210b8fa9dc1736371483 | refs/heads/master | 2023-04-28T15:11:44.187732 | 2021-05-18T04:24:29 | 2021-05-18T04:24:29 | 254,290,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | def fileStorageCalc(h, w, bit):
TOTAL_PIXELS = h * w
FILESIZE = TOTAL_PIXELS * bit
# FILESIZE is in bytes
KB = FILESIZE/1024
MB = KB/1000
return KB, MB
while True:
height = input("Input number of pixels high: ")
width = input("input width in pixels: ")
bitdepth = input("Input colord... | [
"sohayden929@gmail.com"
] | sohayden929@gmail.com |
908e5c6310297a96be1a25e61f114b8c775bfb31 | 5f65df2a5e951bfbe9b042d3331a924145c28302 | /week-1/max_pairwise_product.py | 3ad38cbc361b2e436aff31c7f7f97f6ee9241720 | [
"MIT"
] | permissive | necromuralist/algorithmic-toolbox | f4aee836b9a9bc144622d03de59aa01885716f88 | 18430ac17045e60ec3540a3e5635202f5e8850eb | refs/heads/master | 2022-08-31T07:57:06.665017 | 2021-02-24T03:37:04 | 2021-02-24T03:37:04 | 138,454,499 | 3 | 1 | MIT | 2022-08-23T17:26:44 | 2018-06-24T04:54:25 | Python | UTF-8 | Python | false | false | 1,661 | py | # python3
# Maximum Pairwise Product Problem
# Find the maximum product of two distinct numbers in a sequence of non-negative integers.
# Input: A sequence of non-negative integers.
# Output: The maximum value that can be obtained by multiplying two different elements from the sequence.
# 5
# 6
# 2
# 7
# 4
# 5 6
# 30
... | [
"necromuralist@protonmail.com"
] | necromuralist@protonmail.com |
b51f98fcb2a8f15674e7d1def0ce92d1b5b8795c | 052e8e19c3a679402fbb2563c0dd6ed596d45278 | /Python/Exercise Files/Ch3/timedeltas_start.py | 2fcfb3f3dacc6d5f89ebfe3c1fda58872f9f2027 | [] | no_license | amshapriyaramadass/learnings | a7739f257e310327c90a78780fea2ebff34a6325 | e317058a404fde30bbc3c118ba1a1aaf533d8d4b | refs/heads/master | 2022-12-23T11:09:42.069445 | 2020-10-01T21:42:08 | 2020-10-01T21:42:08 | 283,662,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | #
# Example file for working with timedelta objects
#
from datetime import date
from datetime import time
from datetime import datetime
from datetime import timedelta
# construct a basic timedelta and print it
print(timedelta(days=365,hours=3,minutes =1))
# print today's date
today=date.today()
print("today date is... | [
"amshapriya248@gmail.com"
] | amshapriya248@gmail.com |
f40df01f7c05145dfe5006fcf3c6d5366d1eca7c | 6785bd6122e6eb013da781dd6ab6f1989f243e8e | /ocqm_cohort_website/builder.py | 1b019a9b2674642473fd1eff92160a90638082f1 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | seantis/ocqm_cohort_website | aed5cff8432fbde503c02ea253e7c1206f633f28 | 21701f2aeed3c317ead24bd6244a1adfe4d89c6a | refs/heads/master | 2016-09-16T15:10:50.174636 | 2014-09-22T12:24:00 | 2014-09-22T12:24:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,673 | py | import os
from babel.support import Translations
from copy import copy
from jinja2 import Environment, FileSystemLoader
from . import content
from . import db
from . import locale
from . import paths
def create_environment(theme_path, language):
loader = FileSystemLoader(searchpath=theme_path, encoding='utf-8'... | [
"denis@href.ch"
] | denis@href.ch |
84059663f00ee67d5175d368997580ee534a5781 | 53b36d25b56f2f01eb0014f36700b12d3a457403 | /adminSystem/settings.py | 83c65c71783b47f287586cdd1dbe7edf6fc29965 | [] | no_license | Kadzo-Dzombo/ideas_kenya | 94e7782ce91970e65c68d325dc370a70a95d9fd4 | 3c562e20965a2eac4be7036ff474b5df8ea2bbfe | refs/heads/main | 2023-08-31T10:50:01.100212 | 2021-10-14T18:46:14 | 2021-10-14T18:46:14 | 412,057,681 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,591 | py | import os
from pathlib import Path
import django_heroku
# Build paths inside the project like this: BASE_DIR / 'subdir'.
# BASE_DIR = Path(__file__).resolve().parent.parent
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See htt... | [
"50664032+Kadzo-Dzombo@users.noreply.github.com"
] | 50664032+Kadzo-Dzombo@users.noreply.github.com |
d17776b6855dfcc141feea8086af080f6d09fc11 | 8bcf5bf18f6e9c1d5871ef8a88ef5921e03e9b02 | /koldunov/api/urls.py | a4efa9857dea75f924535c42e25c43c5803313cc | [] | no_license | volgoweb/rest_example | 73f5fc26cce45c0aae49247768f74ffa2f4c01d4 | 7ee8b87914d6c69c80158e7e22a6b454c3e7f76b | refs/heads/master | 2021-01-10T01:32:44.098668 | 2017-09-05T12:42:00 | 2017-09-05T12:42:00 | 51,444,569 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | # -*- coding: utf-8 -*-
from rest_framework import routers
from .views.product_views import CategoryViewSet, ItemViewSet
from .views.stat_views import StatViewSet
router = routers.SimpleRouter()
router.register(r'category', CategoryViewSet)
router.register(r'item', ItemViewSet)
router.register(r'stat', StatViewSet)
... | [
"volgoweb@bk.ru"
] | volgoweb@bk.ru |
5aff83327048090bb929482367b4ab95f3704e0d | 9c6afa0faf423bc41107bec9019d076137074777 | /picarray.py | f1358398e1f54876c7fdc655b6a65593343a8f93 | [] | no_license | marcwgit/gradpics | f49d4060376414a9837de8d80e01e77a433cf4b0 | cd701c464d55b30556be5bb399bc1fc8e5ecf8ed | refs/heads/master | 2021-01-24T10:59:30.815869 | 2016-10-10T17:26:00 | 2016-10-10T17:26:00 | 70,276,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,351 | py | #!/usr/bin/python
from sys import argv
# from sys import re
script, flist, thumbsize, fullsize, widthnum, title = argv
print "script is: ", script
print "file list is: ", flist
print "thumb size is: ", thumbsize
print "full size is: ", fullsize
print "row width is: ", widthnum
print "title is: ", title
outfile = thum... | [
"noreply@github.com"
] | marcwgit.noreply@github.com |
f3615d9c654c8a6ee21eeeb224369c69cecde064 | a266cfe89cf9c7347abf712e3b800468438448c2 | /addons/magenenst_ghn_integration/controllers/controller.py | 2e4e11ef1139e253f77fada25db92a35539f96fe | [] | no_license | cialuo/project_template | db8b9f9c4115a6d44363a39e311363e8f3e7807f | 2f875bdc5b730afeae3dd8dffafde852d0a44936 | refs/heads/main | 2023-03-09T17:50:55.398557 | 2021-02-24T00:17:59 | 2021-02-24T00:17:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import http, _
from odoo.exceptions import AccessError, MissingError
from odoo.http import request
| [
"dungth@trobz.com"
] | dungth@trobz.com |
5ef953377a82188de0c437031ecd64571429c4dd | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/special-array-with-x-elements-greater-than-or-equal-x.py | 01c11c68d89db61b02579b98174c1831b10e0923 | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 3,409 | py | # Time: O(n)
# Space: O(1)
# counting sort solution
class Solution(object):
def specialArray(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
MAX_NUM = 1000
count = [0]*(MAX_NUM+1)
for num in nums:
count[num] += 1
n = len(nums)
... | [
"noreply@github.com"
] | kamyu104.noreply@github.com |
0271e2bd69581d5e5dc88b564ddc46e9e59ed80e | 06289aabd78e6a0e5e5ab8360fffbf9a8504d615 | /api/budget/serializers/expense_serializer.py | 0f5fd044d6751912c22d145c7efad0ab32499638 | [] | no_license | jtclayt/finance_planner_api | 6ca8130c761999abc01e03429a0676c0c803b640 | 06cd592e479145cbeb6acad4574021ef7515b33b | refs/heads/main | 2023-08-15T02:20:34.455483 | 2021-09-22T16:15:49 | 2021-09-22T16:15:49 | 409,044,817 | 0 | 0 | null | 2021-09-22T05:08:48 | 2021-09-22T02:54:50 | Python | UTF-8 | Python | false | false | 627 | py | from rest_framework import serializers
from ..models.budget import Budget
from ..models.expense import Expense
class ExpenseSerializer(serializers.HyperlinkedModelSerializer):
'''Serializer for list view of expenses'''
url = serializers.HyperlinkedIdentityField(view_name='budget:expense-detail')
budget =... | [
"jt.clayton92@yahoo.com"
] | jt.clayton92@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.