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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3310db16db0b7e706cf311d53bfc028b406cebcf | 7403b7cbf2745b2ecc109c2339a78fc6c5f4911d | /evaluation_scripts/auswertung_mw_stdabw.py | 6f18f5e3c7ebe6203cce0f19a6a1211f7cf4b53b | [] | no_license | T3K14/Carcassonne | 6f16976fc080d49cec97a0b745a341e314442b0b | 9f82cb89c34608be48c05574710148ebcf3f21b5 | refs/heads/master | 2020-04-07T08:15:00.375686 | 2019-10-12T11:41:21 | 2019-10-12T11:41:21 | 158,206,258 | 3 | 0 | null | 2018-11-22T15:15:21 | 2018-11-19T10:56:38 | Python | UTF-8 | Python | false | false | 8,629 | py | import numpy as np
# meeples
Orte1 = [2, 2, 2, 2, 2, 1, 1, 1, 1, 1]
Strassen1 = [2, 2, 2, 2, 2, 1, 1, 1, 1, 1]
Wiesen1 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
Kloester1 = [0, 0, 0, 0, 0, 2, 2, 2, 2, 2]
Orte2 = [1, 1, 1, 1, 1, 2, 2, 2, 2, 2]
Strassen2 = [1, 1, 1, 1, 1, 2, 2, 2, 2, 2]
Wiesen2 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
... | [
"robert97752@gmail.com"
] | robert97752@gmail.com |
6c46584afeafccb229c8951b1084318a37bcf398 | 7255e170e5aa2767a94468bfc4c2a48a09bb7514 | /ejercicio5/fileman_celery/upload_file_app/url.py | 24d0d11b15fbd2a123876f5aa569cc4fec01f55e | [] | no_license | fremeva/email-microservices | 04ed33c7c8ca5a576d658fa4daf28cd262b14691 | 7c764a70992c326b46aced48a6fdbcd1cbf5424b | refs/heads/master | 2020-03-21T16:46:29.152424 | 2018-07-03T17:48:21 | 2018-07-03T17:48:21 | 138,792,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from django.conf.urls import url
from .views import model_form_upload
app_name = 'uloploadapp'
urlpatterns = [
url(r'^$', model_form_upload, name='upload'),
]
| [
"fredymv03@gmail.com"
] | fredymv03@gmail.com |
d8561fb670b357cc2ca8606b595e9ac5669d49e1 | e7bfd5fae17cb6e58700a5b94d0d2234fff2e198 | /trader.py | 1384d032c4ba6a5dbf60b18844061a512cd133e2 | [] | no_license | virtualpeer/PytohBackTraderBot | 2447a2e45d7331b35bc44d38ba6601aed42785ec | f5ea36ab99560f7393c01f23565e8bdac948f8e8 | refs/heads/master | 2022-12-19T14:14:29.273915 | 2020-09-24T13:25:01 | 2020-09-24T13:25:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | import backtrader as bt
import datetime
import pandas as pd
from strategies import GoldenCross
# from strategies.GoldenCross import GoldenCross
# Init cerebro
cerebro = bt.Cerebro()
cerebro.broker.setcash(1000000)
# Create a Data Feed
spy_prices = pd.read_csv('data/spy.csv', index_col='Date', parse_dates=True)
feed... | [
"fennellosc@gmail.com"
] | fennellosc@gmail.com |
af36fc03448e75a4ca6ac789df88869a4f585ea2 | 52d9c6d005b2e91f489fdd817059b1217efd711d | /users/dflt_style_changes-1.py | f81506a21653adad6e6c52fa446642141babe048 | [] | no_license | yuhaihaiyu/matplotlib.github.com | 2a785654d4a0e4a9b6d1876b0aae96b6b5d20fc5 | fbe748c706e92f9ccb660eab656deaebe179a6af | refs/heads/master | 2023-07-31T08:04:16.716267 | 2021-10-02T06:00:49 | 2021-10-02T06:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | ../stable/users/dflt_style_changes-1.py | [
"quantum.analyst@gmail.com"
] | quantum.analyst@gmail.com |
81498da355e96df3728c5a14fca97664116f0786 | 13dc7d936642e0b0aafa4b9003a3c66bae655007 | /features/multiple_births_test.py | 69d714470b039b2eaaa82bc62f29a54e2ca6e86b | [] | no_license | davidhu34/ssw555tm082021Spring | 922eb4f329e4af35531e0539abebb9d1d2ef394d | d99fc3ec995554118c7cff47311965f2ed289793 | refs/heads/dev | 2023-04-14T09:05:32.104805 | 2021-04-27T19:22:07 | 2021-04-27T19:22:07 | 342,986,614 | 0 | 0 | null | 2021-04-27T18:47:32 | 2021-02-28T00:17:13 | Python | UTF-8 | Python | false | false | 1,034 | py | from gedcom.testing import GedcomTestCase
from features.multiple_births import siblings_born_at_same_time,too_many_siblings
class MultpleBirthsTest(GedcomTestCase):
def test_siblings_born_at_same_time(self) -> None:
""" test if more than 5 siblings are born at once """
self.assert_file_validatio... | [
"32401263+JackBittker@users.noreply.github.com"
] | 32401263+JackBittker@users.noreply.github.com |
e134e1df982498b8d8cb8c20fcfe5af7a380980e | b9c41602616c626eaf6bf193b7a0fc7fe7b7be28 | /xmlpython.py | f8caaa78d76e5adffd6e8a0b648ff65f37fe8f98 | [] | no_license | Pelero016/Python_Libro | a725d82e6068e7909d78a0c14eb28c5998215790 | b76742220a404b6744d61ef7491258c8e999c574 | refs/heads/main | 2023-02-12T20:52:44.287777 | 2021-01-09T17:04:00 | 2021-01-09T17:04:00 | 320,736,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | import urllib.request, urllib.parse, urllib.error
import xml.etree.ElementTree as ET
import ssl
api_key = False
# If you have a Google Places API key, enter it here
# api_key = 'AIzaSy___IDByT70'
# https://developers.google.com/maps/documentation/geocoding/intro
if api_key is False:
api_key = 42
serviceurl = ... | [
"brayancalderonamorocho@gmail.com"
] | brayancalderonamorocho@gmail.com |
488c591d3bb093588b60fc6dbc71bc4a50e20f77 | 294578eee80bc89e0411e41b4a351561bd4fbbd2 | /tempbyhfmjal.py | c5531e89104da0958997fa2cf50bb89032512623 | [] | no_license | HackerSpot2001/Voilent-Python-with-Python3 | 947a09dd7ba6bd07fecefef89beb443670987b99 | bca716d9f88d3c2657a24476ee93860b7c59bc6a | refs/heads/master | 2023-07-22T15:41:34.839458 | 2023-07-07T17:05:07 | 2023-07-07T17:05:07 | 375,223,373 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | Shell = create_string_buffer(shellCode,len(shellCode))
shell = cast(memoryWithShell,CFUNCTYPE(c_void_p))
shell() | [
"abhisheksagar513@gmail.com"
] | abhisheksagar513@gmail.com |
522b13731417729f6f1f9ab66e0e2143a7b4c88f | 98fbb63f49942daf17208ba0c0590b3d7bb43140 | /ch6_dynamic_typing/shared_ref.py | c4b8953c9591696e053020f82d52283d61e11603 | [] | no_license | dsm-kbl/python-snippets | b0b546abdfaf2a676c060cdf4afda1828ec4169e | 0ef3d48967c8334b26e1cf392cfba089beaca08a | refs/heads/master | 2023-05-14T08:29:17.138695 | 2021-06-02T12:02:23 | 2021-06-02T12:02:23 | 299,259,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | L1 = [2, 3, 4]
L2 = L1[:] # Copy L1 to L2
print(L1 == L2)
print(L1 is L2) # It checks if the references are pointing to the same object
| [
"dibyam@amazon.com"
] | dibyam@amazon.com |
6fcc046029e432c4919bb48b6005dfe3799068c3 | 0e06b376dbdf22417a77d82ac09e8f992707e532 | /Seccion 11/metodos_cadenas.py | 7581327e315ba90071aba6aabe24c461ea77d535 | [] | no_license | juanPabloCesarini/cursoPYTHON2021 | 266ea8cbc8f405f9f2917b29ae1165bc03e94612 | c55d75ab68eb66ec9e5b1da9f5a10b8406bdefe4 | refs/heads/main | 2023-03-28T10:31:36.911390 | 2021-03-24T23:48:17 | 2021-03-24T23:48:17 | 342,884,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | nombre = input("Ingresa tu nombre: ")
print("el nombre es: ", nombre.upper())
nombre = input("Ingresa tu nombre: ")
print("el nombre es: ", nombre.lower())
nombre = input("Ingresa tu nombre: ")
print("el nombre es: ", nombre.capitalize())
frase= input("Ingresa una frase: ")
letra= input("Letra a buscar: ")
prin... | [
"juanpcesarini@hotmail.com"
] | juanpcesarini@hotmail.com |
e72b8ae7d25be4cb758724f93d68d547ab21c7f9 | 2a3f3546dc7a1395a0c71b9a95468e7895ed642d | /Caesar.py | 693ec4aa73e49f8c71d62ad80b725ca54e3a8cb3 | [] | no_license | seanon414/Crypto | 68eb90a356c3784301562ab0015cfe8df2b5e87a | 25b5e3d58ecf8c2e65054b864bfd0b5634744202 | refs/heads/master | 2021-01-10T18:38:09.163497 | 2014-02-20T03:44:40 | 2014-02-20T03:44:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | """
Cryto assignment 1
Encrypting and decryting caesar cipher
"""
plain = 'Hello World'
cipher = 'Khoor Zruog'
sky = 'Greetings, Exalted One. Allow me to introduce myself. I am Luke Skywalker, Jedi Knight and friend to Captain Solo.'
gibber = 'L FDQ VHH LW LQ BRXU HBHV BRX KDYH WKH ORRN RI D PDQ ZKR DFFHSWV ZKDW KH VH... | [
"seanoneill@SCB227072210.adelphi.internal"
] | seanoneill@SCB227072210.adelphi.internal |
70d93dc6d373c483b6e5449605a161072d94d17c | a59d537800bc958fc136ff4a0c5d2474b0641404 | /example.py | 0e6130cc4ab10d84a1e987a0f286c02f6d622f1a | [] | no_license | aleskruba/relationship | 6cce95524917d0dc02128e38015a62d3d1ce26e7 | 997dd6322ec46a1763d2d5e50c4567533718447b | refs/heads/main | 2023-02-25T15:29:39.855536 | 2021-02-01T13:07:08 | 2021-02-01T13:07:08 | 334,951,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | from flask import Flask, render_template, redirect, url_for, request
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///newtest.db'
db = SQLAlchemy(app)
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
author = db.Column(... | [
"noreply@github.com"
] | aleskruba.noreply@github.com |
55e9754351f6b1e3ca6f60883588906568cc0c46 | c034c27e96f518515840f9c25fb9f4be22cb9b18 | /csv_to_ansible_inv.py | 98bf8458e2ac5f002822ca129869e9755f7d970b | [] | no_license | br41thw8/python | c9aa5e963f9240353ca254ada79e0317fee179f5 | 2569f7146027893f258786801a7b796ca70e88ba | refs/heads/master | 2022-04-14T17:21:59.707881 | 2020-04-07T20:46:30 | 2020-04-07T20:46:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,630 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 7 10:09:46 2019
@author: gnasses
**Convert CSV list of devices to ansible hostname file**
(Created to create ansible inventory files from a TVM Vulnerability group)
1. Open Vuln Group
2. Right click on Configuration item
3. Select Export, then Excel (large... | [
"noreply@github.com"
] | br41thw8.noreply@github.com |
aa2b84595a402e7291b27e7f04961c7dbf738303 | edd1b4165abf73d44d03d20cbd554368fe23dd82 | /task5.py | 893eab583138cb372d80b241dfb81c5c172f1f82 | [] | no_license | DimonYarkin/repogeet | 6a570b8a36c0bb9fb0e7d6e92620e5b5bce54264 | 722a6d7244ec995d45b21cf7eb645d4270aa29a7 | refs/heads/master | 2022-12-16T07:14:05.686392 | 2020-09-08T21:56:00 | 2020-09-08T21:56:00 | 293,505,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | profit = float(input("Введите выручку фирмы "))
costs = float(input("Введите издержки фирмы "))
if profit > costs:
print(f"Фирма работает с прибылью. Рентабельность выручки составила {profit / costs:.2f}")
workers = int(input("Введите количество сотрудников фирмы "))
print(f"Прибыль в расчете на одного стор... | [
"noreply@github.com"
] | DimonYarkin.noreply@github.com |
c6336d5c2f37c0f888125e21d3747fec799f9684 | 69c477f674592e3dd87cd10f32fc0893d20db030 | /models/distill.py | 3a66df629791011e576ef712628f199f9cd10c42 | [] | no_license | vietnamican/Distill | 76a59b4a4a5a358ec08b74722257f4f5ee902aa6 | 97c52b5e614c5bee78e5a282e732d4b93078cc11 | refs/heads/main | 2023-05-04T12:37:35.016435 | 2021-05-23T08:43:04 | 2021-05-23T08:43:04 | 369,752,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,089 | py | import torch
from torch import optim
from .base import Base
from .get_intermediate_layer import GetIntermediateLayer
class Distill(Base):
def __init__(self, teacher, student, teacher_layer_list, student_layer_list, connectors, config, is_kd=False):
super().__init__()
self.teacher = teacher
... | [
"vietnamican@gmail.com"
] | vietnamican@gmail.com |
92aaab5544643db4ea478ec9dddcefaeb0d0de21 | 79ea42a1d2dc6260e1403785fa716b96c109c65e | /src/abstract_rl/plots/plot.py | 269dddeadb8bf731a818666fb9e3a12182289742 | [
"MIT"
] | permissive | kosmitive/abstract_rl | b468391120c523e4efb23b8ba4b1ff7b8c745c88 | 13038a1a5a93c78374ba869c9e75221c2b73d290 | refs/heads/main | 2023-05-03T02:04:24.263600 | 2021-05-25T21:12:34 | 2021-05-25T21:12:34 | 370,822,105 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | import matplotlib.pyplot as plt
class Plot:
"""This class can be used to give a class access to subplots managed
by itself."""
def __init__(self, title, grid_shape):
"""Constructs a new LayoutManagedPlot. Creates subplots according to grid_shapes.
"""
# common settings
s... | [
"m.semmler.94@googlemail.com"
] | m.semmler.94@googlemail.com |
ec6bf10464f97711aeddc9958f1f2efcb2be231f | bec8f235b1392542560166dd02c2f0d88c949a24 | /examples/twisted/websocket/broadcast/server.py | ff8c3171874c94b755038cbd24663fb9d944b3c8 | [
"Apache-2.0"
] | permissive | gourneau/AutobahnPython | f740f69b9ecbc305a97a5412ba3bb136a4bdec69 | 5193e799179c2bfc3b3f8dda86ccba69646c7ee3 | refs/heads/master | 2021-01-15T22:02:32.459491 | 2014-07-02T13:34:57 | 2014-07-02T13:34:57 | 21,437,288 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,691 | py | ###############################################################################
##
## Copyright (C) 2011-2013 Tavendo GmbH
##
## 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
##
## h... | [
"tobias.oberstein@tavendo.de"
] | tobias.oberstein@tavendo.de |
79c66d925c7a9c8dcbea9a1f8296b224b8821906 | c831ed60548ec75cae2110f3f139dac57984f749 | /examples/nn_potentials/cu_training.py | 8d59bca1d0b72ab8617f4319b143d1c5fae344d8 | [] | no_license | eligardella/ml4chem | ab83f76e04bc623fe14dbd43fd5bf97b7bd3a6b3 | 09cd235271147655bd1a6150ea6c64b54add19a0 | refs/heads/master | 2020-06-20T20:27:07.352841 | 2019-07-29T20:56:19 | 2019-07-29T20:56:19 | 197,237,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | import sys
from ase.io import Trajectory
from dask.distributed import Client, LocalCluster
sys.path.append("../../")
from ml4chem import Potentials
from ml4chem.fingerprints import Gaussian
from ml4chem.models.neuralnetwork import NeuralNetwork
from ml4chem.utils import logger
def train():
# Load the images with... | [
"muammarelkhatib@gmail.com"
] | muammarelkhatib@gmail.com |
bc62c8f31f6e6ee722223582fb287117a6e3584d | 3d8a2251504164a9a7ffa6484a2ed7933ea3c590 | /practice_dictionaries_set1.py | 983ec5dbe24596036253b95cf833136252cb4ccf | [] | no_license | kjergens/NextGen | 6b05187b10a867827c18c9a7d5a78a8cd6ab2bf2 | b98d2ed8288713a7f522608e56b19816a7cf0f5e | refs/heads/master | 2020-03-23T08:19:43.333176 | 2018-07-19T16:45:44 | 2018-07-19T16:45:44 | 141,320,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | # Set 1
# 1
# residents = {'Puffin': 104, 'Sloth': 105, 'Burmese Python': 106}
# print(residents['Sloth'])
# 2
# menu = {}
# menu['Sunday'] = 16.78
# print(menu['Sunday'])
#
# menu['Monday'] = 3
# menu['Tuesday'] = 0
#
# # BONUS: print each value on its own line
# for key in menu:
# print(key, ":", menu[key])
#... | [
"katie.jergens@gmail.com"
] | katie.jergens@gmail.com |
a8beaefc2f3e2bc33229e58d142280504ebae0cd | a80d16f9a47db055f6c22bf1e8d8cfd10a84e56c | /game_v2/card/base.py | 37765faea10836e4a92143afd7419070fece6d74 | [] | no_license | JanzenLiu/uno-dev | 70ce53b5067cf4b444aafa2d358f106b4108b58a | 9e39cf8232f43d038feeb3ffa6c239e5db52fb5d | refs/heads/master | 2020-03-28T22:09:40.470068 | 2019-09-11T18:57:58 | 2019-09-11T18:57:58 | 149,209,225 | 3 | 0 | null | 2019-03-23T05:14:27 | 2018-09-18T01:13:35 | Python | UTF-8 | Python | false | false | 3,862 | py | from enum import Enum, unique
from colorama import init
from colorama import Fore, Back, Style
init()
colormap = {
"WILD": Fore.BLACK + Back.WHITE,
"RED": Fore.LIGHTRED_EX,
"GREEN": Fore.LIGHTGREEN_EX,
"BLUE": Fore.LIGHTBLUE_EX,
"YELLOW": Fore.LIGHTYELLOW_EX
}
@unique
class CardColor(Enum):
... | [
"chengtsung_liu@yahoo.com"
] | chengtsung_liu@yahoo.com |
b623a5b5e9c0b4e9acc55503388c50eae27c6f9b | 360fef062f2bf2accdc9b708f94ad069dadd94d9 | /Resources/__init__.py | 41580712b197dd1a18b1ef4792092ffa39da4b6a | [] | no_license | UlisesRamirez/Clicker | e361af236633cfc581ec2e6d1a146ad0b9ab2704 | d3c7966f4a992822007f0cb86ab448bd6599037f | refs/heads/master | 2020-09-11T08:36:01.851921 | 2019-12-04T00:48:44 | 2019-12-04T00:48:44 | 222,007,510 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | import sys
sys.path.insert(0, 'C:/Users/Ulises/Desktop/Projects/Python/Clicker')
from Resources.MoneyClass import Money
from Resources.UpgradesClass import Upgrade | [
"ulisesm.ramirez@gmail.com"
] | ulisesm.ramirez@gmail.com |
045e16d809ee51ce633497ad26cf76404a396b2f | 6927d519f6ac056328580d0e97057d85c694bfa3 | /VRPTW/src/construction_simple_1.py | 02acafa024eb82fbf9e92076eb9cc91c6428f14a | [] | no_license | petersonzilli/or | b83a12c0ad6a1f676ab209550921cb03cc56bfa3 | 06c9a193712a92475e19280acda20c7051bb909a | refs/heads/master | 2021-05-09T10:33:45.058112 | 2018-01-27T11:22:38 | 2018-01-27T11:22:38 | 118,967,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,258 | py | # -*- coding: utf-8 -*-
"""
Complete a full solution for VRPMTW given a partial solution
Author: Peterson Katagiri Zilli <peterson.zilli@gmail.com>
Date: 2018-01-25
Important Notes:
- Time Windows are sorted while reading the instance. it is important for simple construction algorithm
"""
from solution import Soluti... | [
"peterson.zilli@gmail.com"
] | peterson.zilli@gmail.com |
37c6df28baee31a44b9aaff421245af8c00e3af1 | 1d92b947c6729ddbd43c4c41de4aaa3e76eaa936 | /pkgs/fc/agent/fc/manage/monitor.py | c630426213cf56ac73d5cb9bb37fcfc4252e711c | [] | no_license | ckauhaus/fc-nixos | 2a64742855cadddd6caa10c744211a39b8bcdee2 | 98b204b5d54b7c2c837d0cba4f4d608d97ab88fb | refs/heads/fc-19.03-dev | 2020-12-21T14:54:45.550884 | 2019-03-29T11:15:52 | 2019-03-29T13:19:47 | 236,466,025 | 0 | 0 | null | 2020-01-28T11:33:32 | 2020-01-27T10:27:54 | Nix | UTF-8 | Python | false | false | 3,810 | py | """Manages local Sensu monitoring checks"""
import argparse
import datetime
import json
import shlex
import socket
import sys
import urllib.parse
import xmlrpc.client
def get_directory(enc, url):
user = socket.gethostname()
password = enc['parameters']['directory_password']
parts = urllib.parse.urlsplit(... | [
"kc@flyingcircus.io"
] | kc@flyingcircus.io |
9bd24db49a7dd8925fb5158cff5980e5f8e55213 | cef8e528087eeb0ece37bb908ffea7cf81ade0db | /p30.py | 876efda6403fabfdc9ea032908ae0be32bfb5490 | [] | no_license | ashrafulemon/python | f03ef07c77885bd00e73674e8767796c9bcac058 | 5d257288a52195500cf1f6b5cc1e017dae0fdcc0 | refs/heads/main | 2023-01-31T11:08:17.985674 | 2020-12-16T14:59:39 | 2020-12-16T14:59:39 | 322,011,688 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | #3.6 calculate hours minutes seconds
ts=11725
h=ts//(3600)
ts=ts%3600
m=ts//60
s=ts%60
print("{} hours ,{} minutes ,{} seconds".format(h,m,s)) | [
"emon118.bd@gmail.com"
] | emon118.bd@gmail.com |
821779bac3d8bc0210df53b1c8ff26ce43477be3 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_044/ch84_2020_04_13_13_56_41_678562.py | da10f174f55747b6eb7ed555591ff9a14a30c706 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | def inverte_dicionario(dicionario):
dn={}
ls=[]
for n in dicionario.values():
ls.clear()
if n not in dn:
for f,m in dicionario.items():
if n==m:
ls.append(f)
dn[int(n)]=ls
return dn
| [
"you@example.com"
] | you@example.com |
ab3578e2923369a39677d534ff9b10f1b3f6fdb6 | d8fe7116d778e381dc21abc1e38d6aa798b2a982 | /ch25-inheritance/human.py | 5b471d81e77c35a0c7385352c88e2ffe0363b729 | [] | no_license | eejay73/python-bootcamp | f474c9b6e7462d084f98b3d6ab0fc9434443b2e3 | 85160f1197bc18dcd1fdc9c8e4a6f70d20c64a5a | refs/heads/master | 2020-03-11T10:02:38.976973 | 2018-05-13T07:17:31 | 2018-05-13T07:17:31 | 129,930,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | #!/usr/bin/env python3
"""
Chapter 25 - Inheritance: Exploring properties (@property decorator)
@author Ellery Penas
@version 2018.05.11
"""
class Human:
def __init__(self, first, last, age):
self.first = first
self.last = last
self._age = max(age, 0)
# exposes the age proerty setters... | [
"coachejay@gmail.com"
] | coachejay@gmail.com |
60bdc23307b368ff56e0beba99cf76d30a0442eb | ad6a7e282095e813ae1a854190b0a7536a137ea8 | /ConsolidateMap.py | 87721f6ba1305457208a02a660ee662e5e0420cb | [] | no_license | MikeQuartic/CompassGIS_DEV | 80e172ebce326923edcf411b0037f758558c9e67 | 8845c5837f481d5bbd21400ba09d495d8274ee9f | refs/heads/master | 2021-01-10T16:22:17.794184 | 2016-03-23T18:56:51 | 2016-03-23T18:56:51 | 54,585,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,100 | py | # -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# ConsolidateMap.py
# Created on: 2014-07-08
#
# Description: This is to extract the data layers needed from sde and
# place in a localfile.gdb for the CompassGIS Application.
# ---------------------------------------... | [
"mike@quarticsolutions.com"
] | mike@quarticsolutions.com |
07587e0f98236cb80d07ba561a4bad48fd023f89 | 9eae72aeb54495b3e04ee51261d5638cbfa4a5fc | /policyquote/urls.py | d35c207d34ffe0e8b01297d57b023aa81a348433 | [] | no_license | abinabraham/policyquote_v1 | 18bd6d1fb29985a811a2f28eb57e033f3ffd38f3 | b29836984fcbe6bb8ed01f1a1da40c6d202c2d7f | refs/heads/main | 2023-05-11T15:09:16.591557 | 2021-06-02T21:22:14 | 2021-06-02T21:22:14 | 373,302,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | from django.contrib import admin
from django.urls import path, include
#swagger URL
from rest_framework_swagger.views import get_swagger_view
schema_view = get_swagger_view(title='POLICYQUOTE APIs')
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('apps.accounts.urls')),
path('api-auth/'... | [
"abinabrahamcs@gmail.com"
] | abinabrahamcs@gmail.com |
4ae121c2acf517b1d7a41b2410cce4ffb2fd7ecc | d66b0ff3c41fa48e478469997eff96107656f0f2 | /test.py | 6356fac78f2453472b7d1a69eee31e18f89cd019 | [] | no_license | lazurey/then | 8c559795795543145dda1fca234e09fbea751a3c | 1bffae4ee0eb3e15e9ccebdc3ebd1f0f9c785815 | refs/heads/master | 2021-01-16T19:32:37.890115 | 2013-01-22T07:29:07 | 2013-01-22T07:29:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | #coding:utf-8
from google.appengine.api import xmpp
from google.appengine.ext import webapp
from google.appengine.ext.webapp import xmpp_handlers
from google.appengine.ext.webapp.util import run_wsgi_app
import base64
import urllib,urllib2
from Funcs import Funcs
class XMPPHandler(webapp.RequestHandler):
... | [
"lazureys@gmail.com"
] | lazureys@gmail.com |
369c9528c8d546e48f98a4fa3200eca9a649d445 | 2090cda8924fe51f30805460fcdd2e365d532da6 | /kippo/commands/gcc.py | bb6b7f9db58e8720bda4e5b43c9d1ac8fa03f16c | [] | no_license | SecPascal/kippo | f88b4969748460b85ecfdc4f868c7b2e655f35e2 | 40e654017e641273bb2613c4e780d9b3453f6850 | refs/heads/master | 2020-12-24T21:00:42.689081 | 2015-04-17T09:10:28 | 2015-04-17T09:10:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,164 | py | # Copyright (c) 2013 Bas Stottelaar <basstottelaar [AT] gmail [DOT] com>
import time
import re
import getopt
import random
from twisted.internet import reactor
from kippo.core.honeypot import HoneyPotCommand
commands = {}
class command_gcc(HoneyPotCommand):
# Name of program. Under OSX, you might consider i686-... | [
"michel@oosterhof.net"
] | michel@oosterhof.net |
29e05b23a191b02695c803250f347ec537a63b62 | b79a4b534484ebaac5a850609d43130c95fde18d | /r3.py | 98853a30787b4ad8b9c24bf330cb3197d21415ce | [] | no_license | howardgogo/chat | d9418da74e3311b4f0424e9bb962391dfd9f77bc | 50baa4cf22f4f314f531d957c3e6d9d7ea302d89 | refs/heads/master | 2022-11-24T18:39:44.494288 | 2020-08-04T10:01:12 | 2020-08-04T10:01:12 | 282,804,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py |
lines = []
with open('3.txt', 'r', encoding = 'utf-8-sig') as f:
for line in f:
lines.append(line.strip())
for line in lines:
s = line.split(' ')
time = s[0][:5]
name = s[0][5:]
print(time, name)
| [
"howard104023060@icloud.com"
] | howard104023060@icloud.com |
340940bfba998d55ccd22765aa38f5b6c5ac0912 | 763c50a9f4f996d42c4b1078b9cc7c369fdb8584 | /radio-box.py | ddf6964449a2d880f20d4b51d1635111618d1a60 | [] | no_license | clementthomas/radio-box | 68ad0ff2bd1163512f786c772eea03d6269c9dbb | 7c38e542052aaa7c6a48b192930cd3eed0a70f4f | refs/heads/master | 2020-05-07T19:47:37.326804 | 2019-06-12T14:40:14 | 2019-06-12T14:40:14 | 180,828,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,382 | py | # -*- coding: utf-8 -*
import vlc
import time, sched
from gpiozero import LED, Button, DigitalOutputDevice
from signal import pause
from datetime import datetime
from grove_rgb_lcd import *
import os,signal,sys
from vlc import EventType
import random
import pdb
import threading
#inputs
button1 = Button(26, bounce_time... | [
"clement.thomas@pm.me"
] | clement.thomas@pm.me |
ee7437d8197478af5343298db3edd6cec9f47867 | d1540b8aa3d561210fa8da5caf8efea83e3bd96f | /run.py | bb3a74a25e32e1a5fbfdc2098459c48d30f3bb27 | [] | no_license | thanh-pham2k/SECURITY-ASSIGNMENT | b483b2691d09aa369587469b22f6071db9924c19 | 8f8d83322eb7a4e0329aa243b350e611b8d66a86 | refs/heads/main | 2023-05-12T14:02:42.870139 | 2021-05-31T15:54:01 | 2021-05-31T15:54:01 | 369,404,401 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,671 | py | from UtilityFunctions import *
import argparse
def caesar(text,key,alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ"):
log_func("caesar")
text = text.upper()
validalpha(alphabet)
validptext(text,alphabet)
validkeys(key,int)
M = len(alphabet)
T = alphaToNumber(text,alphabet)
#... | [
"noreply@github.com"
] | thanh-pham2k.noreply@github.com |
ab5c2e1a5ffa93ac8af705b7899c622e9f953efe | a8593c0e3904c216d56d9c756518981538160a47 | /day18.py | 0ecb188c4ab90a96dac7b24b9016652c1c0f2560 | [
"MIT"
] | permissive | JnxF/advent-of-code-2020 | cec423f14d18512d88a7da74f65ab3c7ab1bb07c | 3a746d094e9ba292dd8e765ceb4be4a0ad46bb37 | refs/heads/main | 2023-02-03T18:54:14.985656 | 2020-12-25T13:36:21 | 2020-12-25T13:36:21 | 317,524,664 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py | from aocd.models import Puzzle
from ast import parse, Constant, BinOp, Expression, Add
input: str = Puzzle(day=18, year=2020).input_data.splitlines()
def reverseEvaluator(exp):
if type(exp) == Constant:
return exp.value
elif type(exp) == Expression:
return reverseEvaluator(exp.body)
elif ... | [
"frml@itu.dk"
] | frml@itu.dk |
ebd0332c76081d1ab9a2107cb20a7a76989d99bd | d67edf67e9ec5853b1887308c741a71b8ef6e196 | /strategies.py | a3ad242243426997356ee02aa2c89e35b856e7f5 | [] | no_license | mayagbarnes/big-blind-defense | bf6184ce155a754562be0e2c4f9541dcb3ab9e3b | ce0e14e1752cbfbbb02fa78f35086ded8d67399a | refs/heads/master | 2023-05-19T11:45:39.315443 | 2021-05-27T21:55:44 | 2021-05-27T21:55:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,787 | py | from enum import Enum
import random
import numpy as np
class Action(Enum):
FOLD = 0
CALL = 1
RAISE = 2
class GameState(Enum):
START = 0
VS_OPEN = 1
VS_3BET = 2
VS_4BET = 3
HAND_OVER = 4
class Player(Enum):
HERO = 0
VILLAIN = 1
def _card_to_index(card):
return {
... | [
"vincent.rdonato@gmail.com"
] | vincent.rdonato@gmail.com |
7fe816a59ea85a030ffa5705f7bacde34609fcf8 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinci_v41r2/tuplemaking/signalmc2016/nostripping/joboptionsup.py | 68c025c354c801bc56f4392a4754516bb2631537 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,906 | py |
myJobName = '16NewMCtagcorrectUp'
myApplication = DaVinci(version="v41r2")
myApplication.optsfile = ['/home/hep/ss4314/cmtuser/DaVinci_v41r2/tuplemaking/signalmc2016/nostripping/B23MuNuSignalSelectionMagUp.py']
#Inputdata
#bk_down = BKQuery("/MC/2012/Beam4000GeV-2012-MagDown-Nu2.5-Pythia6/Sim08h/Digi13/Trig0x409f00... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
de28198edff167e9255f5010f57a2cb06e486a20 | 6a041b116e307f86bada68202546597d8afd8003 | /adress/migrations/0001_initial.py | f7340398afc6d68362167e49fbef9fb2d58b93c2 | [] | no_license | eilst/simpleDjango | abf791278a4f5ffbb74de42bfcd619c22849ac2c | 123468e5e8f5edf2eaa5b902ce4de510aec39889 | refs/heads/master | 2021-07-04T22:08:09.230941 | 2017-09-27T16:02:54 | 2017-09-27T16:02:54 | 105,039,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-27 13:49
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"a01337755@gmail.com"
] | a01337755@gmail.com |
071723436dce13e92152d5823f054a4d5da28c33 | 81147b637857afe78aa8ca5cdd25001bcc058512 | /opencv/MOG Bg.py | 58f8e80eac826e5e7e6b1f0db85bc85a31ac177b | [] | no_license | Shani0045/Machine-Learning | ccb0e4a22bc0baaedb92b3374fb42301e4bdbadd | 9e60f6f45d8d170b256bb924689033e6dcde3fec | refs/heads/master | 2022-04-09T06:01:03.705225 | 2020-02-29T01:11:02 | 2020-02-29T01:11:02 | 197,973,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | import cv2
cap=cv2.VideoCapture("D:/videos/Kinna_Sona_Full_Video___Marjaavaan___Sidharth_M%2C_Tara_S___Meet_Bros%2CJubin_N%2C_Dhvani_Bhanushali(1080p).mp4")
fgbg=cv2.createBackgroundSubtractorMOG2()
while True:
ret,frame=cap.read()
fgmask=fgbg.apply(frame)
cv2.imshow("original",frame)
cv2.imshow(... | [
"noreply@github.com"
] | Shani0045.noreply@github.com |
3b898c31353d70e4e746ca2d0f3ec6210e14337d | c28c05ffabe58a5ed903534c7d1e6832c155db97 | /evolution.py | f7380ebb322f38a1e90b66a7dc46fbb2f06cfafb | [] | no_license | novikmeister/Labs | 7d4dd4496cf41ec907cd75be0e40993bcfd80493 | 05273db11fe9166b6197391f70dc7b8c69df3486 | refs/heads/main | 2023-01-30T04:34:32.421635 | 2020-12-15T19:26:21 | 2020-12-15T19:26:21 | 321,743,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | import matplotlib.pyplot as plt # TASK 2
import numpy as np
f = open("frames.txt")
frames = []
N = int(sum(1 for i in f))
f.seek(0)
for _ in range(int(N/2)):
x = [float(x) for x in f.readline().split()]
y = [float(y) for y in f.readline().split()]
frames.append(np.array([x, y]))
frames = np.array(frames)
f... | [
"noreply@github.com"
] | novikmeister.noreply@github.com |
220eafb29768411d5c23c12f2657fe453879a4a4 | f935d9d2f3ce54bbe4242533d1bdb79e33d96b76 | /rrmpg/utils/metrics.py | ea1073d54cda9136ad282679f3545f6edae75d2e | [
"MIT"
] | permissive | nduqueg/RRMPG | b1f92adfd7e2d0d8eab86b96b20779e6984dbf6d | 6f3e4d694d97f3f92df5380b5ca88bcc123199e9 | refs/heads/master | 2020-04-12T06:11:39.674666 | 2017-11-28T20:42:59 | 2017-11-28T20:42:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,577 | py | # -*- coding: utf-8 -*-a
# This file is part of RRMPG.
#
# RRMPG is free software with the aim to provide a playground for experiments
# with hydrological rainfall-runoff-models while achieving competitive
# performance results.
#
# You should have received a copy of the MIT License along with RRMPG. If not,
# see <ht... | [
"f.kratzert@gmail.com"
] | f.kratzert@gmail.com |
9cacf59e819a340c50995cbc4a5438b065e24504 | 2a4fb2c75546a8752ab83a7a3808c9f689677d33 | /2019_12_16/FunkSVD.py | 270c7f455cef6589274f2b0e09a53e3123fbd341 | [
"MIT"
] | permissive | qing0991/ML_Practice | ae6d55275c98a223a3bbb05442f5557f6290e0a3 | 03dba80b425843ce8d7003a85dbc2a3ad8aae13b | refs/heads/master | 2022-12-06T05:36:03.868371 | 2020-08-23T14:30:10 | 2020-08-23T14:30:10 | 292,324,698 | 1 | 0 | MIT | 2020-09-02T15:41:02 | 2020-09-02T15:41:01 | null | UTF-8 | Python | false | false | 3,170 | py | import numpy as np
import pandas as pd
import os
import matplotlib.pyplot as plt
from datetime import date,datetime
import logging
import torch
from torch import nn
from torch import optim
from torch.autograd import Variable
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
device
# ------------... | [
"18811371255@163.com"
] | 18811371255@163.com |
f17310c367e7e12cbab44d5a7348dc0f92e9f598 | 0c78499de3117281780d4b0f1c80cfb9b4d29d76 | /src/htmlparser/fsm_config.py | ff27c896686a2b0c4bf352e79868d6180f3f7ff2 | [
"BSD-3-Clause",
"FSFAP"
] | permissive | readdle/ctemplate | 8b290501836c51d4dcc019a1efdf163db7aeaee3 | d064089b9f9ba785951236388f291a992ea2bcd0 | refs/heads/master | 2023-06-29T14:50:17.687832 | 2021-07-30T10:05:37 | 2021-07-30T10:05:37 | 103,137,183 | 0 | 1 | BSD-3-Clause | 2020-11-17T14:37:27 | 2017-09-11T13:08:19 | C++ | UTF-8 | Python | false | false | 6,993 | py | #!/usr/bin/env python
#
# Copyright (c) 2008, Google 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:
#
# * Redistributions of source code must retain the above copyright
# notice, this ... | [
"csilvers@cb39b542-eb2e-2a05-867b-f1791dd5f601"
] | csilvers@cb39b542-eb2e-2a05-867b-f1791dd5f601 |
d660b8f6f725d3cd5c10ca886c02fb972c6e269d | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2948/8246/310215.py | b758e25e47b223df14d6b4ad25555750e6dc585b | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | def toNum(str, ST):
a = []
for i in str:
a.append(ord(i) + ST - ord('A'))
s = ''
for i in a:
b = repr(i)
s = s + b
return s
def cal(num):
yuan = 0
tem = 0
end = 0
num1 = ''
for i, n in enumerate(num):
if i < len(num) - 1:
tem = (int(nu... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
81edb177b636d7282ab003407f5fa089d31d0e6d | c66955c6fc178955c2024e0318ec7a91a8386c2d | /testframework/excise/utils/capturepic.py | ff5b329a4d6139ca203f1c8101ee25e3b8be21c2 | [] | no_license | duheng18/python-study | a98642d6ee1b0043837c3e7c5b91bf1e28dfa588 | 13c0571ac5d1690bb9e615340482bdb2134ecf0e | refs/heads/master | 2022-11-30T17:36:57.060130 | 2019-11-18T07:31:40 | 2019-11-18T07:31:40 | 147,268,053 | 1 | 0 | null | 2022-11-22T03:36:51 | 2018-09-04T00:49:42 | Python | UTF-8 | Python | false | false | 180 | py | #!/usr/bin/env python
# encoding: utf-8
from PIL import ImageGrab
def capture_screen(name):
pic = ImageGrab.grab()
rgb_im = pic.convert('RGB')
rgb_im.save(name+'.jpg') | [
"emaildh@163.com"
] | emaildh@163.com |
25e3abd88e5495b1d169ae76202aff290c4c0f12 | 837e3c702227e315add14614c13b6bd8e26751f4 | /packages/python3/predefined.py | 10a12a4d4d5e2a0a240295eaa6e4f224918779de | [] | no_license | Somewater/raic2019 | 22887670f5db92f4712d249626460240711af199 | 8b8496c4e07ec3d76c616390d322cc674f3b15cf | refs/heads/main | 2023-02-09T02:07:10.342847 | 2019-01-24T21:30:56 | 2019-01-24T21:32:57 | 325,128,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,908 | py | from typing import Tuple
from model import *
from vector import Vector3D
def dan_to_plane(point: Vector3D, point_on_plane: Vector3D, plane_normal: Vector3D) -> Tuple[float, Vector3D]:
return (point - point_on_plane).dot(plane_normal), plane_normal
def dan_to_sphere_inner(point: Vector3D, sphere_center: Vector3D,... | [
"naydenov.p.v@gmail.com"
] | naydenov.p.v@gmail.com |
336571ac6ea33727134c2ca4fa831e2edf29be84 | bf79223acb138bfe077ca34ef72d44579b3efcbe | /CrawlerProject/middlewares.py | 76793c862fabf0dedd745777223a2ead9e9127a8 | [] | no_license | trinhvanson1997/Crawler | e5d9c599d61349ac1f52ce325bf2502ceb8e13b8 | 638014c7ea1cdd096f45ec5350c96ed6fc41c87c | refs/heads/master | 2020-06-21T16:50:28.285596 | 2019-12-17T03:24:46 | 2019-12-17T03:24:46 | 197,506,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,605 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class NewprojectSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scra... | [
"trinhvanson1997@gmail.com"
] | trinhvanson1997@gmail.com |
4ecf64346a9186c32e333be143fcd0a82394f5b1 | 78f5fc0518ea7569df872940743772dbd1ca96ab | /4_python&database/function_to_insert.py | c6995cfe71152e1e9ba2b555bdeda02a08ecd985 | [] | no_license | Gosiak87/python_training | 7443974520bd0a3c3335011daed5c2038662859f | 676a417b62d6d3985d84d469ca11016dda9e6156 | refs/heads/master | 2021-04-12T11:45:33.484314 | 2018-04-10T11:00:13 | 2018-04-10T11:00:13 | 126,743,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | from psycopg2 import connect
USER = 'postgres'
PASSWORD = 'coderslab'
HOST = 'localhost'
DB_NAME = 'exercises_db'
def insert_product(cursor, product):
sql = '''
INSERT INTO product VALUES (DEFAULT, '{}', '{}', {});
'''.format(product['name'], product['description'], product['price'])
cursor.execu... | [
"miziolekgosia@gmail.com"
] | miziolekgosia@gmail.com |
619a9f0fd967e1b2b3ac08f18ca81153d942dfd4 | 256040ad2e34c042611b526fd1c9c2d39b28afed | /cv2test.py | 29ca4774324a3d3ebf5d85f510dc61b0329c64df | [] | no_license | BabaJaguska/unseemlyPythonStuff | 282b34e5ae912984ba4ed3aa82b18d4fdf2ffe07 | f159d4eebbca0ee706168b986d53e7ae560c90bb | refs/heads/master | 2022-03-09T20:36:42.940906 | 2022-02-15T21:26:56 | 2022-02-15T21:26:56 | 102,620,779 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,033 | py | # import numpy
# import os
from PyQt4.QtGui import * # GUI, for file dialog
import sys
import cv2 # OpenCV
from matplotlib import pyplot as plt
###########################################################
plt.close("all")
# so this doesn't seem to close previous session
# print(os.getcwd())
# os.chdir("C:/Us... | [
"noreply@github.com"
] | BabaJaguska.noreply@github.com |
75f0c2838a6a100e1decfa52f011bc638d32fc23 | d1e7f86903565dc7aed5e29e14b962fb9f133392 | /Python_Scripts/colonANDprobchar_count.py | f78f43a555349e7a06f77cac5cfe664c1d1dbf8f | [] | no_license | brentnixon/WrangleOSM | 092e8f97fd14955af00366e24cbdacf95363ff17 | 7bdf1dfbdc6f3692e7923131ecf00df9539e8b7d | refs/heads/master | 2021-05-03T21:10:07.024427 | 2018-02-06T16:27:59 | 2018-02-06T16:27:59 | 120,377,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | ## code block to identify and count attribute keys with colon structure or problematic characters
import xml.etree.cElementTree as ET
import pprint
import re
# define regular expressions for compiling
lower = re.compile(r'^([a-z]|_)*$')
lower_colon = re.compile(r'^([a-z]|_)*:([a-z]|_)*$')
problemchars = re.compile(r'... | [
"noreply@github.com"
] | brentnixon.noreply@github.com |
56a7c862a6a90c22e304b8ad1a9597dbfa0bce28 | e31104db88bf3bc7c93bf2c45b85dbbddefb03c6 | /partition-array-disjoint-int.py | 9d76ea7a5290b3ac5b9358785280e409765c030d | [] | no_license | ravitej5226/Algorithms | 13eab6ded0c8bf7ca67d7075cfbb585325b5faff | ba2b51ff9f3e25780a3d62573e9c7fc4445d8ef8 | refs/heads/master | 2020-05-30T05:50:35.126086 | 2019-04-08T21:16:13 | 2019-04-08T21:16:13 | 42,272,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,438 | py | # Given an array A, partition it into two (contiguous) subarrays left and right so that:
# Every element in left is less than or equal to every element in right.
# left and right are non-empty.
# left has the smallest possible size.
# Return the length of left after such a partitioning. It is guaranteed that such a p... | [
"ravitej5226@gmail.com"
] | ravitej5226@gmail.com |
123fc126d6045a0528d010006dbe280fb70dea9a | 004524db0f6c5b5ba2c7ca19250bbfa6c13f2007 | /cli.py | 8a15da9d320520a2021568ffb5726753d62b72b1 | [] | no_license | mrkzncv/FlaskApp-HW1 | 36569542c4e51c6c0c38276166eb93a898e7655c | c3375ac2e710952c4fd1f596c94d7100cae69032 | refs/heads/main | 2023-09-03T11:13:54.997625 | 2021-10-29T17:45:57 | 2021-10-29T17:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from config import HOST, PORT
import sys
import os
def start():
from app import app
app.run(debug=True, host=HOST, port=PORT)
if __name__ == '__main__':
sys.path.insert(0, os.path.abspath(os.getcwd()))
start()
| [
"noreply@github.com"
] | mrkzncv.noreply@github.com |
5ef0715b59faa6086a64e87c379247a2517cbbdb | c4bd9a742f9b08fb07bd5c2665884b18623fefba | /Web_Scraping/scrape_product_info_and_reviews.py | 7488f2eec99020106244486fba378f9d6c1c1bd0 | [] | no_license | maianhtrnguyen/sephora-ratings-nlp | 8bc792b38062fe0c3a622307843621371c4be88a | 9828fccdded0e85e2971d025fa21d736218a2215 | refs/heads/main | 2023-07-12T04:02:36.702902 | 2021-08-19T15:45:20 | 2021-08-19T15:45:20 | 394,835,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,320 | py | import sys
from urllib.request import urlopen
from urllib.request import FancyURLopener
import pandas as pd
import numpy as np
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from sele... | [
"maianhtrnguyen@gmail.com"
] | maianhtrnguyen@gmail.com |
b07ca38131dbcdbe5dd6074e87a1e31ffdf2d973 | 5ff4d30b93543becc357ff3b660cfc07c72a4def | /algorithm_and_data_structure/初级算法/链表/删除链表的倒数第N个节点.py | 6d93af2cc08dd4def5ca81f8299fd742de3eafdd | [] | no_license | isaac-wang0913/Python | 6f3e0c903ae0d9912dcdd12ab82397f046bd21b3 | c0eb74b08e4be7234ba739390e4ddb08ba34ca38 | refs/heads/master | 2023-03-27T23:37:30.208992 | 2021-03-23T03:35:07 | 2021-03-23T03:35:07 | 326,688,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def removeNthFromEnd(self, head: ListNode, n: int) -> ListNode:
# # 两次遍历
# # 第一次遍历得到length
# def getlength(head):
# length = 0
... | [
"noreply@github.com"
] | isaac-wang0913.noreply@github.com |
7eb7093ea418cc48f979a964195cdfae48e83f05 | ba55589c4810d01f0a63b70c23cd3ab4448750dc | /Python/thenewboston Tutorial/Python GUI with Tkinter/GUI Tutorial 8.py | 31da5a9fd4e1f6aac53854eba2d8317f0893b016 | [] | no_license | kedvall/projects | b4769c1829293407656032dbc285739f22ba05e7 | 3cab1933b17a3d5c5ec1d93a0203ceef581bb43d | refs/heads/master | 2021-03-14T05:51:51.703038 | 2020-03-12T04:47:10 | 2020-03-12T04:47:10 | 246,742,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from tkinter import *
class Buttons:
def __init__(self, master): # master mean the root or main window
frame = Frame(master)
frame.pack()
self.printButton = Button(frame, text='Print Message', command=self.printMessage)
self.printButton.pack(side=LEFT)
self.quitButton = Button(frame, text='Quit', command... | [
"kedvall123@gmail.com"
] | kedvall123@gmail.com |
155add56dfc5537f619d9a94e12bbad28052f370 | a806f84ad61f22e07f190d0a8c4152aa31621873 | /parts/migrations/0024_auto_20191211_2019.py | a310ce53c532e0b481e65ce1500d879f03300049 | [] | no_license | merkibek/GymFit | d78ee4c7e29a8b7856eb0946d25d45c06f3ed6f6 | bf31dcf5b142812d5e84b0e520b2df8605735462 | refs/heads/master | 2020-10-01T13:42:28.789417 | 2019-12-12T08:25:09 | 2019-12-12T08:25:09 | 227,550,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | # Generated by Django 3.0 on 2019-12-11 14:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('parts', '0023_auto_20191211_2015'),
]
operations = [
migrations.AlterField(
model_name='client',
name='image',
... | [
"32525150+pexes@users.noreply.github.com"
] | 32525150+pexes@users.noreply.github.com |
fc3eab265f2836bf309fd4f2573cefd47fdc1ddc | 7a8b0e76200fd484a36e3e3f5f014d1658bfa2ec | /gb_preprocessing.py | 7afaa8d3605138b1aa02577fce3f82103f633a28 | [
"MIT"
] | permissive | prashantig25/gaborbandit_analysis | 524215ff45694f572aa2a2a8d8d00c416743fce2 | c208be61d44b9e99d9fdc9c1469be1103198ea9a | refs/heads/master | 2022-12-16T01:21:14.551411 | 2020-09-18T14:05:51 | 2020-09-18T14:05:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,369 | py | """ This script runs the preprocessing steps
1. Load BIDS formatted data
2. Create preprocessed data frames for each experiment
3. Save data
"""
import sys
import os
from fnmatch import fnmatch
from gb_loaddata import loaddata
from gb_compute_misses import compute_misses
# ---------------------------
#... | [
"rasmusbruckner@gmail.com"
] | rasmusbruckner@gmail.com |
c90a5d1bc09ac04da6827108e557c822bdb48437 | f654b31d89552504130a59282a6dd14204ebdd04 | /pages/urls.py | 535e84d57739f50f42d10a88745c23a570fb9f5b | [] | no_license | Tuz-And/Eshopper | 82c085ef8075932645f7f3e8a9401cae4a681dcb | 2209186b504000f91671a5ee1ae9bf77ae023ebc | refs/heads/master | 2023-02-12T04:38:10.684225 | 2021-01-11T00:37:59 | 2021-01-11T00:37:59 | 315,384,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | from django.urls import path, include
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('error', views.error, name='error'),
path('contact-us', views.contact_us, name='contact_us'),
path('login', views.login, name='login'),
path('logout', views.logout, name='logout'),
... | [
"kozurnuj89@gmail.com"
] | kozurnuj89@gmail.com |
194608dca9ab1c00fceed10af6ca359ee1408963 | 4ed184a588440d39cff1db54970cece84232d406 | /tts.py | 0d6c8ad60d6113d6f695d537292f899d4363e81b | [] | no_license | jkjh8/lotteplayer | 56f9c5687eb1be608c2df2946e82ad027982ec47 | b0e3a2823efd091b266fbc8b6b1544a44033ca57 | refs/heads/main | 2023-02-17T11:30:25.595463 | 2021-01-19T11:14:07 | 2021-01-19T11:14:07 | 330,953,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | import os
import sys
import urllib.request
client_id = "bh51u91nlo"
client_secret = "0zRDttwNbszDNeBMgBrzJsSmmOPtZDRzr6du9Hst"
encText = urllib.parse.quote("반갑습니다 네이버")
data = "speaker=nara&volume=0&speed=0&pitch=0&emotion=0&format=mp3&text=" + encText;
url = "https://naveropenapi.apigw.ntruss.com/voice-premium/... | [
"jkjh82@naver.com"
] | jkjh82@naver.com |
f8b20bd8f0839c437f4559d5875b8a161264755f | eaed2f40fcf58ece2ba0372991dcff11e681989d | /bot/chains/admin_panel/state.py | 50d7d6c2cb10db1757acb677163a4e395007fa91 | [] | no_license | vapelavsky/khaba-telegram-bot | 7efd96cde75c3a24c0d6a274a362e5e3e7c9188b | b577875f94f65263e7530ffae4631fb01a72d671 | refs/heads/master | 2023-06-09T06:40:29.684635 | 2021-04-23T11:29:30 | 2021-04-23T11:29:30 | 357,331,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | from aiogram.dispatcher.filters.state import StatesGroup, State
class AdminPanel(StatesGroup):
wait_name = State()
wait_faculty = State()
wait_password = State()
wait_faculty_report = State()
wait_name_delete = State()
| [
"mscn.brtlmo@gmail.com"
] | mscn.brtlmo@gmail.com |
4ca15cc7e0db65987926b19da6b356aad1f95f82 | 0e764783c2c60038b55d88fde20b88d5aad9ef03 | /ShellyMQTT.indigoPlugin/Contents/Server Plugin/Devices/tests/test_Shelly_EM_Relay.py | 255561b89713bdf3eb635f1642bb3cc90c698fac | [
"MIT"
] | permissive | AaronLionsheep/ShellyMQTT | 1211c49c0c038cf45ac97d82ad211a94dfa3689a | d0c6659acc40f33cd2e629f88bdb7a9ec0d28123 | refs/heads/master | 2023-03-22T16:17:17.308577 | 2023-02-27T01:40:55 | 2023-02-27T01:40:55 | 243,353,135 | 0 | 0 | MIT | 2023-02-27T01:40:56 | 2020-02-26T19:56:56 | Python | UTF-8 | Python | false | false | 6,337 | py | # coding=utf-8
import unittest
from unittest.mock import patch
import sys
import logging
from Devices.tests.mocking.IndigoDevice import IndigoDevice
from Devices.tests.mocking.IndigoServer import Indigo
from Devices.tests.mocking.IndigoAction import IndigoAction
indigo = Indigo()
sys.modules['indigo'] = indigo
from D... | [
"aaronr@vt.edu"
] | aaronr@vt.edu |
14d3c676148de7b649fe5236285e0bed7a7a2b96 | 1a2e477c5beee5ec1fc42bc537f6b68b14e4a522 | /main.py | 5665624cf652e268e8673d0768eeba1728d9f4f4 | [] | no_license | alvendarthy/ast-lib-test | 3ea25188b188122be55b4677d0f540f91bed53ec | 9919525d66702b175c7e1a501f991a76665a57b0 | refs/heads/master | 2022-12-22T23:58:41.225765 | 2020-09-23T10:18:35 | 2020-09-23T10:18:35 | 297,928,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py | import ast
add_arg = "test()"
with open("target.py") as f:
tree = ast.parse(f.read())
import astpretty
astpretty.pprint(tree)
class Visitor(ast.NodeVisitor):
def visit_Import(self, node):
for alias in node.names:
print("package {} imported.".format(alias.name))
def visit_Call(se... | [
"alvendarthy@gmail.com"
] | alvendarthy@gmail.com |
98846862a2f458e43bcc033b9ff40f5a7d1aecc2 | 21b02268b85e4be78a6c4e5c425f8950f3a8c982 | /samples/adsense/get_all_ad_clients.py | ae76aa1235928967695657ebd68bff68915c55fd | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"Apache-2.0"
] | permissive | skygate/GoogleApiPython3x | cd1148366d4d544c3e2215da25485ee73a272fff | c21bd6ae630f967ef65dc45e35ad69789991c819 | refs/heads/master | 2020-04-08T20:16:29.841694 | 2018-11-05T01:33:23 | 2018-11-05T01:33:23 | 31,593,687 | 3 | 2 | NOASSERTION | 2018-11-05T01:33:24 | 2015-03-03T10:52:40 | Python | UTF-8 | Python | false | false | 1,889 | py | #!/usr/bin/python
#
# Copyright 2011 Google 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.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"fredrik.blomqvist.95@gmail.com"
] | fredrik.blomqvist.95@gmail.com |
d8df2cdf271b21d6f5cb826a38c36653ee3a0281 | 898d2e3d2b0b46818a8cb939407ae79e43446389 | /gen/se/ttypes.py | 2c5842bee6b465051d9758685e4863d58cf38c40 | [] | no_license | yinting123/Tools | 158cfaddd577034c2955c18c37d406362f7dd812 | 150003ac3765246b7e7b1fdb8e98d0bc79d68b85 | refs/heads/master | 2021-01-19T10:08:02.910607 | 2017-07-26T12:13:23 | 2017-07-26T12:13:23 | 87,827,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 114,881 | py | #
# Autogenerated by Thrift Compiler (0.9.2)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
import sys
sys.path.append('../')
sys.path.append('../gen/gen.cm/')
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
import gen.cm.ttypes
from th... | [
"2496500330@qq.com"
] | 2496500330@qq.com |
1314315381b32f297c8b5ebb1101568888603507 | 87928277a8ce68d305930930ea2e5ac68321f21b | /Vegan_Cosmetics.py | 821bcd05307d7f11285c2d8d63760a7a9ebe42a7 | [] | no_license | gzone2000/Weather_Bigdata_contest | 8e3857a2adb06b0ec2d2969b522b8c4861a16b37 | 1bbfd0d93f19dadffca6f3ef6c3bd1e677711c09 | refs/heads/master | 2023-07-18T10:34:13.077843 | 2021-09-03T08:43:25 | 2021-09-03T08:43:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,170 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
plt.rcParams['font.family'] = 'Malgun Gothic'
import seaborn as sns
from datetime import datetime
from bs4 import BeautifulSoup
import requests
from sklearn.preprocessing import LabelEncoder
from sklearn.preprocessing import StandardScaler
from skle... | [
"dalgoon02121@naver.com"
] | dalgoon02121@naver.com |
805aab6c2c2b50a743625a7437f049bcd223240d | 341c5d8177e06b8668d7d2f81a0a0c022344e3a6 | /Graphs/graph_kruskal_alog.py | d076317d523e2e8b6b351391d3fc64d1e896a5ef | [] | no_license | vsunilc/Python-Datastructures | e060e378eb8dd2324981039bf4d22a712a58926d | 37fb0c1a9b02ae449f484d0bdb33db2dfc0cdcea | refs/heads/master | 2021-10-25T21:11:26.498573 | 2019-04-07T19:30:43 | 2019-04-07T19:30:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | def make_sets(vertice):
return set(vertice)
def list_iterator(vertices):
lst=[]
for vertice in vertices:
s=make_sets(vertice)
lst.append(s)
return lst
def kruskal_algo(edges,lst):
print (lst)
for ed in edges:
#to assign variable as blank and if there is no match from the list ... | [
"noreply@github.com"
] | vsunilc.noreply@github.com |
a0208ba3bab7f7287535e12b32f544e67232e5da | 0213636db1ff1d4085b15976b5c2cfc21b8cc36b | /onlinesale/orders/models.py | 31284f223b2fd1a2def254809f50228e5a0d9bfd | [] | no_license | sneha-lohana/django-wd111nov | a28500098420112bf54baa1364a3fa61dc06f99c | b854529de5248442ecc2f81651a5f4876c064ec1 | refs/heads/master | 2020-11-29T09:39:43.259831 | 2020-01-09T07:55:41 | 2020-01-09T07:55:41 | 230,082,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,040 | py | from django.db import models
from billing.models import BillingProfile
from addresses.models import Address
from carts.models import Cart
from django.db.models.signals import pre_save
from products.utils import unique_orderid_generator
from decimal import Decimal
ORDER_STATUS_CHOICES = (('created', 'Order is created')... | [
"sneha.lohana16@gmail.com"
] | sneha.lohana16@gmail.com |
11defba8402b89281604401f48104e46d8ac8d01 | 68e48a65069a1929afebe47e731d5e788ac2a024 | /test.py | b06b4f8b75b0c5398c7abf2f0c752edb0f8fb24b | [] | no_license | James0618/RL_algorithms | da8f9e93cb8aa3904b14de0c06a3476cdc33e8e4 | c6f845fb68dafea670a315166628fff2243fe47e | refs/heads/master | 2020-09-30T11:26:41.769505 | 2020-02-19T07:55:39 | 2020-02-19T07:55:39 | 227,278,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,122 | py | import sources.PPO as PPO
import torch
import torch.nn as nn
import multiprocessing as mp
import torchvision.transforms as transforms
from torch.distributions import Categorical
import gym
import time
import cv2
import numpy as np
import common.atari_wrappers as wrappers
from PIL import Image
class AtariNet(nn.Module... | [
"cjj_xjtu@163.com"
] | cjj_xjtu@163.com |
4b7c633de1f50bdc2f4783c6aae3dcaeb6d661c2 | dac1dd134013bced08e9c16123d9398d5413b71e | /Chapter07_prak1.py | c4219ea50c0adc1048153a179e67034b7ec1607f | [] | no_license | yeremiwesly/Python-Preject-Chapter7 | b9e99e94baf57b88a6096ac870707851f53186c2 | ed050e51b0b8c523a2a60738e7c9158eab36550b | refs/heads/main | 2023-01-23T05:42:50.136137 | 2020-12-06T14:45:18 | 2020-12-06T14:45:18 | 319,056,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | try:
file = open("h:/myfile.txt", "r")
print(file.read())
except FileNotFoundError:
print('File tidak ditemukan')
#saya menggunakan direktori h:\
| [
"yeremiwesly@users.noreply.github.com"
] | yeremiwesly@users.noreply.github.com |
4d9996e799785094a1593a0af661a2d1c183b849 | 2979c56cdb830c7accf62981e77b43c1f6299e22 | /app/utils/__init__.py | 70f9d00470c1a96b46e7f23d08fed5cda43d976c | [
"Apache-2.0"
] | permissive | ZhouRR/quotations-gateway-api | 5e4964bea510529a975888f1eb80bdd6e9aab752 | ef433fe8e461344a6c59e5edec206ad4ba7eeff6 | refs/heads/main | 2023-07-08T17:40:23.092810 | 2021-08-10T08:10:42 | 2021-08-10T08:10:42 | 394,570,577 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/6/5 17:37
# @Author : CoderCharm
# @File : __init__.py.py
# @Software: PyCharm
# @Desc :
"""
"""
import app.utils.config_utils
import app.utils.response_code
import app.utils.custom_exc
| [
"zhourr_jp@yahoo.co.jp"
] | zhourr_jp@yahoo.co.jp |
b32a19c6c31163b91cb4222cfe4d33fcfd77ca1e | f52b99e4c490a0cffc3548c78c8c22607c3a3aec | /model/strategy.py | b4ab00371c3ba6eba2faf5ebaad43a7729063ded | [] | no_license | 915-Muscalagiu-AncaIoana/ConnectFour | 93cd50da0570923fde6c71696bc1e8b7f1090c78 | 45f3985e1d8ced9e9c8891f838fb5acc98138818 | refs/heads/main | 2023-08-04T17:23:59.656600 | 2021-10-01T07:31:05 | 2021-10-01T07:31:05 | 412,356,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,489 | py | import random
import copy
class StrategyAI:
"""
This class represents the Strategy used by the Computer(the AI) to play the Game
(using the minmax algorithm for finding the best move)
"""
def minimax(self, board, depth, alpha, beta, maximizing_player, computer, human):
"""
... | [
"anca.muscalagiu@stud.ubbcluj.ro"
] | anca.muscalagiu@stud.ubbcluj.ro |
19d11f4ab63e8ff41b52f2947c8322cd5064a755 | 5825d45f497b879b9c5bd2b140b2ebcbbd537138 | /poo_abstracao_encapsulamento.py | b00b044c0e3eac3caf658915c1982cd5883aaad2 | [] | no_license | isabelaaug/Python | 5fa696b77d1aa67026478fdd4182789df8cbc76e | ea3ab15ac7db75b77ad48fc11009640a569c0cab | refs/heads/master | 2021-04-24T06:27:24.426902 | 2020-06-10T03:09:58 | 2020-06-10T03:09:58 | 250,092,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | """
Abstracao e Encapsulamento
Abstracao eh o ato de expor apenas os dados relevantes de uma classe, escondendo atributos e metodos privados.
"""
class Conta:
contador = 4999
def __init__(self, titular, limite, saldo):
self.__numero = Conta.contador + 1
self.__titular = titular
se... | [
"isabela.augusta@hotmail.com"
] | isabela.augusta@hotmail.com |
d9e2b3d4a24d04dffdc4fd9f234fca2e048457e0 | 934107eaba17b352bf7bf3a9c0a45af4f263fd54 | /tests/integration/tests.py | 7411d70ab3d5ec27f1b21641cd3f467b3285d47e | [] | no_license | quentin338/Purebeurre-p8 | d0324f0fbc7e96a1418b367ea41ef3f4f51cc437 | 15bb4192df331d790ef28140e65213ac604cf96e | refs/heads/master | 2023-08-07T22:25:10.975870 | 2023-07-26T10:21:04 | 2023-07-26T10:21:04 | 207,123,046 | 0 | 0 | null | 2023-07-26T10:21:06 | 2019-09-08T14:17:16 | CSS | UTF-8 | Python | false | false | 1,278 | py | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from django.test import LiveServerTestCase
from users.models import User
chrome_options = Options()
chrome_options.add_argument("--headless")
class AccountTestCase(LiveServerTestCase):
def setUp(self) -> None:
self.se... | [
"quentin.bertrand@yahoo.fr"
] | quentin.bertrand@yahoo.fr |
5ccab8e21c11052fa3ffacd6198ff234d83f4db5 | 4bc8e370e557a8670dee8d5cc4253fc779c6f95a | /pelicanconf.py | c75fdb5811da0268cae8ce5a3287b011771b55ab | [] | no_license | aurielfournier/wrightaprilm.github.io | 9f505e5dce5210beba567d6e9700a8c055138029 | 826577dac100b822a581c99a71a0247d61fe4451 | refs/heads/master | 2020-12-29T18:48:32.670007 | 2015-11-05T17:26:11 | 2015-11-05T17:26:11 | 46,506,712 | 0 | 0 | null | 2015-11-19T16:53:35 | 2015-11-19T16:53:34 | null | UTF-8 | Python | false | false | 794 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'April Wright'
SITENAME = u'Wrighting April'
SITEURL = 'http://wrightaprilm.github.io/'
FEED_ALL_RSS = 'indexrss.xml'
FEED_ALL_ATOM = 'index.xml'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'en'
# Feed generation is usua... | [
"wright.aprilm@gmail.com"
] | wright.aprilm@gmail.com |
dcd9c77e063619bfe0d0197970794ce7a9ee4a80 | 4aaac54b8d02d93e7055740ccafdfe673fb42aaf | /g01/graph/graph_operators.py | 90ee31ed08e074a6ca631f030bc5f0859d1cda56 | [
"MIT"
] | permissive | tor4z/G01 | aff941b4e522901aa9d9030658962496cd4a72fc | 54e69d5ef0650d8903d215bb0514feb762c6446f | refs/heads/main | 2023-07-17T21:39:41.384943 | 2021-09-13T01:47:51 | 2021-09-13T01:47:51 | 405,638,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | from typing import List
from .node import Node
from .utils import Queue
def top_sort(node: Node) -> List[Node]:
dfs_seq: List[Node] = dfs_sort(node)
return reversed(dfs_seq)
def dfs_sort(node: Node) -> List[Node]:
result: List[Node] = []
def _dfs_sort(node: Node) -> None:
if node.name not in... | [
"vwenjie@hotmail.com"
] | vwenjie@hotmail.com |
50c5146f88a14bc391b83e2fa3e936f044ca17a5 | c0f4104194a7989e44d7f0161b2425c5a5bc3a98 | /freezer_api/tests/unit/test_jobs.py | 78c2ba4b5f9155cc4248434cf8a48cf76fd1adb7 | [] | no_license | bopopescu/Openstack-2 | f65470bdd0ee4736c45b6f869f0453cb8eb446c8 | 6f06133562e3dfd490695a92c9ddf1a322675104 | refs/heads/master | 2022-11-28T09:19:21.633850 | 2016-06-23T07:55:32 | 2016-06-23T07:55:32 | 282,095,817 | 0 | 0 | null | 2020-07-24T01:44:49 | 2020-07-24T01:44:48 | null | UTF-8 | Python | false | false | 18,356 | py | """Freezer swift.py related tests
Copyright 2015 Hewlett-Packard
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | [
"egonmin@CN00119199"
] | egonmin@CN00119199 |
5c9bd3ddf914af0796960636999e26503d3eeb2b | 04a643a77927bc56ab58c7df91d4733321e61e51 | /tools/parse_browser_sheet.py | 43271b6ddad6eb78f6006ba483ba31cf0609e196 | [] | no_license | dcollins4096/p19_newscripts | d2fae1807170a4d70cf4c87222a6258211f993ff | 23c780dd15b60944ed354406706de85282d0bee6 | refs/heads/master | 2023-07-21T11:53:55.188383 | 2023-07-18T17:38:21 | 2023-07-18T17:38:21 | 215,159,839 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | from starter2 import *
import pandas as pd
sim_list=['u501','u502','u503']
for sim in sim_list:
core_ids = []
modes = []
if 0:
D1 = pd.read_excel("browser_data/core_browser_plots.xlsx", sheet_name=sim)
for nc,core_name in enumerate(D1['Core']):
core_id = int( core_name.split("c"... | [
"dccollins@fsu.edu"
] | dccollins@fsu.edu |
a11552e4daab8cd3d2cce65ce4ad1f287cbe3e3f | ce11e10d32fd2c4a6fcd6a499e89ee8adce112ba | /Arnaque/urls.py | f27a97b2f796c54a47edd6f26e87edde1a7295a2 | [] | no_license | bendaouda/TPAL | e400a666061cf796bc1ee5ea774e2b5987e7cc2f | ed49af5bc141612a9785a4dea5e50a5d2302bd12 | refs/heads/main | 2023-03-11T01:32:47.685024 | 2021-02-25T00:35:49 | 2021-02-25T00:35:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path('',views.list_Arnaque),
] | [
"ben.juniors.bd@gmail.com"
] | ben.juniors.bd@gmail.com |
403301db71aeb6b6c984de6a02169e6b671f554a | 5e00df3056e94c6ca5775f478f2d64adfecf3406 | /primeraPruebaASI/GYM/views.py | 64f3d5ea6966501369eaa6fbbf462b0af6ef08f4 | [] | no_license | diegooa116/proyectoDjango | 91cc06fca89e94ed3acc56412b5b59529354d59b | fe83bcb622ee0be5f27bc10417a9f06e59fadfad | refs/heads/master | 2022-12-24T23:14:43.979351 | 2020-09-08T17:19:13 | 2020-09-08T17:19:13 | 293,879,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | from django.shortcuts import render
from django.http import HttpResponse
#Api rest imports
from django.contrib.auth.models import User, Group
from rest_framework import viewsets
from rest_framework import permissions
from GYM.serializers import UserSerializer, GroupSerializer
# Create your views here.
def saludo(req... | [
"61633319+diegooa116@users.noreply.github.com"
] | 61633319+diegooa116@users.noreply.github.com |
12e8e2dbd1b2e32655d0f8dd63debf4b7d3c2b74 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03495/s406265129.py | ca2b3992da240d611688382742c8a72462e030fc | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | from collections import Counter as CC
N, K = map(int, input().split())
A = list(map(int, input().split()))
B = CC(A)
C = sorted(B.values())
print(sum(C[:max(0, len(C) - K)])) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
13998877f896e1e07a169bfdc4b7a2681f79f1cb | 0b21ee33231d4548594c4e173e48f55d15915244 | /practise2.py | a764dfe3ac240d02d9a79646f2095a6de160301a | [] | no_license | karendi/python | 366163f8253cd36a36f46e09253e2ae0090583bf | 50028ab1f4323ec2d61a8780e68cfa5cd82429b5 | refs/heads/master | 2022-08-30T09:28:18.347593 | 2022-08-12T17:39:25 | 2022-08-12T17:39:25 | 63,315,631 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | def breakwords(stuff):
words = stuff.split(' ')
return words
def sort_words(words):
return sorted(words)
def print_first_words(words):
word = words.pop(0)
print(word)
def print_last_words(words):
word = words.pop(-1)
print(word)
def sort_sentence(sentence):
words = break_words(sente... | [
"sharonkarendi16@gmail.com"
] | sharonkarendi16@gmail.com |
2fc190c8d1e0b64caf51a0f5376f297d4cdc40b6 | aea8b2ab005fed48b0fc1b458c3efbd77cdf0dad | /research/_tests/test_selenium.py | d73153ee9c818b0220d41393d36381e1f638e636 | [] | no_license | vcrl/Projet11 | 4dff4d1ba3986a7ab93aa4cc4b2d13cb0bb03330 | 694581003d0f21e17a48d4987bcad64d22f36ec6 | refs/heads/master | 2023-04-10T23:58:04.860332 | 2021-04-13T14:48:27 | 2021-04-13T14:48:27 | 357,165,979 | 0 | 0 | null | 2021-04-12T21:37:34 | 2021-04-12T11:23:18 | CSS | UTF-8 | Python | false | false | 906 | py | from django.test import TestCase, Client, RequestFactory
from django.urls import reverse, resolve
from django.core.paginator import Page
from django.contrib.auth.models import User
from django.contrib import auth
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
class Test_Selenium():
... | [
"vincentruelle.pro@gmail.com"
] | vincentruelle.pro@gmail.com |
e8055d8d0a43d18614f567570810602aa0601cc2 | 81db87bc6a6e6ebc82f382df3841a61ce5a2270f | /match_column_names.py | 4b98ac3696cc3df1f096c75737439739cd34f207 | [] | no_license | EMAT31530/ai-group-project-team-football | 01b5d385bf4ae86625703940238524bd8afe2b4d | 357aadeb2c492ccd9ff29266e88f139ca0797c58 | refs/heads/master | 2023-05-07T21:38:35.002996 | 2021-05-18T23:25:23 | 2021-05-18T23:25:23 | 316,462,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | import sqlite3
con = sqlite3.connect(r'C:\Users\Luca\PycharmProjects\IntroToAI-Group5-TeamB(football)\database.sqlite')
cur = con.cursor()
cur.execute("SELECT * from Match")
names = [description[0] for description in cur.description]
print(names)
| [
"zy18811@bristol.ac.uk"
] | zy18811@bristol.ac.uk |
c8833f9fc9622b7c3d19b6abee8fc0c5db3ddeab | 979a9918f317ec4ab8326500e6057fae9b935f9f | /migrations/versions/e88462d015da_add_standard_run.py | 651e1abc0d56c1d53d032b9fcd15760c5819b3ad | [
"MIT"
] | permissive | lparsons/metabolite_database | 08f213b75b11835d528f8e7d150c2bafbb2189f8 | f1a5aa3e31d00e13ba4862e5cbb666b44dc67ce0 | refs/heads/master | 2020-04-06T07:24:11.120729 | 2019-03-08T20:01:44 | 2019-03-08T20:01:44 | 157,271,013 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,915 | py | """add standard run
Revision ID: e88462d015da
Revises:
Create Date: 2018-06-21 16:54:46.692617
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e88462d015da'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto g... | [
"lparsons@princeton.edu"
] | lparsons@princeton.edu |
82c18a4f0c8dbd74d2185d2e99b1081d973c5004 | 5cf715950102f59fcb71d7a76d1fc8517012ff4c | /main.py | a44ac4ae8f331fe72089767899e61d9c9d7eb0b6 | [] | no_license | vivanks/System-Vault-And-It-s-Monitoring-using-Python | eb03063047932c40cb5d9f957f508a89a904170b | a87a23c544ba592b08045a57086f7885ba0e68d9 | refs/heads/master | 2020-05-01T08:26:01.049018 | 2019-09-22T19:10:41 | 2019-09-22T19:10:41 | 177,378,819 | 21 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,428 | py |
import readline # arrow keys
import os # This imports your OS.
from loginmail import login_mailfunc
from mail import un_mailfunc
import pyrebase
i=0
config = {
"apiKey": "AIzaSyCk-zz4Tm9YYxyhX2C4NGTpbNO-zFDplkk",
"authDomain": "pythonlock-e5319.firebaseapp.com",
"databaseURL": "https://pythonlock-e5319.fi... | [
"vivanksharma@ymail.com"
] | vivanksharma@ymail.com |
4b043375ed3f0e4bf1e5f7e7266d0f5bd02a5ed0 | fbd04a6ef0a3f5b20df93b789b7464716e2f88c1 | /sql_queries.py | 8e0cfc41ab03fb1564a5bbde05a0eb22be519662 | [] | no_license | yuanliu1210/Data_Warehouse_Project | 33bb719ea6bc497095588f9e2388fb9ce8176213 | f819988ac3948b8a32bb75777711373eaf297790 | refs/heads/master | 2022-07-04T03:02:19.546065 | 2020-05-14T13:43:25 | 2020-05-14T13:43:25 | 263,924,926 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,080 | py | import configparser
# CONFIG
config = configparser.ConfigParser()
config.read('dwh.cfg')
# DROP TABLES
staging_events_table_drop = "DROP TABLE IF EXISTS staging_events;"
staging_songs_table_drop = "DROP TABLE IF EXISTS staging_songs;"
songplay_table_drop = "DROP TABLE IF EXISTS songplay"
user_table_drop = "DROP TABL... | [
"yuanliu1210@gmail.com"
] | yuanliu1210@gmail.com |
b975fcd774e1ff2c1195bcab830037bc445b1f82 | 6a1b0be3380d239de26807d165d0c318b3ca9ab2 | /dlmslib/utils.py | a326485eb002f487cd20489e88df8a796f835c3f | [
"MIT"
] | permissive | KeyiT/dlmslib | c1ab4fd63d34cae1f105344c6e5c78b3bf28b058 | b20f5e361548a17ef264603cf6cef464c75ccc4a | refs/heads/master | 2023-04-01T21:10:25.415148 | 2019-02-22T17:41:04 | 2019-02-22T17:41:04 | 167,739,288 | 0 | 0 | MIT | 2023-03-24T22:40:50 | 2019-01-26T21:10:35 | Python | UTF-8 | Python | false | false | 583 | py | import numpy as np
def is_integer(val):
return isinstance(val, (int, np.int_))
def is_float(val):
return isinstance(val, (float, np.float_))
def is_numeric(val):
return is_float(val) or is_integer(val)
def is_list_of_float(val):
if not isinstance(val, list):
return False
for ele in ... | [
"keyit92@gmail.com"
] | keyit92@gmail.com |
d7c65f3f93dd2eee93fc6db45f5f1a09d14678dc | 7df296a1515d85b15c4f6a1070853ae357012741 | /EnteroBase/enterobase.py | 2303df338161512a0310a8e735b3872c725c1edd | [] | no_license | gharari1/SalML | 2e5a2a6410a668a24156e4d95cbb25e5eb8fa416 | 13df5f4f24c95ed84a2548ff3782369db486129d | refs/heads/master | 2020-08-01T03:33:52.670982 | 2019-09-26T06:57:03 | 2019-09-26T06:57:03 | 210,847,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,071 | py | '''
*************************
Thanks to Dana Rapoport
for contributing to
the code.
*************************
'''
import os
import urllib.request
import json
import base64
import sys
from urllib.request import HTTPError
import logging
import pandas as pd
# You must have a valid API Token
API_T... | [
"noreply@github.com"
] | gharari1.noreply@github.com |
90c0619fa04ea2469add5d28c5ef7a650924cdd4 | 2a094ffb34eb8f8a7ddb8dc6e7dd01b617281ba6 | /demo_latent_space.py | 23134a03cab9a5402c1255a1fd7af6b2f3696a43 | [] | no_license | ricklentz/shapegan | 5cfadce637ae7901962419c331346282541e45ea | 090a6a8f2d2ee1c005b19acd831a7a7f943ab64d | refs/heads/master | 2022-11-14T10:57:00.931958 | 2020-07-14T23:09:08 | 2020-07-14T23:09:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,902 | py | from util import device, ensure_directory
import scipy.interpolate
import numpy as np
from rendering import MeshRenderer
import torch
from tqdm import tqdm
import cv2
import random
import matplotlib.pyplot as plt
from sklearn.manifold import TSNE
from matplotlib.offsetbox import Bbox
from sklearn.cluster import KMeans
... | [
"mail@marian42.de"
] | mail@marian42.de |
4dfb6b07cfc11aa0b89927d5daefb34f24fd2a4a | 380b9992ddff952346c39fc4a2d9190cc5cf6d1b | /cistats.py | d71ceb5ad67f2e0b548d85e610d071e20ab8dd68 | [] | no_license | aplavin/cistats | 61fd6fae659b9ef0e96ebbf8a1d81be03988259f | 8688c39f076a7d08c04df678594f249bd9a7dc0e | refs/heads/master | 2020-05-02T14:10:49.257098 | 2013-07-19T14:37:51 | 2013-07-19T14:37:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,364 | py | from flask import Flask, render_template, request
import hglib
from datetime import datetime
import xmlrpclib
import re
app = Flask(__name__)
hglib.HGPATH = '/usr/local/bin/hg'
def timesince(value, default="just now"):
now = datetime.now()
diff = now - value
periods = (
(diff.days / 365, "year", ... | [
"me@aplavin.ru"
] | me@aplavin.ru |
957ed1d0e0118f4d8f4e687cf64cac3716929ae3 | 77cd2fbaab036c8f2a19b2f2492895b5d7ac20bf | /calendar/main.py | a3cca0644cc15015c46399613ab10a4a0ad3eae2 | [] | no_license | mrh929/uestc_calendar_bot | 9f72caf1dac1a58ad325c84d2afd9771271911c6 | 7d70fe9bd0f6b6ab3599bd9b3f15530d83653ed3 | refs/heads/master | 2020-06-14T03:42:53.939625 | 2019-09-09T03:20:18 | 2019-09-09T03:20:18 | 194,885,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,925 | py | import telegram
import google
import logging
import base64
import io
from requests_html import HTMLSession
from google.cloud import firestore
from bs4 import BeautifulSoup
from PIL import Image
from time import sleep
from Spider import get_all_course
from UESTC_Login import _login, get_captcha
def __Bot_t... | [
"809999463@qq.com"
] | 809999463@qq.com |
9dde286444abdb781a63cf46ff1c010dd1be1bf2 | b94a62a7e8bb0106f9ff8b7c933fb3818305288b | /src/tasks/api/controller/Products.py | df383d274136cbb5482be1b9453284b8c1d5099f | [] | no_license | rijulg/q_coding_challenge | 1c2958a6f7af65657e9526381e5fc02f9437b5ce | 7e78f568c68e9ec02088fd7e23cc17abbf9a6634 | refs/heads/develop | 2023-08-21T14:40:38.169931 | 2021-09-28T13:51:30 | 2021-09-28T13:51:30 | 411,288,258 | 0 | 0 | null | 2021-09-28T14:01:35 | 2021-09-28T13:14:54 | Python | UTF-8 | Python | false | false | 447 | py | from flask import Blueprint
from ..datamapper import DataMapper
from ..model.Products import Products as ProductsModel
products_bp = Blueprint('products_bp', __name__)
@products_bp.route('/top_selling/<int:num_items>', methods=['GET'])
def top_selling(num_items):
items = ProductsModel(DataMapper()).top_selling(n... | [
"rijulg@gmail.com"
] | rijulg@gmail.com |
16ea09b1b607856af7749a50505668de699710cc | ed2b5193ae98c0f435a31b9ff10ba38688758582 | /wazo_appgateway_client/models/channel_talking_started.py | a693f453ad71d177c622b2e7850701bc6863ff82 | [] | no_license | wazo-platform/wazo-asyncio-ari-client | c1cbbf09cee887663cf6dd0aedb39b4ef32922c5 | ec777425f445021f41586d892085ca8574cb22ec | refs/heads/main | 2023-01-10T11:51:25.677649 | 2020-10-15T18:16:00 | 2020-10-15T18:16:00 | 304,405,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,579 | py | # coding: utf-8
"""
localhost:8088
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 5.1.1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
... | [
"sylvain@wazo.io"
] | sylvain@wazo.io |
ea26f99cb03f513d7a6a1cc852bc1911b07eb2e2 | daab57b794c7f3fc59ece13b516e18f99b40372d | /virtualenv/lib/python3.4/site-packages/prospector/__pkginfo__.py | 84b807e861588253bc9e4ce73b9a0d8de75ede3b | [] | no_license | JakeCooper/AdmitMe | 272fd80cc868d4b6764a738843533d731d305497 | e28ebe538e68639c031d240bc38362f7fac483c7 | refs/heads/master | 2020-09-14T19:27:01.088620 | 2016-09-11T07:49:06 | 2016-09-11T07:49:06 | 67,902,114 | 1 | 1 | null | 2018-12-09T20:29:56 | 2016-09-11T00:48:41 | JavaScript | UTF-8 | Python | false | false | 105 | py | # -*- coding: utf-8 -*-
__version_info__ = (0, 12, 2)
__version__ = '.'.join(map(str, __version_info__))
| [
"jake.elijah.cooper@gmail.com"
] | jake.elijah.cooper@gmail.com |
0d4a6722460d4e7f1f42de735ae46e4666d6dad0 | 03676c74e4cc8d321b2a4d0ad0decbf81b43e294 | /three_digit_reverse/main.py | ed97808e9bb3f952c781ad21f1b9c1b23f7cf300 | [] | no_license | AbishekNanjappa/MyPythonCode | 16c2948f083f36ebd6d849b105af4a1046c43501 | 0dea5f9146f2f3db7499c72304d50b9c9c1e963b | refs/heads/main | 2023-01-02T18:53:04.360025 | 2020-10-28T05:22:39 | 2020-10-28T05:22:39 | 302,643,587 | 0 | 0 | null | 2020-10-28T05:09:39 | 2020-10-09T13:05:50 | Python | UTF-8 | Python | false | false | 205 | py | import utility
num = int(input("Enter a three digit number:\n"))
return_val = utility.three_digit_reverse(num)
if return_val == -1:
print("Enter a three digit number")
else:
print(return_val) | [
"noreply@github.com"
] | AbishekNanjappa.noreply@github.com |
3038995c915fe17ce7ccc604ee1c93ab4558af56 | 5be5f49f289babb6d206174036ee96192bd340df | /dmsw/blog/migrations/0016_auto_20200510_1849.py | 3b44be50f720fdc0ec88f95f49730a429a6e7ec5 | [] | no_license | ogglin/DiscoverMoscow | 7ccd24481c31855b4d674bda213139a575fcb68c | 9634637107625b1e538a18533b25422d79869051 | refs/heads/master | 2022-12-04T11:12:26.131403 | 2020-09-01T10:19:11 | 2020-09-01T10:19:11 | 258,610,397 | 0 | 0 | null | 2020-05-27T12:05:32 | 2020-04-24T19:55:32 | Python | UTF-8 | Python | false | false | 9,492 | py | # Generated by Django 3.0.5 on 2020-05-10 15:49
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.embeds.blocks
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
('blog', '0015_auto_20200510_1849'),
]
operati... | [
"server.ares@gmail.com"
] | server.ares@gmail.com |
da03445e886f095bca1890224c388f7e5cca65aa | fe72a7d2e770ed20e06aae3b62af6c810834a8f6 | /venv/Scripts/pip3.7-script.py | 1ae5e1a43c5e8296a1afdef84bec63e65884c3a5 | [] | no_license | HuYu211/finaltest | b026485b97628c2d022e8c89524a32cbf09e16dd | 70962131b18148b577bb5cea07afdbd01511cee6 | refs/heads/master | 2020-05-14T19:01:34.943478 | 2019-04-25T03:23:25 | 2019-04-25T03:23:25 | 181,920,995 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | #!d:\PycharmProjects\notebook\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
s... | [
"645889908@qq.com"
] | 645889908@qq.com |
ad84ffe31bed796c048e75367da22f1b3c7f1ec0 | d1170f1674ea2e4cbbfc8c77832c879a2a62021b | /intpro1.py | 625c690f0cefefd496e628f3b33a449fdc815849 | [] | no_license | adnaksbhat/ChatBot | 23f67678e87faae9feed7b1aeebd18d019c88caa | c755ae4b6c56f9bde1b641aca689918961c23b3e | refs/heads/main | 2023-05-14T13:50:52.017337 | 2021-06-07T15:41:28 | 2021-06-07T15:41:28 | 374,717,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 7 11:28:21 2021
@author: Skanda
"""
# This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
# -*- coding: utf-8 -... | [
"noreply@github.com"
] | adnaksbhat.noreply@github.com |
a2a54b5891d436d18c0b43cc21f8d68cf31ed107 | a65622c6b3d8c570f113af3ee49b4c4f2ec4995c | /PY_files/DB_Tkin.py | bdb20b4cc356bb53565fafd621b17d254a5e9b10 | [] | no_license | muthu255/python | 62a88d32450d71a9297b65ae1865c6125a716a8d | 4c1135388b2ba36ac4c23e952e064496db9cab82 | refs/heads/master | 2022-07-03T14:49:35.008669 | 2020-05-13T19:22:40 | 2020-05-13T19:22:40 | 263,722,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,808 | py | import cx_Oracle
import tkinter
import pandas as pd
from tkinter import filedialog
from tkinter import messagebox
from tkinter import *
root=tkinter.Tk()
root.title('DataBase')
e1=Entry(root,width=20,borderwidth=5,)
e1.grid(row=2,column=4,columnspan=3,padx=10,pady=10)
e2=Entry(root,width=20,borderwi... | [
"noreply@github.com"
] | muthu255.noreply@github.com |
d32fa3c7ad808770d849fd474057658e82c74b40 | aed8348fac95ceab26ed3a7099138624480c8d7a | /meme/meme/settings.py | 9ed727cedde1766412b7a715e80dce8f367727e3 | [] | no_license | chaithanyarlk/MemePage | 9c73c318c91674cd340089b4931d0e5a2704563e | 8a078d1ab67b12a638b186a996cc55df7c74e054 | refs/heads/master | 2023-03-04T04:37:21.487584 | 2021-02-12T04:01:09 | 2021-02-12T04:01:09 | 338,073,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,395 | py | """
Django settings for meme project.
Generated by 'django-admin startproject' using Django 3.1.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib im... | [
"chithanyarlk@gmail.com"
] | chithanyarlk@gmail.com |
64f74fe56d657c97549777a57a66440633ecf9c6 | fe57ad74daa82f3805978668caa68426787e4e3c | /mysite/polls/models.py | 891928f36aeab91469ea6d4e6307c55fef31163f | [] | no_license | Aliciarui/PycharmServer | d7efc02c7032127378b73af410e357cdf425564b | dbcc8b7a7906c3d58fca679efdbe23a12cc5d209 | refs/heads/master | 2023-06-03T09:07:32.920827 | 2021-06-17T08:16:03 | 2021-06-17T08:16:03 | 377,729,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | from django.db import models
# Create your models here.
# 用于新建类
class UserInfo(models.Model):
id = models.IntegerField(primary_key=True)
info = models.CharField(max_length=20) | [
"ruiqialicia@yeah.net"
] | ruiqialicia@yeah.net |
d4847f3c091bcb63756b682c82699178e1b4c83b | 48544f9b8884af3ab86795d02ee7a4f067237377 | /aiida/tools.codespc.vasp/query.py | 4c36c2d8203f040b892c6267c2c3119bd5708a8a | [] | no_license | greschd/aiida-vasp | ec10c930cc1207bf447395285e5ec60671e9c5b0 | 6eb7893b1e3c7cc58ca4bedca709b7dda2b72e09 | refs/heads/master | 2021-01-21T20:46:18.608435 | 2017-05-24T11:27:32 | 2017-05-24T11:27:32 | 92,274,671 | 0 | 0 | null | 2017-05-24T09:28:41 | 2017-05-24T09:28:41 | null | UTF-8 | Python | false | false | 2,670 | py | from aiida.orm.querytool import QueryTool
from aiida.orm.calculation.job import JobCalculation
class VaspFinder(object):
_vaspclass = ['vasp.vasp', 'vasp.asevasp', 'vasp.vasp5',
'vasp.vasp2w90', 'vasp.vasp2w90.Vasp2W90Calculation']
@classmethod
def cmp_ctime(cls, calc1, calc2):
... | [
"r.haeuselmann@gmx.ch"
] | r.haeuselmann@gmx.ch |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.