blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c144c9ebf7ac40827af104a5950dc340e65e4004 | 83d947dd8683ed447b6bdb9d15683109ca0195bc | /git_sew/ui/cli/containers/App.py | b38e83e444cd4ff51285d171725911c2c7266b75 | [
"MIT"
] | permissive | fcurella/git-sew | dda6b84a3b522bb1fc5982bfa610b174159cb691 | 920bc26125a127e257be3e37a9bf10cb90aa5368 | refs/heads/master | 2020-07-23T14:51:39.476225 | 2019-09-09T22:56:11 | 2019-09-10T15:45:11 | 207,599,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | import urwid
from urwid_pydux import ConnectedComponent
from git_sew.ui.cli.components.gitlogs import Footer, Loading
class App(ConnectedComponent):
def map_state_to_props(self, state, own_props):
return {"body": state["box"]}
def render_component(self, props):
if props["body"] is None:
... | [
"flavio.curella@gmail.com"
] | flavio.curella@gmail.com |
921bcd8a926822b2b2751dc1a9451a069fca8ce1 | b8b3d78501b372ea3b721a286f22208069dbb5ff | /fexp/cache/cache_multiple_files.py | 5601ef84cfc8364993d6a8817ea8b0d29fc88f25 | [] | no_license | vitoralbiero/drl_action_unit_detection | 0ddce49c10b27925c712ef367f405650be58f5bd | d8eb9a35e74483ce581b637f761f343607f255bf | refs/heads/master | 2020-05-02T08:58:13.639089 | 2019-06-13T17:16:52 | 2019-06-13T17:16:52 | 177,856,625 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | from .file_cache_manager import FileCacheManager
import numpy as np
from os import makedirs, path
class CacheMultipleFiles(FileCacheManager):
_directory_path = ''
def __init__(self, directory_path):
self._directory_path = directory_path
if not path.exists(directory_path):
makedi... | [
"vitor_albiero@outlook.com"
] | vitor_albiero@outlook.com |
56ddc0dc1295c7e6d63d54f21fd0051d0310496f | db2898a94bafdba44b6d7639116a5794df13cf97 | /lists/urls.py | 39146046b0b9d855e86df929153a63b9f831f76e | [] | no_license | martinnobis/tddwp-book | 8287c3a9dc1d6c90c09887e0a6695e0afce679bb | 4a35ba75e133d222321370c4b8955b6d472f6b42 | refs/heads/master | 2021-09-05T13:33:34.932540 | 2018-01-28T08:16:20 | 2018-01-28T08:16:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | """superlists URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | [
"martin.nobis@gmail.com"
] | martin.nobis@gmail.com |
46b665075a25c4fcc68e25e503e45bad689ec5ea | db38fcc061cad5201e7c281d66cb3cedd937a183 | /tail.py | 34a331cbedca5d877c03750bc9a2f247210243cc | [] | no_license | Krishnasaianumandla/Dissection-comments | 305d3547692268ec3e6aa71ad1cd2b0773068fd9 | 33f86dabac065440a124d6865d574610ab1e7ccb | refs/heads/main | 2023-08-10T17:05:12.910575 | 2021-09-14T14:46:24 | 2021-09-14T14:46:24 | 406,406,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | """Implementing the tail shell command in python."""
"""
Imports the sys library so that we can use the fuctions in it
"""
import sys
"""
from lib.helper module imports tail and readfile libraries
"""
from lib.helper import tail, readfile
"""
Value None is assigned to the variable TEXT of NoneType
"""
TEXT ... | [
"noreply@github.com"
] | noreply@github.com |
745f90f519853d1de410ac75ee637f5d3b14f3a6 | 070b693744e7e73634c19b1ee5bc9e06f9fb852a | /python/problem-tree/maximum_width_of_binary_tree.py | a18203e5b1c59a32be6b1e9d83fef22553353874 | [] | no_license | rheehot/practice | a7a4ce177e8cb129192a60ba596745eec9a7d19e | aa0355d3879e61cf43a4333a6446f3d377ed5580 | refs/heads/master | 2021-04-15T22:04:34.484285 | 2020-03-20T17:20:00 | 2020-03-20T17:20:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,855 | py | # https://leetcode.com/problems/maximum-width-of-binary-tree
# https://leetcode.com/problems/maximum-width-of-binary-tree/solution
from TreeNode import TreeNode
class Solution:
# Wrong Answer
def widthOfBinaryTree0(self, root):
if root is None:
return 0
print(root)
... | [
"agapelover4u@yahoo.co.kr"
] | agapelover4u@yahoo.co.kr |
ec70ce257331cb0ed165f2de96058639be4d4c96 | 6cb2f739aaf10feee77ad335de342146c10bfb5d | /pong_deep_rl.py | 66ba0312716cd3ae068ecc4dc41203a543256027 | [] | no_license | Ultraleow/the-unbeatable-pong | b4c3af260a1431850610d94b4dd7a257ab53316b | 89b7ac5d632986ade2fc2a5a6caa231ed29bb34b | refs/heads/main | 2023-02-03T03:03:57.711572 | 2020-12-19T11:52:54 | 2020-12-19T11:52:54 | 323,026,707 | 5 | 0 | null | 2020-12-20T08:29:01 | 2020-12-20T08:29:00 | null | UTF-8 | Python | false | false | 3,385 | py | import gym
from tensorflow.keras.layers import Dense
from tensorflow.keras.models import Sequential
import numpy as np
UP_ACTION = 2
DOWN_ACTION = 3
env = gym.make("Pong-v0")
def create_model():
model = Sequential()
model.add(Dense(units=200, input_dim=80 * 80, activation='relu', kernel_initial... | [
"nghaosiong98@gmail.com"
] | nghaosiong98@gmail.com |
c64515dd8b96864dfa14c9209203695e3785e7f5 | b72c42ba5edfb4f2ac743dab42575d8940c44e7d | /Slide_5.py | beee47a9bd6fc6f7bc673fe650329a6579301bf7 | [] | no_license | DimanLux/PYTHON100 | 67b6c368ee1a0dc7f8650c7f11806aee75650199 | e519385c300190308ec643aad6a9ed8f402afaee | refs/heads/master | 2020-04-19T13:35:44.540257 | 2019-02-03T12:31:45 | 2019-02-03T12:31:45 | 168,221,689 | 0 | 0 | null | 2019-01-29T20:15:21 | 2019-01-29T20:15:21 | null | UTF-8 | Python | false | false | 288 | py | def math_1(x, y, z, f):
res = (((x * (y - x)) / z) + x + ((f + z) / (f ** y)) - ((z - f) / z)) / (((z + f) / z ** y) - f)
return res
if __name__ == "__main__":
print("output1 = " + str(math_1(5, 2.3, 2, 7.8)))
print("output2 = " + str(math_1(1234, 37872, 1231, 12314)))
| [
"dm_0585@mail.ru"
] | dm_0585@mail.ru |
dde29523d724243a2dd12fdf0f4dccb9869f5742 | 3a5694978c42269129ab956bf8d44602709bd51f | /backend/auth/tests/test_urls.py | ce34fc922a3090d5a1121ff0fca1fd61d5763ea2 | [] | no_license | JimmeeX/react-native-django | f11dfd2425b6a4ad2bf98ff92f21c38a211090c9 | 6460bda8565ef244544ea2a8c900eebb1c6dab17 | refs/heads/master | 2023-08-14T06:58:25.010265 | 2020-11-18T09:19:45 | 2020-11-18T09:19:45 | 313,874,641 | 0 | 0 | null | 2021-09-22T19:40:12 | 2020-11-18T08:50:09 | TypeScript | UTF-8 | Python | false | false | 355 | py | from django.test import SimpleTestCase
class TestUrls(SimpleTestCase):
# def test_list_url_is_resolved(self):
# self.assertEquals(1, 2, msg="Some message?")
# def test_failed_case(self):
# self.assertEquals(1, 2, msg="Test failed case")
def test_success_case(self):
self.assertEqu... | [
"jameslin3118@gmail.com"
] | jameslin3118@gmail.com |
79041edf09726eb92000831b1ec4ce4f540981a1 | b112367ff243a616bd41596ba50a51c215b977f2 | /taobao_scrapper_extreme.py | 84a003ef6f199ed7523b05473d149ac0c3610842 | [
"MIT"
] | permissive | marcozzxx810/TaobaoWebscrapper | cabd3da70befd0fc5be55f4444b2598e81614ad0 | c7c50731478d733023e09336c724aef9a3342687 | refs/heads/master | 2021-02-15T10:53:47.046573 | 2020-03-04T13:06:48 | 2020-03-04T13:06:48 | 244,891,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,222 | py | import os
import re
import json
import time
import random
import requests
import pandas as pd
from retrying import retry
import openpyxl
from login import TaoBaoLogin
requests.packages.urllib3.disable_warnings()
req_session = requests.Session()
GOODS_EXCEL_PATH = 'taobao_goods.xlsx'
DATE=time.strftime("%d-%b-%Y... | [
"marcowingwing@gmail.com"
] | marcowingwing@gmail.com |
767a5c36ac1b28c136a2addb2cd1ae4cd12a0895 | 6e9872b3f9d1bfb62f5958ddedeff26b1a852189 | /Prg1/server.py | b32d5177178abe0d10287b08ae62e3a8122427e4 | [] | no_license | rat17sri/Python-Socket-Programming | 4f8a985e164a1785668c694bf4206f6aa84832fb | d1dd89bd9be7e8cd8114a9e28eb1ad227afd43f9 | refs/heads/master | 2020-04-07T20:46:03.741368 | 2019-01-16T17:14:01 | 2019-01-16T17:14:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | import socket
# import the socket library
s = socket.socket()
# Created the object 's' of function socket() of socket library
print "Socket Succesfully Created"
# Denotion for successful object creation
port = 12345
# using a random port > 1023 as port number ranges from 0 - 65535 and 0 - 1023 are reserved so a spec... | [
"noreply@github.com"
] | noreply@github.com |
8c98c7208b6b1c9f418875ff9aac783f045b81f4 | 2937ae94f4312b2bf6be024be9d1c03c6cff0523 | /python/black-white-captcha.py | 3db96762c6c7e95dce1f23cdfba6a80532a1f203 | [
"MIT"
] | permissive | niraj-lal-rahi/scrapper-laravel-python | 52d05ec5e8426a8f690a52fce9fcb1525ac9d88e | 7cc24feda17548bbcfa89449ea7a2387dd958979 | refs/heads/master | 2023-01-07T12:57:22.095388 | 2020-11-12T17:20:06 | 2020-11-12T17:20:06 | 291,505,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | # import requests
# api_key = "364d902ab388957"
# payload = {'apikey':api_key , "OCREngine": 2}
# f_path = "screenshot.png"
# with open(f_path, 'rb') as f:
# j = requests.post('https://api.ocr.space/parse/image', files={f_path: f}, data=payload).json()
# if j['ParsedResults']:
# print(j['ParsedResults']... | [
"krniraj007@gmail.com"
] | krniraj007@gmail.com |
28a5b9492df7e5c77f28f783a5b250602b9bcf95 | 2dd0999515779e710dd27fc68e7541e30f8d549d | /venv/bin/http | 13ebdff3cc3a76a10c746af79bf55264d87facc9 | [] | no_license | iahnglish/exjun-flasky | bc1b364a68218a86472d5d3dc69d103f12b955a1 | 0227300edd9c3787131901f25e9c95c742f2e67f | refs/heads/master | 2021-01-20T14:15:48.037530 | 2017-05-08T02:33:47 | 2017-05-08T02:33:47 | 90,577,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | #!/Users/exjun/Desktop/Python/myproject/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from httpie.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"iahnglish@gmail.com"
] | iahnglish@gmail.com | |
6b6866ccaff5a37f66771ccb14633bec1c330e5a | 03bf7975b4fe6abf0ac20dffdb22a69ffc16fbb0 | /wikipedia/__init__.py | 8e4106956c471a2e232b199a28de6b29aeb7a7d6 | [] | no_license | AbcSxyZ/radio-parser | 6ab178878b715070f02db519e1b0de0f542386a0 | 3953b30b20bca5d25a1a56c13c4cf7b25b9b0418 | refs/heads/master | 2023-05-26T05:13:50.414932 | 2023-05-23T08:39:21 | 2023-05-23T08:39:21 | 273,698,217 | 0 | 0 | null | 2023-05-23T08:39:22 | 2020-06-20T11:51:44 | Python | UTF-8 | Python | false | false | 411 | py | import logging
LOG_FILE = "wikipedia.log"
def setup_logger():
logger = logging.getLogger("wiki")
logger.setLevel(logging.DEBUG)
#Setup log format
format_log = logging.Formatter("%(levelname)s:%(process)s: %(message)s")
#Setup log file
log_file = logging.FileHandler(LOG_FILE)
log_file.set... | [
"rossi.sim@outlook.com"
] | rossi.sim@outlook.com |
cf034327ad61b8216fbb305045967563cb7bb817 | 22e9348f150bb9ce9a0764fe42ba3dcf11832021 | /env/lib/python2.7/abc.py | 9a1dec7df3fd00273a6c54648a2b7d273bd9b1ea | [] | no_license | chinmay60/Activity-Tracking | 06d8dc2944e4f6b4266aaa25198718e2ab3b4e8c | 304233d00910f310cd59bc133f593b3593ae4f1f | refs/heads/master | 2023-02-09T22:54:50.113561 | 2021-01-05T23:32:54 | 2021-01-05T23:32:54 | 302,783,949 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | /usr/local/Cellar/python@2/2.7.15_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/abc.py | [
"chinmayvinchurkar24@gmail.com"
] | chinmayvinchurkar24@gmail.com |
17f859589c603a22117367624010559c8063f80b | f6a8d93c0b764f84b9e90eaf4415ab09d8060ec8 | /Functions/orders.py | 7fef95d38a0f0303db054de91a1ee188f9750e62 | [] | no_license | DimoDimchev/SoftUni-Python-Fundamentals | 90c92f6e8128b62954c4f9c32b01ff4fbb405a02 | 970360dd6ffd54b852946a37d81b5b16248871ec | refs/heads/main | 2023-03-18T17:44:11.856197 | 2021-03-06T12:00:32 | 2021-03-06T12:00:32 | 329,729,960 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | def order(product, times_ordered):
final_price = 0
for i in range (times_ordered):
if product == "coffee":
final_price += 1.50
elif product == "water":
final_price += 1.00
elif product == "coke":
final_price += 1.40
elif product == "snacks":
... | [
"noreply@github.com"
] | noreply@github.com |
eaee1a4301e5e38b6c950cf1d1f1dd928ffb4550 | ad4c4788a98351e9239007891865254e6b9ac8bc | /blog_project/blog/migrations/0002_auto_20200905_0915.py | 56fdfbf6f263e94e637934f3eabce43c73f49b33 | [] | no_license | rajarawal/blog | 172a37362b1b7accb9939e73bbf3925cbb59c7d5 | 3dd7ff68cd879b3d788f2f940b920f7d58b13847 | refs/heads/master | 2022-12-16T18:01:34.037417 | 2020-09-09T08:25:45 | 2020-09-09T08:25:45 | 294,036,769 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | # Generated by Django 3.1 on 2020-09-05 03:45
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='... | [
"rajarawal@outlook.com"
] | rajarawal@outlook.com |
d07fd4eba40be4e6d660ea3cad36659836d2690b | 65f3167355b658954928fe38514135766e2ab1d1 | /website/migrations/0024_members_firstname.py | 8687ea8634681d30923a1433663658211d05f953 | [] | no_license | jeet15/delhiortho | fa669c44aac3e4767f7d2f668f41e45fc00b529b | 4925ba66847c5289c41f9cb775865b345a0bec0d | refs/heads/master | 2023-07-31T01:16:51.837231 | 2020-07-27T12:08:58 | 2020-07-27T12:08:58 | 278,882,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # Generated by Django 3.0.8 on 2020-07-26 08:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('website', '0023_members_email'),
]
operations = [
migrations.AddField(
model_name='members',
name='firstname',
... | [
"gurjeetsingh1506@gmail.com"
] | gurjeetsingh1506@gmail.com |
99518c9b227d4932dd9ce324f21f34c350249ea3 | 8e29c4109010a0e002b17a13adbeb4534f8589e1 | /old/podesta-urlscrape.mt2.py | c8f197cd126008a318b3f405e65376db269d0a5a | [
"CC0-1.0"
] | permissive | vs49688/dnc-downloader | 264385a92d69b98e392a6ee99d0823bf5f70768b | 4f5bcec544457cd2095ea6c132cc7edfbec5eece | refs/heads/master | 2021-01-19T03:26:44.022691 | 2020-12-09T14:24:33 | 2020-12-13T14:34:53 | 64,003,093 | 13 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | #!/usr/bin/env python3
# SPDX-License-Identifier: CC0-1.0
##
# Scrape the actual PDF url from
# https://wikileaks.org/clinton-emails/emailid/{id}
#
# Stored results in clintonurls.json. This is idempotent, just
# restart it if it fails.
#
# At the end, it will spit out an aria2 input file to download
# everything.
##
... | [
"zane@zanevaniperen.com"
] | zane@zanevaniperen.com |
b5a93fc345ba8f35ee02a1700dd57d7007a40ee6 | 24b46a2abaf51140a8c5eef27b8ce1d2e0653e40 | /scraper.py | 46376af48165053b1483a56ba8298199ff903d4a | [] | no_license | bbq12340/kakao | 8491232fd56ed41d737499d1336c1294a3c7f69b | 0b14e2a6c39d77ef61f01413cbe07ae59f7084cd | refs/heads/main | 2023-03-21T05:45:51.936842 | 2021-03-15T00:24:32 | 2021-03-15T00:24:32 | 347,788,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,217 | py | import requests
import pandas as pd
import time
def functionA(query, p):
url = 'https://m.map.kakao.com/actions/searchJson'
payload = {
"type": "PLACE",
"q": query,
"wxEnc": "LVSOTP",
"wyEnc": "QNLTTMN",
"pageNo": p,
"sort": "0"
}
my_headers = {
... | [
"bbq12340@hotmail.com"
] | bbq12340@hotmail.com |
16ddd801db805b58c91e02ddca2c4973ad471372 | d56fac1a53753396e8dfd43bc9061a13444b2c87 | /Hades_1/dlg_coeficientes/controlador/cnt_coeficientes.py | 1947daaca6c3df7fd60c842ab6fe078382d5ac25 | [] | no_license | PedroBiel/Hades | 5c7a7f04e7e1521038ff0d296d41784cadebc3ad | d36839995c269574d36afb0dc28e21db3502dd6c | refs/heads/main | 2023-06-23T17:42:50.230412 | 2021-07-27T10:02:09 | 2021-07-27T10:02:09 | 389,928,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,342 | py | # -*- coding: utf-8 -*-
"""
Controlador de coeficientes
Created on Wed Oct 28 14:49 2020
__author__ = Pedro Biel
__version__ = 0.0.0
__email__ = pbiel@taimweser.com
"""
from dlg_coeficientes.datos.datos_coeficientes import Unicos
from dlg_coeficientes.modelo.mdl_tablemodeleditable import PandasModelEdi... | [
"noreply@github.com"
] | noreply@github.com |
3f5447789a83847dcf555f556eaf2067a532731c | c06c2c4e084dad8191cbb6fb02227f7b05ba86e7 | /chat/extras/output/output_adapter.py | 33c6cd8c7c3458943de637f070c279efad3b0687 | [] | no_license | thiagorocha06/chatbot | 053c525d0c6d037570851411618f3cb1186b32b4 | 2d22a355926c50d9b389d3db883f435950b47a77 | refs/heads/master | 2020-03-24T14:31:59.134462 | 2018-07-29T14:42:55 | 2018-07-29T14:42:55 | 142,770,645 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | from chat.extras.adapters import Adapter
class OutputAdapter(Adapter):
"""
A generic class that can be overridden by a subclass to provide extended
functionality, such as delivering a response to an API endpoint.
"""
def process_response(self, statement, session_id=None):
"""
... | [
"thiagorocha06@gmail.com"
] | thiagorocha06@gmail.com |
5b9498a265068ebc80293b329f26e0f90eb756c8 | c0816431d4a00b8cab6a5c264261b5e94aefc0a1 | /ui.py | 556dc4c07fc3b0dfd455d71bd13fa9b1ff3e1b32 | [] | no_license | antonl/pyDAQmx | 4345a375d2b5c5779aacc53b7cda7d8bda5911f0 | 072140e57860f509887ddb9f28691d407ec89e16 | refs/heads/master | 2021-01-22T03:08:38.660412 | 2013-06-14T19:38:37 | 2013-06-14T19:38:37 | 9,877,515 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,319 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '2chan_scope_ui.ui'
#
# Created: Tue Jun 11 19:23:20 2013
# by: PyQt4 UI code generator 4.9.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except ... | [
"anton.loukianov@gmail.com"
] | anton.loukianov@gmail.com |
ce3a31a37fad7413fec2ae08f830708f46ff664b | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/3/iju.py | 64d6a1b3ccf14cabc615879040affc0ee38aa5ae | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
c5d8272bd09d323e174bede2869a37459b35b2d8 | d11d111ea18c64f7f63769e96a3bfe0c8d5105b3 | /manage.py | 6f34b7c7204240e85ff6a4dfb5c4ae71eb730f82 | [] | no_license | PR-Juyoung/GJAI_web_stu | 6d509d6c41810f7ee08fbe4a705a68b41382783c | 34b31690773b20a4c73689022e0a2608e520f0cf | refs/heads/master | 2023-08-11T05:35:23.776388 | 2021-09-14T07:07:38 | 2021-09-14T07:07:38 | 381,273,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | 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', 'GJAI_web_2.settings.local')
try:
from django.core.management import execute_from_command_line
ex... | [
"9862wndud@gmail.com"
] | 9862wndud@gmail.com |
437a0dd39544857d6737b5b81f1e3bc8c3e87655 | 24dfdb37c79f62cd54689f71f003730e1c341b06 | /basic/openVC/face_recog.py | c6006cfeab95544dfe668ed29f47d99a5cc45734 | [] | no_license | pois2000/project | b324340d5bbb06d081c7de0695c7a79c62337027 | d45bd387155f0e225c6e5b234bb88db7f528c8c0 | refs/heads/master | 2022-05-27T23:48:28.756806 | 2022-05-01T02:20:11 | 2022-05-01T02:20:11 | 93,464,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,221 | py | import numpy as np
import cv2
import sys, getopt
# from cv2.cv import *
# faceCascade = cv2.CascadeClassifier('D:\opencv\data\haarcascades\haarcascade_frontalface_default.xml')
# eyeCascade = cv2.CascadeClassifier('D:\opencv\data\haarcascades\haarcascade_eye.xml')
#-----------------------------------------------------... | [
"pois2000@gmail.com"
] | pois2000@gmail.com |
39fe66b6f1dcefaec65de082d6af8a0c15789557 | e77a7cc1ed343a85662f0ad3c448a350ab776261 | /data_structures/array/number_of_1_in_sorted_array.py | 79689872fbb5d35fdec0a24168779d5ce80f4454 | [
"MIT"
] | permissive | M4cs/python-ds | 9dcecab10291be6a274130c42450319dc112ac46 | 434c127ea4c49eb8d6bf65c71ff6ee10361d994e | refs/heads/master | 2020-08-10T03:40:22.340529 | 2019-10-10T17:52:28 | 2019-10-10T17:52:28 | 214,247,733 | 2 | 0 | MIT | 2019-10-10T17:43:31 | 2019-10-10T17:43:30 | null | UTF-8 | Python | false | false | 390 | py | # The array is sorted in decreasing order
def count(arr):
start = 0
end = len(arr) - 1
while start <= end:
mid = (start + end) // 2
if arr[mid] == 1 and (arr[mid + 1] == 0 or mid == high):
return mid + 1
if arr[mid] == 1:
start = mid + 1
else:
... | [
"prabhupant09@gmail.com"
] | prabhupant09@gmail.com |
781f27873e2ef899b1fc8c15ae9877ecbaee512f | ab3272f4e8a0e949e057d184ba38b998edae0a79 | /search_indexes.py | 965019f0fc6015f086f80fd8fee659e3f0470039 | [] | no_license | leety/ssrd_people | 3e2e1db7956575d4b52f9dcf9af5943d8d8f4d42 | 72927477a4bb3b1ec3bd0a8789a3d2f04456e7ee | refs/heads/master | 2021-01-22T05:42:41.327247 | 2017-02-12T01:04:26 | 2017-02-12T01:04:26 | 81,693,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from aldryn_search.utils import get_index_base, strip_tags
from .models import Person
class PeopleIndex(get_index_base()):
haystack_use_for_indexing = getattr(settings, "SSRD_PEOPLE_SEARCH", True)
INDEX_TITLE... | [
"hello.tien@gmail.com"
] | hello.tien@gmail.com |
600272f0befe1b90825cf2bcace14aee5a25c29d | 4511e58821e50bcecd371ebdec5fa26fd21f670b | /app.py | c885ed6092a6df57153e6b89eeaead8319705f57 | [] | no_license | alvin158/car-prices-ml | 161617283d8316f0c9d88fbb9377c00c246c3c3c | 2476327415ff76a27fafcd93d2e57a1e59a18654 | refs/heads/main | 2023-07-09T23:02:39.632635 | 2021-08-10T03:16:56 | 2021-08-10T03:16:56 | 394,509,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | import numpy as np
from flask import Flask, request, jsonify, render_template
import pickle
app = Flask(__name__)
model = pickle.load(open('model.pkl', 'rb'))
@app.route('/')
def home():
return render_template('index.html')
@app.route('/predict', methods=['POST'])
def predict():
'''
For rendering resul... | [
"zhitat93@hotmail.com"
] | zhitat93@hotmail.com |
6c64b3c39f941e15df6d0cd922abb53fb30147e6 | 31c6439a8e1d9f7f7a1a854197305c2da9c33a00 | /prediction_code/sentiment_rnn_pred.py | fbdfc56ae927421d4bd6188656a50f146e3498af | [] | no_license | ShehriyarShariq/AI-Project | f3abe0a15d581c8df4e6acbe7c8a41eea430670f | b1bcaa1756ac5931862a7f3262b8c807a8e4a3ee | refs/heads/main | 2023-05-14T15:49:53.587208 | 2021-06-10T19:32:20 | 2021-06-10T19:32:20 | 375,682,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,212 | py | import pandas as pd
import numpy as np
import keras
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Flatten
from keras.layers import LSTM
from keras.layers.embeddings import Embedding
from keras.layers import Bidirectional
from keras.preprocessing import sequence
from keras.... | [
"shehriyarshariq@gmail.com"
] | shehriyarshariq@gmail.com |
7b57c6b8f00aee7146f0fe59c37715e1d98abd23 | 360558c34098ef95077e70a318cda7cb3895c6d9 | /tests/test_observable/test_windowwithtimeorcount.py | 266b08416b4ddd813c1b2536d83e66bbad25aa6f | [
"Apache-2.0"
] | permissive | AlexMost/RxPY | 8bcccf04fb5a0bab171aaec897e909ab8098b117 | 05cb14c72806dc41e243789c05f498dede11cebd | refs/heads/master | 2021-01-15T07:53:20.515781 | 2016-03-04T04:53:10 | 2016-03-04T04:53:10 | 53,108,280 | 0 | 1 | null | 2016-03-04T04:50:00 | 2016-03-04T04:49:59 | null | UTF-8 | Python | false | false | 3,316 | py | import unittest
from datetime import timedelta
from rx import Observable
from rx.testing import TestScheduler, ReactiveTest, is_prime, MockDisposable
from rx.disposables import Disposable, SerialDisposable
on_next = ReactiveTest.on_next
on_completed = ReactiveTest.on_completed
on_error = ReactiveTest.on_error
subscri... | [
"dag@brattli.net"
] | dag@brattli.net |
88316ac5704d66e90cf23a4f9bf3cc8f3441e3df | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /sdk/cognitiveservices/azure-cognitiveservices-formrecognizer/azure/cognitiveservices/formrecognizer/form_recognizer_client.py | f080824c5befddc8650458e653398bd431232f5c | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 17,235 | 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 ... | [
"laurent.mazuel@gmail.com"
] | laurent.mazuel@gmail.com |
e2c63fd44222cfa6dd178d152e811377be48d2ef | 25873da962b0acdcf2c46b60695866d29008c11d | /test/programrtest/aiml_tests/learn_tests/test_learn_aiml.py | face1b7f8aacdcafc02f4548da2466da762b9c4a | [] | no_license | LombeC/program-r | 79f81fa82a617f053ccde1115af3344369b1cfa5 | a7eb6820696a2e5314d29f8d82aaad45a0dc0362 | refs/heads/master | 2022-12-01T14:40:40.208360 | 2020-08-10T21:10:30 | 2020-08-10T21:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | import unittest
import os
from programr.context import ClientContext
from programrtest.aiml_tests.client import TestClient
class LearnTestClient(TestClient):
def __init__(self):
TestClient.__init__(self)
def load_configuration(self, arguments):
super(LearnTestClient, self).load_configurati... | [
"hilbert.cantor@gmail.com"
] | hilbert.cantor@gmail.com |
3738edf52791abeab271273732441f1ff83dee01 | 6d6c4a6ddda550ceac91408dcec54143e36d0db9 | /src/model/test.py | 15eb202b007ca339ed69c541e18a60c6eb45e7d9 | [
"WTFPL"
] | permissive | smzhao/fpage | 60c4c84bec9c2c1804308e02fc65f86d0a2eb12f | 0dec9546b1a1ba74e4f688626b1e66fe5439cef1 | refs/heads/master | 2021-01-19T18:59:09.678463 | 2015-05-17T12:48:39 | 2015-05-17T12:48:39 | 35,864,157 | 1 | 0 | null | 2015-05-19T06:43:55 | 2015-05-19T06:43:55 | null | UTF-8 | Python | false | false | 264 | py | # coding:utf-8
from model import BaseModel
from sqlalchemy import Column, Integer, String, Float, ForeignKey, Boolean
class Test(BaseModel):
__tablename__ = 'test'
id = Column(Integer, primary_key=True, autoincrement=True)
test = Column(String)
| [
"fy0748@gmail.com"
] | fy0748@gmail.com |
f024156d78d09ee8e5f5f354df9ed6ad177785c7 | 2d14f56f474db7b91b8ca9bf56a67568b3af2e4c | /mdp/agents/per_agent.py | a82cda77fa4ebf246fb1c9d03234fa4cf0e14845 | [] | no_license | movefast/non-uniform-sampling | 5c6876f791055a7523a35e48ff78603a5f96c4c9 | d2f83281f7fe18832c294608a4474a9e605101d1 | refs/heads/main | 2023-04-16T09:05:27.917838 | 2021-04-21T02:58:47 | 2021-04-21T02:58:47 | 315,916,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,489 | py | import agent
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from mdp import autograd_hacks
from mdp.prioritized_memory import Memory
from mdp.replay_buffer import Transition
criterion = torch.nn.MSELoss()
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
dev... | [
"liderek269@gmail.com"
] | liderek269@gmail.com |
601d53a303e1b4fddbb8255b991385379a649658 | 5e6976a4531a13bd6fc31523bd55439852a2c487 | /pycore_P2chain_graph.py | 44246de0cab77fae9f629f4036412da9fbbe216e | [] | no_license | colinetzel/Pycore-Experiments | 05a93c143ee2ce386dd08f186783ed3207b52dd5 | 47dd0418e4893c42dbf97d023b31bd7ceb604954 | refs/heads/master | 2021-05-06T05:26:08.293207 | 2017-12-22T06:12:26 | 2017-12-22T06:12:26 | 115,082,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,063 | py | #!/usr/bin/python
#Python version 2.7.12
import argparse
import pycore_experiment_functions as functions
parser = argparse.ArgumentParser()
parser.add_argument("-o", type=str, default=None, help="Output filename.")
parser.add_argument("-csv", type=str, default="data.csv", help="Csv filename for raw output.")
parser.ad... | [
"colin.etzel@gmail.com"
] | colin.etzel@gmail.com |
bb840b73e198b70d675d30961a0b4435d02ae9a6 | 3e7ea6726692d17172ac897a331f53a587ee2869 | /Source/Debug/printArr.py | 22728890733383b21e5046c7a7933e9788291336 | [] | no_license | hyqiu/ensae_bigdatatools | 2f57cf7442ff273d69d15fbe647ae917ae58e6ac | 8d5dae01b105410decff155e864e10d86e9a6258 | refs/heads/master | 2021-01-21T14:24:16.054689 | 2017-06-24T05:12:59 | 2017-06-24T05:12:59 | 95,276,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py |
import sys
import csv
sys.path.insert(0,'Source/MyFuncs/')
from initArrs import *
from initDirs import *
#m = 5
#SSArr,YYArr,SYArr,GArr = initArrs(m,3,m)
#filePath = 'Data/Arr/Tmp/arr'
def printArrs(SSArr,YYArr,SYArr,GArr,filePath,k):
printArr(SSArr,'SSArr',filePath,k)
printArr(YYArr,'YYArr',filePath,k... | [
"noreply@github.com"
] | noreply@github.com |
6fae2188362785f3847d5a721139ac0cff21f2b8 | a41805fb84fe334166dd3256faaa9488ddc043ff | /GUIsubcomponents/plotwindow.py | 9544d492a842add9112bd16fd82f8857fa3a76ad | [
"MIT"
] | permissive | nicholasareynolds/gamut | 8d8dde261084c2af1c1b4e79ba8c46343f94d13a | 7119558389f4229b8462e3774237186167402064 | refs/heads/master | 2021-07-04T05:18:35.172030 | 2017-09-24T20:26:08 | 2017-09-24T20:26:08 | 104,009,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,662 | py | ###############################################################################
#
# gamut
# Copyright (C) 2017, Nicholas A. Reynolds
#
# Full License Available in LICENSE file at
# https://github.com/nicholasareynolds/gamut
#
###############################################################################
... | [
"nicholas.a.reynolds@gmail.com"
] | nicholas.a.reynolds@gmail.com |
84c635a8c29640c045018265155d9a6e38831710 | b9a89db051f79b3ca74c328022e8884fbb81d41a | /dump_cdorked_config.py | c1ad5fb62a28c23e6f6af9d11d929bf2869fa2ae | [] | no_license | petdance/scraps | ea1f8fab6d0e3597c315b4daa0dce8ee42bd6123 | b6fa9b71a2329dbdce5a991b1a5c886e283ad258 | refs/heads/main | 2023-03-08T22:38:32.522190 | 2023-03-03T16:20:11 | 2023-03-03T16:20:11 | 4,495,364 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This script dumps the content of a shared memory block
# used by Linux/Cdorked.A into a file named httpd_cdorked_config.bin
# when the machine is infected.
#
# Some of the data is encrypted. If your server is infected and you
# would like to help, please send the httpd... | [
"andy@petdance.com"
] | andy@petdance.com |
cf8a2f4f26fa6630e3ba72060653137675c03cbd | 2ce65623088ba96ce57501ecbb27bb9468d56456 | /cms/migrations/0001_initial.py | 16ef974392f0658dca4506ae341c546e6e077924 | [] | no_license | mediastandardstrust/valueaddednews | 15ff67f62a857a8c634b80d20f632d60bfd98791 | dcef97d99f9245c7b9510a54f9274481cba52d93 | refs/heads/master | 2021-01-18T00:23:04.369109 | 2011-01-18T14:12:24 | 2011-01-18T14:12:24 | 747,487 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py |
from south.db import db
from django.db import models
from cms.models import *
class Migration:
def forwards(self, orm):
"Write your forwards migration here"
def backwards(self, orm):
"Write your backwards migration here"
models = {
'cms.page': {
... | [
"mark@markng.co.uk"
] | mark@markng.co.uk |
37423e07b41d1f3ab5e6bb839b8d4732d4a9d304 | 7fd0c4608e32c53fea935ac63cacf66e1a0c971d | /Canonical_Monojet/VectorModel/DMsimp_s_spin1_1750_500_800/parameters.py | 91afdccfe54a967aad9a343a3a55bf02e074ce3e | [] | no_license | Quantumapple/MadGraph5_cards | 285f8a303b04b9745abfc83f5ea4fb06a2922fc9 | 3db368ada01f59bace11b48eab2f58ab40ba29f2 | refs/heads/master | 2020-05-02T20:43:23.791641 | 2020-01-17T16:10:46 | 2020-01-17T16:10:46 | 178,199,838 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 18,298 | py | # This file was automatically created by FeynRules 2.3.7
# Mathematica version: 9.0 for Linux x86 (64-bit) (November 20, 2012)
# Date: Mon 24 Aug 2015 13:37:17
from object_library import all_parameters, Parameter
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
# This is a default ... | [
"jongho.lee@cern.ch"
] | jongho.lee@cern.ch |
09b211e8ea77f71438cebbd750d645acca661a75 | 56710ab40655d576895ca72e25d51d20d4f96ead | /tools/speeddial | c1396e849838e14c9b5a07448864eb3dd17873ed | [
"Apache-2.0"
] | permissive | veskuh/qmldialer | bc35345a484d9d7d84ee4632c7044f6cca36ad40 | 627b2e9dca575f5bf4f690dfb9387c4d7fcc798c | refs/heads/master | 2016-09-06T03:55:55.403498 | 2012-01-06T08:40:56 | 2012-01-06T08:40:56 | 2,970,737 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | #! /usr/bin/env python
#
# Copyright (c) 2011, Tom Swindell.
#
# This program is licensed under the terms and conditions of the
# Apache License, version 2.0. The full text of the Apache License is at
# http://www.apache.org/licenses/LICENSE-2.0
#
import os, sys
def display_usage():
sys.stderr.write("Usage: " + sy... | [
"robin+git@viroteck.net"
] | robin+git@viroteck.net | |
8f2d60b47c697cdc3e16a53a2e2201aeea2bc35f | 2a55222f2c4e002b398ecc9523adbda5c3f28796 | /mooc/mooc/settings.py | e65c7bfcfeec702c3973f4475d3df9053a74f742 | [] | no_license | zhenghaogithub/web | 1b04de1f853edbb02fe9b1fc61d9d2ae46a5745c | bb471ce5338a1a805ccd72e6b3a389c96a0641a6 | refs/heads/master | 2021-07-10T06:54:59.626019 | 2020-03-04T12:58:11 | 2020-03-04T12:58:11 | 244,344,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,172 | py | """
Django settings for mooc project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
import ... | [
"zhenghao20070826@163.com"
] | zhenghao20070826@163.com |
6e4dd4e629e9a48bb151508f9ec6c2120f4cb676 | ce3964c7195de67e07818b08a43286f7ec9fec3e | /angle_peaks.py | 3f18f3fab246542885ea6329ac9dc15a38b0f1c8 | [] | no_license | zhuligs/physics | 82b601c856f12817c0cfedb17394b7b6ce6b843c | 7cbac1be7904612fd65b66b34edef453aac77973 | refs/heads/master | 2021-05-28T07:39:19.822692 | 2013-06-05T04:53:08 | 2013-06-05T04:53:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py | #!/usr/bin/env python
"""
Create a data set of nn_dist peak distances vs rs & P, for a given neighbor
"""
import os, sys, commands, glob
# RS is a list of all the names of the rs directories
global RS
RS = commands.getoutput('ls -1 | grep "1\." | grep -v c').split()
def main():
# Open the output file
out = o... | [
"boates@gmail.com"
] | boates@gmail.com |
37c6df9686c851389868af110179898a2a55def7 | 8775aac665c4011cc743d737c12342e1b08d8f41 | /config/hosts.py | 3766ccf2d2f934ea128736f30b19f3dc8166cf79 | [] | no_license | kongp3/sys_deploy | 734dfa3815c93305eca77f5d3f9488968c90ef6f | 8cd750c4df3f3f64515e3b0051038569d6e8bce2 | refs/heads/master | 2020-04-09T06:53:01.340569 | 2018-12-03T04:13:22 | 2018-12-03T04:13:22 | 160,131,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | # -*- coding: utf-8 -*-
from config import *
SERVER_HOSTS = [
SERVER1_USER + '@' + SERVER1_IP,
SERVER2_USER + '@' + SERVER2_IP,
SERVER3_USER + '@' + SERVER3_IP,
]
| [
"kongp3@outlook"
] | kongp3@outlook |
9a39839275986cbd5e2c06251ec6ba300a70ba09 | 76b0a9dd3b238ce98d7322521750cf3169d2972e | /DLC/pupil_opto_stim_probes.py | 6840ed6559ae2adcdcfeb821c91c9cf993d6cf96 | [] | no_license | mschart/IBL-Serotonin | 15943eea9e94d7e97816f82539bb97c8b8cdc6b5 | 19da8b9ddc65d174e5851dd0c94f8ef51681b634 | refs/heads/master | 2023-07-26T23:00:17.166115 | 2021-08-31T17:02:15 | 2021-08-31T17:02:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,108 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 13 11:42:01 2021
@author: guido
"""
import numpy as np
from os.path import join
import pandas as pd
import matplotlib.pyplot as plt
from scipy.stats import zscore
import seaborn as sns
from serotonin_functions import (load_trials, butter_filter, pa... | [
"guido.meijer@research.fchampalimaud.org"
] | guido.meijer@research.fchampalimaud.org |
cde20b6740ecff83f68335eb557cfb8d10af5ada | a6ce5f659a521b90c3a2ae07e52229c225d7a5e1 | /news/migrations/0006_auto_20160605_0131.py | 7337e39f976614b7be794061c2de60a443235e2e | [] | no_license | rksksm/big-talk-india | bb7f5b57e788cf7ff9d18cc8a56f7431701f6a72 | e28c432448ae247d8c2eff2d9864df0af1238257 | refs/heads/master | 2020-04-02T05:28:33.885097 | 2017-02-27T08:43:19 | 2017-02-27T08:43:19 | 65,835,006 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-06-04 20:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0005_auto_20160605_0013'),
]
operations = [
migrations.AddField(
... | [
"rksharma@bpl.netlink.com"
] | rksharma@bpl.netlink.com |
e92bb73592c96ad648bf9afbe5a0bd00d08745d8 | 7a3e9d88b21ef7e4b73d0632e08546d65a9df2ca | /modules/templates/BRCMS/RLP/anonymize.py | 2928089c67d9122fb9f441fc5212a41cd94167e5 | [
"MIT"
] | permissive | nursix/drkcm | 64eeb8ead30784d379d64a0ba2bc2c93bcafb8ca | 7ec4b959d009daf26d5ca6ce91dd9c3c0bd978d6 | refs/heads/master | 2023-09-04T10:07:52.596460 | 2023-09-04T00:43:45 | 2023-09-04T00:43:45 | 97,222,001 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,399 | py | """
Anonymization Rules for BRCMS/RLP
License: MIT
"""
from uuid import uuid4
from gluon import current
def rlpcm_person_anonymize():
""" Rules to anonymize a case file """
auth = current.auth
s3db = current.s3db
ANONYMOUS = "-"
# Standard anonymizers
from s3db.pr import pr_addres... | [
"dominic@nursix.org"
] | dominic@nursix.org |
a9ffbe9fc364a586186dc4426bb3537894ca629f | 139827a1d5ec231929af02398e8331cf5286431f | /pizza/urls.py | d4dc5cc85c645d37a672808d205f5eb194f41a98 | [] | no_license | proredkar31/pizza-site | 79cf22fbf153b9b208e4221b342231d29aadefbc | c438f301a2175c96456c90d57579f70e3bec81d0 | refs/heads/main | 2023-04-24T15:05:31.555675 | 2021-05-12T06:06:45 | 2021-05-12T06:06:45 | 366,412,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home,name='pizza-home'),
path('create/', views.createPizza,name='pizza-create'),
path("delete/<str:delete_id>/", views.deletePizza,name='pizza-delete'),
path('update/<str:update_id>/', views.updatePizza,name='pizza-update')... | [
"proredkar31@gmail.com"
] | proredkar31@gmail.com |
315b4c0ac084b1d91f21ffdca3cc60a33bcb72f8 | e027e663d850f84493c48aae04567b5f06558bc8 | /gerenciamento_pet/app/views/funcionario_views.py | e769de31748e1946287191110e170c9f7a5ef89c | [] | no_license | isaias0rt0n/django-sistema-de-gerenciamento-de-clinicas-pet | 11e805db4d5db4c8d8de46f96e2b08d75a139c8c | a2c15b083febcd1802cbd1388cc288472b7fe744 | refs/heads/main | 2023-03-12T07:26:05.232748 | 2021-02-27T23:00:30 | 2021-02-27T23:00:30 | 336,663,155 | 0 | 0 | null | 2021-02-26T14:15:10 | 2021-02-07T00:06:17 | Python | UTF-8 | Python | false | false | 1,495 | py | from django.contrib.auth.decorators import user_passes_test
from django.contrib.auth.hashers import make_password
from django.shortcuts import render, redirect
from ..entidades import funcionario
from ..forms.funcionario_forms import FuncionarioForm
from ..services import funcionario_service
@user_passes_test(lambda... | [
"isaiasorton@gmail.com"
] | isaiasorton@gmail.com |
f12ce4028eef8a875d3961103e02377c34e07746 | 7a1a65b0cda41ea204fad4848934db143ebf199a | /automatedprocesses_firststage/adsym_core_last60_test.py | c36727a8b0dc54c680f0dc9be9f8cf1ac23510a5 | [] | no_license | bpopovich44/ReaperSec | 4b015e448ed5ce23316bd9b9e33966373daea9c0 | 22acba4d84313e62dbbf95cf2a5465283a6491b0 | refs/heads/master | 2021-05-02T18:26:11.875122 | 2019-06-22T15:02:09 | 2019-06-22T15:02:09 | 120,664,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,164 | py | #!/usr/bin/python2.7
import json
from mysql.connector import MySQLConnection, Error
from python_dbconfig import read_db_config
import aol_api_R_test
def connect():
# """Gets AOL Data and writes them to a MySQL table"""
db = "mysql_sl"
api = "adsym"
# Connect To DB:
db_config = read_db_config(db... | [
"bpopovich4@gmail.com"
] | bpopovich4@gmail.com |
a69df7f43308fc5480efdd170214dcdb43a9bc12 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03288/s994428906.py | 8f675834b3b195d3bece521191e038e01a6a4385 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | def main():
n = int(input())
if n < 1200:
print("ABC")
elif 1200 <= n < 2800:
print("ARC")
else:
print("AGC")
main() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fdf35068580c8dbfab42b28746ee4ea466f32f86 | ce89a3a1e0fe4b5241c70ba7a3b8cb3bc5714901 | /src/web/nonebot_hk_reporter/platform/monster_siren.py | 1ad8bef2ec72b22b36ff964bbe5ff625b4a6a5c9 | [
"MIT"
] | permissive | FzWjScJ/CoolQBot | 63d49480606e6a062adfea29d07dc7923be9b5f7 | c02f0a103cfda9d3e52f6301fe57afc2bc738fe0 | refs/heads/master | 2023-07-16T17:54:03.503980 | 2021-08-29T09:43:33 | 2021-08-29T09:43:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | from typing import Any
import httpx
from .platform import NewMessage, NoTargetMixin
from ..types import RawPost
from ..post import Post
class MonsterSiren(NewMessage, NoTargetMixin):
categories = {}
platform_name = 'monster-siren'
enable_tag = False
enabled = True
is_common = False
schedule_... | [
"noreply@github.com"
] | noreply@github.com |
c71470942db723c32638b7467d14c3df64db74a9 | 4b1789cb5dc76bab956cf6d167a005274c7e5751 | /variant1.py | 62c21c99294dd94377a3f4bba05e95e263d1a337 | [] | no_license | seka17/genome | 59eeec2d8ac24817ecc718f7ff59a13ae1c3980c | 45b842390e1cd2a2f06614bb620797ea604a4386 | refs/heads/master | 2021-01-10T04:09:01.283206 | 2016-03-29T23:51:21 | 2016-03-29T23:51:21 | 54,679,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | # -*- coding: utf-8 -*-
from math import log, e
from gmpy2 import mpfr
from gmpy2 import log, exp
from time import clock
import numpy as np
big_number = 300
def s(low, high):
t1 = clock()
a = to_sum(low, high)
print ("Time:", clock() - t1)
def to_sum(low, high):
# t1 = clock()
if low > high:
... | [
"ksi.seka@gmail.com"
] | ksi.seka@gmail.com |
022da20ca188bc1daaa3e234c57906a77887354a | e03a8219e9cf46603d88bb431d1598064b94794b | /dataset_loader/tfrecord_reader.py | 4213de13af882a47ab6fc00403701b2bce2a5297 | [
"MIT"
] | permissive | pmorerio/useful_snippets | 1f7541ab5b59b3bafcbd45ba9e4672ffec01c2d4 | b2ec35d04ab8641d2fbc0445eb6776e9570849ba | refs/heads/master | 2021-01-02T09:49:10.902426 | 2019-10-23T14:18:09 | 2019-10-23T14:18:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | import tensorflow as tf
import os
import time
import glob
SPLIT = 'train'
list_file = glob.glob1('/data/datasets/stl10/', '*{}*.tfrecords'.format(SPLIT))
list_file = [os.path.join('/data/datasets/stl10', i) for i in list_file]
raw_image_dataset = tf.data.TFRecordDataset(list_file)
def _parse_example(example_proto)... | [
"paolor82@gmail.com"
] | paolor82@gmail.com |
d0b528903a9a1e72d759138a3f5ab4c43d124a28 | 494b763f2613d4447bc0013100705a0b852523c0 | /cnn/answer/M1_cp32_3_m_d512.py | f18fed9ba897d5083554c7a56ca3c5934c11fd9c | [] | no_license | DL-DeepLearning/Neural-Network | dc4a2dd5efb1b4ef1a3480a1df6896c191ae487f | 3160c4af78dba6bd39552bb19f09a699aaab8e9e | refs/heads/master | 2021-06-17T05:16:22.583816 | 2017-06-07T01:21:39 | 2017-06-07T01:21:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,704 | py | # libraries & packages
import numpy
import math
import sys
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, Flatten
from keras.layers import Convolution2D, MaxPooling2D
from keras.optimizers import SGD
from keras.utils import np_utils
from os import listdir
from os.path import is... | [
"teinhonglo@gmail.com"
] | teinhonglo@gmail.com |
88743421203b00b54d21f449bdbbc3fddf47d0a0 | faea85c8583771933ffc9c2807aacb59c7bd96e6 | /python/pencilnew/visu/internal/MinorSymLogLocator.py | 1e83f3c925453c62d8eeb6f112a86c81dcdb0538 | [] | no_license | JosephMouallem/pencil_code | 1dc68377ecdbda3bd3dd56731593ddb9b0e35404 | 624b742369c09d65bc20fdef25d2201cab7f758d | refs/heads/master | 2023-03-25T09:12:02.647416 | 2021-03-22T02:30:54 | 2021-03-22T02:30:54 | 350,038,447 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | ##
## symlog tick helper
from matplotlib.ticker import Locator
class MinorSymLogLocator(Locator):
"""
Dynamically find minor tick positions based on the positions of
major ticks for a symlog scaling.
"""
def __init__(self, linthresh):
"""
Ticks will be placed between the major ticks.
The pla... | [
"j3mouall@uwaterloo.ca"
] | j3mouall@uwaterloo.ca |
8435fd79cd5b950c38d198c5c94e5af387273be4 | c29cebe6509972e95f3ae8172a38a5893a651ec3 | /test_app/models.py | 56b9a0019a49f7732223a9da3d1b906342773289 | [] | no_license | masa-rock/test210515 | 8c3605ed7c41063f5818ba787cf599880eec4cfa | 8286c554b723e1c022732e28a051b3cf8c0f8b56 | refs/heads/master | 2023-06-10T22:41:10.212053 | 2021-06-27T14:56:10 | 2021-06-27T14:56:10 | 367,621,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,803 | py | from django.db import models
from django.urls import reverse_lazy
class Realsimulation_v1(models.Model):
id = models.IntegerField(primary_key=True)
Date = models.DateTimeField()
Open = models.FloatField(null=True,blank=True)
High = models.FloatField(null=True,blank=True)
Low = models.Fl... | [
"yoshimuramasato@yoshimuramasatonoMacBook-Air.local"
] | yoshimuramasato@yoshimuramasatonoMacBook-Air.local |
036b5f311d7c71f462bc035c75e1f709fda7d0c1 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-582.py | 53920cabcfe9a30a69d9844b54243579ff6513d3 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,755 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
09800dd699671fa5488fc29517a420cb80ffda21 | 4d2eeb1077a23694bce737269616d3dedf7de34c | /기본 수학 2/2581번 소수.py | 1115dfe5002cabcd6cb52af2d0533a14a4557cba | [] | no_license | askges20/baekjoon_code | ae7d7a3d44ccecaafef0b5b43c7978974b5bd5db | 46d2a3d305f60df9607a48c4660d63c71d835bba | refs/heads/main | 2023-06-04T02:31:13.720700 | 2021-06-20T05:09:50 | 2021-06-20T05:09:50 | 354,603,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | def isPrime(num):
cnt = 0
if num == 1:
return False
for k in range(1, num+1):
if num % k == 0:
cnt += 1
if cnt == 2:
return True
else:
return False
min = int(input())
max = int(input())
sum = 0
minPrime = 0
for j in range(min, max+1):
if isPrime(int(j... | [
"noreply@github.com"
] | noreply@github.com |
e2777af9f639044887deda42904df167a66306de | d0b609e12fbcc58df13d834478018b2cf989be77 | /web/app/routes.py | f48cc3a3952c7aa4f5c33e244969ae76a6f64367 | [] | no_license | TimurAshrafzyanov/PythonWebProject | b5a17b358213d9ae22e14df3c681506c0a4a50a1 | 363c58a2e380243f9e7c5103a467d1b9eeab185f | refs/heads/master | 2022-07-26T07:22:27.592654 | 2020-05-20T14:35:37 | 2020-05-20T14:35:37 | 262,716,860 | 0 | 0 | null | 2020-05-20T14:35:39 | 2020-05-10T05:11:16 | Python | UTF-8 | Python | false | false | 1,029 | py | from flask import render_template, redirect, request
from app import app
from app.forms import StartForm
from app.functions import get_information
@app.route('/', methods=['GET', 'POST'])
def start():
form = StartForm()
if form.validate_on_submit():
return redirect('/choise')
return render_templat... | [
"Timur-atm@mail.ru"
] | Timur-atm@mail.ru |
0f06963dc4565fec53882f9f5c4bd9329b4f3d85 | da1c56016a69b68fdb9010130a650778c363b4fa | /arrays/merge_sorted_arrays.py | 3dea6cecbe1c118e7b6f0577b3d66ebd297d8696 | [] | no_license | sandeepbaldawa/Programming-Concepts-Python | 519ab60fc9ca5bf2f52e098bab0885218a1d9411 | 178a1d26443066f469987467bda0390f5422561e | refs/heads/master | 2023-03-06T21:35:14.585039 | 2023-02-26T04:38:44 | 2023-02-26T04:38:44 | 40,800,329 | 12 | 5 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | class Solution(object):
def merge(self, nums1, m, nums2, n):
"""
:type nums1: List[int]
:type m: int
:type nums2: List[int]
:type n: int
:rtype: void Do not return anything, modify nums1 in-place instead.
"""
idx1, idx2 = m-1, n-1
while (idx1 >... | [
"noreply@github.com"
] | noreply@github.com |
942bad6052ac0e1168ff2fd57652246ca6e3a2fd | 3416464630bc3322dd677001811de1a6884c7dd0 | /others/q14_longest_common_prefix/__init__.py | 2e8fe4c2d56cc68aee767b789c99e32124d7ef6d | [] | no_license | ttomchy/LeetCodeInAction | f10403189faa9fb21e6a952972d291dc04a01ff8 | 14a56b5eca8d292c823a028b196fe0c780a57e10 | refs/heads/master | 2023-03-29T22:10:04.324056 | 2021-03-25T13:37:01 | 2021-03-25T13:37:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
FileName: __init__.py.py
Description:
Author: Barry Chow
Date: 2020/12/4 10:45 PM
Version: 0.1
""" | [
"zhouenguo@163.com"
] | zhouenguo@163.com |
d56f4a1195c7653d1f55388c4416fa51b7b127c5 | 278d81ef98513edb8f9a0a4407936ba7db01b1e3 | /scripts/quarel.py | 5555415872a786273fba5b886a6c5ff23093d9b5 | [] | no_license | SaurabhGodse/Major_Project | 5e121c3fb26d9e980669ea71d6619199f584c83a | 5127d1d83a4c73310a17b2b1eb4f849d07f2230d | refs/heads/master | 2022-11-14T00:28:09.771364 | 2020-07-12T10:25:54 | 2020-07-12T10:25:54 | 277,986,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,644 | py | import json
import nltk
# import string
from nltk import *
import pandas as pd
# nltk.download('wordnet')
from nltk.corpus import wordnet
import pickle
verbs = ['VB', 'VBG', 'VBD', 'VBN', 'VB', 'VBP', 'VBZ']
adjectives = ['JJ', 'JJR', 'JJS', 'RB', 'RBR', 'RBS']
lemmatizer = WordNetLemmatizer()
# keys = pd.read_csv("di... | [
"godsesaurabhgsm@gmail.com"
] | godsesaurabhgsm@gmail.com |
78013710f300eb4c9fbec08d64ea520f781fd729 | 97a14d0e3143fd59442e42d79632285e324fefb8 | /Python_exercises/19-6_parsowanie/19-6-2_parsowanie.py | 65be4a743ca894ce399f8b259fb5b9e942f32734 | [] | no_license | olszewskip/kodolamacz_harasym | 8bf732cb1f69e599854157c97458b688b605f43f | 7b319a7a017bf79f4235734f49574a3a9c7841e6 | refs/heads/master | 2020-03-19T16:27:13.873337 | 2018-06-23T16:48:56 | 2018-06-23T16:48:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | from pprint import pprint
FILENAME = './hosts'
with open(FILENAME) as file:
hosts = {}
for line in file:
line = line.strip()
if not line or line[0] == '#':
continue
ip, *host_names = line.split()
prot = '.' in ip
decode_prot = {False: 'ipv6', True: 'ipv... | [
"olspaw@gmail.com"
] | olspaw@gmail.com |
9fbd4414790f6c01e7a84591c3d5093412933571 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/1293ec85dd68dfc31183ae9ec654333301103660-<test_distribution_version>-fix.py | fb83f3cec75b577fead88273ad25d671dc08b97c | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | @pytest.mark.parametrize('testcase', TESTSETS, ids=(lambda x: x['name']))
def test_distribution_version(testcase):
'tests the distribution parsing code of the Facts class\n\n testsets have\n * a name (for output/debugging only)\n * input files that are faked\n * those should be complete and also inclu... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
c5d381413e74e6f10fc0ce1f13f915b255360198 | 8ffe2fb0e378afd97de1889eefcd4d3b95d659b6 | /Django/Django/settings.py | 89a6fb3903ba23b859743fe91b66ec6d25f258ae | [] | no_license | teemutoikkanen/SulkapalloDjango | 820b7eefb44fff54afb1d5251c0d05d877469774 | 04aeb2e08f305742b9dd127210d05f889bdc247d | refs/heads/master | 2020-03-12T12:21:47.890845 | 2018-04-22T23:46:29 | 2018-04-22T23:46:29 | 130,616,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,689 | py | """
Django settings for Django project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | [
"teemu.toikkanen@aalto.fi"
] | teemu.toikkanen@aalto.fi |
a50a1ec030f76876a6d96c3e54bb2903824f887a | 416fc7edb7e19cf3d649b2cb7cc83981ebf69a59 | /tests/test_gdef_importer.py | 185ff37b54fb833f9349ec97cb53e610ccba7c26 | [
"MIT"
] | permissive | natter1/gdef_reader | 2af9ecc6c3a3431abcaa0f711507a33c06126f49 | 6f161ba3ae82449e10238ae92f8e06bd785f2105 | refs/heads/master | 2023-01-24T01:42:38.435664 | 2023-01-05T09:50:59 | 2023-01-05T09:50:59 | 243,775,694 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 958 | py | """
This file contains tests for gdef_importer.py.
@author: Nathanael Jöhrmann
"""
# todo: add temporary folder and test export of *.pygdf and *.png (export_measurements())
from gdef_reader.gdef_importer import GDEFImporter
from tests.conftest import AUTO_SHOW
class TestGDEFImporter:
def test_init(self, gdf_exam... | [
"njoehrmann@gmail.com"
] | njoehrmann@gmail.com |
aafe3051a64a14a57d3f1ca72752c575dc969f49 | 1cd6b1fadc6f241108fc365250fc6774548e143d | /Chapter 3/03_string_function.py | 78487af421285861d586d5f51a72add738ba828b | [] | no_license | Tarun-Rao00/Python-CodeWithHarry | c0275065c078c6d43b2ed388b0b079ce0a37af04 | c0b6d78feedb58a464ddbe20a885e42e030fd8f0 | refs/heads/master | 2023-08-02T11:13:06.065126 | 2021-10-09T13:40:19 | 2021-10-09T13:40:19 | 415,316,821 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | story = "once upon a time there was a youtuber Harry who uploaded free python course with handwritten notes"
name = "Tarun Rao"
name_small = "tarun Rao"
# String Functions
# Length
print(len(story))
print(len(name))
string = "This will number of characters in the string"
print(len(string))
# Endswith
print(string.end... | [
"royalraotarun@gmail.com"
] | royalraotarun@gmail.com |
0c1dfa95811d44484a4859222f7f852fb83673bf | 60c797b7747d5ebb0bf9f15cfe5324a6ad301a81 | /doc/source/conf.py | 8625442f1a91c1642573b8cb0ef7c163efba42a5 | [
"Apache-2.0"
] | permissive | b3c/mod_auth | cec46a535d131d6f55ce436ee3b58dc3ac306952 | cacff60ecda51babbe5c55e5f46b6db36ab6752e | refs/heads/master | 2020-05-31T09:33:54.700362 | 2013-03-27T13:30:14 | 2013-03-27T13:30:14 | 5,192,214 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,796 | py | # -*- coding: utf-8 -*-
#
# mod_auth documentation build configuration file, created by
# sphinx-quickstart on Wed Jul 25 15:43:15 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | [
"a.saglimbeni@scsitaly.com"
] | a.saglimbeni@scsitaly.com |
2a624d33c2c930bf7d80f938ddce0229b033e9ae | 760a4c9fb6a608be483220163476611f92d4cc65 | /itertools.py | 75dbf21efbd7be556665c354058b46814f3ef76a | [] | no_license | thanuganesh/thanuganeshtestprojects | 6bdace11523da6b4b1b29cd8f30193a0eb4cd88e | f09fda7b761274c855a1347d5055b439c1a3ac84 | refs/heads/master | 2020-04-05T13:13:14.622938 | 2018-11-17T13:04:13 | 2018-11-17T13:04:13 | 156,892,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,198 | py | """ This script helps to identify how itertools are working"""
import itertools
counter = itertools.count(start=5)
print(next(counter))
print(next(counter))
data = [100,200,300,400]
data_count = list(zip(itertools.count(), data))
data_count1 = list(zip(range(1, 10), data)) # prints only the data items count
da... | [
"thanuganesh24@gmail.com"
] | thanuganesh24@gmail.com |
b798c7cbe257643e2dfdb4ec1ece8de729257d4b | 889b81ef12c0b4c9590e3ec07024c86787cf3196 | /algorithms/google/RemoveComment.py | 624ca51f0f687560fa8c889dfd381c54e5cccf84 | [] | no_license | james4388/algorithm-1 | ab06ff40819994483e879f2f9c950e6b6711832c | 2d5c09b63438aee7925252d5c6c4ede872bf52f1 | refs/heads/master | 2020-11-25T04:43:24.249904 | 2019-11-18T06:12:48 | 2019-11-18T06:12:48 | 228,507,062 | 1 | 0 | null | 2019-12-17T01:26:59 | 2019-12-17T01:26:59 | null | UTF-8 | Python | false | false | 1,317 | py |
# https://leetcode.com/problems/remove-comments/
# Source contains list of lines
# comment block: /*..*/ can span multiple line, and line //
# Remove comment from code
# Special case: /*/
def removeComments(source):
res = []
hasBlock = False
blockStartIdx = None
text = ''
for num in range(len(so... | [
"tamnghoang@gmail.com"
] | tamnghoang@gmail.com |
14167fcc8c9e9bcc4a97f995bda3a742067eaa30 | 752ba86555cd6e5dcdbe85e68f311c2cbf8c7de9 | /1.Pythonプログラミングの基本/2章.フロー/exitExample.py | 283c1d3599f4d1acf25e1768402ca08a26d23fa8 | [] | no_license | Pyo0811/CodeCamp | e2615f476e2a5b863542d0b3f91bf68b46f30d4c | 43b62ac953293d15fb02cd2e4ccffb0f2afec4ae | refs/heads/master | 2020-03-30T09:15:18.408363 | 2018-11-19T14:55:06 | 2018-11-19T14:55:06 | 151,068,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | from sys import *
while True :
print('終了するにはexitと入力してください。')
response = input()
if response == 'exit':
exit()
print(response + 'と入力されました。')
| [
"sjpyo91@gmail.com"
] | sjpyo91@gmail.com |
dc2b75d3d1c4afa7f4a66aed083cf6b96ac73a86 | 83fbf7296ca911d774af0c3ce54e4d39ab2aa670 | /model_api/model_api/wsgi.py | 0255074081344b6a767a9e2f841e6ce94887d5cf | [] | no_license | Xavizkid/Python_For_Data_Analysis | 6085e7a2925c9478aa3bb27dfcb52aefe07f6837 | f90d5f4b305c1359afec4bf8d2b10c6d93a5a36f | refs/heads/main | 2023-02-14T03:53:46.454377 | 2021-01-10T18:40:31 | 2021-01-10T18:40:31 | 323,577,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for model_api 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"noreply@github.com"
] | noreply@github.com |
7e5bb7c4fd4c0b14d3a1b3190ac870bc303b7697 | a20c2e03720ac51191c2807af29d85ea0fa23390 | /vowelorconsonant.py | 18231b547eae391f8d07f55d552ba6abc0453b56 | [] | no_license | KishoreKicha14/Guvi1 | f71577a2c16dfe476adc3640dfdd8658da532e0d | ddea89224f4f20f92ebc47d45294ec79040e48ac | refs/heads/master | 2020-04-29T23:32:13.628601 | 2019-08-05T17:48:18 | 2019-08-05T17:48:18 | 176,479,262 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | n=input()
a=ord(n)
f=0
if (a in range(97,123))or(a in range(65,98)):
v=[65,69,73,79,85,97,101,105,111,117]
for i in v:
if(i==a):
f=1
print(vowel)
break
if(f==0):
print("Consonant")
else:
print("invalid")
| [
"noreply@github.com"
] | noreply@github.com |
f64984a3fbdce4d894725b8e850866123ab62660 | 6b82695358c309bd09da9153dbedf26720fa7dc6 | /2020/18.py | 5a857f9455b8ffffd6731e00165c580483ea65aa | [] | no_license | viliampucik/adventofcode | 0e7b4cca7d7aaed86bdc2b8c57d1056b4620e625 | e7e0ab44ace3cf762b796730e582ab222a45f7d0 | refs/heads/master | 2023-01-04T18:19:07.064653 | 2022-12-26T19:42:59 | 2022-12-26T19:42:59 | 226,700,744 | 33 | 3 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | #!/usr/bin/env python
import re
import sys
class I(int):
def __add__(a, b):
return I(a.real + b.real)
def __sub__(a, b):
return I(a.real * b.real)
__mul__ = __add__
lines = re.sub(r"(\d+)", r"I(\1)", sys.stdin.read()).replace("*", "-").splitlines()
print(sum(eval(line) for line in line... | [
"viliampucik@users.noreply.github.com"
] | viliampucik@users.noreply.github.com |
78884c794524fa71c1414efcdae273a4bfb641fb | 9ee32a4170db4639e904a14c582aaac66a7fa265 | /spyvm/test/jittest/base.py | 3bf38e1086e5b19ef1eb55615f3f1bb7f457b744 | [] | no_license | timfel/lang-smalltalk | b5f3e2e3da1894c18c1ea46211dad6cfdc67a19c | e326304466adab077f7dcddeea174a35cd045942 | refs/heads/master | 2016-09-05T23:59:33.936718 | 2014-01-17T08:21:50 | 2014-01-17T08:21:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,067 | py | import subprocess
import os
# TODO:
from pypy.tool.jitlogparser.parser import SimpleParser, Op
from pypy.tool.jitlogparser.storage import LoopStorage
from rpython.jit.metainterp.resoperation import opname
from rpython.jit.tool import oparser
from rpython.tool import logparser
BasePath = os.path.abspath(
os.path... | [
"timfelgentreff@gmail.com"
] | timfelgentreff@gmail.com |
eaa28600c1e21f92f60215d35f16fee5c8077d0a | f965d10cf1d47f3e76ccc6b1b67492d6d927bcf6 | /app/trackerapp/forms.py | 234230e30b4344e2142f2150aabf3ae79523a40d | [] | no_license | idalmasso/my_tracker_app | 413f34338f3e4dbf77963376578fefa35a0d5f3b | da9de8a5b81c757c54d1627309c0a24108341fde | refs/heads/master | 2020-04-01T01:02:13.429194 | 2018-11-10T16:28:40 | 2018-11-10T16:28:40 | 152,723,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, MultipleFileField, TextAreaField, SelectField,SelectMultipleField
from wtforms.validators import DataRequired
from .lookup import *
class AddTrackerForm(FlaskForm):
title = StringField('Title', validators=[DataRequired()])
descripti... | [
"ivano.dalmasso@gmail.com"
] | ivano.dalmasso@gmail.com |
571953564834f3a234047bd87a97f90651b0e1ab | 0205291dfd8c971c14848db38297b8ada75081f8 | /Pong.py | 35f0182a266d242d067c2455b81e50d6f69b67fe | [] | no_license | Mattmtech/Pong | 4721dd381f2f4dccb70eea597f7f07a2a5bd959a | 0adff27d9849a4c73a3abc17f255c4c6119f457f | refs/heads/master | 2020-04-04T00:56:18.756148 | 2018-11-01T04:39:28 | 2018-11-01T04:39:28 | 155,662,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,097 | py | import turtle
window = turtle.Screen()
window.title("Pong")
window.bgcolor("black")
window.setup(width=800, height=600)
window.tracer(0)
# Left Paddle
left_paddle = turtle.Turtle()
left_paddle.speed(0)
left_paddle.shape("square")
left_paddle.color("white")
left_paddle.shapesize(stretch_wid=5, stretch_len=1)
left_padd... | [
"mmarroquin@callutheran.edu"
] | mmarroquin@callutheran.edu |
dcae758306f16f23f0d2f0b82fe613cc29366596 | bb36b7af4f1eebba054657d79d55bcf8e5f1926a | /spider/migrations/0001_initial.py | 4e1a7510c9e8c0a1a2c89df3427ec8cabf09d2ac | [] | no_license | WetrInk/Spiderite | 0918fc6db0ceb1fec76a39b8b7b1d137682c97f2 | c49a3e89c6481c2ef8fec3e95d8081112caff3f8 | refs/heads/master | 2020-04-02T04:22:14.810768 | 2018-10-24T14:00:59 | 2018-10-24T14:00:59 | 154,013,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | # Generated by Django 2.1.2 on 2018-10-21 12:23
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Bulletin',
fields=[
('id', models.AutoField... | [
"weever56@gmail.com"
] | weever56@gmail.com |
fc2d879b50dddeb1fbae959fb47c53365375b981 | 1b5312c1c3e439eb52a1de981df0bf8fe34af048 | /venv/bin/easy_install | 26db7d7b5205a44f54aeb48b126b572be99675c2 | [] | no_license | michelle951111/SI507lec24 | 2d9501146a6c7bbcf6fe047cec11ff53c681a0c7 | 3ec364aea76171814631b67a59d733702884ec03 | refs/heads/master | 2020-03-09T20:14:05.062492 | 2018-04-10T18:36:14 | 2018-04-10T18:36:14 | 128,979,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | #!/Users/michelleyuan/Documents/GitHub/lec24/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"yuanmeng@umich.edu"
] | yuanmeng@umich.edu | |
4e8f8843efccc8e62b784f72e0a0c8e2cf550a4f | 161d43b73438c4423949f4d4898e44f015691a0e | /jia/coords2grid_Wx_stampede.py | 580269d80af282a4a2011cfbeec9d4df619480a3 | [] | no_license | apetri/CFHTLens_analysis | a44f754114a6a6129088f0771cc558baed987462 | b19343b43b54870f7950bcd9ea76bbe829448c44 | refs/heads/master | 2020-05-21T22:06:24.551906 | 2017-12-14T16:17:08 | 2017-12-14T16:17:08 | 16,521,933 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,704 | py | ##########################################################
### This code is for Jia's thesis project B. It does the following:
### 1) organizes the CFHT catalogue to 4 Wx fields, with proper
### format that's easy to use in the future
### 2) pick out a random redshift and 2 peak redshift
### 3) converts RA DEC to (x, ... | [
"liuxx479@gmail.com"
] | liuxx479@gmail.com |
8331cad7bb3dc5eb44b3b3c8b18a4d3cc6de8ad1 | 3abc672f601d44e74879c3641f967d957be336e5 | /ImageOperations.py | 25325ff0bf9e1730339e427fc7ccbb8367341137 | [] | no_license | OrganicGrow-solutions/Broccoli-counter | 935cbcf66a8171f2763ae14cc745268889fb418a | 0de3baf018709b17ef98f84777f77741bf9f4ebb | refs/heads/master | 2023-02-27T21:20:11.818780 | 2021-02-05T05:18:40 | 2021-02-05T05:18:40 | 295,911,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,416 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 14 22:57:12 2020
@author: Todd Gillies
This is a class file which contains methods that perform various operations on the image.
"""
import ImageTests
import cv2
import numpy as np
class ImageOperator:
def __init__(self, erosionKernel, filte... | [
"noreply@github.com"
] | noreply@github.com |
9fe52b0d2955064f02e33f7ef81e170492fd5ec5 | 1ee90596d52554cb4ef51883c79093897f5279a0 | /Sisteme/[C++] Ox Event Manager - Top 5 winners by Vegas [PREMIUM]/03. Client/root/uioxevent.py | 1c602cfdb96c46c0b87d52f75e480054a6e1e75f | [] | no_license | Reizonr1/metin2-adv | bf7ecb26352b13641cd69b982a48a6b20061979a | 5c2c096015ef3971a2f1121b54e33358d973c694 | refs/heads/master | 2022-04-05T20:50:38.176241 | 2020-03-03T18:20:58 | 2020-03-03T18:20:58 | 233,462,795 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,095 | py | # -*- coding: utf-8 -*-
###################################################################
# title_name : Metin2 - Ox Event Manager & Top 5 winners [Full source]
# date_created : 2017.01.21
# filename : uioxevent.py
# author : VegaS
# version_actual : Version 0.0.1
#
import ui
import dbg
import app
import chat... | [
"59807064+Reizonr1@users.noreply.github.com"
] | 59807064+Reizonr1@users.noreply.github.com |
c51c47fe98b99582b8290fe9dc891c501ea895a2 | 8b5f0776902ae7a3c68e3907bf4595af173396e6 | /pythondemo/apps/request_demo/httpdemo.py | dfcaa35f586a9e01113e7488631e9b317baad57b | [] | no_license | coronahana/runpython | 8fcdd57b0c826b86f630d29b9b256861196ab58f | c03bdc369c8f69a542b716a33a533f240d89e5bf | refs/heads/master | 2021-05-11T04:05:10.558549 | 2019-12-19T10:25:03 | 2019-12-19T10:25:03 | 117,932,850 | 0 | 0 | null | 2019-12-12T15:07:04 | 2018-01-18T04:35:53 | Python | UTF-8 | Python | false | false | 1,210 | py |
import requests
import json
from logind import LoginDemo
class InterfaceDemo(LoginDemo):
name=19
"""
def __init__(self):
print("interfaceDemo___init__")
"""
def newproject(self):
print("interfaceDemo__newproject")
url = 'https://xxxx.xxx.xx/login?src=https%3A%2F%2Fwww... | [
"1224140873@qq.com"
] | 1224140873@qq.com |
9f2065bd4b9b05b7fd5593a811ca15c881262e18 | 9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612 | /exercises/1901100074/1001S02E04_control_flow.py | 277c23ad93ad113524aafbc37d76b134afe8be9f | [] | no_license | shen-huang/selfteaching-python-camp | e8410bfc06eca24ee2866c5d890fd063e9d4be89 | 459f90c9f09bd3a3df9e776fc64dfd64ac65f976 | refs/heads/master | 2022-05-02T05:39:08.932008 | 2022-03-17T07:56:30 | 2022-03-17T07:56:30 | 201,287,222 | 9 | 6 | null | 2019-08-08T15:34:26 | 2019-08-08T15:34:25 | null | UTF-8 | Python | false | false | 355 | py |
print('打印九九乘法表')
for i in range(1,10):
for j in range(1,i + 1):
print(i, '*' , j, '=', i* j, end='\t')
print()
print('\n打印跳过偶数行的九九乘法表')
i = 1
while i < 10:
if i % 2 == 0:
print()
else:
for j in range(1,i + 1):
print(i, '*' , j, '=', i * j, end='\t')
i += 1
| [
"3507842712@qq.com"
] | 3507842712@qq.com |
c7097703377e37843c47abd796ec4f333f4d2e77 | fde31c14f7a31bc98221e3959748748c32bfc7ad | /stock/tests.py | 6c296e822db3a61d931e039b2f4a94f5f04f77dd | [] | no_license | schoolofnetcom/django-avancado | d557d05a96db6bc8471fec6cfc1bc80b78ea2266 | 0a9e0c92c437928caf3e647b7d9a35a0633d1ff2 | refs/heads/master | 2021-05-04T19:47:14.636565 | 2018-12-19T22:13:39 | 2018-12-19T22:13:39 | 106,818,135 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,908 | py | from django.contrib.auth.models import User
from django.test import TestCase
# Create your tests here.
from django.test.testcases import SimpleTestCase
from django.urls.base import reverse
from stock.models import Product, TimestampableMixin, StockEntry
class ProductTest(SimpleTestCase):
def test_value_initial_... | [
"argentinaluiz@gmail.com"
] | argentinaluiz@gmail.com |
bee0d4a64d8b86383ac57f7631cf62041079a8ed | b66bf5a58584b45c76b9d0c5bf828a3400ecbe04 | /week-04/4-recursion/6.py | 757f22bf72fb91301f22cd313315ff7f695c6926 | [] | no_license | greenfox-velox/szepnapot | 1196dcb4be297f12af7953221c27cd1a5924cfaa | 41c3825b920b25e20b3691a1680da7c10820a718 | refs/heads/master | 2020-12-21T08:11:41.252889 | 2016-08-13T10:07:15 | 2016-08-13T10:07:15 | 58,042,932 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # 6. We have bunnies standing in a line, numbered 1, 2, ... The odd bunnies
# (1, 3, ..) have the normal 2 ears. The even bunnies (2, 4, ..) we'll say
# have 3 ears, because they each have a raised foot. Recursively return the
# number of "ears" in the bunny line 1, 2, ... n (without loops or
# multiplication).
def ha... | [
"silentpocok@gmail.com"
] | silentpocok@gmail.com |
6fe458712832c481350feecfbc01f759822fdc4d | 9307f8cae01d94fca805fcb2d221018aa0159e90 | /prototype/prototype/openstack/common/periodic_task.py | 250497c6a4c843c257aeb71fcdaf8224fe25b27b | [
"Apache-2.0"
] | permissive | beibei1989/oslo.prototype | 22ff20615876e239fce42edc35d02ca7cfb066ee | 806870780194e45a66b28cd7260fa9bfd422aecb | refs/heads/master | 2021-05-29T13:08:56.802185 | 2015-02-11T07:12:01 | 2015-02-11T07:12:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,322 | py | #
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# ... | [
"yangyuan@users.noreply.github.com"
] | yangyuan@users.noreply.github.com |
36d9e846608b55ec03ebe783ec8794af6d624e6e | 8c7c35fa3bb907a0257051db626bdd4a1ad56c75 | /Pulsar/PulsarLib.py | 8da0877e6c20f4efa48d7d974708af13f92a5962 | [] | no_license | fermi-lat/celestialSources-new | b9635156a11fe62c384beab881efee4d723094cd | 07af8b12227db0602a03c2c9fc3af95694a70f02 | refs/heads/master | 2021-07-10T14:11:45.734241 | 2017-09-30T18:03:46 | 2017-09-30T18:03:46 | 106,605,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | def generate(env, **kw):
if not kw.get('depsOnly',0):
env.Tool('addLibrary', library = ['Pulsar'])
if env['PLATFORM'] == 'win32' and env.get('CONTAINERNAME','')=='GlastRelease':
env.Tool('findPkgPath', package = 'Pulsar')
env.Tool('findPkgPath', package = 'SpectObj')
env.Tool... | [
""
] | |
fb5dc4f1adab784f0f9aee9cb07451f4c9406aa0 | 5b6fe4eba4540e37bb8a0c7dbea3b0a416769041 | /CRABSERVER/src/python/ProxyTarballAssociator/__init__.py | 9b9fcf70c13ea2f611e28e32c87fb4cb4c103b14 | [] | no_license | bbockelm/CRAB | 55814f3ff8cf56ccf19e60a0b815fe3144063d83 | 48a12c644164b5142c44ef023ac103af178922d4 | refs/heads/master | 2021-01-10T20:38:51.683231 | 2013-04-15T15:20:23 | 2013-04-15T15:20:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | #!/usr/bin/env python
"""
_ProxyTarballAssociatorComponent_
"""
__author__ = "farinafa@cern.ch"
__revision__ = "$Id: __init__.py,v 1.0 2006/11/20 14:38:00 farinafa Exp $"
__version__ = "$Revision: 1.0 $"
__all__ = []
| [
""
] | |
3ddc19354fa1633b9ee31d7c381329a6f26e45c6 | 224f9685ef222d26284560c365c407431255c389 | /python/mantis/__init__.py | 393c8326147e0abe70c05d77165ab7bba356c602 | [] | no_license | EyalSel/mantis-module | e66d3b0a7058dc20307e0b2aafdb729e5ecb103e | 62f6a0910bc05cfeb5bf971b0564abf8fa11bfe2 | refs/heads/master | 2020-11-26T17:40:03.185276 | 2019-12-15T23:29:40 | 2019-12-15T23:29:40 | 229,162,354 | 0 | 0 | null | 2019-12-20T00:45:08 | 2019-12-20T00:45:07 | null | UTF-8 | Python | false | false | 342 | py | import click
from mantis.consume import consume
from mantis.load_gen import load_gen
from mantis.metric import metric_monitor, result_writer
@click.group()
def cli():
pass
cli.add_command(consume)
cli.add_command(load_gen)
cli.add_command(metric_monitor)
cli.add_command(result_writer)
def wrapper():
cli(s... | [
"xmo@berkeley.edu"
] | xmo@berkeley.edu |
7bd5b4b65ead10f64533fc5df322bc6ee73431a3 | 873eff0466f282d627c1a8ee3866240f63d31ed6 | /220. Contains Duplicate III.py | 98157c085e3141f2f83d81d778e9a4b2a0573716 | [] | no_license | wooloba/LeetCode861Challenge | c5a6ab6a35384c18d5a968e9898edff21ac2e13a | 33db8a064cc7fdbe9e7ed1b4fdc2c6ef74deb29b | refs/heads/master | 2021-08-07T10:39:38.062779 | 2021-06-21T01:44:59 | 2021-06-21T01:44:59 | 141,374,370 | 4 | 1 | null | 2018-07-18T15:11:15 | 2018-07-18T03:10:35 | Python | UTF-8 | Python | false | false | 842 | py | ####################
# Yaozhi Lu #
# Nov 14 2018 #
####################
#Origin: https://leetcode.com/problems/contains-duplicate-iii/
class Solution(object):
def containsNearbyAlmostDuplicate(self, nums, k, t):
"""
:type nums: List[int]
:type k: int
:type t: int
... | [
"luyaozhiusing@gmail.com"
] | luyaozhiusing@gmail.com |
2bf06e0ad8127a620f73166fdad183db2ad4a00b | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc026/A/4904316.py | f402a614334f49b3bcdec3a0f4f6dd30b813e978 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | a = int(input())
print(int((a ** 2) / 4)) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
5d2344e318665298f82748bfeb35193bd3a1797f | be56ade48d7cc44db281ce2d24df723d94b300d0 | /site/libs/tests.py | aed98444b40c15722a2eb195832cb2031a972a6f | [] | no_license | olymk2/stomatopod | e4c16815112e432c2c74dae23f14d292ffd3f8d4 | e8844e0f92ae76a44bb16fe31770a77bf47c2edf | refs/heads/master | 2020-12-24T16:50:20.805943 | 2015-10-26T09:21:49 | 2015-10-26T09:21:49 | 38,419,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py |
class testset(object):
count = 0
def __init__(self, name='testset', success_msg='Great scott these tests passed !', failure_msg='This encounter could create a time paradox !', verbose=False):
sys.stdout = StringIO()
self.name = name
self.success_message = success_msg
self.failu... | [
"oliver.marks@influentialsoftware.com"
] | oliver.marks@influentialsoftware.com |
3d48ec33045fb784ead90b898d450e65020f22cd | 40ce4d7545309ca57f0670a3aa27573d43b18552 | /com.ppc.Microservices/intelligence/daylight/location_midnight_microservice.py | c6ef5c09622b3603af1f31da45b9aac04e419e01 | [
"Apache-2.0"
] | permissive | slrobertson1/botlab | 769dab97cca9ee291f3cccffe214544663d5178e | fef6005c57010a30ed8d1d599d15644dd7c870d8 | refs/heads/master | 2020-07-28T06:45:37.316094 | 2019-09-18T15:34:08 | 2019-09-18T15:34:08 | 209,341,818 | 0 | 0 | Apache-2.0 | 2019-09-18T15:23:37 | 2019-09-18T15:23:37 | null | UTF-8 | Python | false | false | 878 | py | '''
Created on February 25, 2019
This file is subject to the terms and conditions defined in the
file 'LICENSE.txt', which is part of this source code package.
@author: David Moss
'''
from intelligence.intelligence import Intelligence
class LocationMidnightMicroservice(Intelligence):
"""
Announce midnight t... | [
"dmoss@peoplepowerco.com"
] | dmoss@peoplepowerco.com |
033e3ba2b09c1724cbe12c3e9791b64c137b54e6 | c953e8a7d251e4aba08910156a1bcf6997940c80 | /2015/9/9_1.py | e3eb309bbed582025e5b5ca8fccb90513ac36d95 | [] | no_license | simonbrahan/adventofcode | 848ca9ab2fdd7b22e1eb13d43bb5cf93972e2e5f | 8e0053399defb2a8a83cd4bb4062f7e213b10174 | refs/heads/master | 2021-06-04T00:52:30.269561 | 2018-12-12T22:55:04 | 2018-12-12T22:55:04 | 56,775,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,714 | py | ex_input = open('input.txt', 'r')
distance_between_places = {}
routes = []
for line in ex_input:
start, ignore, end, ignore, distance = line.split(' ')
distance = int(distance)
if start not in distance_between_places:
distance_between_places[start] = []
distance_between_places[start].append({... | [
"simon.brahan@frogeducation.com"
] | simon.brahan@frogeducation.com |
1375f01b452c64c019fa1eae9b93de292611dfcf | 5b2d4ef4e3c45e52b554fc3722e7ae1e7d5403ad | /myforum/accounts/test/test_moderate.py | 550b3a5426f2e00ad0618478806975ff447c86b3 | [] | no_license | nithylsairam/myforum-master | f375bac715e35aaf97c0d22cb8668c95b34253ee | dbc98a60197d0b1c5dda37b8e9a021049ff742fa | refs/heads/master | 2020-07-17T00:38:01.285470 | 2019-09-02T17:37:57 | 2019-09-02T17:37:57 | 205,902,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | import logging
from django.test import TestCase
from django.shortcuts import reverse
from myforum.accounts.models import User
from myforum.accounts.util import get_uuid
from myforum.accounts.test.util import fake_request
from myforum.accounts import views, forms
class ModerateUser(TestCase):
def setUp(self):
... | [
"nithil1997@gmail.com"
] | nithil1997@gmail.com |
7ac8563d6aacb10540b4737d547e048a5b5d34cb | 8723e6a6104e0aa6d0a1e865fcaaa8900b50ff35 | /util/test_registration.py | 552ee309cf404634bd31b78fa6016c8364671422 | [] | no_license | ejeschke/ginga-plugin-template | 9c4324b7c6ffaa5009cce718de8ea2fc5172bc81 | 545c785a184aedb1535d161d3c5ca5e7bf5bed6e | refs/heads/master | 2022-11-22T17:50:57.503956 | 2022-11-10T23:20:09 | 2022-11-10T23:20:09 | 78,906,928 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | """
This program allows you to test whether your plugin will register
itself correctly.
"""
from pkg_resources import iter_entry_points
groups = ['ginga.rv.plugins']
available_methods = []
for group in groups:
for entry_point in iter_entry_points(group=group, name=None):
available_methods.append(entry_po... | [
"eric@naoj.org"
] | eric@naoj.org |
40ee07e78375994600154897421ebb3e4da7d420 | 132b214a5d9072d7ed7b4f0ccc681401251c160f | /home/migrations/0005_postnews.py | 5bdbf2d9ccc7019c7b86af0b1486ff2c945f0cd5 | [] | no_license | kagajugrace/DjangoAndroid | 7539699192079f193ed01e594c20e026b7387f74 | dd85d058725691f4896ebaab73be4438325c085b | refs/heads/master | 2023-03-03T14:51:27.921126 | 2021-02-13T09:41:47 | 2021-02-13T09:41:47 | 337,977,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | # Generated by Django 3.1.6 on 2021-02-12 14:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0004_auto_20210206_1347'),
]
operations = [
migrations.CreateModel(
name='Postnews',
fields=[
... | [
"kagajugrace@gmail.com"
] | kagajugrace@gmail.com |
cf669d847a73e884808151acc91b624f3c483dc6 | 64078d7fdf4ca6349ab7447cf5aec8d5b89ee80f | /mbta/mbta.py | 5712d2e542058ee3b5de3fec5d43b649f2f209e0 | [
"MIT"
] | permissive | mclarkelauer/pymbta | 9df072c7d6b53662b7fc41bfd603c0fcb5a511f7 | 2c3314a722539db6f516652261832363ba959435 | refs/heads/master | 2016-08-07T09:37:19.011564 | 2014-12-17T01:32:14 | 2014-12-17T01:32:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,045 | py | import urllib
import urllib2
import json
class mbta:
def __init__(self,api_key):
self.api_key=api_key
self.site="http://realtime.mbta.com/developer/api/v2/"
def pretty(self,d,indent=0):
for key, value in d.iteritems():
print '\t' * indent + str(key) +"\n"
if isinstance(value, dict):
... | [
"matt@clarkelauer.com"
] | matt@clarkelauer.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.