blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3b1911ff0bdb6665e42f5d841028643cca5a8f38 | 7cf87ceef67fd8b7c33174ddf3fb289756200e48 | /lists/views.py | 66576dff17a81b7dc415bef96e22d200fc1bc8ce | [] | no_license | codekaizen/tdd-with-python | cb4e98cec2cb1e3e88f92337d607ecd6c2aad55e | ba1b962a086f1801cba94dd190a71bb3c3bbacde | refs/heads/master | 2021-01-24T01:22:17.727821 | 2015-08-07T21:49:22 | 2015-08-07T21:49:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from django.http import HttpResponse
from django.shortcuts import redirect, render
from lists.models import Item
def home_page(request):
if request.method == 'POST':
Item.objects.create(text=request.POST['item_text'])
return redirect('/')
items = Item.objects.all()
return render(request, ... | [
"mesbah.amin@gmail.com"
] | mesbah.amin@gmail.com |
272b439af84b2a99cb3216d93d524eb6ea6978b4 | 103f75613a84afab0a5cdba5e2b844ebdb84612b | /speech2ipa/outputs.py | 327fa1d2ff9d107e1874fb0218e8390b07eb4bac | [] | no_license | n8marti/speech2ipa | 00fb986cad39715438b07e94d0562ba5b575a19c | 0ea45de6bcf9388709a0c140bc63f0092bbe4fd5 | refs/heads/master | 2023-04-13T16:11:03.508893 | 2021-04-26T12:55:20 | 2021-04-26T12:55:20 | 347,347,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,285 | py | """Functions used to generate various outputs from the given WAV file."""
import numpy as np
import matplotlib.ticker as ticker
import wave
from matplotlib import pyplot
from scipy.fft import irfft, rfft, rfftfreq
from speech2ipa import utils
def save_wave_as(np_frames, frame_rate, output_file):
"""Write out th... | [
"nate_marti@sil.org"
] | nate_marti@sil.org |
91ff4557889267cdc86ec60b66665b358bc9d290 | f5a080763fdee42f266a2d391d4f2ad728d7fa1d | /docs/rst2latex-pygments | f5d3cfa0485e574319d21374d79fd37229a1e2bf | [] | no_license | SQLab/CRAX | e4ee124d534a67276be0a4c484db5120971166b9 | 57916623c347dd03f1a0d952accc2130ab053b1e | refs/heads/master | 2020-04-09T02:56:31.425639 | 2015-08-19T16:15:52 | 2015-08-19T16:15:52 | 12,452,558 | 44 | 11 | null | 2014-07-15T02:29:51 | 2013-08-29T05:50:26 | C | UTF-8 | Python | false | false | 2,085 | #!/usr/bin/env python
# Author: David Goodger, the Pygments team, Günter Milde
# Date: $Date: $
# Copyright: This module has been placed in the public domain.
# This is a merge of the docutils_ `rst2latex` front end with an extension
# suggestion taken from the pygments_ documentation.
"""
A front end to docutils, ... | [
"vova.kuznetsov@epfl.ch"
] | vova.kuznetsov@epfl.ch | |
d5a7228eb423cd746537fad129b68f8f1b788af3 | c963b8e79864bbb8b49d1aeca4dee6ea81d14032 | /OutputView/OnePage/OutputViewText.py | 54b442d51f95cd6115aace0b346d681dc9036dc1 | [] | no_license | ShmilyC/search | 8a232742de9a6cbf18fe612bf2cba6ddcdf0c275 | 9bed028fe16c9403278045f00eb7e28bdee1c395 | refs/heads/master | 2021-01-21T23:53:27.029649 | 2017-09-02T08:29:16 | 2017-09-02T08:29:16 | 102,182,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | import tkinter
import OutputView.OnePage.OutputViewBase
class OutputViewText(OutputView.OnePage.OutputViewBase.BaseWindowShow):
def __init__(self):
super().__init__()
self.text = tkinter.Text(self.win,width = 800,height = 700)
self.text.pack()
def adddata(self,data):
self.text.... | [
"shmilybell@hotmail.com"
] | shmilybell@hotmail.com |
c11116d9e8790b12a12d5976fdbb216b0825b54c | 3beb429e5f8816e2215b6b666dc760c0dd5849dd | /datastore/shared/di/exceptions.py | 797fad95376f48ca47db4c4ef37519563ca8d1af | [
"MIT"
] | permissive | OpenSlides/openslides-datastore-service | 329fdf66aebc5001b1e645ff70627dac70a37d26 | c8de45413c3f56c3b53c327e5669950202e38ac9 | refs/heads/main | 2023-09-04T17:01:23.363886 | 2023-08-31T17:34:18 | 2023-08-31T17:34:18 | 231,762,719 | 3 | 12 | MIT | 2023-08-03T12:40:23 | 2020-01-04T12:53:24 | Python | UTF-8 | Python | false | false | 173 | py | class DependencyInjectionError(Exception):
pass
class DependencyNotFound(DependencyInjectionError):
def __init__(self, protocol):
self.protocol = protocol
| [
"finn.stutzenstein@hotmail.de"
] | finn.stutzenstein@hotmail.de |
758ae7878b713d970fe3b7ab18a2b639634f9bab | 78670cd636007d3917cafa66e0cd19ac91bc26c7 | /Python_stack/django/django_intro/form_test/form_test/urls.py | 06383fae192594ca9485cb8ea65deb71e0cf7a61 | [] | no_license | Blackwell805/CodingDojo | 9c06d663815bee26ec4854a55ba82b0cdddbd0f5 | 9069a137e564824d9dd5ccc14b24abbb4a4cebb1 | refs/heads/main | 2023-05-01T22:57:10.408319 | 2021-05-23T19:43:14 | 2021-05-23T19:43:14 | 345,438,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | """form_test 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-bas... | [
"austinbobs@gmail.com"
] | austinbobs@gmail.com |
1d4ebcce0118f05541c3c6d3e01ae58b51dcc55a | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/generated_samples/certificate_object_global_rulestack_delete_maximum_set_gen.py | 1f902b1ba35bfded952bc53f1fceaa215a018896 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 1,697 | 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"
] | openapi-env-test.noreply@github.com |
24683605599a74d701fac1f237e88cce740f5240 | 2c162270be724f2aacf530985d401200f70c3660 | /personal_profolio/settings.py | cdddf9befabafc65f5cc2992f13508ab300c0f9e | [] | no_license | colodaddy/django3-personal-portfolio | 5dadaf3b35c027e43815cf9aef7c6b48d7e067f4 | 4ada03a6e33046e8681b031e2174d8a06a7cc52f | refs/heads/master | 2022-04-27T01:23:59.058324 | 2020-04-29T17:20:54 | 2020-04-29T17:20:54 | 259,992,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,216 | py | """
Django settings for personal_profolio project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
im... | [
"colodaddy@gmail.com"
] | colodaddy@gmail.com |
8bb7c4cc5ced138d96e58cdc82079ed850851be7 | cbd8f38b5ec1ca5aa2a7d5cdd10ad4621ec2dab8 | /conversions/flask/Quotes/flask-qoutes-v1.0-challenge8-with-backend/src/app.py | 367674f263e56842a0e70683d1251ad6d065fd48 | [] | no_license | codingdojo88oliver/training | 712b53e6d154b8fba9ac8d7bc62c53b9d92935ab | d1f2ae75adb04c4227596ae3f6fb1f8fd9e09b39 | refs/heads/master | 2022-12-22T03:27:04.966619 | 2020-01-10T08:47:24 | 2020-01-10T08:47:24 | 220,404,969 | 0 | 0 | null | 2022-12-07T18:12:56 | 2019-11-08T06:51:29 | null | UTF-8 | Python | false | false | 7,243 | py | from flask import Flask, render_template,request, redirect, session, flash
from mysqlconnection import connectToMySQL
app = Flask(__name__)
app.secret_key = 'keep it secret, keep it safe'
@app.route("/")
def index():
return render_template("index.html")
@app.route("/register", methods=["POST"])
def register():
... | [
"jaymarbajala110@gmail.com"
] | jaymarbajala110@gmail.com |
7d4ef385bc8e2f16164e4764430ca8e399270673 | 7847c2967ccd69303e77240a28b7bb081e66a826 | /bullet.py | 3481dacba3c0515af26fd0943499d3b58ddae405 | [] | no_license | Miczu3000/Inwazja | 6c751334adab6ef2d85a6cd710e84516d9058180 | 385ba02bbfc8f53852f6822e423c95c30522ecc3 | refs/heads/main | 2023-04-06T08:01:51.607729 | 2021-04-08T19:06:15 | 2021-04-08T19:06:15 | 349,696,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | import pygame
from pygame.sprite import Sprite
class Bullet(Sprite):
def __init__(self, ai_game):
super().__init__()
self.screen = ai_game.screen
self.settings = ai_game.settings
self.color = self.settings.bullet_color
self.rect = pygame.Rect(0, 0, self.settings.bullet_wi... | [
"d.krakus@gmail.com"
] | d.krakus@gmail.com |
c9f3049c1eef8bf880fda6b0c40fca0c650b1f96 | 1905c38ac140a444c583c64ee263a0a5fcec16a6 | /sem-3/7.JULY/23_loops.py | 46fc43a49c038412491347ccc1bf53ce24fe3231 | [] | no_license | B-Tech-AI-Python/Class-assignments | a5bfe96118e6867d3e2dbe73ce6abf26a7330f1b | 892d9c25b9712bf3bbfd7f29529eca8b47fb8039 | refs/heads/master | 2023-04-29T14:19:43.053931 | 2021-05-20T12:35:53 | 2021-05-20T12:35:53 | 283,107,191 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | # %%
# Average of n natural numbers
import calendar
n = int(input("Enter range: "))
sum = 0
for n in range(n+1):
sum = sum+n
avg = sum/n
print("Average is:", avg)
# %%
# Factorial of a number
n = int(input("Enter a number: "))
fact = 1
if n == 0:
print("The factorial of 0 is 1")
else:
for i in range(1... | [
"ishani@kathuria.net"
] | ishani@kathuria.net |
987439b42c00b0d2b88c3321cf1b9710546aedfc | dd1922e5970fb259fb1c6d1ce523a61c0c0aac94 | /PlotScript.py | 4d114c9f60a6dcd5fef18d570f92ca681904ec68 | [] | no_license | aniliitb10/Graph_plotting | 4d07a9847fbe8af27a4d3f73716752922425a0fb | 54d56b5d20548ed7c12bde4fa6548e15c128862a | refs/heads/master | 2021-01-02T23:36:01.297414 | 2017-08-09T16:36:30 | 2017-08-09T16:36:30 | 99,502,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,287 | py | import matplotlib.pyplot as plt
import numpy as np
import math
margin_x = 0.0
margin_y = 1.0
numOfTicksOnYAxis = 11
numOfTicksOnXAxis = 11
font_size = 20
markers = ['s', 'o', 'p', '*', '8'] # ref:http://matplotlib.org/api/markers_api.html
colors = ['b', 'g', 'r', 'k', 'm'] # ref:http://matplotlib.org/api/colors_api.... | [
"aniliitb10@gmail.com"
] | aniliitb10@gmail.com |
6b3f498770a1dfc3845ef9db19d864e6ef3dbe55 | f98a2875e0cdc84341fe8e37b11336368a257fe7 | /agents/product.py | a86acbd28d5e0c5f8555128eb791223b5eb52c56 | [
"MIT"
] | permissive | anhnguyendepocen/PolicySpace2 | eaa83533b7ad599af677ce69353841e665b447d0 | d9a450e47651885ed103d3217dbedec484456d07 | refs/heads/master | 2023-08-28T04:55:40.834445 | 2021-10-21T18:50:03 | 2021-10-21T18:50:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py |
class Product:
def __init__(self, product_id, quantity, price):
self.product_id = product_id
self.quantity = quantity
self.price = price
def __repr__(self):
return 'Product ID: %d, Quantity: %d, Price: %.1f' % (self.product_id, self.quantity, self.price)
| [
"furtadobb@gmail.com"
] | furtadobb@gmail.com |
9ef5d57d536f5c88f705b1032cc0936e2d4cd565 | f91a7469c9ae7727fe5abdbf54e9abd3f10ee737 | /testShapes.py | 7f69042c3b3ce4c2ce64e65f148f4eff0e411d60 | [] | no_license | dj03vand/Graphics | 5d6ea838d0c0550dce4c774f7bd0c510881b6579 | ad12dbb53d5d1ad64816ebd61eb0b626d8b15461 | refs/heads/master | 2020-04-19T05:31:36.131074 | 2019-01-28T15:54:59 | 2019-01-28T15:54:59 | 167,990,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | from Shapes import *
c1 = Circle(5)
r1 = Rectangle(3,2)
c2 = Circle(3)
c3 = Circle(1)
r2 = Rectangle(1,1)
listShapes = [c1,r1,c2,c3,r2]
for item in listShapes:
print(item.toString())
print("Area: " + str(item.area()))
print("Perimeter: " + str(item.perimeter()))
| [
"dj03vand@siena.edu"
] | dj03vand@siena.edu |
f20ae13300ca5b6b6d5bf9cfb4ff8ce538a2144d | d65b8402277baf563d632f63a0dd097aaabc58c8 | /ecosmart/settings.py | 792cf4d6b6dda6821ad093ff63d08d4bc1fd2aa2 | [] | no_license | AjitJ01/echosmart | 546fcb126eaced53d3ff9e79e6e44d75d3936174 | 4c9abacd1455ceb957d461f3f3ed1e7a9c918095 | refs/heads/master | 2022-12-11T04:52:04.023802 | 2020-09-13T10:14:43 | 2020-09-13T10:14:43 | 292,631,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,759 | py | """
Django settings for ecosmart project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"ajitj@druva.local"
] | ajitj@druva.local |
e06eb333e9351905b9f17d48acd4264dccb24973 | af30344da5c82ce3b5c65b962f0fdc0e6a70ba75 | /pythonIJ/function.py | e0e1d4c8d52486cf82f249d1ca4b417b4af685c0 | [] | no_license | udayabhishek/python | 6490b27db29d55e0705d83fe0b50cc510019a26e | 8e7cac66766b0c547dac2941e4d68f86170c71b3 | refs/heads/master | 2022-11-10T15:15:48.052511 | 2020-06-23T15:04:25 | 2020-06-23T15:04:25 | 272,762,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | def user(name, *info):
print(name,info)
for item in info:
print(item)
user('ram', 1,2,3,4,"hi")
def userInfo(fname, lname, **userInfo):
userInfo['first_name'] = fname
userInfo['last_name'] = lname
return userInfo
userProfile = userInfo('ram', 'shayam', location='ayodhya', field = 'dharma'... | [
"UD341583@wipro.com"
] | UD341583@wipro.com |
934c1811d723d3bdea5bbf35168370e4e8d8215e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03145/s047914434.py | 5d829eaafb0ffcbf83b9454c4e85b5e4fd118c6a | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | a,b,c=map(int,input().split())
aa=min(a,b)
bb=min(c,max(a,b))
print((aa*bb)//2)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
94dc79bd4a390fef2cf961e89133f97b671c6bea | 549f20eca9a7ef50ee68680269cd2b071fde7e9e | /EPQ/EPQ/img_proc_func.py | 0dc24436726dab1c45e53ff1e039224114ce160c | [] | no_license | monkey-sheng/EPQ | 815d500cb2f84fa63f2a811aab179fc3623b270b | 03768cd5254a119756e8ebb6e187177f91b855b7 | refs/heads/master | 2020-04-17T03:06:42.348282 | 2019-04-04T03:01:51 | 2019-04-04T03:01:51 | 166,166,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | from django.http import HttpResponse
from django.shortcuts import render
from PIL import Image
img_dict = {}
def img_proc(request,img,size):
session_key=request.session.session_key
img_dict[session_key]=[] # create a list to store the img for this session
size=int(size)
img=Image.open(img... | [
"noreply@github.com"
] | monkey-sheng.noreply@github.com |
29686d96ab46a59858ee3223ce247073765aac09 | 955920ccccee07f48486a02d94ed6808e17328fd | /parse_wiki.py | 40fe4a1ed85e61b926c80e19bcb6b9911c38575a | [] | no_license | GeorginaWilcox/govhack | 959db14895e0f11d62528afb17d8ca3cb39f98d7 | 8750fb6c6eb7478c3b55c8430d0600610b49ca36 | refs/heads/master | 2016-09-05T09:48:53.639876 | 2013-06-07T07:15:27 | 2013-06-07T07:15:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | #!/usr/bin/python3
import xml.etree.ElementTree as etree
tree = etree.parse('wiki.xml')
root = tree.getroot()
for child in root:
if child.tag == "tr":
country = child[0]
for t in country:
if t.tag == "a":
print(t.text)
| [
"georginawilcox@gmail.com"
] | georginawilcox@gmail.com |
f372b031a486f46d98659827a1702cd2214b8922 | 4b272964c4d47ad1fdefd105f2c76e9c70b34570 | /adoptapetapp/migrations/0006_pet_description.py | cb947402d943488ab2fefe199288f4713b31af42 | [] | no_license | ozgemeva/adoptAPet | 0b9ef314ac82e3bedc15335df724a69f69b9d952 | 58b70c75d78f116fb25367bd6dfacd750540d91f | refs/heads/master | 2021-01-23T03:47:46.030438 | 2017-03-25T00:41:48 | 2017-03-25T00:41:48 | 86,121,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-02 19:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('adoptApetApp', '0005_auto_20170102_1850'),
]
operations = [
migrations.AddF... | [
"ozgemeva@hotmail.com"
] | ozgemeva@hotmail.com |
f88ab3831636a1bcaddfb7640f4a637ef8ed63a0 | ae88172e4ab99bb879851f7c4304330028bf90d9 | /mito/occurence.py | a55830c84dfa22b1150c10c4fb1f1c4566720f2e | [] | no_license | ju-lab/cjy_projects | 1510cc91e86a648df91573bbb392e496b80c9299 | 6f746a9cd66818813661c5c33acc8cba8f67e29e | refs/heads/master | 2020-03-08T03:34:46.678373 | 2018-08-22T01:31:31 | 2018-08-22T01:31:31 | 127,895,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | import pysam
import re
mt = pysam.FastaFile('./rCRS/chrMT.fa')
acccc_pos = []
for i in re.finditer(string=mt.fetch('MT'), pattern=r'ACCCC'):
acccc_pos.append(i.start() + 1)
tcccc_pos = []
for j in re.finditer(string=mt.fetch('MT'), pattern=r'TCCCC'):
tcccc_pos.append(j.start()+1)
# 10x greater vat rate in th... | [
"cjyoon@kaist.ac.kr"
] | cjyoon@kaist.ac.kr |
ff076d62b1e3ee0c2bcdbbb036e2b67089f77584 | bf1220aa8244280a4192647ebb202ba65eaa768c | /schema.py | 1e104b03d2fb224c2a525d03044bdba24fe1c7b7 | [] | no_license | dbritto-dev/django-graphql-domain-app-template | 2e47324b3e2567084d29e521e7af7bdc6e4a758f | 9a82e2a6680275fd61acd21ad41ba23f42a66f42 | refs/heads/master | 2023-01-04T09:09:20.623800 | 2020-10-30T01:41:58 | 2020-10-30T01:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,706 | py | # Built-in package
# Third-party packages
import graphene as gql
from django.db.transaction import atomic
# Local packages
from . import models, types, filters, crud
class Create{{ camel_case_app_name }}(types.{{ camel_case_app_name }}OutputMutation, gql.Mutation):
class Arguments:
data = types.{{ camel... | [
"ddbn.c2@gmail.com"
] | ddbn.c2@gmail.com |
1e81b86a98a53879c756e4b7882215cd0a801927 | f326241710ec648c51ec1a87d6ccfc86cf96a828 | /smartsheet_share.py | e73e1891965260fa804d8ff75ff16821529dc066 | [] | no_license | wkliu/smartsheet | 7aef8c2140a3af30de92f449959e8c09000b84be | d5f3cd9166915bec7ad528cdb2cf17d0c558f6dd | refs/heads/master | 2020-03-29T13:28:27.504689 | 2019-05-06T10:07:34 | 2019-05-06T10:07:34 | 149,962,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,581 | py | import smartsheet
from myconfig import *
proxies = {'http': 'http://proxy.esl.cisco.com:80/', 'https':'http://proxy.esl.cisco.com:80/'}
#ss = smartsheet.Smartsheet(access_token=access_token, proxies=proxies)
ss = smartsheet.Smartsheet(access_token)
SEs=[davidtai, andrewyang, stanhuang, jimcheng, karlhsieh, vincenthsu, ... | [
"wkliu228@gmail.com"
] | wkliu228@gmail.com |
466a55216de630473204039871d54f7d84b08ea2 | 8e2b6d920d60df64f589299156242d7bbc31106b | /apps/unit_conv_app/migrations/0002_subscriber.py | 601b37d866bdffd3f6d0ca824f9cb453740964b4 | [] | no_license | kurtw29/UnitConv | ba7d6c4ef72ba55ca893f461501192dff9a4751a | 779e94c2fe7e715bd9b920bfcea7fcbd5e2cb9c1 | refs/heads/master | 2020-03-27T00:04:10.826372 | 2018-11-14T15:21:42 | 2018-11-14T15:23:26 | 145,590,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-08-19 23:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('unit_conv_app', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"ckurt37@gmail.com"
] | ckurt37@gmail.com |
423fa1cb328815906bfb72c7365fb8b0e574231d | 373e777a87ce94fee570579e7f4864ff69cccc98 | /posts/views.py | 810988d746aca8007822abdb2b61cfe21af63908 | [] | no_license | Vdkrt/technotrack-web1-spring-2017 | 9b0858c6ba6f4844fd889bddd8ab22c924cfff5d | 3ad5b4c2604726a5cb1caa5f44b42414cf314dee | refs/heads/master | 2021-01-17T05:56:59.178137 | 2017-04-03T20:59:55 | 2017-04-03T20:59:55 | 83,698,889 | 0 | 0 | null | 2017-03-02T16:21:10 | 2017-03-02T16:21:10 | null | UTF-8 | Python | false | false | 5,494 | py | # -*- coding: utf-8 -*-
from django.contrib.auth import get_user_model
from django.http import request
from django.shortcuts import render, get_object_or_404, redirect
from django.views.generic import ListView, DetailView, UpdateView, CreateView
from comments.models import Comment
from .models import Blog, Post
from ... | [
"dnzl@bk.ru"
] | dnzl@bk.ru |
d8b55cb94184067e2e3d57f95ab20936d5d86e5e | c200119f4180ddc17dcaeb87d8bad6399442a529 | /tests/src/miniblog/settings.py | 4a49139d88b610ef74757746972a748e912302d5 | [] | no_license | marekmalek/django-observer | 3f4ae6ba1482f649d4495a95b95d4ec74f8222f2 | 3b9e4aeaaa9cd4cc4af7a245a185fb18e89e181a | refs/heads/master | 2021-01-18T06:59:34.588359 | 2012-08-31T16:31:25 | 2012-08-31T16:31:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,009 | py | # Django settings for weblog project.
import os
import sys
ROOT=os.path.join(os.path.dirname(__file__), '../../')
app_path=os.path.realpath(os.path.join(ROOT, '../'))
if app_path not in sys.path:
sys.path.insert(0, app_path)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.co... | [
"lambdalisue@hashnote.net"
] | lambdalisue@hashnote.net |
24c57c5a3592b7294a4d9838d10ad1930ad82c8b | 717cc419ab568e65ad15a28deb8238551f0291f8 | /sistemaEmpresa.py | d3ad84b96b48a78e83fc3c068ea25bab2717c5b8 | [] | no_license | danielfitipaldi/ExercicioHackaton | 4393b7211c3ab7213cef94f6085d83ee7214010b | 1198764f3753e65f0bab78c1f4d9ced59342f22f | refs/heads/master | 2022-11-26T07:12:35.651092 | 2020-07-15T04:33:07 | 2020-07-15T04:33:07 | 279,762,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,949 | py | # Bem vindo
print('-' * 30)
print('BEM VINDO AO SISTEMA DA SUA EMPRESA'.center(30))
print('-' * 30)
# Menu
funcionario = {}
quadroDeFucionarios = []
faturamentoEmpresa = metaEmpresa = partLucro = opcao = 0
while True:
try:
opcao = int(input('[ 1 ] Cadastrar Funcionário \n'
'[ 2 ]... | [
"danielfitipaldi@iMac-de-Daniel.local"
] | danielfitipaldi@iMac-de-Daniel.local |
fd1a4d1c83ffe83564c83dbfa41797456e4e9e88 | 0425e745abf1a87624b55f1636aa3961806babcd | /phonebook/migrations/0001_initial.py | b78a10dd685699543e9bacea40c8be0e7b9ad20a | [
"MIT"
] | permissive | caiomartins1/phonebook | a802aee8ea74c9ff570466da32d86de7a653f5c7 | 2b694ed65964bdc3ee4c883c1a0f29a9cbf3a3e3 | refs/heads/main | 2023-01-01T11:14:39.857557 | 2020-10-19T18:09:28 | 2020-10-19T18:09:28 | 304,315,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | # Generated by Django 3.1.2 on 2020-10-19 02:27
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"dev.caiomartins@gmail.com"
] | dev.caiomartins@gmail.com |
cb0fbdb98f51edb323e77ac971a051e4e5dbf795 | 3cda2dc11e1b7b96641f61a77b3afde4b93ac43f | /test/training_service/config/metrics_test/trial.py | 43e3ac1b4d66f7bd96f307c7314cbfb226ab1cdc | [
"MIT"
] | permissive | Eurus-Holmes/nni | 6da51c352e721f0241c7fd26fa70a8d7c99ef537 | b84d25bec15ece54bf1703b1acb15d9f8919f656 | refs/heads/master | 2023-08-23T10:45:54.879054 | 2023-08-07T02:39:54 | 2023-08-07T02:39:54 | 163,079,164 | 3 | 2 | MIT | 2023-08-07T12:35:54 | 2018-12-25T12:04:16 | Python | UTF-8 | Python | false | false | 818 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import time
import json
import argparse
import nni
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument("--dict_metrics", action='store_true')
args = parser.parse_args()
if args.dict_metrics:
... | [
"noreply@github.com"
] | Eurus-Holmes.noreply@github.com |
f79e68250b1e1aee7f9af399d1bde8aad4a258fc | 6606a424c898116efdb7d2b940285559fd452eb3 | /morvanzhou/Q_learning/sarsa/sarsa_maze/maze_env.py | 387fafc12a91ced1980e90cb5272cd39068ef6d8 | [] | no_license | rain150403/RL_learning | 9d8e1629d5af2ad353f3deabd8fb7f43d82e8d77 | 9e0955f133887ef1ee39b17da06b7013cdad47d5 | refs/heads/master | 2021-09-12T14:19:59.171816 | 2018-04-17T14:23:23 | 2018-04-17T14:23:23 | 107,094,213 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,951 | py | """
Reinforcement learning maze example.
Red rectangle: explorer.
Black rectangles: hells [reward = -1].
Yellow bin circle: paradise [reward = +1].
All other states: ground [reward = 0].
This script is the environment part of this example.
The RL is in RL_brain.py.
View more on m... | [
"noreply@github.com"
] | rain150403.noreply@github.com |
bd82b1c953e59a07098e957afa6fad1cf2bb16b3 | 5066bcb9b98b67be4297d77184a34520c5853f18 | /manage.py | a6f43a28825ef9a8c7b1d3da15876dadfad8f5e7 | [] | no_license | ndongamadu/mvaccination | 281fb2b6d8421588ba6136835203247d764a2fbe | f8fc5876508b84d25f914dc6d68ca9923f85e229 | refs/heads/master | 2020-03-24T18:24:46.288567 | 2018-09-13T11:49:42 | 2018-09-13T11:49:42 | 142,891,024 | 0 | 0 | null | 2018-09-13T11:49:43 | 2018-07-30T15:00:20 | Python | UTF-8 | Python | false | false | 544 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mvaccination.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django.... | [
"ndongamadou@gmail.com"
] | ndongamadou@gmail.com |
ff73736dc6dfa421b3b2cd1e78d46948bf4ca591 | e3afba20e6f175fc91f1ee4c02ae7f18a45662ac | /move.py | a7cddc1e0878adbfb828e776ceb8614ed6223541 | [] | no_license | keselasela/find_rect | 18f588999e8e6c726b6eeead88c19d8c75d75a06 | 05e318b0342ebb17ed327c7c21bda911ab64160f | refs/heads/master | 2020-06-04T20:40:20.004680 | 2019-06-16T12:09:51 | 2019-06-16T12:09:51 | 192,184,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,319 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import pigpio
import time
import cv2
import numpy as np
import threading
pi = pigpio.pi()
X_MAX = 1700 #→
X_MIN = 900 #←
X_HOME = 1300
Y_MAX = 1500#下
Y_MIN = 800#上
Y_HOME = 900
#capture = cv2.VideoCapture(0)
#capture.set(3, 360)
#capture.set(4, 240)
#width = capture.get(... | [
"1230zakiyama@gmail.com"
] | 1230zakiyama@gmail.com |
78d183326b0a879a088d597454e4f919a84c51c4 | 8505b6fb190bee37ad38df73fed554b0f8d7b89c | /coaudicle-server.py | 4920b9e39e54166c113e9c1e7ef68f40056a07ec | [] | no_license | spencersalazar/coAudicle-server | e4fac50dc137f72c758a514389ba1fdcfc61febd | 107d7ca52c41c874ec08bfb6739087288bfa4f38 | refs/heads/master | 2020-05-15T09:08:57.821154 | 2014-09-05T16:48:56 | 2014-09-05T16:48:56 | 22,117,075 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,055 | py |
from twisted.web import server, resource
from twisted.internet import reactor, defer, task
from twisted.python import log
import types, uuid, json, cgi
from datetime import datetime, timedelta
import ago # pip install ago
DEFERRED_TIMEOUT=30.0 # seconds
class Site(server.Site):
def getResourceFor(self, reques... | [
"spencer.salazar@gmail.com"
] | spencer.salazar@gmail.com |
b0504f6fbbe712366d92f283d5cbb43334f0bf11 | e4cbd82358ba5e8b4d4bacefa054e4ecda2d1517 | /config/settings_base.py | 622ff272b323de19ec535a9f28658818391172f6 | [] | no_license | mziegler/UssdDjangoDemo | a69ca95010443e5925fdf181904da05e9938bcc3 | 9b29eb562a7832aa6a033daf1bee8d99746ee93b | refs/heads/master | 2020-07-21T18:16:40.325034 | 2017-07-01T00:42:40 | 2017-07-01T00:42:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,480 | py | """
Django settings for djangoUSSD project.
Generated by 'django-admin startproject' using Django 1.9.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os... | [
"t.perrier@gmail.com"
] | t.perrier@gmail.com |
2d507377a10d3350cc729739daf540151c9c4dc8 | 2e4169290bf115e62cebe1a51ce1dc1528bc2cd2 | /trunk/vlist/vlist.py | 703c11e359dcaf87b186f2001be0c4794c72d3e8 | [] | no_license | BGCX067/ezwidgets-svn-to-git | 6c96bb408369316d395f6c8836b8e7be063ae0d8 | 2864f45bc3e9d87b940b34d0fa6ce64e712c2df8 | refs/heads/master | 2021-01-13T09:49:25.511902 | 2015-12-28T14:19:53 | 2015-12-28T14:19:53 | 48,833,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,324 | py | #----------------------------------------------------------------------------
# Name: vlist.py
# Purpose: virtual list with mix-in ColumnSorter class
#
# Author: Egor Zindy
#
# Created: 26-June-2005
# Licence: public domain
#---------------------------------------------------------------... | [
"you@example.com"
] | you@example.com |
b8757c2faa9762ba75335651117bff56af634c5e | ccdf76ab5339a7447ebedb4852fc2c101d194694 | /Docs/source/conf.py | ac209ed211c04bf844287ac157e576938ab26296 | [
"Apache-2.0"
] | permissive | haliembabiker/syndrome_decoding_estimator | 06da1aa9351f4a031951beccadb99b550b260772 | c7d9aaeed83708dbf5db3c45a007c0010a1225c8 | refs/heads/master | 2023-08-14T06:44:34.534062 | 2021-09-20T12:10:06 | 2021-09-20T12:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,972 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"andre.esser@tii.ae"
] | andre.esser@tii.ae |
bfeaaddab99e19c986bbf1ccfbc6810fe93b3b11 | f36d296f90ad941d55b7f4345564a2c6de96fcb3 | /src/ShapeOpMeshIndexer.py | a78b7a329e5b6e5c4579df2e4657a710452e65a2 | [] | no_license | AndersDeleuran/ShapeOpGHPython | d40a278b60fbf01b84070e3ab32e86410c222539 | c4f6b747983dfd9acbd510e1c8fff231c86e8322 | refs/heads/master | 2021-06-04T08:08:21.549078 | 2020-05-21T07:58:32 | 2020-05-21T07:58:32 | 24,236,891 | 44 | 8 | null | null | null | null | UTF-8 | Python | false | false | 6,849 | py | """
Extract vertex indices from a mesh using various patterns.
-
Authors: Anders Holden Deleuran (CITA/KADK), Mario Deuss (LGG/EPFL)
Github: github.com/AndersDeleuran/ShapeOpGHPython
Updated: 150401
Args:
Pattern:
The vertex indices pattern to extract from the mesh:
-
... | [
"andersdeleuran@outlook.com"
] | andersdeleuran@outlook.com |
5c9f18e7a55cc50e630488c58245d016ff55cd15 | 1838a2f3660c654147dcf55507472b6746506302 | /examples/zeus_malware.py | 5ae4a0f78d0df2d29ed21d7e5dc434f299767f48 | [] | no_license | EdwardOwusuAdjei/AIengine-xtra | 5eaa1f44f0b318462c07913b49bcec68bff35638 | d4cc87068a1683786c6eb33faf84f11a6d46030e | refs/heads/master | 2021-01-10T17:10:34.989045 | 2016-02-17T19:38:59 | 2016-02-17T19:38:59 | 51,943,608 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | #!/usr/bin/env python
""" Example for analyse URIs and Host for detect Zeus Malware """
__author__ = "Luis Campo Giralte"
__copyright__ = "Copyright (C) 2013-2016 by Luis Campo Giralte"
__revision__ = "$Id$"
__version__ = "0.1"
import sys
import os
import base64
import glob
sys.path.append("../src/")
import pyaiengin... | [
"luis@localhost.localdomain"
] | luis@localhost.localdomain |
2af8ec4894b212eef1676f0c2641ff8cfdc7bb64 | bb23a193f3da6695ba2e5946cd0ceb4073426f4e | /pixel/pixel.py | e4620db75353f69e482bd27a87869d2a58582a3a | [] | no_license | PixelTool/pixelpy | a1d25fb7538b6f67890e4f8887ffa0900e2c7bbf | c3c37a3b7d9422ddf26d6f8f1d3a48fc9d045857 | refs/heads/master | 2021-01-10T15:57:13.589070 | 2015-09-02T11:56:45 | 2015-09-02T11:56:45 | 36,861,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,020 | py | # coding=utf-8
import logging
from .filters import Filter
logging.basicConfig(
format="%(levelname) -10s %(asctime)s %(module)s:%(lineno)s %(funcName)s %(message)s",
level=logging.CRITICAL
)
def parse(selector, rule, ps=None):
if not rule:
return None
rst = {}
r_name = rule.get('name')
... | [
"docdedi@gmail.com"
] | docdedi@gmail.com |
5f7b5a15c9442a8a6d69e574837dd9b9db1641db | 329bf886f90cdcc5b083d2ab47c529f5df95767b | /survey/views.py | 7a2375bebe6f6c999d7383dd539267dda614e1e5 | [] | no_license | leliel12/otree_saral | f4a16073479836df36789a58a311a8dc0e2fd7f5 | d4c91e1b9451460a656f270fe9f540bf811a9a32 | refs/heads/master | 2021-01-10T08:39:39.278589 | 2015-10-26T00:53:29 | 2015-10-26T00:53:29 | 43,258,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | # -*- coding: utf-8 -*-
from __future__ import division
from . import models
from ._builtin import Page, WaitPage
from otree.common import Currency as c, currency_range
from .models import Constants
class Question(Page):
form_model = models.Player
form_fields = ["name", "age", "email", "gender", "... | [
"jbc.develop@gmail.com"
] | jbc.develop@gmail.com |
8f3a6baafb25b129e6233a39d872b7165f14a823 | 9e2df3fb58cf5eac085cc88432a89b044c1bca33 | /blog/migrations/0003_post_tags.py | 9249b54f14da287648ba0f5125392cdf4aabe66d | [
"MIT"
] | permissive | jedrek1993/django_blog | b78eea253eddf9ad5ca5aebdb9232b1b311206ea | 9141b33be862cb4c59e9b0459852310bbf6d5f36 | refs/heads/master | 2020-08-02T11:05:54.328401 | 2019-11-14T09:00:18 | 2019-11-14T09:00:18 | 211,329,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | # Generated by Django 2.2.5 on 2019-09-29 10:14
from django.db import migrations
import taggit.managers
class Migration(migrations.Migration):
dependencies = [
('taggit', '0003_taggeditem_add_unique_index'),
('blog', '0002_comment'),
]
operations = [
migrations.AddField(
... | [
"jedrek1993@gmail.com"
] | jedrek1993@gmail.com |
584b006defbe2d0cd59210e2e3608c5a4121c9b2 | ce02d4b31a041ea8e92a9542e2e315cdc69e843f | /comments/models.py | da10c5e8954c8d9caed765062b0e19bd18534fa7 | [] | no_license | qwiukj/blog | 63ab37cde8e365624311deb8f36da5b8b1e4dbb6 | 93950c18777cb17330e677e5e4c0fc3680787ebf | refs/heads/master | 2021-04-05T23:39:41.551209 | 2018-03-10T07:50:23 | 2018-03-10T07:50:23 | 124,496,337 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | from django.db import models
from django.utils.six import python_2_unicode_compatible
# python_2_unicode_compatible 装饰器用于兼容 Python2
@python_2_unicode_compatible
class Comment(models.Model):
name = models.CharField(max_length=100)
email = models.EmailField(max_length=255)
url = models.URLField(blank=True)
... | [
"1454124891@qq.com"
] | 1454124891@qq.com |
cddc5a4cc036862742efa3f7d3499f4c6a1f3fac | 6c60b64944447c0578b6ab11fb33078d61c54df2 | /ErrorPlot.py | 6b1961b3448aba2c839eaaf2d286617497f86716 | [] | no_license | BDEvan5/Motion-Capture-System | 3add73f9cf9e50469a6aa9a5e7facac9fbe02c44 | 8041911fbf2dfa34afee7d77dbd775e3f55f333e | refs/heads/master | 2022-12-13T17:51:55.965391 | 2020-09-10T17:01:00 | 2020-09-10T17:01:00 | 294,402,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,315 | py |
from matplotlib import pyplot as plt
import scipy.io as sio
import numpy as np
class ErrorPlot:
def __init__(self, session=1, stream_nums=[1, 2, 3], indep=[1, 2, 3]):
self.session = session
self.stream = stream_nums
self.ses_length = len(self.stream)
self.analysis_list ... | [
"benjaminevans316@gmail.com"
] | benjaminevans316@gmail.com |
a9a761d195dc8f846420561f8a25a3db6b48ed86 | 2339f3e554c2bff0143ed44d5172a071687a3a3d | /docset/predicate.py | 9cbbd5ee952ace63ff8e3f38790d696337a9d5d5 | [
"MIT"
] | permissive | vhbit/rust-docset | 9a04248b348bcb9a3135e233d3e7545ae688b0e5 | 58b416e949a9c02e2118bcc0ce0260b864f61b58 | refs/heads/master | 2021-01-15T15:25:55.059535 | 2016-08-22T11:51:18 | 2016-08-22T11:51:18 | 20,811,120 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | import logging as log
import re
import os
def predicate_fn(pair):
key, value = pair
if key == "matches":
r = re.compile(value)
return lambda x: (r.search(x) != None)
elif key == "startswith":
return lambda x: x.startswith(value)
elif key == "dirname":
return lambda x: (... | [
"valerii.hiora@gmail.com"
] | valerii.hiora@gmail.com |
063b792d94acf75bce2c6fe1ed6610d4ffbaf195 | a3628ec03d75b01f8a44ff3d9d14883b200c7925 | /190104_crawling_auction_save_into_DB.py | 5999f6b92c5e48af7caccaacf018e721ab6ef8dd | [] | no_license | SeokHyeon-Hwang/with_python | a36315c479976a049c3ac2ee60cee45ea828663e | 9f47a4cdc57a9bd0c4b145171f8881264614119d | refs/heads/master | 2020-03-26T04:04:22.002415 | 2019-06-19T11:16:40 | 2019-06-19T11:16:40 | 144,484,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,037 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 6 12:18:56 2018
@author: ktm
"""
#%%
# library 불러오기
from bs4 import BeautifulSoup
import requests as rq
import lxml
#%%
url = "http://browse.auction.co.kr/search?keyword={}&itemno=&nickname=&frm=hometab&dom=auction&isSuggestion=No&retry=&Fwk={}&acode=... | [
"noreply@github.com"
] | SeokHyeon-Hwang.noreply@github.com |
a315342b69afb0c56f94ac2d281879dc9989b81e | e350435f946b069a6d73236f3d35622bfe78a489 | /mlp.py | efc81d747db18e44035f046e6d7532ef91594c67 | [] | no_license | jonathanalmd/mlpplanner | d9d7866c8d3e322477089b21467da09c072e6755 | d758e22e873bb5bccbcc456fadc5a8e0d7bf8f90 | refs/heads/master | 2021-03-19T18:53:32.451505 | 2018-03-02T01:25:58 | 2018-03-02T01:25:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,862 | py | import sys
import plex
import multipparser
import mlpplanner
import re
import time
def parse(pinput):
planning = multipparser.mlpParser()
if len(pinput) > 1:
run_parser = True
in_type = pinput[0].split(".")
if in_type[-1] not in ["pddl","PDDL"]:
print("Invalid input for... | [
"jalmeida@polaris.local"
] | jalmeida@polaris.local |
953f12c8e1f2fbede5df6eff0a9e8c77a8f891b3 | b11d5c511cfdcd4e7aaed53cc290e454876ae42f | /deploy/appDeploy.py | 7d2e354a6a61df93221ca550144eea78bd3b287f | [] | no_license | theITHollow/hollowapp | c2fde90ef2c0c95c4f25eacee9574c220d3de464 | b943c8e8dc2d0d0e7bf2fbf06729a59bc8265fe4 | refs/heads/master | 2022-12-17T05:32:07.740055 | 2018-03-01T21:43:29 | 2018-03-01T21:43:29 | 117,169,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,761 | py | #!/usr/bin/python
import boto3
import time
import json
import sys, os, subprocess
profile = 'sandbox'
session = boto3.Session(profile_name=profile)
client = session.client('cloudformation')
ec2client = session.client('ec2')
rdsclient = session.client('rds')
#Read the Variables File Output by the InfraDeploy Stage
js... | [
"noreply@github.com"
] | theITHollow.noreply@github.com |
a580d64f8cdaba61f0e8bd0451ba0ed2c3264e8c | 96db8aa8991b239578cd949069a35c80771054b6 | /Generation/LHE-signal/patchMEInt.py | b13cb0c0ac4b6bcf897536ad8116cdf9c4ea159b | [] | no_license | andrey-popov/pheno-htt | 37435675a82cea6da9b405339a52ec7444dd30f7 | e6ef12cec5606cbf3e5c8a1224d4170d2ccdbf3b | refs/heads/master | 2021-05-12T00:33:27.694980 | 2019-04-25T12:53:01 | 2019-04-25T12:53:01 | 117,536,495 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,992 | py | #!/usr/bin/env python
"""Patches computation of squared ME to keep interference terms only.
This script patches Fortran code generated for each subprocess. When
summing over helicities, it computes the squared matrix element as is,
then inverts the sign of the given coupling, recomputes the squared
matrix element, a... | [
"rainfinder@gmail.com"
] | rainfinder@gmail.com |
b131350cfdf498bbe64bf2d776c1ebcf201c2e8e | dae71a7159f119fa86ac79ce16558d263ec4f756 | /src/mydetic/s3_datastore.py | 1d72246c13e3a636e01dd75ca737e44b66674036 | [
"Apache-2.0"
] | permissive | nMustaki/mydetic | f3c37b3d6a6c4fb04df460e0127e37ec87c5f28f | b1ba73c7af14a4e1b84ea81796c13f11c62a6c14 | refs/heads/master | 2021-01-16T20:39:32.900466 | 2015-02-21T05:25:04 | 2015-02-21T05:25:04 | 31,198,743 | 0 | 0 | null | 2015-02-23T08:02:17 | 2015-02-23T08:02:17 | null | UTF-8 | Python | false | false | 7,069 | py | """
DataStore implementation that stores data in an S3 Bucket.
"""
import datetime
import boto
from boto.s3.key import Key
from boto.s3.connection import Location
from datastore import DataStore
from mydeticexceptions import MyDeticMemoryAlreadyExists, MyDeticNoMemoryFound
from memorydata import MemoryData
import re
... | [
"andrew.k.reid@gmail.com"
] | andrew.k.reid@gmail.com |
879d3e52d3b63ee8f078a3a5f876d4b96ca5aba3 | 3dc60bbcb27600ffe7baa4e6187fe2c71bb7b5ab | /Python/to-lower-case.py | ca69091671f3380ba24c1920aca7d39718fe6f48 | [
"MIT"
] | permissive | phucle2411/LeetCode | 33f3cc69fada711545af4c7366eda5d250625120 | ba84c192fb9995dd48ddc6d81c3153488dd3c698 | refs/heads/master | 2022-01-14T16:49:50.116398 | 2019-06-12T23:41:29 | 2019-06-12T23:41:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | # https://leetcode.com/problems/to-lower-case/submissions/
class Solution:
def toLowerCase(self, str):
"""
:type str: str
:rtype: str
"""
return str.lower()
| [
"JaredLGillespie@hotmail.com"
] | JaredLGillespie@hotmail.com |
bacdf81a75c15e912b8ee6eff3ab32540cb35e47 | 792520d7a730010cb04975007495acf4ff4995a1 | /wesnoth/wmldata.py | a3b10eedd9aa3d29ec219634ae250e60520c659b | [] | no_license | Yossarian/WesnothAddonServer | cc48bad65117686f372fbd3c0a4b4b74f7f3c0f5 | 408ca395b839ab629b21c90ad4909ef73b0e7980 | refs/heads/master | 2021-01-10T21:16:49.363090 | 2010-05-17T22:24:06 | 2010-05-17T22:24:06 | 542,581 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,115 | py | #!/usr/bin/env python
# encoding: utf8
"""
This module represents the internal appearance of WML.
Note: We cannot store textdomain information, due to how the parser work.
For example:
name = _"x" + {foor} + {bar}
That string may actually be composed from three different textdomains. The
textdomain stuff in here ... | [
"157482@student.pwr.wroc.pl"
] | 157482@student.pwr.wroc.pl |
0e7e09672ebeada1189387da00af53196a910a78 | 8154ce402e2316b27dd4936411fb7b580fc64072 | /Python/zelle/ch3/ch3.py | 38a48273d1a7d7d9879ff0046d68330cba427a12 | [] | no_license | dmsenter89/learningProgramming | 9a961522dd046ec7b3eaf9baea351844568afaca | b984c1d5ad54a0d2927eaea265ddce4af2eaeaaf | refs/heads/master | 2020-12-10T11:16:16.348651 | 2017-06-29T02:36:48 | 2017-06-29T02:36:48 | 21,745,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | import math
# exercise 1
# calculate volume and surface of sphere from input
print('--------------------------------------------')
print('Exercise 1 - Calculate vol.and surf. of sphere from Input.')
radius = float(input("Enter radius: "))
V = 4.0/3.0*math.pi*radius**3
A = 4.0*math.pi*radius**2
print("Volume={0}, Surfa... | [
"dmsenter89@gmail.com"
] | dmsenter89@gmail.com |
879c8c51f5208dd40ed3791d0ab2a887735fcf85 | 155497bf1cad4dd8ea3db387323df6cf938c6b19 | /02/string_bits.py | 62d61efb868baf4b48f029b92272b4541b358cde | [] | no_license | gp70/homework | 45a9fb22eb67958173a20fa30c73f1305c8bffc4 | 404b3444573998eac5042fbfe60cdd33b384420a | refs/heads/master | 2021-01-23T21:22:52.596980 | 2017-12-06T18:41:21 | 2017-12-06T18:41:21 | 102,896,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | def string_bits(str):
n = 0
nstr = ''
while n in range(len(str)):
nstr = nstr + str[n]
n = n + 2
return nstr
| [
"gareth.petterson70@myhunter.cuny.edu"
] | gareth.petterson70@myhunter.cuny.edu |
8a88fd90ab4a7c81cf59aadf58ee93a232cb79b1 | c1cbf7c837b0d46ae82de24f3bc98f77b8ce243b | /ne583/Test/test02/Problem 3.py | b9d789bb505d992d43464cbf3150b3027d91293a | [] | no_license | piovere/nucnotes | 4d199aff580bebf1598be15b4854dc08cff7d7a5 | 1285087d9ca2505b59bbf3bc643969c2341dc553 | refs/heads/master | 2020-09-15T07:56:39.429161 | 2019-04-01T17:16:16 | 2019-04-01T17:16:16 | 65,939,252 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py |
# coding: utf-8
# # Problem 3
# In[1]:
from scipy.integrate import trapz
from scipy.special import legendre
from scipy.optimize.zeros import newton
from numpy.polynomial.legendre import leggauss
import numpy as np
import matplotlib.pyplot as plt
# Plot the 14th Legendre polynomial to eyeball
# the starting gues... | [
"jpowersl@vols.utk.edu"
] | jpowersl@vols.utk.edu |
8b87ebf8bdf80001ed86b8d96849e17563c659cc | 7f047264b412f204afe64ecd68e4c621535f464d | /maoyan_top100/maoyantop100.py | a6392c6b519346994795e4763b10ecb148270772 | [] | no_license | lybtt/spider_learning | 7d67a64f55b2259bc7ea4eadc930065e5bcca41b | c14d42568de2606036600236ac24f821478831e0 | refs/heads/master | 2020-03-25T10:42:42.014422 | 2018-08-18T12:49:50 | 2018-08-18T12:49:50 | 143,671,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,883 | py | #coding:utf-8
#author:lyb
#Date: 2018/7/28 21:35
import pymongo
import requests
from requests.exceptions import RequestException
import re
import json
import time
from concurrent.futures import ThreadPoolExecutor, as_completed, ProcessPoolExecutor
from maoyan_top100.config import *
headers = {"User-Agent": USER_AGEN... | [
"812569791@qq.com"
] | 812569791@qq.com |
61b3812c3519c25bd5a6a83bf20d8cac617d01fd | e5a8fae911cb1d7dabb76b8d3e8f37fca85ff1ae | /Guess the word!.py | e260791dc23cd31efbbd98f63d7a42b6dd1068a6 | [] | no_license | moomill46/MyFirstRepo | 3372bad4571ee584874adedf6202e325a91928dd | 7d1b42bf668728ef8e3373f0756cb6ba8e301eb9 | refs/heads/master | 2021-09-14T15:19:47.706851 | 2018-05-15T14:44:59 | 2018-05-15T14:44:59 | 106,409,343 | 0 | 1 | null | 2017-11-16T14:33:16 | 2017-10-10T11:40:18 | Python | UTF-8 | Python | false | false | 1,028 | py | import random
number = random.randint(0,3)
words = ["Ice Cream", "Dog", "Grass", "Pencil"]
hint1 = ["Melting", "Bone", "Green", "Case"]
hint2 = ["Summer", "Woof", "Lawn", "Sharpen"]
guess = ""
counter = 1
secretword = words[number]
while True:
print("Guess the word!")
print("Please write... | [
"noreply@github.com"
] | moomill46.noreply@github.com |
7d6a28c779181b9c628e22f4fb0d8db1ed01cf27 | dad31a33a6d438571959d115dea6598fb0256217 | /Env/utils/collision_detect.py | d21069affd97c2e7e1b23f173824a308ea8eaf26 | [] | no_license | ShawnLue/Dynamic-VIN-in-Gridworld | 3f4956c18608ba1da449e816d0f4e61f0f281223 | 4f5e332568e4764f51043ab63766af989aa5ae21 | refs/heads/master | 2021-07-13T11:50:02.531060 | 2017-11-20T09:29:25 | 2017-11-20T09:29:25 | 96,508,502 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | # ----------------------------------------------------
# Second edition of HAADS(used for RL simulation)
# Author: Xiangyu Liu
# Date: 2016.11.26
# Filename: collision_detect.py
# ----------------------------------------------------
import pygame as pg
def collide_other(one, two):
"""
Callback function for u... | [
"xiangyu.liu@hobot.cc"
] | xiangyu.liu@hobot.cc |
8693570b0b6900f711f8707fabbe6b35c3c43152 | 0915497f64bc5f5e93fef02ef01f6e98c46c73d0 | /geekshop/urls.py | 572f4429dd1f1a8d2a3d41274c55f91f7cf9f1b4 | [] | no_license | sinitsa2001/dj_git1 | 3d8e2820fb46a9e926120eb419ae89a54dfdb66b | 5362af7eb86129d13d61ffd7b1d5b37bb4e70e02 | refs/heads/master | 2023-02-26T00:42:26.737369 | 2021-01-07T15:58:08 | 2021-01-07T15:58:08 | 318,589,611 | 0 | 0 | null | 2021-02-02T06:12:59 | 2020-12-04T17:32:37 | CSS | UTF-8 | Python | false | false | 1,417 | py | """geekshop URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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... | [
"sinitsa2001@mail.ru"
] | sinitsa2001@mail.ru |
ef8bc9236fe9d8d6145fa6dcda21ac53ac36bd2e | 6b76c6a27a1cd5d32ca233ba83b730dc5f68fae3 | /week-03/5-kata/practice/24_solution.py | 8b751957703c840af92a5c4533a269f004b2098e | [] | no_license | TesztLokhajtasosmokus/velox-syllabus | 79fae3e6ac1a61d9fda4a2d66ddfd14f647cacfd | eeac5910636963691257024a077bcaed653fcbd2 | refs/heads/master | 2020-03-28T06:28:44.916564 | 2017-11-17T08:48:54 | 2017-11-17T08:48:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | x = 8
time = 120
out = ''
# if x is dividable by 4
# and time is not more than 200
# set out to 'check'
# if time is more than 200
# set out to 'Time out'
# otherwise set out to 'Run Forest Run!'
maxtime = 200
if x % 4 == 0 and time < maxtime:
out = 'check'
elif time >= maxtime:
out = 'Time out'
else:
out =... | [
"adam.gyulavari@lab.coop"
] | adam.gyulavari@lab.coop |
6be19881776e1f1c4e819d364e189061a9b189a8 | 9e703cadf5eef0b5a7a7d928db12c304fdaf7c8b | /Chapter_6/HighLowMedium.py | 997d2bb4596f185e3583b50f9b099424b48c81ad | [] | no_license | MikaylaRobinson/Python-For-Biologists | 0f5224780971598b812202641050bc7600f64687 | 9987f29606f31629cf86c6b082fb43ba8b4533a9 | refs/heads/master | 2020-03-28T16:12:18.489971 | 2018-09-26T04:07:55 | 2018-09-26T04:07:55 | 148,669,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | """
Print out each gene name and a message labeling the AT content as high, medium, or low
"""
def finding_at_content(dna_sequence):
a_content = dna_sequence.upper().count("A")
t_content = dna_sequence.upper().count("T")
at_content = (a_content + t_content) / len(dna_sequence)
return at_content
gene_d... | [
"mikayla22robinson@gmail.com"
] | mikayla22robinson@gmail.com |
4fa3bc4a8f2a3c3bb5dc20efad9e51101ac63264 | 9dd90f5248ce83397f26f2e443344693527dff9a | /myproject/news/migrations/0006_news_tag.py | 14341d18780227800a4c5ba4ee2d98bd6afd8226 | [] | no_license | dyappscrip/myproject | 4cdbc35708a032653a048c1de66b281589eb3c17 | faf2954ebe44e9d630ab3b3a74a79ad55a8f45a3 | refs/heads/master | 2023-01-28T18:55:58.320265 | 2020-12-12T12:29:49 | 2020-12-12T12:29:49 | 320,553,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # Generated by Django 3.1.3 on 2020-12-09 06:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0005_news_ocatid'),
]
operations = [
migrations.AddField(
model_name='news',
name='tag',
field=m... | [
"dhanraj@mobifyi.com"
] | dhanraj@mobifyi.com |
db1015691e7686409ba8a0670aaf42ca71b50462 | a45a7c23c7b8c33e6ad016487bff47f3cd4f3429 | /ejercicios-clase-07-01bim-GeraldJT/EjemploFor/Ejemplo01.py | 3b1ec411002f5caab7c03b9362f7ac388ae63e10 | [] | no_license | IntroProgramacion-P-Oct20-Feb21/trabajofinal-1bim-GeraldJT | 87ca88e52b45886fa7124fff1155e9b53578c4ec | 6999ef41af2e5a0e42454605371e63bbe758320d | refs/heads/main | 2023-01-23T03:45:02.706359 | 2020-12-06T22:08:22 | 2020-12-06T22:08:22 | 318,824,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | for i in range(0,10):
#
for i in range(10,1,-1):
#
for i in range(0,10,5):
#
for i in range(0,10,3):
#
for i in range(0,10, -11):
| [
"geraldjt.gmail.com"
] | geraldjt.gmail.com |
bc0b0d54a1088c43f86ec3954ea51b361c26df54 | b3f663328175f6dc8a654c8e683445b9072c25ff | /demo33_reduce5.py | 267d5d5df55d2b1d0ea3d89b3ebd47fa769bc921 | [] | no_license | viviyin/bdpy | be776118a041f140ac1a73ac089c6b77f033bcb6 | 98b219c37fec53a127856d6b13ef78b56685240d | refs/heads/master | 2022-11-30T02:12:10.464888 | 2020-07-17T09:03:52 | 2020-07-17T09:03:52 | 279,491,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | import collections
from functools import reduce
from pprint import pprint
course = collections.namedtuple('course', ['name', 'field', 'attendee', 'remote'])
poop = course(name='poop', field='python', attendee=10, remote=False)
bdpy = course(name='bdpy', field='python', attendee=15, remote=True)
pykt = course(name='py... | [
"vivian82627@gmail.com"
] | vivian82627@gmail.com |
d0cfe89b6ef336648599b637bbfbfa48e759b3f5 | 19cec240505e27546cb9b10104ecb16cc2454702 | /linux/test/python/stat.py | 92948f7462ef0f06b81fcd9bffeaa35ac9a7e81c | [] | no_license | imosts/flume | 1a9b746c5f080c826c1f316a8008d8ea1b145a89 | a17b987c5adaa13befb0fd74ac400c8edbe62ef5 | refs/heads/master | 2021-01-10T09:43:03.931167 | 2016-03-09T12:09:53 | 2016-03-09T12:09:53 | 53,101,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py |
import flume.flmos as flmo
import sys
for f in sys.argv[1:] :
ls = flmo.stat_file (f)
print "%s => %s" % (f, ls)
| [
"imosts"
] | imosts |
6e1b6ebe2a2c4908be086912a1e365735cda1e4b | 227e26af048fd2ba5aa3bb06410a1ac801048152 | /tcpClient.py | ce3cd30a5ed54d8fc0f26a00b468037ebe8063a0 | [] | no_license | ahhswangkai/pylearn | 9122519fa6f3e868d6ecf210b39387b348ed4972 | 71477b0b8db10d4b5b6c203aa747b86611ecabfa | refs/heads/master | 2021-01-01T19:02:08.568412 | 2017-02-20T10:22:30 | 2017-02-20T10:22:30 | 30,176,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | import socket
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect(('127.0.0.1',9999))
print s.recv(1024)
for data in ['wk','sss','sskk']:
s.send(data)
print s.recv(1024)
s.send('exit')
s.close() | [
"ahhswangkai@163.com"
] | ahhswangkai@163.com |
00d1c33e3fb56e293769a2b22a45d9ee11e61274 | d73581e419cec58f7d7b58a22c2bd5a78959847d | /dummyrdm/RDM/checksums.py | 4cdcd229cc1f02a9a02bca694ab6b6abd4f8838b | [
"MIT"
] | permissive | dfivesystems/dummyRDM | e3953675f0834ef1236274835a8f75266931118a | 3d329b1538a62288bc42999b4dc0451583e64172 | refs/heads/master | 2023-08-17T19:06:34.214850 | 2020-01-19T19:56:54 | 2020-01-19T19:56:54 | 229,488,666 | 2 | 2 | MIT | 2023-08-14T22:08:10 | 2019-12-21T22:07:17 | Python | UTF-8 | Python | false | false | 150 | py | def rdmCheckSum(checksumbytes):
checksum = sum(checksumbytes)
checksumbytes.extend((checksum // 256, checksum % 256))
return checksumbytes | [
"dave@d5systems.co.uk"
] | dave@d5systems.co.uk |
8b6b1b686c656f460928930a4a0b4fa4374f8ad9 | 18e48f22f88fe80ce54d12fdbf9d05a7ca5bd65a | /0x11-python-network_1/7-error_code.py | ad1698d9aff563aff2ccaec553148dfecf84b193 | [] | no_license | SantiagoHerreG/holbertonschool-higher_level_programming | 426c4bc9bc080a81b72d2f740c8ed2eb365023eb | ca2612ef3be92a60764d584cf39de3a2ba310f84 | refs/heads/master | 2020-07-22T19:33:48.507287 | 2020-02-14T04:34:00 | 2020-02-14T04:34:00 | 207,305,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | #!/usr/bin/python3
"""takes in a URL, sends a request to the URL and displays the body of
the response"""
import requests
import sys
if __name__ == "__main__":
url = sys.argv[1]
res = requests.get(url)
if res.status_code == requests.codes.ok:
print(res.text)
else:
print("Error cod... | [
"888@holbertonschool.com"
] | 888@holbertonschool.com |
3a44f3a601e85bd1eb025f738bccf66cc41902b1 | 6d568abb860ee46a12a694e819f4a5aac2e0f136 | /raspberry-pi/raspi/lib/python2.7/sre_compile.py | 51d0a578072feb072adb44b9af784d9315720be1 | [] | no_license | jkubicek/home-automation | cab3df4ed634d33cd4d235872007a8b1c2e9d908 | 91c2c96ee5d5af82ae5fccf2a893e20f99dae72a | refs/heads/master | 2020-05-30T15:52:42.271713 | 2014-06-01T04:20:10 | 2014-06-01T04:20:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | /opt/twitter/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_compile.py | [
"jkubicek@twitter.com"
] | jkubicek@twitter.com |
a800f9d568a1d7598f3cae018badde0c06ea9409 | 8578ae5be776b49559fa95ce30f6b45b6a82b73a | /test/functional/p2p_fingerprint.py | 0a572d97cfb88494d434474850b03427f50dd5ed | [
"MIT"
] | permissive | devcoin/core | 3f9f177bd9d5d2cc54ff95a981cfe88671206ae2 | f67e8b058b4316dd491615dc3f8799a45f396f4a | refs/heads/master | 2023-05-25T03:42:03.998451 | 2023-05-24T07:59:22 | 2023-05-24T08:02:14 | 21,529,485 | 16 | 13 | MIT | 2022-01-07T17:04:18 | 2014-07-05T22:42:13 | C | UTF-8 | Python | false | false | 5,061 | py | #!/usr/bin/env python3
# Copyright (c) 2017-2020 The Bitcoin Core and Devcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test various fingerprinting protections.
If a stale block more than a month old or it... | [
"fernando@develcuy.com"
] | fernando@develcuy.com |
da901c8774512e8c8f761264d8e4305fe2a8ef57 | 1d9f59a23aec8cfda4b51a95db134fde270214c3 | /Part1/ann.py | 721985d5fae8a68737705e55f2da10cfa22605ab | [] | no_license | goffle/Python | 511e3f17c2b52e4169f0da2d40b8d3a28599f8ab | 2bc9dd1dfca8ccb03941e3821a4a5bccd22bfc47 | refs/heads/master | 2021-01-22T23:10:27.896259 | 2017-05-31T02:46:04 | 2017-05-31T02:46:04 | 92,802,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,559 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Wed May 31 07:20:01 2017
@author: seb
"""
# Artificial Neural Network
# Installing Theano
# pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git
# Installing Tensorflow
# pip install tensorflow
# Installing Keras
# pip install --upgrad... | [
"se.legoff@gmail.com"
] | se.legoff@gmail.com |
1c1dcd8bc185c5981370cc6412b274be30918a26 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/model_control/detailed/transf_RelativeDifference/model_control_one_enabled_RelativeDifference_PolyTrend_Seasonal_Minute_MLP.py | 613e814baf612b7e6b06d1d12091e2333056e4bd | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 172 | py | import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['RelativeDifference'] , ['PolyTrend'] , ['Seasonal_Minute'] , ['MLP'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
8591bcf58366b8ff94295a55f3ab3600d0536bef | a85273a1bd2dfb3d0cf53fdf106ddb790ff7c0a3 | /Lab4/movies/permissions.py | e4fd781c6a0f1dafe17d17039b84ea86cd658ae6 | [] | no_license | jagodalewandowska/aplikacje-internetowe-lewandowska-185ic | f6e924bc5813174df54897881d1a7fa8105bb687 | 317b0ed88ea27683a7f318604437f5ba20ef1903 | refs/heads/main | 2023-02-21T10:25:42.296994 | 2021-01-27T17:26:14 | 2021-01-27T17:26:14 | 310,323,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | # import zezwoleń z django rest
from rest_framework import permissions
# overriding metodę hasobjectpermission tak,
# aby pozwolić temu samemu użytkownikowi na edytowanie
# lub usuwanie jeśli jest właścicielem posta
# utworzenie własnej klasy, która rozszerza basepermission
class IsAuthorOrReadOnly(permissions.BaseP... | [
"jadlewandowska@gmail.com"
] | jadlewandowska@gmail.com |
100baaea21f962521c1a74299239dd8bde40a450 | 4c095c835cd391e4563a87d5f0652c8863a58ab1 | /textrank_model.py | 4c84b2144a15582cd97eb690e6c92d237d5c1839 | [] | no_license | wanglke/kewwords | 1bab62a6a246bedaee9d2947a562148081203d9d | 10ee5f451491769032046f945b2725e019759f93 | refs/heads/main | 2023-05-02T00:21:51.582848 | 2021-05-18T02:26:35 | 2021-05-18T02:26:35 | 345,949,680 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | # coding=utf-8
import pandas as pd
import numpy as np
from utils import get_corpus
import jieba.analyse
class Textrank(object):
def __init__(self,data):
self.data = data
def get_keywords(self, stopkey, topk=5):
"""
get the top k keywords
:param topk:
:return:
... | [
"noreply@github.com"
] | wanglke.noreply@github.com |
e65a947a803a00f34dcaf38fb3e04939f3024575 | 1e3988a37cb7f36fefd898ab5b50f2c5ebc00708 | /manage.py | fb4edebf62b382108fc514fc30dc54130f1a0053 | [] | no_license | zawadzkm/www_zad2 | f5a8bd196bdd8650fd04766ed0bb8b423f08ca4f | 02f90dd58cf67477941f73203bd1684c5662c398 | refs/heads/master | 2021-01-23T08:04:26.531581 | 2017-04-18T12:39:42 | 2017-04-18T12:39:42 | 86,474,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "www_zad2.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the... | [
"mariusz.zawadzki@roche.com"
] | mariusz.zawadzki@roche.com |
59378ed1c249261ad53db470074838f10644f261 | 3381d3d1b70bd88374e75d90197d0202945bbade | /authentication/views.py | 1ea82fb55ee882e019ac000c9ca14bf94b9c33ca | [] | no_license | PHONGLEX/djangorestframework_quizapi | 30d5011b67a484a525c94071672f29ed2b0cb700 | c9f7b4ebdc00188533a0a5f44c13594011729fa4 | refs/heads/master | 2023-08-02T00:58:35.647091 | 2021-10-01T09:17:05 | 2021-10-01T09:17:05 | 412,402,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,554 | py | import jsonpickle
import jwt
from rest_framework import generics, status
from rest_framework.views import APIView
from rest_framework_simplejwt.tokens import RefreshToken
from rest_framework.response import Response
from rest_framework.permissions import IsAuthenticated
from django.contrib import auth
from django.uti... | [
"fonglex@gmail.com"
] | fonglex@gmail.com |
13e62f614a85f55ddb49bff1ab3f18529c63c670 | 90d82883200bdd942f06e91a5ebb54aa2b3ecba4 | /apps/dishes/migrations/0005_auto_20200910_0414.py | 2e65418d58ac3e72dcb414cb5aaa0b3477344ef3 | [] | no_license | dmitry-morgachev/ration-app | 394db69bb22df44888847007c5521c25c0524238 | ffc8188a320a4fe3ae99aeb80f79c1f05b3f47ab | refs/heads/master | 2022-12-15T10:41:46.629431 | 2020-09-10T10:20:54 | 2020-09-10T10:20:54 | 294,157,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | # Generated by Django 2.2.16 on 2020-09-10 04:14
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settin... | [
"powerpowerov@gmail.com"
] | powerpowerov@gmail.com |
30d040917850dbfe213295e61066ca08ae2f4ddd | 509fc176af52f46ce62f54a6f63c7c27b1bd0c2c | /djangofiltertest/djangofiltertest/apps/posts_areas/api_v1/views.py | d95acb524992ab1ca2a3395a52d48a793ab3f132 | [
"MIT"
] | permissive | gonzaloamadio/django-filter-test | 8b16fdb989a8141ba5852cd4804148cb6b153e86 | 7b9dbc36ca248e2113deaac03e824b123a31a4ba | refs/heads/master | 2022-12-10T11:35:07.684916 | 2019-01-24T09:19:21 | 2019-01-24T09:19:21 | 167,159,577 | 0 | 0 | MIT | 2022-12-08T01:33:33 | 2019-01-23T09:54:40 | Python | UTF-8 | Python | false | false | 270 | py | from posts_areas.api_v1.serializers import PostAreaSerializer
from posts_areas.models import PostArea
from djangofiltertest.libs.views import APIViewSet
class PostAreaViewSet(APIViewSet):
queryset = PostArea.objects.all()
serializer_class = PostAreaSerializer
| [
"gonzaloamadio@gmail.com"
] | gonzaloamadio@gmail.com |
927bf4049811ef0b096b9d2becfbb569c35c1b1c | bc9d3ac7a99f40fc85a927ef96491871d4f76ea1 | /apps/users/views.py | 404adb6209e78609d5605773fe78bb344c932b9c | [] | no_license | 0Monster0/MxOnline | 572ad427d018a4dec111060171fc2162344ea720 | 19c5d3588ecbde1a0289b65f62bd7f224b489ce1 | refs/heads/master | 2020-03-08T02:05:35.738890 | 2018-05-10T09:44:16 | 2018-05-10T09:44:16 | 127,849,542 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,809 | py | # -*- coding:utf-8 -*-
import json
from django.shortcuts import render
# Django自带的用户验证,login
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.backends import ModelBackend
from django.views.generic import View
# 并集运算
from django.db.models import Q
from django.http import HttpResponse... | [
"630550245@qq.com"
] | 630550245@qq.com |
dc90c334f8f9314e070b2c504c81d5c4b72155a3 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/googlecloudsdk/core/util/tokenizer.py | 1a403b82516d25b5b6213598941a3ba5f7672ed2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 2,291 | py | # -*- coding: utf-8 -*- #
# Copyright 2013 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
14a58747c877c3be919ecea261d0a16b85adec91 | 8e713563751dc0f3fe6df60b5745999ceda15be2 | /cgi-bin/editurl.py | 00e6f4f01a49c726c71f15b4240d63a67dbf6113 | [] | no_license | siguremon/pyweb | 5cbeeb0008651e24d2fc46b052ea1290cb1fab31 | a2599526146b9f2415cba19d835f8e472d3c2eb1 | refs/heads/master | 2020-05-20T05:52:36.551142 | 2012-07-14T03:14:26 | 2012-07-14T03:14:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | #!/usr/bin/env python
# coding: utf-8
from simpletemplate import SimpleTemplate
from rssurl import Rssurl
from os import path
from httphandler import Request, Response
import cgitb; cgitb.enable()
errors = {}
value_dic = {'errors':errors, 'title':'', 'url':'', 'item_id':''}
req = Request()
f = req.form
p = path.joi... | [
"siguremon@gmail.com"
] | siguremon@gmail.com |
4477871af63bc3553fb411a4fa66d4399b71b95d | 79db8b1a642b69180f6b38f89ecb6907f5850a6b | /build/ikiwi_abila_teleop_joy/catkin_generated/pkg.develspace.context.pc.py | d5c75afee19cdc60b406250ebec5436fb486ea13 | [] | no_license | zrjnz/ikiwi-abila | c85e92b03c811bdef8d91ee9ef2f66658c530932 | 41654c866df030bc94acfce8627be5188b3c88ea | refs/heads/master | 2023-04-20T23:08:02.036745 | 2021-05-05T08:31:13 | 2021-05-05T08:31:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "ikiwi_abila_teleop_joy"
PROJECT_SPACE... | [
"jose.nunez@ub.edu"
] | jose.nunez@ub.edu |
ea11bf784f41f2baf536fbb111241ab1f1165160 | 66c7b0da6ee27ddce0943945503cdecf199f77a2 | /rllib/util/parameter_decay.py | 2df23cd677dcb3091464bf29c075df7a3d8bd9ee | [
"MIT"
] | permissive | tzahishimkin/extended-hucrl | 07609f9e9f9436121bcc64ff3190c966183a2cd9 | c144aeecba5f35ccfb4ec943d29d7092c0fa20e3 | refs/heads/master | 2023-07-09T22:57:28.682494 | 2021-08-24T08:50:16 | 2021-08-24T08:50:16 | 383,819,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,056 | py | """Implementation of a Parameter decay class."""
from abc import ABCMeta
import torch.jit
import torch.nn as nn
from rllib.util.neural_networks.utilities import inverse_softplus
class ParameterDecay(nn.Module, metaclass=ABCMeta):
"""Abstract class that implements the decay of a parameter."""
def __init__(... | [
"shi.tzahi@gmail.com"
] | shi.tzahi@gmail.com |
8e1f9eeaa8eb59e4b8fd5822047b9e320adc32db | e2c120b55ab149557679e554c1b0c55126e70593 | /python/imagej/tests/test_ImgLib2_ImgFactory.py | 6b95c5b2582e670492dc615ed54d7090c3ee9152 | [] | no_license | acardona/scripts | 30e4ca2ac87b9463e594beaecd6da74a791f2c22 | 72a18b70f9a25619b2dbf33699a7dc1421ad22c6 | refs/heads/master | 2023-07-27T14:07:37.457914 | 2023-07-07T23:13:40 | 2023-07-07T23:14:00 | 120,363,431 | 4 | 5 | null | 2023-05-02T11:20:49 | 2018-02-05T21:21:13 | Python | UTF-8 | Python | false | false | 859 | py | from net.imglib2.img.array import ArrayImgFactory
from net.imglib2.type.numeric.integer import UnsignedByteType, UnsignedShortType
from net.imglib2.util import Intervals
# An 8-bit 256x256x256 volume
img = ArrayImgFactory(UnsignedByteType()).create([256, 256, 256])
# Another image of the same type and dimensions, but... | [
"sapristi@gmail.com"
] | sapristi@gmail.com |
f857a30e34a36932d528eae3936d5d238e918cb7 | 609e9edc94eb26d4c88debaca9d003709f46a1b8 | /make_model_dataset_statistics.py | c7c2f5e31ee0eef76e3002243c15afd144849b29 | [] | no_license | tanya525625/CollaborativeFiltering | bb05a16c934f09b512b47a7587dda464129a5960 | 302696b06a7dcb958c7a22dc9a228bbfe7e46d25 | refs/heads/master | 2022-12-18T07:45:36.746484 | 2020-09-25T06:51:02 | 2020-09-25T06:51:02 | 283,509,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,325 | py | import os
import json
from collections import OrderedDict
import numpy as np
import pandas as pd
def write_dict(data, filepath):
with open(filepath, 'w', encoding='utf-8') as f:
json.dump(data, f, ensure_ascii=False, indent=4)
def sort_dict(data):
stats = OrderedDict(sorted(data.items(), key=lambda... | [
"33422677+tanya525625@users.noreply.github.com"
] | 33422677+tanya525625@users.noreply.github.com |
85cdcc5d57482e29a337ba0119ef69327966665e | 985e54f1ecfd6d24a526be94969ff1cf27866d9b | /Util/srt_sanitizer.py | 795999adf439fc039b8264aaa1457a7275180c58 | [] | no_license | nehemiah-io/MS-Twitter-Bot | c3ee79cc362b6e72e73d3217f24f5922207899d4 | c2e2ce2c07d5428711f9996bfce8a4f848458bde | refs/heads/master | 2021-01-12T08:12:51.253101 | 2016-12-12T23:42:10 | 2016-12-12T23:42:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | # -*- coding: utf-8 -*-
import pysrt
import re
def open_doc(source_text):
try:
subs = pysrt.open(source_text)
return subs
except UnicodeDecodeError:
subs = pysrt.open(source_text, encoding='iso-8859-1')
return subs
def sanitize(subs):
sanitized = ""
for sub in subs:
... | [
"fabiobean2@gmail.com"
] | fabiobean2@gmail.com |
93dba4d2be7a704301cbec05785594d801b8cd1a | ed74b7cd3572d759c6430ea55f008e91abe57f2d | /MagAOX/webapp/FilterCurves/filter_curves.py | af6916783375e081a884ff3ff4be337c724ca0a2 | [] | no_license | adelfranco/Follette-group | 8704e1b528d1c4d7110c0382472bd061ce565bf4 | a69858ddac398686e85f7869cdd8f2cc25c50b66 | refs/heads/master | 2023-08-04T09:57:14.279721 | 2021-06-19T01:37:51 | 2021-06-19T01:37:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py | import numpy as np, pandas as pd, matplotlib.pyplot as plt
plt.rcdefaults()
iprime = pd.read_fwf('VisAO_ip_filter_curve.dat', sep=" ", skiprows = 4)
zprime = pd.read_fwf('VisAO_zp_filter_curve.dat', sep=" ", skiprows = 4)
Ys = pd.read_fwf('VisAO_Ys_filter_curve.dat', sep=" ", skiprows = 4)
curves = [iprime,zprime,Ys]... | [
"noreply@github.com"
] | adelfranco.noreply@github.com |
1c418dc838580160d0af1fed8bba5b0a0e48b79c | e0ab376b815785ed83dcf696b2fb28c742f546ba | /reversestr.py | 95a87c14a0283cee90060daa1cb01c5eb188da42 | [] | no_license | jackyk/andelabs-bootcamp | 7838d26b08e31064521ec11044bbfc551ae5479d | b2e0405e20e4369683b456c7c39e162a9aec8283 | refs/heads/master | 2016-09-13T23:18:47.276439 | 2016-04-29T13:21:25 | 2016-04-29T13:21:25 | 57,385,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | def reverse_string(string):
if string == '':
return "None"
else:
return string[::-1]
if string == string[::-1]:
return True
else:
return string[::-1]
print reverse_string("ee")
| [
"jackykimani13@gmail.com"
] | jackykimani13@gmail.com |
d0d3f0a3b66c4166ee6189c92371574c40ff103d | f3c0fb0ed19f652cf09e8814cc61051176197bd6 | /mysite/settings.py | 6223da14695ba868185223610217eec5fc5d0b36 | [] | no_license | fanssite/Learning-Djangoweb-Note | a81ec9c3a108f069fab1ca7f49a8d190051f380b | a591cba6f54846c0e4f2913bebae0ca7b3b57b83 | refs/heads/master | 2020-03-17T05:56:12.986883 | 2018-06-01T10:16:06 | 2018-06-01T10:16:06 | 133,334,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,468 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | [
"fkg8761060@qq.com"
] | fkg8761060@qq.com |
1154f213a7433278bb5b4257ace83fb3c330bdab | 22a4f85f17242e4b17f4fedd56bc5da97c823d48 | /s1617wechat/s1617wechat/urls.py | 8321a4fcaaacbd7afb562ae51bdf0f0e87810297 | [] | no_license | Three-Ratel/pro17_ | 11d6cfc134f255ba64ff39d212f18d867d893f4b | 6598bddc76268b6dd4d972af6184655c764dd812 | refs/heads/master | 2022-09-13T15:19:17.701443 | 2017-11-17T02:48:44 | 2017-11-17T02:48:44 | 268,671,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | """s1617wechat URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | [
"wuxp@imsa.org.cn"
] | wuxp@imsa.org.cn |
89e2d90ba4eedda9c8b3ce40056dde57e0048c0c | e60487a8f5aad5aab16e671dcd00f0e64379961b | /python_stack/Algos/leetcode_30days/max_subarray.py | 05464124d8c978cb2d1c61f8ef20653a3b199cf1 | [] | no_license | reenadangi/python | 4fde31737e5745bc5650d015e3fa4354ce9e87a9 | 568221ba417dda3be7f2ef1d2f393a7dea6ccb74 | refs/heads/master | 2021-08-18T08:25:40.774877 | 2021-03-27T22:20:17 | 2021-03-27T22:20:17 | 247,536,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | # Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
# Example:
# Input: [-2,1,-3,4,-1,2,1,-5,4],
# Output: 6
# Explanation: [4,-1,2,1] has the largest sum = 6.
def findMaxIndex(nums):
maxIndex=0
for i in range(1,len(nums)):
... | [
"reena.dangi@gmail.com"
] | reena.dangi@gmail.com |
b2a7b8d0a433202a5473dd0f9b466bce8de76849 | 9e2b2834e60fa24a424443129c63f1c81c01292f | /naive_bayes/nb_author_id.py | 74224d5044ea2ae7f3592e624cf5f32b851a92c9 | [] | no_license | sourabhgupta385/udacity-machine-learning | 26e8690a6ff70b566f2d666fbc5e8af40518dbe3 | 4f74f318afc31d3e0b959e376a1e827c36861302 | refs/heads/master | 2020-04-25T10:45:51.051573 | 2019-05-17T14:05:48 | 2019-05-17T14:05:48 | 172,720,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | #!/usr/bin/python
"""
This is the code to accompany the Lesson 1 (Naive Bayes) mini-project.
Use a Naive Bayes Classifier to identify emails by their authors
authors and labels:
Sara has label 0
Chris has label 1
"""
import sys
from time import time
sys.path.append("../tools/")
from em... | [
"root@bastion.121c.example.opentlc.com"
] | root@bastion.121c.example.opentlc.com |
9005824b15f37cce95df1b5a713379a40a63d616 | 1abb17c54ecea9cac1f23e7a8131315bf872a46d | /online_exam/online_test/classroom/migrations/0007_auto_20200929_2210.py | a4b52caec9319628c8ecc7b804799039b3ee40b0 | [] | no_license | papry/online_exam_plateform | 1a66cd7619ef4b126118d46e6a3661d25f341a8e | 919b70bf65e3a3bdd6ae47f5c79cf82f3ff118bc | refs/heads/master | 2022-12-29T06:29:37.897730 | 2020-10-18T15:12:03 | 2020-10-18T15:12:03 | 287,947,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | # Generated by Django 2.0 on 2020-09-29 16:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('classroom', '0006_auto_20200909_2309'),
]
operations = [
migrations.CreateModel(
name='See',
... | [
"papry261@gmail.com"
] | papry261@gmail.com |
49cc71107ea54658f08a3dcfd3bad371b83f047a | 19d1cc838f86fa428a3c29293a7631cd99513578 | /venv/bin/easy_install | b8cdb524a293d778423a07e6c1ee15fd4071ab32 | [] | no_license | tidjumaev/python-pi-example | 2bc3d27480ba897f0f41ba2cca60107a555325b7 | 0704e21c4719ebdafa3fbd77506bf613b13d254d | refs/heads/master | 2021-03-24T08:42:45.067399 | 2020-04-04T16:35:07 | 2020-04-04T16:35:07 | 247,535,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | #!/home/timur/PycharmProjects/pi/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys... | [
"ti.djumaev@gmail.com"
] | ti.djumaev@gmail.com | |
aeaaaacc2ff4c496bb86857ae6184a615cc011f0 | 75a227e47124f76278f9e045353385edfc83de33 | /238.py | 040a26a190a0bed82e298e2a7c5710a558fb0acb | [] | no_license | ahujasushant/leetcode_problems | bbfae8757d8762dee5a889609bd9cd232455e659 | 9fc7ddcb59ee8be524fbc253bc973cf6f1eafe0f | refs/heads/master | 2023-03-28T16:49:20.097943 | 2021-04-03T17:41:54 | 2021-04-03T17:41:54 | 219,437,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | class Solution:
def productExceptSelf(self, nums: List[int]) -> List[int]:
prod_right = [1] * len(nums)
prod_left = [1] * len(nums)
product_nums = []
for i in range(len(nums) - 1):
prod_left[i + 1] *= prod_left[i] * nums[i]
for i in range(len(nums) - 1, 0, -1):
... | [
"sushantahuja35@gmail.com"
] | sushantahuja35@gmail.com |
8c4d47286298016368282b45a4cb4e2dc67954f7 | f27c49458bde84048e6008da8c52ca0f1ae711ce | /code/07-data-structures/simple_dict/playground.py | b8e36ebaf6c98c36c3e8c2912fe99193322d5f38 | [
"MIT"
] | permissive | talkpython/python-for-absolute-beginners-course | 54b0f48b5edbf7755de6ca688a8e737ba16dc2fc | 1930dab0a91526863dc92c3e05fe3c7ec63480e1 | refs/heads/master | 2022-11-24T03:02:32.759177 | 2022-11-08T14:30:08 | 2022-11-08T14:30:08 | 225,979,578 | 2,287 | 1,059 | MIT | 2022-11-07T19:45:15 | 2019-12-05T00:02:31 | Python | UTF-8 | Python | false | false | 547 | py | # Data structures
# 1. Dictionaries
# 2. Lists / arrays [1,1,7,11]
# 3. Sets
# Lists
lst = [1, 1, 11, 7]
print(lst)
lst.append(2)
print(lst)
lst.remove(11)
print(lst)
lst.sort()
print(lst)
# Sets:
st = {1, 1, 11, 7}
st.add(1)
st.add(1)
st.add(11)
print(st)
# Dictionaries
d = {
'bob': 0,
'sarah': 0,
'defe... | [
"mikeckennedy@gmail.com"
] | mikeckennedy@gmail.com |
8dc61e64bb66988a363127243cb1b02813e86140 | a6a78f59f442c18449befc89be2b193e37b695d6 | /ivi/rigol/rigolDP800.py | fd988186043295e67c8db82281a56f6215da0aef | [
"MIT"
] | permissive | hohe/python-ivi | fa0b4b1232f4fca92bd046d2ae322e49959f8a83 | 0fe6d7d5aaf9ebc97085f73e25b0f3051ba996b6 | refs/heads/master | 2021-01-21T08:55:35.470107 | 2013-12-23T09:27:02 | 2013-12-23T09:27:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,380 | py | """
Python Interchangeable Virtual Instrument Library
Copyright (c) 2012 Alex Forencich
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 righ... | [
"alex@alexforencich.com"
] | alex@alexforencich.com |
ae27891e13ca1eaadd6120af23e1c56283342d8a | 6faadbb3dd4caed5dce833547758c9ba458de59f | /to_do/to_do/urls.py | 6bfd3fd0d3561a1eac3d9447ff4a11c8f1e6e930 | [] | no_license | rayhanhossen/To-Do-App | 403644831f498ea1b9d6a7c67969cea517b49daf | 4173f3576bc343eba534f67d02eb6fa0bf2d23fb | refs/heads/master | 2023-05-31T11:55:20.517277 | 2021-06-30T12:00:43 | 2021-06-30T12:00:43 | 256,956,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | """to_do URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-based v... | [
"rayhanhossen.cse@gmail.com"
] | rayhanhossen.cse@gmail.com |
9035282cddc1d2da4f1b4762c92128446c2cb8ad | 7ba0fca9f0da684795db54661ca6f296c60a9c56 | /my_blog/settings.py | eef72df56ea0c21ba665bce4c8c613642237b5c9 | [] | no_license | nafei/my-pydjango-blog | f3547323ef561fdb26837886b0e952439c45733e | 3f1eec9866933289deb0aeb2e0b55b3a1d24349c | refs/heads/master | 2021-01-14T10:58:43.282099 | 2015-06-29T09:46:04 | 2015-06-29T09:46:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,464 | py | """
Django settings for my_blog project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
im... | [
"553069938@qq.com"
] | 553069938@qq.com |
7c405d090f0ab23b553f950534fcd3435141562f | c320550947a5fa77da721abda5d948f2ec408de9 | /shs_work_lang.py | d3063fdeda0fc5412b67697681dd35a9acb969aa | [] | no_license | weisslj/musicbrainz-bot | e8abf2f69aba2519693ee7f725b1d4800a0dd891 | b49c6beab9796785e7fe0faed9fa58612ce87e73 | refs/heads/master | 2021-01-20T21:45:08.798347 | 2014-05-06T21:25:51 | 2014-05-06T21:25:51 | 2,906,055 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,030 | py | #!/usr/bin/python
import re
import sqlalchemy
import solr
from editing import MusicBrainzClient
from mbbot.source.secondhandsongs import SHSWebService
import pprint
import urllib
import time
from utils import mangle_name, join_names, out, colored_out, bcolors
import config as cfg
engine = sqlalchemy.create_engine(cfg... | [
"aurelien.mino@gmail.com"
] | aurelien.mino@gmail.com |
5029921c8820ea49c76db8a0445082a1dfa941e2 | 5e3e2a7e66d0698d52960dfcb4fef903d2468af1 | /WebModule/homeworkweb6/river/mlab2.py | b7eb70bb138bbcac2da03a66c4f644c71299f66e | [] | no_license | FriendlyVietnamese/PhoHoangVietLinh-Fundamental-C4E19 | c91b48bd35b7bdd239d44cbfee47ea12710a62b5 | e65f96cfc3c8925c4a02a9a197751441940fe2fc | refs/heads/master | 2020-03-21T20:45:57.454468 | 2018-08-24T15:48:03 | 2018-08-24T15:48:03 | 139,026,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | import mongoengine
# mongodb://admin:admin@ds021182.mlab.com:/
host = "ds021182.mlab.com"
port = 21182
db_name = "c4e"
user_name = "admin"
password = "admin"
def connect():
mongoengine.connect(db_name, host=host, port=port, username=user_name, password=password)
def list2json(l):
import json
return [jso... | [
"Viet Linh"
] | Viet Linh |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.