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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7ce859d1aeafe754e3298ab2f867f74b8b2f75b0 | 3aa343d79d0d6286a511c8745b698471792c47e6 | /tutorial/urls.py | 4c9c09a196ddffe46b555cd6e1baa20eb7e8c286 | [] | no_license | akcezzz/Tutorial | a80e24f3e1ab7b28821599841008c76f511ad09a | bcae2c5d6661a1f4ae79db8316f08a7219a798ee | refs/heads/master | 2020-05-23T09:00:46.534817 | 2019-05-14T21:49:41 | 2019-05-14T21:49:41 | 186,698,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | """tutorial 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... | [
"axil-pacha@hotmail.com"
] | axil-pacha@hotmail.com |
835d78cc36290fc2fe0ecf0ca6a00d9de1712ccf | e4a8a8066f656761f85905e24486903b4094d3d0 | /DB_site/apps.py | 50263391bbfcc608bc29a88a5727e906b3fd2e14 | [] | no_license | wikibady/DB_lol | 3acfebd7330853557ea5ecf9b9c7f33a584bb1d9 | 43654e0fbd345788086ec0e8ad575460c1a9b355 | refs/heads/master | 2021-01-18T10:47:32.158147 | 2016-05-17T13:42:26 | 2016-05-17T13:42:26 | 59,025,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class DbSiteConfig(AppConfig):
name = 'DB_site'
| [
"hysuperliu@wikibady.com"
] | hysuperliu@wikibady.com |
9d3d87b1db818f478f4aa85b0c257eee39b0700b | c609730a43596a2d3303f072fc97d9cf681fac7b | /cagey/usedcar/main_haoche99.py | 386a9e6ee701ee754cd28189f895ff6701bf3b18 | [] | no_license | sinnettluo/ChenProject | 5403311c0c7b78c484145e16d692abff00d2a110 | 0e33ecf1683afb22f1deb4bd54294c41aed8a46b | refs/heads/master | 2023-03-22T23:48:08.430178 | 2020-09-02T15:05:02 | 2020-09-02T15:05:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | from scrapy.cmdline import execute
import sys
import os
website = "haoche99"
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
execute(["scrapy", "crawl", website])
| [
"1316446041@qq.com"
] | 1316446041@qq.com |
1ada52b90f298f06b7a57e15ded114cdbd381a91 | 2b9e57bd48c4b55d118a0e9f395faad507a782f0 | /modules/geometry.py | 86249494df29080d34a1fd2c8a055b8d4110296b | [] | no_license | Wei-Tso/Python-Tutorial_From-YouTube | 97f6bc60a7b48176eeb431f84ac1feae06d4ebf2 | 51381111e9a38b0b0003197bcee978bdb6d570ac | refs/heads/main | 2023-01-02T15:22:28.498845 | 2020-11-04T17:53:30 | 2020-11-04T17:53:30 | 310,073,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | # 在 geometry 模組中定義幾何運算功能
# 計算兩點間的距離
def distance(x1, y1, x2, y2):
return ((x2-x1)**2 + (y2-y1)**2)**0.5
# 計算兩點線段的斜率
def slope(x1, y1, x2, y2):
return (y2-y1) / (x2-x1)
# 計算平均值
def average(*numbers):
sum = 0
for n in numbers:
sum = sum + n
return (sum / len(numbers))
# 加法
def add(*numbers):
sum = 0
for n in... | [
"kobe87020@gmail.com"
] | kobe87020@gmail.com |
1568aa1de7c81345ca53eb818fa78232de792b4b | 748b55e0c02949ddb62c6f52b10be2ed7d9c871c | /Recursion/11729.Hanoi-tower/윤선영.py | 2297282929024207735dd9669b58f8a29e2a1758 | [] | no_license | seojisoosoo/Algorithm | 5305dd2ee5c819e639204fbe250a55dc979af006 | d4a9b3d6c7a87e3e2913aced0cdaa94f20832a45 | refs/heads/main | 2023-08-28T18:28:08.181742 | 2021-10-17T15:38:54 | 2021-10-17T15:38:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | def hanoi(N,start,dest,via):
if N == 1:
move.append([start,dest])
else :
hanoi(N-1,start,via,dest)
move.append([start,dest])
hanoi(N-1,via,dest,start)
N = int(input())
move = []
hanoi(N,1,3,2)
print(len(move))
for i in range(len(move)):
print(move[i][0],move[i][1]) | [
"64634970+yunseonyeong@users.noreply.github.com"
] | 64634970+yunseonyeong@users.noreply.github.com |
bcc938c96292fc6885f94488a3965fd6128af6ed | 5e14b8e24a1a3255b67006bafde2f809cf3e7f5c | /profiles/schema.py | 6129c5dbd075ce407932858596e1eabdecad3c7e | [] | no_license | marcoacierno/Pasteit-Backend | c2f5c9c2792deb01ea85732a98b963a8c2c16717 | 0088dfd69e631a8b6656cf4deeb568c1324cabbe | refs/heads/master | 2021-01-15T15:04:33.886036 | 2016-06-06T08:17:15 | 2016-06-06T08:17:15 | 58,814,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | import graphene
from django.contrib.auth import get_user_model
from graphene import relay, with_context
from graphene.contrib.django import DjangoNode
class UserNode(DjangoNode):
pastes = relay.ConnectionField('PasteNode')
node = relay.NodeField()
def resolve_pastes(self, args, info):
return s... | [
"marcoacierno96@gmail.com"
] | marcoacierno96@gmail.com |
374054f4b1cc28d43773f1c286075531a60030a4 | ca2ed68bcd084913cf592f4e856484be01e2bce0 | /week028--get-in-line/charles.mcmillan/solution.py | 19d3c4759ec5878ea634557b18907660590b8334 | [] | no_license | viewthespace/code-challenge | ddcab182abbda3d1fd383bb742972dcdcaeb2758 | 3ceec2ceb1c8b688a5f1a232992cb8155325fc1a | refs/heads/master | 2021-03-30T15:54:48.321310 | 2019-03-20T02:53:38 | 2019-03-20T02:53:38 | 42,602,268 | 0 | 1 | null | 2019-03-05T01:38:45 | 2015-09-16T17:20:44 | OCaml | UTF-8 | Python | false | false | 2,509 | py | ##
## Time Complexity: O(n^2)
## Space Complexity: O(n^2)
##
import toml
import ast
import math
toml_dict = toml.load('../testcases.toml')
class Line:
def __init__(self, slope, intercept):
self.slope = slope
self.intercept = intercept
def __str__(self):
return f"{self.slope}x + {self.intercept}"
... | [
"charlesmcm@viewthespace.com"
] | charlesmcm@viewthespace.com |
f34ee70b9a52f64e76c7679f05e1caf15fab05e3 | 3750311368d32d3431a6c7e14b8566fb7ad59470 | /backend/src/api/create_store.py | 56e4817140a2b52bf761dd0ef0f6771945eb46db | [] | no_license | queststudio/momma-dog | 5a9a584c9e96d344a70881fa2014c42f5316efb8 | e75951042b50833485667b2b257503ad31a6c3ad | refs/heads/master | 2022-12-11T19:27:15.964172 | 2019-07-07T15:42:16 | 2019-07-07T15:47:49 | 121,881,640 | 1 | 0 | null | 2022-12-07T19:40:40 | 2018-02-17T18:37:08 | Python | UTF-8 | Python | false | false | 459 | py | from src.relays.set_state import set_state
from src.relays.render import render_state
from src.game.store import Store, init_state
from src.game.middlewares import restart_middleware_creator
from src.relays.restart import restart_creator
restart = restart_creator(set_state)
restart_middleware = restart_middleware_cre... | [
"d.f.goryunov@gmail.com"
] | d.f.goryunov@gmail.com |
d3550d7689399933bc52ca671f322510fc34bf23 | d94c5849e6308901f9af8a4edf8c8369d46576d1 | /BOJ/14499_주사위 굴리기.py | 22ad001dcfef81e9fc7a3e7aee0a5e29963d830e | [] | no_license | AhnDogeon/algorithm_study | b4c961b934b5e27afccdf2713a2ccb0174d9a698 | b8de39fff92cc98281ba7e94df82bcc9b1503243 | refs/heads/master | 2022-06-05T11:33:27.392131 | 2022-05-23T06:37:50 | 2022-05-23T06:37:50 | 188,783,176 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,095 | py | import sys
from copy import deepcopy
sys.stdin = open('14499_주사위 굴리기.txt', 'r')
N, M, x, y, K = map(int, input().split())
board = []
for _ in range(N):
board_list = list(map(int, input().split()))
board.append(board_list)
move = list(map(int, input().split()))
# print(move)
#
# print('===========디버깅========... | [
"qltiqlti@gmail.com"
] | qltiqlti@gmail.com |
d89692a51b4763f9f8a3060e3dbea201c0530805 | 3344516cfaade0f0d2223c84127aefb91a8a8071 | /python_intermedio/assert_statement.py | a945ee9cdb30fc096fc54582fd69b79bf3b0cdc3 | [] | no_license | maurogome/platzi | 91ff14519dcfe48a26bfb34d2031e4e6146e131e | 56e51cef4b2ec82e8c52d3c384202a42c480817c | refs/heads/master | 2023-04-09T23:48:02.730877 | 2021-04-25T16:36:28 | 2021-04-25T16:36:28 | 268,672,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | def divisors(num):
divisors = []
for i in range(1, num + 1):
if num % i == 0:
divisors.append(i)
return divisors
def run():
num = input("Ingrese un número:")
assert num.strip("-").isnumeric(), "Debes ingresar un numero"
assert int(num) > 0, "El numero debe ser ... | [
"mauriciogom@gmail.com"
] | mauriciogom@gmail.com |
0d5757a1a9ed5bcbb7dbb9f0d6480b75d12b5efe | 4d1f1e188a4db8e909430b55bddf0d8113a28fcf | /reinforcement_learning/0x00-q_learning/2-epsilon_greedy.py | 5b5895e3aafe8d93a6fc7131ffb272cf3044f4a9 | [] | no_license | paurbano/holbertonschool-machine_learning | b0184a71733a1f51633ba7c7f4d3a82b8d50e94f | ff1af62484620b599cc3813068770db03b37036d | refs/heads/master | 2023-07-02T16:20:13.668083 | 2023-06-18T06:25:26 | 2023-06-18T06:25:26 | 279,967,511 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | #!/usr/bin/env python3
'''Epsilon Greedy
https://github.com/simoninithomas/Deep_reinforcement_learning_Course/blob/
master/Q%20learning/FrozenLake/Q%20Learning%20with%20FrozenLake.ipynb
'''
import numpy as np
def epsilon_greedy(Q, state, epsilon):
'''uses epsilon-greedy to determine the next action:
Args:
... | [
"paurbano@gmail.com"
] | paurbano@gmail.com |
3723fa7aa30aba310bf4f9d5e1019ce129b50a69 | 94ea78dc4ae7794c97652368a656e8e45e6a3fbb | /send_mail.py | f5969a4a1f8dcbec04083d856a4e82e34edd9c5d | [] | no_license | nestoralvaro/Utils | 22dc5874c4fbbfb600fa1899b9abbde1f60e493d | acb98c8aade5044cf7089b52622aaea6e2cc7997 | refs/heads/master | 2021-01-20T07:32:05.396671 | 2017-03-04T12:28:26 | 2017-03-04T12:28:26 | 83,889,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,812 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import smtplib
"""
description:
Utility for sending e-mails on python
You can choose between sending these e-mails using the local SMTP server, or
you can send the messages using GOOGLE mail SMTP server.
Caution: These e-mails may appear on the "SPAM" f... | [
"noreply@github.com"
] | noreply@github.com |
bbea077e0cd49da8d560139dd7b739c639bbe3e1 | 0cca3fd224e21ebebdef7cfa68964351782c7758 | /recon.py | 080e13b20ca52c7cb80eeff15c25f2f3aeee60f1 | [
"MIT"
] | permissive | luckyster895/GoldenRecon | 36c049cc367bf0ebfcadfcb8aa49e63f4b125290 | 71255a8ecd86a1e6ea30524191100a424e72e676 | refs/heads/main | 2023-04-11T01:28:19.946709 | 2021-04-16T13:24:15 | 2021-04-16T13:24:15 | 344,731,331 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,480 | py | import os
import socket
import time
from colorama import Fore, Back, Style
def argument(arg):
switcher = {
1: "-A -sC -sV -vvv -oN Output/nmap", #Os scanning,Version detection,scripts,traceroute
2: "-O -V -oN Output/nmap", #OS Detection ,Version scanning
3: "-F --open -Pn -oN Output/nmap",... | [
"luckyster895@gmail.com"
] | luckyster895@gmail.com |
0384c48739c535d5420ddbfa9c2b1913e77b9422 | 0642c068d96ae43bbb800283d1aba3bd663740b1 | /download/urls.py | e915a1ba491a6a6cc1cd09a6bb7c6f6dc1a45e80 | [] | no_license | weien8899/CyanScikit | 6724f2f7d3a810a1265edd9ac3a8201c1695d264 | 59a083d9a81c557e5ec7d10d50192f43ff936231 | refs/heads/master | 2020-03-17T17:00:57.825089 | 2017-07-16T15:26:04 | 2017-07-16T15:26:04 | 133,771,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | from django.conf.urls import patterns,include, url
from django.contrib import admin
urlpatterns = patterns(
'download.views',
url(r'^admin/', include(admin.site.urls)),
url(r'^download/$', 'download'),
url(r'^onecateDown/(\w+)/$', 'onecateDown'),
url(r'^more/$', 'more'),
)
| [
"Thinkgamer@163.com"
] | Thinkgamer@163.com |
d0b8a76d43390187dc5aa8db4012da5d8af32d3d | 2ada8b8020a7a7169f087b8aa2e49ff52831a561 | /steps/common.py | 432230fac5a997dec7f9bbd28c21af0b6ef6cdaa | [] | no_license | marlonrochaeng/webAutomationBDD | a767a8d26f865afcada69c0df4cad1f7b79b9ce4 | 53b20134aaf9fc90ac25bb69083712d27a101e93 | refs/heads/master | 2020-08-21T17:55:24.326911 | 2020-04-15T01:47:30 | 2020-04-15T01:47:30 | 216,212,818 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | from behave import given, when, then
from framework.webapp import WebBrowser
@given(u'I open the "{url}" url')
def step_impl_load_website(context, url):
wb = WebBrowser(context)
wb.go_to_page(url) | [
"marlon.alencar.rocha@everis.com"
] | marlon.alencar.rocha@everis.com |
e585a401b1aefd44adfc94300e388978d4eab3a1 | 4fcd8f40868d8a3831487a9ea74cceda462c5bfe | /transferit/callbacks.py | fcfbadb8410a47b22dc38304b890129a43a82590 | [
"MIT"
] | permissive | sorenlind/transferit | 822de4a73eecbd66a58f60c27cb6909e0abc0d13 | c77ecb23a2fb6f571cba66155b0b99e4f359fa68 | refs/heads/master | 2023-04-13T23:50:02.634960 | 2021-04-28T20:09:06 | 2021-04-28T20:09:06 | 361,758,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | """Custom callbacks used during training."""
from tensorflow.keras.callbacks import Callback
import matplotlib.pyplot as plt
class PlotLosses(Callback):
"""Simple callback for plotting losses to a file."""
def __init__(self, output_folder, model_name):
self.output_folder = output_folder
self... | [
"soren@gutsandglory.dk"
] | soren@gutsandglory.dk |
abf248406904ecb544c5ae9b1d87e4652132b972 | b747c83829b650eb45b0d5522970bf71bc8ebe8a | /circuitpy/main.py | 71e57e9b28d1a8f2405d9591935202558cacc381 | [] | no_license | mcscope/liteup | 53048632f85577df953d9dcdb1a517e04dcf95d7 | ff6875319ecec0df02ec2c362e39fbaa77d77e9a | refs/heads/master | 2022-05-05T05:53:35.339022 | 2022-03-16T08:26:28 | 2022-03-16T08:26:28 | 93,298,507 | 13 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,290 | py | """
Liteup 'port' of 2 schemes (perlin and sorts) to Adafruit Gemma
Written in a hackathon at pycon 2018 as a badge decoration
"""
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode
from digitalio import DigitalInOut, Direction, Pull
from analogio import AnalogIn, AnalogOut
import neopi... | [
"mcscope@gmail.com"
] | mcscope@gmail.com |
449197d603b056a7cfaf92ea38f6cbdabaf57f67 | 300fe198f4145cd10dfcd31884dc4b1aa165d097 | /experiments/test_grid_yspace.py | 327db982f4e4d5c60dbe499456267c3459f35495 | [
"BSD-3-Clause"
] | permissive | WrongWhp/mantis | 126170a9033191b970cc4e4697d4353527d25c2f | 2cf149b5bfa4f7c6dbf5aa47f1010785e886bd2c | refs/heads/master | 2020-06-14T22:00:01.472150 | 2018-10-22T17:55:45 | 2018-10-22T17:55:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,412 | py | import matplotlib.colors as mpl_colors
import matplotlib.gridspec as gridspec
import matplotlib.pyplot as plt
import numpy as np
import os
import seaborn.apionly as sns
from mantis import sdp_km_burer_monteiro, copositive_burer_monteiro
from experiments.utils import plot_matrix, plot_data_embedded
plt.rc('text', usete... | [
"Lulita75"
] | Lulita75 |
0eed1e43e88e22d5e74f9010387e7ad031989714 | 472baa2414822520f7cb8d491d4bf5608f765ad8 | /zqxt4396/tools/views.py | 3d5f7f76bda31af965d9c812557cadea6c386f1e | [] | no_license | Umi101108/django-projects | cdcf0c9bb8bd272e04a4b7a702f09adb16c28404 | 50edfdc3511e1de5b4a5a3e92fe9ddad932b5396 | refs/heads/master | 2021-01-12T08:20:48.113696 | 2017-06-11T14:45:20 | 2017-06-11T14:45:20 | 76,545,822 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | from django.http import HttpResponse
from django.shortcuts import render
def index(request):
return render(request, 'index.html')
def add(request):
a = request.GET['a']
b = request.GET['b']
a = int(a)
b = int(b)
return HttpResponse(str(a+b))
| [
"408465808@qq.com"
] | 408465808@qq.com |
6b3ee56fb7f4552bfebdfa4efb793cedd84f4731 | 8512ec0b778cf4efaa960ef88aad4da9e4013a9d | /pip_benchmark_python/utilities/Formatter.py | 561df3c88f38d2db10db99ddfbf665ad67bd96ab | [
"MIT"
] | permissive | pip-benchmark/pip-benchmark-python | b375bd16f0102e698a0a45edbc92fc02735220ab | d75672e940af12e2f9818607e2188490e989d8c5 | refs/heads/master | 2020-05-27T03:22:07.706723 | 2020-05-08T19:31:18 | 2020-05-08T19:31:18 | 82,516,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | # -*- coding: utf-8 -*-
import datetime
from pip_services3_commons.convert import StringConverter
class Formatter:
@staticmethod
def pad_left(value, lenght, pad_symbol):
output = ''
output += pad_symbol
output += value
output += pad_symbol
while len(output) < lenght ... | [
"anastasf/2gmail.com"
] | anastasf/2gmail.com |
a5680836916c2ce43cd2b4b36b019cde8f18cee4 | 1adf769cf9234f9b6c619f808d2723b99451d679 | /rusentrel/classic/mi/pcnn.py | 825d23c100525d15bf520d848194da8230315155 | [
"MIT"
] | permissive | DAVMARROS/attitude-extraction-with-attention-and-ds | 4e85fa154ead0cd9499aaedf5d752ac565f37b92 | fb8e9d0d9488363738a88c4c447c7a8cb3e2ec1d | refs/heads/master | 2023-02-09T04:56:24.090380 | 2020-12-30T10:09:34 | 2020-12-30T10:09:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,447 | py | #!/usr/bin/python
import sys
sys.path.append('../../../')
from io_utils import RuSentRelBasedExperimentsIOUtils
from arekit.contrib.experiments.callback import CustomCallback
from arekit.contrib.networks.multi.configurations.max_pooling import MaxPoolingOverSentencesConfig
from arekit.contrib.networks.multi.architect... | [
"kolyarus@yandex.ru"
] | kolyarus@yandex.ru |
0d8ed6f82e39bf255cdbdaf41569b7e5d76e34ca | 888f98aa6cd5c706582296b2edea5f331836a3aa | /accounts/urls.py | 8e48b97fb7b90371bf373a53068844e3bffefc83 | [] | no_license | Hibatouallah/djangoSite | 662220634da04fbd4cee0623d393df5adeb2a24a | c6f10b1a4c1334b58ee6cdc8665d844be07ffbdc | refs/heads/master | 2022-11-08T12:06:43.232710 | 2020-06-28T20:50:31 | 2020-06-28T20:50:31 | 275,660,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py |
from django.urls import path
from . import views
from django.contrib.auth.views import LoginView , LogoutView
urlpatterns = [
path('',views.indexView,name="home"),
path('login/',LoginView.as_view(),name="login_url"),
path('register/',views.registerView,name="register_url"),
path('logout/',LogoutView.a... | [
"boulsane.1996@gmail.com"
] | boulsane.1996@gmail.com |
330d07b94732fbde6570ab71a73dd30c8eebd34c | 2b9a7ada172dd7adbed7921e6787bf4d43891b36 | /sb05/package.py | 73d97e13365e4b004b6ae6c1c712f4743f3b6c8f | [] | no_license | Vinhnguyen19922/glvis | ba566d3f6117ee005ad1ce89f884631bccf40644 | 1db0c6e57c2b2a4677ab3765525f4f22b7345771 | refs/heads/master | 2020-09-05T04:45:22.064164 | 2016-10-08T07:53:16 | 2016-10-08T07:53:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | from PyQt5 import QtCore
from PyQt5.QtWidgets import (QGridLayout, QWidget)
from sn.qt import *
from sn.gl import *
class SB05(GLWidget):
def __init__(self, parent, width=200, height=200):
super().__init__(parent)
self._width = width; self._height = height
def initializeGL(self, path):
... | [
"wakita@is.titech.ac.jp"
] | wakita@is.titech.ac.jp |
000dfc6172faa1e4cc544650996beca345692cf0 | e28b5950500edac1ec78841ba3232a352c01a5c8 | /models/map.py | dedd8757421d51de371611fa4adc288a363f098f | [] | no_license | jmarcelos/mathspace | 48c82d592dcff240fc9befc2fa6de2c58275cd43 | 37720ec287c77f0fe06aa989292ed73d5bfe26a4 | refs/heads/master | 2021-07-22T08:10:34.523126 | 2017-10-31T12:10:40 | 2017-10-31T12:10:40 | 108,726,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | from math import sqrt
class Map:
MAX_COST = float('inf')
def __init__(self, str_map):
self._validation(str_map)
paths = str_map.split()
size_matrix = sqrt(len(paths))
self.grid = []
line = []
for index, path in enumerate(paths):
if inde... | [
"jmarcelos@gmail.com"
] | jmarcelos@gmail.com |
09a5dcf778c742d075bd8decf005f393a6b3b6e6 | e6d1bbac91b97ee7a9d028c3aafa5d85a0ee593c | /Python04Month/chapter/chapter3/demo/code/3-1_abnormal_check.py | bd08daf230d7e50525b8458610580eb8e1138662 | [] | no_license | LiuJingGitLJ/PythonSuanFa_2 | 82159043523d6fe69beef7f86421cd4be2242919 | 0afba93c4c29231bc6c2aaf6e4663beee2b5cbbb | refs/heads/master | 2021-09-20T13:49:08.521080 | 2018-08-10T06:13:22 | 2018-08-10T06:13:22 | 124,337,675 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | #-*- coding: utf-8 -*-
import pandas as pd
catering_sale = '../data/catering_sale.xls' #餐饮数据
data = pd.read_excel(catering_sale, index_col = u'日期') #读取数据,指定“日期”列为索引列
print(data)
import matplotlib.pyplot as plt #导入图像库
plt.rcParams['font.sans-serif'] = ['SimHei'] #用来正常显示中文标签
plt.rcParams['axes.unicode_minus'] =... | [
"15201078137@163.com"
] | 15201078137@163.com |
124439bf89b3356762e1f31a4567ac04ce455496 | 90e77dfba83cb6f60b0712dce16d131a7b0fd002 | /projects/Project3/analyse/tools.py | 5e8edf4f1dcba818e5782bf49018266d93349e1f | [] | no_license | halvarsu/FYS3150 | 98649d65773d9694cc0728fe69d99beb66ecf486 | dd52b83aa696b43341418ebf6ad116b8dd347299 | refs/heads/master | 2022-03-08T04:51:33.386081 | 2019-11-22T15:39:40 | 2019-11-22T15:39:40 | 104,348,830 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | import os, sys
def blockPrint():
sys.stdout = open(os.devnull, 'w')
def enablePrint():
sys.stdout = sys.__stdout__
def printDisable(*args):
enablePrint()
print(args)
blockPrint()
| [
"halvard.sutterud@gmail.com"
] | halvard.sutterud@gmail.com |
ae9f47dcd6973ca4c8e603f1503be4d5ca8b26ce | a9063fd669162d4ce0e1d6cd2e35974274851547 | /test/test_role_members_add.py | ed565058c42a11f8a5eb9894159405db3ff757a7 | [] | no_license | rootalley/py-zoom-api | 9d29a8c750e110f7bd9b65ff7301af27e8518a3d | bfebf3aa7b714dcac78be7c0affb9050bbce8641 | refs/heads/master | 2022-11-07T14:09:59.134600 | 2020-06-20T18:13:50 | 2020-06-20T18:13:50 | 273,760,906 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | # coding: utf-8
"""
Zoom API
The Zoom API allows developers to safely and securely access information from Zoom. You can use this API to build private services or public applications on the [Zoom App Marketplace](http://marketplace.zoom.us). To learn how to get your credentials and create private/public appli... | [
"github@rootalley.com"
] | github@rootalley.com |
5643935e9ef0b3663b510e3177bffe98981c5630 | 650bd88bf5da6b4105d84d0ef97434a4f4512790 | /nn_meter/prediction/predictors/kernel_predictor.py | c6ed0b812841e50f50bc65ba2960b1b525302987 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | JiahangXu/nn-Meter | 3a0303c08f59ca91673047fe6dcd5cb052ebc4d3 | c11b8223ecf8b5ba881528071a8ae18df80584ba | refs/heads/main | 2023-08-25T14:57:05.299811 | 2021-10-12T10:15:36 | 2021-10-12T10:15:36 | 393,234,662 | 0 | 0 | MIT | 2021-08-06T03:20:11 | 2021-08-06T03:20:10 | null | UTF-8 | Python | false | false | 13,250 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from sklearn.ensemble import RandomForestRegressor
def get_model(hardware, kernel):
model = None
if kernel == "convbnrelu":
if hardware == "cpu":
model = RandomForestRegressor(
max_depth=70,
... | [
"lzhani@microsoft.com"
] | lzhani@microsoft.com |
3e1303281faa8390bc75072c73e0d996ebfdb03e | 8d9b85f92a934c57306f13d6bdddfe2c0c04c101 | /Lessons/rand_tmp.py | ecb43bf0a21835931e8c1505361c3d54ec0d0ce0 | [] | no_license | estherica/wonderland | 640dcbce9343753ecde9f87b03fdebdc7950c49a | 458e77f7e20b8852bc18fd97add4f62558d175c7 | refs/heads/master | 2022-12-07T16:19:54.727623 | 2020-08-25T14:13:19 | 2020-08-25T14:13:19 | 284,969,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | from random import randint
print("Random numbers game\n")
num1=(randint(1,37))
num2=(randint(1,37))
print("1st number: " + str(num1) + "\n2nd number: " + str(num2) + "\n")
if (num1==num2):
print("You won 100$! \n")
else:
print("Maybe next time...")
print("\nBye-bye!") | [
"belleshamharoth@gmail.com"
] | belleshamharoth@gmail.com |
6434ee69271aa8ef76600a1a8e6d60014f9b18f6 | ba1a1e90406230eeb0a86ef22a3a94a7b227b7b8 | /taskmanager/tcp_protocol/message_templates.py | b8b520e92459b14aa099bebaebb9efa8afc3f62b | [
"MIT"
] | permissive | spanickroon/Task-Management-Tools | 6e47ac05a1ff9ddf21a988cf6fc63670bf921d63 | ab8ddba79830fe46bf8e0280832f94ece97a3edb | refs/heads/master | 2022-06-10T18:51:15.235038 | 2020-05-05T23:47:18 | 2020-05-05T23:47:18 | 259,631,581 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | START_APP = '!START!'
STOP_APP = '!STOP!'
SEND_MSG = '!SENDMSG!'
UPD_RPOCESS = '!UPD!'
CONNECT = '!CONNECT!'
| [
"nikitakoznev@gmail.com"
] | nikitakoznev@gmail.com |
7733b0f0ac3a81dfe676c533d7b32dbf6a711e97 | 8e5ebf2c0296294cc2d5850e4dbd6282601aaa26 | /backenddj/urls.py | d775e1ba446dfba1374458515861c35b6683d984 | [] | no_license | udaravimukthi/Django-learn | 0e628c46978a8d2cba0105e577d36906a8dcd508 | 6801b3621b5ed0dd3ca3750f9ef14f027e05a308 | refs/heads/main | 2023-01-30T08:44:47.509775 | 2020-12-08T17:17:19 | 2020-12-08T17:17:19 | 306,814,128 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | """backenddj URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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-bas... | [
"uvlakshan@gmail.com"
] | uvlakshan@gmail.com |
b5ce7163b13168c36c12bcfe8d7bc802301482c5 | 935e9d6d806f507eb541a88de731b2b16b0cc6c9 | /Pages/TeamPage.py | fc8b3995c2d004271bce5de45eab28c4b6dd717d | [] | no_license | Anandqualwebs/AgileSportz | 27ff864115907c7b80466ad0ece955add6054642 | e59dbb26970f3d486507b8c968068fb3b1ae7069 | refs/heads/master | 2020-07-30T20:13:50.390846 | 2019-09-23T11:56:48 | 2019-09-23T11:56:48 | 210,344,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,967 | py | import sys
import os
sys.path.append(os.path.dirname(sys.path[0]+"\Locators"))
from Locators.Locators import locators
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.support.se... | [
"envio login s.shukla@enviosystems.com"
] | envio login s.shukla@enviosystems.com |
f1d3ed05dd0a8188d896cde41bfb30bf2177629c | 14a19a5dfbe5519529c097cf9606cd325549d1b3 | /metadataapp/views.py | 06c429f825f87f1b29aa747ab12d4b28781764f3 | [] | no_license | factvsankit/bbtApp | ea9d7b2c72f22b67c6e0f5dd4f0a7321d6c2d834 | 0fc5aa209bc454629f0eaf4a635b0624313bd5de | refs/heads/master | 2021-07-24T10:40:24.861572 | 2017-11-04T04:51:43 | 2017-11-04T04:51:43 | 109,467,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,375 | py | import json, os
import math
from django.http import HttpResponse, JsonResponse
from content_page.models import ContentPage, ContentIndexPage
from metadataapp.models import Plant, Event, Fruit, CropPricing
from .constants import NEPALI_MONTH_INDEX, NO_DAYS_IN_MONTH, EVENT_URL
YEAR = 2073
BASE_TECHNIQUES_URL = "http:... | [
"mta.ankit@gmail.com"
] | mta.ankit@gmail.com |
cad08c6af20f321507af6bc050e428731b67a33f | 7dc240e587213e4b420676c60aa1b24905b1b2e4 | /src/app/tests/mailchimp/conftest.py | d5af1f4a3624389007aae35e1b133692b303f6ce | [
"MIT"
] | permissive | denokenya/education-backend | 834d22280717f15f93407108846e2eea767421c8 | 3b43ba0cc54c6a2fc2f1716170393f943323a29b | refs/heads/master | 2023-08-27T09:07:48.257108 | 2021-11-03T00:19:04 | 2021-11-03T00:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | import pytest
import requests_mock
from app.integrations.mailchimp import AppMailchimp, MailchimpMember
pytestmark = [pytest.mark.django_db]
@pytest.fixture(autouse=True)
def _set_mailchimp_credentials(settings):
settings.MAILCHIMP_API_KEY = 'key-us05'
settings.MAILCHIMP_CONTACT_LIST_ID = '123cba'
@pytest... | [
"noreply@github.com"
] | noreply@github.com |
5a430ef971af1b67af314b64ae6eac1b2d348931 | 28f726ae55c94ad559aba289f5e3f8f51c966a4d | /导出数据.py | c0fbbae723b55cecabffaaba977e678da8dae968 | [] | no_license | bruce994/python_training | 546ed4f27ef8da7a9f94f7b8f4db9100ffeae137 | 12ba20f8ef662ef2e8cc3018ed1254c33e75375b | refs/heads/master | 2021-01-10T12:54:28.306911 | 2019-09-18T03:15:16 | 2019-09-18T03:15:16 | 43,752,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | #!/usr/bin/env python
#-*- coding:utf-8-*-
import socket
import thread
import time,os,shutil,platform,datetime,sys,re
import MySQLdb
import sqlite3
conn = MySQLdb.connect(host='localhost',user='root',passwd='123456',db='test',charset='utf8', init_command='SET NAMES UTF8')
cursor = conn.cursor()
cur... | [
"noreply@github.com"
] | noreply@github.com |
231d481e63ca5e223979d6b4a158a15ed9294642 | 0e74ba41a89742cc81c6ffaab685ee7f991fd0dc | /gettingFileList/getFileListTtB.py | 36d448060c3422231d6f199b8056b3dc85179822 | [] | no_license | bigalex95/androidMalwareDetectionSystem | 661059acbb40ad56fb6ca99943c9a02a87e1362c | 542373ca7dc700fa4a569deb34d3d87ca80d4ecd | refs/heads/master | 2021-07-16T21:54:03.263225 | 2020-07-25T22:08:12 | 2020-07-25T22:08:12 | 192,614,718 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | import glob
#path where your source files
BENIGN_PATH_TEST = '../Benign/Test/'
#opening and putting to list array all sources file names
class_benign_test = glob.glob(BENIGN_PATH_TEST + '*.txt')
#writing all source file names to fileList.txt
with open('file_list_test_Benign.txt', 'w') as f:
for item in class_ben... | [
"amanbayeva95@gmail.com"
] | amanbayeva95@gmail.com |
bf8e5d90cbc8364cd686f902be7a8ff4071e570c | 3ada098871f017f316209f0ff7751c5ac784121a | /queue/multicast/main.py | 654a82c5a59cd6f29bafbd62a650d9cd9c62072b | [
"Apache-2.0"
] | permissive | kubemq-io/python-sdk-cookbook | 1824d2da06fdf6f7d778c8ed465866a2d125266e | 0c843ec77e8923a79a0853c83915f7ee240c5ddb | refs/heads/master | 2023-07-13T06:27:36.167221 | 2021-08-21T11:29:17 | 2021-08-21T11:29:17 | 352,559,888 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,224 | py | from kubemq.queue.message_queue import MessageQueue
from kubemq.queue.message import Message
def create_queue_message(meta_data, body, policy=None):
message = Message()
message.metadata = meta_data
message.body = body
message.tags = [
('key', 'value'),
('key2', 'value2'),
]
me... | [
"eitam.ring@kubemq.io"
] | eitam.ring@kubemq.io |
8a2e8a556542b2c6270c5ebb0463bb7eda92fe92 | e02366473ccd3ddbddd96e1fecd2f460bf07db95 | /lambdas.py | 703fd3139332731f05659d137a00f4ca418268cd | [
"MIT"
] | permissive | davidlares/python-overview | 03413e4b27107d71cc1ced122ba104a83c99e48c | 523a4fd59ecc356b95f091adbe609448f85e8aa5 | refs/heads/master | 2021-09-14T17:34:15.468977 | 2018-05-16T19:09:57 | 2018-05-16T19:09:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | # asignar una funcion a una variable
def grados(grados):
return grados * 1.8 + 32
function_variable = grados
resultado = function_variable(32)
print(resultado)
# lambdas o funciones anonimas
mifunc = lambda grados=0 : grados * 1.8 + 32 # todas las lambdas retornan un valor
resultado = mifunc(32)
print(resultado)
| [
"david.e.lares@gmail.com"
] | david.e.lares@gmail.com |
a29b5c5fd84534f37e17dd2410016807deff86f6 | 9c404f18c27297e5c6fe6dde50097765478e09bf | /src/blog/migrations/0007_contact.py | 48d4ef5c22e50203a8a429c09560e19633698873 | [] | no_license | rishav4101/Click_Galaxy | 6001619e25d41504cd7f27cc40a1dfd064bfd52c | 404482ce760f8422837438fbddc046575d41b351 | refs/heads/master | 2021-03-09T23:00:21.274638 | 2020-03-17T16:49:20 | 2020-03-17T16:49:20 | 246,389,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | # Generated by Django 3.0.4 on 2020-03-10 14:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0006_delete_feedback'),
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('... | [
"rajkumarrishav4101@gmail.com"
] | rajkumarrishav4101@gmail.com |
2809b47d249d56790cb08fb8a0c7d5f1fbdd146e | d53baf0a3aaa10521cfc28a7be8f2c498bc9e741 | /examples/CaffeModels/load-vgg16.py | 96780e85eac94a3b1709a479d22cf2e3faa232fd | [
"Apache-2.0"
] | permissive | qianlinjun/tensorpack | 8f6e99ba17095334de1163d6412e740642343752 | 7f505225cd41aaeee3a0b0688fe67afc0af8fb30 | refs/heads/master | 2020-03-29T22:38:22.269889 | 2018-09-25T07:20:48 | 2018-09-25T07:20:48 | 150,432,021 | 1 | 0 | Apache-2.0 | 2018-09-26T13:35:19 | 2018-09-26T13:35:18 | null | UTF-8 | Python | false | false | 3,493 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: load-vgg16.py
from __future__ import print_function
import cv2
import tensorflow as tf
import numpy as np
import os
import six
import argparse
from tensorpack import *
from tensorpack.dataflow.dataset import ILSVRCMeta
enable_argscope_for_module(tf.layers)
def ... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
5b3165a574457eeb1f369cd70b0259bd520aec67 | 8e2404c7bcfd28329bed789839192b2c4e85ea1b | /LeetCode/Linked_List_Cycle_II.py | ca97be57324afaacc01727943d36debb9971ccae | [] | no_license | Pabitra-26/Problem-Solved | 408bd51bbffc69f8c5e1def92797c2e6f027f91d | c27de1dd6c4ad14444fa5ee911a16186c200a7f9 | refs/heads/master | 2023-07-30T16:51:28.062349 | 2021-09-27T06:06:54 | 2021-09-27T06:06:54 | 269,935,039 | 2 | 0 | null | 2021-09-27T06:06:55 | 2020-06-06T09:39:33 | Python | UTF-8 | Python | false | false | 886 | py | # Problem name: Linked List Cycle II
# Description: Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
# To represent a cycle in the given linked list, we use an integer pos which represents the position (0-indexed) in the linked list where tail connects to.
# If pos is -... | [
"noreply@github.com"
] | noreply@github.com |
b6a4a9e47571cdc8e1f355c4ff97f2f25ce41edb | ee7e42417d9d1e76b0e84e44dc6eb037adc3ebad | /.history/pet/api_20190703151654.py | 3b027aed09213348242bbcfd996055000b31003a | [] | no_license | web3-qa/pets-api | 4632127ee84a299f207d95754f409fc1e4c0013d | ee4a04e7291740ac8eb6147c305b41d27d5be29c | refs/heads/master | 2023-05-12T09:09:47.509063 | 2019-07-18T15:07:13 | 2019-07-18T15:07:13 | 197,611,701 | 0 | 0 | null | 2023-05-01T19:42:17 | 2019-07-18T15:19:59 | Python | UTF-8 | Python | false | false | 7 | py | from fl | [
"dcolmer@statestreet.com"
] | dcolmer@statestreet.com |
9cbccdf6741a644e2d43e78594b58ded66dc35c4 | af992da82e277bf3982b003a0fb8b6f65d4311b4 | /dataAnalysis/fit_task.py | cc9226d71dd6fbcd41bb6154583bc0eb3d2e0c11 | [
"MIT"
] | permissive | emailhy/lab5 | 5529c7c388111f16215262f7e45a3ba7201b767c | c0f499bf396d228290ce6d06fc90567e81cb638c | refs/heads/master | 2021-05-10T07:37:35.532945 | 2017-10-09T04:17:56 | 2017-10-09T04:17:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | from dataAnalysis.prmodel import FormulationDataModel
from math import ceil, floor
import numpy as np
import json
from app import celery
from redis import Redis
from datetime import datetime
r = Redis(host='127.0.0.1')
@celery.task
def fit_model_task(f_id, training_uuid, logging_uuid, epochs=100):
fdm = Formulat... | [
"qinzishi@gmail.com"
] | qinzishi@gmail.com |
890e60f80c689b4b20df4c533f1250dfabacfa0e | f466c7d8dc1034df6dfd150b0468fe2fe45f8565 | /xls2pdf/xls2pdf.spec | 2edd20d4b1b8385715dfd8eeb6765e0d661b8c71 | [] | no_license | MarlboroLeo/utils | ebce4ca300ce4c5fe85c4a03930f12363e08627c | 7bc717cf46d8f39807dd9c294535bb16ece17f0d | refs/heads/master | 2021-06-21T01:39:11.147692 | 2021-03-25T15:51:35 | 2021-03-25T15:51:35 | 194,812,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['xls2pdf.py'],
pathex=['D:\\Leau\\code\\xls2doc'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redir... | [
"mu_zhennan@126.com"
] | mu_zhennan@126.com |
fc75c39c188f5c86376de80a21d363b87e28047e | a3e2201173a475c78c2b89456b916c919657ed25 | /core_contracts/rebalancing/utils/checks.py | af0638719f4a9748f3285a7ce9ac84ffdbf6a9d4 | [
"MIT"
] | permissive | subba72/balanced-contracts | a302994044dab909f9d5ef84bbee593e6e9695c7 | cd185fa831de18b4d9c634689a3c6e7b559bbabe | refs/heads/main | 2023-08-15T12:15:47.967642 | 2021-08-06T04:09:19 | 2021-08-06T04:09:19 | 396,687,527 | 0 | 0 | MIT | 2021-08-16T08:04:25 | 2021-08-16T08:04:24 | null | UTF-8 | Python | false | false | 1,361 | py | from iconservice import *
# ================================================
# Exceptions
# ================================================
class SenderNotScoreOwnerError(Exception):
pass
class SenderNotAuthorized(Exception):
pass
class SenderNotGovernance(Exception):
pass
class SenderNotRebalance... | [
"adhikarisuyog49@gmail.com"
] | adhikarisuyog49@gmail.com |
ac8fff68a489144a8de93d5312a8f51903d2b38c | dc5fd106270d1e81f9eefcc542695c4bb1f8c691 | /customers/migrations/0010_auto_20160411_0245.py | 643d4c1d61597f5db2eafdb5acd5ed8c4a6139eb | [] | no_license | iblogc/backend | 3bd134701cc2a6dbcf4438026693814524f07cc2 | e7a5f85eaa57765cf91a62f022ea64b61ce56ffd | refs/heads/master | 2021-01-21T08:57:36.300994 | 2016-09-21T05:34:35 | 2016-09-21T05:34:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-04-11 02:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('customers', '0009_accountkey'),
]
operations = [
... | [
"14841787@qq.com"
] | 14841787@qq.com |
f7d01c0eda3577f57ae5c0e2137ea657057871cc | 7c64785c00de294f1456a3d167727e0885af0f59 | /setup.py | 12d4c9d70662766fff071ed4bd294fb7978eeaaa | [
"Apache-2.0"
] | permissive | yh-luo/prosdk-addons-python | b5bc311d98b1c095bcf86c19d1f3c4228f27bd22 | 9335cf9a17da7673892c2b849f0884b89e8cdabf | refs/heads/master | 2020-03-19T14:49:10.745441 | 2018-06-08T16:16:18 | 2018-06-08T16:16:18 | 136,640,731 | 0 | 0 | null | 2018-06-08T16:09:54 | 2018-06-08T16:09:54 | null | UTF-8 | Python | false | false | 1,634 | py | # Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
... | [
"pontus.nyman@tobii.com"
] | pontus.nyman@tobii.com |
2f9a0e5eb894f82c3246cbe316a3aaec12605ea4 | 49c715a71da32472e078be32c46ffe2c7315d253 | /TestREST_Framework/env/bin/pip2 | b6279f9dd630da82762490a0d1b35818b84ddd83 | [] | no_license | janicheen/KontrollrommetBETA | aaddc92a3b58ecb2bbed5e0e79f7d3b461fe79e4 | 00a78e5ca8079beb327ceacd7fb4a02a9011ca06 | refs/heads/master | 2020-06-24T13:57:57.848532 | 2017-07-07T23:47:47 | 2017-07-07T23:47:47 | 96,937,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | #!/Users/Janic/Kontrollrommet/TestREST_Framework/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"janic@online.no"
] | janic@online.no | |
a11c6f9099d8b70366f5afa7c539fef9e9c2c750 | 32e97c6f83142d6fc365749a42356e689ea2fa70 | /mk/com/dragan/nupic/result_generators/AbstractResultGenerator.py | 94e470c3b50269e2745870f4e50a4d438e3c7bcd | [] | no_license | inside-dragan/magisterska | 7168f9f8864c2d214cb764abc79d42983c4c0d9b | 334408bc4a89371f8c63880a9865ea2f37054d50 | refs/heads/master | 2016-09-06T06:54:30.052230 | 2013-05-21T21:41:37 | 2013-05-21T21:41:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,780 | py | '''
Created on Jun 7, 2012
@author: dzaharie
'''
from mk.dragan.config.Params import Params
from mk.dragan.config.ResultContainer import ResultContainer
from mk.dragan.utils.CsvUtils import writeData
from mk.dragan.utils.DatabaseUtils import dbgetlist, dbsetlist
import logging
import os
import shutil
import traceback
... | [
"dragan.zahariev@inside-solutions.ch"
] | dragan.zahariev@inside-solutions.ch |
2392a6dd5a8bc0cc84ab0904642c9fb7c3252d87 | a38b90349f7e2bae1400d2db4cfc9200d369d7ba | /blog/migrations/0001_initial.py | 1f3616c21f11d71129d5f6ea46c20112985d6f94 | [] | no_license | merymeru/my-first-blog | 01d79f45a71344edfb2caba2f5c777ca9f0f6ff4 | 95ddfbd07513de9f8b1ea90aca83a58b6a937e67 | refs/heads/master | 2020-03-27T06:26:20.929721 | 2018-08-26T20:37:20 | 2018-08-26T20:37:20 | 146,105,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.0.8 on 2018-08-25 14:28
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"merymeru@gmail.com"
] | merymeru@gmail.com |
754231c8d6e0ac524b966bfe25b565c8c101d363 | 79859d498c9fbb568f2eae19399a23558c3c6fd1 | /information/views/__init__.py | af1c64d210d93f1b5620c675925cedab6deefd12 | [] | no_license | Kiharaten/VirtualClassRoom | 7d04a57308587735e189d1d1c338b99fca6a3cbe | 170ecb3dbdd54a67496d0d95a8730804570c1a8b | refs/heads/master | 2023-03-13T19:57:24.925622 | 2021-02-19T03:41:50 | 2021-02-19T03:41:50 | 299,920,280 | 0 | 0 | null | 2021-02-19T03:41:51 | 2020-09-30T13:00:54 | Python | UTF-8 | Python | false | false | 367 | py | from django.shortcuts import get_object_or_404, render
context = {
'fixed': {
'sitename': '遠隔授業システム',
'title': '- サイト情報 -',
},
}
# Create your views here.
def index(request):
return render(request, 'information/top.html', context)
def help(request):
return render(request, 'information... | [
"kiharaten1129@gmail.com"
] | kiharaten1129@gmail.com |
3e7df88f0417ba13618a0e02619b628a14db66c2 | f6a9634d65a24731f6c1ef39aaa8e59d974d79b1 | /python/exercises/flowcontrols_conditions.py | 40c8aeda2a920d4caecfe7e5accc6d8f3ee40c40 | [] | no_license | emersonmellado/devopsbc | 653a98526396c88da9cf0e9584d4a4048a9f173c | a99d84fd6569480e6ebf1d95da3844ae2dfafc26 | refs/heads/master | 2022-11-30T09:12:56.915799 | 2020-08-13T04:30:26 | 2020-08-13T04:30:26 | 266,922,507 | 1 | 0 | null | 2022-07-22T07:35:45 | 2020-05-26T02:09:37 | Python | UTF-8 | Python | false | false | 559 | py | """
Syntax:
if CONDITION:
# Condition is True
else:
# Condition is False
Usage: Condition is replaced with an expression
True path: you write logic for the true case
False path: you write logic for the false case
"""
value = input("Give me a number: ")
if isinstance(value, int):
print("All good, keep goin... | [
"emersonmellado@gmail.com"
] | emersonmellado@gmail.com |
16d79b54d69df57c653a5cc4fbe3d3bba8ccedce | 5f2d270bd8acddc6262a3be4e569e96e83bbf70f | /examples/h2o-classifier/train.py | 5ac44b25a4ab7a3db38a530dd61a4fc30b11f431 | [] | no_license | bchalamayya/promote-python | f42ee55f884b18da298749e01790de20aa5a4b84 | 906bf4b3ee80d5280129be048b2cd1ab83f9f8d2 | refs/heads/master | 2020-04-14T17:57:48.365691 | 2018-11-20T20:59:04 | 2018-11-20T20:59:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | import h2o
from h2o.estimators import H2ORandomForestEstimator
import os
h2o.init()
data = h2o.import_file('iris.csv')
training_columns = ['C1', 'C2', 'C3', 'C4']
response_column = 'C5'
train, test = data.split_frame(ratios=[0.8])
model = H2ORandomForestEstimator(ntrees=50, max_depth=20, nfolds=10)
model.train(x=... | [
"colin.ristig@gmail.com"
] | colin.ristig@gmail.com |
adb77a3ed74b681351ac695e90d5e55ea1b00919 | 1798ab9a1116022e8517f77f840f93b7f3668198 | /euler056.py | d8d3f8b78c4ce727c0e93114fa55915f563cbba5 | [] | no_license | iynaix/eulerproject | c79e9b37b77fe5e14e1ed23e1fc24121cb757512 | 4d1ba226e2a6d4261ce2cf0d64ebd4b0e538e0b0 | refs/heads/master | 2021-01-19T14:30:17.960934 | 2014-09-29T01:28:39 | 2014-09-29T01:28:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from utils import digits
def euler56():
ret = 0
for a in range(1, 100):
for b in range(1, 100):
ret = max(ret, sum(digits(a ** b)))
return ret
| [
"iynaix@gmail.com"
] | iynaix@gmail.com |
bc8c5f17ce1d0ec1610763eeda69ec813f6f4a2f | 4dbc1e4a7115b834bbf239fd5254adf293b61516 | /vfmflathub/__init__.py | 973ac4103d9eea129e43384235b067edb27a0f4f | [
"MIT",
"CC-BY-SA-4.0"
] | permissive | sharkwouter/vaporos-flatpak-manager | 32d398ec0b66494471d0c63eea088504efa65dd1 | da1dce2a806fdb51aa9366408ace50c28fbc3ff6 | refs/heads/master | 2020-07-06T05:34:16.634849 | 2019-10-11T18:23:06 | 2019-10-11T18:23:06 | 202,908,134 | 2 | 0 | MIT | 2019-09-10T14:58:50 | 2019-08-17T16:51:10 | Python | UTF-8 | Python | false | false | 194 | py | from vfmflathub.api import get_applications
from vfmflathub.application import Application
from vfmflathub.flatpak import add_flathub, get_installed_applications, install, uninstall, update_all
| [
"wwijsman@live.nl"
] | wwijsman@live.nl |
50ddae41737c1856fdea70885af523908cdebab0 | d83fa072a084642ebaa40317dda61f7a2f660284 | /cleancoderscom/gateways/codecast_gateway.py | 89edbc42cf18f413af36449ce9f5bf8e0749df70 | [] | no_license | xstrengthofonex/CleanCodeCaseStudy | 479ca1f0c028f3f481635b23bf44363fd50dec18 | 312aeef9f2127033f2b9e0b4a2c41baf4e6cc01e | refs/heads/master | 2021-01-02T22:55:50.471384 | 2017-08-06T14:36:17 | 2017-08-06T14:36:17 | 99,425,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | from abc import ABCMeta, abstractmethod
from typing import List, Optional
from cleancoderscom.entities.codecast import Codecast
class CodecastGateway(metaclass=ABCMeta):
@abstractmethod
def find_all_codecasts_ordered_by_date(self) -> List[Codecast]:
pass
@abstractmethod
def find_codecast_by_title(self, title)... | [
"xstrengthofonex@gmail.com"
] | xstrengthofonex@gmail.com |
fca8833ff2ffcf10a7e5395e8b705cd0a33fad29 | cd4bbecc3f713b0c25508d0c5674d9e103db5df4 | /toontown/building/DistributedAnimDoor.py | 37bb7065eba4aa04a774aaff39c4ee732815e3bb | [] | no_license | peppythegod/ToontownOnline | dce0351cfa1ad8c476e035aa3947fdf53de916a6 | 2e5a106f3027714d301f284721382cb956cd87a0 | refs/heads/master | 2020-04-20T05:05:22.934339 | 2020-01-02T18:05:28 | 2020-01-02T18:05:28 | 168,646,608 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,294 | py | from pandac.PandaModules import NodePath, VBase3
from direct.directnotify import DirectNotifyGlobal
from direct.interval.IntervalGlobal import Parallel, Sequence, Wait, HprInterval, LerpHprInterval, SoundInterval
from toontown.building import DistributedDoor
from toontown.building import DoorTypes
if __debug__:
imp... | [
"47166977+peppythegod@users.noreply.github.com"
] | 47166977+peppythegod@users.noreply.github.com |
48035def9dc27ef8655ec0557839d1a7558ed009 | 08bfc8a1f8e44adc624d1f1c6250a3d9635f99de | /SDKs/Qt/5.12.3_python_37/msvc2017_64/PySide/PySide2/scripts/uic.py | 1471f24152ba72980656c2caa300f5e965452b38 | [] | no_license | Personwithhat/CE_SDKs | cd998a2181fcbc9e3de8c58c7cc7b2156ca21d02 | 7afbd2f7767c9c5e95912a1af42b37c24d57f0d4 | refs/heads/master | 2020-04-09T22:14:56.917176 | 2019-07-04T00:19:11 | 2019-07-04T00:19:11 | 160,623,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:7342dc46431b086d9ffeed1ae7e528d3b0e53a3dc1ccd79003825db7ec8dad8e
size 2880
| [
"personwithhats2@Gmail.com"
] | personwithhats2@Gmail.com |
13728d7d3e4fd069f326f6493d706e6f0df8f729 | dbef97b46cbef9d2a2f9f89f5a4fec7f49875857 | /extract_short.py | 299e8198d35ab78fda0ab4665aebda2303e75829 | [] | no_license | ayu1992/MachineLearning | e1a3626bb60bed98866ea228e27f9310bb2d3102 | f885064160f9f01e1c48edb742f770d264fc645f | refs/heads/master | 2020-06-05T13:58:41.392529 | 2015-03-30T06:09:58 | 2015-03-30T06:09:58 | 33,105,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | with open("/Volumes/YUCHI/ML_anan/movies.txt.txt.txt", "r") as f:
with open("summary_rating.csv", "w") as of:
arr = ["", "", "", ""]
for i, line in enumerate(f):
if i % 100000 == 0:
print i
if line.startswith("product/productId"):
arr[0] = line.split()[1]
elif line.startswith... | [
"yuxx0535@umn.edu"
] | yuxx0535@umn.edu |
100f6258f50963233c3177c141a8c294e712e957 | 4a5931556117ceb4cb1a770928a68454658c7bd0 | /Katakana/tests.py | 72105cac7bb31df68b5a4135660bf6a9a336ad1b | [] | no_license | zooyl/JapaneseMemo | 8ce21683eae305667e11b61acd7aeeba8867044a | 9e808bc39be3e9d3c1986eb4c8d8cd7819668a8c | refs/heads/master | 2022-12-15T11:39:40.448575 | 2021-08-11T11:23:38 | 2021-08-11T11:23:38 | 175,037,873 | 0 | 0 | null | 2022-12-08T04:59:08 | 2019-03-11T16:12:41 | Python | UTF-8 | Python | false | false | 5,587 | py | from django.test import TestCase
import django
from django.test import Client
from django.urls import reverse
from django.contrib.auth.models import User, Permission
# app imports
from Hiragana.models import Stats
# Create your tests here.
class PresetsTests(django.test.TestCase):
fixtures = ['Katakana.json', '... | [
"natoniewski.m@gmail.com"
] | natoniewski.m@gmail.com |
fa196682cdbaa35f05d090a579a50930f5be698b | 1af44bdb5f59f5a58ead1094daea44f8d49e015c | /recursion.py | 3d9e66a67a862ee1b0c3a0fe2094d334c86496ce | [] | no_license | KrishnaRekapalli/out-think | 865bf2dba27ac220db084de9c0e5fbe7fc9db2e6 | 94fd32c04e8b4a5755c88dc180a3dc293392c62f | refs/heads/master | 2021-01-10T16:52:30.175292 | 2017-05-29T17:41:20 | 2017-05-29T17:41:20 | 53,183,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | def get_fib(position):
# Write your code here.
if position==0:
return 0
elif position==1:
return 1
else:
fib = [0 for i in range(position+1)]
fib[0] = 0
fib[1] = 1
for j in range(2,position+1):
fib[j] = fib[j-1]+fib[j-2]
r... | [
"noreply@github.com"
] | noreply@github.com |
86e58c0836f1d5180acbfb2d7d40c1b45183e6e5 | e3f92d9157c5af78aa2ea0a4ea05027a04014b4c | /sampler.py | 18b33f76121e6094887932758f31531682ed5ca8 | [] | no_license | gdesjardins/smlpt | 10c7900ef62f02ca5fcb23313a7ace3f1bf9656c | facf90d522d056f150dfc8874ebf16e0a299fc5c | refs/heads/master | 2021-01-17T11:58:50.311901 | 2014-01-22T22:37:08 | 2014-01-22T22:37:08 | 16,154,636 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | import theano
import theano.tensor as T
import numpy
class BlockGibbsSampler(object):
def __init__(self, block_updates, n_steps=1):
"""
:param block_updates: dictionary whose keys are conditionally independent (theano
shared) variables, and whose values are the update expression to use for... | [
"guillaume.desjardins@gmail.com"
] | guillaume.desjardins@gmail.com |
7b3e108a66ca87302ccf56e8cdf18d7fb50ce119 | 472f15abd5b889e96e554272e371208c63d044d2 | /blog/urls.py | 2556a4365076550a279151aab7999c127012f975 | [] | no_license | BjoernBerlin/my-first-blog | 499cafdc3c06d998fbbb5c3ad6d72033a1941cd6 | 5cae465941e1764041ed7c0125bccea2037b3725 | refs/heads/master | 2016-09-01T06:06:38.448887 | 2015-10-10T11:22:09 | 2015-10-10T11:22:09 | 43,352,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | from django.conf.urls import url
from .import views
urlpatterns = [
url(r'^$', views.post_list, name='post_list'),
url(r'^post/(?P<pk>[0-9]+)/$', views.post_detail, name='post_detail'),
url(r'^post/new/$', views.post_new, name='post_new'),
url(r'^post/(?P<pk>[0-9]+)/edit/$', views.post_edit, name='post... | [
"bjoern@lengers.de"
] | bjoern@lengers.de |
aa0d2e6554684c54501f6f150d32cf14d1cc827e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/40/usersdata/136/21959/submittedfiles/funcoes.py | efca9f8ab430ae8fca7e83512158b118f168e4d3 | [] | 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 | 1,338 | py | #ARQUIVO COM SUAS FUNCOES
from __future__ import division
def calcula_valor_absoluto(x):
if x < 0:
x = x*(-1)
return x
def calcula_pi(m):
expr = 0
i = 1
x = 2
while i<=m:
if 1<=m<=2000: #para m maior ou igual a 1 e menor ou igual a 2000
if i%2==0: #se i for par
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
eb8ac1065478d710684981c40c7244e68a8d4b27 | 8469dff9fcfae4ea79af33bf5663c0870e4cea77 | /socket/socket_local/sock_client.py | ab90946c8d20c1a30009df68c49091b2016f1228 | [] | no_license | mrliuminlong/note | 130de6f038fe6c7a7d6991beab4bf965bee8424f | f9b34e79b4d1a467e362a65350422c7fc870d205 | refs/heads/master | 2020-04-19T16:18:01.736696 | 2019-02-13T10:39:39 | 2019-02-13T10:39:39 | 168,300,257 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | #本地套接字
from socket import *
sockfd = socket(AF_UNIX, SOCK_STREAM)
#两端需要使用相同的套接字文件
sockfd.connect("./sock")
while True:
msg = input(">>")
if not msg:
break
sockfd.send(msg.encode())
sockfd.close()
# os.remove(file)删除一个文件
# os os.path.exists()判断一个文件是否存在 | [
"liuminlong2010@sina.cn"
] | liuminlong2010@sina.cn |
e2b7d9b4825d95f7b92c5d81dd50fc3bdbd93371 | 13feec69e423695e650d018a1ceca1f6fa83d275 | /training/config.py | dae9c6a0f262c66987ac2e7df5872e677b787141 | [
"Apache-2.0"
] | permissive | OpenImageDenoise/oidn | 4da631f5d9ce32ee632538aa5819bba650a08995 | 5579cd99edfa0839f87ec6960d16dcafcfe0eb31 | refs/heads/master | 2023-09-04T19:03:14.242623 | 2023-06-24T12:06:59 | 2023-06-24T12:06:59 | 168,025,831 | 1,491 | 157 | Apache-2.0 | 2023-07-14T09:19:50 | 2019-01-28T19:48:52 | C++ | UTF-8 | Python | false | false | 10,880 | py | ## Copyright 2018 Intel Corporation
## SPDX-License-Identifier: Apache-2.0
import os
import sys
import argparse
import time
import torch
from util import *
# Returns the main feature from a list of features
def get_main_feature(features):
if len(features) > 1:
features = list(set(features) & {'hdr', 'ldr', 'sh... | [
"attila.t.afra@intel.com"
] | attila.t.afra@intel.com |
1def8bfa91528ad23d33f5f84710747a8dc3cf57 | c0f86b926fc82baa633862896096c149dd9913cf | /Python/Numpy/Mean-Var-and-Std/Python2/solution.py | 74b8d96a55af697e4421abd696b485c3a4ebf3f7 | [] | no_license | qxzsilver1/HackerRank | 8df74dd0cd4a9dedd778cdecea395f4234eda767 | bcb1b74711a625d8ad329a3f9fdd9f49b1bebc54 | refs/heads/master | 2021-09-09T15:45:35.681284 | 2021-09-07T00:11:16 | 2021-09-07T00:11:16 | 75,671,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | import numpy
n, m = map(int, raw_input().split())
a = numpy.array([raw_input().split() for _ in xrange(n)], int)
print numpy.mean(a, axis=1)
print numpy.var(a, axis=0)
print numpy.std(a, None)
| [
"noreply@github.com"
] | noreply@github.com |
0e3aebd5a6b8e7490e4f7f478497e0a2e46b2f3d | 61f9553eedc2ec936ea87f06da5b986091e3b8ff | /workspace/buildout-cache/eggs/plone.app.upgrade-1.3.4-py2.7.egg/plone/app/upgrade/v40/tests.py | 5d20ec6119c77470822fbbc82a2aec777d5bd649 | [] | no_license | gruhter/gso | 47880b055455cc99d63eec72498048c857e7831b | c0eb949f8a06aab6b97329d51a6d046e2fc0a653 | refs/heads/master | 2016-09-01T18:28:05.589620 | 2015-05-14T19:38:18 | 2015-05-14T19:38:18 | 35,579,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,186 | py | import time
from zope.component import getSiteManager, queryUtility
from zope.ramcache.interfaces.ram import IRAMCache
from Products.CMFCore.ActionInformation import Action
from Products.CMFCore.Expression import Expression
from Products.CMFCore.utils import getToolByName
from Products.MailHost.interfaces import IMai... | [
"gso@abv.bg"
] | gso@abv.bg |
f4c6ce59efd1e1f03e2d9705d803ef33a713b166 | e1b0308dc4ba9e412d12e945c31f7f46f524daa4 | /project/image64/models.py | 947999279a351494ff5d2ca946b6ea023600b019 | [] | no_license | loressl/djangorestframework_image_base64 | 8d05d11af8c5802afe287be433714012dfa174e9 | a9078664cc5a3fe5044b65c00497f05fec811ab7 | refs/heads/master | 2022-11-17T16:57:33.727584 | 2020-07-13T22:51:00 | 2020-07-13T22:51:00 | 279,215,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from django.db import models
# Create your models here.
class Image_Base64(models.Model):
image= models.TextField()
def __str__(self):
return self.image
| [
"loryssl@hotmail.com"
] | loryssl@hotmail.com |
54905961f5da67d188acd3d289b59b48346852ab | ebac75f37d7afb53d63d82e173a1f9708e477961 | /rango/utilities.py | 78b927f273b5da82c6702e60af841a48a253534b | [] | no_license | mscienski/rango | adcef6f232aded43be3de0ea505666533ec92d53 | cdc8167f972ea0eb57169921f0159292c904ac19 | refs/heads/master | 2020-06-02T04:06:55.064207 | 2020-03-03T18:55:13 | 2020-03-03T18:55:13 | 21,962,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | __author__ = 'idfl'
def urlencoding(param):
param = param.__str__()
if '_' in param:
return param.replace('_', ' ')
elif ' ' in param:
return param.replace(' ', '_')
else:
return param | [
"michal.scienski@idfl.com"
] | michal.scienski@idfl.com |
e859ec2e54f53f7b9c6871255c5541097f1f8cc2 | 3f23eec5418587e6608af6b1b57a33e88046e750 | /7-gce/config.py | 6228544da2063b36407607663af6c53105b65d50 | [] | no_license | OlexiyVovnyuk/bookshelf | 5830327acb456cbf1947863936520b834aa611db | e53916ae45c9ea7e871a79812fcf5466d25dce9d | refs/heads/main | 2023-04-03T16:55:08.283035 | 2021-04-05T07:37:35 | 2021-04-05T07:37:35 | 354,753,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,494 | py | # Copyright 2015 Google Inc.
#
# 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, ... | [
"noreply@github.com"
] | noreply@github.com |
ac25d0db95dee1117ae6fe4b899083d273595bed | df41dbe7691f1b954057b8aa787c988ffcc6692a | /test.py | 94eeb3df1c071bfaf6ec15838838fe0a649e571c | [] | no_license | mago960806/RemoteCheck | 02e55622c1cd2ce1defb70fa64f40c54cd3eff0b | a46d279fa8bca30c29c12d28a445ca5814f76338 | refs/heads/master | 2020-04-01T22:31:00.400213 | 2019-05-09T02:02:10 | 2019-05-09T02:02:10 | 153,712,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | from remotecheck import map_with_multi_thread_output_json
host_list = [
[
'192.168.1.1',
'22',
'root',
'admin123'
],
[
'192.168.1.2',
'10022',
'weblogic',
'admin123'
]
]
result = map_with_multi_thread_output_json(host_list)
print(result)... | [
"mago960806@hotmail.com"
] | mago960806@hotmail.com |
98447ab158842379f6445b580543c5b19f094a29 | e6c65e2e354336a4bea5b6a4ccbccd3682915fe2 | /out-bin/py/google/fhir/models/run_locally.runfiles/com_google_fhir/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/keras/engine/training_arrays.py | 5de18f2e9cb1d7dd00b968bd7ddef3a828ccaf01 | [
"Apache-2.0"
] | permissive | rasalt/fhir-datalab | c30ab773d84983dd04a37e9d0ddec8bf2824b8a4 | 3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de | refs/heads/master | 2021-10-09T05:51:04.593416 | 2018-12-21T18:11:03 | 2018-12-22T05:38:32 | 162,744,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/keras/engine/training_arrays.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
ff42b0afb739c60d4ad201d92376e6272401eeb7 | 03a878e126a4645e2ae0d814f7005a9d7eebf6e4 | /backend/schedules/migrations/0033_auto_20200919_1356.py | 7ff43226fbbe650af5d723a604b2aed508eadf21 | [] | no_license | nickfff-dev/GeneSys | d8a471734fe6afba8a968004a204a20bc1d6fcdc | e4972f735234bbf69e77b3cbfd9279e32558ede7 | refs/heads/master | 2023-04-06T05:53:32.842913 | 2021-04-02T14:08:12 | 2021-04-02T14:08:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | # Generated by Django 3.0.5 on 2020-09-19 05:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('schedules', '0032_clinicschedulepatient_appointment_type'),
]
operations = [
migrations.RemoveField(
model_name='clinicschedulepatient',... | [
"abdulmaula.nacan@gmail.com"
] | abdulmaula.nacan@gmail.com |
aa718ed8354abdea50f56b54e171775a136dd57a | dd116fe1e94191749ab7a9b00be25bfd88641d82 | /cairis/cairis/SearchDialog.py | c128364ca182e31bbb94073ecd249cd1315fc760 | [
"Apache-2.0"
] | permissive | RobinQuetin/CAIRIS-web | fbad99327707ea3b995bdfb4841a83695989e011 | 4a6822db654fecb05a09689c8ba59a4b1255c0fc | HEAD | 2018-12-28T10:53:00.595152 | 2015-06-20T16:53:39 | 2015-06-20T16:53:39 | 33,935,403 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,369 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
333ed64669224b879c5b0bc36d873a73ef3b7b12 | ecb8f796de591ed38a7a176f54182b074a59768d | /recusion_hanoi_four_pillar_tower.py | ed50cfd0cf376662273157fb7073e0c7ab5e1cfc | [] | no_license | maxianren/algorithm_python | 89d0ebc7e475875b97c5b25da2dc7c2118245af8 | 7218348831af059db69aa02637b85b9d9a799b6b | refs/heads/master | 2023-05-25T09:01:36.798743 | 2021-06-03T12:17:45 | 2021-06-03T12:17:45 | 313,368,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | '''
The issue of the Hanoi Tower originated from an ancient Indian legend.
For the original Hanoi Tower game, there are only three pillars available for players to operate.
As a result, the original legend requires more than 1.8*10^19 steps to solve the problem.
The number of required steps can be greatly reduced by a... | [
"maxianren@gmail.com"
] | maxianren@gmail.com |
6eb5cb0c208022350e4de33e4e9a311131f2b321 | 6f8a0685ecba9540ee5aefb44b3b09fb0e68ba14 | /src/repeating_key_XOR.py | ec0f0b481a377301806a7e1ffcef6b2e8017c31f | [] | no_license | Auguste0904/CAESAR | def873cc6c965f1b0f92e7b1a560b4cd82935c6b | 0f58741f40582b59b5923532fa199fc8876b2bbd | refs/heads/master | 2023-03-17T18:58:50.165218 | 2021-03-11T08:54:19 | 2021-03-11T08:54:19 | 346,637,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,653 | py | #!/usr/bin/env python3
##
## EPITECH PROJECT, 2020
## B-SEC-500-PAR-5-1-caesar-lucas.moritel
## File description:
## repeating_key_XOR.py
##
import os
import sys
import codecs
def error_gestion_arg(argv):
if len(argv) != 2:
print("Error: Invalid number of arguments")
exit(84)
if os.path.isfil... | [
"auguste.alexandre@epitech.eu"
] | auguste.alexandre@epitech.eu |
fad45a86132e84bd2b36271cb1a2dfe8fc908e37 | 416bbc7b84b728950b1811ab310afa30ed652ec1 | /cBOW_skipGram.py | d30695371bff6023498d6913ace880a713de21b1 | [] | no_license | datacampmumbai/First-Project | b9b2acb86c2baeff9a7e11a01cf670b7a0254336 | 41772fa8017372b4dd696145eec3137603f2471e | refs/heads/master | 2020-04-05T17:36:05.126030 | 2018-11-14T10:20:18 | 2018-11-14T10:20:18 | 157,068,394 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 28 09:10:42 2018
@author: Sanmoy
"""
import os
import pandas as pd
import gensim
from string import punctuation
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize, sent_tokenize
custom=set(stopwords.words('english')+list(punctuation)+['»... | [
"noreply@github.com"
] | noreply@github.com |
3d320782a9808236efa872d44247c0f6d4dd8806 | 246ee82e5e53770c71374e0bc781ccf7b7341634 | /aula6.py | 520c0bd4489a2827d36e79c69a01f7440b9cf398 | [] | no_license | Felipe-builder/Dio_Introducao_PYTHON | f3e281e391977cc34c15033b3dfc8465971408fd | 530ce4f11b5ce23dc78f6994dc5abc5e104e7644 | refs/heads/master | 2023-07-01T16:46:52.373154 | 2021-08-10T21:23:22 | 2021-08-10T21:23:22 | 394,672,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,646 | py | conjunto = {1, 2, 3, 4, 5}
conjunto2 = {5, 6, 7, 8}
conjunto3 = {1, 2, 3, 4}
conjunto4 = {1, 2, 3, 5}
conjunto_uniao = conjunto.union(conjunto2)
print('União: {}'.format(conjunto_uniao))
conjunto_interseccao = conjunto.intersection(conjunto2)
print('Intersecção: {}'.format(conjunto_interseccao))
conjunto_diferenca1 = c... | [
"felipesvascon@gmail.com"
] | felipesvascon@gmail.com |
acd9a985926faad6a4fcbdf4d441313cd62cd668 | b0741867b842fe177205c2fd714cabd34652ced4 | /crawling/mmtaobao/sexpic.py | dd4edbee55c824bc1e1e6a92158773afc91f5084 | [] | no_license | zdYng/python | 6737ea43b041f57e0d23598cfa2e5e23d5bd11ff | fd074f5700ec9733958e8640eb63af83aac3001f | refs/heads/master | 2021-07-22T13:50:24.745405 | 2020-04-02T02:15:29 | 2020-04-02T02:15:29 | 93,690,795 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | # -*- coding: utf-8 -*-
import requests
import urllib2,re
import os
from mmtaobao.cons import headers
from lxml import etree
from parsel import Selector
import datetime
html =requests.get("http://cl.j4q.pw/htm_data/2/1709/2664044.html")
html.encoding = 'utf-8'
# req = urllib2.Request('http://cl.j4q.pw/htm_data/2/1709... | [
"qianzhongdao@163.com"
] | qianzhongdao@163.com |
4fa3f1d14d7a3874a09c7c5cc9abb92aad5c255c | 2b5f57510315d96de0ab5c374560adaac76a5abf | /Grade-Calculator.py | 72ebdc9b91c7de88322355ebcc3dc32be95bd502 | [] | no_license | zeem5/Grade-calculator | 92ad1e9fb8bd69370b250c60cc388ec7220b1f5a | ab0c955d603d1903e472d5b5b43ec36dacd13c92 | refs/heads/master | 2020-04-08T03:35:53.580214 | 2018-11-24T23:46:14 | 2018-11-24T23:46:14 | 158,982,476 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | x = int (input ("Enter your score"))
if x > 0 and x < 39:
print ("F")
elif x > 39 and x < 44:
print ("E")
elif x > 44 and x < 50:
print ("D")
elif x > 50 and x < 60:
print ("C")
elif x > 60 and x < 70:
print ("B")
elif x > 70 and x < 100:
print ("A")
else:
print ("Please enter ... | [
"noreply@github.com"
] | noreply@github.com |
313596f03b52d8f926d39f82a8d8f88c0c0a19bf | 829d1c828e4e90b151718c4902413700e60db512 | /Day_4.py | cfa06f63b2f8ba1598788baaed64f8084c15565c | [] | no_license | SoadB/100DaysOfCode-Python | 2f8bcd337dc317bc33e8814ea1aeb24f78e4974f | 9482e26825bf1bd5e7520371736896208086b185 | refs/heads/master | 2020-07-11T08:45:11.838852 | 2019-11-26T22:56:03 | 2019-11-26T22:56:03 | 204,493,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py |
import random
# Ex1
x = 5
y = 4.5
z = 2j
print(type(x)), print(type(y)), print(type(z))
print("--------------------------")
# Ex2. int number
long = -72836309174392816438
print(type(long))
print("--------------------------")
# Ex. float number
num = -5.721
print(type(num))
print("--------------------------")
# ... | [
"soadb321@gmail.com"
] | soadb321@gmail.com |
3bb4a436ba047184d62d283d7b2b9e40cae5dd1a | c7d87b146913128fcc12dd4241f69a6b5b346235 | /week6/6_6_BMI.py | 71a33ddf3a4233c33c6832af7a7716835956133c | [] | no_license | PutkisDude/Developing-Python-Applications | cbe9fc169937087721440a378a912383ba7c2930 | 928c22bcb1b05408dc008c605c1c3a4b509a5536 | refs/heads/main | 2023-04-09T03:53:08.312225 | 2021-04-13T09:15:15 | 2021-04-13T09:15:15 | 336,190,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | #Author Lauri Putkonen
#6. Returns the BMI.
def bmi(weight, height):
height = height / 100
bmi = weight / (height * height)
return bmi
weight = float(input("Type your weight(kg) : "))
height = float(input("Type height (cm): "))
print("Your BMI is %.2f" % bmi(weight, height))
#OUTPUT:
# Type your weight(... | [
"putkis@gmail.com"
] | putkis@gmail.com |
cfbdf7c3da7f8b2699eaf24f527932d1c674b6d1 | 4e44c4bbe274b0a8ccca274f29c4140dfad16d5e | /Push2_MIDI_Scripts/decompiled 10.1.2b5 scripts/pushbase/touch_encoder_element.py | f9f76e3eeae43809b8f5db8daf6b10d1825bf8fa | [] | no_license | intergalacticfm/Push2_MIDI_Scripts | b48841e46b7a322f2673259d1b4131d2216f7db6 | a074e2337b2e5d2e5d2128777dd1424f35580ae1 | refs/heads/master | 2021-06-24T15:54:28.660376 | 2020-10-27T11:53:57 | 2020-10-27T11:53:57 | 137,673,221 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,161 | py | # uncompyle6 version 3.0.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.13 (default, Jan 19 2017, 14:48:08)
# [GCC 6.3.0 20170118]
# Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\pushbase\touch_encoder_element.py
# Compiled at: 2018-11-27 11:59:28
fro... | [
"ratsnake.cbs@gmail.com"
] | ratsnake.cbs@gmail.com |
15585c539acb0e4546ebbccb70364de39847516c | e57d7785276053332c633b57f6925c90ad660580 | /sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/operations/_workspace_managed_sql_server_extended_blob_auditing_policies_operations.py | 516ad87a451dfc9680c799edc043f4ea896578f1 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | adriananeci/azure-sdk-for-python | 0d560308497616a563b6afecbb494a88535da4c5 | b2bdfe659210998d6d479e73b133b6c51eb2c009 | refs/heads/main | 2023-08-18T11:12:21.271042 | 2021-09-10T18:48:44 | 2021-09-10T18:48:44 | 405,684,423 | 1 | 0 | MIT | 2021-09-12T15:51:51 | 2021-09-12T15:51:50 | null | UTF-8 | Python | false | false | 17,241 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
e3dd831fccc3a95a952dbdc11ecb63ba2363ac4a | 06cd596e0f49d1e5de09a3de56be504453881413 | /graphm/matrix.py | 251c4584e075f168eb420e2b6fea01820f7b76c4 | [] | no_license | aguytech/graphm | 630b0e8b252d286c91a3c2429f344952a3513b7b | c4f58dabced17be83bb89da2c8bf5eb554a69ea2 | refs/heads/master | 2023-04-11T23:17:09.014633 | 2021-05-11T11:00:31 | 2021-05-11T11:00:31 | 365,999,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,282 | py | '''
Created on Apr 26, 2021
@author: salem Aguemoun
'''
import functools
import graphm.matrixboolean
class Matrix(graphm.matrixboolean.MatrixBoolean):
""" Manage a arithmetic matrix
.. CAUTION:: Instance variables
:var list matrix: matrix with real numbers
:var int dimM: number of rows
:var int dimN: number ... | [
"aguytech@free.fr"
] | aguytech@free.fr |
2c2c8cb78bcf9652ef11f20e9933579b3cc83471 | 40425604bbd709a80e273e02d62b5925d493fdc0 | /servidor/tests/testsServidor.py | bc06fe590e7e5cb264caeb93cb316140b4f45554 | [] | no_license | mafvidal/UdriveTPTaller2 | b93daa9a44b37048f953f640805b7c67e98d59c6 | 1a1bc28fb7bc2e2e58d36263d99d41fc1ea73f27 | HEAD | 2016-09-06T16:43:35.822346 | 2015-11-24T02:41:00 | 2015-11-24T02:41:00 | 42,020,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,573 | py | #! /usr/bin/python
import requests
import unittest
class TestServidor(unittest.TestCase):
def test_01registrarUsuarioCorrectamente(self):
#No le envio los metadatos del usuario, para simplificar el tests
registrarUsuarioJson = {'Clave': 'MiClave','Cuota': 100500}
#Registro el usuario
salida = requests.post... | [
"mafvidal@gmail.com"
] | mafvidal@gmail.com |
ecefc0e5c68e1e71c4d81babea0adbd873cc0749 | b0680a0905161b5b8c8539f5021eb8dfcd33576a | /String Examples/ex14.py | c6ba2641e8aca25a72a144ed773bfe8b4f737999 | [] | no_license | FerruccioSisti/LearnPython3 | 32a78f3b63a985b7a42dcf69ae3ac432ec3dea76 | a4c0d238041836d22e99cf9f2cde80381daa91b9 | refs/heads/master | 2020-05-02T14:23:35.182958 | 2020-01-21T16:14:29 | 2020-01-21T16:14:29 | 178,009,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | #This example is using both argv and input to get information from the user
from sys import argv
#Get the name of the script and the user
script, user_name = argv
prompt = "> "
print (f"Hi {user_name}, I'm the {script} script")
print ("I'd like to ask you a few questions.")
print (f"Do you like me {user_name}?")
like... | [
"ferrucciosisti@gmail.com"
] | ferrucciosisti@gmail.com |
f4627a9f0b0e5a3bc6856616a26598590fe7c8db | f9a96f02fb59ebb320d48ae7d266a1ba1bb2f7cc | /ex31.py | 9267bf4cd0e0abe51b98857e138015a5aaec168e | [] | no_license | virtualet/LPTHW | eb54eca5471c179652b1466e604419601a3a082c | e31b703e835640fc9f04ad99b027bcf6d6c1a746 | refs/heads/master | 2021-01-13T01:53:50.027232 | 2014-10-06T22:03:27 | 2014-10-06T22:03:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | __author__ = 'echoecho'
print "You enter a dark room with two doors. Do you go through door #1 or door #2?"
door = raw_input("> ")
if door == "1":
print "There's a giant bear here eating a cheese cake. What do you do?"
print "1. Take the cake"
print "2. Scream at the bear"
bear = raw_input("> ")
... | [
"echoecho@gmail.com"
] | echoecho@gmail.com |
59019e4e0de44502a63c95bc121cf7f067510cda | 841a4906780c75fe72f0bea68e641bcab1fa19f5 | /2019/07/two.py | 75e4be895e0f2c8fba69cf1f2ce7e6abe32faa95 | [] | no_license | RobertMusser/Avent-of-Code | 87584a37e7d81b252affb2c04bda8abbc9ef9fd3 | 6bcdd866efaa1088b02f2ad50a125a453d41d7f5 | refs/heads/master | 2023-02-06T13:47:50.596782 | 2023-01-26T01:31:34 | 2023-01-26T01:31:34 | 224,293,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,787 | py | import math
import itertools
# Reads file into string, code adapted from ( https://github.com/imhoffman/advent/blob/master/2015/01/one.py )
def file_to_string(file_name):
with open(file_name) as fp:
while True:
line = fp.read()
if not line: # a little bit of error catching
... | [
"robert.musser@questu.ca"
] | robert.musser@questu.ca |
76d07d0af3b66039cf6a45daa29221885fca4724 | a00a9591df0c32f12595ac7c1c07ffbfd1185642 | /punctatools/lib/preprocess.py | 57260029e06ed82f4183b50b1169c5a496ff91b0 | [
"Apache-2.0"
] | permissive | stjude/punctatools | 4bcc100620e45c6e1839035cc2f6227d93f3fe7f | 0630b67fdf2d81772b11b95b140468dca20a35de | refs/heads/main | 2023-04-18T04:33:24.882656 | 2022-12-13T17:05:57 | 2022-12-13T17:05:57 | 377,252,061 | 7 | 8 | NOASSERTION | 2022-12-13T17:05:58 | 2021-06-15T18:00:57 | Jupyter Notebook | UTF-8 | Python | false | false | 3,708 | py | import os
from typing import Union
import intake_io
import numpy as np
import pandas as pd
from am_utils.parallel import run_parallel
from am_utils.utils import walk_dir
from tqdm import tqdm
def compute_histogram(dataset):
"""
Compute intensity histogram for a give image.
Parameters
----------
... | [
"37274810+amedyukhina@users.noreply.github.com"
] | 37274810+amedyukhina@users.noreply.github.com |
b7f64b488967b17bca55e572ba1fa82ce4bb0851 | 5d0a85c793266da7ea77aed0998398cc2eef0e49 | /Sem 4/AI/Assignment2/task2/cube.py | 6188ab2af0536685b9b891182a5df8c38cc9f969 | [] | no_license | GeorgeSfarz35/UBB-Projects | 8757efeeb4f8517602e2f0659050a6e54c47109f | b025958be030fd80c6b571cdd6e26c6a1bbd61b9 | refs/heads/main | 2023-09-03T15:30:08.652869 | 2021-10-15T16:02:08 | 2021-10-15T16:02:08 | 417,543,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,886 | py | import pygame, sys
from pygame.locals import *
from OpenGL.GL import *
from OpenGL.GLU import *
######
import random
verticies = (
(1, -1, -1),
(1, 1, -1),
(-1, 1, -1),
(-1, -1, -1),
(1, -1, 1),
(1, 1, 1),
(-1, -1, 1),
(-1, 1, 1)
)
edges = (
(0,1),
(0,3),
(0,4),
(... | [
"george.sfarz@stud.ubbcluj.ro"
] | george.sfarz@stud.ubbcluj.ro |
cc0c0b02bbebc632dd806ce1cb000e302ef11030 | 1c5444654ab9756378b19b633f89c34703b789f7 | /workspace/dcmfinder.py | e75d9fd564c0d479b40b9e839829e74dcb5f54fc | [
"MIT"
] | permissive | ythackerCS/DCMFinder-Container | 4f0834288becf5500d9072c75e33943e667539a1 | cd37fe8ffb01f067c9b3876f35293c123ccaf644 | refs/heads/main | 2023-08-15T19:59:31.669406 | 2021-10-08T23:08:05 | 2021-10-08T23:08:05 | 415,128,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,228 | py | import sys, os
import re
import subprocess
import csv
from numpy.core.numeric import count_nonzero
import pydicom
from tqdm import tqdm
keepIfTagNotFound = True
def findDicoms(FilterForArray,FilterAgainstArray):
print("RUNNING DCM FINDER")
#This is the input directory (main directory) that is searched for ... | [
"46691555+ythackerCS@users.noreply.github.com"
] | 46691555+ythackerCS@users.noreply.github.com |
97dff6c9bea41dde6e6d416fe20ab4804a53ed50 | 9757f47db825c61fd7180462be97e59909d183fc | /env/bin/python-config | 0eedffec046f906eddb2944d98f3b1f0b97d70c6 | [] | no_license | dignacio0815/translatorrepo | dcf449eadc17bc3d89a111dec3120dfbb1a31cc7 | f1beaf0fe378363e597db153976ccf1d46c79910 | refs/heads/master | 2020-03-25T15:44:18.681461 | 2018-08-10T19:38:56 | 2018-08-10T19:38:56 | 143,899,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,363 | #!/home/ubuntu/workspace/translator_project/env/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if ... | [
"denizeignacio@gmail.com"
] | denizeignacio@gmail.com | |
e3d05428e8745778fea2949c845fbc7da34a2630 | 6fd76f3bec4aa0784be93cfbd0f6fa72a00bbf5c | /accounts/views.py | efaf95511e52581717a16d54a73d3ba008f78bba | [] | no_license | ihor-nahuliak/Python-Django-Website | 70e43ceadac36c745c6a50fc8635e01872c433e2 | af4338325a9b741a7f047738049218d8384d6183 | refs/heads/master | 2020-12-08T03:35:25.046570 | 2019-11-01T12:07:46 | 2019-11-01T12:07:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,566 | py | from django.shortcuts import render, redirect
from django.contrib import messages, auth
from django.contrib.auth.models import User
from contacts.models import Contact
def register(request):
if request.method == 'POST':
# Get form values
first_name = request.POST['first_name']
last_name = ... | [
"salmanmoazam08@gmail.com"
] | salmanmoazam08@gmail.com |
e4c15e1ee609db1dfee0dcf2cb6a825074785e3c | 3e9259daf292e924b0f114b3fa2d4249f103de1a | /AI/DEAD_pyvona_test.py | 411d52ac7fb166aaa6486fd4c8ba8199b7210379 | [] | no_license | rajonali/HorribleAI | bd692479dc11114f525b7232e8b442e14ee27cf0 | 6644c931652802244b231df47c68cf4b2d6b673b | refs/heads/master | 2021-01-25T09:04:08.814758 | 2019-02-01T04:53:08 | 2019-02-01T04:53:08 | 83,951,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | import pyvona
filename = "/home/rajonali/AI/filename.ogg"
v = pyvona.create_voice("something", "something")
v.speak("Hello World")
| [
"noreply@github.com"
] | noreply@github.com |
0588e6013bc4ccd0a97c815853df716c9fa6e040 | c0ea89d58fd6f780a23f10a0b5535b3feada5a1a | /anchore_engine/services/policy_engine/api/models/image_selection_rule.py | e0f9abbea332fcca8e57209b3916beb1d02c3c34 | [
"Apache-2.0"
] | permissive | longfeide2008/anchore-engine | b62acbab8c7ebbf7fa67a2503768c677942220e4 | 622786ec653531f4fb216cb33e11ffe31fe33a29 | refs/heads/master | 2022-11-08T10:02:51.988961 | 2020-06-15T18:00:37 | 2020-06-15T18:00:37 | 274,068,878 | 1 | 0 | Apache-2.0 | 2020-06-22T07:27:39 | 2020-06-22T07:27:38 | null | UTF-8 | Python | false | false | 4,764 | py | # coding: utf-8
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from anchore_engine.services.policy_engine.api.models.base_model_ import Model
from anchore_engine.services.policy_engine.api.models.image_ref import ImageRef # noqa: F401,E501
from anchore_engine.services... | [
"zach@anchore.com"
] | zach@anchore.com |
8ea4f2d22296c8763d073634a3bd564ee230dd68 | 7167c7acbebabc66f3e04959161c720e8091560b | /tour/tests/tour_tests.py | daeba4dec330067ede160de46ba55da76c130ea6 | [
"MIT"
] | permissive | ambitioninc/django-tour | 2a260ae3f6d59218b0cee9a7a9bc8b0a11c3d80f | f0181d71ebd6c66e11dd921ad5e602192fc621cc | refs/heads/develop | 2016-09-05T21:48:39.161270 | 2015-10-05T19:44:58 | 2015-10-05T19:44:58 | 18,072,292 | 26 | 12 | null | 2015-10-05T19:45:15 | 2014-03-24T17:53:55 | Python | UTF-8 | Python | false | false | 10,375 | py | from django.contrib.auth.models import User
from django.test import TestCase
from django_dynamic_fixture import G
from mock import patch
from tour.models import Tour, Step, TourStatus
class BaseTourTest(TestCase):
"""
Provides basic setup for tour tests like creating users
"""
def setUp(self):
... | [
"wes.okes@gmail.com"
] | wes.okes@gmail.com |
03de2449eab530e9938f1967544c20b6d90aa7d6 | 7ac83871db3ac0d2f3403ca574d6c16729b14e51 | /p14.py | a035e1d6971ebe5411b33deef53ec2b3baa6c913 | [] | no_license | hexiaolang/TensorFlow | aff18372c8edbc0102c83e535315e42c9ce0b022 | 82f5c00045e0a0bc49cffbcb4572fbdc4d8ec2b7 | refs/heads/master | 2021-04-26T23:56:12.375649 | 2018-03-06T09:23:38 | 2018-03-06T09:23:38 | 123,882,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,104 | py | # -*- coding:utf-8 -*-
import tensorflow as tf
import numpy as np
def add_layer(inputs, in_size, out_size, n_layer, activation_function=None):
layer_name = 'layer%s' % n_layer
with tf.name_scope(layer_name):
with tf.name_scope('weights'):
Weights = tf.Variable(tf.random_normal([in_size, ou... | [
"helin0905@163.com"
] | helin0905@163.com |
6f319e57426860fd21a49fcc0ff9ad5f63b64e02 | ed9d718007b5bc776f3405ad6bac3a64abdebf0b | /google/cloud/logging_v2/services/metrics_service_v2/transports/grpc.py | 6a7a2c6a61a74aea88c49021160e9d906ee686b5 | [
"Apache-2.0"
] | permissive | renovate-bot/python-logging | 06b020e1aaae238b2693264bbad489567902481b | 28d141d0e8ed4560d2e33f8de0d43b0825a7f33f | refs/heads/master | 2023-08-31T09:01:49.829649 | 2021-08-30T20:37:20 | 2021-08-30T20:37:20 | 238,564,076 | 0 | 0 | Apache-2.0 | 2020-02-05T22:49:14 | 2020-02-05T22:49:13 | null | UTF-8 | Python | false | false | 15,816 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.