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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0d0efeb97f3ace99264220f2eaf6af63002d710c | 98f7aecacd75c1145360a600c010df7d2496f74b | /Contents/scripts/sisidebar/common.py | e6bac884e1329a605e4693538fb03af99d7bdcaf | [
"MIT"
] | permissive | HoL1124/SISideBar | 13811578bb607282982aaeb4828c0922f94511df | a9e51558bbef71c98e027f88a3ec5f06097ffe14 | refs/heads/master | 2021-08-16T09:51:23.559373 | 2017-11-19T15:14:47 | 2017-11-19T15:14:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,668 | py | # -*- coding: utf-8 -*-
from maya import cmds
from maya import mel
import pymel.core as pm
import re
import functools
import datetime
import os
import locale
import datetime as dt
import json
def search_polygon_mesh(object, serchChildeNode=False, fullPath=False):
'''
選択したものの中からポリゴンメッシュを返す関数
serchChildeNode... | [
"bs45yh@yahoo.co.jp"
] | bs45yh@yahoo.co.jp |
f26347b28fb06519c7f754fa9909bc22ae20270a | f2bffa5992cd133cf11fd4287adc20a2d21a9471 | /workflows/tianchi_main/tianchi_executor.py | 56c40ca40e76da2601dd6109db5cda95d8deb6c1 | [] | no_license | lawson-source/tianchi_aiflow | 107e9c2abd4c4514974be32945f7e0ab40138777 | 7926922f7d3235ee6f24300f5c517496ace8c45a | refs/heads/master | 2023-07-18T15:03:40.972833 | 2021-08-24T00:11:28 | 2021-08-24T00:11:28 | 397,904,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,308 | py | import time
from typing import List
import ai_flow as af
from ai_flow_plugins.job_plugins import python, flink
from pyflink.table import Table, ScalarFunction, DataTypes
from pyflink.table.udf import udf
from kafka import KafkaProducer, KafkaAdminClient, KafkaConsumer
from kafka.admin import NewTopic
from tf_main impo... | [
"liuyiyuan2007@icloud.com"
] | liuyiyuan2007@icloud.com |
2d88cb43b0a88fd154048f4cf70f5790dd9a57b5 | 5d91c54eaba1a3608d4fa1c06760a628059f984b | /data_processing/h36mwalking_to_windows.py | 147341c875a4167aae175d948b05e5382845d346 | [] | no_license | jejay/human-pose-2d-to-3d | d7bfbb7e1f342a9d689386316b369739cb6e7327 | f7e7bfa1adf583e4ad59c3833063a1640f2c36eb | refs/heads/master | 2020-03-20T23:00:07.600536 | 2018-08-12T22:49:22 | 2018-08-12T22:49:22 | 137,824,650 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,006 | py | import sys
sys.path.append('../libs/')
import numpy as np
import h5py
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import scipy.io as io
import scipy.ndimage.filters as filters
from Quaternions import Quaternions
from Pivots import Pivots
import glob
import matplotlib.an... | [
"julian.habekost@googlemail.com"
] | julian.habekost@googlemail.com |
29be14e09570b86ffcab98f451db67bf498470dd | a57ac48fffd6aab0930861b9e08495437eb3d239 | /FoxDot/Troop/multiplayer_jam_17.py | 3449914985371b4d0aa8f6fa323f0da7c8b1602a | [] | no_license | diggleweb/algorithmic-music | aa4aee5214ef99be6ea9a9ee9c3fb9bfc084eb82 | 523e6f4c7157ff61e6feebe2b89b5b1764c51803 | refs/heads/master | 2023-07-30T16:10:04.242291 | 2021-07-15T22:48:19 | 2021-07-15T22:48:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,884 | py | Clock.meter = (3,4)
print(Clock.meter)
print(SynthDefs)
print(Samples)
print(Attributes)
we are down
sc >> play('sound {check}', dur=[0.25,1,2], rate=PStep(13,-1*PWhite(0.2,0.25),PWhite(0.2,0.25)), room=1, mix=0.2, pan=(linvar([-1,1],32), sinvar([-1,1],55)))
ns >> noise(
room=0.5,
octave=(5,6),
mix... | [
"vladislav.burzakovskij@satoshilabs.com"
] | vladislav.burzakovskij@satoshilabs.com |
29577dd61fc0b2ab4e46b2f21f32670e2dc1af00 | 1bc7053e7582e43bdd4b943c5700677e07449d3c | /pytsite/tpl/_error.py | 4bb04363d32ffdb9ef93b8c458e31aa365c0ac61 | [
"MIT"
] | permissive | pytsite/pytsite | f92eaa041d85b245fbfcdff44224b24da5d9b73a | e4896722709607bda88b4a69400dcde4bf7e5f0a | refs/heads/master | 2021-01-18T01:06:12.357397 | 2019-08-03T02:56:48 | 2019-08-03T02:56:48 | 34,899,242 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | """PytSite Templates Support Errors
"""
__author__ = 'Oleksandr Shepetko'
__email__ = 'a@shepetko.com'
__license__ = 'MIT'
import jinja2 as _jinja
class TemplateNotFound(_jinja.TemplateNotFound):
pass
| [
"a@shepetko.com"
] | a@shepetko.com |
4538d7e62dd4c9c9193ce83bf061350a67f1d919 | 55ffd013c48314e3b5fa53ce813a4b97bfa5e5d2 | /Day 14/day14.py | 08d72f6671c6e7ba4ff1465198948504ba23cdb8 | [] | no_license | MarynaLongnickel/AdventOfCode2018 | 4f93b8adcb24e44c2eb8fe352c13fc7c46748940 | 0abb6b4f508d9d7dd68157a24f1abb6f870c1c05 | refs/heads/master | 2020-04-09T14:01:36.048194 | 2018-12-28T19:48:28 | 2018-12-28T19:48:28 | 160,385,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | class Node():
def __init__(self, v = None, next = None):
self.v = v
self.next = next
e1, e2 = Node(3), Node(7)
e1.next = e2
e2.next = e1
start = e1
cur = e2
num = '409551'
n = 0
count = 2
recepies = []
done = False
while not done:
r = list(map(int,str(e1.v + e2.v)))
for i in r:
new = Node... | [
"noreply@github.com"
] | MarynaLongnickel.noreply@github.com |
7b36d7a5065fd89df2b5bc334d8040071b76cf75 | eb1a9a8a2b735a9f9eb0e8182e92897f6a2b0d2c | /linearReg_manual.py | 40aaa19107c292c38ef93f99003a7ba5cce6bb39 | [] | no_license | prateekpanwar/machineLearningModels | 0a12d69faa793809c64c55132d9c7f032ae51a54 | 04c4bebf323c667897185b593009c5bb470bf2e4 | refs/heads/master | 2021-07-23T03:42:27.993303 | 2020-04-15T19:46:35 | 2020-04-15T19:46:35 | 137,018,595 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | #writing linear reg algo
from statistics import mean
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import style
style.use('fivethirtyeight')
##################################define simple dataset#####################################
xs = np.array([1,2,3,4,5,6], dtype=np.float64)
ys = np.array([5... | [
"100605231@oncampus.local"
] | 100605231@oncampus.local |
cf5162cac66fc297d23a734d6bb7a8848f53e50b | 9e780f17eb49171d1f234944563225ca22b3c286 | /postgresqleu/confsponsor/management/commands/sponsor_generate_discount_invoices.py | ab716d6862d691c73452bd021d108291aeca7354 | [
"MIT"
] | permissive | pgeu/pgeu-system | e5216d5e90eec6c72770b88a5af4b3fd565cda59 | 885cfdcdadd4a721f72b699a39f26c94d1f636e0 | refs/heads/master | 2023-08-06T13:03:55.606562 | 2023-08-03T12:47:37 | 2023-08-03T12:47:37 | 161,434,221 | 15 | 27 | MIT | 2023-05-30T11:21:24 | 2018-12-12T04:48:14 | Python | UTF-8 | Python | false | false | 6,001 | py | # Generate invoices for discount codes. That is, sponsors that have ordered discount codes,
# that have now either expired or been used fully.
#
from django.core.management.base import BaseCommand
from django.utils import timezone
from django.db import transaction
from django.conf import settings
from datetime import... | [
"magnus@hagander.net"
] | magnus@hagander.net |
ee7756fe0f1dd8c92351b2653d9fa416284cdd6e | de919b727799fa3054386769466dc3e9b2f30322 | /utils.py | 88444485f7b3cb032377ab3132993c6bbc71a9d7 | [] | no_license | dengxiaotian123/EMN | 79471cd26e0055202f5566721b1bc30961f90adc | f4ecdf615b3f5f7e4b60c104d026a43756217b61 | refs/heads/master | 2023-01-02T20:17:16.933831 | 2020-10-31T08:44:48 | 2020-10-31T08:44:48 | 305,112,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,725 | py | #coding=utf-8
import concurrent.futures
import pickle
import numpy as np
from keras.preprocessing.sequence import pad_sequences
from keras.preprocessing.text import text_to_word_sequence
def build_data(lines, word_dict, tid=0):
def word2id(c):
if c in word_dict:
return word_dict[c]
els... | [
"dhnl2016@163.com"
] | dhnl2016@163.com |
4a9de25ca11e00c67d838a2589d66d6418e577d4 | 900b8dbfbd8a9a7899b3da3a0b24c03721b1ac49 | /daopilot/daophot.py | 280b7078aad4aa18760038ee3bb987b5c8993b98 | [
"BSD-3-Clause"
] | permissive | jonathansick/daopilot | e9735956b43428fe38db0656b06e246546e09efc | d1757f3df61b715606d2027bea0d71c85b8fab07 | refs/heads/master | 2021-01-10T18:40:17.811411 | 2014-05-30T23:39:30 | 2014-05-30T23:39:30 | 6,196,022 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,474 | py | #!/usr/bin/env python
# encoding: utf-8
"""
Class wrapper to daophot.
2012-05-05 - Created by Jonathan Sick
"""
import os
import sys
import pexpect
class Daophot(object):
"""Object-oriented interface to drive daophot.
:param inputImagePath: is the path to the FITS image that will be measured.
... | [
"jonathansick@mac.com"
] | jonathansick@mac.com |
db1e4cd907367ea490f246ec7b48230d612edf58 | f913913b9f248f5a5d38500f34980a1e81d9e23c | /authenticate.py | 9b0cc5df899687f0dfe880564126acbbc5ecb11e | [
"MIT"
] | permissive | ericpotvin/RaspberryEcho | f65ab73be453d5ba890d65c07c17599f4030a3b9 | bc49f7c48fcef849f096e746dd7920bd349bf51a | refs/heads/master | 2021-01-12T21:07:17.008669 | 2016-09-22T04:28:58 | 2016-09-22T04:28:58 | 68,559,965 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,515 | py | # -*- coding: UTF-8 -*-
""" Authenticate the user credentials
"""
from lib.AlexaService import AlexaService
from lib.Config import Config
import cherrypy
import os
import requests
import json
import urllib
class Start(object):
""" The Web object
"""
def index(self):
""" The main page
""... | [
"ericpotvin@users.noreply.github.com"
] | ericpotvin@users.noreply.github.com |
173ed8d2231ae8369216186c5c54ca5160d57e3f | 263f99fe094e4a6ad65fdd61a43fd3c2a10cd433 | /Python/OpenCVFaceRecognize/faceDetect/filters.py | 6438f25cb800548748577bd78a67487c94af2580 | [] | no_license | 6769/m14kabing | f08934efda1ba96ff6cfaf3e2ffbb1f1d6e15f4a | 5bcfc10d95ae0d3cb6dc8a7d958fa1605559bf0a | refs/heads/master | 2021-01-19T02:02:19.845158 | 2020-04-29T15:17:02 | 2020-04-29T15:17:02 | 18,762,879 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,824 | py | import cv2
import numpy
import utils
def recolorRC(src, dst):
"""Simulate conversion from BGR to RC (red, cyan).
The source and destination images must both be in BGR format.
Blues and greens are replaced with cyans. The effect is similar
to Technicolor Process 2 (used in early color movies)... | [
"5pipitk@gmail.com"
] | 5pipitk@gmail.com |
a46a35d0aa6bca0111fdad98c350780534df69cd | d088b4edfa6c4211c31f681947ad942e7a4974aa | /test.py | 7f4b252ecc9a22cdfd09511d1b4085f761a3201c | [] | no_license | leftshoe/cython-example | b5dfc875e85c19faa3a997741d8647ea4f5ab3ae | 3d181422b1a5e2e788cf045991acfffd0e880d6a | refs/heads/master | 2016-09-10T21:37:07.870489 | 2013-03-07T07:27:28 | 2013-03-07T07:27:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | import numpy as np
import heap
#import heap_original as heap
import time
# Make a initial heap
data = np.sort(np.random.rand(100000))
sTime = time.time()
# Do some processing
for i in range(100000):
data[0] += 0.1*np.random.rand()
#heap.siftup(data,0)
eTime = time.time()
print "Took: %1.2f seconds" % (eTime-sTime... | [
"aaron.defazio@gmail.com"
] | aaron.defazio@gmail.com |
3fd932279804d8d778f6c54d1e6481c85aea76df | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/containerservice/latest/outputs.py | 98aae238eabc64dcdf8cf187997aef870b01307b | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98,356 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
6f9598807bcbe723a47dac6ba58bb3cbe8d37e39 | 9d259b0fdfae72b1af15ec0419590c735bff6578 | /SQLite_example4a.py | b870f673f9e3a56550fe7819ff5f5deafb0fa4a6 | [] | no_license | petermooney/datamining | 7a0c68d44471434aa01a8e7b6dbe97bb76bc9f72 | 51812a0033a9dd0ec213c475484f0576a70d60e6 | refs/heads/master | 2021-01-10T21:29:43.280421 | 2013-12-04T22:15:15 | 2013-12-04T22:15:15 | 14,603,360 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,097 | py | ### This is source code used for an invited lecture on Data Mining using Python for
### the Institute of Technology at Blanchardstown, Dublin, Ireland
### Lecturer and presenter: Dr. Peter Mooney
### email: peter.mooney@nuim.ie
### Date: November 2013
###
### The purpose of this lecture is to provide students with an ... | [
"peter.mooney@nuim.ie"
] | peter.mooney@nuim.ie |
d44457e6bef9c78c814f71e2fa50950b6724d850 | 94c5dc7af2762d1ca30cda3ebc962085036a54d4 | /main.py | 13b309ce0fa80f7defeaa538d34e3a7fe69f0bbc | [] | no_license | sreeram79/trail_medical_survey | 71d9dc0ef3e93be35d332cc66d15d1413de49dc3 | 3610743fc30336d6e41257f69fb78616152dacd7 | refs/heads/master | 2021-08-28T15:00:10.386308 | 2017-12-12T14:24:44 | 2017-12-12T14:24:44 | 113,998,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,276 | py | import os, sys, traceback
from trialsurvey.csv_file_process import CSVFileReader
from trialsurvey.prob_trail import ProbabilityRecord
from trialsurvey.ra_input import RawInputCommand
def main():
try:
filename = 'trialsurvey.csv'
csvfile = CSVFileReader(filename)
header_list=csvfile.get_headerlist()
prob... | [
"noreply@github.com"
] | sreeram79.noreply@github.com |
685fe8a95e27c5d1242463044fe21807bea841f3 | 050694c84d3688958fa56c8f1e7a43e018c1552d | /resources/lib/utils.py | 652bb762b3debdd10f2f15062ec8084bd52f915f | [
"MIT"
] | permissive | dersphere/xbmcbackup | 69b472ef5737c4d5837153f8e967442f38382b67 | 2fd7b130c73bc6ef91cf2758417f368ef428c602 | refs/heads/master | 2020-04-08T04:06:09.982648 | 2012-09-13T14:52:17 | 2012-09-13T14:52:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | import xbmc
import xbmcaddon
__addon_id__= 'script.xbmcbackup'
__Addon = xbmcaddon.Addon(__addon_id__)
def data_dir():
return __Addon.getAddonInfo('profile')
def log(message,loglevel=xbmc.LOGNOTICE):
xbmc.log(encode(__addon_id__ + ": " + message),level=loglevel)
def showNotification(message):
xbmc.execu... | [
"robweberjr@gmail.com"
] | robweberjr@gmail.com |
7f8393fdeb7bf16bcdd2c3cacfde79321df3b658 | 7a7ccb87862fa51b83d231d265f0a73202c48703 | /lista03-geral/FibonacciNaoFoi.py | cf4048cc5c4e659cb2e8bb95150654d8861fab5a | [] | no_license | dlavinia/uri | 5fb962e9bb72e89724f3164b7459f53823573dff | 1ec7b5e867e59499f13acef98ba76e3c4881b486 | refs/heads/master | 2023-08-18T08:53:26.725048 | 2021-09-27T00:10:30 | 2021-09-27T00:10:30 | 395,132,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | #ta certo mas deu limite de tempo :C
def fibo(n):
if n==1:
return 0
elif n==2:
return 1
else:
return fibo(n-1) + fibo(n-2)
n = int(input())
lista = []
while n > 0:
lista.append(fibo(n))
n= n-1
lista_ok = lista.reverse()
print(*lista, " ")
| [
"dlavinia2003@gmail.com"
] | dlavinia2003@gmail.com |
2c5bf2bf8d23b2a78ba019cbb2fe8bfc6ee0c3ca | 205640a2a8681d74afd290846231fe5136617fff | /accounts/views.py | 441aa8d569cbab09bae77dd3f041368f4f147a39 | [] | no_license | devgel/FullStack-PythonDjango | 69244802958bd9a3f62d481fae6b44458381fa8a | 712493f239b9ffc966edf4ef83e7304890e832e3 | refs/heads/master | 2020-04-07T05:16:52.671511 | 2018-11-18T14:30:11 | 2018-11-18T14:30:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | from django.shortcuts import render,redirect
from django.contrib.auth.forms import UserCreationForm,AuthenticationForm
from django.contrib.auth import login,logout
# Create your views here.
def signup_view(request):
if request.method == 'POST':
form = UserCreationForm(request.POST)
if form.is_valid... | [
"argelpolicarpio@gmail.com"
] | argelpolicarpio@gmail.com |
e3ac7e428dfe0d3753d93c0d46206d6b3856e8e8 | 398b08d7a035825056dc6ff65188a9daf51cfa46 | /sample.py | 53d0bd68444bce2f70c66bdb999e580237ec91db | [] | no_license | uxdx/CryptoIntoNN | 5e4c0a276e9ef8ebf02170a47bb55fc63e53c4c7 | 0b5273f50b37e9df717d9e234931746f54c4c185 | refs/heads/master | 2023-07-24T16:45:07.808344 | 2021-09-05T07:48:26 | 2021-09-05T07:48:26 | 396,058,647 | 0 | 0 | null | 2021-08-29T12:33:23 | 2021-08-14T16:04:06 | Python | UTF-8 | Python | false | false | 8,878 | py | import numpy as np
import pandas as pd
SAMPLE_DATA= [
[32569.00, 32700.00, 32530.96, 32673.91, 726.200571],
[32674.35, 32870.00, 32579.43, 32790.08, 1284.616543],
[32791.71, 32887.90, 32630.00, 32775.89, 819.642472],
[32775.90, 32856.91, 32693.29, 32817.77, 531.816098],
[32817.77... | [
"uxdx@naver.com"
] | uxdx@naver.com |
00a18079b169ce59a3eecd93c7f89b7c002ec17f | 00669f6d510768fee3a4837c9d3a0b70f5e6e3b3 | /gen.py | e4f2b4e439ae89cf9d8106c951f149b6627be4d5 | [] | no_license | Jacuos/linParallel | 48a81730434c4325115d1c37e216f423983e1490 | 2d83a347d33c3a4045791bbf042c19b7e9d5043a | refs/heads/master | 2021-01-20T19:57:31.376733 | 2016-06-20T19:07:44 | 2016-06-20T19:07:44 | 61,137,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | import sys,random
def main(argv):
f = open(argv[1],'w')
dim = int(argv[2])
A = [[int for i in range(dim+1)] for j in range(dim)]
for x in range(dim):
for y in range(dim+1):
A[x][y] = random.uniform(-1000,1000)
for x in range(dim):
for y in range(dim+1):
f.wri... | [
"jacek.kozieja@gmail.com"
] | jacek.kozieja@gmail.com |
b7868249902bfe1fb69ee6e3267b9e1aab3b8417 | 6b247e365d97951ae7137bb8140447fe72100ff6 | /app/urls.py | c942d1ca3e5b888307b6d9ccafa4f13c869944b5 | [] | no_license | tharcissie/Discussion_Board | 27f251875218174b3285a48b5d1de58653930e5a | 42b3c14b9993a906dc6bfa142dab0d3ddfac66b8 | refs/heads/master | 2023-02-27T18:03:36.251799 | 2021-02-10T15:57:33 | 2021-02-10T15:57:33 | 336,992,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | from django.urls import path
from .views import home, topics, new_topic, signup, topic_detail,reply_topic, profile, delete_topic,update_topic
urlpatterns = [
path('', home, name='home'),
path('topics/<id>', topics, name='topics'),
path('topics/<id>/create_topic', new_topic, name='create_topic'),
path... | [
"tharcissieidufashe@gmail.com"
] | tharcissieidufashe@gmail.com |
c160b2fd652c4d0736f0a665cc390380549bddf8 | 5a0697981ec5af415bc907ce25bd52965b46234f | /community/views.py | c8cf09bf1599a1cf1d7e851f32e4df4f1c95109b | [] | no_license | Zeelcon/comm | 3398ce6d6d2a7749bc624f22d114db112e7affab | b93551896b00bde6222028b72cc345fa624c0741 | refs/heads/master | 2021-05-21T13:30:15.200492 | 2020-04-08T13:42:33 | 2020-04-08T13:42:33 | 252,667,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,224 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse, request
from .forms import CreateUserForm
from django.contrib.auth.forms import UserCreationForm
from django.contrib import messages
from django.contrib.auth import authenticate,login,logout
from django.contrib.auth.decorators import l... | [
"15217458846@163.com"
] | 15217458846@163.com |
f100b72745d582e380b0e88a97e27aa8d8d7f373 | 389e5d7ae4f604a3b2e8e0b4d8b33f8828b3ab3e | /tcp_psh_ack.py | fb61ab3b562a75b3533fb8eb8ae6d40193e2c2ac | [] | no_license | rizkyghosto/gighosto | 959163205bca3429786e2565d8796817dd4c0bca | e4d8ddc2dbd1559bd2fadf78da9eeb4f9afa0089 | refs/heads/main | 2023-05-22T16:13:15.146017 | 2021-06-13T10:29:53 | 2021-06-13T10:29:53 | 376,510,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,314 | py | import time
import socket, sys
from struct import *
# checksum functions needed for calculation checksum
def checksum(msg):
s = 0
# loop taking 2 characters at a time
for i in range(0, len(msg), 2):
w = ord(msg[i]) + (ord(msg[i+1]) << 8 )
s = s + w
s = (s>>16) + (s & 0xffff... | [
"noreply@github.com"
] | rizkyghosto.noreply@github.com |
ec041b2621b0dc49c1d05fa7ab066b9e1ca2feaa | a2705dca5db55b112b7a690962bd8aa256ed7564 | /back-end/pyworkflow/pyworkflow/nodes/__init__.py | 23853aa31688f5e047927fd93943fc682863b64e | [
"MIT"
] | permissive | wjhrdy/visual-programming | 5ea1ada48f17a596a89dba4eb2246e0bfab83571 | 8e8c6edafd98c42ad24967b8e0f1ee97be81819b | refs/heads/master | 2022-12-26T05:22:58.529184 | 2020-10-09T12:49:39 | 2020-10-09T12:49:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | from .flow_control import *
from .io import *
from .manipulation import *
from .visualization import *
| [
"matthew_thomas@hms.harvard.edu"
] | matthew_thomas@hms.harvard.edu |
15229c083ab6f2fca69c227fee1c7675b44be211 | 1e93545d9cc0ee2aef2f68a9fdd99bd64edeae3d | /Implement-6-Small-APP/2.lucky-color.py | 942f5e07836dba41b77c8916a0379e9cf0ebb51f | [] | no_license | spike688023/10-Real-World-Application | 3e7d6a15a76e9c2384a42d24235e6831bfbeb2c2 | 770c841ab3011d4875a88dc2d04a38ac417bdb8b | refs/heads/master | 2021-01-19T17:39:40.288635 | 2017-09-16T03:53:04 | 2017-09-16T03:53:04 | 101,082,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | """
choice(seq) method of random.Random instance
Choose a random element from a non-empty sequence.
每猜錯一次顏色,就把猜 錯的從 list拿掉.
"""
import random
colors = ['red', 'blue', 'green', 'purple', 'yellow']
luckyColor = random.choice(colors)
for i in range(3):
print('There are {} colors'.format(colors))
guess = inp... | [
"jack_6880hotmail.com"
] | jack_6880hotmail.com |
335643303130079ae5cb0edd6ad8a699c6391fe5 | 81a0a97e66cbcf86aa0c040fc3ccd06552ab179c | /accounts/views.py | 80ed108012bccd1a393ad7d1b1887c4c26cf612e | [] | no_license | ayush-karn/Quiz_app | 3de62264dd55c9fad466552fea3344a9c3268f88 | eda04e86e8b8c850472254fb443a4142753cb84b | refs/heads/main | 2023-06-06T12:03:16.750630 | 2021-06-26T21:18:15 | 2021-06-26T21:18:15 | 380,597,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,850 | py | from django.shortcuts import render,redirect
from django.contrib.auth.models import User
# Create your views here.
from django.contrib.auth import authenticate,login
from django.contrib.auth import logout
def login_attempt(request):
if request.method == "POST":
email = request.POST.get('email')
... | [
"ayushkarn2127@gmail.com"
] | ayushkarn2127@gmail.com |
d23690b10700d834432702a5b133c61e359439af | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-sql/azure/mgmt/sql/models/restorable_dropped_managed_database_paged.py | d6e432c2c35188bdfa6c829f58d7c60fe70a9ab3 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,036 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
a42b874d58734949d3b054019a599a8224df6ec5 | 216e6e4957e02780129ab4e917e94cfb975dbfcb | /chapter_6/es148.py | 22764021b34b3dcfda7b4d40ffc5d138be098555 | [] | no_license | DamManc/workbook | d7e72fd1ed098bd7bccb23fa5fd9a102cfff10db | 2103dbdc8a6635ffd6a1b16b581c98800c9f21a2 | refs/heads/master | 2023-04-19T21:26:23.940011 | 2021-05-23T22:37:27 | 2021-05-23T22:37:27 | 335,064,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | # Exercise 148: Play Bingo
from es147 import *
import copy
def main():
print('Welcome to the Bingo Game!!')
print('------ Your card ------')
card = bingo_card()
print_bingo_card(card)
n_calls = []
for i in range(0, 1000):
copy_card = copy.deepcopy(card)
gamble = False
c... | [
"damiano.mancini1@gmail.com"
] | damiano.mancini1@gmail.com |
35f62ae64a0ab7a5879238d77477d64c1beae21f | f10982b909f1c298d4a44caea022c346fdc3321f | /fibo.py | 0db54ba1364d8615d82a32d6884b859e1976daca | [] | no_license | Vidika/Python | 4cc8a91e9caf633d4e778ac0289b1e9e536103e3 | 22da0657c8154ae932464ccb6a390fbeca296879 | refs/heads/master | 2020-03-23T09:15:23.862167 | 2018-07-18T03:42:13 | 2018-07-18T03:42:13 | 141,376,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | def fibonnaci_numbers_upto_n(n):
previous=1
current=1
numbers=[]
while current<=n:
numbers.append(current)
previous,current=current,previous+current
return numbers
def encode(n):
numbers=fibonnaci_numbers_upto_n(n)
remainder=n
bits=['0']*len(numbers)+['1']
... | [
"vidikab@gmail.com"
] | vidikab@gmail.com |
a6a07450d50bc0b680aeccd879e4ad8909edd2f0 | 8bd6a9181e05ece2a607f40194a1c7f74e87682f | /section1/homework/day1/bai3.py | 7ef7f90542908a17bbb523a7a8c22c2888af0501 | [] | no_license | shadowstep666/phamminhhoang-fundamental-c4e25 | b9669c0ccecc3c1b027cdfaca6d0d6bae6f5bcc1 | 3d1d6cd239ca8963204e3b23ae01ea3aecd1178e | refs/heads/master | 2020-04-13T12:14:44.544845 | 2019-01-04T20:53:56 | 2019-01-04T20:53:56 | 163,196,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | c=int(input("enter the celsius temperature :"))
f= c *1.8+32
print ( c , "(C) =" , f , "(F)") | [
"noreply@github.com"
] | shadowstep666.noreply@github.com |
7efc8a8438108ce02035f70090cb8888400ff463 | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/notification/migrations/0004_auto_20180716_1216.py | 0191eb5e80b1b65fec501f3020d06bea0bfa08f5 | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | # Generated by Django 2.0.5 on 2018-07-16 06:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('notification', '0003_auto_20180613_1301'),
]
operations = [
migrations.AlterField(
model_name='appnotification',
nam... | [
"kanhaiyalal@policybazaar.com"
] | kanhaiyalal@policybazaar.com |
fb5fd8b8750934092164597d06bd43e67d19e4c4 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_97/768.py | 789102ddeb40b07f44f85d54dd152798feab35b8 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | import sys
def nbValidPermutation(i, maxi):
strF = str(i)
nb = 0
finded = []
for j in range(len(strF))[:-1]:
other = int(strF[j+1:]+strF[:j+1])
if other > i and other <= maxi and not other in finded:
finded.append(other)
nb += 1
return nb
def buildKelem(i, maxi):
strF = str(i)
nb = 0... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
83e19f4583eacef328f16c8bd2557547c4102e72 | 9e49244b88b0d49e735bbd8f33e53194fd29c054 | /ShoppingCart/models.py | 4857be945e4aa66822fbb0ca60150edfe46851ab | [] | no_license | stanyu2013/apps | 24c7edad58e09f9c292868ade05b01aa0309336b | f1123aafaab9f58ec2755a3a6027746c0f947f1e | refs/heads/main | 2023-03-18T15:48:07.868364 | 2021-03-12T22:12:57 | 2021-03-12T22:12:57 | 347,206,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | py | from django.conf import settings
from django.db import models
from django.utils.text import slugify
'''SIZES = (
('XXS', 'Extra Extra Small'),
('XS', 'Extra Small'),
('S', 'Small'),
('M', 'Medium'),
('L', 'Large'),
('XL', 'Extra Large'),
('XXL', 'Extra Extra Large'),
('XXXL'... | [
"noreply@github.com"
] | stanyu2013.noreply@github.com |
799385a40aad50c59c9dbece7f0c6505f3b5acd8 | b7f6cfda4fe68bde9d3896c5f29190c496b426d4 | /c11/a4/A4/pca/pca.py | fac16ec9745549148b21ef66d70e18deed3f52b0 | [] | no_license | aribshaikh/UofT-Projects | bca513e153fa30860c832fe9af48409ac79a9433 | 97c5b3ed782da53e4ce49c7526a6e47ad5bfc5ee | refs/heads/main | 2023-03-06T20:06:59.927356 | 2021-02-16T19:08:25 | 2021-02-16T19:08:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,164 | py | """
CSCC11 - Introduction to Machine Learning, Fall 2020, Assignment 4
B. Chan, S. Wei, D. Fleet
"""
import matplotlib.pyplot as plt
import numpy as np
import os
class PCA:
def __init__(self, Y):
""" This class represents PCA with components and mean given by data.
For the following:
- N... | [
"jeffersonli.li@mail.utoronto.ca"
] | jeffersonli.li@mail.utoronto.ca |
b3a0e01023c3bbe4e2be9de0b8979ca581c9ca10 | c6e9160522cc0014198320b0ccabbd11c9b55fe8 | /ex12.py | 25f0c415a166e80879db1eb06ea2f6a8ff22117d | [] | no_license | Girbons/LearnPythonTheHardWay | 256c45d094853e1ada0e664d8833ad1fab5bc1a5 | 77d1598a1d36d2ebf503eaeb4ed249c995b592fc | refs/heads/master | 2020-04-11T13:53:20.856074 | 2014-07-02T13:42:48 | 2014-07-02T13:42:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | from sys import argv
script, first, second, third = argv
print "The script is called:",script
print "your first variable is:",first
print "your second variable is:",second
print "your third variable is:",third
| [
"alessandrodea22@gmail.com"
] | alessandrodea22@gmail.com |
062f91b723b8c7772435b58db9b06d79e8559fab | f387405b9158701e1d5dabdd252ad9efaf108e5e | /tasks/__init__.py | bca084a6157dfea9c6ed8f30172efaf43a4efae2 | [] | no_license | ivov160/diary_parser | bdea5ca2cba306279cfe63f7400439c62d34d3cb | bfddc3d63f0e88dd306ba2956a81c88865c3ff68 | refs/heads/master | 2021-01-22T11:29:25.291687 | 2017-06-03T09:35:00 | 2017-06-03T09:35:00 | 92,704,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | import tasks.diary_posts
import tasks.file_writer
import tasks.post_filter
import tasks.data_extractor
import tasks.bruteforce_user_id
| [
"ivov160@gmail.com"
] | ivov160@gmail.com |
7937ed53104fe047714bf6e587ccd85bf22f019c | 0437ec3526cc39af1d8d87c2e3c0928b9740e7b9 | /Node.py | 19436774365bebf7a66124db81ab1caa08a93e7e | [] | no_license | wkcn/Flow | b5b2c15a72e2407fcce3e8d2535705acf9f11bb1 | 461b8c181b8bca68c41bb69d20e2a0083596cef9 | refs/heads/master | 2021-06-07T07:37:49.633042 | 2016-09-11T14:55:19 | 2016-09-11T14:55:19 | 67,905,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | #coding=utf-8
class Node:
def __init__(self, x, y):
self.x = x
self.y = y
self.ox = 0
self.oy = 0
self.edges = []
self.neighbors = []
self.redgreen = False
| [
"wkcn@live.cn"
] | wkcn@live.cn |
56c8e38291e2283bbfa53a777a7f7bb3664739d2 | 2924267d4cd143ba4638cb0234b0ad4ec1551ae3 | /lib/tournament-handler/sns.py | 49c607031c99321eea99b97471487e3b6cc520d0 | [] | no_license | joshjiang/smashgg-offline-tourney-notifier | d61c42deb78d290251d4fc092b676e68832e747d | aa1aa4643e0510615794cf331ad2c3fca8d76e86 | refs/heads/master | 2023-07-04T18:59:41.029916 | 2021-08-26T15:01:29 | 2021-08-26T15:01:29 | 390,794,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | class SnsTopic(object):
def __init__(self, sns_topic):
self._topic = sns_topic
self._phone = '8287354503'
def publish_message(self, tournament_data, tournament_link):
"""Get the topic from the AWS account."""
# Return an error if we don't have topics
try:
top... | [
"josh.jiang.dbf@gmail.com"
] | josh.jiang.dbf@gmail.com |
deec09e0baf2531114f192fdb1aba714d03af881 | 2a266dda00578ea177b231e8f0dfd14a1824d2e6 | /pw_ls/pw_ls_AB/test_decompress.py | 1ad25097f68c7ea5778186d55d9da1735b9235dd | [] | no_license | sanskrit-lexicon/PWK | fbb51c19d9169e4c28d5c9056484c4a53def78eb | 57d07725b828a95b22b859422287474bfd858ffe | refs/heads/master | 2023-08-17T04:32:37.387691 | 2023-08-15T18:34:46 | 2023-08-15T18:34:46 | 15,903,957 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | #-*- coding:utf-8 -*-
"""make_numberchange2b.py
"""
from __future__ import print_function
import sys, re,codecs
from make_numberchange2b import lsnumstr_to_intseq, decompress
if __name__=="__main__":
x = sys.argv[1]
seq,flag = lsnumstr_to_intseq(x)
print(flag,seq)
if flag:
d,flag1 = decompress(seq)
print(flag1... | [
"funderburkjim@gmail.com"
] | funderburkjim@gmail.com |
4a68e36b7f42290f625877fa13ce183047161721 | 303e1025fa6b5a7ae9b13285d82fbd1cc1d67c23 | /noweirds_list/settings.py | 2ba5f51178d74b74d1cec98ac9b1920888684eef | [] | no_license | technoweirds/craigslist-clone | 65d501bc892ee40fde8b585871d2c80258bfa06e | b9eb93bb55b0146c22063c2cc91742d9cb261499 | refs/heads/master | 2023-03-08T01:11:30.756298 | 2021-02-17T17:23:35 | 2021-02-17T17:23:35 | 298,990,537 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,415 | py | """
Django settings for noweirds_list project.
Generated by 'django-admin startproject' using Django 2.2.5.
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... | [
"technoweirds@gmail.com"
] | technoweirds@gmail.com |
3c6efaa9740b328d1508fc75df89820d4fa4ed29 | 7c01cd1df700a68965a22a041fcf0425fb5b8d2e | /api/tacticalrmm/apiv3/urls.py | 934da836b1079809c5346d405b12aac2207b14af | [
"MIT"
] | permissive | socmap/tacticalrmm | 61de15244c61edfb343314bd9e7d832b473df38e | 72d55a010b8a55583a955daf5546b21273e5a5f0 | refs/heads/master | 2023-03-17T23:50:37.565735 | 2021-03-05T23:05:17 | 2021-03-05T23:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | from django.urls import path
from . import views
urlpatterns = [
path("checkrunner/", views.CheckRunner.as_view()),
path("<str:agentid>/checkrunner/", views.CheckRunner.as_view()),
path("<str:agentid>/checkinterval/", views.CheckRunnerInterval.as_view()),
path("<int:pk>/<str:agentid>/taskrunner/", vie... | [
"dcparsi@gmail.com"
] | dcparsi@gmail.com |
21d471ed05699c506dff30c3733bd9c9159ab7a8 | 3e99efdbcf1a3839677bc4f444d46791e4efc408 | /main/migrations/0007_auto__del_error__add_errortype__add_field_uidstatus_error__add_field_u.py | 56e59123e9a914c266f45f4da72c9f044ff1a82b | [] | no_license | policy-innovations/survey-tracker | 226865b6e8ba320f1df71e04466390697628c42c | 78dea7b588da00a817e225679e4b844f55633b4b | refs/heads/master | 2020-06-04T04:29:54.222541 | 2011-07-20T13:53:55 | 2011-07-20T13:53:55 | 1,813,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,443 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting model 'Error'
db.delete_table('main_error')
# Adding model 'ErrorType'
db.crea... | [
"crodjer@gmail.com"
] | crodjer@gmail.com |
9e216c94f1b8abb2b98946061ab509f95cc8bb88 | aa8507007b4b1a8055da9161596714ed1f9c431c | /broad_crawler/broad/settings.py | 4c9710eb38fb48c262b7e26373350f8b1f28d60e | [] | no_license | chensian/Broad_Crawler | 7044ee599fd6d3c81454b1c5393405243ad33d2c | dffeb25485dc8e301c970c9688567214b0040fce | refs/heads/master | 2021-05-25T09:18:04.716241 | 2020-10-20T04:28:54 | 2020-10-20T04:28:54 | 126,963,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,037 | py | # -*- coding: utf-8 -*-
# Scrapy settings for broad project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/t... | [
"1217873870@qq.com"
] | 1217873870@qq.com |
b3010fd68667fb943f916bb0bc8359acdf954995 | b607957ffc579922db21e28aa7dc909088493e1e | /tools_python2.py | e873c02470c47cdef5bf14f3f1a4f35ce9b07609 | [] | no_license | Hyyudu/PolyGen | f4a13f667e37e8bc844f43e13fc33e15bbee320f | 32e2d03696612fce7196f0641cc546fb296b7515 | refs/heads/master | 2021-01-10T17:47:46.761692 | 2016-10-01T19:54:09 | 2016-10-01T19:54:09 | 48,236,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | # coding=utf-8
from tools import *
| [
"hyyudu@gmail.com"
] | hyyudu@gmail.com |
f49e1dbe8c810a08a570e388f162a8d1c59fb1ad | ec4b8410109f5b5c327bd1e38ca72af3642e28f4 | /tf-Faster-RCNN/Networks/proposal_layer.py | 84d679302bf5fbd6a880100cbe8c8328c7cde2aa | [] | no_license | David-webb/Faster-Rcnn | c0d5ac4fd4c5a2a42f84f9bfbf51c802e8aa61b7 | 34721a8f19fdd39835611603e826ae2ccb7b8f37 | refs/heads/master | 2022-10-01T00:03:47.146419 | 2022-08-05T03:16:34 | 2022-08-05T03:16:34 | 72,858,901 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,701 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 2 19:25:41 2017
@author: Kevin Liang (modifications)
Proposal Layer: Applies the Region Proposal Network's (RPN) predicted deltas to
each of the anchors, removes unsuitable boxes, and then ranks them by their
"objectness" scores. Non-maximimum suppression removes propos... | [
"471435549@qq.com"
] | 471435549@qq.com |
a27ff143e1c2637535d9b42770bf576b53aaed96 | f2f03da38885dc63e61b516e9fa5d3bd2ddd123a | /CO1/leapyr2.py | 1c1b146ca1df96ec1e67de16032eef66f34942dd | [] | no_license | shahanavp/python | 441ff7168a63626633d1ca84e7cfe64d4a8ac818 | 305cf3c91e14ea8913edefb68770bf238d6916ab | refs/heads/main | 2023-03-25T14:48:26.767215 | 2021-03-24T17:16:14 | 2021-03-24T17:16:14 | 347,891,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | yr1=int(input("enter the current cyear"))
yrn=int(input("enter last year"))
for i in range(yr1,yrn+1):
if (i%4==0 or i%100==0 or i%400==0):
print(i)
i=i+1
| [
"noreply@github.com"
] | shahanavp.noreply@github.com |
b6f4646277645361f9fc6e70434c49499d8d65c8 | d76b83351c578ae62f67d2005264e6f963b8ef9a | /defUFO.py | f12d2acfc801d5aac632edfbe2aec34119d3cfbc | [] | no_license | Eze-NoirFenix/Help | 8397c0003675bbebf07ae979d3bab3f96b002675 | e308ab516e62eaee139d861f09f477723b6ee360 | refs/heads/main | 2023-04-26T23:55:48.602625 | 2021-05-31T13:20:27 | 2021-05-31T13:20:27 | 372,400,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,241 | py | # nave enemiga
import pygame
from pygame.sprite import Sprite # Pygame sprites must have a self.image and a self.rect
class ufoShip(Sprite): # class que representa los enemigos
def __init__(self, defSettings, Image): # deja la nave en su posicion inicial
super(ufoShip, self).__init__()
self.img ... | [
"noreply@github.com"
] | Eze-NoirFenix.noreply@github.com |
32370305956bdaa9a3226650e42697ee227b1f90 | 9ac405635f3ac9332e02d0c7803df757417b7fee | /cotizaciones/migrations/0042_auto_20191019_0954.py | 236d57369a78000a98643a41cf309646161b8d74 | [] | no_license | odecsarrollo/07_intranet_proyectos | 80af5de8da5faeb40807dd7df3a4f55f432ff4c0 | 524aeebb140bda9b1bf7a09b60e54a02f56fec9f | refs/heads/master | 2023-01-08T04:59:57.617626 | 2020-09-25T18:01:09 | 2020-09-25T18:01:09 | 187,250,667 | 0 | 0 | null | 2022-12-30T09:36:37 | 2019-05-17T16:41:35 | JavaScript | UTF-8 | Python | false | false | 838 | py | # Generated by Django 2.2.6 on 2019-10-19 14:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cotizaciones', '0041_cotizacion_revisada'),
]
operations = [
migrations.AlterField(
model_name='cotizacion',
name='e... | [
"fabio.garcia.sanchez@gmail.com"
] | fabio.garcia.sanchez@gmail.com |
e2533c04d73ecafbadbef614614cc79f9af8fafb | 25541c41f3d0ee71f44c8a0c917b790a077c144f | /bibliography/migrations/0009_auto_20170224_2035.py | 7016b00211fb427cf1e5463078c106b607ae1a6d | [] | no_license | gorarakelyan/armtreebank | 4da98d126a0e95ec7f4a04f70e0bbefea0bb3ed2 | 798b824969962083b82593c9d0bdfe59259fd2b6 | refs/heads/master | 2021-01-19T20:41:54.562374 | 2017-06-10T15:21:44 | 2017-06-10T15:21:44 | 88,538,174 | 0 | 0 | null | 2017-04-17T18:32:34 | 2017-04-17T18:32:34 | null | UTF-8 | Python | false | false | 1,703 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-24 16:35
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bibliography', '0008_press_link'),
]
operations = [
migrations.AlterField(
... | [
"gor19973010@gmail.com"
] | gor19973010@gmail.com |
017d19b97fd8f6aab8a08babe66bec2918da227a | 233928d206e13e068cf8cb5ff7888c9a2d84ad61 | /swea/D5/swea_1242_암호코드스캔.py | 36d01ac84b27da5410b011fd26f7544b5e741c33 | [] | no_license | Jinwoongma/Algorithm | 7f6daa2d3c2c361059c09fb4fe287b1cce4863e2 | 78803f4572f1416451a9f4f31f53b7d653f74d4a | refs/heads/master | 2022-10-07T22:53:20.333329 | 2020-06-07T13:27:47 | 2020-06-07T13:27:47 | 237,114,107 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,455 | py | hcode = {'0':'0000', '1':'0001', '2':'0010', '3':'0011',
'4':'0100', '5':'0101', '6':'0110', '7':'0111',
'8':'1000', '9':'1001', 'A':'1010', 'B':'1011',
'C':'1100', 'D':'1101', 'E':'1110', 'F':'1111'}
scode = {211:0, 221:1, 122:2, 411:3, 132:4, 231:5, 114:6, 312:7, 213:8, 112:9}
TC =... | [
"jinwoongma@gmail.com"
] | jinwoongma@gmail.com |
7302f79820ed48a59c38e2c5c86e570ebdcea90f | 9128fa598cc7a3e1d494243b7da26adaed098412 | /distributed_gp/modified_files/run_distributed_gp_test.py | e878b7c48de4f571a005edb70185ccd5004583c8 | [] | no_license | daifanxiang/CityBeat | ff45967f48fc7a65337300fc32cf9f8088471fe3 | 6b7bbb4fc50446f7718dd456e6cd4fcd8082fca3 | refs/heads/master | 2021-01-15T21:19:35.069155 | 2013-04-11T02:27:43 | 2013-04-11T02:27:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,160 | py | import os
from rq import Queue, Connection
#from test import haha
from do_gp import Predict
from redis import Redis
import time
from random import randrange
from data_process import find_photos_given_region
from datetime import timedelta
from datetime import datetime
import pymongo
import calendar
def read_regions()... | [
"oeddyo@gmail.com"
] | oeddyo@gmail.com |
cb2c58b73f1b5eed4677513e52d9a302b7685bc1 | 34cf8f3eb624d7ba65da8ef3099fea0c5d1b42b9 | /control/Client.py | 6d358ab5d0b24bd4198ce3f459b06454b933c50c | [] | no_license | jfwang213/graduate_demo | 7d09058d37da750f3efa02f57d595e5208e5b0a0 | 74dd3ab60b84c5a71a21e2a706926187621dd94a | refs/heads/master | 2020-12-30T10:50:24.244570 | 2011-12-15T08:59:41 | 2011-12-15T08:59:41 | 2,035,956 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,421 | py | #!/usr/bin/env python
from Constants import Constants
from gnuradio import gr, modulation_utils
from gnuradio.eng_option import eng_option
from optparse import OptionParser
import usrp_receive_path, usrp_transmit_path
from transceiver import my_top_block
import struct
class Client(object):
def __init__(self):
... | [
"jfwang213@gmail.com"
] | jfwang213@gmail.com |
7444b56e9b7ed51e1b6516cfeff32c7b8bda3da1 | 997f6ee474c95a90af7af6294583102fc8c4bf14 | /preprocessing/simplepreprocessor.py | e7bfb9903dea364e8169e70631c08d3ed4a93f00 | [] | no_license | ABnoLecture/Vehicle-registration-number | f2b15fb01593560b2532fe34f20a0f35738229d1 | d3799c73d8cc3c9ab360a8e9204c581d321c7424 | refs/heads/master | 2021-04-06T02:34:40.768441 | 2018-03-26T21:45:38 | 2018-03-26T21:45:38 | 124,590,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | import cv2
class SimplePreprocessor:
"""docstring for SimplePreprocessor."""
def __init__(self, width, heigth, inter=cv2.INTER_AREA):
#Se le asigna un valor de alto, ancho e interpolacion
self.width = width
self.height = heigth
self.inter = inter
def preprocess(self, image):... | [
"noreply@github.com"
] | ABnoLecture.noreply@github.com |
f68850fab00b0d8d341b87258702a748a0dddf37 | 458f75da364b2e3cefb945b3a7cdaf2bc12ec356 | /config.py | a27b5c0c402790ea61179ec4a046b3b9abd0f2e4 | [] | no_license | kuruoky/TestProj1 | 32cbaa53a757a74bab21f8b5dc49cb97cb6695c9 | 10b3a8449fd97af18c101d2dff902048f9ad24e4 | refs/heads/master | 2020-04-23T16:43:00.144416 | 2019-02-18T16:04:55 | 2019-02-18T16:04:55 | 171,307,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | #data
import os
logdir = './log'
dataroot='./data' #./data/train/img ./data/train/gt
path_to_train_lmdb_dir = os.path.join(dataroot, 'train.lmdb')
path_to_val_lmdb_dir = os.path.join(dataroot, 'val.lmdb')
path_to_log_dir = logdir
test_img_path='./data/test/img'
result = './result'
lr = 0.0001
gpu_... | [
"noreply@github.com"
] | kuruoky.noreply@github.com |
86e9d0a7a6b0e7dc34028e374c0ad1fcaaabcd29 | c80b21fc4ed23d95b4a7a53f16c94411332e0504 | /email_slicer.py | 485bae57b5f4697402c3c3683d3721cc126982cf | [] | no_license | gbanerje/MyRepository | 380fdeec5bfd176568322a1b37a187b8106378ff | 1cb9453f6f78c2d07ee2a3a5d469bb8280602dee | refs/heads/master | 2020-04-11T01:24:14.065048 | 2018-12-12T07:16:48 | 2018-12-12T07:16:48 | 161,413,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | #get email id
email = input("what is your email address?:" ).strip()
#slice username
username= email[:email.index("@")]
print(username)
#slice domainname
domain = email[email.index("@")+1:]
#format message
output = "Your username is {} and domain name is {}".format(username,domain)
#dislplay output message
pr... | [
"gautam.banerjee.ext@nokia.com"
] | gautam.banerjee.ext@nokia.com |
755726a3c93aceffe88779b448d2cf3a2e35ae45 | 9d209c5f2c93a512e83bd0eaee9d8c29750e13d5 | /models/__init__.py | e8229d2b6f7f0915b8abfef6863e8f14964f9c77 | [
"MIT"
] | permissive | SwithinHwong/AUNets-Aff-Wild2 | 396fa51b6541971bdb01e3ff62691958f30c1d7a | c9f99a06c455db249be72acd08b4cc4601259ed3 | refs/heads/master | 2020-12-03T22:11:14.443712 | 2020-01-03T06:00:45 | 2020-01-03T06:00:45 | 231,502,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | # import sys
# sys.path.append('..')
# from ops import *
# from utils import *
| [
"rv.andres10@uniandes.edu.co"
] | rv.andres10@uniandes.edu.co |
a8d0151455b9f1aa60672a576787ac831af8eb55 | e417efe334ec78ee0f079e3e8eb0d2347c3e847b | /config/urls.py | b19f72817c476a566402ef00336fed57078493ce | [] | no_license | TISB-Social-Good/core-server | 7db018c7ac381de6b18d69b4a2c6e5f4a14e729d | d0904695ebee709ec4b4ce43c9955e7f19c6b9ac | refs/heads/main | 2023-08-25T22:29:22.664773 | 2021-11-11T22:08:05 | 2021-11-11T22:08:05 | 421,803,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from django.urls import path
from config import views
urlpatterns = [
path('signup/', views.signup, name="signup"),
path('activate/<uidb64>/<token>/',views.activate, name='activate'),
] | [
"40730714+sarafraghav@users.noreply.github.com"
] | 40730714+sarafraghav@users.noreply.github.com |
bd44b70dd13d7fac8ccc49cc076a5e40e6a79434 | 591f2520913a1ef99bb7e375e447107978f082d7 | /orm/pracownicy_orm/zapytania_orm.py | f9be1c5847b3ab8b4b216ebb5c61ffb3c29930d9 | [] | no_license | Mery18/gittest | 95805211fe70e3dfee7ac93251911155a13f16bd | ddf9dbd7b0853856c2ba86293cd77e4e26c257ea | refs/heads/master | 2021-01-20T15:07:28.007493 | 2018-04-17T12:10:30 | 2018-04-17T12:10:30 | 82,796,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,930 | py | # -*- coding: utf-8 -*-
from peewee import *
baza_plik = "pracownicy.sqlite3"
baza = SqliteDatabase(baza_plik) # ':memory:'
class BazaModel(Model): # klasa bazowa
class Meta:
database = baza
class Dzial(BazaModel):
id = IntegerField(primary_key=True)
nazwa = CharField(null=False)
siedziba ... | [
"kl3ag1@komp05.lo1cg.org"
] | kl3ag1@komp05.lo1cg.org |
2d81f3ed38bf8b5a19078da061350ef870f8b0de | 2d9a627b85154a05df5610f5776a8b0874f9febe | /sg/framer.py | b87be04bd4ee1f3deca312656b5af45cb003b9b3 | [] | no_license | LiamBindle/sg-restart-regridder | 6dc76f2cbda1e610e4c1855d89e7d126e128119e | 3b9c13fc344b917f28c3683fc09096e9c82dca85 | refs/heads/master | 2021-07-24T17:26:05.826469 | 2020-01-12T19:59:36 | 2020-01-12T19:59:36 | 215,572,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | import matplotlib.pyplot as plt
import cartopy.crs as ccrs
from sg.figure_axes import FigureAxes
from sg.experiment import Experiment
def plate_carree(experiment: Experiment, coastlines={'linewidth': 0.8}):
proj = ccrs.PlateCarree()
ax = plt.subplot(1, 1, 1, projection=proj)
ax.set_global()
ax.coastl... | [
"liambindle@gmail.com"
] | liambindle@gmail.com |
86bc3e6b0f90f98530e34516fecb380a33c107ad | ffd71350156319a276b16ee47e1b15c26c574f6c | /tests/rule_based_profiler/domain_builder/test_domain_builder.py | 6b873901894c7a9d74b0e31087eb32df6553469f | [
"Apache-2.0"
] | permissive | Tianguistengo/great_expectations | 48a54645e965e8499fbb72946e80478a564961a4 | 17d499f802a01cd2bd1e4a6baa01a4d5ff9c154d | refs/heads/main | 2023-06-09T07:47:50.065818 | 2021-06-23T18:48:27 | 2021-06-23T18:48:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,103 | py | from typing import List, Optional
from ruamel.yaml import YAML
from great_expectations import DataContext
from great_expectations.rule_based_profiler.domain_builder import (
ColumnDomainBuilder,
DomainBuilder,
SimpleSemanticTypeColumnDomainBuilder,
TableDomainBuilder,
)
from great_expectations.rule_ba... | [
"noreply@github.com"
] | Tianguistengo.noreply@github.com |
ae689e1c15c82bffc24fbe2af3e17ee0844003d4 | 7fb9bfe9473f9d85a4eaa775d0dc2c270ab5313e | /simulation_results/ppe_090_new_strain_sens_low/ppe/simulations/plot_all_excel_files_2.py | 5d9080a44642c25e026d72477abd101a59310512 | [] | no_license | htahir2/covid_intra-hospital_model | cfbe86d175ecd950a285e913c8c7c658f396917e | ab2ec3452303bff6fbf5e084cbc8fc80bd97c287 | refs/heads/main | 2023-06-19T16:40:59.681356 | 2021-07-20T06:55:13 | 2021-07-20T06:55:13 | 328,629,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,719 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun May 12 16:09:14 2019
@author: hannantahir
Adapted by Thi Mui Pham
"""
import networkx as nx
import pandas as pd
pd.options.mode.chained_assignment = None
import numpy as np
import datetime as dt
from datetime import timedelta
import seaborn as sns
impor... | [
"thi.mui.pham@posteo.de"
] | thi.mui.pham@posteo.de |
08705d72ea243e75252f62cd0fc1ae2a2944a1bc | 84cbf37a81740c3bdd7c4dcf1a0afaf020ba0402 | /doc/conf.py | 68ccb1aa7dba38fd554f13850c279029c01c44f1 | [
"MIT"
] | permissive | realizeme/blinker-study | 396fc9ab8fc90b382e9da1057d44c59231fff90f | cb687d38b178aacd19bcc9e800e178948c6b7e9b | refs/heads/master | 2020-03-22T07:18:50.977690 | 2018-07-04T10:02:08 | 2018-07-04T10:02:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,065 | py | # -*- coding: utf-8 -*-
#
# app documentation build configuration file.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commente... | [
"hsboee@omnious.com"
] | hsboee@omnious.com |
b9b92335eba3bef772db5c6bf7d209beeab3bc9b | a7e38225a9cba48eafae6c9de303cb1de8339416 | /server/config.py | d159dedeae492c3f470bebc71328c21ed55b6193 | [] | no_license | TamirTapiro/Flask_Task_Api_with_Repl | 052767c5271b1617dff2c6b71bf402223e39b8f5 | 40c8881921327ffa70c0e26d27cb5b5a3545c43b | refs/heads/master | 2023-06-17T02:00:00.674117 | 2021-07-02T10:09:29 | 2021-07-02T10:09:29 | 381,181,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | # config.py
DEBUG = True
SECRET_KEY = 'TheMostSecretKeyInTheWrold'
SESSION_DURATION = 120
MONGO_URI = "***********************************************"
MY_DB = "todo_database"
TASKS_COLLECTION = "tasks"
USERS_COLLECTION = "users" | [
"tapirotamirsh@gmail.com"
] | tapirotamirsh@gmail.com |
1c5624a6732baf17a13c3731ad4d34cdcf59756b | 85af8d0e88196de1d316d6f3c7b214642bfe0951 | /python/rawToPOS.py | a5f56d07842250c0f07115b41a74748e51b7269f | [] | no_license | dileepkamath/Projects | 719c0796f2eddabe3afc788be24a345ab4d33105 | 92e6a1a2e4a4c281a57ce53cb480fe9da02240af | refs/heads/master | 2020-01-23T21:08:42.339435 | 2016-01-07T02:44:09 | 2016-01-07T02:44:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | import nltk, re, pprint
from nltk import word_tokenize
def ie_preprocess(document):
sentences = nltk.sent_tokenize(document)
sentences = [nltk.word_tokenize(sent) for sent in sentences]
sentences = [nltk.pos_tag(sent) for sent in sentences]
return sentences
source = "My grandfather is going to the hospital. Does ... | [
"5884seiya@gmail.com"
] | 5884seiya@gmail.com |
43a5dfb42d3699d30d9b9899baa6db5097933efe | ce866aa2edc54a0666b9a84719335295fca3155e | /demos/demo.py | 56ed94a2e5a1ead1b7ad8be0cbc421af9b3ceb56 | [
"MIT"
] | permissive | Aboghazala/AwesomeTkinter | 8e9a3b0e20ce4b5469c08efd46d320fa2db4cc4a | 73f638ac432bafbbd4296588a3d20f27f8570577 | refs/heads/master | 2023-09-03T18:46:40.435405 | 2021-11-07T22:57:06 | 2021-11-07T22:57:06 | 295,693,212 | 96 | 12 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | import tkinter as tk
from tkinter import ttk
import awesometkinter as atk
# our root
root = tk.Tk()
root.config(background=atk.DEFAULT_COLOR)
# select tkinter theme required for things to be right on windows,
# only 'alt', 'default', or 'classic' can work fine on windows 10
s = ttk.Style()
s.theme_use('default')
# 3... | [
"mahmoud_elshahhat@yahoo.com"
] | mahmoud_elshahhat@yahoo.com |
a2ea39c1e9140dfea655dbbdad6828663edf2923 | bd6bf14c92de71a50d782b999b2e8471902c4b5d | /AE/ProblemInstances/HCSP-3O-MPE/generador_workload.py | 67e07b6f75b2ed3141cb32b637366aa2f97397e7 | [] | no_license | sudhanshupatra/hcsp-chc | 0e3f8b3757223af665fdaf49d44a5d5e2ff203da | 591a1746f6e85347057b16c0ebf26717d036cd53 | refs/heads/master | 2020-12-24T15:14:18.750958 | 2013-04-07T05:42:49 | 2013-04-07T05:42:49 | 35,659,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,787 | py | #encoding: utf-8
'''
Created on Oct 3, 2011
@author: santiago
'''
import sys
import random
# Todas las unidades de tiempo son segundos.
TO_min = 60 # 1 minuto.
TO_max = 20*60*60 # 20 horas.
# Intel Xeon E5440: cores=4, ssj_ops=150,979, E_IDLE=76.9, E_MAX=131.8
TO_default_ssj = int(150.979 / 4)
TO_min_ssj = ... | [
"santiago.iturriaga@2f77c51a-9e79-da1f-09b5-e1d637586647"
] | santiago.iturriaga@2f77c51a-9e79-da1f-09b5-e1d637586647 |
2cf1eca6b8cf431c5a069121e31fdf491999f772 | b559cf7ed26cde4289bc5d54cef8b5c6e3777c5d | /10-rest/server.py | 06dde7590f86c6fcaf5b8f771a91f7361f0f9696 | [] | no_license | mreichl-tgm/sew-5 | d2f5cb3f8a0a7b3351b6d34d6fb1c779c46ff594 | 32cf164349a6345a68ed2b019bf1cc9a54c64ed9 | refs/heads/master | 2021-01-23T20:05:18.787292 | 2018-06-27T09:19:55 | 2018-06-27T09:19:55 | 102,846,310 | 0 | 1 | null | 2018-03-20T19:43:26 | 2017-09-08T09:48:48 | HTML | UTF-8 | Python | false | false | 65 | py | class Server:
pass
if __name__ == "__main__":
Server()
| [
"markus@re1.at"
] | markus@re1.at |
0db94add5b7e49358560f7ec98edbab68fd92c66 | 1c338f83e97ea83a94cdc8fa1685885f2be96323 | /author_id_adaboost/nb_author_id.py | af629c6902da8805624f630f6f8a1751154778eb | [] | no_license | Lakshadeep/machine_learning | 5b175245856109e5360a3c7444eb8a87cb66edb2 | 622925011cea9990c5790d75781e6322429bec2a | refs/heads/master | 2020-12-24T06:51:16.276552 | 2016-08-03T18:26:05 | 2016-08-03T18:26:05 | 63,354,580 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | 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
from email_preprocess import preproc... | [
"lakshadeep.naik@gmail.com"
] | lakshadeep.naik@gmail.com |
1d8d5b62fb8428f787d89e9d89d9b41d6c5cab39 | 91a20a1eefcf0549e6bb4fa1d3cc40a5fcc1bf7a | /mojprojekt/sklep/migrations/0001_initial.py | bd5f10a13fe020501b556ecf80434e421874109c | [] | no_license | Saiter711/Django-Case | 092f030aa336c62d2e7bd6988c8045f31622003e | f4846a9db1e67ccfc27b3cc89165061e0fae24e2 | refs/heads/master | 2020-12-01T21:37:13.205690 | 2020-03-05T14:23:38 | 2020-03-05T14:23:38 | 230,778,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | # Generated by Django 2.2.7 on 2019-11-28 16:30
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.AutoField(... | [
"P.Lempio@stud.elka.pw.edu.pl"
] | P.Lempio@stud.elka.pw.edu.pl |
6f9f8130e409b273fe17ea85e9f237087d3bd4de | a5e0453f56773229e2cfe6698d4a57b13b920bfe | /fixture/db.py | 2bad60e1c029ded2966c1e326612276c9cac8c69 | [
"Apache-2.0"
] | permissive | baowyld/Task-1.1 | cf1a602670ab1a8d7de136526a7acddfe6c1c5aa | 6fdce8203fb0ccf4edb35213b916026b609e496d | refs/heads/master | 2021-05-08T19:47:52.796637 | 2018-04-05T22:46:54 | 2018-04-05T22:46:54 | 119,579,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,423 | py | import pymysql.cursors
from model.contact import Contact
from model.group import Group
class DbFixture:
def __init__(self, host, name, user, password):
self.host = host
self.name = name
self.user = user
self.password = password
self.connection = pymysql.connect(host=host, ... | [
"bao.wyld@gmail.com"
] | bao.wyld@gmail.com |
308de907bdf4c8d38504cf22864287ba066e8e21 | 49644566d1d421afcf31da9b374516216b448e67 | /spider/qiubai.py | e0b5dcccb623289a669c03e3517e03d15c241eb5 | [] | no_license | goosling/PythonTest | 6ba687decf19a415a110d764e3c2bdafe417a190 | 09bd6135cb5871abcc251fa0fc2ffc18600a4574 | refs/heads/master | 2021-01-10T10:48:01.436065 | 2016-01-09T00:47:43 | 2016-01-09T00:47:43 | 48,020,432 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,260 | py | __author__ = 'joe'
# -*- coding: utf-8 -*-
import urllib
import re
import thread
import time
import urllib2
class Spider:
def __init__(self):
self.page = 1
self.pages = []
self.enable = False
# 将所有的段子都抠出来,添加到列表中并返回列表
def GetPage(self, page):
myUrl = 'http://m.qiushibaike.c... | [
"joehuang920@gmail.com"
] | joehuang920@gmail.com |
1c11ede580dfd0e97ca7791608ac08e13a0fb46d | 58c29a2e7d0000a4bc4781dc35ea5a6f693ff9b4 | /ch13-keras.py | 2811a268cec278446ad765827e934504cd181cdc | [] | no_license | Najah-lshanableh/python-ML-book-Raschka | b251b86ce66ea175e7c493d7a06ac07aa8a85d8e | 3e69c6f9ee8514888b45e8a882c25bafafd7f3d5 | refs/heads/master | 2020-07-01T05:04:24.064308 | 2016-10-12T08:02:37 | 2016-10-12T08:02:37 | 74,093,587 | 2 | 1 | null | 2016-11-18T03:54:55 | 2016-11-18T03:54:55 | null | UTF-8 | Python | false | false | 2,719 | py | import os
import struct
import numpy as np
def load_mnist(path, kind='train'):
"""Load MNIST data from `path`"""
labels_path = os.path.join(path,
'%s-labels.idx1-ubyte'
% kind)
images_path = os.path.join(path,
'%s... | [
"robbie@soha.io"
] | robbie@soha.io |
7f18b56489ef36f4e2391878671a569f4252027d | 1ac9f756c5bab3ae8ae2df8daa596b6fc55b63d1 | /backend/accounts/views.py | c3104129fe20c9ad274477dc8f541600ce56fc03 | [] | no_license | woorud/facebook_clone | 6520adbf5e5aaeb3f517abe7920a0b90096e4f89 | a5b96f215c74e2960465cd2a96568e57db92043c | refs/heads/master | 2022-12-11T18:26:07.648768 | 2020-08-29T14:45:43 | 2020-08-29T14:45:43 | 277,793,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,907 | py | from django.shortcuts import render, redirect
from .models import *
from django.contrib.auth import authenticate, login
from django.contrib.auth import logout as django_logout
from .forms import SignupForm, LoginForm
from django.shortcuts import get_object_or_404
from django.contrib.auth import get_user_model
from djan... | [
"woorud96@gmail.com"
] | woorud96@gmail.com |
59b2d6adf466bc8e3c788a1859a533dc0a502e2e | f5ca0a9f4e68c4b0d0986e074a22ee7de3fec085 | /api/config.py | a13eaf294d6bc09a5d8a1cdd0ee5dbbe3bdb783a | [] | no_license | awaris123/gym-notes | 80800bdd91c5b3300fbc4a4d78af2b3c32a0607c | 7a23f6824d1d02ca1c53a8e8d24efcca770d7cf1 | refs/heads/master | 2022-12-12T10:38:09.748999 | 2019-11-08T22:07:33 | 2019-11-08T22:07:33 | 190,944,746 | 0 | 0 | null | 2022-12-08T06:15:55 | 2019-06-08T23:30:14 | Dart | UTF-8 | Python | false | false | 231 | py | import firebase_admin
from firebase_admin import credentials, auth
import json
file = open('keys.json', 'r')
keys = json.load(file)
cred = credentials.Certificate(keys['firebase-admin-key'])
firebase_admin.initialize_app(cred)
| [
"awaris@hawk.iit.edu"
] | awaris@hawk.iit.edu |
f06a21f022b3d3742cee8df6c8048fcc34022202 | a51854991671a4389902945578288da34845f8d9 | /libs/UserInterface/TestPages/LampHolderTest.py | e9567659c28b0e4822d07ddbb3702556f7e9276b | [] | no_license | wuyou1102/DFM_B2 | 9210b4b8d47977c50d92ea77791f477fa77e5f83 | 69ace461b9b1b18a2269568110cb324c04ad4266 | refs/heads/master | 2020-04-13T18:54:20.045734 | 2019-06-17T12:46:23 | 2019-06-17T12:46:23 | 163,387,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | # -*- encoding:UTF-8 -*-
import wx
import logging
import Base
from libs import Utility
from libs.Config import Font
from libs.Config import Color
from libs.Config import String
logger = logging.getLogger(__name__)
class LampHolder(Base.TestPage):
def __init__(self, parent, type):
Base.TestPage.__init__(s... | [
"jotey@qq.com"
] | jotey@qq.com |
a22ffc16dfff771c3f037f2cf3410d17066bbd79 | 1f080333f1714ba88d4f41d6ce2676f0b299e05e | /.venv/bin/maf_extract_ranges_indexed.py | 011751629233c72c0d998a7fdd8de77cfa72ed42 | [] | no_license | venice-juanillas/EIB-hackathon | b66bf128144dcef893c91af84dc28ff48be08e1b | 6b73babff2b88dccbd5ec2e74bd5737ff0a4270b | refs/heads/master | 2022-11-17T23:52:24.365210 | 2018-04-05T01:56:17 | 2018-04-05T01:56:17 | 120,545,413 | 0 | 1 | null | 2022-10-25T18:54:52 | 2018-02-07T01:19:48 | Python | UTF-8 | Python | false | false | 4,702 | py | #!/home/galaxy/data/galaxy_17.09/.venv/bin/python2.7
"""
Reads a list of intervals and a maf. Produces a new maf containing the
blocks or parts of blocks in the original that overlapped the intervals.
It is assumed that each file `maf_fname` has a corresponding `maf_fname`.index
file.
NOTE: If two intervals overlap... | [
"v.juanillas@irri.org"
] | v.juanillas@irri.org |
e8aef7a1e7a43d8d224a77625deb5fe27c1db496 | 05225e9eacafad865fd31f305711c6dbfde316ec | /actmoi.py | c312feba7c799ae0e0526cea9491e28217b7d285 | [] | no_license | borisenglebert/SVVA23 | c521167e5c1540b86943c5ee9207d342e18594d4 | 6ed0636c33691a0336e6441e24e8da5d45ae60d2 | refs/heads/master | 2020-04-23T11:40:05.486926 | 2019-03-02T14:44:26 | 2019-03-02T14:44:26 | 171,143,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,065 | py | ##------------------ACTUAL MOI----------
##This script finds the actual moments of inertia Iz'z' and Iy'y' of the cross section, based on the
##stiffener point areas (that only contribute due to the Steiner terms) and the angled thin wall
##rectangular sections and the thin-walled semicircle. These moments of in... | [
"noreply@github.com"
] | borisenglebert.noreply@github.com |
3d01caa59ff32f00f9e86dd757e073b4f4a17609 | cac2c04fa7e0a9bc1fbd4fca5be00030f07e01c0 | /fundamentals/trie/trie.py | 8887f2c2eacc8c0c35ff18091f291db2d656047c | [
"Apache-2.0"
] | permissive | davjohnst/fundamentals | b5d27286531f54eb082a98d30dfa5c138bf3dc51 | f8aff4621432c3187305dd04563425f54ea08495 | refs/heads/master | 2021-01-01T16:39:35.315050 | 2015-11-15T00:32:53 | 2015-11-15T00:32:53 | 32,647,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,060 | py | #!/usr/bin/env python
class TrieNode(object):
def __init__(self, letter, is_terminal=True, children={}, value=None):
self.letter = letter
self.is_terminal = is_terminal
self.children = children
self.value = value
class Trie(object):
def __init__(self):
self.head = Tri... | [
"dajohnston@ucdavis.edu"
] | dajohnston@ucdavis.edu |
dcda4ae98e5ceea8422c2a9d5b281462addc5b6e | 4047b91585245c3ee5ea6c50a620dadf74636bc3 | /phylobot/phylobot/admin.py | e38df56d65328e8a83b088332fe4a4404c4facb6 | [] | no_license | httang12/phylobot-django | fd371cc870f444cf94179d6a3cc6d23e9895186c | b535edfd1ee09dab02421ba22d96d48b3f611dad | refs/heads/master | 2020-04-15T12:53:13.349661 | 2018-02-15T08:46:08 | 2018-02-15T08:46:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from django.contrib import admin
admin.autodiscover()
from phylobot.models import *
from phylobot.models_aws import *
print "\n\n\n phylobot admin\n\n\n"
admin.site.register(UserProfile)
admin.site.register(AncestralLibrary)
admin.site.register(AWSConfiguration)
admin.site.register(ViewingPrefs)
admin.site.register(An... | [
"victorhansonsmith@gmail.com"
] | victorhansonsmith@gmail.com |
0970a2abc0d9d65f4b605e3d42e8da253566a347 | aa35f2dcdcb2abddddeb0635eb2bfbe40d8eeaff | /main.py | 88f2dae6ff0b8752c25c803bb57ed22ede3e56ff | [] | no_license | dminiotas05/FromZero | 9654e9ea1e7dc14fee184f28ac0ee803feb4c2fa | 57130b91749239b1ff560d79f5a8607c6ddffcf4 | refs/heads/master | 2022-10-27T09:20:02.714674 | 2020-06-16T12:20:39 | 2020-06-16T12:20:39 | 260,192,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | import statistics
import numpy as np
def std_deviation(sarasas):
std_nuokrypis = statistics.stdev(sarasas)
return std_nuokrypis
def mean(sarasas):
vidurkis = np.mean(sarasas)
return vidurkis
def list_sum(sarasas):
suma = sum(sarasas)
return suma
sarasas = []
n = int(input("Enter numbe... | [
"dariusm@neurotechnology.com"
] | dariusm@neurotechnology.com |
8a4459a7d7e37d05862cfd7f202f778254a52089 | a351f3aaad20b2e4706621e9c8ae5857680e4ff4 | /xunfei/xunfei_client.py | 1b688dca580910caea604c4da58dbbbd1c15cfc5 | [
"MIT"
] | permissive | wangjinyu124419/long-audio-asr | 6c8bca371152f8cdaa6522f7da47352e4d5d24ac | d8dabf6cb10b282e3bd4981207c4a0f478977c9b | refs/heads/master | 2020-05-19T05:59:32.753429 | 2019-05-04T06:37:24 | 2019-05-04T06:37:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,926 | py | import time
from xunfei.weblfasr_python3_demo import RequestApi
import json
appid="5c458f95"
secret_key="8c6cc2043040a13ff36c5ead9349c530"
def get_result(file_path):
api = RequestApi(appid=appid, secret_key=secret_key,upload_file_path=file_path)
response=api.all_api_request()
# data={ 'data': '[{"bg":"7... | [
"wangjinyu@deeplycurious.ai"
] | wangjinyu@deeplycurious.ai |
f5a1122f866bed45225e696274ecc24d0f763dec | 0f3d71597610a7a2dfb92a105feec894c4b664f2 | /encodecode.py | 8933d7010a07e4567395e2ce4fd2b3161ef496d9 | [] | no_license | phin01/encoder | e893c364cd9beec662ae6c21c1d5a1dec535b675 | 8322bbde74a802de4ba21ae3c77780874aaf04b0 | refs/heads/master | 2022-11-25T10:26:23.412044 | 2020-08-01T17:35:18 | 2020-08-01T17:35:18 | 281,481,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,966 | py | import pandas as pd
from cryptography.fernet import Fernet
import base64
class EncoDeco():
def __init__(self):
self._fernet_key = '7AbQpZWYYi96g1nmNTcYxFxg04Qi5Rfmd7drVqhL1t8='
self._vigenere_key = 'knrStW0PJDgn3e1PaQw3QXxq5oqAzCKJ7XwrnHLWkcihd_7'
# ----------------------------------------... | [
"phin@uol.com.br"
] | phin@uol.com.br |
1f629729c97c9040289082b5c88b8013e5fc7310 | a2b8733718640ddc5719b06589baf4f6a8bfcd5d | /fabfile.py | bd0bb65a24177f744e603deda6351fc694a50a47 | [] | no_license | fndjjx/blog | dc3bcf9cfc34ea3e41af63dbdc57980425175bfb | 527526737f16d5c71f3fcb2a323ab3d3c022d38a | refs/heads/master | 2021-01-25T08:00:53.029282 | 2017-07-25T06:02:57 | 2017-07-25T06:02:57 | 93,696,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 377 | py | #!/usr/bin/env python
# encoding: utf-8
from fabric.api import local,cd,run,env
env.hosts=['bloger@106.14.24.66:22',]
def update_remote():
print("remote update")
with cd('~/git_repo/blog'):
run('git pull --rebase')
run('supervisorctl -c supervisord.conf shutdown')
run('supervisord ... | [
"yi.lei@unidt.com"
] | yi.lei@unidt.com |
5dd9789f49b6bf5e26968ad8d2ac344ebc993ed3 | fcca7ebb332ae400b82f7d75d424ace30e35963c | /apps/elasticity/stegoton/plot_comparison.py | 6f3eaab6264e7dee56852f1672d4f2d87a7f8564 | [] | no_license | clawpack/sharpclaw | 5d2812149b28a09bfb626daf057fd27e4ab2f6a5 | 7c9782d932a449b92c875ff341a16bf00f0cc630 | refs/heads/master | 2021-01-04T14:06:42.001372 | 2013-11-28T15:19:26 | 2013-11-28T15:19:26 | 1,613,567 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,147 | py | from pyclaw.data import ClawPlotData
from pyclaw.plotting import plotframe
plotdata = ClawPlotData()
plotdata.outdir = '.'
# Figure:
plotfigure = plotdata.new_plotfigure(name='Solution', figno=1)
plotfigure.kwargs = {'figsize':[5,3]}
# Axes:
plotaxes = plotfigure.new_plotaxes(name='Strain')
#plotaxes.xlim = [73,79]
... | [
"dketch@gmail.com"
] | dketch@gmail.com |
3e73c8eff7b111466a253dd49996cec3d1474aab | 67458c986797100fcf0ddf3352d5a359e8375fb2 | /equazioni_secondo_grado.py | 2de8d295b1e05ae1e844ab0e2af7f09be881ea6d | [] | no_license | giacomotampella/second_degree_equations_py | 3d53bb6f028193fd8be6a7028de0b88fe2fc2077 | 79ff99152a2e3da01b27fe7fe1cad9db703ef68c | refs/heads/main | 2023-02-13T08:08:33.656522 | 2021-01-12T17:19:43 | 2021-01-12T17:19:43 | 329,058,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | import math
import os
a = float(input("a = "))
b = float(input("b = "))
c = float(input("c = "))
x1 = (-b - math.sqrt(b**2 -4*a*c)) / (2*a)
x2 = (-b + math.sqrt(b**2 -4*a*c)) / (2*a)
print("x1 = ", x1)
print("x2 = ", x2)
os.system("pause")
| [
"noreply@github.com"
] | giacomotampella.noreply@github.com |
fead5b51476cb0ee7d01cbd4d92adfe47ece5082 | 32a6ac6cbec63296ba68838ad4699b995810c6cd | /compiled/construct/debug_enum_name.py | f557f7c82a5e810c80400f8ac4c1aa17e88d975e | [
"MIT"
] | permissive | smarek/ci_targets | a33696ddaa97daa77c0aecbdfb20c67546c729bc | c5edee7b0901fd8e7f75f85245ea4209b38e0cb3 | refs/heads/master | 2022-12-01T22:54:38.478115 | 2020-08-10T13:36:36 | 2020-08-19T07:12:14 | 286,483,420 | 0 | 0 | MIT | 2020-08-10T13:30:22 | 2020-08-10T13:30:21 | null | UTF-8 | Python | false | false | 914 | py | from construct import *
from construct.lib import *
def debug_enum_name__test_subtype__inner_enum1(subcon):
return Enum(subcon,
enum_value_67=67,
)
def debug_enum_name__test_subtype__inner_enum2(subcon):
return Enum(subcon,
enum_value_11=11,
)
debug_enum_name__test_subtype = Struct(
'field1' / debug_enum_na... | [
"kaitai-bot@kaitai.io"
] | kaitai-bot@kaitai.io |
ddd0a104b3c015f0bb272d19126416861184bd20 | af1ec234c00c2f2f4ac713162597be5f718b5457 | /venv/bin/conch | 13180b6f221cea4ec23d399ba905147285c86bff | [] | no_license | weasleyqi/douban_demo | 5fbf2dbd7435e6e06324abb2a7e978151a830236 | d3d258eaf049d66758fc2c96b27a299bae1d2259 | refs/heads/master | 2020-03-27T00:57:23.234705 | 2018-08-22T06:45:00 | 2018-08-22T06:45:00 | 145,669,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | #!/Users/weasleyqi/Documents/projects/douban/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from twisted.conch.scripts.conch import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"weasleyqi@gmail.com"
] | weasleyqi@gmail.com | |
5c26c84bf3ddf673fee060ddd328581300a404e1 | 2fed3b92a7c9378d2e891e38c22fb82b2919f654 | /myrobogals/rgconf/admin.py | da00816db8a6bafcfa32618c29cdde134c888dc3 | [] | no_license | bagzcode/myrobogals | 41c41aab4416e6bf7e23a75cc2bafd5bf0e85308 | 0707962f684dcd9b627ffa1428795db3b8ff5ca9 | refs/heads/master | 2021-01-22T14:25:36.222700 | 2016-12-17T18:38:27 | 2016-12-17T18:38:27 | 28,613,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | from myrobogals.rgconf.models import Conference, ConferencePart, ConferenceAttendee, ConferencePayment, ConferenceCurrency
from myrobogals import admin
class ConferenceAdmin(admin.ModelAdmin):
list_display = ('name', 'start_date', 'end_date')
class ConferencePartAdmin(admin.ModelAdmin):
list_display = ('conference'... | [
"me@markparncutt.com"
] | me@markparncutt.com |
76f7a15c5c2ab5e66f7256f28ae3d5da36b3368c | 3283ebfcaa36e798f34b61669f15dfb8cd6b436f | /mainapp/admin.py | 1304470214485ad0db15151c6c27569442ed4cc4 | [] | no_license | Mixiz/django_study | 3fcb2c0f1f89ee333a710a36a27f6185e48b04bb | 21f220678298138add5330da67ec181bd8358e9e | refs/heads/master | 2022-12-07T14:50:56.533943 | 2020-08-30T19:12:55 | 2020-08-30T19:12:55 | 282,625,289 | 0 | 0 | null | 2020-08-30T19:12:56 | 2020-07-26T10:20:49 | Python | UTF-8 | Python | false | false | 219 | py | from django.contrib import admin
from mainapp.models import Product, ProductCategory, Contact
# Register your models here.
admin.site.register(Product)
admin.site.register(ProductCategory)
admin.site.register(Contact)
| [
"lavrikov.denis@gmail.com"
] | lavrikov.denis@gmail.com |
5804c617c68c836e76ad0aaedd6606d7be05daa6 | 1a14b473ffb319cd4814d32c217f44505ee6e11c | /lesson2_homework/home_task8.py | 487910610d78ef23046eb36b4ef9f186e16e743e | [] | no_license | Mayfryn/my_first_repa | 12d4ccf8013210a076f49eb8d928ae175a32eaff | 849498076df81420e5f71f5a65e316c7e8577eb2 | refs/heads/master | 2023-06-02T20:00:45.707058 | 2021-06-09T07:50:08 | 2021-06-09T07:50:08 | 293,090,029 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | a = float(input("Enter a first number: "))
b = float(input("Enter a second number: "))
c = float(input("Enter a third number: "))
if a == b == c:
print(3)
if a == b or b == c or a == c:
print(2)
if a != b and b!= c and c != a:
print(0) | [
"mayfryn@gmail.com"
] | mayfryn@gmail.com |
d94ce76d8de3d9ac32d2f73c501fa86ff5c6d658 | 647c4a2396be693b7395aa9412644491bb062a43 | /conf/config.py | 36ad87b1318ce7c7da4f23fd332feae149edb3d7 | [] | no_license | xdf020168/qa_platform | c85c5d4c5d0748f00a302bea423f1232f1bd04e2 | e7de790e84b7749260aba7eb6832ca565d8c1a33 | refs/heads/master | 2023-03-16T04:31:09.163407 | 2020-09-10T10:11:47 | 2020-09-10T10:11:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | # -*- coding=utf-8 -*-
# Author: BoLin Chen
# @Date : 2020-08-10
MYSQL = {
'production': {
'default': {
'ENGINE': 'django.db.backends.mysql',
'HOST': "10.50.255.161",
'PORT': 3306,
'USER': "root",
'PASSWORD': "261090dong",
'NAME': "qa_platform",
'TEST': {
'CHARS... | [
"chenwenjian@fangdd.com"
] | chenwenjian@fangdd.com |
39f1ab98e67afeba433bba71016769cf604ee099 | b7e6cdf094baaee9d6e5034c2355641fbf9138d7 | /824. 山羊拉丁文.py | fcd4e950c0e3c85ebf53f970708644e021c0f2ce | [] | no_license | heshibo1994/leetcode-python-2 | 04296c66cd6d1fe58880062aeafdbe9d474b7d2e | 3ea32f03bd453743b9b81de9871fad7ac67ced90 | refs/heads/master | 2020-05-23T21:49:01.367969 | 2019-09-30T03:31:27 | 2019-09-30T03:31:27 | 186,961,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | # 给定一个由空格分割单词的句子 S。每个单词只包含大写或小写字母。
#
# 我们要将句子转换为 “Goat Latin”(一种类似于 猪拉丁文 - Pig Latin 的虚构语言)。
#
# 山羊拉丁文的规则如下:
#
# 如果单词以元音开头(a, e, i, o, u),在单词后添加"ma"。
# 例如,单词"apple"变为"applema"。
#
# 如果单词以辅音字母开头(即非元音字母),移除第一个字符并将它放到末尾,之后再添加"ma"。
# 例如,单词"goat"变为"oatgma"。
#
# 根据单词在句子中的索引,在单词最后添加与索引相同数量的字母'a',索引从1开始。
# ... | [
"csuheshibo@163.com"
] | csuheshibo@163.com |
fee28c811bd8f5f28bb0e07872b2ad4480581370 | 13b576aa9c6abc54634479a2602c83d8b06c9bc0 | /snipsroku/snipsroku.py | 2de27e0c08ccee5e519f0fa953d34cd9f38a256a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | msgpo/snips-skill-roku | fa1b2a0ef5a4938db80871075b1a1a9cad686559 | 506c03e9e1ffa270005c1d8e2a7f63550d5b744c | refs/heads/master | 2022-02-24T16:16:56.778005 | 2018-04-04T13:28:36 | 2018-04-04T13:28:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,760 | py | #!/usr/local/bin/python
# -*-: coding utf-8 -*-
import requests
import re
import xml.etree.ElementTree as ET
class SnipsRoku:
def __init__(self, roku_device_ip=None, locale=None):
if roku_device_ip is None:
raise ValueError('You need to provide a Roku device IP')
self.roku_device_ip =... | [
"pau.fabregat.p@gmail.com"
] | pau.fabregat.p@gmail.com |
16ebbdc2d377e53ed1986ad88b7fd27221354491 | de4b5fb7323ec97f2edb6cec3022b450f96cc796 | /project.py | f8bf8736fd15a291c603369375ff7c1ac9926755 | [] | no_license | vibhormehta07/Python-with-Data-Science-Project-Search-Engine-Optimization | ba8116bc7843e6ccc266ed9729a5fae9d2d28006 | 8f55c689a0a80bd4b15cba5845ccfe5df3c04ac5 | refs/heads/master | 2020-04-01T09:06:35.236490 | 2018-10-15T05:59:30 | 2018-10-15T05:59:30 | 153,060,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | #Project in Python
#Search Engine Optimization
from urllib.request import urlopen
import re
from bs4 import BeautifulSoup
import sys
non_bmp_map = dict.fromkeys(range(0x10000, sys.maxunicode + 1), 0xfffd)
ip=input("Enter the search keyword:")
resultdict={}
fo=open("url.txt","r+")
fz=fo.read()
urllists=fz.split('\n')
... | [
"vibhormehta20@gmail.com"
] | vibhormehta20@gmail.com |
31347f55ce459008b3bfe89e6d7eeff0ce2b2db5 | b7b521e1a0e3cdb3bca5ffaf457ad0caad76cb95 | /DeployManager/webmanager/views.py | f607102378a938a0593b4356b681517ad072f4f3 | [] | no_license | BroSobek/FlowNative | 483dec0a2b25fd30782d23728635df5474fba3d1 | 64a8577a97346f4787c58e5a2428939bcf3c4018 | refs/heads/master | 2022-09-26T21:15:54.773852 | 2020-06-05T15:59:38 | 2020-06-05T15:59:38 | 267,108,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.views import generic
from django.template import loader
# Create your views here.
class IndexView(generic.ListView):
template_name = 'webmanager/index.html'
def get_queryset(self):
return 0 | [
"adi.roth2323@gmail.com"
] | adi.roth2323@gmail.com |
c74363ec7f3ffb330ff7eb6cc99754b2dfbc69e4 | 0e7be557833f38fef17b5eaa57c331a96148ad5e | /Assets/Python/StrategyOnly/Heroes.py | 895ee42ac8234f910d9e6bebc4e54df85577387d | [] | no_license | Thunderbrd/Caveman2Cosmos | 9f38961c638b82099b0601c22f8e90a1c98daa1e | b99aca8e56fb2a1fae48abd424dc0060a1d1fc1a | refs/heads/master | 2022-01-12T19:40:32.586456 | 2019-07-21T22:00:09 | 2019-07-21T22:00:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,886 | py | ## By StrategyOnly converted to BUG by Dancing Hoskuld
from CvPythonExtensions import *
import CvEventInterface
import CvUtil
import BugUtil
import PyHelpers
import Popup as PyPopup
import SdToolKit as SDTK
gc = CyGlobalContext()
localText = CyTranslator()
PyPlayer = PyHelpers.PyPlayer
PyInfo = PyHelpers... | [
"raxo2222@8bbd16b5-4c62-4656-ae41-5efa6c748c97"
] | raxo2222@8bbd16b5-4c62-4656-ae41-5efa6c748c97 |
75dcbceb4dc651a37e410ccb56b96e08c9a8777c | ea8ca822bcbe5fccdd40b849115ffcd8d3ab44bc | /16/ulli.py | a2c398d94ab071e201a35608c60941382632ef03 | [] | no_license | langqy/webdriver_manual | 64aebb13537c097ef0fa1a6535246c547409567d | 8599121512fd19de0ef589c13195fa00ceaf0624 | refs/heads/master | 2021-01-12T13:40:31.298087 | 2013-12-10T17:07:07 | 2013-12-10T17:07:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
import time
import os
dr = webdriver.Firefox()
file_path = 'file:///' + os.path.abspath('uili.html')
dr.get(file_path)
# 获得其父层级
for link in dr.find_element_by_class_name('ultest').find_elements_by_tag_name('a'):
print link.text
# 获取当前层级
# 由于页面上可能有很多class为activ... | [
"yueye-22@163.com"
] | yueye-22@163.com |
f7e3e4d0eb43e1b66081962b0ee6cdd9d6a3694b | 39c80306080defbde999f1af05ae5993f22d7fd7 | /oxford_astrazeneca/tests/q_calc_efficiency.py | 07076b1e2e93744fc876d8399910625d47330256 | [] | no_license | uob-cfd/spe | 47931d724792fbe812de49ac489a7e88cca52e1d | f7c76b766bffec71b80febd0dbc79e12aec3a11c | refs/heads/master | 2023-02-04T20:45:44.411481 | 2020-12-27T19:03:52 | 2020-12-27T19:03:52 | 321,508,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | test = {
'name': 'Question calc_efficiency',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
>>> # You need to define the function 'calc_efficiency'
>>> 'calc_efficiency' in vars()
True
""",
'hidden': False,
'locked': Fal... | [
"matthew.brett@gmail.com"
] | matthew.brett@gmail.com |
985bbe1a7ecae1798320c35977effa768cc2eb63 | 5b1ca29d02ba32911c71a3dcb142d3ce070369d7 | /Web/Web/LoginManager.py | 5e115357f55cf557227f097ee78f45e2d55b3e1a | [
"MIT"
] | permissive | Bideau/SmartForrest | a52f57f86a2f4e03cd83ed1887a865b240c19786 | 5fe58593b18ac4e5e285d271a8ec5e9292093409 | refs/heads/master | 2016-09-01T06:56:56.953919 | 2016-04-01T06:37:09 | 2016-04-01T06:37:09 | 51,444,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,166 | py | #! /usr/bin/env python
import sys
import MySQLdb as mdb
from email.parser import Parser
from email.mime.text import MIMEText
import smtplib
import string
from random import sample, choice
import md5
error=0
HOST='srvmysql.imerir.com'
DB='SmartForest'
PASSWORD='LjcX7vWRMs84jJ3h'
USER='SmartForest'
# Generation mot d... | [
"arnaud.bes66@hotmail"
] | arnaud.bes66@hotmail |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.