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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
770c83ca8481c2ca94e0b13d777b3ae3ae117705 | 798fd982237327ba6968df52af21c7f5ba64921a | /Python/projectEuler/test.py | 95fc26fdacee1c6af46a1a57222bcec5810690ea | [] | no_license | kriegaex/projects | ab47c90a07033b8314306c0757759397b5cf603e | c9ef96bcd0909d4310321bacde7651a4eb9a6f16 | refs/heads/master | 2022-12-27T07:54:24.373210 | 2020-09-29T04:35:42 | 2020-09-29T04:35:42 | 299,513,827 | 1 | 0 | null | 2020-09-29T05:31:54 | 2020-09-29T05:31:53 | null | UTF-8 | Python | false | false | 1,151 | py | from unit_tester import test
def search_binary(xs, target):
""" Find and return the index of key in sequence xs """
lb = 0
ub = len(xs)
while True:
if lb == ub: # If region of interest (ROI) becomes empty
return -1
# Next probe should be in the middle of the ROI
mi... | [
"chaozy.zhu.19@ucl.ac.uk"
] | chaozy.zhu.19@ucl.ac.uk |
3d27a5f70858a93347aafb3d4a58e352edf746b0 | c5b7c422ab73f779bec97fda8b54682815300fa3 | /aprs-master/aprs/decimaldegrees.py | de7b1de3374c952a6890ac4c95b8b153a846e0c8 | [
"Apache-2.0"
] | permissive | bbaydar/cloudhoppers | c7240566998f1024e319d94773f2617c385f4b3f | 0ec94fbea77d85227b7caff6ba494b6b13e93832 | refs/heads/master | 2021-01-20T22:44:46.052750 | 2017-08-30T01:06:24 | 2017-08-30T01:06:24 | 101,823,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,882 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
PyDecimalDegrees - geographic coordinates conversion utility.
Copyright (C) 2006-2013 by Mateusz Łoskot <mateusz@loskot.net>
Copyright (C) 2010-2013 by Evan Wheeler <ewheeler@unicef.org>
This file is part of PyDecimalDegrees module.
This software is provided 'as-is'... | [
"LilTigs@gmail.com"
] | LilTigs@gmail.com |
9f36779e687ed1474e2e97a9940161e6764000b2 | b0c8e0cafa4a8916faab3cce65756ae91426c43f | /study/Python/Week8/BOJ_11497_강의현.py | e96c5e3d830e8bd8766220fac444dcc77cd359af | [] | no_license | Rurril/IT-DA-3rd | b3e3ec3c2a5efbc75b76b84e9002c27a0ba4a1c4 | 9985e237cb1b90e9609656d534e0ed164723e281 | refs/heads/master | 2022-07-22T15:26:39.085369 | 2021-11-23T13:30:06 | 2021-11-23T13:30:06 | 288,980,334 | 3 | 29 | null | 2020-11-05T10:25:30 | 2020-08-20T10:49:17 | Java | UTF-8 | Python | false | false | 598 | py | # 통나무 건너뛰기 - S2
import sys
from collections import deque
T=int(sys.stdin.readline())
for _ in range(T):
new_log=deque()
N=int(sys.stdin.readline())
log=list(map(int,sys.stdin.readline().split()))
log.sort()
new_log.append(log[-1])
for i in range(N-2,-1,-1):
if i%2==0:
... | [
"riverkeh@naver.com"
] | riverkeh@naver.com |
3b47c5da4741a0da192e27f24e3861bc0a2247cc | d9a4e69a3cb6b791fecc0508eaf33896bc5c265b | /course.py | 8e13ca4af6e400848e0aba1e59d4a3792c024cc7 | [] | no_license | Jennifer-Vo/Organize-Grouping-Algorithm | 7d117fd96f32ab106a9a928ec9ee8a2c0d0264f1 | 44bd773c42c7a769a3e6d96eb663c6ab3647450f | refs/heads/main | 2023-02-09T18:23:12.804649 | 2021-01-03T07:48:48 | 2021-01-03T07:48:48 | 326,352,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,721 | py | """CSC148 Assignment 1
=== CSC148 Winter 2020 ===
Department of Computer Science,
University of Toronto
This code is provided solely for the personal and private use of
students taking the CSC148 course at the University of Toronto.
Copying for purposes other than this use is expressly prohibited.
All forms of distri... | [
"noreply@github.com"
] | noreply@github.com |
2ef3ab6c3fc3636d57b51cc1ce3cfb2152b737f7 | 8362040379d8c857d53abc88d80894496d512026 | /web_abang/Avangard/urls.py | 6c6073704ab29180da3bab3522a6f787994b3103 | [] | no_license | Huskiss/web_abang | 3266c0090ebc8cf59be7eb6b8b00bd059bb2a596 | 896d80c696ef7b16045a5ea4ecf2bf92ae5aeb80 | refs/heads/master | 2023-03-01T11:53:36.161516 | 2021-02-19T01:10:54 | 2021-02-19T01:10:54 | 335,554,690 | 0 | 5 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | """Avangard URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"sh0316@kakao.com"
] | sh0316@kakao.com |
2ba8d0457b0f510232d4d95043d81f82a5fa7b41 | b8fed8222b41e447cd5ce83513eb4d014c01742b | /sbm_purchase_rent/contract/po_contract.py | bc25bb0bcb7486749663e8676b19e87b615275c2 | [] | no_license | lajayuhniyarsyah/ERP-Supra | e993d8face6e022b6f863d1dff7cb51cda36be8d | 5a64dbb57ee40070354926700091fb9025c1350c | refs/heads/master | 2021-01-25T22:09:46.306990 | 2017-11-08T05:32:04 | 2017-11-08T05:32:04 | 23,605,825 | 0 | 10 | null | 2017-11-08T05:32:05 | 2014-09-03T03:58:28 | Python | UTF-8 | Python | false | false | 1,186 | py | from datetime import datetime
import netsvc
from osv import osv, fields
class POContract(osv.osv):
_inherit = 'purchase.order'
_columns = {
'contract_id' : fields.many2one('purchase.order.contract.data','Contract',ondelete="Cascade"),
'contract_no' : fields.related('contract_id','contract_no',type="char",string... | [
"lajayuhni@gmail.com"
] | lajayuhni@gmail.com |
ecd4a680ed96fd1e6823712d929270a37f0452b7 | 52665ece10eda10a3e6a345eaf181a54410ca6b4 | /api/contractt/wsgi.py | f1b4cb5e7d481079b1ff9ec0cbde5a415ec8b17c | [] | no_license | arthurzeras/contractt | 11680cf1423ba7c86080f62f1181a48a7b60c06c | 0d63e451bcdb9d9b4024da74cabe3e48eb6efcf4 | refs/heads/master | 2023-03-23T04:34:35.282238 | 2020-07-20T13:05:07 | 2020-07-20T13:05:07 | 246,305,578 | 0 | 0 | null | 2021-03-19T23:25:31 | 2020-03-10T13:16:47 | Python | UTF-8 | Python | false | false | 170 | py | import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'contractt.settings')
application = get_wsgi_application()
| [
"lucas.souto@instruct.com.br"
] | lucas.souto@instruct.com.br |
b840c6a48ee6c433de33cef3b63ad6544edebd28 | b183d2e19a913e1e28c958646ecb945f4d42de1b | /funnyitem/urls.py | 12042904e1714321c0e3601981a26f995e4f9af6 | [] | no_license | lydiapierce/Django-Humor-Site | 18e8609dad0edbe2b1a27365058cce17dc116073 | 7b8c8b7e21fc02b0bc079e28c1be4f48bf65fb7d | refs/heads/master | 2016-09-06T02:35:50.630857 | 2012-11-25T04:51:48 | 2012-11-25T04:51:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
from funnyitemposts.views import *
urlpatterns = patterns('',
('^$', home), #added
(r'^funnyitempost/(?P<funnyitempost_id>\d+)/$',funnyitempost_specifi... | [
"liddy.pierce@gmail.com"
] | liddy.pierce@gmail.com |
839c9387ac151c746e63cdb75c3c0509c99be87d | f9e1d9c71d232aa0bcf03627259e6c9f88538b18 | /gs92QuerysetAggregation/gs92/asgi.py | a4d73d71bdf12411bd1bef9349c4ca3d3cea7831 | [] | no_license | nayan-gujju/Django-Practice | a7db202b6a3627a6a4e9f96953b61e43eaf68cb1 | eafa29e9321a1683867b2ea1d26ca74dfa6db12d | refs/heads/master | 2023-07-27T11:41:43.956705 | 2021-09-09T08:47:44 | 2021-09-09T08:47:44 | 403,917,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
ASGI config for gs92 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"nayangujarati007@gmail.com"
] | nayangujarati007@gmail.com |
7ed63c610ff7d345da84727a19573d00b2b98a52 | 4271ef14947f5d38a993fc3484c433612e57d65e | /models/token.py | 190407a821612366bc59a1c51f1ce72c9004821e | [] | no_license | CHIKITCHONG/bbs | 4365db161a7d2eee468995e009f9bc4a02825254 | d7a3007efa55af284909b618dd215e480425c432 | refs/heads/master | 2020-03-28T05:31:50.848747 | 2018-09-12T03:58:05 | 2018-09-12T03:58:05 | 147,782,141 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | from sqlalchemy import Column, Integer, String
from models.base_model import db, SQLMixin
from models.user import User
class Token(SQLMixin, db.Model):
content = Column(String(36), nullable=False)
user_id = Column(Integer, nullable=True)
def user(self):
u = User.one(id=self.user_id)
retu... | [
"765150388@qq.com"
] | 765150388@qq.com |
6fde5d9d3dbfc441667d9375073164c721be9a12 | 64b1b6de177f39e174cd4ea038f515092a34f77f | /classes/Variable.py | 5c2d17e71a75077e112a89cda5f060c5bb22668d | [
"Apache-2.0"
] | permissive | chaoli314/openbn | 4bd48df9dfa2f69d463a58bc5ebdde48a1288b58 | bcb40984d930fc4d6c966b21381a4a25c26981f2 | refs/heads/master | 2020-12-03T01:57:08.121203 | 2017-07-07T02:38:13 | 2017-07-07T02:38:13 | 95,886,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | # This Python file uses the following encoding: utf-8
""" Subject line.
Main text.
"""
from functools import total_ordering
__author__ = 'Chao Li'
@total_ordering
class Variable(object):
def __init__(self, variable_index: int, variable_name, values: list):
self._variable_index = variable_index
... | [
"chao.li.314@gmail.com"
] | chao.li.314@gmail.com |
78eea12de223a2e58e86a79835f6face2fa47646 | e401470228d7c92690b05f7268e1a0709bc87dff | /Roleta/menus.py | 496addb896689cada632787a4cfac4febd80c8dc | [] | no_license | Djsouls/roleta | 1dfa505f5cedb3dceef7d8bb2f465bfd0cd10f82 | 384db2211d1df26b96a40e19b5cac967cab35c5f | refs/heads/master | 2020-08-08T01:47:49.876024 | 2019-10-10T14:00:57 | 2019-10-10T14:00:57 | 213,664,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | def showRouletteMenu():
print('+=================================+')
print('+ Escolha o tipo de roleta +')
print('+ 1 - Roleta Americana +')
print('+ 2 - Roleta Europeia +')
print('+ 3 - Roleta Francesa +')
print('+=================================+') | [
"djalmirinha@gmail.com"
] | djalmirinha@gmail.com |
f595c71d34cfb1606170d2728772f40f56279ff0 | 2309a185c5427f576b7f5bb927a572c778533403 | /smc_updater.py | 5f0996cfab1af45aa08a92a4ed4d4888848be66d | [] | no_license | wxlg1117/smc_updater | 6f4b8a5389dd417a3fce33270f78b036e31e1119 | aa88364a7c000c2dfed80cb70a77751ff4ae7a9f | refs/heads/master | 2020-06-20T11:11:45.107570 | 2019-05-20T21:18:46 | 2019-05-20T21:18:46 | 197,104,198 | 1 | 1 | null | 2019-07-16T02:16:17 | 2019-07-16T02:16:16 | null | UTF-8 | Python | false | false | 9,690 | py | import os
import time
import sys
import re
import json
import cli_ui
import delegator
import logging
import urllib.request
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
from pyvirtualdisplay import Display
manual_run = True
sum_bin = "./sum_2.1.0_Linux_x86_64/sum"
ipmicfg_bin ... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
558b51d0948db20b4794d1b8d06e95d8f2c5f64d | 85100de7ca86b5d4ab68450542142b8a6f66e65e | /display_plot.py | 96dc46a0f7209e4c416d45de511c255f714c61bc | [] | no_license | PhilWicke/PotPi_Plant_Irrigation | a2146ef5258af3d1d0ad96ac39b4c28f576f7e45 | ce15ecdd08d466507f2812e10cc9592a00b4e667 | refs/heads/main | 2023-02-03T02:00:40.741178 | 2020-12-20T19:25:32 | 2020-12-20T19:25:32 | 319,044,756 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,597 | py | import time
import Adafruit_GPIO.SPI as SPI
import Adafruit_SSD1306
from PIL import Image
from PIL import ImageDraw
from PIL import ImageFont
import busio, digitalio, board, time
import adafruit_mcp3xxx.mcp3008 as MCP
from adafruit_mcp3xxx.analog_in import AnalogIn
import RPi.GPIO as RPIO
def interpolate(val, source_r... | [
"philipp.wicke@ucdconnect.ie"
] | philipp.wicke@ucdconnect.ie |
dcd84d7c0b53c2f40a66486fdf6c3037d9364199 | ff5404ecdac6281b982376fcb664f28fda46ecef | /benchmarks/asv_bench/benchmarks/serialize.py | bd8cb5f26f66d48a424b9c98905b1689a0251bef | [
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"MIT",
"ISC",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | qinxuye/mars | 628aa106214eb85bcc84d3b5b27761d4b51c57f8 | 6ffc7b909c790c2b4094d8a80bd749a6d90d2006 | refs/heads/master | 2022-06-17T04:58:57.885557 | 2022-06-06T12:11:11 | 2022-06-06T12:11:11 | 160,643,357 | 0 | 2 | Apache-2.0 | 2019-11-28T14:44:34 | 2018-12-06T08:28:59 | Python | UTF-8 | Python | false | false | 9,418 | py | # Copyright 1999-2022 Alibaba Group Holding 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 a... | [
"noreply@github.com"
] | noreply@github.com |
89f5da991953c12bdc0fc4486078c5d931e2dcd0 | 0c1de02e93efff93b4de879dbe2ccc2a25434875 | /products/routers.py | b0c76c8d60625e278ab633852135228991bfbf31 | [] | no_license | lalkrishnakothare/TradexaTask1 | 569d6305119a881c4b02cdc7e75e04e1b10c666b | 562073eab5022e05b7053918d6a1d06bb63079e8 | refs/heads/master | 2023-06-20T05:59:50.982490 | 2021-07-17T07:13:31 | 2021-07-17T07:13:31 | 386,849,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | class ProductRouter:
def db_for_read(self, model, **hints):
if model._meta.app_label == 'products':
return 'products_db'
return None
def db_for_write(self, model, **hints):
if model._meta.app_label == 'products':
return 'products_db'
return None
def... | [
"lalu.baluk@gmail.com"
] | lalu.baluk@gmail.com |
3665d3a6ec48cd4a1409ee51f0ae7b370ea65355 | 66aee2edec7683d59aec36db50c1bfdc351d99a6 | /data_extarction.py | d55d0fe4c1af4fde2c7e689398e0eb7d8e9f2d08 | [] | no_license | Shafim61/Machine-Learning | 1b52be3693e0fc1d9b4acae082560442f052e380 | 3d2bd6649dfafd7b5f263adefb0a112e8c8310a9 | refs/heads/main | 2023-02-26T10:26:03.729537 | 2021-02-03T12:05:18 | 2021-02-03T12:05:18 | 335,608,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | import requests
from bs4 import BeautifulSoup
url = "http://en.wikipedia.org/wiki/Iphone"
response = requests.get(url).text
soup = BeautifulSoup(response,"lxml")
table = soup.find("table",class_="wikitable")
rows = table.find_all('tr')[1::1]
d={}
for row in rows:
data = row.find_all(['th','td'])
try:
... | [
"tanvirrashik94@gmail.com"
] | tanvirrashik94@gmail.com |
d10302e6ff2ba378e2dae11f318316dd463018e5 | 5f1ddeebf606975f559bcf9ef20c2184479b07c0 | /apps/cdda/cdda.py | 4a938f3c46fed60fbb6acf1854f6a584c7cf4c77 | [
"Unlicense"
] | permissive | cassaundra/cassaundra_talon | 3fc7d3d3712b17012da9bf31525b84a568d494fe | 18d1449c0840ec0fa462e546fdb8d1fee5ad4c0c | refs/heads/master | 2023-02-02T11:26:54.739139 | 2020-12-17T20:11:05 | 2020-12-17T20:11:05 | 301,019,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | from talon import Context, Module, actions, ui
# ctx = Context()
mod = Module()
mod.tag("cdda", desc="Cataclysm: Dark Days Ahead")
# ctx.matches = r"""
# app: cataclysm-tiles
# """
@mod.action_class
class Actions:
def key_repeat(key: str, count: int):
"""Play key with delay"""
for i in range(0, c... | [
"cass@cassaundra.io"
] | cass@cassaundra.io |
0485c06a92bd564030cc3dff86d3ed9c9bb8fbd3 | ec931947aa3e06ce565637e7ee1cb707f56375a2 | /aoc2015/modules/grid.py | 145b44dc85960aecdd0fa419d8dbac10c91fa804 | [] | no_license | chrisglencross/advent-of-code | 5f16ed7e2265d27ce15f502ce2a1c2f11fc99fc0 | 21623d4aa01a9e20285a0233c50f8f56c4099af5 | refs/heads/master | 2023-01-24T22:01:30.829679 | 2023-01-12T23:03:03 | 2023-01-12T23:03:03 | 224,833,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,596 | py | from __future__ import annotations
from typing import Tuple, Dict, List, Optional
import networkx as nx
from aoc2019.modules import textgridprinter
from aoc2019.modules.directions import COMPASS_DIRECTIONS
Coords = Tuple[int, int]
def default_is_navigable(grid: Grid, from_coord: Coords, to_coord: Coords):
ret... | [
"chris@glencross.org"
] | chris@glencross.org |
ac89a3e772ac4651679f9bbcd3d7859f8433465b | 63f9a0d150cbef75f4e6e8246dc7ecac3f3b6d09 | /python/ray/serve/controller.py | 3176a6321bab846bb8ad713f732a0067362fc473 | [
"Apache-2.0",
"MIT"
] | permissive | ray-project/maze-raylit | 79f0a5af9fe4bdc13a2d5b3919da867ed5439aab | a03cd14a50d87d58effea1d749391af530d7609c | refs/heads/master | 2023-01-23T04:23:35.178501 | 2020-12-04T22:34:14 | 2020-12-04T22:34:14 | 318,274,659 | 5 | 0 | Apache-2.0 | 2020-12-04T22:34:15 | 2020-12-03T17:47:58 | Python | UTF-8 | Python | false | false | 41,020 | py | import asyncio
from collections import defaultdict
from itertools import chain
import os
import random
import time
from dataclasses import dataclass, field
from typing import Dict, Any, List, Optional, Tuple
from pydantic import BaseModel
import ray
import ray.cloudpickle as pickle
from ray.serve.autoscaling_policy im... | [
"noreply@github.com"
] | noreply@github.com |
6d4ccc01a0dc81b33d21a9f1ecd1714a78978b4a | 9b1446b26e81a79c303f9799fb6a91785c7adb03 | /.history/Code/markov_chain_20200121115909.py | bdd2412da83d245c8cc5b9d7f73b3d70654d3c82 | [] | no_license | SamirIngley/CS1.2-Tweet-Gen | 017ea15b1113881a156ff24682828bc654eb6c81 | bcd95fa63e05849cbf8e36230d8e31032b99daaa | refs/heads/master | 2020-12-14T20:19:57.733290 | 2020-08-04T23:19:23 | 2020-08-04T23:19:23 | 234,856,234 | 0 | 0 | null | 2020-06-05T21:13:04 | 2020-01-19T07:05:55 | Python | UTF-8 | Python | false | false | 2,340 | py | import sample
import random
from clean_text import clean
from dictogram import Dictogram
class Markov():
def __init__(self, corpus):
self.corpus = clean(corpus)
self.states = {}
self.chain()
def chain(self):
last_word = None
for word in self.corpus:
i... | [
"samir.ingle7@gmail.com"
] | samir.ingle7@gmail.com |
bf3ab03aff33092943b6feb95eb8ecc781d53477 | 91d9bba0d7608818c077676c588701855dd1382c | /virtual/bin/pyrsa-encrypt | 3bf93434aec95d8f816bcb119259cc94286688e0 | [] | no_license | Antony-me/movie-library | 89e82c908288d55153aa81f2289087246e383cf4 | cbd333a79362ab1a2aa26356a6e914e9b67f5a63 | refs/heads/main | 2023-01-11T10:29:56.626291 | 2020-11-19T12:17:29 | 2020-11-19T12:17:29 | 313,741,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | #!/home/moringa/Documents/Moringa-Projects/CORE-PYTHON/Django/Netflix/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import encrypt
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(encrypt())
| [
"antonymunyasia993@gmail.com"
] | antonymunyasia993@gmail.com | |
5dd6bb6075e05874f3d0b9cdc6b8d511e8d16137 | 819732c3a24312626fd5e244b527f228515cda2e | /POMDemo/GenericMethods/Methods.py | 642fcbdc4a0b35038ff9c0012096f447673e1975 | [] | no_license | kumail-anis/PythonSeleniumProject | edf93de57d0a85478c644d2b2ea75794d984be58 | 001ffeb5736dbc3077c48e3bbf2d73beea885b56 | refs/heads/main | 2023-03-02T03:26:32.891853 | 2021-02-17T04:38:24 | 2021-02-17T04:38:24 | 339,612,053 | 0 | 0 | null | 2021-02-17T04:50:57 | 2021-02-17T04:36:42 | Python | UTF-8 | Python | false | false | 783 | py | class Methods():
def __init__(self, driver):
self.driver = driver
def clickElement(self, elementName):
if "//" not in elementName:
print("element is an ID")
self.driver.find_element_by_id(elementName).click()
else:
print("element is an xpath")
... | [
"syed.anis@Syeds-MacBook-Pro.local"
] | syed.anis@Syeds-MacBook-Pro.local |
0f7eff965aed0af96a8a0388254490d8a4d909e0 | 9acdf90f1faf6c77981b51f66b5005787328e325 | /io_file.py | a74b1ff36ab337a9cff5700cd43e59c1ae98b9d4 | [] | no_license | 0-gpa-gang/NumRoll | ea6113b5c7380ca2aac9c03c0f4855f37cf02a62 | 742e3798185a58734dd1e6bdb3d433094054d10b | refs/heads/master | 2023-01-06T23:11:53.813542 | 2020-11-08T18:45:49 | 2020-11-08T18:45:49 | 310,912,650 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | import sqlite3
import os
# import the following lines to the main py file
# conn = sqlite3.connect("image.db")
# c = conn.cursor()
def read_from_db():
conn = sqlite3.connect("image.db")
c = conn.cursor()
c.execute("SELECT * FROM image")
total = []
for row in c.fetchall():
total.append(row... | [
"zony249@gmail.com"
] | zony249@gmail.com |
24f099a2224e7baa91a9ab2ebaa2b26ed626e085 | b86a0656dfb861e0af4b784c94f52742738c29ae | /abf-repoclosure/repoclosure/renders/render_repoclosure.py | a50e71f3bd0e2a7cd0cf7642ac73fd62d6f25f28 | [] | no_license | OpenMandrivaSoftware/docker-abf | dba52547ac51fa86028a4ee56f9b165297e66fd5 | 635774f0f97e71aeaa8f9a3965bfa94c99ad1d93 | refs/heads/master | 2023-06-21T14:59:42.311892 | 2023-06-20T01:04:10 | 2023-06-20T01:04:10 | 45,573,628 | 0 | 6 | null | 2018-03-19T21:56:09 | 2015-11-04T23:12:59 | Shell | UTF-8 | Python | false | false | 560 | py | from ..templates import repoclosure
def render_repoclosure(result, title, compressed_report, path):
t = repoclosure()
if result['return_code'] == -1:
t.code = -1
t.title = title
t.errors = result['errors_raw']
else:
t.bad_packages = result['report']
t.code = result['return_code']
t.errors... | [
"you@example.com"
] | you@example.com |
50e74bffa5f94a4ea2c29d8da1e872c1b3c93b0a | 31bb1f9390f862f21b1d1d710d8ce493705e233d | /stepics.py | 12d03210f608ab4436b39a595236fdaee72126f6 | [] | no_license | Tookser/norbi-bot | 8eb0dd26636e8c6e65962cad36e55f53b8704592 | 0f49997817edf8b392993e0000533f3451e83046 | refs/heads/main | 2023-04-04T03:37:49.667685 | 2021-04-11T18:20:10 | 2021-04-11T18:20:10 | 356,941,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,876 | py | '''здесь будут храниться тесты (шкала Бека/Альтмана), процедуры КПТ и прочее'''
# from abc import ABC, abstractmethod
# import configparser
from collections import namedtuple
import configparser
from functools import wraps
import os
from baseconfig import TESTS_DIRNAME
from telebot import types
import userdblib
# imp... | [
"t2468ttt@gmail.com"
] | t2468ttt@gmail.com |
856aa99358678c45223c58b60f7449f2bf7b46dd | ae3fbbef23c5531aa64ea29da2a1529285540100 | /Develop/node_modules/fsevents/build/config.gypi | 76faa637410fa44f227638f129ed3b5b20b01fe2 | [
"MIT"
] | permissive | 0216johnsoneric/Employee-Summary-App | 751d381cd03fb48c9bcf9e53f70471ea4a43d78b | d4710777c7a25a5e43d7739200a58f2dbf6c5ee6 | refs/heads/main | 2023-01-02T09:00:14.914422 | 2020-10-21T17:21:42 | 2020-10-21T17:21:42 | 302,193,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,722 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"ericjohnson0216@icloud.com"
] | ericjohnson0216@icloud.com |
c4be40118f1a01dfe57c289b347db5318d05063a | e0cd95636c305ca14523ff1d8405cd6d3253e34b | /Programming/CS313E/Blackjack.py | d84383618c71d95ec1d06e41584987f4a48e82ea | [] | no_license | stOracle/Migrate | f9563b49b275ade35bb8055b140ab85179c94c1e | 4e5a8ecab5141ba42dece8741381912d63e635bb | refs/heads/master | 2020-03-28T17:50:28.818475 | 2018-09-14T18:48:22 | 2018-09-14T18:48:22 | 148,827,694 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,670 | py | # File: Blackjack.py
# Description: A program to simulate a game of blackjack
# Student's Name: Stephen Rauner
# Student's UT EID: STR428
# Course Name: CS 313E
# Unique Number: 50945
# Date Created: 2/15/2016
# Date Last Modified: 2/17/2016
# ///////////////////////////////////////////////////////////... | [
"srauner@srauner-T470.us.oracle.com"
] | srauner@srauner-T470.us.oracle.com |
6dbc58c49c56a5e6581818457229cba26f09ae68 | 9b8839d2d1170322f4a8d6fd5e38dcec45a3ed1d | /client/template.py | bc83ad7dc7f08a01a036b00cf149eee2d96b776b | [] | no_license | ke0m/distrmq | f568e6f75bc6fc4f831db80e807d81ab903846e8 | 1513444f852e9c803102ffdf51a422bd4bdef002 | refs/heads/master | 2023-03-27T12:32:59.672506 | 2021-03-15T16:12:08 | 2021-03-15T16:12:08 | 288,106,441 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | """
A template for a client (worker) that will
be launched on a cluster
@author: Joseph Jennings
@version: 2020.08.17
"""
import zmq # ZMQ sockets
from comm.sendrecv import notify_server, send_zipped_pickle, recv_zipped_pickle # Comm functions
from foo import foo # Function that will do the work
# Connect to socket
c... | [
"joseph.s.jennings@gmail.com"
] | joseph.s.jennings@gmail.com |
7ce634d95eddadf617b6a03c86073c228cd312ae | 63076e324075cdd9ec26c099ff3a7cb8d460e52e | /17_Ternary_Operator.py | 5bf58a2e201c72df18d345ea5384deb021939143 | [] | no_license | mahrrony/python_toturial_anis | 4c661e5919e41aa28465cc810d82537993c29ab4 | 4988a1677f370688dd449fdf1d0298eda836839b | refs/heads/main | 2023-07-27T05:34:46.899059 | 2021-09-09T10:02:59 | 2021-09-09T10:02:59 | 398,530,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | num1 = 20
num2 = -34
'''
if num1 >num2:
print(num1)
else:
print(num2)
'''
print(num1 if num1>num2 else num2)
max=num1 if num1>num2 else num2
min=num1 if num1<num2 else num2
#print(max)
print("Maximum =",max)
print("Minimum =",min)
| [
"mahrrony@gmail.com"
] | mahrrony@gmail.com |
590dfe20b180eb3890d52d15e988acae284a291f | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-7295.py | b08c00077bf2436014166c990deddcaa8e461e1f | [] | 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 |
d2ec64ea15f59540e79ac47ff2d986162fbfc913 | bbcb35cd0e3e0724274e76dc976f00b89cda3d29 | /PySock 0.0.3/client.py | 365d8b8dbfe8d77d2ef33c2d0792a97ef91edce0 | [
"MIT"
] | permissive | ShikharY10/PySock | 3c01fc9d904e52c8de75ee9a02c6c28b70978f81 | 12423fa9d7fabee4d568587143d355a0053e177b | refs/heads/main | 2023-08-29T19:07:52.288157 | 2021-10-06T15:16:30 | 2021-10-06T15:16:30 | 391,745,937 | 1 | 2 | MIT | 2021-10-06T13:51:09 | 2021-08-01T21:47:35 | Python | UTF-8 | Python | false | false | 8,133 | py | import socket
import base64
import pickle
import threading
import multiprocessing
import hashlib
class MAIN():
def __init__(self,client_name : str = None, secure = False, DSP_enable : bool = False, file : str = None, debug : bool = False, rememberServer = True, MPCL : bool = False, MTCL : bool = True):
s... | [
"65106263+ShikharY10@users.noreply.github.com"
] | 65106263+ShikharY10@users.noreply.github.com |
b9e81395259e21bffbb3382851a820fa419e4403 | b7e4ef885d681c823c286d48ccbfa6855a92d294 | /trimSAM.py | 355ce5422dabe2a93234734508684d3ab9adf157 | [] | no_license | nebo56/branch-point-detection-2 | a46c023c2fa4a194edb2eec156384192b5c63805 | 2a8f303e6ad00dcf605f781e1c2cc28cf920c275 | refs/heads/master | 2021-06-03T11:39:16.043602 | 2018-12-12T14:47:31 | 2018-12-12T14:47:31 | 31,903,360 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,019 | py | '''
Created on Jan 29, 2014
@author: Nejc Haberman
Script will trim reads that contains a genomic A mutation on first nucleotide
'''
import sys
#method will return decreased column by 1. example: input XM:i:1, otput XM:i:0
def decrease_sam_column(col):
tokens = col.rsplit(':')
return tokens[0] + ':' + t... | [
"skgthab@morecambe1.local"
] | skgthab@morecambe1.local |
69689c44f76b7900253462dda11d7c08bc9e9911 | 263ba541e1195a08042ba49edf2bf8689f1b41e3 | /hotel/models.py | 9aa1987746e86892b522983e969a2f15129b334a | [] | no_license | NitinThakur24/Resto | be7ae8aa2112065d8ee7f2dcfdf1608d0fa2344e | c8fe9b313881d3529a3cda0206b14fb080339b2a | refs/heads/master | 2022-12-12T16:21:34.709736 | 2019-04-29T03:55:56 | 2019-04-29T03:55:56 | 183,147,446 | 0 | 0 | null | 2022-06-27T16:55:09 | 2019-04-24T04:21:55 | HTML | UTF-8 | Python | false | false | 4,626 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
class Customer(models.Model):
pending = 'Pending'
verified = 'Verified'
STATUS = (
(pending,pending),
(verified,verified),
)
customer = models.ForeignKey(User, on_delete=mode... | [
"nitinthakur229@gmail.com"
] | nitinthakur229@gmail.com |
d9e8ec8dd1656e555d3ddca7a06763865eb6a8e0 | ea0c78111f5900305ac03b9c6f06749e9239728d | /finalFlickerDataset.py | 36bd5455c4b03c064acf3c3f258fa7013fbecbcc | [] | no_license | prashant15072/Recommender | 5312b64c2d2de3fbe88ad73cd82dbfb9422927b3 | 6728b1b8081da3e1ce34ff7fee8c080c1029d10f | refs/heads/master | 2020-04-09T04:00:15.699884 | 2018-12-02T03:16:47 | 2018-12-02T03:16:47 | 160,006,493 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | filo = open("test1.dat","r")
xx = filo.readlines()
filo.close()
fill = open("train1.dat","r")
xxx = fill.readlines()
fill.close()
str = ""
for x in xx:
str = str + x + "\n"
for x in xxx:
str = str + x + "\n"
filllo = open("finalDataset.txt","w")
filllo.write(str)
filllo.close()
| [
"prashant15072@iiitd.ac.in"
] | prashant15072@iiitd.ac.in |
6b93b8fdbaf53a5289edeb52321ed9813ebe08ba | 6af9dae1c12f10b336f05dadd8b1ab0639e82b06 | /meiduo_mall/apps/goods/migrations/0002_goodsvisitcount.py | beebb9d59191018ca4e0eaf4350b15828ae21337 | [] | no_license | Yaooooooooooooo/meiduo_mall | 72ae2eff3875b993ed07c45f7d29f1d83f49cefb | b8b2a0c9b01d2ba54d1993ab28815f64418dd2a6 | refs/heads/master | 2020-09-30T13:40:15.060914 | 2019-12-11T12:40:24 | 2019-12-11T12:40:24 | 227,298,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2019-06-28 08:11
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('goods', '0001_initial'),
]
operations = [
... | [
"1123719336@qq.com"
] | 1123719336@qq.com |
5279db03fb74f9841d47a42e21e912db658fad9f | 449a5b1361394d15d988faf0295aeaf6448a02a0 | /hermes/web/receipt.py | 22628957562668b0128a8f1c9a5268ffc2bec7af | [] | no_license | cenenh/Hermes | c6a14d91e0f6344ed68f9b8a74abbb6a9f74f55a | df28bb5cd2fb2a1e867f63a249ad407710f42d1b | refs/heads/master | 2021-01-24T17:14:31.900770 | 2016-07-15T22:38:04 | 2016-07-15T22:38:04 | 61,477,072 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | # coding=utf-8
import asyncio
import logging
import json
from hermes.mysql import MySQL
from aiohttp import web, Response, errors
from hermes.constant import HTTP_HEADERS
@asyncio.coroutine
def get_receipt_handler(request):
req = request.GET
mysql = MySQL()
yield from mysql.connect()
query = """SELECT... | [
"gseunwo@gmail.com"
] | gseunwo@gmail.com |
4ed23654ad6fd0936ab4e0fa2f304df25d69b4bc | fdc7bb609cc1e2b39f0f0b211e849b4971a3ae01 | /products.py | 7843975fe443bdb07f075fad9417774ec5bacc83 | [] | no_license | moonlove8310/products | 3f61378738985986da128bf895519960ee26be85 | bffd5c95b566133ceba857eee204d5cfb298851b | refs/heads/master | 2020-06-07T03:05:34.724374 | 2019-06-20T12:06:26 | 2019-06-20T12:06:26 | 192,906,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | products = []
while True:
name = input('please input the thing you bought: ')
if name == 'q':
break
price = input('please input the price of the thing: ')
# i = []
# i.append(name)
# i.append(price)
# i = [name, price]
# products.append(i)
products.append([name, price])
# pri... | [
"moonlove8310@gmail.com"
] | moonlove8310@gmail.com |
9ea95b3cbe04b5c4c0ea9517f7307f3eab838f14 | 349dadbf45b7c12a3fe41c5e0421c0488b679919 | /transformers/src/transformers/models/pegasus/tokenization_pegasus_fast.py | 67c065e7ecf815ac334c6ebdf52ce62839538df3 | [
"BSD-3-Clause",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Apache-2.0"
] | permissive | salesforce/CodeRL | c772e408bac690527759f416ea22add4c97e5bec | 51db4ff983d5376e62b9e7eba150316a651c80d9 | refs/heads/main | 2023-08-18T18:38:02.740995 | 2022-11-18T16:14:28 | 2022-11-18T16:14:28 | 508,912,853 | 412 | 52 | BSD-3-Clause | 2023-08-31T07:51:27 | 2022-06-30T02:54:36 | Python | UTF-8 | Python | false | false | 9,820 | py | # coding=utf-8
# Copyright 2020 Google and The HuggingFace Inc. team.
#
# 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... | [
"hungle@salesforce.com"
] | hungle@salesforce.com |
b86737529613c43c2fac1b0c14193760fbed8cf1 | 12500bdc6c68db0f9075eba6421d41e4f1190464 | /analyse/__init__.py | 74198d7472255771967a480ff29a279aac7b8aa3 | [] | no_license | jphme/jptrade5 | 0d305f008bf3f5cd9e38f337fae794e9ce7ae546 | 39a4066e67f8af7e77924a4bce551512da063756 | refs/heads/master | 2023-07-19T20:23:34.791140 | 2014-10-24T00:41:37 | 2014-10-24T00:41:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | __author__ = 'jph'
| [
"jpdus@users.noreply.github.com"
] | jpdus@users.noreply.github.com |
3af099fce18a35cd4837291a2a99727140954c97 | 74f8d8c8030ce0c8cd3622cb99f0a668ba93a7e8 | /dialogue-engine/test/programytest/parser/template/node_tests/test_authorise.py | d421ef78f11762c08248c75b2c9b95023a672603 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Tommytosik/cotoba-agent-oss | 3124a376ac0ca1147a58405a8f269a0eb68bc014 | 78e5c2c244b92e71755783d972228904c4d0d373 | refs/heads/master | 2022-12-08T15:44:27.731731 | 2020-08-04T08:36:41 | 2020-08-04T08:36:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,002 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | [
"cliff@cotobadesign.com"
] | cliff@cotobadesign.com |
3d2aaa0cb8542634ad2e34bb34b0f93a00592949 | b97fc333f16e8a73deabf542378a1ae8e3a0cd83 | /prometheus/check_prometheus_disk | 48ec8ad0877dfd5c8898c0ba34e5bf3a69551bb0 | [
"Apache-2.0"
] | permissive | wftech/icinga-check-prometheus | cf6e3e6ab4881433aee7fb1503038c01231991f0 | c37d1d1da023c03d9927cb6d96cb4b244e9386bd | refs/heads/master | 2020-03-30T16:05:31.861953 | 2019-07-11T07:39:09 | 2019-07-11T07:39:09 | 151,392,733 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,680 | #!/usr/bin/env python3
#
# This plugin is designed as a nagios compatible check plugin to use with
# Icinga 2 and others
#
import argparse
import sys
from datetime import datetime, timedelta
from urllib.parse import urljoin
import requests
proxies = {
"http": None,
"https": None,
}
def humanize_bytes(bytes, pr... | [
"VerosK@users.noreply.github.com"
] | VerosK@users.noreply.github.com | |
3ce44a2b8916f2fc89ed11d0e3d777799793513f | a0bf83b2b8dfd34c265a1acd4bb3b62b0c61f598 | /portmone/urls.py | 96a792df340ab872d027e31fd21a897818ddafb3 | [
"MIT"
] | permissive | satels/django-portmone-ua | 2f3394576e5107b0432f0c0daf3b5c6fdfe170d9 | f2e1b170f4738f441644e420082a8615cb4e08dc | refs/heads/master | 2020-08-23T07:11:39.557487 | 2020-02-14T17:12:43 | 2020-02-14T17:12:43 | 216,567,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | # -*- coding: utf-8 -*-
try:
from django.conf.urls import url
except ImportError:
from django.urls import re_path as url
from portmone import views
urlpatterns = [
url(r'^result/$', views.authorize_result, name='portmone-result'),
url(r'^success/$', views.success, name='portmone-success'),
url(r'^f... | [
"satels@gmail.com"
] | satels@gmail.com |
62ff258681c63933e5126fa69fd2e6b64e22104d | 30432bfcba3414b1307d8a2a17a3af3e9402ccb4 | /zeronine/migrations/0011_remove_joindetail_element_code.py | 8a2397230ea470e58f08ec958c4127a79b1bc8c2 | [] | no_license | hyewonSim/zeronine-project | 001309125c85829ede989ed2c4bb99079c2ad073 | 61cd6ca8db3b81a837799b7b11090895a0783737 | refs/heads/master | 2023-07-26T18:31:17.859733 | 2021-09-05T06:46:31 | 2021-09-05T06:46:31 | 402,990,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | # Generated by Django 3.1.5 on 2021-08-21 18:13
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('zeronine', '0010_auto_20210821_1603'),
]
operations = [
migrations.RemoveField(
model_name='joindetail',
name='element_code'... | [
"shim000113@naver.com"
] | shim000113@naver.com |
1d459a517c03e78b3a3af2ce91a294d65b06ab5a | 104ed042183a204346031bcd6cabbcb29fbf8268 | /tests/example.py | 754f2a41d5cf52ae4c9f62242e8ce79c6f8ef2c1 | [] | no_license | lyrl/console-logging | 4712b4b6577243c4fc63b57e0832e77bc8bbc37a | facf7eab28e0016aace89a0dec5868786286d3e9 | refs/heads/master | 2021-01-22T07:39:45.283392 | 2017-09-02T06:41:15 | 2017-09-02T06:41:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from console_logging import console
console.log("This is a log.")
console.error("This is an error.")
console.info("This is some neutral info.")
console.success("This is a success message.") | [
"priansh123@me.com"
] | priansh123@me.com |
16182ef5cf21139670d8f12551976a7d883b8138 | 7fdb54681f4d83bd1135f0da20d6f858f755b971 | /active_projects/eop/chapter1/maps.py | d1ae1e214a5926fc28e1f2ffeab964b88f2682cc | [
"MIT"
] | permissive | miriamhille/manim | 385da4ef0fdf828690ae8c54c4c59f873cedaf42 | af3a8d5809b0f8ac579dbfa02b223efd16987e06 | refs/heads/master | 2020-04-30T23:56:43.328357 | 2019-03-22T14:26:33 | 2019-03-22T14:26:33 | 177,155,840 | 0 | 0 | null | 2019-03-22T14:33:25 | 2019-03-22T14:33:25 | null | UTF-8 | Python | false | false | 1,104 | py | from big_ol_pile_of_manim_imports import *
class MapsOfPossibilities(TeacherStudentsScene):
CONFIG = {
"default_pi_creature_kwargs": {
"color": MAROON_E,
"flip_at_start": True,
},
}
def construct(self):
self.wait(2)
teacher_text = TextMobject("Coi... | [
"ben@hambrecht.ch"
] | ben@hambrecht.ch |
0aaaa602501647f1847867e84027ca8ac9a01bce | 1333eb44a7a02b8fa8b5a2be711e4b5ca9323351 | /Accounts/migrations/0004_alter_account_id.py | 3f7da6aabbc3f563bbc92896e6b6bd2557057468 | [] | no_license | teekaygithub/TomlineBanking | e40dfa4eb3113c44b10c0e9d2837deb4781a19fa | 1af53492aa0d7df59578326316c0c60d068d9d5b | refs/heads/main | 2023-06-07T08:45:07.031702 | 2021-07-06T00:52:58 | 2021-07-06T00:52:58 | 330,070,277 | 0 | 0 | null | 2021-02-01T21:01:51 | 2021-01-16T02:49:01 | JavaScript | UTF-8 | Python | false | false | 465 | py | # Generated by Django 3.2.4 on 2021-07-05 19:20
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('Accounts', '0003_rename_description_account_type'),
]
operations = [
migrations.AlterField(
model_name='account',
... | [
"tomoyuki.kato@yahoo.com"
] | tomoyuki.kato@yahoo.com |
dd0ce0a23fa377025e938b98df37a94cbe02026a | 31bec62400386fc26142d52a1e45052c998cd085 | /examples/HF_deriv.py | 4ec4b10399870c23259da282c1182bb0afaaa8d4 | [
"MIT"
] | permissive | gharib85/wick | 6b4d80259795c64aae0166a56c229c646a1b1245 | 59f8a4b522f11875320e9e98b3af57fe7b7d8313 | refs/heads/master | 2023-09-02T08:08:09.071181 | 2021-10-16T01:13:27 | 2021-10-16T01:13:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | from wick.expression import AExpression
from wick.wick import apply_wick
from wick.convenience import one_e, two_e, braE1, ketE1, braE2, ketE2
H1 = one_e("f", ["occ", "vir"], norder=True)
H2 = two_e("I", ["occ", "vir"], norder=True)
H = H1 + H2
# first derivative wrt X*
bra = braE1("occ", "vir")
S = bra*H
out = apply... | [
"whiteaf862@gmail.com"
] | whiteaf862@gmail.com |
0c95ceb8dc262c26f94b8b6fa1bd7d5d209ffe19 | 7bbef167f9cc73ba9084158ec21af8f406bc0f38 | /EE_624_Assignment_2/2/ctransform.py | 8cbb1e7285ee73526b185950e07602bd9169f125 | [] | no_license | ajdroid/DIP15 | 903ec64d2dffa4b0f4f54e6f38c7e36dc2794e5b | 62c562557a708c267e2a1f9e1ca3e2d72129b867 | refs/heads/master | 2021-03-12T20:00:56.289659 | 2015-12-02T18:06:35 | 2015-12-02T18:06:35 | 41,491,785 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | from __future__ import division
from math import sqrt
import numpy as np
import cv2
from matplotlib import pyplot as plt
def topfilt (block, f=0):
M, N = block.shape[:2]
dct = cv2.dct(block)
A = dct.flatten()
check = A[sorted(range(len(A)), key=lambda i: A[i])[-16:][0]]
if f:
print A
print check
print dct
... | [
"abhijatbiswas@gmail.com"
] | abhijatbiswas@gmail.com |
37ded20f05f26421a9e451e059c8f4a36ea53226 | 3ea2b962fa16acafcc946e800041ee9ab1a14afd | /example_agent.py | 6801680b423bea951a414d8dbfb70ff55a98688e | [] | no_license | kth0522/tetris-gym | ae62f03af58c5f77985209c66630c555ef9831a1 | ab90f211a93c0394b727b7e34bbf73bd1cf29d1f | refs/heads/master | 2022-10-13T13:30:22.456721 | 2020-06-11T15:13:34 | 2020-06-11T15:13:34 | 271,578,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | import gym
import gym_tetris
def random_agent(episodes=1000000):
env = gym.make('Tetris-v0')
env.reset()
env.render()
for e in range(episodes):
action = env.action_space.sample()
state, reward, done, _ = env.step(action)
env.render()
print(done)
if done:
... | [
"rlaxogh369@gmail.com"
] | rlaxogh369@gmail.com |
d0a4182705d6ce87e37ca56ee294f560e77317be | f833259e86569a3c5caf52393023a54ea387dd6c | /Assignment2/MasterFile/2019MCS2574/vignere.py | 395072eded45b7fb681a2100fbc1917f11346125 | [] | no_license | thevivekcode/Cryptography-ComputerSecurity | b1e74113d94505b3c97d500444274dbff4af6fac | c952cff0b602d733f1b4080b439da22673c3c893 | refs/heads/master | 2022-12-05T10:42:42.345853 | 2020-08-28T21:56:52 | 2020-08-28T21:56:52 | 234,770,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py |
# coding: utf-8
# In[1]:
import numpy as np
# In[2]:
def chatToint(c):
return ord(c) - ord('a')
def intTochar(i):
return chr(i+97)
# In[3]:
def VigenereEncryption(key,plainText):
key = list(map(chatToint,list(key)))
plainText = list(map(chatToint,list(plainText.lower())))
keySize =len(... | [
"thevivekcode@gmail.com"
] | thevivekcode@gmail.com |
2bf2dfd436a03b708773f6fe91c76d111f9836b3 | 03ec8aaed061d736f0c6005a92d28fdc496c865f | /main.py | dfce935214912826a44dea7b21de86227d19b02d | [] | no_license | ragib70/AppBuildozerCrop | 6419f1ba11943e469f63da7ba7cb2f131715caf6 | 8e76bad8266a24217925389115d84c7c7ec77f0d | refs/heads/master | 2022-12-03T01:21:45.656238 | 2020-08-11T04:17:41 | 2020-08-11T04:17:41 | 277,562,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,709 | py | import numpy as np
import Feedforward
from kivy.lang import Builder
from kivy.uix.boxlayout import BoxLayout
from kivy.properties import ObjectProperty
from kivy.core.window import Window
from kivymd.uix.dialog import MDDialog
from kivymd.uix.button import MDFlatButton
from kivymd.uix.list import OneLineAvatarL... | [
"noreply@github.com"
] | noreply@github.com |
d92d88a90e3d3629c5262cff0521dabd3e43ceb5 | fbe3a52d2dd02bec18f7f52b31e357aed192a308 | /misc/begin/recursion/misc_lhm.py | 261358dc125ac9c701cf6739853038d988549f0f | [] | no_license | lherrada/python | 8fc5bd5ceb6038479fa6347dd6c0bd6e17f92e98 | d8260f35ba91b89590ef8e489188fb80ca1aed4e | refs/heads/master | 2022-10-29T06:23:17.297554 | 2022-09-24T15:45:59 | 2022-09-24T15:45:59 | 23,411,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | #!/usr/bin/python
#import misc1
#print misc1.fib2(30)
import fibo
print fibo.fib2(10)
fibo.printing()
| [
"lherrada@lucid64.hsd1.ca.comcast.net"
] | lherrada@lucid64.hsd1.ca.comcast.net |
6bac024f9b0fbcbf1868095ef413091081c0377c | daf70c103d236f6b4d4efaf98a1bf4244a3ca507 | /utils/autocrafter_funcs.py | e3cebf14d791c2c6e9ab6dd63e1d5fff27bc0e06 | [] | no_license | Mydoriel/ffxiv-crafter-automation | f357afd01d4f148ccb575d2989bebbd4a600e920 | 8f13c1d215fd33f460fb88e4371f564e2971b86b | refs/heads/master | 2023-02-01T09:25:23.176781 | 2020-12-12T06:28:52 | 2020-12-12T06:28:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,702 | py | #!/usr/bin/env python3
"""TODO, create profile_list as global var
"""
import utils.helpers as h
import utils.input_handler as input_handler
import utils.settings as s
import utils.notifications as notify
from utils.process import Process
from time import sleep
import os
import sys
def list_macros(args):
... | [
"haruspace.dev@gmail.com"
] | haruspace.dev@gmail.com |
abc30a68a630c3f77b5838a14d5ae3f723a23e80 | 199cf4d0f66f463b40a653dd02357b28b0d5616e | /map_function.py | 365a1eacb0bd045f7bba168c4d4f5561d15362cc | [] | no_license | manali1312/pythonsnippets | d5246a3f57f5436dc3fab5cdcdebff89d2a827ac | d953becfbef474b247c62402e4bdf4ae194bc519 | refs/heads/master | 2020-05-09T17:21:59.467653 | 2019-09-17T10:59:41 | 2019-09-17T10:59:41 | 181,306,508 | 0 | 0 | null | 2019-08-24T12:40:12 | 2019-04-14T12:36:09 | Python | UTF-8 | Python | false | false | 240 | py | def double(n):
return n + n
numbers = (1,2,3,4,5,6,7,8,9)
#result = map(double,numbers)
#rint(result)
doubleNums = []
for i in numbers:
#doubleNums.append(double(i))
r = double(i)
doubleNums.append(r)
print(doubleNums)
| [
"mandar.forkmedia.in"
] | mandar.forkmedia.in |
1cb73c6568858279025a470e045c2fd95de4ee58 | 1d1f173d67a04b78f732aee99ef0e2d4e8284d63 | /dev/migrate_testing_phylesystem.py | 8df26db7e044c0beb132c03618620d7e68edd506 | [
"Python-2.0",
"BSD-2-Clause"
] | permissive | rvosa/peyotl | 8767165ec85129c8f25c56a572f0bd879158aa2a | 98154af9832d18cbcb079f7e2db3b0e45893e1da | refs/heads/master | 2021-01-18T19:48:31.273061 | 2015-09-03T15:30:13 | 2015-09-03T15:30:13 | 41,867,598 | 0 | 0 | null | 2015-09-03T15:29:00 | 2015-09-03T15:29:00 | null | UTF-8 | Python | false | false | 4,445 | py | #!/usr/bin/env python
from peyotl.phylografter.nexson_workaround import workaround_phylografter_export_diffs, \
add_default_prop
from peyotl.phylesystem.git_actions import get_filepath_for_namespaced_id
from peyotl import get_logger
from subprocess import cal... | [
"mtholder@gmail.com"
] | mtholder@gmail.com |
2aa12c1d9a5cf420247ff47a82a12789e0cc2643 | 34e85c7be0e9e270318601d919a537b21e510a03 | /ContentRecs.py | be3c4ae40520d33c61c16bafcce9829ed5970829 | [] | no_license | ddezav/dprecommend | 5d331cfff42cef34a2e9fd03380679ab30b67688 | 4fb9bc840615b76bfc741959bb053686ff182b2c | refs/heads/main | 2023-04-26T11:35:13.190209 | 2021-05-16T01:22:15 | 2021-05-16T01:22:15 | 366,579,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 4 16:25:39 2018
@author: Frank
"""
from MovieLens import MovieLens
from ContentKNNAlgorithm import ContentKNNAlgorithm
from Evaluator import Evaluator
from surprise import NormalPredictor
import random
import numpy as np
def LoadMovieLensData():
... | [
"noreply@github.com"
] | noreply@github.com |
1968cafb7539e6a61fb1b2c491c4ca2d09e9891d | e6dd376fdb9b511975e90c8ec73972984b4a4895 | /tests/test_numba.py | 772bb541e64c0e1871a8d23e54402a1295d5c67d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | levandoskije/chemicals | 41fd8ad2230a64797953d16937eec61d82050c49 | a5c531c1c1822a816cce9d071eb03092fb311a41 | refs/heads/master | 2023-04-09T19:52:50.317171 | 2021-04-15T02:38:32 | 2021-04-15T02:38:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,414 | py | # -*- coding: utf-8 -*-
"""Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2020 Caleb Bell <Caleb.Andrew.Bell@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
... | [
"Caleb.Andrew.Bell@gmail.com"
] | Caleb.Andrew.Bell@gmail.com |
fbaad15c61832e74295dfe1dae5088f30bff8971 | 726151e5c9386351fa79c98690894133a526115f | /adminpage/migrations/0013_auto_20200813_2142.py | d4913dbb8b714ae633030a875664da55c90ba9b3 | [] | no_license | youssriaboelseod/ERP | 867ae72f094d725891943bf0d9309efe16d4f7c6 | b56c3b4e3c2b787e472d145ddffa8d3dee3947e3 | refs/heads/main | 2023-01-22T03:39:13.312894 | 2020-12-01T12:44:32 | 2020-12-01T12:44:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # Generated by Django 3.0.7 on 2020-08-13 16:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('adminpage', '0012_announcement'),
]
operations = [
migrations.AlterField(
model_name='addemployee',
name='image',
... | [
"pvaishnavi8701@gmail.com"
] | pvaishnavi8701@gmail.com |
d6a017668b77161fc0092d339bbc5ee76cb9b2a8 | 29ed133feb870455ca619c9fa2ce9b7eb1dcc470 | /URIs/URI1930.py | 22e1944f07f5f32fae61f640c2b1136be3f4465e | [] | no_license | jrantunes/URIs-Python-3 | c5e676686a979b6bbfd10b8e7168a6d35fb8f6a2 | 4692f3fba4a1c9a0f51322a13e9e267d8b07ea3e | refs/heads/master | 2022-04-17T10:56:52.468275 | 2020-03-28T17:07:46 | 2020-03-28T17:07:46 | 250,395,664 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | #Electrical Outlet
t1, t2, t3, t4 = input().split()
t1, t2, t3, t4 = int(t1) - 1, int(t2) - 1, int(t3) - 1, int(t4)
tomadas = [t1, t2, t3, t4]
print(sum(tomadas)) | [
"noreply@github.com"
] | noreply@github.com |
03da5c8d12b696c495dd8bcdff8ba6d4f299d446 | 5e2da1003c96ca15fa021f644bb7866b5ff4230f | /dictionary.py | 36c3d5cf78bbfd5aa6c249939efa7665d94a8001 | [] | no_license | LioHub/CW | f1f3a125d1374d4b8e676181051b59e2372e5995 | 21996218e97e204685ad1e5c7849673659e56468 | refs/heads/master | 2020-07-07T19:11:01.849338 | 2019-08-20T21:19:34 | 2019-08-20T21:19:34 | 203,450,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,934 | py | #!/usr/bin/env python
# coding=utf-8
from button import inline_main_menu
from button import inline_order_water
from button import inline_confirm_menu
from button import inline_location_menu
from button import inline_comment_menu
from button import inline_pre_order_menu
from button import inline_other_goods_menu
from b... | [
"lioknuckles@gmail.com"
] | lioknuckles@gmail.com |
c0a560dc7b728ab8f5e2bb57b87cb1e63a75ab05 | 30a2f77f5427a3fe89e8d7980a4b67fe7526de2c | /python/HERWIGPP_POWHEG_GluonFusion_H1200_bbbar_8TeV_cff.py | 69a444d3216d8ed1263402b24a90ec1ffe8bbca7 | [] | no_license | DryRun/QCDAnalysis | 7fb145ce05e1a7862ee2185220112a00cb8feb72 | adf97713956d7a017189901e858e5c2b4b8339b6 | refs/heads/master | 2020-04-06T04:23:44.112686 | 2018-01-08T19:47:01 | 2018-01-08T19:47:01 | 55,909,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,112 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.HerwigppDefaults_cfi import *
generator = cms.EDFilter(
"ThePEGGeneratorFilter",
herwigDefaultsBlock,
configFiles = cms.vstring(),
parameterSets = cms.vstring(
'cm8TeV',
'powhegNewDefaults',
'GluonFusionHbbParameters',
... | [
"david.renhwa.yu@gmail.com"
] | david.renhwa.yu@gmail.com |
6139dd6afbca70b0561bf4f17a3172109b66be16 | 333976029b38cc82c2adcee98a0a8a11d37a3385 | /bin/cleanse.py | 96c478a8f4841e9e2df97f42b74e2625c318272a | [] | no_license | evanditter/Hadoop_Project_on_sales_data | 7b1f21f7f53a90930cecea39e122595fa6e17550 | 3e802354791812b9984e2b33600577a64d9efd13 | refs/heads/master | 2022-07-17T19:24:37.149264 | 2020-05-14T19:18:54 | 2020-05-14T19:18:54 | 263,999,665 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py |
import csv
import os
try:
os.mkdir("sales_update")
except:
print("directory already exists")
# row = #your data
path="salesdb/Employees2.csv"
path2="salesdb/Customers2.csv"
write="sales_update/Employees2/Employees2.csv"
write_2="sales_update/Customers2/Customers2.csv"
reader = list(csv.reader... | [
"ditte049@umn.edu"
] | ditte049@umn.edu |
74436ec5031d0e2d1c5221f8e0675a8db01ac485 | 68eefd4c9da3d4dcc41416969f423af6a976c6f0 | /UMD/METK/Modules/Macros/MedicalExplorationToolkit/METKCollections/METKCollections.py | 4c1ba7834b449a92319e0d75552a7f091c9e2be0 | [] | no_license | hjkuijf/communitymodules | ce7bf85bf5ea9c5fc669c5384f77c8c1305b5668 | 1d49ef927100479f393944d457ceb214b7e2ef71 | refs/heads/master | 2021-01-21T09:52:40.439787 | 2015-11-09T16:25:55 | 2015-11-09T16:25:55 | 43,959,271 | 0 | 0 | null | 2015-10-09T14:06:02 | 2015-10-09T14:06:02 | null | ISO-8859-1 | Python | false | false | 22,171 | py | # Python module import
from VisDefinitions import *
LOAD = 1
SAVE = 2
REMOVE = 3
CANCEL = 0
# Frequently used controls
_objectInclude = ctx.field("objectTypeInclude")
_layerExclude = ctx.field("layerExclude")
_infoExclude = ctx.field("infoExclude")
# Global class instances
_cls_info = None
_cls_iter =... | [
"konrad79@users.sourceforge.net"
] | konrad79@users.sourceforge.net |
e698efba50be676a6cdb2c59212eac32d7a1c160 | eedfbc0db2843d3daa7b3112ce5059dc9bd13b04 | /app/models.py | 85c894f2f88a0bfeaf54a38396759b9d7fef9c56 | [] | no_license | TheMshary/ReactFormsTechTalkBackend | 6c10bc41e900cbd4e9a5558bc1ec3360e0f6c43c | bd38803be27504d6ad9f039b66770a733c83bf6d | refs/heads/master | 2020-03-30T01:58:34.430001 | 2018-09-27T15:07:58 | 2018-09-27T15:07:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | from django.db import models
from django.core.validators import RegexValidator
# Create your models here.
class ExampleModel(models.Model):
alias = models.CharField(max_length=255)
description = models.TextField(blank=True, null=True)
first_name = models.CharField(max_length=255, null=True)
last_name = models.Char... | [
"m.alsharekh94@gmail.com"
] | m.alsharekh94@gmail.com |
106e3133bcbfec03e51e9bf4bf8dc1e0a224be1c | d2e6164de1e0ffe2e38cfcfcd9fc2840b9907bbe | /boardDes.py | 640cc743a96d6b9333a179a5157c604efdcf2921 | [
"MIT"
] | permissive | Kayal314/SnakesAndLadders | bbccb33d32fb4cfb6290309ecfbf3ef0bd8be298 | 811a0322404477badc85f861c3b027fc4fc0f120 | refs/heads/master | 2023-03-25T23:29:53.255586 | 2021-03-22T04:47:15 | 2021-03-22T04:47:15 | 350,209,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | """
Let S be the set of points (as numbers on the board) {(a,b): the mouth of the snake lies at a and the tail lies at b}
S = {(98,79), (95,75), (93,73), (86,24) ,(64,60),
(62,19), (54,34) ,(17,7)}
Let L be the set of points (as numbers on the board) {(a,b): the bottom of the ladder lies at a and the top lies at... | [
"pritamkayal314@gmail.com"
] | pritamkayal314@gmail.com |
b6fc79b993cd002a05a15ed4d474c68787c15613 | 1b9075ffea7d4b846d42981b41be44238c371202 | /2009/devel/programming/library/caps/actions.py | 518c5e326c2b2857a117363e060e5b3fc85eebcc | [] | no_license | pars-linux/contrib | bf630d4be77f4e484b8c6c8b0698a5b34b3371f4 | 908210110796ef9461a1f9b080b6171fa022e56a | refs/heads/master | 2020-05-26T20:35:58.697670 | 2011-07-11T11:16:38 | 2011-07-11T11:16:38 | 82,484,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import pisitools
WorkDir = "ipfdevlib_linux"
def install():
pisitools.dobin("examples/i686/ipfinfo")
pisitools.insi... | [
"zaburt@users.noreply.github.com"
] | zaburt@users.noreply.github.com |
4060545b0289b7a52d7a0213f0e0987210831174 | e8bf00dba3e81081adb37f53a0192bb0ea2ca309 | /domains/rescue/problems/auto/problem21_SR.py | a47c6b172a4ffd1a79db00f9d7e9968525fa4476 | [
"BSD-3-Clause"
] | permissive | patras91/rae_release | 1e6585ee34fe7dbb117b084df982ca8a8aed6795 | 0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30 | refs/heads/master | 2023-07-13T20:09:41.762982 | 2021-08-11T17:02:58 | 2021-08-11T17:02:58 | 394,797,515 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,609 | py | __author__ = 'patras'
from domain_searchAndRescue import *
from timer import DURATION
from state import state
def GetCostOfMove(r, l1, l2, dist):
return dist
DURATION.COUNTER = {
'giveSupportToPerson': 15,
'clearLocation': 5,
'inspectPerson': 20,
'moveEuclidean': GetCostOfMove,
'moveCurved': G... | [
""
] | |
97309f9b1f5a82dac343f54538754ef39bca2df7 | 38b82147a796fb7a237c8e7774eb043cfdb89b46 | /advanced_fields/computer_vision/image_processing/image_creation.py | 8db8925600f15b0966065ffcc09b6736789b9798 | [
"MIT"
] | permissive | EliorBenYosef/data-science | 55eb7fd22bba8a4308490ab58d4113cc851f4898 | 117e5254f63e482c02aff394780bbdc205d492a3 | refs/heads/main | 2023-09-03T18:06:04.381279 | 2021-10-31T03:09:45 | 2021-10-31T03:09:45 | 397,682,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,750 | py | # mode='L' forces the image to be parsed in the grayscale.
import numpy as np
import cv2
from PIL import Image
h = 500
w = 500
img = np.ones([h, w, 3], dtype=np.uint8)
img = img * np.random.randint(0, 256, (3,), dtype=np.uint8)
# img[:, :, 0] = img[:, :, 0] * np.random.randint(0, 256)
# img[:, :, 1] = img[:, :, 1] *... | [
"eliorby@gmail.com"
] | eliorby@gmail.com |
24c9821ee09e36a22850395bcbc3a104f1b923c9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/321/101584/submittedfiles/jogoDaVelha.py | 6a1f739064ae86cf4550efd44217ef6939a0aeb4 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | # -*- coding: utf-8 -*-
from jogoDaVelha_BIB import *
# COLOQUE SEU PROGRAMA A PARTIR DAQUI
print('Bem vindo ao JogoDaVelha do grupo 8 [Iara, Ingrid, Luiz Otávio, Tatiane]')
nome = str(input('Qual seu nome? '))
s = str(input('Qual símbolo você deseja utilizar no jogo? (X ou O) '))
while s != X or s != O:
print('I... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b614ca7ed169de8fd6bc9ceab1f35f66a6ecbd4e | 3bb70650b4b83e4653dcc18c8233c106c7a5611a | /receipt/models.py | a0249ce6f92b8a79eb8446196a76c3d5c9ab0a32 | [] | no_license | khanhlu2013/pos_connect_code | 48e736a6b1c5ca6a5c4ff39d842d8a93f66e67ef | fdf70de858c10b175832af31ecc0cf770d028396 | refs/heads/master | 2023-04-08T02:35:46.181265 | 2016-10-18T21:12:51 | 2016-10-18T21:12:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,959 | py | from django.db import models
from store.models import Store
from store_product.models import Store_product
import decimal
from payment_type.models import Payment_type
class Receipt(models.Model):
date = models.DateTimeField()
tax_rate = models.DecimalField(max_digits=6, decimal_places=4)
store = models.For... | [
"khanhlu2013@gmail.com"
] | khanhlu2013@gmail.com |
ea4d23a16f7e800ad1751c8ac5219ea8572661af | e3f62fe7d6127b5763628f223c5a1f59be114dfb | /program29.py | caee97878ff418ba1eaf482780f305ce8fbd239a | [] | no_license | balasaranyav/python_programs | 41a38d9ef25e2dcc052c2ce33ed079c455a10433 | 95b1ca197700ffa773d2b96b09b0e1d848a67886 | refs/heads/master | 2022-04-04T19:18:48.352217 | 2020-02-10T09:39:37 | 2020-02-10T09:39:37 | 238,921,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Write a program to check whether a number is Armstrong number or not
def armstrong(n):
sum = 0
temp = n
while temp > 0:
digit = temp % 10
sum += digit ** 3
temp //= 10
if n == sum:
print(n,"is an Armstrong number")
else:
print(n,"is not... | [
"noreply@github.com"
] | noreply@github.com |
92760d5b73982d6e05f835c58c5c7238bf3fe56b | 7fb6800427ab46619e848637a131060b19ccf045 | /src/test.py | 5406835ce1b32f78b0edf7b8b42dc10632750688 | [] | no_license | vchennapalli/genomics-assignment | 7b94c4924203d280bc0f21dc474726c936c69d8c | a66bc1b08dc785379f8f60f1163c1703247263d6 | refs/heads/master | 2020-03-08T23:14:57.805476 | 2018-04-11T04:36:29 | 2018-04-11T04:36:29 | 128,457,069 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | #Author: Vineeth Chennapalli
#Big Data Genomics Assignment
import pandas as pd
import numpy as np
from keras.layers import Dense, Dropout, LSTM
from keras.models import Sequential
from keras.optimizers import Adadelta
from keras.models import model_from_json
DATA_FOLDER = '../data'
TEST_PATH = DATA_FOLDER + '/test.cs... | [
"chennapalli@gmail.com"
] | chennapalli@gmail.com |
cd8aecca91fd152be1487734efe54d582598aa3d | ab47546a5fbf086193130b66a0ac8d849aa75d23 | /venv/bin/pip3.7 | aa3156ab60ab683ac043913e5b5ec19d31981c22 | [] | no_license | icerahi/ecommerce-webapp | 1f7b7a29d78d73ab03baa6aeeb69a4c95e042090 | eb44e9c1f5b8444a72b3aaf5fcd96f30aa4757c9 | refs/heads/master | 2020-05-01T06:30:05.477773 | 2019-03-24T08:11:38 | 2019-03-24T08:11:38 | 177,331,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | 7 | #!/home/rahi/PycharmProjects/E-commerce/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"zanjarwhite@gmail.com"
] | zanjarwhite@gmail.com |
caa1324452f60f4345f56ee55fdce418254174e2 | 32606415426b55b12f2c991a56a238a08a12baca | /ostrich/steps.py | 33875d59810c56f5b30a64136695a291a67a061e | [
"Apache-2.0"
] | permissive | shakenfist/ostrich | 773c6bc15b1a0b571fb80906d4e865238f349cf9 | f1a557c2dc19adf70d32152fbd07bc34676ee345 | refs/heads/master | 2021-07-21T23:26:28.448778 | 2017-07-18T01:24:36 | 2017-07-18T01:24:36 | 83,365,646 | 0 | 0 | Apache-2.0 | 2021-08-03T04:55:48 | 2017-02-27T22:57:05 | Python | UTF-8 | Python | false | false | 14,298 | py | #!/usr/bin/env python
#
# 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, softwar... | [
"mikal@stillhq.com"
] | mikal@stillhq.com |
a4a1a15fcd715bdc69965843f94c3b2f571c20b3 | 30227ff573bcec32644fca1cca42ef4cdd612c3e | /leetcode/linkedList/singly_linked_list/remove_node_a1.py | 8ee8af6cdfb55f3965cc1e1c627c57e7e5e85560 | [] | no_license | saurabh-pandey/AlgoAndDS | bc55864422c93e6c93b8432e483394f286ce8ef2 | dad11dedea9ceb4904d6c2dea801ce0172abfc81 | refs/heads/master | 2023-07-01T09:12:57.951949 | 2023-06-15T12:16:36 | 2023-06-15T12:16:36 | 88,239,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | #URL: https://leetcode.com/explore/learn/card/linked-list/219/classic-problems/1207/
# Description
"""
Given the head of a linked list and an integer val, remove all the nodes of the linked list that
has Node.val == val, and return the new head.
Example 1:
Input: head = [1,2,6,3,4,5,6], val = 6
Output: [1,2,3,4,5]
... | [
"saurabhpandey85@gmail.com"
] | saurabhpandey85@gmail.com |
0ce8d4ae15eba8e000cbe459928f96dd85b9f175 | 9e5eca27222871dd04e42c9106bb2fba07e598ff | /src/osxification/foundation/ns_string.py | 4305958fd9999299dcc1df4b9c9d9d5641838191 | [] | no_license | jepebe/osxification | b2a68dec07cd0be3b7ebd519bd99d0bbd51e61c7 | c9a539f4dbeda9200e32a2eea2c955dd94e6f45e | refs/heads/master | 2016-09-03T06:35:41.659315 | 2015-05-19T18:00:23 | 2015-05-19T18:00:23 | 35,567,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,614 | py | from osxification.foundation import NSStringEncoding, NSObject
class NSString(NSObject):
def __init__(self, content, encoding=None):
if isinstance(content, str):
encoding = NSStringEncoding.NSUTF8StringEncoding
# elif isinstance(content, unicode):
# encoding = NSStringEncod... | [
"jepebe@users.noreply.github.com"
] | jepebe@users.noreply.github.com |
bb4e08299b87e0d44389027cb157b9ba193b8b62 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/63/usersdata/250/32382/submittedfiles/swamee.py | 65a4d92fd968b2221e8050cbd8814d6ae8e3c0f0 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CÓDIGO AQUI
f=float(input('digite f:'))
l=float(input('digite l:'))
q=float(input('digite q:'))
deltah=float(input('digite o delta:'))
v=float(input('digite v:'))
g=9.81
e=0.000002
D=((((8*f*l*q*q)/((math.pi**2)*(g*deltah))))**1/5)
print('o valor de D é:%.4f'%D)
rey=((4*q... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ddf2a1f0cc0195a7ea1195d4200196e3b871e4be | 7a20dac7b15879b9453150b1a1026e8760bcd817 | /Curso/ModuloTkinter/Aula001HelloWorld.py | 32a092bff66a7ed68b5bc07212de60aeb6f607e8 | [
"MIT"
] | permissive | DavidBitner/Aprendizado-Python | 7afbe94c48c210ddf1ab6ae21109a8475e11bdbc | e1dcf18f9473c697fc2302f34a2d3e025ca6c969 | refs/heads/master | 2023-01-02T13:24:38.987257 | 2020-10-26T19:31:22 | 2020-10-26T19:31:22 | 283,448,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | from tkinter import *
# Sempre começar um programa com o root e a classe Tk
root = Tk()
# Criação do primeiro widget, nesse caso uma label presa a root com o texto "Hello World!"
myLabel = Label(root, text="Hello World!")
# Posicionando a label criada
myLabel.pack()
# Todo programa roda através de um loop, e com o ... | [
"david-bitner@hotmail.com"
] | david-bitner@hotmail.com |
7739eb1b63119ef29ea4dab33666d41f099528da | 665e08452f8ba8585d8c86fa7de671c87e8422fc | /python_tasks/task_2.6.py | 8da425ef10cb3e779e3f0d176c2f368a5e7031c6 | [] | no_license | Twicer/epam_tasks | 2d071c2b2bc5a60cdb86a7ece5e4e4764e48bbb3 | f06e92dae41824111765637b5a2887eb34c4b400 | refs/heads/master | 2022-03-17T15:04:36.317885 | 2019-10-22T20:10:29 | 2019-10-22T20:10:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | def get_longest_word(s: str):
words = s.split()
lens_words = [len(word) for word in words]
max_len = max(lens_words)
index = 0
for i, len_word in enumerate(lens_words):
if len_word == max_len:
index = i
break
return words[index]
if __name__ == "__main__":
pr... | [
"mbs131119999@gmail.com"
] | mbs131119999@gmail.com |
305c882feba36d2ce768d97a4bcd908a88cab3bb | 52896d206ece58c7b999153830a3eadce10df189 | /sql.py | b4ae947ea3b9b8b4a546d58760b0835af6df2a92 | [] | no_license | vmelonari/my-flask-blog | 63531623055ca2b44c697a395d70cdd8e09182d0 | 9accc23c039440a71adaaf0c728594b736efecd6 | refs/heads/master | 2020-04-16T11:36:29.182292 | 2019-01-14T07:37:07 | 2019-01-14T07:37:07 | 165,543,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | import sqlite3
# with sqlite3.connect("database.db") as connection:
# c = connection.cursor()
# #c.execute("""DROP TABLE users""")
# c.execute("""CREATE TABLE users (
# id integer(11) primary key,
# name VARCHAR(100),
# email VARCHAR(100),
# username VARCHAR(30),
# password VA... | [
"vmelonari@users.noreply.github.com"
] | vmelonari@users.noreply.github.com |
264e283c18aef5029aa4e725ce60a412f69f5623 | 7f06384851b0f0d642a1baec976cda84b5c5180a | /abctf-2016/crypto/encryption-service-140/UTkSDn4H.py | b8c5ad99a8d026ad22d4dabf0cefb9565510a098 | [] | no_license | gynvael/write-ups-2016 | 29f47dd79516a419d3233f0427af425ac23d7869 | f130ca6ccbf1afdc28082b399ce3adf2ac670c52 | refs/heads/master | 2021-01-12T12:12:01.599300 | 2016-10-29T18:28:42 | 2016-10-29T18:28:42 | 72,353,051 | 2 | 3 | null | 2016-10-30T14:05:05 | 2016-10-30T14:05:04 | null | UTF-8 | Python | false | false | 1,128 | py | #/usr/bin/env python
from Crypto.Cipher.AES import AESCipher
import SocketServer,threading,os,time
import signal
from secret2 import FLAG, KEY
PORT = 7765
def pad(s):
l = len(s)
needed = 16 - (l % 16)
return s + (chr(needed) * needed)
def encrypt(s):
return AESCipher(KEY).encrypt(pad('ENCRY... | [
"mo@mightym0.de"
] | mo@mightym0.de |
2bdedab6d444a242204a52dcf13078f832e48466 | 691d0ecea7cd80586273f454761ad1ced65e3aa8 | /system/SurveillanceSystem.py | 57292e1c5718926d6c9aff8202466b5948fd0dfc | [] | no_license | martinjohnlopez8/home-final | f4033d1b7ff591b7350e73faea50ba77488e7d30 | 2a2227b3ef5567662d1067efe4cc8cf3c57f46f6 | refs/heads/master | 2021-01-12T12:46:32.296181 | 2016-09-26T21:46:44 | 2016-09-26T21:46:44 | 69,295,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,895 | py |
# Surveillance System Controller.
# Brandon Joffe
# 2016
# Copyright 2016, Brandon Joffe, 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/l... | [
"Tinjo@Martins-MacBook-Pro.local"
] | Tinjo@Martins-MacBook-Pro.local |
0a466ab4c471f29f88812abd62fdb5154d70f76f | 8602ae218fb482d0149946cd38b1bd592b838892 | /setup.py | 72dec14cf6606bee332684a3bcd962d997304116 | [] | no_license | tfyr/telegram | 60904a12c59fb7bd1b24e5b5561d1018469be1a1 | 1f8adccf850f4ad8f0b354a7b314a7dd2ebc811a | refs/heads/master | 2021-08-11T18:31:55.106083 | 2021-07-31T19:46:43 | 2021-07-31T19:46:43 | 218,128,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='telegram',
version='0.1.6',
pa... | [
"nash34@gmail.com"
] | nash34@gmail.com |
ba2a9ab49b7a95378a4cba212f75be9cc1440738 | 85f33a2ba7da34e9b083d755b8eb613a0f3fbac9 | /deploy/fabfile.py | 6c0612a17c2c2c6ab94dc9261c68ee74e696e60d | [] | no_license | AR-S/Nodes | 566bf2ff6bb028c9f7a5dbd0d7b1ccb873f3a401 | 93d046bc949406e5a3854bba0754f532fe6eaae0 | refs/heads/master | 2021-01-18T05:43:14.561742 | 2016-09-14T02:39:05 | 2016-09-14T02:39:05 | 47,211,701 | 0 | 1 | null | 2016-02-09T20:51:58 | 2015-12-01T19:18:53 | Python | UTF-8 | Python | true | false | 728 | py | #!/bin/env python
# To run: fab deploy -I
# then enter password manually
import os
from fabric.api import cd, env, run, put, get
from fabric.contrib.files import exists
from fabric.operations import sudo
from fabric.colors import *
# @note: rest of settings in your ~/.fabricrc file
env.hosts = ['pi@ars-nodes.duckdns.... | [
"dropmeaword@gmail.com"
] | dropmeaword@gmail.com |
6165913d67d223cb252eea0612eb7a4db7b7fc4e | 56a795bd6ade3acc226f7b8852ed85d57d0a5a61 | /ipc/Poet.py | 237294301e6980c310cd2642eff801599a3acb56 | [
"MIT"
] | permissive | farshad-nejati/icp | a78a8c85100cfea5769408f5835549a4a31585bf | e0f8db33fba23382782a0ac3f26ab6dd3b104553 | refs/heads/master | 2020-06-27T11:00:09.173723 | 2018-01-19T22:39:49 | 2018-01-19T22:39:49 | 199,934,164 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | class Poet:
poets_counts = 0
@staticmethod
def get_poets():
json = {"prvinaEtsami": 199, "nzami": 313, "mlkalshEraibhar": 856, "hafz": 518, "sEdi": 1393, "frdvsi": 522,
"snaii": 1534, "rvdki": 452, "khiam": 272, "jami": 843, "shhriar": 136, "mvlvi": 5265}
poets = list(json.k... | [
"mehdi.sh4rifi96@gmail.com"
] | mehdi.sh4rifi96@gmail.com |
b97790f9903ea63895ce60c71be0ba8f92085f87 | 15043be5ea5765e449df85d4cefba8b10727f892 | /Other/cutsignalimg.py | 0664084dce431494523500b93c8bfc615f09f760 | [] | no_license | HyperSignal/HyperSignal | f4eee84f155537f8d1d63c693fa01e442b572ba4 | 3f7de0a77d5c23a4fb3a63bba118f55a83d769e4 | refs/heads/master | 2016-09-05T19:53:48.513363 | 2014-11-09T02:10:07 | 2014-11-09T02:10:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | #!/usr/bin/env python
#-*- coding: UTF-8 -*-
import Image
im = Image.open("levels.png")
for x in range(8):
for y in range(4):
siglvl = x*4 + y
print "Saving image signal_%d.png" % siglvl
im.crop((x*200,y*200,200+x*200,200+y*200)).save("signal_%d.png" %siglvl);
| [
"lucas@teske.net.br"
] | lucas@teske.net.br |
6503fb48d2a170342d8b2a5ee3a05ef55d8e13a0 | 20aeb3d27359e88463c82a2f7eedb0db3face4f3 | /ecommapp/migrations/0006_auto_20200921_0225.py | a0efc82e18e27a93dd0caff24e1892cb5bab3499 | [] | no_license | rpinedaec/pacha4Grupo4 | 2d3adb158836b97147708880ea996572646e3cde | b05a30eeb93789c4925df05ad7bd9e8a30acb45b | refs/heads/master | 2022-12-25T11:08:21.451571 | 2020-09-26T19:32:43 | 2020-09-26T19:32:43 | 294,994,684 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,959 | py | # Generated by Django 3.1.1 on 2020-09-21 07:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ecommapp', '0005_auto_20200920_2318'),
]
operations = [
migrations.AlterModelOptions(
name='cliente',
options={},
... | [
"rpineda@zegelipae.edu.pe"
] | rpineda@zegelipae.edu.pe |
a90cd4d5bf5d588410d769c97cfa33f4a39619c4 | d0eb9e95c796042067aceaf0fc3d43f56d4eb87b | /Tests/PootyTests.py | a75560eb9533c2d64a49521fcaed266ae119f381 | [] | no_license | finneyjm/RynLib | ea0fd0f8ccd21fdac4663d5fb2b6836efce49a10 | 42e7d07ff879f72ae163f682cb07ba7489ce0a06 | refs/heads/master | 2021-02-16T15:30:02.181769 | 2020-03-05T19:20:22 | 2020-03-05T19:20:22 | 245,020,012 | 0 | 0 | null | 2020-03-04T22:47:09 | 2020-03-04T22:47:08 | null | UTF-8 | Python | false | false | 1,094 | py | from Peeves.TestUtils import *
from unittest import TestCase
from PootyAndTheBlowfish.Templator import *
from PootyAndTheBlowfish.PotentialTemplator import PotentialTemplate
import sys
class PootyTests(TestCase):
@inactiveTest
def test_ApplyBaseTemplate(self):
import os
curdir = os.getcwd()
... | [
"b3m2a1@gmail.com"
] | b3m2a1@gmail.com |
de52e61d7c3d25d3d0779e71c8924797473d23f1 | 1421fbb6b2154276f1c8f3375c60bbd5aacf5be1 | /maddpg/maddpg/trainer/maddpg.py | bfd2596e02dd9365b772e4f27386e5b7cb4d8849 | [
"MIT"
] | permissive | Renzhenxuexidemaimai/maddpg_3v3 | 9970d07ac97afa69e849cb7e3493f2c7a536f835 | e074dfffb0eb94dc39df6a9ff6f1b450223fed24 | refs/heads/master | 2022-04-19T09:27:55.735480 | 2020-04-16T06:33:34 | 2020-04-16T06:33:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,329 | py | import numpy as np
import random
import tensorflow as tf
import maddpg.common.tf_util as U
from maddpg.common.distributions import make_pdtype
from maddpg import AgentTrainer
from maddpg.trainer.replay_buffer import ReplayBuffer
def discount_with_dones(rewards, dones, gamma):
discounted = []
r = 0
for re... | [
"linyangfei0934@aliyun.com"
] | linyangfei0934@aliyun.com |
499897b60d5f3f3d297081f748b267c4041d710e | d1e9e53385b6ef90e074367d022e5875814c0170 | /basketapp/urls.py | eb742431acd24073a1b265b5e484a0b68243f800 | [] | no_license | semenchuke/virtualshop | 21188a19bfe243e359bc2202f5421acb8b1a9ef0 | ad3e9e28f6a7f75acdbcdbb2023eb149fb115992 | refs/heads/master | 2020-03-22T15:52:51.690607 | 2018-07-09T13:22:16 | 2018-07-09T13:22:16 | 140,286,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | from django.urls import re_path
import basketapp.views as basketapp
app_name = 'basketapp'
urlpatterns = [
re_path('^$', basketapp.basket, name = 'watch_in'),
re_path('^add/(?P<pk>\d+)/$', basketapp.add, name = 'add'),
re_path('^remove/(?P<pk>\d+)/$', basketapp.remove, name = 'remove'),
re_path('^edi... | [
"semenchuk-e@inbox.ru"
] | semenchuk-e@inbox.ru |
bf4e62fb9514b84a0e8edafa16b0a15ec49f0045 | 63f86fc8537c8effadaf4969664187ba272bae8e | /game_agent.py | 01d6fe0b181272de9b673b487e4f2707ad3ececf | [] | no_license | winstonj/aind_project_2 | c4902acca12cc482ffe1771a5a15a88215196ede | e893dd48e868b0989a3ca420411fa395cbc08c12 | refs/heads/master | 2021-09-06T02:01:54.508107 | 2018-02-01T13:39:51 | 2018-02-01T13:39:51 | 119,839,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,775 | py | """Finish all TODO items in this file to complete the isolation project, then
test your agent's strength against a set of known agents using tournament.py
and include the results in your report.
"""
import random
class SearchTimeout(Exception):
"""Subclass base exception for code clarity. """
pass
def custo... | [
"winstonjimu@gmail.com"
] | winstonjimu@gmail.com |
c3407190cec85d75c3cb6b43f1f8a485df4882fb | 1d830979cc0e2d9b02788085e6540b5532cc4b18 | /utils.py | a5c49bca599637593a4404b5e76b2d25f7c809ff | [] | no_license | Hagesjo/snakebot-client-python | 3a0f540ee740c05a69e162d2b3e9e1dc830f7b9a | fbbade4fe5d184e65188232c40969f0c0024110c | refs/heads/master | 2020-07-05T17:12:22.124226 | 2016-11-19T16:14:22 | 2016-11-19T16:14:22 | 73,989,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,451 | py | def logging_format(input_dict, depth=1, outp=""):
for key, value in input_dict.items():
if type(value) == dict:
outp += logging_format(value, depth + 1)
else:
outp += "{}{} = {}\n".format("\t" * depth, key, value)
return outp
def direction_as_movement_delta(direction):
... | [
"andreas.hagesjo@gmail.com"
] | andreas.hagesjo@gmail.com |
20dafa7d284b657578456c3c93e1fdde8a345ed6 | 5817da2441abfe5974cd31f323caaa00958e26f5 | /dekanat/migrations/0002_news_newsimage.py | aa0501d98902d0f66c90062049b5e6076b935ab5 | [] | no_license | katalyzator/Dekanat | 3923f05eefb120fb366db2658e418ea9d87272f3 | af32167bc78ca6ed52ad5910f6bfc8dfa3f91469 | refs/heads/master | 2021-01-12T15:05:09.618166 | 2016-10-23T08:51:11 | 2016-10-23T08:51:11 | 71,691,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,473 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-10-18 02:24
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('dekanat', '0001_initial'),
]
operations = [
... | [
"web.coder96@gmail.com"
] | web.coder96@gmail.com |
3a2d7a2c88faf6b299c891d01dc3265f8d7ffb2f | 8a09ae71df8bd9dd583a8f0be62b7b65dba284b5 | /www/config_override.py | 643c41d370f8c79b3ac765b18faacf4ee4476129 | [] | no_license | xiaolong2009/Bolg | d1660fb3174b2d99822b0407438c6cd09bc487e2 | 66379f79b309a13bf11cd0ba5cc4f4ffb1b4786b | refs/heads/master | 2021-05-01T11:52:31.452260 | 2015-03-11T10:15:30 | 2015-03-11T10:15:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Override configurations.
'''
configs = {
'db': {
'host': '127.0.0.1'
}
} | [
"962484758@qq.com"
] | 962484758@qq.com |
850956482f3bc444086b0488fa4981089c831f18 | 921156b7ffdb84807842582b9ba2613b38ae0f50 | /usersDetail/urls.py | fd6731994d0d4a8a50f68f7cc1a9b4589e3adf6e | [] | no_license | Leslie-Fang/DjangoTemplate | 529d1ca23a7bda1a5a003f0bbac5c4da3f141e09 | 42cbf68a6211f343b33ea555b6f67b69fe40e495 | refs/heads/master | 2021-01-20T06:08:24.856299 | 2017-09-09T10:44:41 | 2017-09-09T10:44:41 | 100,962,414 | 0 | 0 | null | 2017-08-26T13:14:28 | 2017-08-21T14:49:14 | Python | UTF-8 | Python | false | false | 540 | py | from django.conf.urls import url
from django.conf import settings
from django.conf.urls.static import static
from usersDetail import views
urlpatterns = [
url(r'^$', views.getUsers, name='getUsers'),
url(r'^test$', views.testUsers, name='testUsers'),
url(r'^userhabbit$', views.showUserHabbit, name='showUs... | [
"fangjiahao@sjtu.edu.cn"
] | fangjiahao@sjtu.edu.cn |
d7eaf97561d92b7aa8a03bf4c71024b1d5404d8f | 7e979e024bcbf8cb763919ceaa7466c25d7a0691 | /33.py | 30afb8b6d4c57a1b1c8c4c1c3b8aff365ff79197 | [] | no_license | win32del/RTR105 | 1de49edfe853924bdeb367fb50bbb65eded5d4c9 | a09ed6b23384d9caadb93c1150c04e473906e785 | refs/heads/master | 2021-08-04T07:32:02.779383 | 2019-01-02T22:03:56 | 2019-01-02T22:03:56 | 148,168,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | f = open("zedd.txt")
inp = f.read()
print(len(inp))
print(inp[:20])
| [
"robertsandersons269@gmail.com"
] | robertsandersons269@gmail.com |
bcc294be4b84f27280cee804ff5a5c66c142b08a | 47338ca2f0ff2fd19e65beab384bdd1558df8ebd | /pdfviewer/esam1.py | d66e08fe2b073f998a346e79c088de118bbf150a | [] | no_license | assomy/thesis | 80a0502727ab0831d970fd9cf93cf6ae95eab231 | 11138065489b0aa5cdec9795545ba65e6059b851 | refs/heads/master | 2021-01-22T20:08:43.311898 | 2014-05-23T17:59:19 | 2014-05-23T17:59:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | import os
print "esam"
x=[]
x.append("esam")
x.append("ali")
print x
| [
"assomy@gmail.com"
] | assomy@gmail.com |
7bc09e89695184c589a6db756b746e3e9450f047 | ab8ea44704ea1a444e4f68ee740b584288d3e558 | /tests/test_execer.py | f0b0661a8b670a8b6d6093ea78392b65de20eb17 | [
"BSD-2-Clause"
] | permissive | jamiees2/xonsh | 96514c3381ac2fcca872e473ea9d414d74c2fdc9 | f7b5985a88b32fafdaf162012c1ebbd19e48e6b9 | refs/heads/master | 2021-01-18T07:49:58.323584 | 2015-03-11T01:56:42 | 2015-03-11T01:56:42 | 31,949,439 | 0 | 0 | null | 2015-03-10T09:42:21 | 2015-03-10T09:42:21 | null | UTF-8 | Python | false | false | 869 | py | """Tests the xonsh lexer."""
from __future__ import unicode_literals, print_function
import os
import sys
import ast
from xonsh.execer import Execer
from tools import mock_xonsh_env
DEBUG_LEVEL = 0
EXECER = None
#
# Helpers
#
def setup():
# only setup one parser
global EXECER
EXECER = Execer(debug_leve... | [
"scopatz@gmail.com"
] | scopatz@gmail.com |
749d6bf1fe7baa9e3d49dfd43e59d33a244065a0 | 4a3d2dd36f9350d0ef4c839c3972e2a3fab5989b | /supportVector/src/svm_smo.py | d44296f46690bf1472019a78f022cd309fbe3244 | [] | no_license | zhangting9756/machineLearning | 59944e49cb202b3b80466984aab8beeb78a3b4cb | 7bec906a2f132048d90294da5c717090c75187cb | refs/heads/master | 2020-04-12T08:34:15.924743 | 2019-01-09T14:47:10 | 2019-01-09T14:47:10 | 162,389,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,505 | py | # -*- coding:UTF-8 -*-
import matplotlib.pyplot as plt
import numpy as np
import random
"""
Author:
Jack Cui
Blog:
http://blog.csdn.net/c406495762
Zhihu:
https://www.zhihu.com/people/Jack--Cui/
Modify:
2017-10-03
"""
class optStruct:
"""
数据结构,维护所有需要操作的值
Parameters:
dataMatIn - 数据矩阵... | [
"tingzhangguo@163.com"
] | tingzhangguo@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.